/* Session, terms and legal screens (TGC-046, TGC-049). Uses the tokens in style.css. The session
   banner sits over the live-drops strip, clear of every screen's main action. */

.session-expired {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  padding: calc(24px + var(--safe-top)) var(--gutter) calc(24px + var(--safe-bottom));
  background: radial-gradient(120% 60% at 50% -20%, rgba(124, 82, 255, 0.22), transparent 60%), var(--ink);
}
.session-expired .state { max-width: 360px; }
.session-banner {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); top: calc(var(--safe-top) + 60px);
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--column) - 2 * var(--gutter)));
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px;
  background: var(--vault-2); border: 1px solid rgba(255, 201, 74, 0.55); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  font-size: 13.5px; font-weight: 700;
}
.session-banner span { flex: 1; }
.session-banner .button { min-height: 44px; padding: 0 14px; font-size: 14px; flex: none; }

/* 18+ and terms gate: a sheet that cannot be dismissed. */
.terms-gate { display: grid; gap: 12px; }
.terms-gate h2 { font-size: 22px; font-weight: 800; }
.gate-points { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; color: var(--pearl); font-size: 14px; }
.gate-points li::marker { color: var(--star); }
.gate-region { color: var(--star); font-weight: 700; }
.gate-doc { border: 1px solid var(--line); border-radius: 14px; background: var(--vault-2); }
.gate-doc > summary { min-height: 48px; display: flex; align-items: center; padding: 0 14px; font: 700 14.5px var(--display); cursor: pointer; }
.gate-doc-body { padding: 0 14px 12px; display: grid; gap: 10px; max-height: 40vh; overflow-y: auto; }
.gate-check { position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 201, 74, 0.45); background: rgba(255, 201, 74, 0.06); font-weight: 700; font-size: 14px; cursor: pointer; }
.gate-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.gate-box { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--star); display: grid; place-items: center; }
.gate-check input:checked + .gate-box { background: var(--star); }
.gate-check input:checked + .gate-box::after { content: ''; width: 6px; height: 11px; margin-top: -3px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.gate-check:has(input:focus-visible) { outline: 2px solid var(--star); outline-offset: 2px; }
.gate-actions {
  position: sticky; bottom: calc(-18px - var(--safe-bottom)); display: grid; gap: 10px;
  margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) calc(18px + var(--safe-bottom));
  background: var(--vault); border-top: 1px solid var(--line);
}
.gate-actions .button.primary { width: 100%; }
.gate-actions .link { justify-self: center; }

/* Terms, odds and support (#legal). */
.legal-section { display: grid; gap: 6px; }
.legal-section h3 { font-size: 14.5px; }
.legal-section p { color: var(--haze); font-size: 13.5px; }
.legal-fold > summary h2 { font-size: 17px; }
.legal-status p { font-size: 14px; }
.legal-case { display: grid; gap: 8px; padding-top: 4px; }
.legal-case + .legal-case { border-top: 1px solid var(--line); padding-top: 14px; }
.legal-case h3 { font-size: 15.5px; }
.legal-case .muted .stars { font-size: 12.5px; color: var(--pearl); }
.legal-odds { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legal-odds li { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; align-items: center; gap: 10px; min-height: 32px; font-size: 13.5px; }
.legal-odds-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legal-odds .stars { font-size: 13px; }
.legal-odds b { font: 700 13.5px var(--display); font-variant-numeric: tabular-nums; text-align: right; color: var(--haze); }
.legal-support .button { width: 100%; text-decoration: none; }
.wallet > .link { margin-top: -4px; }

/* Stars deposits (TGC-022). */
.deposit-methods li.deposit-stars { padding: 0; border-color: rgba(255, 201, 74, 0.45); }
.deposit-stars button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; text-align: left; }
.deposit-stars em { color: var(--star); border-color: rgba(255, 201, 74, 0.45); }
.deposit { display: grid; gap: 12px; }
.deposit h2 { font-size: 22px; font-weight: 800; }
.deposit-amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.deposit-amounts .chip[aria-checked='true'] { color: var(--ink); background: var(--star); border-color: var(--star); }
.deposit-amounts .chip:disabled { opacity: 0.4; }
.deposit .button.primary { width: 100%; }

/* The deposit sheet's rail tabs, and GRAM deposits (TGC-056). */
.deposit-sheet { display: grid; gap: 14px; }
.deposit-tabs { margin-right: 40px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); }
.deposit-tab { min-height: 40px; border: 0; border-radius: 9px; background: none; color: var(--haze); font: 700 13px var(--display); }
.deposit-tab[aria-selected='true'] { color: var(--ink); background: var(--star); }
.deposit-quote { display: grid; gap: 2px; margin: 0; }
.deposit-quote span { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.deposit-quote small { color: var(--haze); font-size: 12px; }
.gram-address { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--ink); border: 1px solid rgba(255, 201, 74, 0.45); }
.gram-address-label { font-size: 12px; font-weight: 700; color: var(--star); }
.gram-address-value { font: 500 12.5px/1.45 var(--mono); color: #d9d1ff; overflow-wrap: anywhere; user-select: all; }
.gram-invoice { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.gram-invoice p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.gram-invoice[hidden] { display: none; }
.gram-wallet:empty { display: none; }

/* The fixed session banner reserves its height at the top of every screen, so it never covers a title. */
.view { padding-top: calc(16px + var(--session-banner, 0px)); }
