@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&family=Onest:wght@400;500;600&display=swap");

/* Gamefut Keys — components. Values come from tokens.css (generated from tokens.json). */

.gf-app, .gf-app *, .gf-app *::before, .gf-app *::after,
.gf-kit, .gf-kit *, .gf-kit *::before, .gf-kit *::after { box-sizing: border-box; }

.gf-app, .gf-kit {
  font-family: var(--font-sans);
  font-size: 16px; line-height: 24px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.gf-app { background: var(--bg); min-height: 100%; container: gf / inline-size; }
.gf-kit { background: var(--bg); padding: var(--space-4); }
/* Resets use :where() so they never outrank component classes */
:where(.gf-app, .gf-kit) :where(p, h1, h2, ol, ul) { margin: 0; }
:where(.gf-app, .gf-kit) :where(button, input) { font: inherit; color: inherit; }
:where(.gf-app, .gf-kit) :where(a) { color: inherit; }
:where(.gf-screen, .gf-form, .gf-field, .gf-actions, .gf-stack) > * { min-width: 0; }

/* Focus — one rule everywhere */
.gf-app :focus-visible, .gf-kit :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gf-h1:focus { outline: none; }

.gf-muted { color: var(--ink-2); }
.gf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Icons */
.gf-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.gf-ico--sm { width: 16px; height: 16px; }
.gf-ico--lg { width: 28px; height: 28px; stroke-width: 1.6; }

/* ───────── Top bar ───────── */
.gf-top { border-bottom: 1px solid var(--line); }
.gf-top__in { max-width: var(--page-w); margin: 0 auto; padding: 10px var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.gf-brand { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; gap: 6px; }
.gf-brand span { color: var(--ink-2); font-weight: 500; font-size: 14px; }

/* ───────── Language switch ───────── */
.gf-lang { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); }
.gf-lang button { min-width: 44px; height: 32px; padding: 0 10px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-2); cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.gf-lang button:hover { color: var(--ink); }
.gf-lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

/* ───────── Layout ───────── */
.gf-layout { max-width: var(--page-w); margin: 0 auto; padding: var(--space-4) var(--space-4) var(--space-12); display: grid; gap: var(--space-6); }
.gf-panel { min-width: 0; outline: none; }
.gf-layout--solo { max-width: calc(var(--panel-w) + 2 * var(--space-4)); }

@container gf (min-width: 880px) {
  .gf-top__in { padding: 14px var(--space-8); }
  .gf-layout { grid-template-columns: 320px minmax(0, var(--panel-w)); justify-content: center; column-gap: var(--space-12); padding: var(--space-12) var(--space-8); align-items: start; }
  .gf-layout--solo { grid-template-columns: minmax(0, var(--panel-w)); max-width: none; }
  .gf-aside { position: sticky; top: var(--space-8); }
  .gf-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-8); }
}

