/* ═══════════════════════════════════════════════
   BASE.CSS — Design tokens, components, utilities
   Papelitos · Space Grotesk design system
════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  /* Colors — Primitives (from Figma: .Color - Primitives) */
  --c-black:    #000000;
  --c-white:    #FFFFFF;

  /* Neutral inverse scale (used on dark surfaces) */
  --c-gray-50:  #F1F6F9;  /* Neutral inv 99 */
  --c-gray-100: #DAE0E4;  /* Neutral inv 95 */
  --c-gray-200: #BDC5CC;  /* Neutral inv 90 */
  --c-gray-300: #9CA6AF;  /* Neutral inv 80 */
  --c-gray-400: #88929C;  /* Neutral inv 70 */
  --c-gray-500: #7B848E;  /* Neutral inv 60 */
  --c-gray-600: #606971;  /* Neutral inv 50 */
  --c-gray-700: #2F3337;  /* Neutral inv 30 */
  --c-gray-800: #212327;  /* Neutral inv 20 */
  --c-gray-900: #18191B;  /* Neutral inv 10 */

  /* Semantic surfaces (DSDark mode) */
  --c-surface-lowest:  #0C0C0E;  /* Neutral inv 01 */
  --c-surface-lower:   #131416;  /* Neutral inv 05 */
  --c-surface-low:     #212327;  /* Neutral inv 20 */
  --c-surface-disabled:#2F3337;  /* Neutral inv 30 */

  /* Semantic text (DSDark mode) */
  --c-text-header: #FFFFFF;       /* Neutral inv 100 */
  --c-text-body:   #9CA6AF;       /* Neutral inv 80 */
  --c-text-subtle: #7B848E;       /* Neutral inv 60 */
  --c-text-disabled:#494F55;      /* Neutral inv 40 */

  /* Brand — Kelly (Primary) */
  --c-brand:       #65AF41;  /* Kelly 50 */
  --c-brand-light: #91C86F;  /* Kelly inv 80 */
  --c-brand-dark:  #1A561A;  /* Kelly 80 */

  /* Semantic */
  --c-red:      #E5433C;  /* Cherry 50 */
  --c-green:    #4CA340;  /* Grass 50 */
  --c-blue:     #007AFF;

  /* Typography — Primitives */
  --font:           'Space Grotesk', sans-serif;
  --font-secondary: 'Satoshi', 'Space Grotesk', sans-serif;

  /* Spacing — 4px base (from Figma: Dimension/Space) */
  --space-xxs:  2px;
  --space-1x:   4px;
  --space-2x:   8px;
  --space-3x:  12px;
  --space-4x:  16px;
  --space-5x:  20px;
  --space-6x:  24px;
  --space-8x:  32px;
  --space-10x: 40px;
  --space-12x: 48px;
  --space-14x: 56px;
  --space-16x: 64px;
  --space-20x: 80px;

  /* Safe areas */
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 20px);

  /* Radii (from Figma: Dimension/Radius) */
  --radius-1x:   4px;   /* radius-1x */
  --radius-2x:   8px;   /* radius-2x */
  --radius-sm:  12px;    /* radius-3x */
  --radius-md:  16px;    /* radius-4x */
  --radius-lg:  32px;    /* radius-8x */
  --radius-pill: 999px;  /* radius-full */

  /* Border (from Figma: Dimension/Border) */
  --border-thin:  1px;  /* border-xxxs */
  --border-thick: 2px;  /* border-xxs */

  /* Effects (from Figma: Effects) */
  --blur-sm:  4px;   /* blur-1 */
  --blur-md: 40px;   /* blur-2 */
  --blur-lg: 400px;  /* blur-3 */
}

