:root {
    --bg: #11110f;
    --panel: #1b1b18;
    --panel-2: #23231f;
    --text: #f4f0e8;
    --muted: #b6b0a3;
    --accent: #d4a84d;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    --header-bg: rgba(17, 17, 15, 0.88);
    --theme-toggle-bg: rgba(255, 255, 255, 0.06);
    --theme-toggle-hover: rgba(255, 255, 255, 0.12);
}

:root[data-theme="light"] {
    --bg: #f5f0e5;
    --panel: #fffaf0;
    --panel-2: #f2e7d2;
    --text: #241d12;
    --muted: #6d6252;
    --accent: #b7852f;
    --border: rgba(49, 36, 15, 0.14);
    --shadow: 0 18px 45px rgba(70, 48, 16, 0.14);
    --header-bg: rgba(245, 240, 229, 0.92);
    --theme-toggle-bg: rgba(36, 29, 18, 0.06);
    --theme-toggle-hover: rgba(36, 29, 18, 0.12);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, rgba(212, 168, 77, 0.12), transparent 30%), var(--bg);
    color: var(--text);
}
body.lightbox-open {
    overflow: hidden;
}
body.modal-open {
    overflow: hidden;
}
a { color: inherit; text-decoration: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}
.site-header__inner, main { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.site-header__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; }
.site-header__actions { display: flex; align-items: center; gap: 14px; }
.brand { font-size: 1.15rem; font-weight: 700; }
.brand--with-image {
    display: grid;
    align-items: start;
    justify-items: start;
    gap: 4px;
    min-height: clamp(86px, 10vw, 122px);
    padding: 8px 0;
}
.brand__name {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 0;
    background: transparent;
    border-radius: 0;
    order: 1;
}
.brand__photo {
    position: relative;
    width: clamp(260px, 34vw, 440px);
    height: clamp(62px, 8vw, 92px);
    display: block;
    pointer-events: none;
    opacity: 1;
    order: 2;
    margin-left: max(0px, calc(50% - 220px));
}
.brand__photo-image {
    width: 100%;
    height: 100%;
    display: none;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
:root[data-theme="light"] .brand__photo-image--light {
    display: block;
}
:root:not([data-theme="light"]) .brand__photo-image--dark {
    display: block;
}
.site-nav { display: flex; gap: 1.25rem; }
.theme-toggle {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--theme-toggle-bg);
    color: var(--text);
    border-radius: 999px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: var(--theme-toggle-hover);
    border-color: rgba(212, 168, 77, 0.45);
    transform: translateY(-1px);
}
.theme-toggle:focus-visible {
    outline: 3px solid rgba(212, 168, 77, 0.28);
    outline-offset: 2px;
}
main { padding: 24px 0 64px; }

