/* TechBites game page (classic layout, restored 2026-10-26). Everything is scoped under .tgp.
   Markup: assets/game-page-view.js. Behaviour: assets/game-page.js.
   Backgrounds are solid colours (not see-through tints) so text contrast stays measurable. */
.tgp {
  --bg: #0B0B0D; --s1: #151518; --s2: #1A1A1E; --s3: #232329; --blk: #0F1217; --card: #151A22; --field: #1A1F28; --tile: #15181E;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --brand: #F39125; --brand2: #FFAB40; --brandp: #D97812; --brandsoft: #2E2217;
  --green: #2BD97C; --cyan: #22D3EE; --steam: #66C0F4; --red: #FF4D5E; --gold: #FFC857; --violet: #C084FC;
  --tx: #F4F4F5; --tx2: #C9CAD1; --tx3: #9CA3AF;
  --ar: 'Cairo', sans-serif; --lat: 'Outfit', 'Cairo', sans-serif; --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease: cubic-bezier(.22,1,.36,1);
  color: var(--tx); font-family: var(--ar); line-height: 1.6; text-align: right;
}
.tgp *, .tgp *::before, .tgp *::after { box-sizing: border-box; }
.tgp a { color: inherit; text-decoration: none; }
.tgp button { font: inherit; color: inherit; cursor: pointer; }
.tgp h1, .tgp h2, .tgp h3, .tgp p, .tgp ol, .tgp dl, .tgp dd { margin: 0; }
.tgp img { display: block; max-width: 100%; height: auto; }
.tgp .ico { width: 1em; height: 1em; flex: none; }
.tgp .num { font-family: var(--mono); font-weight: 800; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.tgp .lat { font-family: var(--lat); direction: ltr; unicode-bidi: isolate; }
.tgp :focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 10px; }
.tgp-wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding-top: 92px; }

