﻿/* ==========================================================================
   icyNatural Game OS — premium personal gaming intelligence interface
   Dark launcher aesthetic: game content dominates, chrome recedes.
   ========================================================================== */

:root {
  /* stage */
  --bg0: #060708;
  --bg1: #0a0b0d;
  --field: #0e1013;
  --surf: rgba(255, 255, 255, .028);
  --surf2: rgba(255, 255, 255, .055);
  --surf3: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .14);
  --text: #eceef1;
  --muted: #99a1ab;
  --dim: #666e78;

  /* brand */
  --volt: #d2f53c;
  --volt-dim: rgba(210, 245, 60, .13);
  --ice: #7ee7ff;
  --ice-dim: rgba(126, 231, 255, .11);

  /* semantics (taste / polarity) */
  --pos: #4ade9d;
  --neg: #ff6b81;
  --amber: #ffc66d;
  --violet: #a78bfa;

  /* score tiers (used by app.js inline styles) */
  --red: #ff6b81;
  --orange: #ffa45c;
  --green: #4ade9d;
  --cyan: #7ee7ff;
  --blue: #6aa8ff;

  --shadow: 0 24px 70px rgba(0, 0, 0, .5);
  --radius: 16px;
  --rail: 236px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  overflow: hidden;
}

/* ambient stage lighting — barely there */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(126, 231, 255, .05), transparent 60%),
    radial-gradient(1000px 620px at 96% 108%, rgba(210, 245, 60, .04), transparent 58%),
    radial-gradient(1400px 900px at 50% 50%, transparent 40%, rgba(0, 0, 0, .5) 100%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: rgba(210, 245, 60, .28); }

h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.035em; }
h3 { font-size: 22px; }
h4 { font-size: 24px; }
p { margin: 0; }

.eyebrow {
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .2em;
  margin-bottom: 6px;
}

.subtext { color: var(--dim); font-size: 13px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -.01em; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .2); border: 3px solid transparent; background-clip: content-box; }

/* ==========================================================================
   Shell — launcher rail + stage
   ========================================================================== */

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 16px 18px;
  background: rgba(8, 9, 11, .72);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand-wrap { display: flex; align-items: center; gap: 12px; padding: 2px 8px 20px; }

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--volt);
  color: #0a0c04;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -.04em;
  box-shadow: 0 0 26px rgba(210, 245, 60, .22);
}

.brand-title { font-weight: 850; font-size: 15.5px; letter-spacing: -.02em; }
.brand-copy .eyebrow { margin-bottom: 1px; font-size: 9.5px; }

.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--dim);
  font-weight: 750;
  padding: 10px 10px 8px;
}

.nav { display: grid; gap: 2px; overflow-y: auto; min-height: 0; }

.nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  cursor: pointer;
  text-align: left;
  transition: background .16s ease, color .16s ease;
}

.nav-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: var(--volt);
  transition: transform .18s ease;
}

.nav-btn:hover { background: var(--surf2); color: var(--text); }
.nav-btn.active { background: var(--surf2); color: var(--text); }
.nav-btn.active::before { transform: translateY(-50%) scaleY(1); }
.nav-btn.active .nav-ico { color: var(--volt); }

.nav-ico { width: 17px; height: 17px; flex: none; color: var(--dim); transition: color .16s ease; }
.nav-btn:hover .nav-ico { color: var(--muted); }
.nav-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 8px; }

.meta-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
}
.meta-card div {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--dim);
  font-weight: 750;
}
.meta-card strong { display: block; margin-top: 3px; font-size: 15px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.sidebar-note { font-size: 11.5px; line-height: 1.55; color: var(--dim); padding: 6px 8px 0; }

/* stage ------------------------------------------------------------------ */

.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 34px 0;
}

.topbar-left { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.topbar-left h1 { font-size: 15px; font-weight: 850; text-transform: uppercase; letter-spacing: .14em; }
.topbar-sep { width: 1px; height: 14px; background: var(--line2); align-self: center; }
.topbar-left .subtext { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.top-actions, .hero-actions, .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 20px 34px 64px;
}

.tab { display: none; opacity: 0; transform: translateY(8px); }
.tab.active { display: grid; gap: 22px; animation: tabIn .3s cubic-bezier(.2, .7, .3, 1) forwards; }

@keyframes tabIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .tab.active { animation: none; opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; }
}

/* ==========================================================================
   Buttons / chips / tags / fields
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.btn:disabled { cursor: not-allowed; opacity: .42; transform: none; box-shadow: none; }
.btn:disabled:hover { transform: none; box-shadow: none; }

.btn-primary {
  background: var(--volt);
  color: #0b0d05;
  box-shadow: 0 6px 22px rgba(210, 245, 60, .16);
}
.btn-primary:hover { background: #dcff52; box-shadow: 0 8px 26px rgba(210, 245, 60, .24); }

.btn-secondary {
  background: transparent;
  border-color: var(--line2);
  color: var(--text);
}
.btn-secondary:hover { background: var(--surf2); border-color: rgba(255, 255, 255, .22); }

.view-history-btn {
  background: none;
  border: none;
  color: var(--ice);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.view-history-btn:hover { background: var(--ice-dim); }

/* chips ------------------------------------------------------------------- */

.gos-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surf2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
button.gos-chip { cursor: pointer; font-family: inherit; transition: background .15s ease, color .15s ease, border-color .15s ease; }
button.gos-chip:hover { color: var(--text); border-color: var(--line2); }
button.gos-chip.active { background: var(--volt-dim); border-color: rgba(210, 245, 60, .5); color: var(--volt); }