.hero { position: relative; min-height: 70vh; display: grid; place-items: center; overflow: visible; }
.hero-grid {
    --hero-columns: 6;
    --hero-rows: 4;
    width: min(100%, 1100px);
    aspect-ratio: 4 / 3;
    display: grid;
    grid-template-columns: repeat(var(--hero-columns), 1fr);
    grid-template-rows: repeat(var(--hero-rows), 1fr);
    gap: 14px;
}
.hero-slot { position: relative; overflow: visible; }
.hero-tile {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow:
        0 28px 38px rgba(0, 0, 0, 0.34),
        0 10px 16px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -3px 6px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02) 28%, rgba(0, 0, 0, 0.2) 100%),
        linear-gradient(180deg, #3f3d37 0%, #1b1a17 100%);
    transform-style: preserve-3d;
    will-change: transform, opacity;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.hero-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 5px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.08) 35%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.95;
}
.hero-tile__image {
    position: absolute;
    inset: 6px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.2),
        inset 0 -10px 16px rgba(0, 0, 0, 0.24);
}
.hero-tile::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.2), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.08), transparent 40%),
        linear-gradient(0deg, rgba(0,0,0,0.18), transparent 45%);
}
.hero-tile:hover,
.hero-tile:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 34px 46px rgba(0, 0, 0, 0.38),
        0 12px 18px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -3px 6px rgba(0, 0, 0, 0.45);
}
.hero-tile:focus-visible {
    outline: 3px solid rgba(212, 168, 77, 0.9);
    outline-offset: 4px;
}
.hero-tile.outgoing { animation: tileExit 2.4s cubic-bezier(0.2, 0.78, 0.25, 1) forwards; z-index: 30; }
.hero-tile.incoming { animation: tileEnter 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; z-index: 25; }
@keyframes tileExit {
    from { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    to { opacity: 0; transform: translate3d(var(--exit-x,0), var(--exit-y,0), 0) rotate(var(--exit-rotate,0deg)) scale(1.02); }
}
@keyframes tileEnter {
    from { opacity: 0; transform: translate3d(var(--enter-x,0), var(--enter-y,0), 0) rotate(var(--enter-rotate,0deg)) scale(4); }
    to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
}
.filters, .album-list, .photo-grid, .admin-shell { margin-top: 32px; }
.filters__group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filters--admin { margin: 18px 0 20px; }
.filters__label, .eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.chip, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    background: var(--panel);
}
.chip.is-active, .button { background: var(--accent); color: #17130a; font-weight: 700; }
.button--ghost { background: transparent; color: var(--text); }
.button--small { padding: 8px 12px; font-size: 0.9rem; }

.album-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    gap: 20px;
    justify-content: start;
}
.album-card, .panel {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.album-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.album-card__body, .panel { padding: 22px; }
.album-date { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.album-description { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.album-card--compact { min-height: 240px; display: flex; }
.album-card--compact .album-card__body { display: flex; flex-direction: column; justify-content: center; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.photo-tile { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.photo-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-tile--playable {
    position: relative;
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--border);
}
.photo-tile__actions,
.photo-tile__meta {
    padding: 14px;
    display: grid;
    gap: 10px;
}
.photo-tile__actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
}
.photo-tile__meta h2 {
    margin: 0;
    font-size: 1.1rem;
}
.album-hero { margin-top: 24px; display: grid; gap: 10px; }
.album-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); }
.play-hero { margin-top: 24px; display: grid; gap: 10px; max-width: 760px; }
.play-hero--secondary { margin-top: 54px; }
.play-choice-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    gap: 22px;
}
.play-choice-card {
    display: grid;
    gap: 14px;
    align-content: start;
}
.play-choice-card h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
}
.play-setup-form {
    margin-top: 32px;
}
.play-inline-form {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}
.play-layout {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.play-panel {
    position: sticky;
    top: 92px;
}
.memory-album-picker {
    display: grid;
    gap: 12px;
    max-height: 440px;
    overflow: auto;
    padding-right: 4px;
}
.memory-album-option {
    display: block;
    cursor: pointer;
}
.memory-album-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.memory-album-option__body {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.memory-album-option__body img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}
.memory-album-option__body strong,
.memory-album-option__body small {
    display: block;
}
.memory-album-option__body small {
    margin-top: 4px;
    color: var(--muted);
}
.memory-album-option input:checked + .memory-album-option__body {
    border-color: rgba(212, 168, 77, 0.72);
    background: rgba(212, 168, 77, 0.12);
    transform: translateY(-1px);
}
.memory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.memory-status {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--muted);
    line-height: 1.5;
}
.memory-stage {
    display: grid;
    gap: 18px;
}
.memory-scoreboard {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.memory-scoreboard__player,
.memory-scoreboard__meta {
    padding: 18px 20px;
}
.memory-scoreboard__player strong,
.memory-scoreboard__meta strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.memory-scoreboard__player.is-active {
    border-color: rgba(212, 168, 77, 0.75);
    box-shadow: 0 0 0 2px rgba(212, 168, 77, 0.18), var(--shadow);
}
.memory-scoreboard__meta p:last-child {
    margin-bottom: 0;
}
.memory-board {
    --memory-columns: 4;
    display: grid;
    grid-template-columns: repeat(var(--memory-columns), minmax(0, 1fr));
    gap: 22px;
    padding: 10px;
    overflow: hidden;
}
.memory-card {
    position: relative;
    aspect-ratio: 4 / 4.6;
    padding: 0;
    border: 0;
    background: transparent;
    perspective: 1200px;
    cursor: pointer;
    isolation: isolate;
    transform-origin: center;
}
.memory-card__inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.55s ease;
}
.memory-card.is-flipped .memory-card__inner,
.memory-card.is-matched .memory-card__inner {
    transform: rotateY(180deg);
}
.memory-card__face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 22px;
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: var(--shadow);
}
.memory-card__face--back {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at top, rgba(212, 168, 77, 0.42), transparent 42%),
        linear-gradient(180deg, #3c2f16 0%, #1a1813 100%);
}
.memory-card__face--front {
    transform: rotateY(180deg);
    background: #fff;
}
.memory-card__face--front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.25s ease, transform 0.25s ease;
}
.memory-card__face--front::after {
    content: attr(data-winner);
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(17, 17, 15, 0.82);
    color: #fff6e3;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.memory-card__back-mark {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1b160c;
    background: rgba(255, 248, 230, 0.85);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55);
}
.memory-card.is-matched {
    cursor: default;
}
.memory-card.is-matched .memory-card__face--front {
    box-shadow: 0 0 0 3px rgba(138, 201, 38, 0.72), var(--shadow);
    position: relative;
}
.memory-card.is-matched .memory-card__face--front img {
    filter: grayscale(1) brightness(0.82);
}
.memory-card.is-matched .memory-card__face--front::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
}
.memory-card.is-matched .memory-card__face--front::after {
    opacity: 1;
    transform: scale(1);
}
.memory-card[data-winner="1"] .memory-card__face--front {
    box-shadow: 0 0 0 3px rgba(212, 168, 77, 0.82), var(--shadow);
}
.memory-card[data-winner="2"] .memory-card__face--front {
    box-shadow: 0 0 0 3px rgba(122, 190, 255, 0.82), var(--shadow);
}
.memory-card[data-winner="1"] .memory-card__face--front::after {
    content: "1";
}
.memory-card[data-winner="2"] .memory-card__face--front::after {
    content: "2";
}
.memory-card.is-celebrating {
    z-index: 4;
}
.memory-card.is-celebrating {
    animation: memoryMatchCelebrate 0.42s ease-out;
}
@keyframes memoryMatchCelebrate {
    0% { transform: scale(1); }
    45% { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.memory-card:focus-visible {
    outline: 3px solid rgba(212, 168, 77, 0.9);
    outline-offset: 4px;
    border-radius: 22px;
}
.album-hero__meta { margin: 0 0 8px; color: var(--muted); }
.album-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.album-description--hero { max-width: 720px; }
.comments-panel {
    margin-top: 36px;
    display: grid;
    gap: 22px;
}
.comments-panel__header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: end;
    justify-content: space-between;
}
.comments-panel__header h2 {
    margin: 6px 0 0;
}
.comments-panel__note,
.comments-empty {
    margin: 0;
    color: var(--muted);
}
.comments-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 320px);
    gap: 14px;
}
.comments-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.comments-list {
    display: grid;
    gap: 16px;
}
.comment-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}
.comment-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
    margin-bottom: 10px;
}
.comment-card__meta time {
    color: var(--muted);
    font-size: 0.95rem;
}
.comment-card p {
    margin: 0;
    line-height: 1.6;
}
.photo-tile--interactive { cursor: pointer; }
.photo-tile--interactive img { transition: transform 0.35s ease; }
.photo-tile--interactive:hover img { transform: scale(1.03); }
.photo-tile__actions .button {
    position: relative;
    z-index: 2;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    z-index: 300;
}
.lightbox.is-open {
    display: flex;
}
.lightbox__stage {
    width: min(92vw, 1400px);
    height: min(88vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox__image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}
.lightbox__close,
.lightbox__nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.lightbox__close {
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    font-size: 2rem;
    line-height: 1;
}
.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 999px;
    font-size: 2rem;
}
.lightbox__nav--prev {
    left: 24px;
}
.lightbox__nav--next {
    right: 24px;
}

