/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
  /* Teams */
  --noiva:          #FF2D78;
  --noiva-dim:      rgba(255,45,120,0.18);
  --noiva-border:   rgba(255,45,120,0.4);
  --noivo:          #0A84FF;
  --noivo-dim:      rgba(10,132,255,0.18);
  --noivo-border:   rgba(10,132,255,0.4);
  --gold:           #FFD60A;
  --gold-dim:       rgba(255,214,10,0.14);
  --gold-border:    rgba(255,214,10,0.4);

  /* Surface */
  --bg:             #080810;
  --bg-1:           #0f0f1a;
  --bg-2:           #16161f;
  --bg-3:           #1e1e2a;
  --bg-4:           #252535;
  --surface:        rgba(255,255,255,0.05);
  --surface-hover:  rgba(255,255,255,0.09);
  --surface-active: rgba(255,255,255,0.13);

  /* Text */
  --t1:   rgba(255,255,255,0.94);
  --t2:   rgba(255,255,255,0.6);
  --t3:   rgba(255,255,255,0.32);
  --t4:   rgba(255,255,255,0.16);

  /* Border */
  --b1:   rgba(255,255,255,0.1);
  --b2:   rgba(255,255,255,0.18);
  --b3:   rgba(255,255,255,0.28);

  /* Status */
  --ok:       #30D158;
  --ok-dim:   rgba(48,209,88,0.14);
  --err:      #FF453A;
  --err-dim:  rgba(255,69,58,0.14);
  --warn:     #FF9F0A;

  /* Spacing — base 4 */
  --s2:  2px;  --s4:  4px;  --s6:  6px;  --s8:  8px;
  --s12: 12px; --s16: 16px; --s20: 20px; --s24: 24px;
  --s32: 32px; --s44: 44px; --s64: 64px;

  /* Radius */
  --r6:   6px;  --r10: 10px; --r14: 14px;
  --r20:  20px; --r28: 28px; --rpill: 9999px;

  /* Typography */
  --f-display:  clamp(2rem, 5vw + 1rem, 3rem);
  --f-h1:       clamp(1.6rem, 3vw + 0.8rem, 2.2rem);
  --f-h2:       clamp(1.15rem, 1.5vw + 0.6rem, 1.4rem);
  --f-body:     clamp(0.9375rem, 0.5vw + 0.8rem, 1.0625rem);
  --f-sm:       0.875rem;
  --f-xs:       0.8125rem;
  --f-2xs:      0.75rem;

  /* Motion */
  --spring:   cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-in:  cubic-bezier(0.4, 0, 1, 1);

  /* Nav */
  --nav-h:    68px;
  --safe-b:   max(16px, env(safe-area-inset-bottom));
  --safe-t:   max(0px, env(safe-area-inset-top));
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--t1);
  line-height: 1.5;
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

input, select, textarea { font-family: inherit; }
img, svg { display: block; }

/* ═══════════════════════════════════════════════════
   APP SHELL
═══════════════════════════════════════════════════ */
.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 100dvh;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════
   SCREENS
═══════════════════════════════════════════════════ */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 280ms var(--spring), transform 280ms var(--spring);
}

.screen--active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.screen-pad { height: var(--s24); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   HOME SCREEN
═══════════════════════════════════════════════════ */
.home-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.home-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.home-bg__orb--1 {
  width: 340px; height: 340px;
  background: var(--noiva);
  top: -100px; right: -80px;
  animation: orbFloat 8s ease-in-out infinite;
}

.home-bg__orb--2 {
  width: 280px; height: 280px;
  background: var(--noivo);
  bottom: 60px; left: -80px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.home-bg__orb--3 {
  width: 200px; height: 200px;
  background: var(--gold);
  top: 40%; left: 30%;
  opacity: 0.2;
  animation: orbFloat 12s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(12px, -18px) scale(1.04); }
  66%       { transform: translate(-8px, 12px) scale(0.97); }
}

.home-hero {
  position: relative;
  z-index: 1;
  padding: max(var(--s44), calc(var(--safe-t) + var(--s32))) var(--s20) var(--s24);
  text-align: center;
}

.home-hero__pill { margin-bottom: var(--s20); }

.home-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--f-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--s16);
}

.home-hero__noiva { color: var(--noiva); }
.home-hero__vs    { display: block; font-size: 0.4em; color: var(--t3); letter-spacing: 0.2em; text-transform: uppercase; padding: var(--s8) 0; }
.home-hero__noivo { color: var(--noivo); }

.home-hero__sub {
  font-size: var(--f-sm);
  color: var(--t2);
  line-height: 1.6;
  max-width: 28ch;
  margin: 0 auto;
}