.gos-chip-pos { color: var(--pos); border-color: rgba(74, 222, 157, .4); background: rgba(74, 222, 157, .09); }
.gos-chip-neg { color: var(--neg); border-color: rgba(255, 107, 129, .4); background: rgba(255, 107, 129, .09); }
.gos-chip-mixed { color: var(--amber); border-color: rgba(255, 198, 109, .38); background: rgba(255, 198, 109, .08); }
.gos-chip-emerging { color: var(--ice); border-color: rgba(126, 231, 255, .38); background: var(--ice-dim); }
.gos-chip-contra { color: var(--amber); border-color: rgba(255, 198, 109, .5); background: rgba(255, 198, 109, .1); }
.gos-chip-lineage { color: var(--ice); border-color: rgba(126, 231, 255, .2); background: transparent; }
.gos-chip-suggest { padding: 6px 13px; font-size: 12px; background: var(--surf); }

.gos-chip-line { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* tags (friction + signals) ------------------------------------------------ */

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.tag:hover { color: var(--text); border-color: var(--line2); background: var(--surf2); }
.tag.active,
.gos-sig-tag.gos-sig-pos {
  background: var(--volt-dim);
  border-color: rgba(210, 245, 60, .55);
  color: var(--volt);
}
.gos-sig-tag.gos-sig-neg {
  background: rgba(255, 107, 129, .12);
  border-color: rgba(255, 107, 129, .55);
  color: var(--neg);
}

.gos-signal-groups { display: grid; gap: 14px; }
.gos-sig-group { display: grid; gap: 8px; }
.gos-sig-group-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--dim);
  font-weight: 750;
}

/* fields ------------------------------------------------------------------ */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }

.field { display: grid; gap: 7px; min-width: 0; }
.field > span {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--dim);
  font-weight: 750;
}

.field input, .field select, .field textarea, .input {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none;
  border-color: rgba(126, 231, 255, .55);
  box-shadow: 0 0 0 3px rgba(126, 231, 255, .12);
}
.field textarea { min-height: 86px; resize: vertical; line-height: 1.6; }
.notes-field { margin-bottom: 4px; }

.field-title {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 10px;
}
.field-hint { color: var(--dim); font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 8px; }

.subsection { margin-top: 26px; }
.actions { margin-top: 24px; }

/* ==========================================================================
   Cards / sections / lists
   ========================================================================== */

.panel {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-card { padding: 24px 26px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }

.analysis-list { display: grid; gap: 9px; }
.analysis-item {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  padding-left: 14px;
  border-left: 2px solid var(--line2);
}
.analysis-item.mono { border-left-color: rgba(126, 231, 255, .3); color: var(--ice); }

/* ==========================================================================
   Dashboard — hero + latest take
   ========================================================================== */

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  min-height: 306px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(560px 300px at 8% 0%, rgba(126, 231, 255, .07), transparent 65%),
    linear-gradient(125deg, #0d0f12 0%, #0a0b0e 60%, #08090b 100%);
}

.hero-left {
  padding: 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.hero-left p { font-size: 14.5px; line-height: 1.7; color: var(--muted); max-width: 54ch; margin: 12px 0 4px; }
.hero-actions { margin-top: 18px; }

.hero-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}

.img-row {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 100%;
}
.img-row + .img-row { border-left: 1px solid rgba(255, 255, 255, .06); }
.img-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 8, .05) 38%, rgba(6, 7, 8, .78) 100%);
}
.img-row-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 1;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .85);
  pointer-events: none;
}
.img-row-1 { filter: saturate(1.04); }
.img-row-2 { filter: saturate(1.12) brightness(1.05); }
.img-row-3 { filter: saturate(.98) brightness(.99); }

/* featured take ------------------------------------------------------------ */

.featured-take-card {
  position: relative;
  overflow: hidden;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.featured-take-card > *:not(.featured-take-bg) { position: relative; z-index: 1; }
.featured-take-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
}
.featured-take-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8, 9, 11, .94) 0%, rgba(8, 9, 11, .72) 44%, rgba(8, 9, 11, .26) 100%);
}

.featured-take-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-top: 6px;
}
.featured-ring-zone { width: min(230px, 100%); }

