    :root {
      --deep: #0d2218;
      --forest: #1a3a25;
      --dawn: #e8f4ec;
      --gold: #c9a84c;
      --gold-light: #e8c97a;
      --mist: #a8c5b0;
      --sage: #5a8c6a;
    }

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

    body {
      background-color: var(--deep);
      color: var(--dawn);
      font-family: 'Crimson Pro', Georgia, serif;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 5.5rem 2rem 2rem;
      text-align: center;
    }

    .card {
      margin-top: auto;
      margin-bottom: auto;
      max-width: 600px;
      width: 100%;
      background: rgba(26, 58, 37, 0.45);
      border: 1px solid rgba(201, 168, 76, 0.35);
      border-radius: 12px;
      padding: 2.5rem 2rem;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(45, 90, 61, 0.25);
    }

    h1 {
      font-family: 'Cinzel', serif;
      color: var(--gold-light);
      font-size: 1.8rem;
      margin-bottom: 0.5rem;
      letter-spacing: 0.08em;
    }

    p.subtitle {
      color: var(--mist);
      font-size: 1.05rem;
      margin-bottom: 1.5rem;
      font-style: italic;
    }

    .auth-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-top: 1.5rem;
      min-height: 120px;
    }

    .sign-in-btn {
      background: var(--gold);
      color: #0d2218;
      border: none;
      font-family: 'Cinzel', serif;
      font-weight: 700;
      font-size: 1rem;
      letter-spacing: 0.1em;
      padding: 0.9rem 2rem;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
    }

    .sign-in-btn:hover {
      background: var(--gold-light);
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(201, 168, 76, 0.45);
    }

    /* Secret stage: Empty by default until server responds */
    #game-stage {
      display: none;
      animation: fadeIn 0.5s ease;
    }

    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(201, 168, 76, 0.2);
      padding-bottom: 0.8rem;
      margin-bottom: 1.5rem;
    }

    .server-payload-box {
      background: rgba(13, 34, 24, 0.85);
      border: 1px solid rgba(90, 140, 106, 0.5);
      border-radius: 8px;
      padding: 1.5rem;
      text-align: left;
    }

    .badge {
      display: inline-block;
      background: rgba(90, 140, 106, 0.25);
      color: #9fe5b5;
      padding: 0.3rem 0.8rem;
      border-radius: 20px;
      font-size: 0.85rem;
      margin-bottom: 1rem;
      border: 1px solid rgba(90, 140, 106, 0.5);
    }

    .sign-out-btn {
      background: transparent;
      border: 1px solid rgba(201, 168, 76, 0.4);
      color: var(--gold-light);
      padding: 0.35rem 0.9rem;
      border-radius: 6px;
      cursor: pointer;
      font-family: 'Cinzel', serif;
      font-size: 0.85rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      transition: all 0.2s;
    }

    .sign-out-btn:hover {
      border-color: var(--gold);
      background: rgba(201, 168, 76, 0.15);
    }

    .admin-link-btn {
      background: rgba(26, 58, 37, 0.7);
      border: 1px solid var(--gold);
      color: var(--gold-light);
      padding: 0.35rem 0.9rem;
      border-radius: 6px;
      font-family: 'Cinzel', serif;
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-decoration: none;
      box-shadow: 0 0 10px rgba(201, 168, 76, 0.25);
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      cursor: pointer;
    }

    .admin-link-btn:hover {
      background: rgba(201, 168, 76, 0.25);
      border-color: var(--gold-light);
      transform: translateY(-1px);
    }

    .secret-title {
      font-family: 'Cinzel', serif;
      color: var(--gold-light);
      margin-bottom: 0.5rem;
    }

    .secret-message {
      color: var(--dawn);
      line-height: 1.6;
      margin-bottom: 0.8rem;
    }

    .feature-list {
      margin-bottom: 0.8rem;
      list-style: none;
      padding: 0;
    }

    .feature-list li {
      margin-left: 1.2rem;
      color: #b7e4c7;
    }

    .server-time {
      font-size: 0.8rem;
      color: var(--sage);
    }

    .error-box {
      border-color: #ff6b6b;
    }

    .error-badge {
      background: rgba(255, 107, 107, 0.2);
      color: #ff8888;
      border-color: #ff6b6b;
    }

    .error-text {
      color: #ff8888;
      line-height: 1.6;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Clerk Login Input & Placeholder High Contrast */
    #clerk-login-box input:not([data-input-otp]):not([type="hidden"]) {
      color: #e8f4ec !important;
      background-color: #1a3a25 !important;
    }

    #clerk-login-box input::placeholder,
    #clerk-login-box input::-webkit-input-placeholder,
    #clerk-login-box input::-moz-placeholder,
    #clerk-login-box input:-ms-input-placeholder,
    .cl-formFieldInput::placeholder {
      color: #bde0c9 !important;
      opacity: 0.85 !important;
    }

    /* Verification code / OTP overlay inputs must remain transparent */
    #clerk-login-box input[data-input-otp],
    #clerk-login-box input[data-otp-input] {
      color: transparent !important;
      background: transparent !important;
      opacity: 0 !important;
    }

    /* OTP Container: Flex row so digit boxes sit side by side */
    .cl-otpCodeFieldInputs,
    [data-input-otp-container] {
      display: flex !important;
      flex-direction: row !important;
      justify-content: center !important;
      align-items: center !important;
      gap: 0.5rem !important;
      position: relative !important;
      margin: 1.2rem auto !important;
    }

    /* OTP Individual digit boxes */
    .cl-otpCodeFieldInput,
    .cl-otpCodeFieldInputs input,
    [data-input-otp-slot] {
      position: relative !important;
      width: 2.6rem !important;
      height: 3.2rem !important;
      text-align: center !important;
      font-size: 1.3rem !important;
      font-weight: 700 !important;
      color: #e8f4ec !important;
      background-color: #1a3a25 !important;
      border: 1px solid rgba(201, 168, 76, 0.4) !important;
      border-radius: 6px !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

    .cl-otpCodeFieldInput:focus,
    .cl-otpCodeFieldInputs input:focus,
    [data-input-otp-slot][data-status="selected"],
    [data-input-otp-slot][data-status="cursor"] {
      border-color: #c9a84c !important;
      box-shadow: 0 0 10px rgba(201, 168, 76, 0.45) !important;
      outline: none !important;
    }