.home-cards {
  position: relative;
  z-index: 1;
  padding: 0 var(--s16) var(--s16);
  display: flex;
  flex-direction: column;
  gap: var(--s10, 10px);
}

.home-card {
  position: relative;
  border-radius: var(--r20);
  border: 0.5px solid var(--b1);
  background: var(--surface);
  padding: var(--s16) var(--s20);
  text-align: left;
  overflow: hidden;
  transition: transform 180ms var(--spring), background 180ms;
  display: block;
  width: 100%;
}

.home-card:active { transform: scale(0.97); background: var(--surface-active); }

.home-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--r20);
  opacity: 0;
  transition: opacity 300ms;
}

.home-card--event {
  background: linear-gradient(135deg, rgba(255,214,10,0.12), rgba(255,45,120,0.08), rgba(10,132,255,0.08));
  border-color: var(--gold-border);
  display: flex;
  align-items: center;
  gap: var(--s16);
  padding: var(--s20);
}

.home-card--event .home-card__inner { flex: 1; display: flex; align-items: center; gap: var(--s16); }

.home-cards__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.home-card--setup, .home-card--score {
  display: flex;
  flex-direction: column;
  gap: var(--s8);
  padding: var(--s20) var(--s16);
}

.home-card--report {
  display: flex;
  align-items: center;
  gap: var(--s16);
}
.home-card--report .home-card__inner { flex: 1; display: flex; align-items: center; gap: var(--s16); }

.home-card__icon { font-size: 28px; flex-shrink: 0; }
.home-card__text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.home-card__eye  { font-size: var(--f-2xs); color: var(--t3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.home-card__name { font-size: var(--f-sm); font-weight: 600; color: var(--t1); }
.home-card__desc { font-size: var(--f-2xs); color: var(--t2); margin-top: 2px; }
.home-card__arr  { font-size: 20px; color: var(--t3); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--s8);
  padding: max(var(--s16), calc(var(--safe-t) + var(--s12))) var(--s8) var(--s12);
  background: rgba(8,8,16,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 0.5px solid var(--b1);
  flex-shrink: 0;
}

.topbar__back, .topbar__action {
  width: 44px; height: 44px;
  border-radius: var(--rpill);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--t2);
  transition: background 150ms, color 150ms;
  flex-shrink: 0;
}
.topbar__back:hover, .topbar__action:hover { background: var(--surface); color: var(--t1); }
.topbar__back:active, .topbar__action:active { background: var(--surface-active); transform: scale(0.92); }

.topbar__mid {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar__title { font-size: var(--f-sm); font-weight: 600; color: var(--t1); }
.topbar__sub   { font-size: var(--f-2xs); color: var(--t3); letter-spacing: 0.05em; text-transform: uppercase; }

/* ═══════════════════════════════════════════════════
   TABS
═══════════════════════════════════════════════════ */
.tabs-bar {
  padding: var(--s12) var(--s16);
  background: var(--bg-1);
  border-bottom: 0.5px solid var(--b1);
  flex-shrink: 0;
}

.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-3);
  border-radius: var(--r10);
  padding: 3px;
}

.tab {
  flex: 1;
  height: 36px;
  border-radius: calc(var(--r10) - 2px);
  font-size: var(--f-xs);
  font-weight: 500;
  color: var(--t3);
  transition: all 200ms var(--ease-out);
}

.tab--active {
  background: var(--bg-4);
  color: var(--t1);
  border: 0.5px solid var(--b2);
  font-weight: 600;
}

.tab-pane { display: none; }
.tab-pane--active { display: block; }

/* ═══════════════════════════════════════════════════
   SECTION
═══════════════════════════════════════════════════ */
.section {
  padding: var(--s20) var(--s16) 0;
}

.section__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s12);
}