/* Experience Glyph -------------------------------------------------------- */
.experience-glyph { margin: 0; position: relative; display: grid; place-items: center; isolation: isolate; }
.experience-glyph svg { display: block; width: 100%; height: auto; overflow: visible; }
.experience-glyph--xs { width: 58px; }
.experience-glyph--sm { width: 118px; }
.experience-glyph--md { width: 180px; }
.experience-glyph--lg { width: min(360px, 100%); }
.experience-glyph--xl { width: min(510px, 100%); }
/* Fixed 0–10 nine-axis radar ---------------------------------------------- */
.experience-radar__grid { pointer-events: none; }
.experience-radar__spoke { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: .6; }
.experience-radar__ring { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: .65; }
.experience-radar__ring--outer { stroke: rgba(255, 255, 255, .18); stroke-width: .85; }
.experience-radar__axis { stroke: rgba(248, 255, 114, 0); stroke-width: 1.4; stroke-linecap: round; transition: stroke .14s ease; }
.experience-radar__axis.is-dimension-active { stroke: rgba(248, 255, 114, .62); }
.experience-radar__fill { opacity: .42; }
.experience-radar__outline { fill: none; stroke: rgba(255, 255, 255, .94); stroke-width: 1.35; stroke-linejoin: miter; stroke-miterlimit: 6; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.experience-radar__dot { fill: #fff; stroke: rgba(126, 231, 255, .9); stroke-width: 1; transition: fill .14s ease, stroke .14s ease; }
.experience-radar__dot.is-dimension-active { fill: #f8ff72; stroke: rgba(248, 255, 114, .95); }
.experience-radar__sector { fill: transparent; cursor: pointer; pointer-events: all; transition: fill .14s ease; }
.experience-radar__sector.is-dimension-active { fill: rgba(126, 231, 255, .09); }
.experience-radar__label { fill: var(--muted); font: 800 6.6px var(--font); letter-spacing: .055em; cursor: pointer; outline: none; transition: fill .14s ease; }
.experience-radar__label.is-dimension-active,
.experience-radar__label:focus-visible { fill: #f8ff72; }
.experience-radar__label:focus-visible { text-decoration: underline; }
.experience-radar__core { fill: rgba(6, 8, 13, .74); stroke: rgba(255, 255, 255, .16); stroke-width: .7; pointer-events: none; }
.experience-glyph__score { fill: #fff; font: 900 17px var(--font); letter-spacing: -.05em; paint-order: stroke; stroke: rgba(0, 0, 0, .65); stroke-width: 2px; pointer-events: none; }
.experience-glyph__score-label { fill: #aab2c0; font: 800 5.4px var(--font); letter-spacing: .19em; pointer-events: none; }
.experience-glyph__tip { position: absolute; z-index: 6; transform: translate(-50%, calc(-100% - 12px)); padding: 5px 9px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; background: rgba(6, 8, 12, .95); color: var(--text); font: 800 11px var(--font); letter-spacing: .04em; white-space: nowrap; pointer-events: none; box-shadow: 0 12px 26px rgba(0, 0, 0, .55); }
.experience-glyph__tip.is-below { transform: translate(-50%, 14px); }
.experience-glyph__tip[hidden] { display: none; }
.experience-glyph--xs .experience-radar__outline { stroke-width: 4; filter: none; }
.experience-glyph--xs .experience-radar__fill { opacity: .55; }
.experience-glyph--sm .experience-radar__outline { stroke-width: 2.4; filter: none; }
.experience-glyph--sm .experience-radar__fill { opacity: .5; }
.experience-glyph--md .experience-radar__outline { stroke-width: 1.9; }
.experience-glyph--md .experience-glyph__score { font-size: 13px; }
.experience-glyph--md .experience-glyph__score-label { font-size: 4.2px; }
/* Variant accents are visual only — every variant uses the same radar geometry */
.experience-radar--game .experience-radar__outline { stroke: rgba(126, 231, 255, .92); }
.experience-radar--game .experience-radar__dot { stroke: rgba(126, 231, 255, .95); }
.experience-radar--taste .experience-radar__outline { stroke: rgba(210, 245, 60, .9); }
.experience-radar--taste .experience-radar__dot { stroke: rgba(210, 245, 60, .95); }
.history-glyph { width: 58px; flex: none; }
.result-glyph-host { display: grid; place-items: center; width: 100%; height: 100%; }

.featured-ring-zone { display: grid; place-items: center; }

.take-chip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.take-chip {
  background: rgba(10, 12, 14, .55);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  backdrop-filter: blur(6px);
}
.take-chip-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--dim);
  font-weight: 750;
}
.take-chip-value { font-size: 21px; font-weight: 850; letter-spacing: -.03em; margin-top: 3px; font-variant-numeric: tabular-nums; }

.take-identity-line { color: var(--muted); font-size: 12.5px; margin-top: 5px; letter-spacing: .02em; }

.live-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 18px;
  padding: 10px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.live-item { display: grid; gap: 2px; padding: 2px 16px; }
.live-item + .live-item { border-left: 1px solid var(--line); }
.live-item span {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--dim);
  font-weight: 750;
}
.live-item strong { font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.featured-take-card .analysis-list { margin-top: 16px; }

/* recent games / history rows --------------------------------------------- */

.recent-games-list { display: grid; gap: 4px; }

.recent-game-item { border-radius: 11px; transition: background .15s ease; }
.recent-game-item:hover { background: var(--surf2); }

.recent-game-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  cursor: pointer;
}

.recent-game-thumb {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 9px;
  background-size: cover;
  background-position: center 30%;
  border: 1px solid var(--line);
}

.recent-game-left { flex: 1; min-width: 0; }
.recent-game-title {
  font-size: 14.5px;
  font-weight: 750;
  letter-spacing: -.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-game-preview {
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.history-game-item .recent-game-preview { -webkit-line-clamp: 2; }
.history-game-meta { color: var(--muted); font-size: 11.5px; margin-top: 3px; letter-spacing: .03em; }

.recent-game-score {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.recent-game-chevron { color: var(--dim); font-size: 18px; transition: color .15s ease, transform .15s ease; }
.recent-game-item:hover .recent-game-chevron { color: var(--volt); transform: translateX(2px); }

/* ==========================================================================
   Score rings / bars / metrics
   ========================================================================== */

.score-ring-wrap { display: grid; place-items: center; }

.score-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 180deg, var(--cyan) 0deg, var(--cyan) var(--score-angle, 295deg), rgba(255, 255, 255, .08) var(--score-angle, 295deg), rgba(255, 255, 255, .08) 360deg);
  transition: background .4s ease;
}
#scoreRing { width: 158px; height: 158px; }

.score-ring-inner {
  width: calc(100% - 26px);
  height: calc(100% - 26px);
  border-radius: 50%;
  background: #0b0d10;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  box-shadow: inset 0 4px 18px rgba(0, 0, 0, .5);
}
#scoreRing .score-ring-inner { width: calc(100% - 30px); height: calc(100% - 30px); }

.score-ring-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--dim);
  font-weight: 750;
}
.score-big {
  font-size: 33px;
  font-weight: 900;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
#scoreRing .score-big { font-size: 40px; }

.bar-row { display: grid; gap: 7px; }
.bar-row[data-glyph-dimension] { border-radius: 8px; cursor: pointer; outline: none; transition: background .14s ease, box-shadow .14s ease; }
.bar-row[data-glyph-dimension].is-dimension-active,
.bar-row[data-glyph-dimension]:focus-visible { background: rgba(126, 231, 255, .08); box-shadow: 0 0 0 1px rgba(248, 255, 114, .34); }
.bar-row[data-glyph-dimension].is-dimension-active .bar-top span:first-child { color: #f8ff72; }
.bar-row[data-glyph-dimension].is-dimension-active .bar-fill { filter: brightness(1.25) saturate(1.2); }
.bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--muted); }
.bar-top span:last-child { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; font-size: 13.5px; }

.bar-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--surf3);
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ice), var(--volt));
  transition: width .6s cubic-bezier(.2, .7, .3, 1);
}