/* ── RESET ── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  font-family: var(--font);
  background: var(--c-black);
  color: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

/* ── SCREEN SYSTEM ── */
.screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  position: absolute;
  top: 0; left: 0;
  overflow: hidden;
}
.screen.active {
  display: flex;
}
.screen--dark  { background: var(--c-black);  color: var(--c-white); }
.screen--light { background: var(--c-white);  color: var(--c-black); }
.screen--scroll { height: 100vh; height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ── SCROLL AREA ── */
.scroll-area {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.scroll-area::-webkit-scrollbar { display: none; }

/* ── TYPOGRAPHY (from Figma: Typography - Mapped, Mobile mode) ── */
.t-display { font-size: clamp(48px, 13vw, 74px); font-weight: 700; line-height: 40px; letter-spacing: -1px; }       /* display/2xl */
.t-h1      { font-size: clamp(36px, 9vw, 48px);  font-weight: 700; line-height: 44px; letter-spacing: -0.72px; }    /* display/lg */
.t-h2      { font-size: clamp(24px, 6vw, 32px);  font-weight: 700; line-height: 36px; letter-spacing: -0.6px; }     /* display/md */
.t-h3      { font-size: 24px; font-weight: 700; line-height: 24px; letter-spacing: -0.48px; }                        /* display/sm */
.t-body    { font-size: 16px; font-weight: 400; line-height: 28px; }                                                 /* body/md */
.t-body-sm { font-size: 14px; font-weight: 400; line-height: 24px; }                                                 /* body/sm */
.t-body-xs { font-size: 12px; font-weight: 400; line-height: 20px; }                                                 /* body/xs */
.t-label   { font-family: var(--font-secondary); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; line-height: 16px; }  /* overline/md */
.t-label-sm { font-family: var(--font-secondary); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; line-height: 14px; } /* overline/sm */
.t-caption { font-family: var(--font-secondary); font-size: 12px; font-weight: 400; line-height: 16px; letter-spacing: 0.12px; }  /* caption/md */
.t-mono    { font-size: 42px; font-weight: 700; letter-spacing: 10px; }

.t-muted-dark  { color: rgba(255,255,255,0.4); }
.t-muted-light { color: rgba(0,0,0,0.4); }

/* ── BRAND HEADER ── */
.brand-header {
  padding: calc(var(--safe-top) + 16px) 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.brand-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-divider {
  height: 1px;
  margin: 10px 24px 0;
  flex-shrink: 0;
}
.screen--dark  .brand-divider { background: rgba(255,255,255,0.08); }
.screen--light .brand-divider { background: rgba(0,0,0,0.08); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  padding: 0 28px;
  height: 54px;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(.97); opacity: .85; }
.btn--full  { width: 100%; }

.btn--dark    { background: var(--c-black); color: var(--c-white); }
.btn--light   { background: var(--c-white); color: var(--c-black); }
.btn--ghost-light { background: transparent; border: var(--border-thin) solid rgba(255,255,255,0.3); color: var(--c-white); }
.btn--ghost-dark  { background: transparent; border: var(--border-thin) solid rgba(0,0,0,0.2); color: var(--c-black); }
.btn--danger  { background: rgba(255,59,48,0.12); color: var(--c-red); }

.btn:disabled,
.btn[disabled] { opacity: .3; pointer-events: none; }

/* Bottom fixed button area */
.btn-area {
  flex-shrink: 0;
  padding: 16px 24px;
  padding-bottom: calc(var(--safe-bottom) + 16px);
}
.screen--dark  .btn-area { background: linear-gradient(to top, var(--c-black) 70%, transparent); }
.screen--light .btn-area { background: linear-gradient(to top, var(--c-white) 70%, transparent); }
.btn-area--fixed {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
}

/* ── INPUTS ── */
/* Input group — Figma DS pattern */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 24px 0 0;
  position: relative;
  width: 100%;
}
.input-group__label {
  display: block;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  transition: all 0.2s ease;
}
.input-group--filled .input-group__label {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.screen--dark  .input-group__label { color: var(--c-text-body); }
.screen--light .input-group__label { color: rgba(0,0,0,0.45); }
.screen--dark  .input-group--filled .input-group__label { color: var(--c-gray-600); }

.input-group__field {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  padding: 4px 0 12px;
  outline: none;
  transition: border-color .2s;
}
.screen--dark  .input-group__field { border-color: var(--c-surface-low); color: var(--c-white); }
.screen--dark  .input-group__field:focus { border-color: rgba(255,255,255,0.5); }
.screen--light .input-group__field { border-color: rgba(0,0,0,0.12); color: var(--c-black); }
.screen--light .input-group__field:focus { border-color: rgba(0,0,0,0.5); }
.input-group__field::placeholder { color: transparent; }

/* Legacy input-field support */
.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-label {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}
.screen--dark  .input-label { color: var(--c-text-body); }
.screen--light .input-label { color: rgba(0,0,0,0.35); }

.input-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  padding: 4px 0 12px;
  outline: none;
  transition: border-color .2s;
}
.screen--dark  .input-field { border-color: var(--c-surface-low); color: var(--c-white); }
.screen--dark  .input-field:focus { border-color: rgba(255,255,255,0.5); }
.screen--light .input-field { border-color: rgba(0,0,0,0.12); color: var(--c-black); }
.screen--light .input-field:focus { border-color: rgba(0,0,0,0.5); }
.input-field::placeholder { opacity: 0.2; }

/* Code input (large) */
.code-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: var(--border-thick) solid;
  font-family: var(--font);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 14px;
  text-align: center;
  text-transform: uppercase;
  padding: 8px 0 14px;
  outline: none;
  transition: border-color .2s;
}
.screen--dark  .code-input { border-color: rgba(255,255,255,0.15); color: var(--c-white); }
.screen--dark  .code-input:focus { border-color: rgba(255,255,255,0.7); }
.screen--light .code-input { border-color: rgba(0,0,0,0.15); color: var(--c-black); }
.screen--light .code-input:focus { border-color: rgba(0,0,0,0.7); }
.code-input::placeholder { opacity: 0.15; letter-spacing: 12px; }

.input-error {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-red);
  min-height: 18px;
  margin-top: 6px;
}