/* ---------- breadcrumbs + banner card ---------- */
.tgp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--tx3); margin-bottom: 12px; }
.tgp-crumbs a:hover { color: var(--tx); }
.tgp-crumbs .ico { width: 11px; height: 11px; opacity: .6; transform: scaleX(-1); }
.tgp-banner { position: relative; height: 320px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(243,145,37,.4); background: var(--s1); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); isolation: isolate; }
.tgp-bg, .tgp-bg picture { position: absolute; inset: 0; z-index: -2; display: block; }
.tgp-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.tgp-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(8,10,15,0) 30%, rgba(8,10,15,.9) 100%); }
.tgp-bc { position: absolute; inset: auto 0 0 0; padding: 24px 28px; display: grid; gap: 8px; }
.tgp-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tgp-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 12px; font-size: 12.5px; font-weight: 800; background: #2A2A2E; border: 1px solid rgba(255,255,255,.2); color: #fff; }
.tgp-pill .ico { width: 13px; height: 13px; }
.tgp-pill-or { background: var(--brandsoft); border-color: var(--brand); color: var(--brand); }
.tgp-pill-pct { background: var(--brand); border-color: var(--brand); color: #111; font-family: var(--mono); direction: ltr; }
.tgp-pill-end { background: #2B2410; border-color: rgba(255,200,87,.45); color: #FFD27A; }
.tgp-pill-bl { background: #12222E; border-color: rgba(102,192,244,.4); color: #9FD8F8; }
.tgp-pill-star { background: #2B2410; border-color: rgba(255,200,87,.45); color: #FFD27A; }
.tgp-pill-wish { min-height: 34px; }
.tgp-pill-wish:hover { border-color: rgba(255,77,94,.6); }
.tgp-pill-wish[aria-pressed="true"] { color: #FF8A96; border-color: rgba(255,77,94,.6); }
.tgp-pill-wish[aria-pressed="true"] .ico { fill: currentColor; }
.tgp-title { font-family: var(--lat); font-weight: 900; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.01em; text-shadow: 0 4px 20px rgba(0,0,0,.6); overflow-wrap: anywhere; text-align: right; }
.tgp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13.5px; font-weight: 700; color: var(--tx2); }
.tgp-sub .ico { width: 14px; height: 14px; color: var(--brand); }
.tgp-sub b { color: #fff; }

/* ---------- layout: buy card on the right (first column in RTL), media + details on the left ---------- */
.tgp-grid { display: grid; grid-template-columns: 350px minmax(0, 1fr); grid-template-areas: "buy media" "buy rest"; gap: 24px; align-items: start; margin-top: 28px; }
.tgp-media { grid-area: media; }
.tgp-side { grid-area: buy; position: sticky; top: 90px; }
.tgp-side.tgp-side-tall { position: static; }
.tgp-rest { grid-area: rest; display: grid; gap: 24px; min-width: 0; }
.tgp-blk { background: var(--blk); border: 1px solid var(--line2); border-radius: 12px; padding: 22px; min-width: 0; }
.tgp-bhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tgp-h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 900; line-height: 1.35; margin-bottom: 14px; }
.tgp-bhead .tgp-h2 { margin-bottom: 0; }
.tgp-h2 > .ico { width: 20px; height: 20px; color: var(--brand); }
.tgp-h2 small { font-size: 13px; color: var(--tx3); font-weight: 700; }

/* ---------- media: big viewer + thumbnail strip (orange scrollbar) ---------- */
.tgp-trbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(243,145,37,.45); background: var(--brandsoft); color: var(--brand2); font-weight: 800; font-size: 13px; }
.tgp-trbtn .ico { width: 13px; height: 13px; transform: scaleX(-1); }
.tgp-trbtn:hover { border-color: var(--brand); }
.tgp-viewer { position: relative; aspect-ratio: 16 / 9; max-height: 420px; width: 100%; border-radius: 12px; overflow: hidden; background: #080A0F; border: 1px solid var(--line); box-shadow: 0 0 25px rgba(0,0,0,.6); }
.tgp-viewer img, .tgp-viewer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tgp-viewer video { object-fit: contain; background: #000; }
.tgp-vzoom { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tgp-vzoom img { transition: transform .4s ease; }
.tgp-vzoom:hover img { transform: scale(1.02); }
.tgp-vplay { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.55)); }
.tgp-vplay > span { width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #111; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(243,145,37,.22), 0 10px 40px rgba(0,0,0,.5); transition: transform .25s var(--ease); }
.tgp-vplay:hover > span { transform: scale(1.08); }
.tgp-vplay .ico { width: 30px; height: 30px; margin-inline-start: 4px; transform: scaleX(-1); }
.tgp-vplay em { position: absolute; bottom: 14px; right: 16px; font-style: normal; font-weight: 800; font-size: 14px; text-shadow: 0 2px 8px #000; }
.tgp-strip { display: flex; gap: 10px; margin-top: 10px; padding-bottom: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--brand) var(--field); }
.tgp-strip::-webkit-scrollbar { height: 8px; }
.tgp-strip::-webkit-scrollbar-track { background: var(--field); border-radius: 8px; }
.tgp-strip::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 8px; }
.tgp-strip::-webkit-scrollbar-thumb:hover { background: var(--brand2); }
.tgp-strip::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.tgp-tile-m { position: relative; flex: none; width: 112px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--s2); opacity: .65; scroll-snap-align: start; transition: opacity .2s, border-color .2s, box-shadow .2s; }
.tgp-tile-m:hover { opacity: 1; }
.tgp-tile-m[aria-current="true"] { opacity: 1; border-color: var(--brand); box-shadow: 0 0 12px rgba(243,145,37,.4); }
.tgp-tile-m img { width: 100%; height: 100%; object-fit: cover; }
.tgp-tile-m .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: var(--brand); }
.tgp-tile-m .play .ico { width: 22px; height: 22px; transform: scaleX(-1); }

/* ---------- details ---------- */
.tgp-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tgp-gtag { font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 999px; color: var(--brand2); background: var(--brandsoft); border: 1px solid rgba(243,145,37,.3); }
.tgp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tgp-spec { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--tile); border: 1px solid var(--line); min-width: 0; }
.tgp-spec span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--tx3); }
.tgp-spec span .ico { width: 14px; height: 14px; }
.tgp-spec strong { font-size: 14.5px; font-weight: 800; overflow-wrap: anywhere; }
.tgp-spec strong.lat, .tgp-spec strong.num { text-align: right; }
.tgp-spec a { color: var(--steam); display: inline-flex; align-items: center; gap: 5px; min-height: 28px; }
.tgp-spec a:hover { text-decoration: underline; }
.tgp-spec a .ico { width: 13px; height: 13px; }
.tgp-reading { color: var(--tx2); font-size: 15px; line-height: 1.9; }
.tgp-reading p + p, .tgp-reading ul { margin-top: 12px; }
.tgp-reading ul { padding-inline-start: 22px; list-style: disc; }
.tgp-reading li + li { margin-top: 8px; }
.tgp-reading a { color: #fbbf24; text-decoration: underline; text-underline-offset: 4px; }
.tgp-reading a:focus-visible { outline: 2px solid #fbbf24; outline-offset: 3px; }
.tgp-h3 { font-size: 16px; font-weight: 800; line-height: 1.5; color: var(--tx); margin-top: 18px; margin-bottom: 4px; }
.tgp-egypt s { color: var(--tx3); }
.tgp-reading .tgp-h2 { color: var(--tx); }

/* ---------- buy card (the old orange-glow card) + stacked price cards ---------- */
.tgp-one { display: grid; gap: 14px; padding: 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--brand); box-shadow: 0 0 30px rgba(243,145,37,.25); }
.tgp-one .tgp-card { display: grid; gap: 14px; }
.tgp-cover { width: 100%; aspect-ratio: 616 / 353; object-fit: cover; border-radius: 12px; border: 1px solid var(--line2); }
.tgp-cards { display: grid; gap: 14px; }
.tgp-cards .tgp-card { display: grid; gap: 12px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(145deg, #241A10 0%, var(--s1) 100%); border: 1px solid rgba(243,145,37,.35); box-shadow: 0 10px 25px rgba(0,0,0,.4); }
.tgp-cards .tgp-card-account, .tgp-cards .tgp-card-key { background: linear-gradient(145deg, #0E2127 0%, var(--s1) 100%); border-color: rgba(34,211,238,.35); }
.tgp-cards .tgp-card-rent { background: linear-gradient(145deg, #1E1529 0%, var(--s1) 100%); border-color: rgba(192,132,252,.35); }
.tgp-cards .tgp-card-plus { background: linear-gradient(145deg, #2B2410 0%, var(--s1) 100%); border-color: rgba(255,200,87,.35); }
.tgp-cards .tgp-price .now { font-size: 30px; }
.tgp-chd { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tgp-tbadge { display: inline-flex; align-items: center; gap: 7px; font-weight: 900; font-size: 14px; color: var(--brand2); }
.tgp-tbadge .ico { width: 17px; height: 17px; }
.tgp-card-account .tgp-tbadge, .tgp-card-key .tgp-tbadge { color: #67E8F9; }
.tgp-card-rent .tgp-tbadge { color: #D8B4FE; }
.tgp-card-plus .tgp-tbadge { color: var(--gold); }
.tgp-offi { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 800; color: #34d399; background: #10261D; border: 1px solid rgba(16,185,129,.35); }
.tgp-offi .ico { width: 11px; height: 11px; }
.tgp-lab { font-size: 12.5px; font-weight: 800; color: var(--tx3); margin-bottom: 4px; }
.tgp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tgp-price .now { font-size: 38px; line-height: 1; letter-spacing: -.02em; }
.tgp-price .cur { font-size: 15px; font-weight: 800; color: var(--green); }
.tgp-price .old { font: 700 14px var(--mono); color: var(--tx3); direction: ltr; unicode-bidi: isolate; }
.tgp-price .pct { align-self: center; padding: 2px 8px; border-radius: 7px; background: var(--green); color: #04130b; font: 800 13px var(--mono); direction: ltr; }
.tgp-price .per { font-size: 13px; font-weight: 800; color: var(--tx3); }
.tgp-save { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13px; font-weight: 700; }
.tgp-save .g { color: var(--green); }
.tgp-ends { display: inline-flex; align-items: center; gap: 5px; color: var(--brand2); }
.tgp-ends .ico { width: 14px; height: 14px; }
.tgp .rp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 14px; }
.tgp .rp s { font-size: 12px; color: var(--tx3); font-weight: 700; }
.tgp .mini { font: 800 12px var(--mono); color: #04190f; background: var(--green); padding: 0 6px; border-radius: 6px; direction: ltr; white-space: nowrap; flex: none; }
/* edition / rental-length dropdown */
.tgp-dd { position: relative; }
.tgp-dd-btn { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--field); text-align: right; transition: border-color .2s; }
.tgp-dd-btn:hover, .tgp-dd.open .tgp-dd-btn { border-color: var(--brand); }
.tgp-dd .nm { flex: 1; min-width: 0; font-weight: 800; font-size: 14px; line-height: 1.3; text-align: right; }
.tgp-dd .nm small { display: block; font: 700 12px var(--ar); color: var(--red); }
.tgp-dd-btn > .ico { width: 18px; height: 18px; color: var(--tx3); transition: transform .2s; }
.tgp-dd.open .tgp-dd-btn > .ico { transform: rotate(180deg); }
.tgp-dd-list { position: absolute; z-index: 30; inset: calc(100% + 6px) 0 auto 0; padding: 6px; border-radius: 12px; background: var(--field); border: 1px solid var(--line2); box-shadow: 0 20px 40px rgba(0,0,0,.6); display: none; max-height: 320px; overflow-y: auto; }
.tgp-dd.open .tgp-dd-list { display: grid; gap: 4px; animation: tgp-dd .18s var(--ease); }
@keyframes tgp-dd { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tgp-dd-list button { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 10px; border: 0; border-radius: 9px; background: none; text-align: right; }
.tgp-dd-list button:hover, .tgp-dd-list button:focus-visible, .tgp-dd-list button[aria-selected="true"] { background: var(--brandsoft); }
.tgp-dd-list button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
/* phones: editions as an always-open list + one button per way to buy (hidden on desktop) */
.tgp .tgp-edl, .tgp .tgp-kinds, .tgp .tgp-only-phone { display: none; }
.tgp-edl { gap: 8px; }
.tgp-edr { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--field); text-align: right; transition: border-color .15s, background .15s; }
.tgp-edr .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--tx3); display: grid; place-items: center; }
.tgp-edr[aria-checked="true"] { border-color: var(--brand); background: var(--brandsoft); }
.tgp-edr[aria-checked="true"] .dot { border-color: var(--brand); }
.tgp-edr[aria-checked="true"] .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.tgp-edr[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.tgp-edr .nm { flex: 1; min-width: 0; font-weight: 800; font-size: 14px; line-height: 1.3; text-align: right; }
.tgp-edr .nm small { display: block; font: 700 12px var(--ar); color: var(--red); }
.tgp-kinds { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.tgp-kind { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 72px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line2); background: var(--field); text-align: center; transition: border-color .15s, background .15s; }
.tgp-kind .ico { width: 19px; height: 19px; color: var(--tx3); }
.tgp-kind .kn { font-weight: 800; font-size: 13.5px; line-height: 1.3; }
.tgp-kind .kp { font-size: 12px; color: var(--tx3); font-weight: 700; }
.tgp-kind .kp b { font-size: 13.5px; color: #fff; }
.tgp-kind[aria-checked="true"] { border-color: var(--brand); background: var(--brandsoft); }
.tgp-kind[aria-checked="true"] .ico { color: var(--brand); }
.tgp-buyrow { display: flex; gap: 8px; align-items: stretch; }
.tgp-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 16px; border: 0; border-radius: 12px; font: 900 15px var(--ar); text-align: center;
  background: var(--brand) linear-gradient(90deg, var(--brand), #FF9A28); color: #111 !important; box-shadow: 0 10px 24px -10px rgba(243,145,37,.7); transition: transform .15s, filter .15s; }
.tgp-btn:hover { filter: brightness(1.08); }
.tgp-btn:active { transform: scale(.98); }
.tgp-btn .ico { width: 19px; height: 19px; }
.tgp-btn-account, .tgp-btn-key { background: var(--cyan) linear-gradient(90deg, #22D3EE, #38BDF8); box-shadow: 0 10px 24px -10px rgba(34,211,238,.6); }
.tgp-btn-rent { background: var(--violet) linear-gradient(90deg, #C084FC, #B46EF9); box-shadow: 0 10px 24px -10px rgba(192,132,252,.6); }
.tgp-btn-plus { background: var(--gold) linear-gradient(90deg, #FFC857, #FFB020); box-shadow: 0 10px 24px -10px rgba(255,200,87,.6); }
.tgp-btn.done { background: var(--s3); color: var(--green) !important; box-shadow: inset 0 0 0 1px rgba(43,217,124,.4); }
.tgp-btn[disabled] { background: var(--s3); color: var(--tx3) !important; box-shadow: none; cursor: not-allowed; }
.tgp-wish { width: 52px; flex: none; min-height: 52px; border-radius: 12px; border: 1px solid var(--line2); background: var(--field); display: grid; place-items: center; color: var(--tx2); transition: border-color .2s, color .2s; }
.tgp-wish:hover { border-color: rgba(255,77,94,.6); color: var(--red); }
.tgp-wish .ico { width: 20px; height: 20px; }
.tgp-wish[aria-pressed="true"] { color: var(--red); border-color: rgba(255,77,94,.5); }
.tgp-wish[aria-pressed="true"] .ico { fill: currentColor; }
.tgp-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; background: #11202B; border: 1px solid rgba(102,192,244,.28); font-size: 13px; font-weight: 700; color: #d6ecfb; line-height: 1.65; }
.tgp-note .ico { width: 17px; height: 17px; margin-top: 3px; color: var(--steam); }
.tgp-note-account, .tgp-note-key { background: #0E2127; border-color: rgba(34,211,238,.25); color: #d4f6fb; }
.tgp-note-account .ico, .tgp-note-key .ico { color: var(--cyan); }
.tgp-note-rent { background: #1E1529; border-color: rgba(192,132,252,.3); color: #efe3fd; } .tgp-note-rent .ico { color: var(--violet); }
.tgp-note-plus { background: #2B2410; border-color: rgba(255,200,87,.3); color: #fdf0d2; } .tgp-note-plus .ico { color: var(--gold); }
.tgp-mini3 { padding: 10px 12px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); }
.tgp-mini3 > b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--brand); margin-bottom: 8px; }
.tgp-mini3 > b .ico { width: 14px; height: 14px; }
.tgp-mini3 > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.tgp-mini3 span { padding: 7px 4px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-size: 12px; color: var(--tx3); line-height: 1.45; }
.tgp-mini3 span b { display: block; font-size: 12.5px; }
.tgp-mini3 .c1 { color: var(--brand); } .tgp-mini3 .c2 { color: var(--steam); } .tgp-mini3 .c3 { color: var(--green); }
.tgp-pays { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; color: var(--tx3); }
.tgp-pays b { color: #fff; font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--field); }

/* ---------- reviews ---------- */
.tgp-rv { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.tgp-rv-sum { padding: 20px; border-radius: 12px; background: var(--tile); border: 1px solid var(--line); text-align: center; }
.tgp-rv-sum .big { font: 800 44px/1 var(--mono); }
.tgp .stars { color: var(--brand); letter-spacing: 2px; direction: ltr; } .tgp .stars .off { opacity: .25; }
.tgp-rv-sum .stars { font-size: 18px; letter-spacing: 3px; margin: 6px 0 2px; }
.tgp-rv-sum small { color: var(--tx3); font-weight: 700; font-size: 13px; }
.tgp-rv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tgp-rev { padding: 16px; border-radius: 12px; background: var(--tile); border: 1px solid var(--line); }
.tgp-rev .who { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; }
.tgp-rev .who img, .tgp-rev .av0 { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.tgp-rev .av0 { display: grid; place-items: center; background: var(--brandsoft); color: var(--brand); font-weight: 900; }
.tgp-rev .nm { flex: 1; min-width: 0; line-height: 1.3; } .tgp-rev .nm small { display: block; font-size: 12px; color: var(--tx3); font-weight: 700; }
.tgp-rev .stars { font-size: 13px; }
.tgp-rev p { color: var(--tx2); font-size: 14.5px; margin-top: 10px; }
.tgp-rv-empty { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--tile); border: 1px dashed var(--line2); color: var(--tx3); font-weight: 700; font-size: 14px; }
.tgp-rv-empty .ico { width: 22px; height: 22px; }

/* ---------- related games ---------- */
.tgp-relsec { margin-top: 36px; }
.tgp-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tgp-rel { display: grid; gap: 4px; padding-bottom: 12px; border-radius: 12px; overflow: hidden; background: var(--s1); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.tgp-rel:hover { transform: translateY(-2px); border-color: rgba(243,145,37,.5); }
.tgp-rel img { width: 100%; aspect-ratio: 460/215; object-fit: cover; background: var(--s2); }
.tgp-rel span { padding: 6px 12px 0; font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.tgp-rel b { padding: 0 12px; font-size: 15px; color: var(--brand2); } .tgp-rel b small { font: 700 12px var(--ar); color: var(--tx3); }

/* ---------- lightbox ---------- */
.tgp-lb { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5,5,7,.94); animation: tgp-fade .2s var(--ease); }
.tgp-lb[hidden] { display: none; }
@keyframes tgp-fade { from { opacity: 0; } }
.tgp-lb .stage { position: relative; width: min(1200px, 100%); aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(0,0,0,.7); }
.tgp-lb .stage img, .tgp-lb .stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tgp-lb .x, .tgp-lb .nv { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: #151518; display: grid; place-items: center; cursor: pointer; }
.tgp-lb .x { top: 18px; left: 18px; } .tgp-lb .nv.p { right: 18px; top: 50%; transform: translateY(-50%); } .tgp-lb .nv.n { left: 18px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.tgp-lb .ico { width: 20px; height: 20px; }
.tgp-lb .cnt { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font: 800 13px var(--mono); color: var(--tx2); direction: ltr; }

/* ---------- phone buy bar ---------- */
.tgp-mbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: none; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #0F0F12; border-top: 1px solid var(--line2); transform: translateY(110%); transition: transform .3s var(--ease), bottom .25s cubic-bezier(.16,1,.3,1); }
.tgp-mbar.show { transform: none; }
/* The site's phone bottom nav (60px, z-index 50) hides while scrolling down; sit on top of it while it shows. */
body:has(#mobile-bottom-nav:not(.nav-hidden)) .tgp-mbar { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
.tgp-mbar .t { flex: 1; min-width: 0; line-height: 1.25; }
.tgp-mbar .t small { display: block; color: var(--tx3); font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgp-mbar .t small.cur { display: inline; }
.tgp-mbar .t .num { font-size: 19px; }
.tgp-mbar .tgp-btn { flex: none; min-height: 48px; font-size: 15px; padding: 0 20px; }

@media (max-width: 1020px) { .tgp-grid { grid-template-columns: 320px minmax(0, 1fr); } .tgp-specs { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .tgp-wrap { padding-top: 80px; }
  /* The banner grows with its pills on narrow phones instead of cutting the top row off. */
  .tgp-banner { height: auto; min-height: 230px; display: flex; align-items: flex-end; }
  .tgp-bc { position: relative; padding: 72px 16px 16px; }
  .tgp-pills .tgp-pill-bl { display: none; }
  /* Phones: every tap target at least 44px; the breadcrumb row is dropped (search engines still get it from the JSON-LD). */
  .tgp-crumbs { display: none; }
  .tgp-pill-wish, .tgp-trbtn, .tgp-spec a { min-height: 44px; }
  .tgp-mini3 > div { gap: 4px; }
  .tgp-mini3 span { padding: 7px 3px; }
  .tgp-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "buy" "rest"; gap: 18px; margin-top: 18px; }
  .tgp-side { position: static; }
  .tgp .tgp-dd, .tgp .tgp-only-desk { display: none; }
  .tgp .tgp-edl, .tgp .tgp-kinds, .tgp .tgp-only-phone { display: grid; }
  .tgp-cards { gap: 12px; }
  .tgp-cards .tgp-card:not(.is-on) { display: none; }
  .tgp .tgp-cover { display: none; }
  .tgp-blk { padding: 16px; }
  .tgp-one { padding: 16px; }
  .tgp-tile-m { width: 92px; height: 54px; }
  .tgp-specs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tgp-spec { padding: 10px 12px; }
  .tgp-spec strong { font-size: 14px; }
  .tgp-spec:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tgp-rv { grid-template-columns: 1fr; }
  .tgp-related { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 767px) { .tgp-mbar { display: flex; } }
@media (max-width: 400px) { .tgp-price .now { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) {
  .tgp *, .tgp *::before, .tgp *::after { animation: none !important; transition: none !important; }
}

/* Page frame */
main.tgp-main { padding: 0 0 96px; max-width: none; }
main.tgp-main #game-details-container { min-height: 640px; }
main.tgp-main #recently-viewed-wrap { max-width: 1240px; margin: 48px auto 0; padding: 40px 16px 0; }
@media (max-width: 767px) { main.tgp-main { padding-bottom: 120px; } }