.panel--narrow { max-width: 460px; margin: 0 auto; }
.panel__row, .actions { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.actions { flex-wrap: wrap; justify-content: flex-end; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.admin-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 22px; }
.admin-photo-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}
.admin-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.admin-photo-card__body {
    padding: 14px;
    display: grid;
    gap: 10px;
}
.admin-photo-card__body p {
    margin: 0;
    word-break: break-word;
}
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 8px; }
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
}
select {
    color-scheme: dark;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
select:focus {
    outline: none;
    border-color: rgba(212, 168, 77, 0.85);
    box-shadow: 0 0 0 3px rgba(212, 168, 77, 0.18);
}
option {
    background: #23231f;
    color: #f4f0e8;
}
option[value=""] {
    color: #b6b0a3;
}
option:checked,
option:hover,
option:focus {
    background: #d4a84d;
    color: #17130a;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
.comment-preview {
    max-width: 380px;
}
.comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.comment-actions form {
    margin: 0;
}

.flash-stack { width: min(1200px, calc(100% - 32px)); margin: 16px auto 0; display: grid; gap: 12px; }
.flash { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,0.08); }
:root[data-theme="light"] .flash { background: rgba(36, 29, 18, 0.05); }
.flash--success { border: 1px solid rgba(101, 191, 126, 0.55); }
.flash--error { border: 1px solid rgba(219, 92, 92, 0.55); }
code { font-family: Consolas, monospace; }

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 8, 7, 0.78);
    backdrop-filter: blur(10px);
    z-index: 320;
}
.modal.is-open {
    display: flex;
}
.panel--modal {
    width: min(100%, 640px);
    max-height: min(88vh, 900px);
    overflow: auto;
}
.modal__dialog {
    padding: 28px;
}
.modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.modal__header h2 {
    margin: 4px 0 0;
}
.modal__close {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 1.1rem;
}