/* ───────── Game header ───────── */
.gf-game { display: flex; align-items: center; gap: var(--space-3); }
.gf-game__cover { width: 72px; height: 48px; flex: none; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-3); display: block; }
.gf-game__cover[hidden] { display: none !important; }
.gf-game__info { min-width: 0; display: grid; gap: 2px; }
.gf-game__title { font-size: 17px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.gf-game__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.gf-region { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.gf-region i { width: 6px; height: 6px; border-radius: 50%; background: var(--region); }

@container gf (min-width: 880px) {
  .gf-game { flex-direction: column; align-items: stretch; gap: var(--space-4); }
  .gf-game__cover { width: 100%; height: auto; aspect-ratio: 460 / 215; border-radius: var(--radius-lg); }
  .gf-game__title { font-size: 28px; line-height: 34px; letter-spacing: -0.01em; }
  .gf-game__info { gap: var(--space-2); }
}

/* Progress */
.gf-progress { margin-top: var(--space-4); display: grid; gap: var(--space-2); }
.gf-progress__row { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); }
.gf-progress__row b { color: var(--ink); font-weight: 500; }
.gf-progress__bar { height: 3px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.gf-progress__bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s ease; }
@container gf (min-width: 880px) { .gf-progress { margin-top: var(--space-6); } }

/* ───────── Screen ───────── */
.gf-screen { display: grid; gap: var(--space-5); }
.gf-head { display: grid; gap: var(--space-2); }
.gf-lead { color: var(--ink-2); }
.gf-stack { display: grid; gap: var(--space-3); }
.gf-actions { display: grid; gap: var(--space-2); justify-items: stretch; }
.gf-actions--center { justify-items: center; }
.gf-aux { display: flex; justify-content: center; }
.gf-divider { height: 1px; background: var(--line); }
.gf-screen--center { text-align: center; justify-items: center; padding-top: var(--space-6); }
.gf-screen--center .gf-head { justify-items: center; max-width: 400px; }
.gf-screen--center .gf-actions { width: 100%; }

.gf-hero { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; }
.gf-hero--success { background: var(--success-soft); color: var(--success); }
.gf-hero--danger { background: var(--danger-soft); color: var(--danger); }
.gf-hero--neutral { background: var(--surface-2); color: var(--ink-2); }
.gf-hero--accent { background: var(--accent-soft); color: var(--accent); }

/* ───────── Buttons ───────── */
.gf-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; min-height: var(--control-h); padding: 14px 20px; border-radius: var(--radius-md); border: 1px solid transparent; font-size: 16px; line-height: 20px; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.gf-btn--primary { background: var(--primary); color: var(--on-primary); }
.gf-btn--primary:hover { background: var(--primary-hover); }
.gf-btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.gf-btn--secondary:hover { background: var(--surface-2); }
.gf-btn[disabled], .gf-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.gf-btn.is-loading { cursor: progress; opacity: 1; }
.gf-btn.is-loading .gf-ico { display: none; }

.gf-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 var(--space-2); border: 0; background: none; color: var(--accent); font-size: 15px; line-height: 20px; font-weight: 500; text-decoration: none; cursor: pointer; border-radius: var(--radius-sm); }
.gf-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.gf-link--quiet { color: var(--ink-2); }
.gf-link--quiet:hover { color: var(--ink); }

/* Spinner */
.gf-spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: gf-spin .8s linear infinite; }
@keyframes gf-spin { to { transform: rotate(360deg); } }

