:root {
      --bg: #000000;
      --panel: #0a1620;
      --teal: #1a8a9a;
      --teal-bright: #2ec4b6;
      --teal-deep: #0d4a55;
      --orange: #f5a623;
      --orange-hot: #ff8a00;
      --pink: #ff6b9d;
      --green: #7ed321;
      --green-deep: #4a9e0f;
      --green-gloss: #a8e063;
      --cream: #fff8e7;
      --muted: #8aa0a8;
      --shadow: rgba(0, 0, 0, 0.55);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html, body {
      min-height: 100%;
      background: var(--bg);
      color: var(--cream);
      font-family: "Nunito", system-ui, sans-serif;
      overflow-x: hidden;
    }

    body {
      display: flex;
      flex-direction: column;
      align-items: center;
      min-height: 100vh;
      position: relative;
    }

    /* Ambient glow blobs */
    .ambience {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
    }

    .ambience::before,
    .ambience::after {
      content: "";
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.22;
      animation: drift 14s ease-in-out infinite alternate;
    }

    .ambience::before {
      width: 420px;
      height: 420px;
      background: var(--teal-bright);
      top: -10%;
      left: 15%;
    }

    .ambience::after {
      width: 380px;
      height: 380px;
      background: var(--orange-hot);
      bottom: -5%;
      right: 10%;
      animation-delay: -4s;
      opacity: 0.16;
    }

    @keyframes drift {
      from { transform: translate(0, 0) scale(1); }
      to { transform: translate(40px, 30px) scale(1.12); }
    }

    /* Subtle CRT scanlines */
    .scanlines {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 50;
      background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, 0.12) 2px,
        rgba(0, 0, 0, 0.12) 4px
      );
      opacity: 0.35;
      mix-blend-mode: multiply;
    }

    .vignette {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 49;
      background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.65) 100%);
    }

    /* Floating pixel dust */
    .pixels {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 1;
      overflow: hidden;
    }

    .pixel {
      position: absolute;
      width: 4px;
      height: 4px;
      image-rendering: pixelated;
      opacity: 0;
      animation: float-pixel linear infinite;
    }

    @keyframes float-pixel {
      0% { opacity: 0; transform: translateY(20px) scale(0.6); }
      12% { opacity: 0.85; }
      80% { opacity: 0.5; }
      100% { opacity: 0; transform: translateY(-100vh) scale(1.2); }
    }

    /* Header */
    .topbar {
      position: relative;
      z-index: 10;
      width: min(980px, 94vw);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.4rem 0 1rem;
      animation: fade-down 0.8s ease-out both;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
    }

    .brand img {
    height: 150px;
    filter: drop-shadow(0 4px 0 #000) drop-shadow(0 8px 18px rgba(46, 196, 182, 0.35));
    animation: logo-bob 3.2s ease-in-out infinite;
    image-rendering: auto;
    position: absolute;
    margin-top: -24px;
    margin-left: -26px;
}

    @keyframes logo-bob {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
    }

    .status-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      padding: 0.55rem 0.95rem;
      background: linear-gradient(180deg, #1c2a32 0%, #0e161c 100%);
      border: 2px solid #2a3d48;
      border-radius: 999px;
      box-shadow: 0 4px 0 #05080a, inset 0 1px 0 rgba(255, 255, 255, 0.08);
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .status-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--orange);
      box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25), 0 0 12px var(--orange);
      animation: pulse-dot 1.4s ease-in-out infinite;
    }

    @keyframes pulse-dot {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(0.85); opacity: 0.7; }
    }

    /* Main stage */
    .stage {
      position: relative;
      z-index: 10;
      width: min(980px, 94vw);
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding-bottom: 2rem;
      animation: fade-up 0.9s ease-out 0.15s both;
    }

    @keyframes fade-up {
      from { opacity: 0; transform: translateY(24px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fade-down {
      from { opacity: 0; transform: translateY(-16px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Hero panel � Habbo-style banner */
    .hero {
      position: relative;
      width: 100%;
      border-radius: 14px;
      overflow: hidden;
      border: 3px solid #1e3a42;
      box-shadow:
        0 0 0 2px #000,
        0 12px 0 #050505,
        0 24px 60px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
      background: var(--panel);
      isolation: isolate;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      background:
        linear-gradient(160deg, rgba(13, 74, 85, 0.92) 0%, rgba(8, 28, 36, 0.98) 55%, rgba(5, 14, 18, 1) 100%),
        repeating-linear-gradient(
          -30deg,
          transparent 0,
          transparent 18px,
          rgba(46, 196, 182, 0.04) 18px,
          rgba(46, 196, 182, 0.04) 19px
        ),
        repeating-linear-gradient(
          30deg,
          transparent 0,
          transparent 18px,
          rgba(46, 196, 182, 0.04) 18px,
          rgba(46, 196, 182, 0.04) 19px
        );
    }

    /* Isometric floor tiles */
    .iso-floor {
      position: absolute;
      inset: 0;
      z-index: 1;
      opacity: 0.45;
      background-image:
        linear-gradient(30deg, #0d3d48 12%, transparent 12.5%, transparent 87%, #0d3d48 87.5%, #0d3d48),
        linear-gradient(150deg, #0d3d48 12%, transparent 12.5%, transparent 87%, #0d3d48 87.5%, #0d3d48),
        linear-gradient(30deg, #123e48 12%, transparent 12.5%, transparent 87%, #123e48 87.5%, #123e48),
        linear-gradient(150deg, #123e48 12%, transparent 12.5%, transparent 87%, #123e48 87.5%, #123e48),
        linear-gradient(60deg, #16485477 25%, transparent 25.5%, transparent 75%, #16485477 75%, #16485477),
        linear-gradient(60deg, #16485477 25%, transparent 25.5%, transparent 75%, #16485477 75%, #16485477);
      background-size: 40px 70px;
      background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
      mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
      animation: floor-shift 28s linear infinite;
    }

    @keyframes floor-shift {
      from { background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px; }
      to { background-position: 40px 70px, 40px 70px, 60px 105px, 60px 105px, 40px 70px, 60px 105px; }
    }

    /* Decorative isometric props (CSS shapes) */
    .props {
      position: absolute;
      inset: 0;
      z-index: 2;
      pointer-events: none;
      overflow: hidden;
    }

    .prop {
      position: absolute;
      image-rendering: pixelated;
      animation: float-prop 5s ease-in-out infinite;
    }

    .prop:nth-child(2) { animation-delay: -1.2s; }
    .prop:nth-child(3) { animation-delay: -2.4s; }
    .prop:nth-child(4) { animation-delay: -3.1s; }
    .prop:nth-child(5) { animation-delay: -0.7s; }

    @keyframes float-prop {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }

    /* Pixel avatar silhouettes */
    .avatar {
      width: 48px;
      height: 72px;
      position: relative;
    }

    .avatar::before {
      content: "";
      position: absolute;
      left: 50%;
      top: 0;
      width: 22px;
      height: 22px;
      transform: translateX(-50%);
      background: var(--skin, #f0c8a0);
      border: 2px solid #000;
      box-shadow: inset -3px -3px 0 rgba(0,0,0,0.15);
    }

    .avatar::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 20px;
      width: 28px;
      height: 34px;
      transform: translateX(-50%);
      background: var(--shirt, var(--teal-bright));
      border: 2px solid #000;
      box-shadow: inset -4px -4px 0 rgba(0,0,0,0.2);
    }

    .avatar .legs {
      position: absolute;
      left: 50%;
      bottom: 0;
      width: 26px;
      height: 20px;
      transform: translateX(-50%);
      background: var(--pants, #2c3e50);
      border: 2px solid #000;
      clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 100%, 55% 40%, 45% 40%, 45% 100%, 0 100%);
    }

    .avatar.a1 { left: 8%; bottom: 18%; --shirt: #ff6b9d; --pants: #3d2b1f; }
    .avatar.a2 { left: 18%; bottom: 12%; --shirt: #7ed321; --pants: #1a1a2e; --skin: #c68642; animation-delay: -1.5s; }
    .avatar.a3 { right: 12%; bottom: 16%; left: auto; --shirt: #f5a623; --pants: #16303a; animation-delay: -2.2s; }
    .avatar.a4 { right: 22%; bottom: 10%; left: auto; --shirt: #5dade2; --pants: #4a235a; --skin: #d4a574; animation-delay: -0.5s; }

    /* Fountain / center decoration */
    .fountain {
      position: absolute;
      left: 50%;
      bottom: 14%;
      transform: translateX(-50%);
      width: 90px;
      height: 70px;
      z-index: 2;
      opacity: 0.85;
    }

    .fountain .basin {
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%) scaleY(0.55);
      width: 86px;
      height: 86px;
      border-radius: 50%;
      background: radial-gradient(circle at 40% 35%, #4ecdc4, #1a6b75 60%, #0a3a42);
      border: 3px solid #000;
      box-shadow: inset 0 -8px 0 rgba(0,0,0,0.25), 0 6px 0 #000;
    }

    .fountain .spout {
      position: absolute;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%);
      width: 14px;
      height: 28px;
      background: linear-gradient(90deg, #8d6e63, #bcaaa4, #8d6e63);
      border: 2px solid #000;
      border-radius: 2px;
    }

    .fountain .water {
      position: absolute;
      bottom: 52px;
      left: 50%;
      width: 6px;
      height: 18px;
      margin-left: -3px;
      background: linear-gradient(to top, transparent, #7fdbda);
      border-radius: 3px;
      animation: spout 1.1s ease-in-out infinite;
    }

    .fountain .water:nth-child(4) { margin-left: -10px; animation-delay: 0.2s; height: 14px; }
    .fountain .water:nth-child(5) { margin-left: 4px; animation-delay: 0.4s; height: 12px; }

    @keyframes spout {
      0%, 100% { opacity: 0.4; transform: translateY(0) scaleY(1); }
      50% { opacity: 1; transform: translateY(-6px) scaleY(1.2); }
    }

    /* Phone booth nod */
    .booth {
      position: absolute;
      right: 32%;
      bottom: 20%;
      width: 36px;
      height: 64px;
      background: linear-gradient(90deg, #c0392b, #e74c3c 40%, #922b21);
      border: 2px solid #000;
      box-shadow: 4px 4px 0 #000, inset 0 0 0 3px rgba(255,255,255,0.08);
      z-index: 2;
      animation: float-prop 5.5s ease-in-out infinite;
      animation-delay: -1.8s;
    }

    .booth::before {
      content: "";
      position: absolute;
      top: 8px;
      left: 5px;
      right: 5px;
      height: 22px;
      background: rgba(173, 216, 230, 0.45);
      border: 1px solid #000;
      box-shadow: inset 0 0 8px rgba(255,255,255,0.3);
    }

    .booth::after {
      content: "";
      position: absolute;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      width: 8px;
      height: 8px;
      background: #f1c40f;
      border: 1px solid #000;
      border-radius: 50%;
      box-shadow: 0 0 8px #f1c40f;
    }

    /* Content overlay */
    .hero-content {
      position: relative;
      z-index: 5;
      display: grid;
      grid-template-columns: 1fr 1.1fr;
      gap: 1.5rem;
      align-items: center;
      min-height: clamp(340px, 52vh, 460px);
      padding: clamp(1.5rem, 4vw, 2.75rem);
    }

    .hero-copy {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      max-width: 380px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      font-family: "Press Start 2P", monospace;
      font-size: 0.55rem;
      letter-spacing: 0.06em;
      color: #fffcf6;
      background: rgba(0, 0, 0, 0.45);
      border: 2px solid #fffcf7;
      padding: 0.55rem 0.7rem;
      box-shadow: 3px 3px 0 #000;
      text-transform: uppercase;
      animation: badge-glow 2.4s ease-in-out infinite;
    }

    @keyframes badge-gloss {
      0%, 100% { box-shadow: 3px 3px 0 #000, 0 0 0 rgba(245, 166, 35, 0); }
      50% { box-shadow: 3px 3px 0 #000, 0 0 18px rgba(245, 166, 35, 0.45); }
    }

    @keyframes badge-glow {
      0%, 100% { box-shadow: 3px 3px 0 #000, 0 0 0 rgba(245, 166, 35, 0); }
      50% { box-shadow: 3px 3px 0 #000, 0 0 18px rgba(245, 166, 35, 0.45); }
    }

    .badge .wrench {
      display: inline-block;
      animation: spin-wrench 3s ease-in-out infinite;
    }

    @keyframes spin-wrench {
      0%, 70%, 100% { transform: rotate(0deg); }
      80% { transform: rotate(-25deg); }
      90% { transform: rotate(15deg); }
    }

    h1 {
      font-size: clamp(2rem, 5vw, 3.1rem);
      font-weight: 900;
      line-height: 1.05;
      letter-spacing: -0.02em;
      text-shadow: 0 3px 0 #ffffff, 0 6px 20px rgb(0 0 0);
    }

    h1 span {
      display: block;
      background: linear-gradient(180deg, #fff 20%, #c8dde3 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    h1 .accent {
      background: linear-gradient(180deg, var(--teal-bright) 0%, #1a8a9a 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      filter: drop-shadow(0 2px 0 rgba(0,0,0,0.5));
    }

    .lead {
      font-size: clamp(0.95rem, 2vw, 1.1rem);
      font-weight: 700;
      color: #fff;
      line-height: 1.45;
      text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         0   -1px 0 #000,
         0    1px 0 #000,
        -1px  0   0 #000,
         1px  0   0 #000,
         0    2px 4px rgba(0, 0, 0, 0.55);
      max-width: 32ch;
    }

    /* Glossy Habbo-style CTA (info, not login) */
    .cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      margin-top: 0.35rem;
      padding: 0.85rem 1.6rem;
      font-family: "Nunito", sans-serif;
      font-size: 1.15rem;
      font-weight: 900;
      color: #ffffff;
      text-decoration: none;
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
      border: 2px solid #1a3d08;
      border-radius: 8px;
      cursor: default;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 42%),
        linear-gradient(180deg, var(--green-gloss) 0%, var(--green) 48%, var(--green-deep) 100%);
      box-shadow:
        0 5px 0 #2d5a0a,
        0 8px 18px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
      transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
      animation: cta-idle 2.8s ease-in-out infinite;
    }

    .cta:hover {
      transform: translateY(-2px);
      filter: brightness(1.06);
      box-shadow:
        0 7px 0 #2d5a0a,
        0 12px 22px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
      animation: none;
    }

    .cta:active {
      transform: translateY(3px);
      box-shadow:
        0 2px 0 #2d5a0a,
        0 4px 10px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    @keyframes cta-idle {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-3px); }
    }

    .cta-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.75rem;
      margin-top: 0.35rem;
    }

    .cta-row .cta {
      margin-top: 0;
    }

    .discord-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      padding: 0.72rem 1.25rem;
      font-family: "Nunito", sans-serif;
      font-size: 1.05rem;
      font-weight: 900;
      color: #fff;
      text-decoration: none;
      text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
      border: 2px solid #1a1b4b;
      border-radius: 8px;
      cursor: pointer;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 42%),
        linear-gradient(180deg, #7289da 0%, #5865f2 48%, #4752c4 100%);
      box-shadow:
        0 5px 0 #2f365f,
        0 8px 18px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
      transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    }

    .discord-btn:hover {
      transform: translateY(-2px);
      filter: brightness(1.08);
      box-shadow:
        0 7px 0 #2f365f,
        0 12px 22px rgba(88, 101, 242, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    .discord-btn:active {
      transform: translateY(3px);
      box-shadow:
        0 2px 0 #2f365f,
        0 4px 10px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .discord-btn img {
      width: 26px;
      height: 26px;
      object-fit: contain;
      filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35));
    }

    /* Right panel � speech bubble + progress */
    .hero-aside {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 1.25rem;
      justify-self: end;
    }

    .bubble {
      position: relative;
      max-width: 280px;
      padding: 1rem 1.15rem;
      background: #fff;
      color: #1a1a1a;
      border: 3px solid #000;
      border-radius: 16px;
      box-shadow: 5px 5px 0 #000;
      font-weight: 800;
      font-size: 0.95rem;
      line-height: 1.35;
      animation: bubble-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
    }

    .bubble::after {
      content: "";
      position: absolute;
      left: 28px;
      bottom: -14px;
      width: 18px;
      height: 18px;
      background: #fff;
      border-right: 3px solid #000;
      border-bottom: 3px solid #000;
      transform: rotate(45deg);
    }

    .bubble strong {
      color: #0d7377;
      display: block;
      font-size: 0.78rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 0.25rem;
    }

    @keyframes bubble-pop {
      from { opacity: 0; transform: scale(0.6) translateY(10px); }
      to { opacity: 1; transform: scale(1) translateY(0); }
    }

    .panel-card {
      width: min(280px, 100%);
      background: rgba(0, 0, 0, 0.55);
      border: 2px solid rgba(46, 196, 182, 0.35);
      border-radius: 12px;
      padding: 1rem 1.1rem;
      backdrop-filter: blur(8px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .panel-card h2 {
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--teal-bright);
      margin-bottom: 0.75rem;
    }

    .progress-track {
      height: 14px;
      background: #0a1216;
      border: 2px solid #000;
      border-radius: 6px;
      overflow: hidden;
      box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
      margin-bottom: 0.65rem;
    }

    .progress-bar {
      height: 100%;
      width: 62%;
      border-radius: 3px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 45%),
        repeating-linear-gradient(
          90deg,
          var(--teal-bright) 0,
          var(--teal-bright) 8px,
          #1a9e92 8px,
          #1a9e92 16px
        );
      box-shadow: 0 0 12px rgba(46, 196, 182, 0.5);
      animation: progress-slide 1.8s linear infinite, progress-pulse 2.4s ease-in-out infinite;
      background-size: auto, 32px 100%;
    }

    @keyframes progress-slide {
      from { background-position: 0 0, 0 0; }
      to { background-position: 0 0, 32px 0; }
    }

    @keyframes progress-pulse {
      0%, 100% { width: 58%; }
      50% { width: 68%; }
    }

    .meta-row {
      display: flex;
      justify-content: space-between;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--muted);
    }

    .meta-row span:last-child {
      color: var(--cream);
    }

    /* Bottom ticker bar inside hero */
    .hero-ticker {
      position: relative;
      z-index: 6;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.5rem;
      flex-wrap: wrap;
      padding: 0.85rem 1.25rem;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.88));
      border-top: 2px solid rgba(46, 196, 182, 0.2);
      font-weight: 800;
      font-size: clamp(0.8rem, 1.8vw, 0.95rem);
      text-shadow: 0 2px 0 #000;
    }

    .hero-ticker .sep {
      color: var(--teal);
      opacity: 0.6;
    }

    .hero-ticker em {
      font-style: normal;
      color: var(--orange);
    }

    /* Nav / footer Habbo-style */
    .site-nav {
      position: relative;
      z-index: 10;
      width: min(980px, 94vw);
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.35rem 0.15rem;
      padding: 1.1rem 0 0.5rem;
      font-size: 0.88rem;
      font-weight: 800;
      animation: fade-up 0.9s ease-out 0.35s both;
    }

    .site-nav a {
      color: #9ec5cc;
      text-decoration: none;
      padding: 0.2rem 0.55rem;
      transition: color 0.15s ease;
    }

    .site-nav a:hover {
      color: var(--orange);
      text-shadow: 0 0 12px rgba(245, 166, 35, 0.4);
    }

    .site-nav .pipe {
      color: #3a555c;
      user-select: none;
      padding: 0.2rem 0.1rem;
    }

    .footer {
      position: relative;
      z-index: 10;
      width: min(980px, 94vw);
      text-align: center;
      padding: 0.75rem 0 1.75rem;
      font-size: 0.78rem;
      font-weight: 700;
      color: #4a656c;
      animation: fade-up 0.9s ease-out 0.45s both;
    }

    .footer strong {
      color: #6a8a92;
    }

    /* Floating pixel gear / brick accents */
    .tools {
      position: absolute;
      z-index: 4;
      inset: 0;
      pointer-events: none;
    }

    .tool {
      position: absolute;
      width: 18px;
      height: 18px;
      background: var(--orange);
      border: 2px solid #000;
      box-shadow: 2px 2px 0 #000, inset -3px -3px 0 rgba(0,0,0,0.2);
      opacity: 0.75;
      animation: tool-spin 10s linear infinite;
    }

    .tool.t1 {
      top: 16%;
      left: 44%;
      background: var(--teal-bright);
      border-radius: 3px;
    }

    .tool.t2 {
      top: 26%;
      right: 36%;
      width: 14px;
      height: 14px;
      background: var(--pink);
      animation-duration: 12s;
      animation-direction: reverse;
      clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
      border: none;
      box-shadow: none;
      outline: 2px solid #000;
    }

    .tool.t3 {
      top: 10%;
      right: 26%;
      width: 22px;
      height: 10px;
      background: var(--green);
      border-radius: 2px;
      animation-duration: 9s;
    }

    @keyframes tool-spin {
      from { transform: rotate(0deg) translateX(16px) rotate(0deg); }
      to { transform: rotate(360deg) translateX(16px) rotate(-360deg); }
    }

    .wrench-icon {
      display: inline-block;
      width: 12px;
      height: 12px;
      position: relative;
      margin-right: 2px;
      vertical-align: -1px;
    }

    .wrench-icon::before,
    .wrench-icon::after {
      content: "";
      position: absolute;
      background: var(--orange);
      border: 1px solid #000;
    }

    .wrench-icon::before {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      top: 0;
      left: 0;
      box-shadow: inset 0 0 0 2px var(--bg);
    }

    .wrench-icon::after {
      width: 3px;
      height: 9px;
      bottom: -1px;
      right: 1px;
      transform: rotate(40deg);
      border-radius: 1px;
    }

    /* Responsive */
    @media (max-width: 720px) {
      .hero-content {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.5rem 1.25rem 1.25rem;
      }

      .hero-copy {
        max-width: none;
        align-items: center;
        text-align: center;
      }

      .cta-row {
        justify-content: center;
      }

      .hero-aside {
        align-items: center;
        justify-self: center;
        width: 100%;
      }

      .bubble {
        text-align: left;
      }

      .panel-card {
        width: 100%;
      }

      .avatar, .fountain, .booth, .tools {
        opacity: 0.35;
      }

      .status-chip {
        font-size: 0.68rem;
        padding: 0.45rem 0.75rem;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

/* --- Auth entry points on the maintenance notice ------------------------- */

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  font-family: "Nunito", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.auth-btn:active { transform: translateY(3px); }

.auth-btn--login {
  border: 2px solid #0a3a42;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, var(--teal-bright) 0%, var(--teal) 48%, var(--teal-deep) 100%);
  box-shadow: 0 5px 0 #0a3a42, 0 8px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.auth-btn--login:hover {
  box-shadow: 0 7px 0 #0a3a42, 0 12px 22px rgba(46, 196, 182, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.auth-btn--login:active {
  box-shadow: 0 2px 0 #0a3a42, 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.auth-btn--register {
  border: 2px solid #7a4b02;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #ffc766 0%, var(--orange) 48%, var(--orange-hot) 100%);
  box-shadow: 0 5px 0 #7a4b02, 0 8px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.auth-btn--register:hover {
  box-shadow: 0 7px 0 #7a4b02, 0 12px 22px rgba(245, 166, 35, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.auth-btn--register:active {
  box-shadow: 0 2px 0 #7a4b02, 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* The auth modal renders the themed (Tailwind) login form, so keep the page's
   own font off it and just center the panel above the maintenance artwork. */
.auth-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }

/* Layout only. The panel's colours come from Tailwind utilities in the blade
   (bg-white dark:bg-gray-900 …) so it follows the same html.dark signal as the
   login form inside it — hardcoding them here left light-mode text on a white
   panel whenever the visitor was in dark mode. */
.auth-modal__panel { position: relative; width: 100%; max-width: 30rem; max-height: 88vh; overflow-y: auto; border-radius: 10px; padding: 1.5rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.auth-modal__close { position: absolute; top: 0.6rem; right: 0.7rem; border: 0; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.auth-modal__title { margin-bottom: 1rem; }
.auth-modal__title h2 { font-family: "Nunito", sans-serif; font-size: 1.5rem; font-weight: 900; }

/* This stylesheet loads after the theme bundle, so the page reset at the top
   (`* { padding: 0 }`) also strips the padding @tailwindcss/forms gives inputs
   and left the placeholders glued to the border. Restore it, scoped to the
   modal so the artwork's own reset is untouched. */
.auth-modal__panel input,
.auth-modal__panel select,
.auth-modal__panel textarea {
  padding: 0.65rem 0.9rem;
  line-height: 1.4;
}

.auth-modal__panel input[type="checkbox"],
.auth-modal__panel input[type="radio"] { padding: 0; }

/* The turnstile widget is an iframe; keep the reset from squashing its box. */
.auth-modal__panel iframe { max-width: 100%; }

/* --- Compact CTA row ----------------------------------------------------- *
 * The four pills used to wrap onto three rows, which pushed the hero copy
 * down and drove the logo off screen. Keep them on one line and shrink the
 * type/padding to match; below 900px wrapping is allowed again so nothing
 * overflows on a phone.
 * ------------------------------------------------------------------------- */

.cta-row {
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cta-row > .cta,
.cta-row > div > .auth-btn,
.cta-row > .discord-btn {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  padding: 0.6rem 0.95rem;
  font-size: 0.95rem;
  border-radius: 7px;
  animation: none;
}

.cta-row > .cta,
.cta-row > div > .auth-btn { box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.cta-row > .discord-btn { box-shadow: 0 4px 0 #2f365f, inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.cta-row > .discord-btn img { width: 20px; height: 20px; }

/* Tighten the copy above the row so the logo keeps its place on short screens. */
.hero-copy .brand { margin-bottom: 0.35rem; }
.hero-copy h1 { margin-bottom: 0.25rem; }
.hero-copy .lead { margin-bottom: 0.35rem; }

@media (max-width: 900px) {
  .cta-row { flex-wrap: wrap; justify-content: center; }
  .cta-row > .cta,
  .cta-row > div > .auth-btn,
  .cta-row > .discord-btn { white-space: normal; }
}