.colouring-room {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 32px;
}
.difference-room {
    display: grid;
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 32px;
}
.sticker-room {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 32px;
}
.jigsaw-room {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 32px;
}
.colouring-panel {
    position: sticky;
    top: 92px;
}
.difference-panel {
    position: sticky;
    top: 92px;
}
.sticker-panel {
    position: sticky;
    top: 92px;
}
.jigsaw-panel {
    position: sticky;
    top: 92px;
}
.water-brush-badge {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(98, 170, 224, 0.22), rgba(255, 255, 255, 0.04));
}
.water-brush-badge__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(98, 170, 224, 0.24);
    color: #dff4ff;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.water-brush-badge strong,
.water-brush-badge p {
    display: block;
    margin: 0;
}
.water-brush-badge p {
    margin-top: 4px;
    color: var(--muted);
}
.difference-badge {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(212, 168, 77, 0.18), rgba(255, 255, 255, 0.04));
}
.difference-badge__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(212, 168, 77, 0.24);
    color: #fff4d7;
    font-weight: 800;
    font-size: 1.2rem;
}
.difference-badge strong,
.difference-badge p {
    display: block;
    margin: 0;
}
.difference-badge p {
    margin-top: 4px;
    color: var(--muted);
}
.jigsaw-badge {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(150, 198, 114, 0.16), rgba(255, 255, 255, 0.04));
}
.jigsaw-badge__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(150, 198, 114, 0.2);
    color: #f1ffe1;
    font-weight: 800;
    font-size: 1.2rem;
}
.jigsaw-badge strong,
.jigsaw-badge p {
    display: block;
    margin: 0;
}
.jigsaw-badge p {
    margin-top: 4px;
    color: var(--muted);
}
.jigsaw-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.jigsaw-stats__card {
    padding: 18px;
}
.jigsaw-stats__card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.25rem;
}
.jigsaw-stage {
    padding: 24px;
}
.jigsaw-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 22px;
    align-items: start;
}
.jigsaw-board-wrap,
.jigsaw-tray-wrap {
    display: grid;
    gap: 14px;
}
.jigsaw-board {
    --jigsaw-grid: 4;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--jigsaw-grid), minmax(0, 1fr));
    grid-template-rows: repeat(var(--jigsaw-grid), minmax(0, 1fr));
    width: 100%;
    min-height: 340px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 77, 0.2);
    background:
        linear-gradient(180deg, rgba(212, 168, 77, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transform-origin: center;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.jigsaw-slot {
    border: 1px dashed rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease, opacity 0.3s ease;
}
.jigsaw-tray__header h2 {
    margin: 6px 0 0;
}
.jigsaw-tray {
    position: relative;
    min-height: 620px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at top left, rgba(212, 168, 77, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    overflow: visible;
}
.jigsaw-piece {
    position: absolute;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: grab;
    background: #171613;
    box-shadow:
        0 16px 24px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
    transform-origin: center;
    touch-action: none;
}
.jigsaw-piece:hover,
.jigsaw-piece.is-selected {
    box-shadow:
        0 20px 32px rgba(0, 0, 0, 0.42),
        0 0 0 3px rgba(212, 168, 77, 0.28);
}
.jigsaw-piece.is-solved {
    box-shadow:
        0 20px 32px rgba(0, 0, 0, 0.42),
        0 0 0 3px rgba(150, 198, 114, 0.55);
}
.jigsaw-board.is-complete {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    z-index: 2;
}
.jigsaw-board.is-complete .jigsaw-slot {
    border-color: transparent;
    opacity: 0;
}
.jigsaw-board.is-complete .jigsaw-piece {
    box-shadow: none;
}
.jigsaw-board.is-celebrating {
    animation: jigsawCompleteCelebrate 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes jigsawCompleteCelebrate {
    0% { transform: scale(1); }
    45% { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.jigsaw-piece__art {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-color: #fff;
}
.jigsaw-preview {
    position: fixed;
    inset: 0;
    z-index: 360;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.jigsaw-preview.is-open {
    display: flex;
}
.jigsaw-preview__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.72);
}
.jigsaw-preview__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 960px);
    padding: 24px;
}
.jigsaw-preview__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.jigsaw-preview__header h2 {
    margin: 6px 0 0;
}
.jigsaw-preview__dialog img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 18px;
    display: block;
}
.difference-progress strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}
.difference-progress--stacked p:last-child {
    margin-top: 10px;
}
.difference-stage {
    display: grid;
    gap: 20px;
    padding: 18px;
}
.difference-stage__header {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.difference-stage__header h2 {
    margin: 6px 0 0;
}
.difference-board {
    display: grid;
    gap: 18px;
}
.difference-board--slider {
    grid-template-columns: minmax(0, 1fr);
}
.difference-pane {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at top, rgba(212, 168, 77, 0.08), transparent 35%),
        rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow);
}
.difference-pane--slider {
    --difference-split: 50%;
    --difference-filter: saturate(1.1);
    --difference-transform: scale(1.02);
    --difference-overlay: linear-gradient(135deg, rgba(255, 221, 153, 0.22), rgba(255, 255, 255, 0.03) 45%, rgba(255, 176, 86, 0.18));
    background:
        radial-gradient(circle at top, rgba(255, 234, 174, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(17, 17, 15, 0.2));
}
.difference-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-select: none;
}
.difference-image--base {
    filter: saturate(0.92) contrast(0.98);
}
.difference-after {
    position: absolute;
    inset: 0;
    width: var(--difference-split);
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 22px 0 40px rgba(0, 0, 0, 0.16);
}
.difference-image--after {
    filter: var(--difference-filter);
    transform: var(--difference-transform);
    transform-origin: center;
}
.difference-after__wash {
    position: absolute;
    inset: 0;
    background: var(--difference-overlay);
    mix-blend-mode: screen;
    pointer-events: none;
}
.difference-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--difference-split);
    width: 3px;
    background: linear-gradient(180deg, rgba(255, 247, 222, 0.98), rgba(212, 168, 77, 0.72));
    box-shadow:
        0 0 0 1px rgba(17, 17, 15, 0.24),
        0 0 28px rgba(255, 214, 122, 0.24);
    transform: translateX(-50%);
    pointer-events: none;
}
.difference-handle {
    position: absolute;
    top: 50%;
    left: var(--difference-split);
    width: 66px;
    height: 66px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 247, 222, 0.98), rgba(212, 168, 77, 0.92));
    box-shadow:
        0 20px 30px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(17, 17, 15, 0.16);
    transform: translate(-50%, -50%);
    cursor: ew-resize;
    z-index: 3;
    touch-action: none;
}
.difference-handle span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.difference-handle span::before {
    content: "< >";
    color: #17130a;
    font-weight: 800;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    transform: translateX(0.1em);
}
.difference-handle:focus-visible {
    outline: 3px solid rgba(255, 244, 215, 0.96);
    outline-offset: 4px;
}
.difference-pane__labels {
    position: absolute;
    inset: auto 18px 18px 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    pointer-events: none;
}
.difference-pane__labels span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 17, 15, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 0.88rem;
    font-weight: 700;
}
.construct-layout {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.construct-room {
    margin-top: 32px;
    display: grid;
    gap: 20px;
    padding: 22px;
}
.construct-room__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.construct-room__header h2,
.construct-note h2 {
    margin: 6px 0 0;
}
.construct-note {
    min-height: 220px;
}
.construct-room__frame-wrap {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at top left, rgba(212, 168, 77, 0.14), transparent 34%),
        rgba(255, 255, 255, 0.03);
}
.construct-room__frame {
    width: 100%;
    min-height: 76vh;
    border: 0;
    display: block;
}
.sticker-badge {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(236, 122, 154, 0.18), rgba(255, 255, 255, 0.04));
}
.sticker-badge__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(236, 122, 154, 0.22);
    color: #fff3f7;
    font-weight: 800;
    font-size: 1.35rem;
}
.sticker-badge strong,
.sticker-badge p {
    display: block;
    margin: 0;
}
.sticker-badge p {
    margin-top: 4px;
    color: var(--muted);
}
.sticker-set-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sticker-set-tab,
.sticker-chip,
.sticker-item {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}
.sticker-set-tab {
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
}
.sticker-set-tab.is-active {
    background: linear-gradient(180deg, #ffcb5c, #d4a84d);
    color: #17130a;
    font-weight: 700;
}
.sticker-library {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 10px;
}
.sticker-chip {
    min-height: 64px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 1.8rem;
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.sticker-chip:hover,
.sticker-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(236, 122, 154, 0.55);
}
.sticker-stage {
    display: grid;
    gap: 18px;
}
.sticker-stage__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    align-items: start;
}
.sticker-stage__header h2 {
    margin: 6px 0 0;
}
.sticker-stage__meta {
    padding: 18px 20px;
}
.sticker-stage__meta strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.sticker-canvas-wrap {
    position: relative;
    width: 100%;
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(236, 122, 154, 0.12), transparent 35%),
        #fff8ef;
    border: 1px solid var(--border);
}
.sticker-canvas-wrap img {
    width: 100%;
    height: auto;
    display: block;
}
.sticker-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: none;
}
.sticker-item {
    position: absolute;
    border: 0;
    border-radius: 18px;
    background: transparent;
    padding: 0;
    min-width: 0;
    line-height: 1;
    transform-origin: center;
    cursor: grab;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    appearance: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.sticker-item span {
    display: block;
    font-size: inherit;
    line-height: 1;
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
}
.sticker-item.is-selected {
    box-shadow:
        0 0 0 3px rgba(255, 204, 92, 0.55),
        0 14px 28px rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.12);
}
.sticker-item:focus-visible {
    outline: 3px solid rgba(236, 122, 154, 0.88);
    outline-offset: 4px;
}
.sticker-controls input:disabled,
.sticker-panel button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.colouring-stage {
    padding: 18px;
}
.colouring-canvas-wrap {
    position: relative;
    width: 100%;
    min-height: 420px;
    background:
        radial-gradient(circle at top, rgba(212, 168, 77, 0.08), transparent 32%),
        #fcfbf7;
    border-radius: 20px;
    overflow: hidden;
}
.colouring-canvas {
    display: block;
    width: 100%;
    height: auto;
}
.colouring-canvas--colour {
    position: relative;
    z-index: 1;
}
.colouring-canvas--wash {
    position: absolute;
    inset: 0;
    z-index: 2;
    touch-action: none;
    cursor: none;
}
.brush-cursor {
    --brush-size: 34px;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(var(--brush-size) + 20px);
    height: calc(var(--brush-size) + 28px);
    pointer-events: none;
    opacity: 0;
    transform: translate(-9999px, -9999px) rotate(-28deg);
    transform-origin: 18px 18px;
    z-index: 4;
    transition: opacity 0.12s ease;
}
.brush-cursor.is-visible {
    opacity: 1;
}
.brush-cursor__tip {
    position: absolute;
    left: 2px;
    bottom: 0;
    width: calc(var(--brush-size) + 6px);
    height: calc(var(--brush-size) + 6px);
    border-radius: 50% 50% 48% 48%;
    background:
        radial-gradient(circle at 45% 40%, rgba(255,255,255,0.55), rgba(255,255,255,0.1) 45%, rgba(120, 189, 235, 0.22) 72%, rgba(120, 189, 235, 0.02) 100%);
    border: 2px solid rgba(180, 220, 244, 0.7);
    box-shadow:
        0 0 0 2px rgba(17, 17, 15, 0.08),
        0 8px 18px rgba(29, 89, 122, 0.18);
}
.brush-cursor__handle {
    position: absolute;
    left: calc(var(--brush-size) * 0.45);
    top: 0;
    width: 14px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f2d29a 0%, #c78b42 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

@media (max-width: 800px) {
    .hero-grid {
        --hero-columns: 4;
        --hero-rows: 6;
        aspect-ratio: 2 / 3;
    }
    .site-header__inner, main { width: calc(100% - 24px); }
    .site-header__inner,
    .site-header__actions {
        gap: 12px;
    }
    .brand--with-image {
        min-height: 96px;
        padding: 6px 0;
    }
    .brand__photo {
        width: 260px;
        height: 74px;
        margin-left: max(0px, calc(50% - 130px));
    }
    .site-header__inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }
    .site-header__actions {
        width: 100%;
        justify-content: space-between;
    }
    .site-nav {
        flex-wrap: wrap;
        gap: 0.9rem;
    }
    .lightbox__nav {
        width: 46px;
        height: 46px;
    }
    .panel__row {
        align-items: flex-start;
    }
    .actions {
        width: 100%;
        justify-content: flex-start;
    }
    .modal {
        align-items: flex-start;
        padding: 16px;
    }
    .modal__dialog {
        width: 100%;
        padding: 22px;
    }
    .colouring-room {
        grid-template-columns: 1fr;
    }
    .colouring-panel {
        position: static;
    }
    .difference-room {
        grid-template-columns: 1fr;
    }
    .difference-panel {
        position: static;
    }
    .sticker-room {
        grid-template-columns: 1fr;
    }
    .sticker-panel {
        position: static;
    }
    .jigsaw-room {
        grid-template-columns: 1fr;
    }
    .jigsaw-panel {
        position: static;
    }
    .play-layout {
        grid-template-columns: 1fr;
    }
    .play-panel {
        position: static;
    }
    .memory-scoreboard {
        grid-template-columns: 1fr;
    }
    .memory-board {
        --memory-columns: 3;
        gap: 12px;
    }
    .difference-stage__header,
    .difference-board {
        grid-template-columns: 1fr;
    }
    .difference-handle {
        width: 58px;
        height: 58px;
    }
    .construct-room__header {
        flex-direction: column;
    }
    .construct-room__frame {
        min-height: 62vh;
    }
    .sticker-stage__header {
        grid-template-columns: 1fr;
    }
    .jigsaw-workspace {
        grid-template-columns: 1fr;
    }
    .jigsaw-stats {
        grid-template-columns: 1fr;
    }
    .jigsaw-stage {
        padding: 18px;
    }
    .jigsaw-tray {
        min-height: 500px;
    }
}