/* ───────── Copy field ───────── */
.gf-field { display: grid; gap: var(--space-2); }
.gf-label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); }
.gf-copy { display: flex; align-items: center; gap: var(--space-2); min-height: 60px; padding: 8px 8px 8px 16px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line); }
.gf-copy__val { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 17px; line-height: 24px; font-weight: 500; letter-spacing: 0.02em; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.gf-copy__val--link { font-family: var(--font-sans); font-weight: 400; font-size: 15px; line-height: 22px; letter-spacing: 0; user-select: text; -webkit-user-select: text; }
.gf-copybtn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: var(--control-h-sm); padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.gf-copybtn:hover { background: var(--surface-3); }
.gf-copybtn::after, .gf-iconbtn::after { content: ""; position: absolute; inset: -2px; min-height: 44px; }
.gf-copybtn.is-copied, .gf-iconbtn.is-copied { color: var(--success); border-color: var(--success); }

/* Icon-only button (account rows, password toggle) */
.gf-iconbtn { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; }
.gf-iconbtn:hover { background: var(--surface-3); color: var(--ink); }

/* ───────── Account card ───────── */
.gf-account { border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line); }
.gf-account__row { display: flex; align-items: center; gap: var(--space-2); padding: 10px 8px 10px 16px; }
.gf-account__row + .gf-account__row { border-top: 1px solid var(--line); }
.gf-account__meta { flex: 1; min-width: 0; display: grid; }
.gf-account__k { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.gf-account__v { font-family: var(--font-mono); font-size: 16px; line-height: 24px; font-weight: 500; overflow-wrap: anywhere; }

/* ───────── Profile input ───────── */
.gf-form { display: grid; gap: var(--space-4); }
.gf-input { position: relative; display: flex; align-items: center; min-height: var(--control-h); border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line-strong); transition: border-color .15s, box-shadow .15s; }
.gf-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gf-input__field { flex: 1 1 0; width: 0; min-width: 0; height: calc(var(--control-h) - 2px); padding: 0 8px 0 16px; border: 0; background: transparent; outline: none; font-size: 16px; }
.gf-input__field::placeholder { color: var(--ink-3); opacity: 1; }
.gf-input__field:focus-visible { outline: none; }
.gf-input__btn { position: relative; flex: none; margin-right: 6px; display: inline-flex; align-items: center; gap: 6px; height: var(--control-h-sm); padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.gf-input__btn:hover { background: var(--surface-3); }
.gf-input__state { flex: none; margin-right: 14px; display: inline-flex; color: var(--ink-2); }
.gf-input.is-error { border-color: var(--danger); }
.gf-input.is-error:focus-within { box-shadow: 0 0 0 1px var(--danger); }
.gf-input.is-checking { border-color: var(--line); }
.gf-input.is-checking .gf-input__field { color: var(--ink-2); }

/* Profile (verified) */
.gf-profile { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line); }
.gf-avatar { width: 48px; height: 48px; flex: none; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 20px; object-fit: cover; }
.gf-profile__body { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.gf-profile__nick { font-size: 17px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.gf-profile .gf-link { flex: none; }
.gf-okbadge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px 0 6px; border-radius: var(--radius-sm); background: var(--success-soft); color: var(--success); font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; }

/* ───────── Notices ───────── */
.gf-note { display: flex; gap: var(--space-3); align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; line-height: 20px; color: var(--ink); }
.gf-note > .gf-ico { margin-top: 0; }
.gf-note__body { display: grid; gap: 2px; min-width: 0; }
.gf-note__title { font-weight: 600; }
.gf-note__actions { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 -8px -8px; }
.gf-note__actions .gf-link { font-size: 14px; min-height: 40px; }
.gf-note--info { background: var(--surface-2); }
.gf-note--info > .gf-ico { color: var(--ink-2); }
.gf-note--success { background: var(--success-soft); }
.gf-note--success > .gf-ico { color: var(--success); }
.gf-note--warning { background: var(--warning-soft); }
.gf-note--warning > .gf-ico { color: var(--warning); }
.gf-note--danger { background: var(--danger-soft); }
.gf-note--danger > .gf-ico { color: var(--danger); }

/* One-line fine print (e.g. the «Decline» line) */
.gf-fine { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.gf-fine .gf-ico { width: 16px; height: 16px; margin-top: 2px; }

/* Sign-in instruction */
.gf-signin { display: flex; gap: var(--space-3); align-items: flex-start; }
.gf-signin__ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--surface-2); color: var(--ink-2); }
.gf-signin__body { display: grid; gap: 2px; min-width: 0; padding-top: 2px; }
.gf-signin__text { font-size: 16px; line-height: 22px; }
.gf-signin__text strong { font-weight: 600; font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.01em; overflow-wrap: anywhere; }

/* ───────── Status line ───────── */
.gf-status { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 24px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.gf-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); animation: gf-pulse 1.6s ease-in-out infinite; }
@keyframes gf-pulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

/* ───────── Disclosure ───────── */
.gf-more { border-radius: var(--radius-md); }
.gf-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--space-2); margin-left: calc(-1 * var(--space-2)); border-radius: var(--radius-sm); color: var(--ink-2); font-size: 15px; font-weight: 500; cursor: pointer; }
.gf-more > summary::-webkit-details-marker { display: none; }
.gf-more > summary:hover { color: var(--ink); }
.gf-more > summary .gf-ico { width: 16px; height: 16px; transition: transform .2s; }
.gf-more[open] > summary .gf-ico { transform: rotate(180deg); }
.gf-more__body { padding: var(--space-1) 0 var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.gf-steps { list-style: none; padding: 0; display: grid; gap: var(--space-3); counter-reset: gfstep; }
.gf-steps li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); counter-increment: gfstep; }
.gf-steps li::before { content: counter(gfstep); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1; }
.gf-steps li span { padding-top: 2px; }

/* ───────── Choice cards ───────── */
.gf-choices { display: grid; gap: var(--space-3); }
.gf-choice { display: flex; align-items: center; gap: var(--space-4); width: 100%; padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; transition: background-color .15s, border-color .15s; }
.gf-choice:hover { background: var(--surface-2); border-color: var(--line-strong); }
@container gf (min-width: 880px) { .gf-choice { background: var(--surface-2); } .gf-choice:hover { background: var(--surface-3); } }
.gf-choice__ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent); }
.gf-choice__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gf-choice__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 17px; line-height: 24px; font-weight: 600; }
.gf-choice__text { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.gf-choice > .gf-ico { color: var(--ink-3); }
.gf-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font-size: 14px; line-height: 20px; font-weight: 500; }