.metric-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 34px; margin-top: 6px; }
.metric-row { display: grid; gap: 8px; }
.metric-row.is-unanswered { opacity: .68; }
.metric-row.is-unanswered .metric-value { color: var(--dim); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.metric-row.is-unanswered input[type="range"] { opacity: .62; }
.metric-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.metric-name { font-size: 14px; font-weight: 750; letter-spacing: -.01em; }
.metric-hint { font-size: 12px; color: var(--dim); margin-top: 2px; line-height: 1.45; }
.metric-value {
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.04em;
  color: var(--volt);
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  text-align: right;
}

input[type="range"] {
  width: 100%;
  height: 22px;
  accent-color: var(--volt);
  cursor: pointer;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: var(--surf3); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--volt);
  border: 3px solid #0b0d10;
  box-shadow: 0 0 0 1px rgba(210, 245, 60, .5), 0 0 14px rgba(210, 245, 60, .35);
}
.test-validation-status { align-self: center; color: var(--dim); font-size: 12px; line-height: 1.45; }
.test-validation-status.is-ready { color: var(--pos); }
.test-validation-status.is-error { color: var(--neg); }

/* ==========================================================================
   Results
   ========================================================================== */

.results-card { position: relative; overflow: clip; background: radial-gradient(650px 480px at 25% 42%, rgba(165, 44, 255, .09), transparent 68%), radial-gradient(520px 360px at 86% 8%, rgba(126, 231, 255, .05), transparent 70%), var(--surf); }
.results-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.02), transparent 24%, rgba(255,255,255,.012) 52%, transparent 70%); }
.results-card > * { position: relative; z-index: 1; }
.results-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.results-header h2 { font-size: clamp(34px, 5vw, 66px); text-transform: uppercase; letter-spacing: -.05em; }
.results-header-meta { color: var(--volt); font-size: 10px; text-transform: uppercase; letter-spacing: .2em; font-weight: 800; padding: 7px 11px; border: 1px solid rgba(210,245,60,.28); border-radius: 999px; background: rgba(210,245,60,.06); }
.results-composition { display: grid; grid-template-columns: minmax(440px, 1.25fr) minmax(320px, .75fr); gap: 32px; align-items: stretch; margin-top: 22px; }
.results-emblem-stage { min-width: 0; display: grid; align-content: start; gap: 18px; }
.results-emblem-frame { position: relative; min-height: 620px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 18px; overflow: clip; background: radial-gradient(circle at 50% 50%, rgba(165,44,255,.12), transparent 34%), radial-gradient(circle at 50% 50%, rgba(126,231,255,.045), transparent 56%), rgba(4,6,9,.7); }
.results-emblem-frame::before, .results-emblem-frame::after { content: ""; position: absolute; pointer-events: none; }
.results-emblem-frame::before { inset: 34px; border: 1px solid rgba(255,255,255,.045); transform: rotate(45deg); }
.results-emblem-frame::after { width: 1px; top: 28px; bottom: 28px; left: 50%; background: linear-gradient(transparent, rgba(255,255,255,.09), transparent); }
.results-emblem-label { position: absolute; z-index: 2; top: 16px; left: 18px; color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; pointer-events: none; }
.results-emblem-frame .result-glyph-host { position: relative; z-index: 1; }
.results-readout { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7,9,12,.7); }
.results-note-label { margin-top: 16px; margin-bottom: 7px; color: var(--dim); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.results-readout .analysis-item { margin: 0; }
.results-dimensions { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: rgba(7,9,12,.72); display: grid; align-content: start; gap: 16px; }
.results-dimensions-head { display: grid; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.results-dimensions-head h3 { font-size: 25px; }
.results-legend { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.results-legend span { width: 16px; height: 3px; display: inline-block; border-radius: 999px; margin-left: 6px; }
.results-legend .is-absolute { background: linear-gradient(90deg, #7ee7ff, #8f7bff, #c65cff); }
.results-dimensions .bar-row { padding: 4px 0; }
.results-dimensions .bar-track { height: 6px; background: rgba(255,255,255,.07); }

.verdict {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  border-left: 2px solid var(--ice);
  padding-left: 16px;
  font-weight: 550;
}

/* ==========================================================================
   Discover — knowledge graph
   ========================================================================== */

.gos-breadcrumb { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.gos-crumb {
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background .14s ease, color .14s ease;
}
.gos-crumb:hover { background: var(--surf2); color: var(--text); }
.gos-crumb-sep { color: rgba(255, 255, 255, .2); font-size: 11px; }
.gos-crumb-current { color: var(--ice); font-size: 12.5px; padding: 0 4px; }

.gos-search-wrap { position: relative; z-index: 30; margin-bottom: 16px; }
.gos-search {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 12px;
  background: var(--field) 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='%2399a1ab' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gos-search::placeholder { color: var(--dim); }
.gos-search:focus {
  outline: none;
  border-color: rgba(126, 231, 255, .5);
  box-shadow: 0 0 0 3px rgba(126, 231, 255, .1);
}

.gos-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 360px;
  overflow-y: auto;
  background: #101317;
  border: 1px solid var(--line2);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 50;
}
.gos-search-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: background .12s ease;
}
.gos-search-item:hover { background: var(--surf2); }
.gos-search-name { font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gos-search-empty { padding: 12px 14px; color: var(--dim); font-size: 13px; }

/* Universal search: catalog (RAWG) rows + add flow */
.gos-search-divider {
  padding: 8px 12px 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.gos-search-item-catalog { cursor: default; justify-content: space-between; }
.gos-search-item-catalog:hover { background: var(--surf2); }
.gos-search-item-catalog.is-added { outline: 1px solid rgba(210, 245, 60, .35); }
.gos-search-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.gos-search-meta { font-size: 11.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gos-search-add {
  flex: none;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  background: var(--surf2);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.gos-search-add:hover { border-color: rgba(210, 245, 60, .5); }
.gos-search-add:disabled { opacity: .6; cursor: wait; }
.gos-search-add.is-known { border-color: rgba(126, 231, 255, .4); color: var(--ice); }
.gos-search-item-catalog .gos-type-chip.gos-type-game { background: rgba(155, 107, 255, .14); color: #c9b6ff; }

.gos-catalog-status {
  min-height: 18px;
  margin: -6px 0 16px;
  font-size: 12.5px;
  color: var(--dim);
}
.gos-catalog-status.is-ok { color: #9ed96f; }
.gos-catalog-status.is-error { color: #ff8f8f; }

.gos-search-attribution {
  padding: 6px 12px 8px;
  font-size: 10.5px;
  color: var(--dim);
}
.gos-search-attribution a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }
.gos-search-attribution a:hover { color: var(--ice); }

/* Test-screen inline autocomplete ------------------------------------------ */

.gos-ac-wrap { position: relative; z-index: 30; min-width: 0; }
.gos-ac-results { max-height: 360px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.gos-ac-wrap.is-up .gos-ac-results { top: auto; bottom: calc(100% + 8px); }
.gos-ac-row { gap: 10px; touch-action: manipulation; }
.gos-ac-row.is-active,
.gos-ac-row:focus-visible { background: var(--surf2); outline: none; }
.gos-ac-cover {
  flex: none;
  width: 34px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surf2);
  border: 1px solid var(--line2);
}
.gos-ac-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gos-ac-name-row .gos-search-name { flex: 1; min-width: 0; }
.gos-ac-badge {
  flex: none;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--ice);
  background: rgba(126, 231, 255, .1);
  border: 1px solid rgba(126, 231, 255, .28);
}
.gos-ac-custom .gos-search-meta { color: var(--muted); }
.gos-ac-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -8px 0 16px;
  font-size: 12.5px;
  color: var(--dim);
}
.gos-ac-platforms-label { color: var(--dim); }
.gos-ac-chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: var(--surf2);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.gos-ac-chip:hover { border-color: rgba(126, 231, 255, .45); color: var(--ice); }
.gos-ac-chip.is-picked {
  border-color: rgba(210, 245, 60, .5);
  color: var(--volt);
  background: rgba(210, 245, 60, .08);
}

.gos-catalog-settings { display: grid; gap: 10px; margin: 10px 0; max-width: 460px; }

/* Search shortcut is a mobile-only affordance */
.gos-mobile-search-btn { display: none; }

.gos-filter-row { display: grid; gap: 12px; margin-bottom: 4px; }
.gos-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.gos-filter-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }

.gos-filter-field { display: grid; gap: 5px; min-width: 132px; }
.gos-filter-field > span {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--dim);
  font-weight: 750;
}
.gos-filter-field .input { padding: 8px 10px; font-size: 13px; border-radius: 9px; min-width: 132px; }
.gos-filter-reset { align-self: end; padding: 9px 14px; font-size: 12.5px; }

.gos-library-field { min-width: 168px; }
.gos-library-field .input { min-width: 168px; }

/* detail dossier ----------------------------------------------------------- */

.gos-detail { margin: 20px 0 22px; }
.gos-detail-art {
  height: 148px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center 22%;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.gos-detail-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 7, 8, .55));
}

.gos-detail-head { display: grid; gap: 7px; }
.gos-detail-head .gos-type-chip { justify-self: start; }
.gos-detail-name { font-size: clamp(24px, 3vw, 34px); font-weight: 850; letter-spacing: -.03em; line-height: 1.05; }
.gos-detail-alias { color: var(--dim); font-size: 12.5px; }

.gos-detail-meta { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-top: 13px; }
.gos-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surf2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .02em;
}
.gos-library-field {
  display: grid;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--surf);
  border: 1px solid var(--line);
  margin-left: auto;
}
.gos-library-field > span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--dim);
  font-weight: 750;
}
.gos-library-field .input { padding: 6px 8px; font-size: 12.5px; border-radius: 7px; border-color: transparent; background: var(--field); }

/* reviewed game experience dossier --------------------------------------- */
.game-dossier { display: grid; gap: 14px; margin-top: 20px; }
.game-dossier__hero { position: relative; min-height: 190px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; align-items: end; }
.game-dossier__hero-art { position: absolute; inset: 0; background-size: cover; background-position: center 25%; }
.game-dossier__hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 7, 10, .96), rgba(5, 7, 10, .62) 52%, rgba(5, 7, 10, .15)), linear-gradient(0deg, rgba(5, 7, 10, .7), transparent 60%); }
.game-dossier__hero-copy { position: relative; z-index: 1; padding: 28px; max-width: 650px; display: grid; gap: 8px; }
.game-dossier__hero-copy h3 { font-size: clamp(30px, 5vw, 58px); text-transform: uppercase; letter-spacing: -.04em; }
.game-dossier__top { display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(280px, .85fr); gap: 14px; }
.game-dossier__lower { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.game-dossier__panel { background: rgba(7, 9, 12, .72); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.game-dossier__panel-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.game-dossier__glyph { display: grid; justify-items: center; }
.game-dossier__glyph .game-dossier__panel-head { width: 100%; }
.glyph-dimension { display: grid; gap: 5px; margin-top: 10px; }
.glyph-dimension[data-glyph-dimension] { border-radius: 8px; cursor: pointer; outline: none; padding: 5px; margin-inline: -5px; transition: background .14s ease, box-shadow .14s ease; }
.glyph-dimension[data-glyph-dimension].is-dimension-active,
.glyph-dimension[data-glyph-dimension]:focus-visible { background: rgba(126, 231, 255, .08); box-shadow: 0 0 0 1px rgba(248, 255, 114, .34); }
.glyph-dimension[data-glyph-dimension].is-dimension-active .glyph-dimension__line span { color: #f8ff72; }
.glyph-dimension__line { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); }
.glyph-dimension__line strong { color: var(--text); font-variant-numeric: tabular-nums; }
.glyph-dimension__track { height: 6px; background: var(--surf3); border-radius: 999px; overflow: hidden; }
.glyph-dimension__fill { display: block; height: 100%; background: linear-gradient(90deg, #ff315f, #cb44ff 55%, #19d8ff); border-radius: inherit; }
.game-signal-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.similar-glyph-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 10px; }
.similar-glyph-card { background: var(--surf); border: 1px solid var(--line); border-radius: 12px; color: inherit; font: inherit; padding: 12px; display: grid; justify-items: center; gap: 5px; text-align: center; cursor: pointer; }
.similar-glyph-card:hover { border-color: rgba(210, 245, 60, .45); background: var(--surf2); }
.similar-glyph-card__score { color: var(--volt); font-size: 13px; font-weight: 800; }
.dossier-session-list { display: grid; gap: 8px; }
.dossier-session { display: flex; align-items: center; gap: 12px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surf); }
.dossier-session__copy { display: grid; gap: 4px; min-width: 0; }
.dossier-session__copy .subtext { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-placeholder { display: grid; min-height: 130px; place-items: center; text-align: center; padding: 18px; border: 1px dashed var(--line2); border-radius: 12px; color: var(--dim); font-size: 13px; line-height: 1.6; }
.media-attachment-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }

/* branches ----------------------------------------------------------------- */

.gos-branch-groups { display: grid; gap: 24px; }

.gos-branch-group { display: grid; gap: 8px; }
.gos-branch-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.gos-branch-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  color: var(--muted);
}
.gos-branch-title.is-lineage { color: var(--ice); }
.gos-branch-count {
  font-size: 10.5px;
  font-weight: 750;
  color: var(--dim);
  background: var(--surf2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  font-variant-numeric: tabular-nums;
}
.gos-not-lineage {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--dim);
  font-weight: 700;
}

.gos-branch-list { display: grid; gap: 3px; }
.gos-branch-item { border-radius: 10px; transition: background .13s ease; }
.gos-branch-item:hover { background: var(--surf2); }

.gos-branch-open {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
}
.gos-branch-label {
  flex: none;
  min-width: 96px;
  font-size: 11.5px;
  color: var(--dim);
  font-weight: 650;
  letter-spacing: .02em;
}
.gos-branch-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gos-branch-open:hover .gos-branch-name { color: var(--volt); }

.gos-branch-flags { display: flex; gap: 5px; flex: none; flex-wrap: wrap; justify-content: end; }

.gos-type-chip {
  flex: none;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid;
}
.gos-type-game { color: var(--volt); border-color: rgba(210, 245, 60, .35); background: rgba(210, 245, 60, .07); }
.gos-type-studio { color: var(--ice); border-color: rgba(126, 231, 255, .35); background: var(--ice-dim); }
.gos-type-person { color: var(--violet); border-color: rgba(167, 139, 250, .4); background: rgba(167, 139, 250, .09); }
.gos-type-franchise { color: var(--amber); border-color: rgba(255, 198, 109, .35); background: rgba(255, 198, 109, .07); }
.gos-type-mechanic { color: var(--pos); border-color: rgba(74, 222, 157, .35); background: rgba(74, 222, 157, .07); }
.gos-type-platform { color: var(--blue); border-color: rgba(106, 168, 255, .35); background: rgba(106, 168, 255, .08); }

.gos-flag {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 750;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surf2);
  color: var(--muted);
  white-space: nowrap;
}
.gos-flag-low { color: var(--amber); border-color: rgba(255, 198, 109, .35); }
.gos-flag-moderate { color: var(--ice); border-color: rgba(126, 231, 255, .3); }
.gos-flag-speculative, .gos-flag-disputed { color: var(--neg); border-color: rgba(255, 107, 129, .35); }
.gos-flag-review { color: var(--orange); border-color: rgba(255, 164, 92, .35); }
.gos-flag-evidence { color: var(--dim); cursor: help; border-style: dashed; }
.gos-flag-evidence:hover { color: var(--ice); border-color: rgba(126, 231, 255, .4); }