@media (max-width: 560px) {
    .brand--with-image {
        min-height: 84px;
        padding: 4px 0;
    }
    .brand__photo {
        width: min(60vw, 220px);
        height: 60px;
        margin-left: max(0px, calc(50% - 110px));
    }
}

.home-modern {
    display: grid;
    gap: 32px;
}
.modern-hero,
.modern-proof,
.modern-featured,
.modern-category-strip {
    position: relative;
}
.modern-hero {
    display: block;
}
.modern-hero__copy,
.modern-proof__card {
    background:
        radial-gradient(circle at top left, rgba(212, 168, 77, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
        linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--border);
    border-radius: 34px;
    box-shadow: var(--shadow);
}
.modern-hero__copy {
    width: 100%;
    padding: clamp(22px, 3vw, 34px);
}
.modern-proof__card h2,
.modern-section-head h2,
.modern-album-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.02em;
}
.modern-proof__card p {
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.75;
}
.modern-hero__content {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}
.modern-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.modern-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.modern-stat-card,
.modern-category-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}
.modern-stat-card {
    padding: 18px 18px 16px;
}
.modern-stat-card strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
}
.modern-stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.45;
}
.modern-hero__visual {
    position: relative;
    width: 100%;
}
.modern-hero__visual::before {
    content: "";
    position: absolute;
    inset: 2% 8% auto auto;
    width: 26%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(212, 168, 77, 0.22), transparent 70%);
    filter: blur(10px);
}
.modern-hero__visual-grid {
    position: relative;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(75px, 1fr);
    min-height: 320px;
}
.modern-hero__panel {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    box-shadow: var(--shadow);
    min-height: 90px;
}
.modern-hero__panel:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 3;
    transform: rotate(-3deg);
}
.modern-hero__panel:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
    transform: translateY(18px) rotate(4deg);
}
.modern-hero__panel:nth-child(3) {
    grid-column: 3;
    grid-row: 1 / span 3;
    transform: rotate(-2deg);
}
.modern-hero__panel:nth-child(4) {
    grid-column: 4;
    grid-row: 1 / span 2;
    transform: translateY(10px) rotate(3deg);
}
.modern-hero__panel:nth-child(5) {
    grid-column: 1;
    grid-row: 4 / span 2;
    transform: translateY(-8px) rotate(2deg);
}
.modern-hero__panel:nth-child(6) {
    grid-column: 2;
    grid-row: 3 / span 3;
    transform: rotate(-4deg);
}
.modern-hero__panel:nth-child(7) {
    grid-column: 3;
    grid-row: 4 / span 2;
    transform: translateY(12px) rotate(3deg);
}
.modern-hero__panel:nth-child(8) {
    grid-column: 4;
    grid-row: 3 / span 3;
    transform: rotate(-2deg);
}
.modern-hero__panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.02) contrast(1.02);
}
.modern-hero__panel-copy {
    position: absolute;
    inset: auto 8px 8px 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(17, 17, 15, 0.55);
    backdrop-filter: blur(12px);
}
.modern-hero__panel-copy p {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.58rem;
}
.modern-hero__panel-copy strong {
    font-size: 0.78rem;
}
.modern-proof__card {
    padding: 28px;
}
.modern-proof__card h2,
.modern-section-head h2 {
    margin: 8px 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}