.section__title {
  font-size: var(--f-2xs);
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════
   CARD
═══════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 0.5px solid var(--b1);
  border-radius: var(--r20);
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════
   LIST ITEMS
═══════════════════════════════════════════════════ */
.list-item {
  display: flex;
  align-items: center;
  gap: var(--s12);
  padding: var(--s12) var(--s16);
  border-bottom: 0.5px solid var(--b1);
  min-height: 56px;
}

.list-item:last-child { border-bottom: none; }

.list-item__avatar {
  width: 36px; height: 36px;
  border-radius: var(--rpill);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: var(--bg-3);
  border: 0.5px solid var(--b2);
}

.list-item__body { flex: 1; min-width: 0; }
.list-item__name { font-size: var(--f-sm); font-weight: 500; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item__meta { font-size: var(--f-2xs); color: var(--t3); margin-top: 2px; }
.list-item__end  { display: flex; gap: var(--s8); align-items: center; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s8);
  height: 44px;
  padding: 0 var(--s20);
  border-radius: var(--r14);
  font-size: var(--f-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 150ms, transform 150ms var(--spring), background 150ms;
  white-space: nowrap;
}

.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.38; pointer-events: none; }

.btn--primary { background: var(--gold); color: #0a0a10; }
.btn--primary:hover { background: #ffe033; }

.btn--noiva { background: var(--noiva); color: #fff; }
.btn--noivo { background: var(--noivo); color: #fff; }

.btn--ghost {
  background: var(--surface);
  border: 0.5px solid var(--b2);
  color: var(--t1);
}
.btn--ghost:hover { background: var(--surface-hover); }

.btn--danger { background: var(--err-dim); border: 0.5px solid var(--err); color: var(--err); }
.btn--ok     { background: var(--ok-dim);  border: 0.5px solid var(--ok);  color: var(--ok);  }

.btn--sm   { height: 36px; padding: 0 var(--s12); font-size: var(--f-xs); border-radius: var(--r10); }
.btn--icon { width: 36px; padding: 0; border-radius: var(--rpill); }
.btn--full { width: 100%; }

/* ═══════════════════════════════════════════════════
   PILLS / BADGES
═══════════════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 var(--s8);
  border-radius: var(--rpill);
  font-size: var(--f-2xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 0.5px solid var(--b2);
  background: var(--surface);
  color: var(--t2);
}

.pill--gold  { background: var(--gold-dim);  color: var(--gold);  border-color: var(--gold-border);  }
.pill--noiva { background: var(--noiva-dim); color: var(--noiva); border-color: var(--noiva-border); }
.pill--noivo { background: var(--noivo-dim); color: var(--noivo); border-color: var(--noivo-border); }
.pill--ok    { background: var(--ok-dim);    color: var(--ok);    border-color: rgba(48,209,88,0.4); }
.pill--muted { background: var(--bg-3);      color: var(--t3);    border-color: var(--b2);           }
.pill--sorte    { background: var(--gold-dim);  color: var(--gold);  border-color: var(--gold-border);  }
.pill--pergunta { background: var(--noivo-dim); color: var(--noivo); border-color: var(--noivo-border); }
.pill--acao     { background: var(--noiva-dim); color: var(--noiva); border-color: var(--noiva-border); }

/* ═══════════════════════════════════════════════════
   FORM FIELDS
═══════════════════════════════════════════════════ */
.field-group { margin-bottom: var(--s16); }

.field-label {
  display: block;
  font-size: var(--f-2xs);
  font-weight: 600;
  color: var(--t3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s6);
}

.field-input, .field-select, .field-textarea {
  width: 100%;
  background: var(--bg-3);
  border: 0.5px solid var(--b2);
  border-radius: var(--r10);
  color: var(--t1);
  font-size: var(--f-body);
  outline: none;
  transition: border-color 200ms;
  appearance: none;
}

.field-input, .field-select { height: 48px; padding: 0 var(--s16); }
.field-textarea { padding: var(--s12) var(--s16); resize: vertical; min-height: 90px; line-height: 1.5; }

.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: var(--gold); }
.field-input::placeholder, .field-textarea::placeholder { color: var(--t4); }

.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s12) center;
  padding-right: var(--s44);
}

.field-select option { background: var(--bg-2); color: var(--t1); }

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s16);
  padding: var(--s4) 0;
}

.toggle-row__lbl { font-size: var(--f-sm); color: var(--t1); font-weight: 500; }

.toggle {
  position: relative;
  width: 51px; height: 31px;
  flex-shrink: 0;
}

.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.toggle__track {
  position: absolute; inset: 0;
  background: var(--bg-4);
  border: 0.5px solid var(--b2);
  border-radius: var(--rpill);
  cursor: pointer;
  transition: background 300ms var(--spring), border-color 300ms;
}

.toggle input:checked + .toggle__track {
  background: var(--ok);
  border-color: var(--ok);
}

.toggle__thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 27px; height: 27px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 300ms var(--spring);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.toggle input:checked ~ .toggle__thumb { transform: translateX(20px); }

/* ═══════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════ */
.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease-out);
}

.modal-wrap.modal--open {
  opacity: 1;
  pointer-events: auto;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--bg-2);
  border-top: 0.5px solid var(--b2);
  border-radius: var(--r28) var(--r28) 0 0;
  padding: var(--s8) var(--s20) calc(var(--s32) + var(--safe-b));
  transform: translateY(100%);
  transition: transform 380ms var(--spring);
}