.gos-skipped-note, .gos-empty { color: var(--dim); font-size: 13px; }

.gos-empty {
  padding: 30px 26px;
  border: 1px dashed var(--line2);
  border-radius: 14px;
  text-align: center;
  display: grid;
  gap: 7px;
  justify-items: center;
}
.gos-empty-title { font-size: 15px; font-weight: 750; color: var(--text); }
.gos-empty-text { font-size: 13px; line-height: 1.65; color: var(--dim); max-width: 62ch; }
.gos-suggestion-row { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* expansion ---------------------------------------------------------------- */

.gos-expand-row { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.inline-field { min-width: 110px; }
.gos-expand-row .field-hint { max-width: 60ch; line-height: 1.55; padding-bottom: 2px; }

.gos-expansion-summary {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0 12px;
  font-variant-numeric: tabular-nums;
}
.gos-expansion .gos-branch-label { color: var(--ice); min-width: 130px; }

/* ==========================================================================
   Taste Atlas
   ========================================================================== */

.gos-atlas-sections { display: grid; gap: 30px; }
.taste-glyph-panel { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 24px; margin-bottom: 26px; padding: 18px 24px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(circle at 16% 18%, rgba(203, 68, 255, .12), transparent 30%), var(--surf); }
.taste-glyph-visual { position: sticky; top: 16px; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.taste-glyph-copy { display: grid; gap: 8px; }
.taste-glyph-copy .gos-chip { justify-self: start; margin-top: 4px; }
.taste-extremes { margin: 4px 0 0; color: var(--text); font-size: 13px; line-height: 1.6; }
.taste-positive-toggle { width: 100%; }
.taste-positive-glyph { width: 100%; display: grid; justify-items: center; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 7, 10, .46); text-align: center; }
.taste-positive-glyph.hidden { display: none; }
.taste-interpretation { display: grid; gap: 13px; min-width: 0; padding: 4px 0 4px 22px; border-left: 1px solid var(--line); }
.taste-interpretation h3 { font-size: clamp(24px, 3vw, 34px); }
.taste-dimensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.taste-dimension { display: grid; gap: 8px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(7, 9, 12, .62); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .14s ease, background .14s ease, transform .14s ease; }
.taste-dimension:hover, .taste-dimension:focus-visible, .taste-dimension.is-dimension-active { border-color: rgba(248,255,114,.52); background: rgba(248,255,114,.06); outline: none; transform: translateY(-1px); }
.taste-dimension__top { display: grid; gap: 3px; }
.taste-dimension__top strong { font-size: 13px; }
.taste-dimension__direction { color: var(--dim); font: 700 9px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.taste-dimension__badges { display: flex; gap: 4px; min-height: 18px; flex-wrap: wrap; }
.taste-dimension__values { display: grid; gap: 3px; color: var(--muted); font: 700 10px/1.35 var(--mono); }
.taste-dimension__track { display: block; height: 4px; overflow: hidden; border-radius: 999px; background: var(--surf3); }
.taste-dimension__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ice), var(--volt)); }
.taste-patterns__head { display: grid; gap: 4px; margin-top: 6px; padding-top: 13px; border-top: 1px solid var(--line); }
.taste-patterns__head h4 { font-size: 15px; }
.taste-patterns { display: grid; gap: 8px; }
.taste-pattern { display: grid; gap: 7px; width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-left: 3px solid var(--ice); border-radius: 11px; background: rgba(7, 9, 12, .62); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.taste-pattern:hover, .taste-pattern:focus-visible, .taste-pattern.is-dimension-active { border-color: rgba(248,255,114,.52); background: rgba(248,255,114,.06); outline: none; }
.taste-pattern__title { color: var(--ice); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.taste-pattern__copy { font-size: 13px; line-height: 1.55; }
.taste-evidence { display: grid; gap: 4px; }
.taste-evidence__label { color: var(--dim); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.taste-evidence__list { display: flex; gap: 5px; flex-wrap: wrap; }
.taste-evidence__item { display: inline-flex; gap: 5px; align-items: baseline; padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; background: rgba(0,0,0,.18); color: var(--muted); font-size: 10px; }
.taste-evidence__item strong { color: var(--text); }
.taste-evidence-warning { padding: 12px 14px; border: 1px solid rgba(255,198,109,.3); border-radius: 10px; background: rgba(255,198,109,.07); color: var(--amber); font-size: 12px; line-height: 1.55; }

.gos-atlas-section { display: grid; gap: 10px; }
.gos-atlas-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.gos-atlas-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--text);
}
.gos-atlas-hint { color: var(--dim); font-size: 12px; }
.gos-atlas-group { display: grid; gap: 8px; }
.gos-atlas-group-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--dim);
  font-weight: 750;
  margin-top: 6px;
}
.gos-pattern-list { display: grid; gap: 7px; }