/* ── CARD COMPONENT ── */
.card-wrap {
  position: relative;
}
.card-shadow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.3);
  transform: rotate(-3.5deg) translate(3px, 8px);
  z-index: 0;
}
.card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  color: var(--c-black);
  padding: 40px 28px 36px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.card--dark {
  background: var(--c-surface-low);
  color: var(--c-white);
}

/* ── BADGE / PILL ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 14px;
  text-transform: uppercase;
}
.badge--dark  { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }
.badge--light { background: rgba(0,0,0,0.06);  color: rgba(0,0,0,0.7); }
.badge--green { background: rgba(52,199,89,0.15); color: var(--c-green); }

/* ── PLAYER CHIP ── */
.player-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  margin-bottom: 8px;
}
.player-chip__name  { font-size: 14px; font-weight: 500; line-height: 20px; }  /* label/md */
.player-chip__ready { font-family: var(--font-secondary); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--c-green); }
.player-chip__wait  { font-family: var(--font-secondary); font-size: 11px; font-weight: 600; letter-spacing: 1px; opacity: .3; }

/* ── TEAM CARD ── */
.team-block { border-radius: var(--radius-md); padding: 20px; margin-bottom: 10px; }
.team-block--a { background: rgba(255,255,255,0.08); }
.team-block--b { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); }
.team-block__label { font-family: var(--font-secondary); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; line-height: 14px; opacity: .4; margin-bottom: 10px; }
.team-block__players { display: flex; flex-wrap: wrap; gap: 8px; }
.team-block__pill {
  font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,0.1);
  padding: 6px 14px; border-radius: var(--radius-pill);
}

/* ── ROUND DOTS ── */
.round-dots { display: flex; gap: 8px; justify-content: center; }
.round-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); transition: background .3s; }
.round-dot--done { background: rgba(255,255,255,0.9); }