.modal-wrap.modal--open .modal { transform: translateY(0); }

.modal__bar {
  width: 36px; height: 5px;
  background: var(--bg-4);
  border-radius: var(--rpill);
  margin: 0 auto var(--s20);
}

.modal__title {
  font-size: var(--f-h2);
  font-weight: 700;
  color: var(--t1);
  margin-bottom: var(--s24);
  letter-spacing: -0.01em;
}

.modal__msg {
  font-size: var(--f-body);
  color: var(--t2);
  line-height: 1.55;
  margin: calc(-1 * var(--s12)) 0 var(--s8);
}

.modal__btns {
  display: flex;
  gap: var(--s12);
  margin-top: var(--s24);
}

/* ═══════════════════════════════════════════════════
   EVENT SCREEN COMPONENTS
═══════════════════════════════════════════════════ */
.action-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s12);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: var(--s16);
  padding: var(--s16) var(--s20);
  border-radius: var(--r20);
  border: 0.5px solid var(--b2);
  background: var(--surface);
  text-align: left;
  width: 100%;
  transition: background 180ms, transform 150ms var(--spring);
}

.action-btn:active { background: var(--surface-active); transform: scale(0.98); }

.action-btn--main { border-color: var(--gold-border); background: var(--gold-dim); }
.action-btn--duel { border-color: var(--noiva-border); background: var(--noiva-dim); }

.action-btn__ico  { font-size: 26px; flex-shrink: 0; }
.action-btn__name { font-size: var(--f-sm); font-weight: 600; color: var(--t1); }
.action-btn__hint { font-size: var(--f-2xs); color: var(--t3); margin-top: 2px; }
.action-btn__arr  { font-size: 18px; color: var(--t3); margin-left: auto; flex-shrink: 0; }

/* Challenge card */
.challenge-card {
  background: var(--bg-2);
  border: 0.5px solid var(--b2);
  border-radius: var(--r20);
  padding: var(--s20);
  margin-top: var(--s12);
}

.challenge-card__tag { margin-bottom: var(--s12); }
.challenge-card__desc { font-size: var(--f-body); color: var(--t1); line-height: 1.6; }
.challenge-card__meta { margin-top: var(--s12); font-size: var(--f-xs); color: var(--t3); }

.round-label-row {
  display: flex;
  align-items: center;
  gap: var(--s12);
  margin-bottom: var(--s4);
}

/* Teams grid */
.teams-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s12);
}

.team-col {
  background: var(--surface);
  border: 0.5px solid var(--b1);
  border-radius: var(--r20);
  overflow: hidden;
}

.team-col--noiva { border-color: var(--noiva-border); background: var(--noiva-dim); }
.team-col--noivo { border-color: var(--noivo-border); background: var(--noivo-dim); }

.team-col__header {
  padding: var(--s12) var(--s16);
  font-size: var(--f-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 0.5px solid var(--b1);
  display: flex;
  align-items: center;
  gap: var(--s8);
}

.team-col--noiva .team-col__header { color: var(--noiva); }
.team-col--noivo .team-col__header { color: var(--noivo); }

.team-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s8) var(--s16);
  border-bottom: 0.5px solid var(--b1);
  gap: var(--s8);
}

.team-player:last-child { border-bottom: none; }

.team-player__name {
  font-size: var(--f-xs);
  color: var(--t1);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-player__redraw {
  font-size: 11px;
  color: var(--t3);
  padding: 3px 8px;
  border-radius: var(--rpill);
  border: 0.5px solid var(--b2);
  background: var(--surface);
  flex-shrink: 0;
  transition: color 150ms, border-color 150ms;
}

.team-player__redraw:hover { color: var(--t1); border-color: var(--b3); }

/* Result buttons */
.result-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s8);
}

.result-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s6);
  padding: var(--s16) var(--s8);
  border-radius: var(--r20);
  border: 0.5px solid var(--b2);
  background: var(--surface);
  font-size: var(--f-xs);
  font-weight: 600;
  color: var(--t2);
  transition: all 180ms var(--spring);
}

.result-btn span { font-size: 24px; }
.result-btn:active { transform: scale(0.95); }

.result-btn--noiva { border-color: var(--noiva-border); background: var(--noiva-dim); color: var(--noiva); }
.result-btn--noivo { border-color: var(--noivo-border); background: var(--noivo-dim); color: var(--noivo); }
.result-btn--draw  { background: var(--bg-3); color: var(--t2); }
.result-btn:disabled { opacity: 0.3; pointer-events: none; }

/* History item */
.history-item {
  background: var(--surface);
  border: 0.5px solid var(--b1);
  border-radius: var(--r14);
  padding: var(--s12) var(--s16);
  margin-bottom: var(--s8);
}