.gos-pattern {
  background: var(--surf);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line2);
  border-radius: 12px;
  overflow: hidden;
  transition: background .14s ease, border-color .14s ease;
}
.gos-pattern:hover { background: var(--surf2); }
.gos-pattern-positive { border-left-color: var(--pos); }
.gos-pattern-negative { border-left-color: var(--neg); }
.gos-pattern.is-contradictory { border-left-color: var(--amber); border-color: rgba(255, 198, 109, .3); }
.gos-pattern.is-emerging { border-left-color: var(--ice); }

.gos-pattern-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.gos-pattern-title { flex: none; min-width: 160px; font-size: 14.5px; font-weight: 750; letter-spacing: -.015em; }
.gos-pattern-chips { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; }

.gos-conf-meter {
  flex: none;
  width: 74px;
  height: 5px;
  border-radius: 999px;
  background: var(--surf3);
  overflow: hidden;
}
.gos-conf-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ice), var(--volt)); }

.gos-pattern-body { padding: 2px 16px 16px; display: grid; gap: 10px; }
.gos-pattern-body.hidden { display: none; }

.gos-pattern-stats { display: flex; gap: 7px; flex-wrap: wrap; }
.gos-stat {
  display: grid;
  gap: 2px;
  background: rgba(10, 12, 14, .6);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 11px;
  min-width: 86px;
}
.gos-stat-label { font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-weight: 750; }
.gos-stat-value { font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }

.gos-evidence-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--dim);
  font-weight: 800;
  margin-top: 4px;
}
.gos-evidence-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gos-evidence-item {
  background: rgba(10, 12, 14, .55);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
}
.gos-evidence-line { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.gos-evidence-game { font-size: 13px; font-weight: 750; }
.gos-evidence-date { color: var(--dim); font-size: 11px; margin-left: auto; font-variant-numeric: tabular-nums; }
.gos-evidence-text { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-top: 5px; }

.gos-contradicting { color: var(--neg); font-size: 13px; font-weight: 700; }
.gos-context-line { display: flex; gap: 6px; flex-wrap: wrap; }

/* ==========================================================================
   Feed / recommendations
   ========================================================================== */

.gos-surprise { display: grid; gap: 12px; }
.gos-surprise:not(:empty) {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.gos-surprise-head { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.gos-surprise-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--dim);
  font-weight: 800;
}

.gos-feed-label { color: var(--dim); font-size: 12.5px; margin-bottom: 12px; }

.gos-rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(316px, 1fr)); gap: 15px; }

.gos-rec-card {
  position: relative;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.gos-rec-card:hover { transform: translateY(-3px); border-color: var(--line2); background: var(--surf2); }
.gos-rec-glyph { position: absolute; right: 12px; top: 64px; z-index: 2; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .7)); }
.gos-rec-glyph .experience-glyph { width: 96px; }