/* ── SCORE STRIP ── */
.score-strip {
  display: flex;
  gap: 10px;
  padding: 0 24px;
  margin-top: 12px;
  flex-shrink: 0;
}
.score-box {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.score-box__label { font-family: var(--font-secondary); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; line-height: 14px; opacity: .4; }
.score-box__val   { font-size: 22px; font-weight: 700; }

/* ── RESULT SCORE BOX ── */
.result-box { flex: 1; border-radius: var(--radius-md); padding: 24px 16px; text-align: center; background: rgba(255,255,255,0.06); }
.result-box--winner { background: rgba(255,255,255,0.14); }
.result-box__num  { font-size: 64px; font-weight: 700; line-height: 1; }
.result-box__team { font-family: var(--font-secondary); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; line-height: 14px; opacity: .4; margin-top: 6px; }

/* ── CHAR CARD (playing screen) ── defined in screens/playing.html */

/* ── TIMER & PROGRESS ── defined in screens/playing.html */

/* ── OVERLAY (time up / round done) ── */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 32px 24px;
}
.overlay__inner { text-align: center; width: 100%; }
.overlay__emoji { font-size: 64px; display: block; margin-bottom: 18px; }
.overlay__title { font-size: 36px; font-weight: 700; margin-bottom: 10px; letter-spacing: -1px; }
.overlay__sub   { font-size: 16px; font-weight: 400; opacity: .6; margin-bottom: 8px; }
.overlay__note  { font-size: 13px; opacity: .35; margin-bottom: 36px; }

/* ── LOADING ── */
.loading-center { flex: 1; display: flex; align-items: center; justify-content: center; }
.loader {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

/* ── SECTION HEADING ── */
.section-heading { padding: 36px 24px 0; flex-shrink: 0; }
.section-heading__label { font-family: var(--font-secondary); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; line-height: 16px; opacity: .4; margin-bottom: 8px; }

/* ── ROUND RULE BOX ── */
.round-rule {
  padding: 22px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  opacity: .7;
  line-height: 1.6;
}

/* ── QR AREA ── */
.qr-container { background: #fff; padding: 12px; border-radius: 14px; display: inline-block; flex-shrink: 0; }

/* ── ANIMATIONS ── */
@keyframes spin         { to { transform: rotate(360deg); } }
@keyframes fadeUp       { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes popIn        { from { opacity:0; transform:scale(.85); } to { opacity:1; transform:scale(1); } }
@keyframes shakeX       { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-8px)} 75%{transform:translateX(8px)} }
@keyframes timerPulse   { to { opacity: .55; } }

.anim-fadeup { animation: fadeUp .4s cubic-bezier(.22,1,.36,1) both; }
.anim-popin  { animation: popIn .45s cubic-bezier(.34,1.56,.64,1) both; }
.anim-shake  { animation: shakeX .4s ease; }

/* ── UTILITIES ── */
.u-flex-center { display: flex; align-items: center; justify-content: center; }
.u-flex-between { display: flex; align-items: center; justify-content: space-between; }
.u-flex-col { display: flex; flex-direction: column; }
.u-gap-8  { gap: 8px; }
.u-gap-12 { gap: 12px; }
.u-gap-16 { gap: 16px; }
.u-text-center { text-align: center; }
.u-full-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 32px; }

/* ── SESSION BAR (shared across host screens) ── */
.session-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 54px;
  padding: 20px 32px;
  border-radius: 999px;
  border: 1px solid var(--c-surface-low);
  background: transparent;
  cursor: pointer;
  margin: 0 auto;
  transition: border-color 0.2s;
  color: var(--c-gray-200);
}
.session-bar:active { border-color: rgba(255,255,255,0.3); }
.session-bar__group { display: flex; align-items: center; gap: 8px; }
.session-bar__qr-icon { width: 18px; height: 18px; opacity: 0.7; }
.session-bar__label { font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--c-gray-200); }
.session-bar__code { font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--c-gray-200); }
.session-bar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); flex-shrink: 0; }