.history-item__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s8); gap: var(--s8); }
.history-item__type   { font-size: var(--f-xs); font-weight: 600; color: var(--t3); text-transform: uppercase; letter-spacing: 0.06em; }
.history-item__result-btn { font-size: var(--f-2xs); color: var(--t3); padding: 3px 10px; border-radius: var(--rpill); border: 0.5px solid var(--b2); background: var(--surface); }
.history-item__challenge { font-size: var(--f-xs); color: var(--t2); margin-bottom: var(--s8); line-height: 1.5; }
.history-item__result { display: flex; align-items: center; gap: var(--s8); }

/* ═══════════════════════════════════════════════════
   SCOREBOARD
═══════════════════════════════════════════════════ */
.score-hero {
  background: var(--surface);
  border: 0.5px solid var(--b1);
  border-radius: var(--r20);
  padding: var(--s32) var(--s20);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s16);
  text-align: center;
}

.score-hero__emoji { font-size: 32px; margin-bottom: var(--s8); }
.score-hero__team  { font-size: var(--f-2xs); color: var(--t3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: var(--s12); }
.score-hero__num   { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.score-hero__mid   { display: flex; align-items: center; justify-content: center; }
.score-hero__vs    { font-size: var(--f-h2); color: var(--t4); font-weight: 600; }

.score-location-item {
  background: var(--surface);
  border: 0.5px solid var(--b1);
  border-radius: var(--r14);
  padding: var(--s12) var(--s16);
  margin-bottom: var(--s8);
  display: flex;
  align-items: center;
  gap: var(--s12);
}

.score-location-item__name { flex: 1; font-size: var(--f-sm); font-weight: 500; color: var(--t1); }
.score-location-item__scores { display: flex; gap: var(--s8); align-items: center; }
.score-location-item__n { font-size: var(--f-sm); font-weight: 700; min-width: 20px; text-align: center; }
.score-location-item__sep { font-size: var(--f-xs); color: var(--t4); }

/* ═══════════════════════════════════════════════════
   REPORT
═══════════════════════════════════════════════════ */
.report-round-item {
  background: var(--surface);
  border: 0.5px solid var(--b1);
  border-radius: var(--r14);
  overflow: hidden;
  margin-bottom: var(--s12);
}

.report-round-item__header {
  padding: var(--s12) var(--s16);
  background: var(--bg-2);
  border-bottom: 0.5px solid var(--b1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s12);
  flex-wrap: wrap;
}

.report-round-item__loc  { font-size: var(--f-xs); font-weight: 600; color: var(--t2); }
.report-round-item__body { padding: var(--s12) var(--s16); }
.report-round-item__challenge { font-size: var(--f-xs); color: var(--t2); margin: var(--s8) 0; line-height: 1.5; }
.report-round-item__players { display: flex; gap: var(--s8); flex-wrap: wrap; margin-top: var(--s8); }

.ranking-item {
  display: flex;
  align-items: center;
  gap: var(--s12);
  padding: var(--s12) var(--s16);
  border-bottom: 0.5px solid var(--b1);
}

.ranking-item:last-child { border-bottom: none; }
.ranking-item__rank { font-family: 'Playfair Display', serif; font-size: var(--f-h2); font-weight: 900; color: var(--t3); min-width: 28px; text-align: center; }
.ranking-item__rank--1 { color: var(--gold); }
.ranking-item__rank--2 { color: rgba(192,192,192,0.9); }
.ranking-item__rank--3 { color: rgba(180,120,60,0.9); }
.ranking-item__name { flex: 1; font-size: var(--f-sm); font-weight: 500; color: var(--t1); }
.ranking-item__score { font-size: var(--f-sm); font-weight: 700; color: var(--t1); }

/* ═══════════════════════════════════════════════════
   BOTTOM NAV
═══════════════════════════════════════════════════ */
.bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 100;
  background: rgba(13,13,22,0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 0.5px solid var(--b1);
  display: flex;
  padding-bottom: var(--safe-b);
  height: calc(var(--nav-h) + var(--safe-b));
}

.bnav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--t4);
  transition: color 200ms var(--ease-out);
  padding: var(--s8) 0 0;
  position: relative;
}

.bnav__item:active { transform: scale(0.88); }

.bnav__item--active { color: var(--gold); }

.bnav__item--active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 0 0 var(--rpill) var(--rpill);
}