.gos-rec-art {
  height: 86px;
  background-size: cover;
  background-position: center 28%;
  position: relative;
}
.gos-rec-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 8, .15), rgba(6, 7, 8, .8));
}

.gos-rec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 17px 0; }
.gos-rec-title {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.025em;
  text-align: left;
  cursor: pointer;
  transition: color .14s ease;
}
.gos-rec-title:hover { color: var(--volt); }
.gos-rec-meta { display: flex; gap: 5px; flex-wrap: wrap; justify-content: end; }

.gos-path { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; padding: 10px 17px 0; }
.gos-path-node {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ice);
  background: var(--ice-dim);
  border: 1px solid rgba(126, 231, 255, .28);
  border-radius: 999px;
  padding: 3px 9px;
}
.gos-path-sep { color: var(--dim); font-size: 11px; }

.gos-reason-list { list-style: none; margin: 0; padding: 12px 17px 17px; display: grid; gap: 9px; }
.gos-reason { display: grid; gap: 5px; }
.gos-reason-text {
  position: relative;
  padding-left: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.gos-reason-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--volt);
  opacity: .75;
}
.gos-reason-evidence { display: flex; gap: 5px; flex-wrap: wrap; padding-left: 15px; }
.gos-reason-evidence .gos-chip { font-size: 10.5px; padding: 3px 9px; }

/* ==========================================================================
   Notes / settings / history
   ========================================================================== */

.gos-file-label { cursor: pointer; user-select: none; }

#settings .actions { margin-top: 20px; }
#settings .analysis-list:last-child { margin-top: 16px; }
.media-controls { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.media-visibility-field { min-width: 190px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .metric-list { grid-template-columns: minmax(0, 1fr); }
  .game-dossier__top { grid-template-columns: minmax(0, 1fr); }
  .results-composition { grid-template-columns: minmax(0, 1fr); }
  .results-emblem-frame { min-height: 620px; }
  .results-dimensions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .results-dimensions-head { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  body { overflow: auto; }
  .shell { grid-template-columns: minmax(0, 1fr); height: auto; }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
  }
  .brand-wrap { padding-bottom: 12px; }
  .nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .nav-btn { width: auto; flex: none; }
  .nav-btn::before { display: none; }
  .sidebar-foot { display: none; }
  .topbar { padding: 14px 20px 0; flex-wrap: wrap; }
  .main { overflow: visible; padding: 18px 20px 60px; }
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-left { padding: 30px 26px; }
  .hero-right { min-height: 150px; border-left: none; border-top: 1px solid var(--line); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .featured-take-main { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .take-chip-grid { width: 100%; }
  .game-dossier__lower { grid-template-columns: minmax(0, 1fr); }
  .taste-glyph-panel { grid-template-columns: minmax(0, 1fr); justify-items: stretch; text-align: left; }
  .taste-glyph-visual { position: static; text-align: center; }
  .taste-glyph-copy .gos-chip { justify-self: center; }
  .taste-interpretation { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .results-header { align-items: flex-start; }
  .results-header-meta { margin-top: 7px; }
  .results-emblem-frame { min-height: 620px; }
}

@media (max-width: 620px) {
  .section-card { padding: 18px; }
  .main { padding-inline: 12px; }
  .game-dossier__hero-copy { padding: 20px; }
  .game-dossier__panel { padding: 14px; }
  .similar-glyph-grid { grid-template-columns: minmax(0, 1fr); }
  .recent-game-head { gap: 9px; padding-inline: 8px; }
  .history-glyph { width: 48px; }
  .gos-rec-grid { grid-template-columns: minmax(0, 1fr); }
  .gos-rec-glyph { opacity: .58; }
  .results-card { padding: 18px 14px; }
  .results-header { display: grid; }
  .results-header h2 { font-size: clamp(31px, 11vw, 46px); }
  .results-header-meta { justify-self: start; }
  .results-composition { gap: 16px; }
  .results-emblem-frame { min-height: 540px; border-radius: 14px; }
  .results-emblem-label { display: none; }
  .results-emblem-frame .experience-glyph--xl { width: 100%; }
  .experience-radar__label { font-size: 7.2px; letter-spacing: .01em; }
  .experience-glyph__tip { font-size: 10.5px; padding: 4px 8px; }
  .results-emblem-frame::before { inset: 25px; }
  .results-dimensions { grid-template-columns: minmax(0, 1fr); padding: 17px; }
  .results-dimensions-head { grid-column: auto; }
  .results-readout { padding: 16px; }
  .taste-glyph-panel { padding: 15px; }
  .taste-dimensions { grid-template-columns: minmax(0, 1fr); }
  .taste-dimension { padding: 12px; }
  .taste-evidence__list { display: grid; }
  .taste-evidence__item { display: grid; gap: 2px; }
  /* Mobile universal search: bigger touch targets, no iOS input zoom */
  .gos-mobile-search-btn { display: inline-flex; }
  .gos-search { font-size: 16px; padding: 13px 14px 13px 42px; }
  .gos-search-results { max-height: 60vh; }
  .gos-search-item { padding: 12px; }
  #gameName { font-size: 16px; }
  .gos-ac-cover { width: 30px; height: 40px; }
  .gos-ac-platforms { margin-top: -4px; }
  .gos-ac-chip { min-height: 36px; }
  .gos-search-add { padding: 10px 16px; font-size: 13px; min-height: 40px; }
  .gos-catalog-settings { max-width: none; }
  .gos-filter-controls { gap: 8px; }
  .gos-filter-field { min-width: 0; flex: 1 1 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .experience-radar__sector,
  .experience-radar__label,
  .experience-radar__axis,
  .experience-radar__dot,
  [data-glyph-dimension] { transition: none !important; }
}
