  :root {
    --pink: #f5c5c8;
    --pink-light: #f8d4d6;
    --pink-deep: #e8a3a8;
    --bg: #f5c5c8;
    --black: #000000;
    --white: #ffffff;
    --gray: #6b6b6b;
    --gray-light: #e5e5e5;
  }
  /* Dark mode: dark gray page surface, black frame border, white logo
     badge stay intact. Panels sit on a slightly darker shade than the
     page so the cards still feel "lifted". */
  body.dark {
    --pink-light: #2a1f20;
    --bg: #2a2a2a;
    --black: #ededed;
    --white: #1c1c1c;
    --gray: #9a9a9a;
    --gray-light: #2e2e2e;
  }
  /* Page-class overrides so the visible frame bg is dark gray (not the
     panel shade) and clearly separate from panels/pillars. */
  body.dark .frame.bg-white      { background: #2a2a2a; }
  body.dark .frame.bg-pink-light { background: #2a2526; }
  /* Frame border stays solid black in dark mode (don't invert it) */
  body.dark .frame { border-color: #000; }
  /* Body bg under the frame's rounded corners — keep it pure black so the
     area outside the rounded corners matches the frame border. */
  body.dark { background: #000; }
  /* SHIK logo badge keeps its light-mode look in dark mode */
  body.dark .logo-badge { background: #fff; }
  /* Smooth theme transition on the most visible surfaces */
  body, .frame, .pillar, .burn-tier, .customize-panel,
  .polaroid, .team-card, .lightbox-frame, .dock {
    transition: background-color 0.35s ease, color 0.35s ease,
                border-color 0.35s ease, box-shadow 0.35s ease;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; overflow: hidden; }

  body {
    background: var(--black);
    color: var(--black);
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding: 0;
    height: 100vh;
    width: 100vw;
  }
  /* Inner ring on the frame edge — keeps the border visible even when a
     dark/black background is selected (otherwise the frame-bg blends with
     the body-bg and the black border looks missing). */
  .frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    pointer-events: none;
    z-index: 200;
  }

  ::selection { background: var(--black); color: var(--pink); }

  /* Outer pink panel — fills the entire viewport (minus the 32px black border) */
  .frame {
    background: var(--bg);
    border-radius: 28px;
    height: 100vh;
    width: 100vw;
    border: 12px solid var(--black);
    position: relative;
    overflow: hidden;
    transition: background 1s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .frame.bg-white { background: var(--white); }
  .frame.bg-pink { background: var(--pink); }
  .frame.bg-pink-light { background: var(--pink-light); }

  /* ============ TOP-LEFT LOGO BADGE ============ */
  .logo-badge {
    position: absolute;
    top: -4px;
    left: 60px;
    width: 88px;
    height: 124px;
    background: var(--white);
    border-radius: 0 0 56px 56px;
    z-index: 50;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.08);
  }
  .logo-badge:hover { transform: translateY(4px); }
  /* The SHIKI logo built as inline SVG so it's always crisp + truly transparent */
  .logo-badge svg {
    width: 50px;
    height: auto;
  }

  /* ============ RIGHT-SIDE FLOATING DOCK ============ */
  .dock {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 72px;
    background: var(--white);
    border-radius: 56px 0 0 56px;
    padding: 24px 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    box-shadow: -10px 0 28px rgba(0,0,0,0.18), -2px 0 6px rgba(0,0,0,0.08);
  }
  .dock button {
    background: none;
    border: none;
    cursor: pointer;
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: var(--black);
    position: relative;
  }
  .dock button:hover {
    background: var(--black);
    color: var(--white);
  }
  .dock button.active {
    background: var(--black);
    color: var(--white);
  }
  .dock button svg { width: 20px; height: 20px; }
  /* Theme toggle: show the icon for the mode you'd switch TO */
  .dock-theme .theme-sun { display: none; }
  body.dark .dock-theme .theme-moon { display: none; }
  body.dark .dock-theme .theme-sun { display: block; }
  .dock-tooltip {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--black);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, right 0.2s;
    font-weight: 500;
  }
  .dock button:hover .dock-tooltip {
    opacity: 1;
    right: 60px;
  }

  /* ============ BOTTOM-LEFT SOCIALS ============ */
  .socials {
    position: absolute;
    bottom: 28px;
    left: 60px;
    display: flex;
    gap: 12px;
    z-index: 20;
  }
  .social-btn {
    width: 38px; height: 38px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0,0,0,0.28), 0 2px 4px rgba(0,0,0,0.12);
  }
  .social-btn:hover {
    background: var(--white);
    transform: translateY(-3px) rotate(-6deg);
  }
  .social-btn svg {
    width: 20px; height: 20px;
  }
  .social-btn .tw-bg { fill: var(--black); transition: fill 0.25s; }
  .social-btn .tw-fg { fill: var(--white); transition: fill 0.25s; }
  .social-btn:hover .tw-bg { fill: var(--white); }
  .social-btn:hover .tw-fg { fill: var(--black); }
  .social-btn .icon-fill { fill: var(--white); transition: fill 0.25s; }
  .social-btn:hover .icon-fill { fill: var(--black); }

  /* ============ BOTTOM-RIGHT THUMB STRIP ============ */
  .thumb-strip {
    position: absolute;
    bottom: 28px;
    right: 96px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
  }
  .thumb {
    width: 64px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }
  .thumb:hover {
    transform: translateY(-3px) scale(1.05);
  }
  .thumb:hover img { transform: scale(1.1); }
  .thumb-next, .thumb-prev {
    width: 44px; height: 44px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    color: var(--white);
  }
  .thumb-next { margin-left: 6px; }
  .thumb-prev { margin-right: 6px; }
  .thumb-next:hover {
    transform: rotate(360deg) scale(1.08);
    background: var(--white);
    color: var(--black);
  }
  .thumb-prev:hover {
    transform: rotate(-360deg) scale(1.08);
    background: var(--white);
    color: var(--black);
  }
  .thumb-next svg, .thumb-prev svg { width: 18px; height: 18px; }

  /* ============ PAGES (no scroll) ============ */
  .page {
    display: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
  }
  .page.active { display: block; }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* The "stage" — the safe zone between the badge, dock, socials, and thumb strip */
  .stage {
    position: absolute;
    top: 32px;
    left: 184px;   /* clear of the logo badge */
    right: 96px;   /* clear of the right dock */
    bottom: 88px;  /* clear of the bottom socials/thumbs */
    overflow: hidden;
  }

  /* ============ HOME ============ */
  /* On home, the stage spans the full frame so the hero can go edge-to-edge.
     The dock/badge/socials/thumbs sit on top via their own z-index. */
  #page-home .stage {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  /* Empty stage — content goes here when user provides it */
  .home-empty {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Big translucent SHIKI watermark in the middle */
  .home-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.4;
  }
  .home-watermark svg {
    height: 80%;
    width: auto;
    fill: var(--white);
  }
  .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 5;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    will-change: opacity, transform;
  }
  .hero-image.active {
    opacity: 1;
    transform: scale(1);
  }
  .hero-image.active { opacity: 1; }
  .home-placeholder {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--black);
    background: rgba(255,255,255,0.4);
    border: 2px dashed rgba(0,0,0,0.3);
    border-radius: 20px;
    padding: 40px 60px;
    backdrop-filter: blur(4px);
  }
  .home-placeholder h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
  }
  .home-placeholder p {
    font-size: 13px;
    color: var(--gray);
    letter-spacing: 0.05em;
  }

  /* ============ COLLECTION (no-scroll grid) ============ */
  /* Collection page: stage spans the full frame so the polaroid wall
     reaches the edges. The title floats over the wall via absolute. */
  #page-collection .stage {
    top: 0; left: 0; right: 0; bottom: 0;
  }
  .collection-stage {
    position: relative;
    height: 100%;
    width: 100%;
  }
  .stage-head {
    position: absolute;
    top: 32px;
    left: 184px;
    right: 96px;
    z-index: 10;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    pointer-events: none;
  }
  .stage-head h1, .stage-head p {
    pointer-events: auto;
    background: var(--white);
    border-radius: 14px;
    padding: 16px 22px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.22), 0 4px 10px rgba(0,0,0,0.08);
  }
  .stage-head h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 0.9;
    letter-spacing: 0.02em;
  }
  .stage-head h1 .light {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.6em;
    letter-spacing: -0.02em;
    text-transform: lowercase;
  }
  .stage-head p {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.6;
    max-width: 320px;
  }

  .polaroid-board {
    position: absolute;
    inset: 0;
    overflow: hidden;
    user-select: none;
  }
  .polaroid {
    position: absolute;
    width: 180px;
    background: var(--white);
    padding: 12px 12px 36px 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.1);
    cursor: grab;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    touch-action: none;
  }
  .polaroid:hover {
    box-shadow: 0 14px 32px rgba(0,0,0,0.28), 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px);
  }
  .polaroid.dragging {
    cursor: grabbing;
    transition: none;
    box-shadow: 0 22px 44px rgba(0,0,0,0.35);
  }
  .polaroid-img {
    width: 156px;
    height: 156px;
    object-fit: cover;
    display: block;
    background: var(--gray-light);
    pointer-events: none;
  }
  .polaroid-cap {
    position: absolute;
    left: 0; right: 0; bottom: 8px;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--black);
    pointer-events: none;
  }

  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 0.4s ease;
  }
  .lightbox.open {
    background: rgba(0,0,0,0.85);
    pointer-events: auto;
  }
  .lightbox-frame {
    background: var(--white);
    padding: 18px 18px 56px 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    transform-origin: center center;
    will-change: transform;
    position: relative;
    display: none;
  }
  .lightbox.open .lightbox-frame,
  .lightbox.closing .lightbox-frame {
    display: block;
  }
  .lightbox-img {
    display: block;
    max-width: 80vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  .lightbox-cap {
    position: absolute;
    left: 0; right: 0; bottom: 14px;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 0.1em;
    color: var(--black);
  }

  /* ============ ABOUT (no-scroll) ============ */
  .about-stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
  }
  .about-stage h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 6vw, 84px);
    line-height: 0.9;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
  }
  .about-stage h1 .light {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.4em;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    display: inline-block;
    margin-left: 16px;
    color: var(--gray);
  }
  .about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
  }
  .about-text {
    padding-right: 16px;
  }
  .about-text p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
  }
  .about-text p:first-child::first-letter {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 64px;
    float: left;
    line-height: 0.85;
    margin: 4px 12px 0 0;
  }
  .about-text .holders-lead {
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 12px;
    color: var(--black);
  }
  .about-text .holder-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .about-text .holder-perks li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--black);
  }
  .about-text .holder-perks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: var(--black);
    border-radius: 50%;
  }
  .about-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .pillar {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.06);
  }
  .pillar-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px;
  }
  .pillar h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
  }
  .pillar p {
    color: var(--gray);
    font-size: 12px;
    line-height: 1.55;
  }

  /* ============ BURN ============ */
  .burn-stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
  }
  .burn-stage h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 6vw, 84px);
    line-height: 0.9;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
  }
  .burn-stage h1 .light {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.4em;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: var(--gray);
    margin-left: 12px;
  }
  .burn-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
  }
  .burn-intro {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-right: 16px;
  }
  .burn-intro::-webkit-scrollbar { width: 4px; }
  .burn-intro::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); }
  .burn-intro::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 2px; }
  .burn-intro p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
  }
  .burn-intro .burn-lead {
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 8px;
  }
  .burn-intro .burn-tagline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-top: 12px;
    margin-bottom: 24px;
  }
  .burn-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    background: var(--black);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 8px 22px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.10);
  }
  .burn-btn:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-2px);
  }
  .burn-btn svg { width: 14px; height: 14px; }
  .burn-tiers {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .burn-tier {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.06);
  }
  .burn-tier-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 44px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--black);
    margin-bottom: 8px;
  }
  .burn-tier h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
  }
  .burn-tier p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.6;
  }

  /* ============ CUSTOMIZE (no-scroll) ============ */
  /* Customize page: stage spans the full frame so the preview can go edge-to-edge.
     The dock/badge/socials sit on top via z-index. */
  #page-customize .stage {
    top: 0; left: 0; right: 0; bottom: 0;
  }
  .customize-stage {
    position: relative;
    height: 100%;
    width: 100%;
  }
  .customize-canvas {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .customize-placeholder {
    text-align: center;
    color: var(--gray);
    padding: 32px;
    max-width: 360px;
  }
  .customize-placeholder svg {
    width: 64px; height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
  }
  .customize-placeholder h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--black);
    letter-spacing: 0.02em;
  }
  .customize-placeholder p {
    font-size: 12px;
    line-height: 1.6;
  }
  .customize-panel {
    position: absolute;
    top: 32px;
    right: 96px;
    bottom: 88px;
    width: 320px;
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 20;
    box-shadow: -10px 14px 36px rgba(0,0,0,0.22), -3px 4px 10px rgba(0,0,0,0.10);
  }
  .customize-panel h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-light);
    flex-shrink: 0;
  }
  .trait-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
  }
  .trait-scroll::-webkit-scrollbar { width: 4px; }
  .trait-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 2px; }
  .trait-group { margin-bottom: 16px; }
  .trait-group .group-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  .trait-group .group-name span:first-child {
    font-weight: 600;
    font-size: 12px;
  }
  .trait-group .group-name span:last-child {
    font-size: 9px;
    color: var(--gray);
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  .trait-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .trait-opt {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: #f5f5f5;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--gray);
  }
  /* Layered preview stack inside .customize-canvas — sits inside the
     frame with breathing room from the black border. */
  .preview-stack {
    position: absolute;
    inset: 12px;
  }
  .preview-stack .layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    border-radius: 40px;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* Backgrounds layer fills the whole frame (no edge gaps) */
  .preview-stack .layer[data-cat="Backgrounds"] {
    object-fit: cover;
    object-position: center;
  }
  /* Trait category sections */
  .trait-cat {
    margin-bottom: 16px;
  }
  .trait-cat-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    cursor: pointer;
    user-select: none;
  }
  .trait-cat-head .cat-name {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .trait-cat-head .cat-meta {
    font-size: 10px;
    color: var(--gray);
    letter-spacing: 0.1em;
  }
  .trait-cat-head .cat-toggle {
    font-size: 11px;
    color: var(--gray);
    margin-left: 8px;
    transition: transform 0.2s ease;
  }
  .trait-cat.collapsed .cat-toggle { transform: rotate(-90deg); }
  .trait-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px 2px;
  }
  .trait-cat.collapsed .trait-grid { display: none; }
  .trait-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: #fafafa;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #ececec;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
    position: relative;
    contain: layout paint;
  }
  .trait-thumb:hover {
    transform: translateY(-1px);
    border-color: rgba(0,0,0,0.35);
    background: #fff;
  }
  .trait-thumb.selected {
    border-color: var(--black);
    background: #fff;
  }
  .trait-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    display: block;
  }
  /* Per-category focal points so each thumb shows the part that matters */
  .trait-cat[data-cat="Head"] .trait-thumb img    { object-position: 50% 12%; }
  .trait-cat[data-cat="Eyes"] .trait-thumb img    { object-position: 50% 32%; }
  .trait-cat[data-cat="Mouth"] .trait-thumb img   { object-position: 50% 40%; }
  .trait-cat[data-cat="Face"] .trait-thumb img    { object-position: 50% 30%; }
  .trait-cat[data-cat="HandTraits"] .trait-thumb img { object-position: 50% 65%; }
  .trait-cat[data-cat="Clothing"] .trait-thumb img   { object-position: 50% 55%; }
  .trait-cat[data-cat="BackTraits"] .trait-thumb img { object-position: 50% 50%; }
  .trait-cat[data-cat="Body"] .trait-thumb img       { object-position: 50% 50%; }
  .trait-cat[data-cat="Backgrounds"] .trait-thumb img { object-position: 50% 50%; }
  .trait-thumb.none-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--gray);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: repeating-linear-gradient(
      45deg, #f8f8f8, #f8f8f8 4px, #ececec 4px, #ececec 8px
    );
  }
  /* Customize action buttons */
  .customize-actions {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    flex-shrink: 0;
  }
  .btn-action {
    flex: 1;
    padding: 10px 8px;
    background: var(--white);
    border: 1px solid var(--black);
    color: var(--black);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  }
  .btn-action:hover { background: var(--black); color: var(--white); }
  .btn-action:active { transform: translateY(1px); }
  .btn-action.btn-primary { background: var(--black); color: var(--white); }
  .btn-action.btn-primary:hover { background: var(--white); color: var(--black); }
  .customize-soon {
    margin-top: 12px;
    padding: 10px;
    background: var(--black);
    color: var(--white);
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 8px;
    font-weight: 500;
    flex-shrink: 0;
  }

  /* ============ WALL (no-scroll) ============ */
  .wall-stage {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 20px;
    height: 100%;
    width: 100%;
  }
  .canvas-frame {
    background: var(--white);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
  }
  #drawCanvas {
    width: 100%; height: 100%;
    display: block;
    cursor: crosshair;
    background: var(--white);
  }
  .canvas-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--black);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    pointer-events: none;
    font-weight: 500;
    z-index: 2;
  }
  .wall-tools {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
  }
  .wall-tools h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-light);
  }
  .tool-row { margin-bottom: 18px; }
  .tool-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 500;
  }
  .tool-label span:last-child { color: var(--black); }
  .tool-colors { display: flex; gap: 6px; }
  .color-swatch {
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid var(--gray-light);
  }
  .color-swatch:hover { transform: scale(1.1); }
  .color-swatch.active {
    border-color: var(--black);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--black);
  }
  .tool-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--gray-light);
    outline: none;
    border-radius: 2px;
  }
  .tool-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    background: var(--black);
    cursor: pointer;
    border-radius: 50%;
  }
  .tool-slider::-moz-range-thumb {
    width: 14px; height: 14px;
    background: var(--black);
    border-radius: 50%;
    border: none;
    cursor: pointer;
  }
  .wall-actions {
    margin-top: auto;
    display: grid;
    gap: 6px;
  }
  .btn-fill {
    padding: 12px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-fill:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.2); }
  .btn-out {
    padding: 12px;
    background: transparent;
    color: var(--black);
    border: 1px solid var(--black);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-out:hover { background: var(--black); color: var(--white); }

  /* ============ TEAM (replaces wall) ============ */
  .team-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }
  .team-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 6vw, 80px);
    line-height: 0.9;
    letter-spacing: 0.04em;
    color: var(--black);
    flex-shrink: 0;
  }
  .team-title .light {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.4em;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: var(--gray);
    margin-left: 8px;
  }
  .team-grid {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
  }
  .team-card {
    background: var(--white);
    padding: 14px 14px 16px 14px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.20), 0 3px 8px rgba(0,0,0,0.10);
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.25s ease;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .team-card:nth-child(1) { transform: rotate(-3deg); }
  .team-card:nth-child(2) { transform: rotate(2deg); }
  .team-card:nth-child(3) { transform: rotate(-2deg); }
  .team-card:nth-child(4) { transform: rotate(3deg); }
  .team-card:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.03);
    box-shadow: 0 24px 50px rgba(0,0,0,0.30), 0 6px 14px rgba(0,0,0,0.14);
    z-index: 5;
  }
  .team-img {
    width: 192px;
    height: 192px;
    object-fit: cover;
    display: block;
    background: var(--gray-light);
  }
  .team-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 0.08em;
    color: var(--black);
    margin-top: 14px;
    text-align: center;
  }
  .team-role {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 4px;
    text-align: center;
  }
  .team-x {
    margin-top: 10px;
    width: 36px;
    height: 36px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  }
  .team-x:hover { transform: translateY(-2px) rotate(-6deg); background: var(--white); }
  .team-x svg { width: 18px; height: 18px; }
  .team-x .icon-fill { fill: var(--white); transition: fill 0.2s; }
  .team-x:hover .icon-fill { fill: var(--black); }

  /* SMALL SCREEN WARNING (since site is fixed-viewport) */
  .small-screen-msg {
    display: none;
  }
  @media (max-width: 900px) or (max-height: 600px) {
    .frame { display: none; }
    .small-screen-msg {
      display: flex;
      align-items: center;
      justify-content: center;
      height: calc(100vh - 32px);
      background: var(--bg);
      border-radius: 24px;
      text-align: center;
      padding: 40px;
      flex-direction: column;
      gap: 16px;
    }
    .small-screen-msg svg {
      width: 60px; height: 60px;
    }
    .small-screen-msg h2 {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 32px;
      letter-spacing: 0.02em;
    }
    .small-screen-msg p {
      font-size: 13px;
      color: var(--gray);
      max-width: 320px;
      line-height: 1.6;
    }
  }

  /* ============ LOADER ============ */
  .loader {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
  }
  .loader.hidden {
    opacity: 0;
    visibility: hidden;
  }
  .loader-svg {
    width: 160px;
    height: auto;
  }
  .loader-svg path {
    fill: transparent;
    stroke: var(--black);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: loaderDraw 1.4s ease forwards, loaderFill 0.5s ease forwards;
  }
  .loader-svg path:nth-child(1) { animation-delay: 0s, 1.4s; }
  .loader-svg path:nth-child(2) { animation-delay: 0.18s, 1.58s; }
  .loader-svg path:nth-child(3) { animation-delay: 0.36s, 1.76s; }
  .loader-svg path:nth-child(4) { animation-delay: 0.54s, 1.94s; }
  .loader-svg path:nth-child(5) { animation-delay: 0.72s, 2.12s; }
  @keyframes loaderDraw {
    to { stroke-dashoffset: 0; }
  }
  @keyframes loaderFill {
    from { fill: transparent; }
    to { fill: var(--black); }
  }