.bnav__ico {
  width: 24px; height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bnav__lbl { font-size: 10px; font-weight: 500; letter-spacing: 0.02em; }

/* ═══════════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s44) var(--s20);
  gap: var(--s8);
}

.empty-state__ico  { font-size: 40px; margin-bottom: var(--s4); }
.empty-state__msg  { font-size: var(--f-sm); font-weight: 500; color: var(--t3); }
.empty-state__hint { font-size: var(--f-xs); color: var(--t4); }

/* ═══════════════════════════════════════════════════
   CHECKIN ITEM
═══════════════════════════════════════════════════ */
.checkin-item {
  display: flex;
  align-items: center;
  gap: var(--s12);
  padding: var(--s12) var(--s16);
  border-bottom: 0.5px solid var(--b1);
  min-height: 56px;
  cursor: pointer;
  transition: background 150ms;
}

.checkin-item:last-child { border-bottom: none; }
.checkin-item:active { background: var(--surface-active); }

.checkin-item__check {
  width: 24px; height: 24px;
  border-radius: var(--rpill);
  border: 1.5px solid var(--b3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 200ms var(--spring);
  font-size: 13px;
}

.checkin-item.checkin-item--present .checkin-item__check {
  background: var(--ok);
  border-color: var(--ok);
}

.checkin-item__name { flex: 1; font-size: var(--f-sm); font-weight: 500; color: var(--t1); }
.checkin-item__role { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  top: max(var(--s20), calc(var(--safe-t) + var(--s12)));
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--s8);
  align-items: center;
  width: calc(100% - var(--s32));
  max-width: 440px;
  pointer-events: none;
}

.toast {
  padding: var(--s12) var(--s16);
  border-radius: var(--r14);
  font-size: var(--f-sm);
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: all 280ms var(--spring);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.toast--show { opacity: 1; transform: none; }

.toast--info    { background: rgba(30,30,42,0.95); color: var(--t1); border: 0.5px solid var(--b2); }
.toast--success { background: rgba(48,209,88,0.15); color: var(--ok); border: 0.5px solid rgba(48,209,88,0.4); }
.toast--error   { background: rgba(255,69,58,0.15); color: var(--err); border: 0.5px solid rgba(255,69,58,0.4); }

/* ═══════════════════════════════════════════════════
   UTIL
═══════════════════════════════════════════════════ */
.text--noiva { color: var(--noiva); }
.text--noivo { color: var(--noivo); }
.text--gold  { color: var(--gold); }
.text--muted { color: var(--t3); }
.text--ok    { color: var(--ok); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE (tablet / desktop)
═══════════════════════════════════════════════════ */
@media (min-width: 600px) {
  .app { box-shadow: 0 0 0 0.5px var(--b1), 0 32px 80px rgba(0,0,0,0.6); }

  .home-hero { padding-top: calc(var(--safe-t) + var(--s44)); }

  .home-cards__grid { grid-template-columns: 1fr 1fr; }

  .result-row { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 900px) {
  body { display: flex; align-items: center; justify-content: center; background: var(--bg-1); min-height: 100dvh; }
  .app { height: min(900px, 100dvh); border-radius: var(--r28); overflow: hidden; }
  .bnav { border-radius: 0 0 var(--r28) var(--r28); }
}

/* ═══════════════════════════════════════════════════
   ACCESSIBILITY
═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .home-bg__orb { animation: none; }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r6);
}

/* ─── Badge do número do jogador (3 dígitos) ─── */
.player-num {
  height: 18px;
  font-size: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0 6px;
  vertical-align: middle;
  margin-right: 4px;
}

/* ─── Result selected state ─── */
.result-btn--selected {
  transform: scale(0.96);
  box-shadow: 0 0 0 2px currentColor;
}

/* ─── Rodada Normal: 3 duelos ─── */
.round-hint {
  font-size: var(--f-xs);
  color: var(--t2);
  margin-top: var(--s8);
  line-height: 1.5;
}
.round-subtotal {
  margin-top: var(--s8);
  padding: var(--s10) var(--s12);
  background: var(--gold-dim, rgba(255, 214, 10, 0.08));
  border: 0.5px solid var(--gold-border, rgba(255, 214, 10, 0.25));
  border-radius: var(--r12);
  font-size: var(--f-sm);
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.04em;
}
.round-subtotal__pending {
  color: var(--t3);
  font-weight: 500;
  margin-left: 4px;
}
.duels-stack { display: flex; flex-direction: column; gap: var(--s16); }
.duel-card {
  background: var(--surface);
  border: 0.5px solid var(--b1);
  border-radius: var(--r20);
  padding: var(--s16);
  display: flex;
  flex-direction: column;
  gap: var(--s12);
}
.duel-card__head {
  display: flex;
  align-items: center;
  gap: var(--s8);
  flex-wrap: wrap;
}
.duel-card__num {
  font-size: var(--f-xs);
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: auto;
}
.duel-card__redraw {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0.5px solid var(--b2);
  background: var(--surface);
  color: var(--t2);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.2s;
}
.duel-card__redraw:hover { background: var(--bg-2); color: var(--gold); }
.duel-card__redraw:active { transform: rotate(180deg); }
.duel-card__desc {
  font-size: var(--f-body);
  color: var(--t1);
  line-height: 1.55;
  margin: 0;
}
.duel-card__meta {
  font-size: var(--f-xs);
  color: var(--t3);
}
.duel-card__matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s8);
  align-items: stretch;
  margin-top: var(--s4);
}
.duel-card__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--t3);
  font-family: 'Playfair Display', serif;
}
.duel-player {
  position: relative;
  background: var(--bg-2);
  border: 0.5px solid var(--b2);
  border-radius: var(--r12);
  padding: var(--s10) var(--s8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  min-width: 0;
}
.duel-player--noiva { border-color: var(--noiva-border); background: var(--noiva-dim); }
.duel-player--noivo { border-color: var(--noivo-border); background: var(--noivo-dim); }
.duel-player__avatar { font-size: 20px; line-height: 1; }
.duel-player__name {
  font-size: var(--f-sm);
  font-weight: 600;
  color: var(--t1);
  word-break: break-word;
  line-height: 1.2;
}
.duel-player--noiva .duel-player__name { color: var(--noiva); }
.duel-player--noivo .duel-player__name { color: var(--noivo); }
.duel-player__redraw {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.4);
  color: var(--t1);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.2s;
}
.duel-player__redraw:hover { background: rgba(0,0,0,0.6); }
.duel-player__redraw:active { transform: rotate(180deg); }
.duel-player__redraw:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.duel-card__result-label {
  font-size: var(--f-xs);
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--s4);
}