/* ── QR MODAL (shared across host screens) ── */
.qr-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  align-items: center; justify-content: center; flex-direction: column; gap: 24px;
}
.qr-modal-overlay.active { display: flex; }
.qr-modal-card { width: 270px; display: flex; flex-direction: column; align-items: center; padding: 28px 32px; border-radius: 32px; background: #131416; border: 1px solid #2f3337; }
.qr-modal-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-modal-img { width: 206px; height: 206px; border-radius: 15px; overflow: hidden; background: var(--c-white); }
.qr-modal-img canvas, .qr-modal-img img { width: 100% !important; height: 100% !important; border-radius: 15px; }
.qr-modal-code-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.qr-modal-code-label { font-family: var(--font); font-size: 14px; font-weight: 400; color: var(--c-white); }
.qr-modal-code-value { font-family: var(--font); font-size: 18px; font-weight: 700; letter-spacing: -0.48px; color: var(--c-white); }
.qr-modal-close { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--c-white); }
.qr-modal-close svg { width: 24px; height: 24px; }

/* ── HOST FORM LAYOUT (shared across host form screens) ── */
.host-form-layout { flex: 1; display: flex; flex-direction: column; padding: 0 24px; padding-top: calc(var(--safe-top) + 16px); padding-bottom: calc(var(--safe-bottom) + 24px); }
.host-form-top { padding-top: 16px; margin-bottom: 16px; }
.host-form-content { display: flex; flex-direction: column; gap: 16px; }
.host-form__title { font-family: var(--font); font-size: 30px; font-weight: 700; line-height: 36px; letter-spacing: -0.6px; color: var(--c-white); }
.host-form__subtitle { font-family: var(--font); font-size: 14px; font-weight: 400; line-height: 24px; color: var(--c-text-body); margin-top: 8px; }
.host-form__btn { width: 100%; max-width: 345px; height: 54px; border-radius: 999px; background: var(--c-white); color: var(--c-black); font-family: var(--font); font-size: 14px; font-weight: 700; line-height: 16px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 48px auto 0; transition: opacity 0.2s; }
.host-form__btn:active { opacity: 0.85; }
.host-form__btn svg { width: 24px; height: 24px; }

/* ── GUEST FORM LAYOUT (light theme) ── */
.guest-form-layout { flex: 1; display: flex; flex-direction: column; padding: 0 24px; padding-top: calc(var(--safe-top) + 56px); padding-bottom: calc(var(--safe-bottom) + 24px); }
.guest-form-content { display: flex; flex-direction: column; gap: 16px; }
.guest-form-heading { padding: 0; }
.guest-form__title { font-family: var(--font); font-size: 30px; font-weight: 700; line-height: 36px; letter-spacing: -0.6px; color: var(--c-black); }
.guest-form__subtitle { font-family: var(--font); font-size: 14px; font-weight: 400; line-height: 24px; color: #606971; margin-top: 8px; }
.guest-form__btn { width: 100%; max-width: 345px; height: 54px; border-radius: 999px; background: var(--c-black); color: var(--c-white); font-family: var(--font); font-size: 14px; font-weight: 700; line-height: 16px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 48px auto 0; transition: opacity 0.2s; }
.guest-form__btn:active { opacity: 0.85; }
.guest-form__btn svg { width: 24px; height: 24px; }

/* ── INPUT GROUP — light theme ── */
.screen--light .input-group__label { color: var(--c-black); }
.screen--light .input-group--filled .input-group__label { color: #9CA6AF; font-size: 12px; font-weight: 500; line-height: 16px; }
.screen--light .input-group__field { border-color: #BDC5CC; color: var(--c-black); }
.screen--light .input-group__field:focus { border-color: rgba(0,0,0,0.5); }

/* ── DEBUG MENU (shared across screens) ── */
.debug-btn-float {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 30;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
}
.debug-btn-float:hover { color: rgba(255,255,255,0.8); }

.debug-menu {
  display: none;
  position: absolute;
  bottom: 48px;
  right: 14px;
  z-index: 30;
  background: rgba(20,20,20,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  backdrop-filter: blur(12px);
}
.debug-menu p {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 6px 10px 2px;
}
.debug-menu button {
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  padding: 9px 12px;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.debug-menu button:hover { background: rgba(255,255,255,0.12); color: #fff; }
.debug-menu button.danger { color: #FF6B6B; }
.debug-menu button.danger:hover { background: rgba(255,59,48,0.15); }