/* ───────── Help tooltip (знак вопроса с подсказкой) ───────── */
.gf-help { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 7px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-2); cursor: pointer; vertical-align: -4px; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.gf-help > .gf-ico { width: 13px; height: 13px; stroke-width: 2.2; }
.gf-help:hover, .gf-help:focus-visible { background: var(--accent); color: var(--on-primary); border-color: var(--accent); outline: none; }
.gf-help:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
.gf-help__bubble { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 280px; max-width: 78vw; padding: 11px 13px; border-radius: var(--radius-md); background: var(--surface-3); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); font-size: 13px; line-height: 1.5; font-weight: 400; text-align: left; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 30; pointer-events: none; }
.gf-help__bubble::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--line-strong); }
.gf-help:hover .gf-help__bubble, .gf-help:focus .gf-help__bubble, .gf-help:focus-visible .gf-help__bubble { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
@media (max-width: 560px) { .gf-help__bubble { left: auto; right: -8px; transform: translateY(4px); } .gf-help__bubble::after { left: auto; right: 12px; margin-left: 0; } .gf-help:hover .gf-help__bubble, .gf-help:focus .gf-help__bubble, .gf-help:focus-visible .gf-help__bubble { transform: translateY(0); } }

/* ───────── Confirm checkbox (self-activation) ───────── */
.gf-confirm { position: relative; display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-size: 15px; line-height: 22px; transition: border-color .15s, background-color .15s; }
.gf-confirm:hover { border-color: var(--line-strong); }
.gf-confirm input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; top: var(--space-4); left: var(--space-4); cursor: pointer; }
.gf-confirm__box { width: 22px; height: 22px; flex: none; margin-top: 1px; display: grid; place-items: center; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--surface); color: transparent; transition: background-color .15s, border-color .15s, color .15s; }
.gf-confirm input:checked + .gf-confirm__box { background: var(--accent); border-color: var(--accent); color: var(--on-primary); }
.gf-confirm input:focus-visible + .gf-confirm__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.gf-confirm:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.gf-confirm.is-error { border-color: var(--warning); background: var(--warning-soft); }
.gf-confirm__hint { margin-top: calc(-1 * var(--space-3)); font-size: 14px; line-height: 20px; color: var(--warning); }

/* ───────── Ways to use the gift link ───────── */
.gf-way { display: grid; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); }
.gf-way .gf-btn { margin-top: var(--space-2); }
.gf-way__title { font-size: 16px; line-height: 22px; font-weight: 600; }
.gf-way__text { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.gf-way__text strong { color: var(--ink); font-weight: 600; }

/* ───────── Message preview (gift for someone else) ───────── */
.gf-msg { display: grid; gap: var(--space-2); }
.gf-msg__box { padding: 12px 14px; border-radius: var(--radius-md); border: 1px dashed var(--line-strong); font-size: 14px; line-height: 20px; color: var(--ink-2); display: grid; gap: 4px; overflow-wrap: anywhere; }
.gf-msg__box p:first-child { color: var(--ink); }

/* ───────── Skeleton ───────── */
.gf-skel { border-radius: var(--radius-sm); background: var(--surface-3); animation: gf-shimmer 1.4s ease-in-out infinite; }
@keyframes gf-shimmer { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .gf-spin { animation-duration: 2.4s; }
  .gf-dot, .gf-skel { animation: none; }
  .gf-progress__bar i, .gf-more > summary .gf-ico { transition: none; }
}

/* ───────── Review gallery (design system + prototype only, not for production) ───────── */
.gf-review { font-family: var(--font-sans); color: var(--ink); background: var(--bg); }
.gf-review__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.gf-review__bar label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.gf-review__bar select { font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); height: 34px; padding: 0 8px; }
.gf-review__seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.gf-review__seg button { font: inherit; font-size: 14px; border: 0; background: var(--surface-2); color: var(--ink-2); height: 32px; padding: 0 10px; cursor: pointer; }
.gf-review__seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.gf-review__stage { padding: 16px; overflow: hidden; }
.gf-review__frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transform-origin: 0 0; background: var(--bg); }
.gf-review__grid { display: flex; flex-wrap: wrap; gap: 20px; }
.gf-review__cell { display: grid; gap: 8px; align-content: start; }
.gf-review__cap { font-size: 14px; line-height: 18px; color: var(--ink-2); font-family: var(--font-mono); }
.gf-review__clip { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