/* Histórico — duelos */
.history-duels {
  display: flex;
  flex-direction: column;
  gap: var(--s10);
  margin-top: var(--s8);
}
.history-duel {
  background: var(--bg-2);
  border: 0.5px solid var(--b2);
  border-radius: var(--r12);
  padding: var(--s10) var(--s12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.history-duel__head {
  display: flex;
  align-items: center;
  gap: var(--s8);
  flex-wrap: wrap;
}
.history-duel__num {
  font-size: var(--f-2xs);
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.history-duel__desc {
  font-size: var(--f-xs);
  color: var(--t2);
  line-height: 1.45;
}
.history-duel__matchup {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.history-duel__vs {
  font-size: 12px;
  color: var(--t3);
  font-weight: 700;
}
.history-duel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8);
  margin-top: 4px;
}

/* Em telas estreitas, encolhe o vs e melhora layout do duelo */
@media (max-width: 360px) {
  .duel-card__matchup { gap: 4px; }
  .duel-card__vs { font-size: 18px; }
  .duel-player { padding: 8px 6px; }
  .duel-player__name { font-size: 12px; }
}

/* ─── Gate de senha ─── */
.gate[hidden], .gate__error[hidden] { display: none !important; }
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(var(--s16), env(safe-area-inset-top))
           max(var(--s20), env(safe-area-inset-right))
           max(var(--s16), env(safe-area-inset-bottom))
           max(var(--s20), env(safe-area-inset-left));
  background: radial-gradient(ellipse at top, #14142a 0%, #080810 60%);
  overflow: hidden;
  animation: gate-fade-in 0.5s ease-out;
}
@keyframes gate-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.gate__bg { position: absolute; inset: 0; pointer-events: none; }
.gate__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  animation: gate-orb-float 8s ease-in-out infinite alternate;
}
.gate__orb--1 {
  width: clamp(220px, 60vw, 380px);
  aspect-ratio: 1;
  background: var(--noiva);
  top: -10%;
  left: -15%;
}
.gate__orb--2 {
  width: clamp(220px, 60vw, 380px);
  aspect-ratio: 1;
  background: var(--noivo);
  bottom: -10%;
  right: -15%;
  animation-delay: -3s;
}
.gate__orb--3 {
  width: clamp(160px, 40vw, 280px);
  aspect-ratio: 1;
  background: var(--gold);
  opacity: 0.15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -5s;
}
@keyframes gate-orb-float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -20px) scale(1.08); }
}
.gate__orb--3 {
  animation-name: gate-orb-pulse;
}
@keyframes gate-orb-pulse {
  from { transform: translate(-50%, -50%) scale(1);   opacity: 0.12; }
  to   { transform: translate(-50%, -50%) scale(1.15); opacity: 0.22; }
}