.modern-section-head {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 20px;
}
.modern-album-grid,
.modern-category-grid {
    display: grid;
    gap: 20px;
}
.modern-album-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.modern-album-card {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    box-shadow: var(--shadow);
}
.modern-album-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.modern-album-card__body {
    padding: 22px;
}
.modern-album-card h3 {
    margin: 8px 0 0;
    font-size: 1.65rem;
    line-height: 1.08;
}
.modern-album-card__footer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}
.modern-album-card__footer span {
    color: var(--muted);
}
.modern-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.modern-category-card {
    display: grid;
    gap: 8px;
    padding: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.modern-category-card strong {
    font-size: 1.05rem;
}
.modern-category-card span {
    color: var(--muted);
}
.modern-category-card:hover,
.modern-category-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(212, 168, 77, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
    .modern-hero__visual-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(110px, 1fr);
        min-height: 0;
    }
    .modern-hero__panel,
    .modern-hero__panel:nth-child(1),
    .modern-hero__panel:nth-child(2),
    .modern-hero__panel:nth-child(3),
    .modern-hero__panel:nth-child(4),
    .modern-hero__panel:nth-child(5),
    .modern-hero__panel:nth-child(6),
    .modern-hero__panel:nth-child(7),
    .modern-hero__panel:nth-child(8) {
        grid-column: auto;
        grid-row: auto;
        min-height: 110px;
        transform: none;
    }
}

@media (max-width: 680px) {
    .modern-stat-row {
        grid-template-columns: 1fr;
    }
    .modern-section-head,
    .modern-album-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }
    .modern-hero h1 {
        max-width: none;
    }
    .modern-hero__visual-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
}