.gate__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background:
    linear-gradient(180deg, rgba(255, 214, 10, 0.06) 0%, transparent 30%),
    rgba(18, 18, 28, 0.88);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: clamp(28px, 6vw, 40px) clamp(20px, 5vw, 32px) clamp(24px, 5vw, 32px);
  text-align: center;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  animation: gate-card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.3s, opacity 0.3s;
}
.gate__card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}
@keyframes gate-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes gate-card-shake {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-10px); }
  30%      { transform: translateX(10px); }
  45%      { transform: translateX(-7px); }
  60%      { transform: translateX(7px); }
  75%      { transform: translateX(-3px); }
  90%      { transform: translateX(3px); }
}
.gate__card--shake { animation: gate-card-shake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
.gate__card--success {
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
}

.gate__icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--s16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gate__icon-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.4;
  filter: blur(12px);
  animation: gate-glow-pulse 2.5s ease-in-out infinite;
}
@keyframes gate-glow-pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%      { opacity: 0.5;  transform: scale(1.1); }
}
.gate__icon {
  position: relative;
  font-size: 40px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.15), rgba(255, 214, 10, 0.04));
  border: 1px solid rgba(255, 214, 10, 0.3);
  box-shadow: 0 4px 20px rgba(255, 214, 10, 0.2);
}

.gate__title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.1;
  color: var(--t1);
  margin: 0 0 var(--s12);
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gate__sub-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s12);
  margin-bottom: var(--s8);
}
.gate__sub-line {
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 10, 0.5), transparent);
}
.gate__sub {
  font-size: clamp(11px, 3vw, 13px);
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.gate__hint {
  font-size: clamp(12px, 3.2vw, 13px);
  color: var(--t3);
  margin: 0 0 clamp(20px, 5vw, 28px);
  font-weight: 400;
}

.gate__form {
  display: flex;
  flex-direction: column;
  gap: var(--s12);
}
.gate__label {
  font-size: 11px;
  color: var(--t2);
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: -4px;
}
.gate__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.gate__input {
  flex: 1;
  width: 100%;
  height: 52px;
  padding: 0 52px 0 var(--s16);
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--t1);
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.gate__input::placeholder {
  color: var(--t3);
  letter-spacing: 0.15em;
}
.gate__input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(255, 214, 10, 0.1);
}
.gate__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.gate__toggle:hover, .gate__toggle:active {
  background: rgba(255, 255, 255, 0.06);
}
.gate__toggle-ico { font-size: 18px; opacity: 0.8; }

.gate__error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--noiva);
  text-align: left;
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(255, 45, 120, 0.08);
  border: 1px solid rgba(255, 45, 120, 0.2);
  border-radius: 10px;
  animation: gate-error-in 0.25s ease-out;
}
@keyframes gate-error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gate__btn {
  margin-top: var(--s8);
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s8);
  background: linear-gradient(135deg, var(--gold) 0%, #FFB800 100%);
  color: #1a1a00;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(255, 214, 10, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.15s, box-shadow 0.15s;
}
.gate__btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: gate-btn-shimmer 3s ease-in-out infinite;
}
@keyframes gate-btn-shimmer {
  0%, 100% { left: -100%; }
  50%      { left: 100%; }
}
.gate__btn:hover { box-shadow: 0 12px 32px rgba(255, 214, 10, 0.4), 0 1px 0 rgba(255, 255, 255, 0.3) inset; }
.gate__btn:active { transform: scale(0.98); }
.gate__btn-arr { font-size: 18px; transition: transform 0.2s; }
.gate__btn:hover .gate__btn-arr { transform: translateX(3px); }

.gate__footer {
  margin-top: clamp(20px, 5vw, 28px);
  padding-top: clamp(16px, 4vw, 20px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Telas baixas (landscape mobile) — comprime espaçamentos */
@media (max-height: 600px) {
  .gate { align-items: flex-start; padding-top: var(--s16); padding-bottom: var(--s16); overflow-y: auto; }
  .gate__card { padding-top: var(--s20); padding-bottom: var(--s20); }
  .gate__icon-wrap { width: 56px; height: 56px; margin-bottom: var(--s8); }
  .gate__icon { width: 56px; height: 56px; font-size: 30px; }
  .gate__hint { margin-bottom: var(--s16); }
  .gate__footer { margin-top: var(--s16); padding-top: var(--s12); }
}

/* Telas muito estreitas — ajusta paddings internos */
@media (max-width: 360px) {
  .gate { padding-left: var(--s12); padding-right: var(--s12); }
  .gate__sub-line { max-width: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .gate, .gate__card, .gate__orb, .gate__icon-glow, .gate__btn::before { animation: none; }
}
