/* PS Trophy Tracker website (session 18). Desktop-first; narrower screens below in the @media blocks. */
:root {
  --bg: #070b16;
  --bg-2: #0a1020;
  --surface: #0f1729;
  --surface-2: #142039;
  --border: #1e2b49;
  --border-strong: #2a3b63;
  --text: #e9eef8;
  --muted: #95a3c0;
  --faint: #6a7896;
  --accent: #3d7bff;
  --accent-2: #2a64e8;
  --accent-soft: rgba(61, 123, 255, .14);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, .12);
  --bronze: #d08a57;
  --silver: #c3cfdf;
  --gold: #f2c14e;
  --platinum: #9fc7ff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .25);
  --wrap: 1240px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 40px; font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 12px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.fine { color: var(--faint); font-size: 13px; }
.lead { color: var(--muted); font-size: 17px; max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--accent); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons, tags, badges ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #5a8fff; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.tag-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(255, 107, 107, .3); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; background: #1b2846; color: #b9c8e6; border: 1px solid #2a3b63; }
.badge-ps5 { background: #f4f6fb; color: #0b1020; border-color: #f4f6fb; }
.badge-ps4 { background: #1d3f99; color: #fff; border-color: #2a54c2; }
.badge-ps3 { background: #2a2f3d; color: #d9dde6; }
.badge-psvita { background: #12364a; color: #9fd8f5; border-color: #1d5370; }
.chip { display: inline-flex; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); font-size: 13px; font-weight: 600; }
.chip:hover { border-color: var(--accent); color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* trophy cups */
.cup { display: inline-flex; }
.cup .i { width: 18px; height: 18px; }
.cup-bronze { color: var(--bronze); } .cup-silver { color: var(--silver); } .cup-gold { color: var(--gold); } .cup-platinum { color: var(--platinum); }
.counts { display: inline-flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.count { display: inline-flex; align-items: center; gap: 4px; }
.count b { color: var(--text); font-weight: 600; }
.counts-big { gap: 16px; font-size: 16px; }
.counts-big .cup .i { width: 22px; height: 22px; }

/* bars (SVG) */
.bar { width: 100%; height: 6px; display: block; }
.bar rect { fill: #1b2846; }
.bar rect.fill { fill: var(--accent); }
.bar-plat rect.fill { fill: var(--platinum); }
.bar-r0 rect.fill { fill: #f2c14e; } .bar-r1 rect.fill { fill: #c38bff; } .bar-r2 rect.fill { fill: #3d7bff; } .bar-r3 rect.fill { fill: #5d6f92; }
.rarity { font-size: 12px; font-weight: 600; }
.rarity-0 { color: #f2c14e; } .rarity-1 { color: #c38bff; } .rarity-2 { color: #7fa6ff; } .rarity-3 { color: var(--muted); }

/* covers */
.cover { display: flex; align-items: center; justify-content: center; background: #0b1226; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10; width: 100%; border: 1px solid var(--border); }
.cover img { width: 100%; height: 100%; object-fit: contain; }
.cover-empty { color: #2a3b63; }
.cover-empty .i { width: 40%; height: 40%; }
.cover-sm { width: 76px; flex: none; border-radius: 8px; }
.cover-xl { width: 300px; flex: none; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 22, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.brandmark { width: 30px; height: 30px; }
.mainnav { display: flex; gap: 4px; margin-left: 8px; }
.mainnav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.mainnav a:hover { color: #fff; background: var(--surface); }
.mainnav a.active { color: #fff; background: var(--surface-2); }
.topsearch { margin-left: auto; position: relative; display: flex; align-items: center; }
.topsearch .i { position: absolute; left: 12px; color: var(--faint); pointer-events: none; }
.topsearch input { width: 220px; height: 38px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; transition: width .2s, border-color .15s; }
.topsearch input:focus { outline: none; border-color: var(--accent); width: 280px; }
.langmenu { position: relative; }
.langmenu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary:hover { color: #fff; border-color: var(--border-strong); }
.langmenu ul { position: absolute; right: 0; top: 46px; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; min-width: 170px; box-shadow: var(--shadow); }
.langmenu li a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.langmenu li a:hover, .langmenu li a[aria-current] { background: var(--surface-2); color: #fff; }
.mobilemenu { display: none; }

/* ---------- Footer ---------- */
.footer { margin-top: 80px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer li a { color: var(--muted); font-size: 14px; }
.footer li a:hover, .footer li a[aria-current] { color: #fff; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 380px; margin-top: 14px; }
.footer-brand .fine { color: var(--faint); font-size: 12px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 18px; padding-bottom: 24px; color: var(--faint); font-size: 13px; }

/* ---------- Common layout ---------- */
.section { padding: 56px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.see-all { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.see-all:hover { color: #7fa6ff; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.split > .panel + .panel, .grid > .panel + .panel { margin-top: 0; }
.panel h2 { font-size: 18px; margin-bottom: 12px; }
.panel-accent { background: linear-gradient(160deg, #13265a, #0e1a38 60%); border-color: #284a9c; }
.panel-accent p { color: #c4d2ee; }
.empty { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); margin: 0; }
.page-head { padding-top: 28px; padding-bottom: 28px; }
.page-head h1 { margin-top: 8px; margin-bottom: 10px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 13px; color: var(--faint); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.with-sidebar.sidebar-left { grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { position: sticky; top: 92px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 20px; border: 1px solid var(--border); background: var(--surface); }
.notice > .i { width: 22px; height: 22px; margin-top: 2px; }
.notice p { margin: 0; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice-danger { background: var(--danger-soft); border-color: rgba(255, 107, 107, .35); color: #ffd0d0; }
.notice-danger .i { color: var(--danger); }
.notice a { text-decoration: underline; text-underline-offset: 2px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plain a { color: var(--accent); }

/* ---------- Front page ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background:
  radial-gradient(900px 500px at 78% 30%, rgba(47, 107, 255, .22), transparent 60%),
  radial-gradient(700px 400px at 0% 100%, rgba(47, 107, 255, .08), transparent 60%), var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.hero h1 { font-size: 54px; line-height: 1.06; margin-bottom: 18px; max-width: 640px; }
.hero .lead { font-size: 18px; margin-bottom: 26px; }
.hero-art { width: 100%; height: auto; max-width: 500px; margin: 0 auto; display: block; }
.bigsearch { position: relative; display: flex; align-items: center; gap: 8px; max-width: 620px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: 6px 6px 6px 48px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.bigsearch:focus-within { border-color: var(--accent); }
.bigsearch > .i { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--faint); }
.bigsearch input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.bigsearch input:focus { outline: none; }
.bigsearch .btn { height: 44px; padding: 0 22px; }
.hint { color: var(--faint); font-size: 13px; margin: 12px 0 18px; }
.statbar { border-bottom: 1px solid var(--border); background: var(--bg-2); }
.statbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.statbar-inner div { padding: 26px 0; text-align: center; border-right: 1px solid var(--border); }
.statbar-inner div:last-child { border-right: 0; }
.statbar b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.statbar span { color: var(--muted); font-size: 13px; }

/* game cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
.game-card { display: flex; flex-direction: column; }
.game-card .cover { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); }
.game-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.game-card-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.game-card-title { font-weight: 700; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-card-rate { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--platinum); font-weight: 600; margin-top: auto; }
.game-card .counts { gap: 10px; }

/* ranking rows (platinums, unobtainable) */
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 200px; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.rank-row:first-child { border-top: 0; }
.rank { color: var(--faint); font-weight: 800; font-size: 16px; text-align: center; }
.rank-game { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rank-game > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rank-game b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-game:hover b { color: var(--accent); }
.rank-badges { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.rank-rate { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.rank-rate b { font-size: 15px; }
.rank-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 200px; gap: 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.rank-head span:first-child { text-align: center; } .rank-head span:last-child { text-align: right; }
.split .rank-row { grid-template-columns: 32px minmax(0, 1fr) 120px; }

/* news */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { border-top: 1px solid var(--border); }
.news-list li:first-child { border-top: 0; }
.news-list a { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; }
.news-list a:hover .news-title { color: var(--accent); }
.news-title { font-weight: 600; font-size: 15px; line-height: 1.4; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--faint); font-size: 13px; }
.news-meta .i { width: 14px; height: 14px; }
.news-list.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.news-list.two-col li:nth-child(2) { border-top: 0; }
.news-list .news-game { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; padding: 0 0 14px; font-size: 13px; color: var(--accent); }
.news-list.compact .news-title { font-size: 14px; }

/* app band, features, steps, faq */
.appband { background: radial-gradient(700px 360px at 85% 20%, rgba(61, 123, 255, .25), transparent 60%), linear-gradient(180deg, #0c1530, var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.appband-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.appband h2 { font-size: 34px; margin-bottom: 14px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.feature-list li { display: flex; gap: 12px; }
.feature-list b { display: block; font-size: 15px; margin-bottom: 2px; }
.feature-list span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.feature-dot { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.feature-list .feature-dot .i { width: 18px; height: 18px; }
.feature h3 { margin: 14px 0 8px; }
.feature p { color: var(--muted); margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 8px 0 0; }
.step-n { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9px; background: var(--accent); font-weight: 800; margin-bottom: 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 14px 46px; position: relative; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 5px #8fb2ff; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding: 0 20px 18px; color: var(--muted); margin: 0; }
.big-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.big-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); align-items: center; justify-content: center; }
.big-icon .i { width: 26px; height: 26px; }

/* ---------- Browse ---------- */
.filters { position: sticky; top: 92px; }
.filters h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 0 10px; }
.filter-list { display: grid; gap: 2px; margin-bottom: 26px; }
.filter-list a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.filter-list a:hover { background: var(--surface); color: #fff; }
.filter-list a.on { background: var(--accent-soft); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.searchbar { position: relative; display: flex; gap: 8px; margin-bottom: 14px; }
.searchbar > .i { position: absolute; left: 14px; top: 13px; color: var(--faint); }
.searchbar input { flex: 1; min-width: 0; height: 44px; padding: 0 14px 0 42px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.searchbar input:focus { outline: none; border-color: var(--accent); }
.searchbar .btn { height: 44px; }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; }

/* ---------- Game page ---------- */
.game-hero { background: radial-gradient(800px 420px at 20% 0%, rgba(47, 107, 255, .18), transparent 65%), var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.game-hero-inner { display: flex; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.game-hero-text { min-width: 0; }
.game-badges { display: flex; gap: 6px; margin-bottom: 12px; }
.game-hero h1 { font-size: 44px; margin-bottom: 18px; }
.game-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.stat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-plat { color: var(--platinum); border-color: rgba(159, 199, 255, .35); background: rgba(159, 199, 255, .08); }
.group-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.group-nav a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 13px; font-weight: 600; color: var(--muted); }
.group-nav a:hover { border-color: var(--accent); color: #fff; }
.trophy-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; box-shadow: var(--shadow); }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.group-head > div:first-child { display: flex; align-items: center; gap: 10px; }
.group-head h2 { font-size: 18px; }
.group-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.trophy-list { list-style: none; margin: 0; padding: 0; }
.trophy { display: grid; grid-template-columns: 64px minmax(0, 1fr) 170px; gap: 18px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--border); }
.trophy:first-child { border-top: 0; }
.trophy:hover { background: rgba(255, 255, 255, .015); }
.trophy-icon img, .trophy-icon-secret { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #0b1226; border: 1px solid var(--border); }
.trophy-icon-secret { display: flex; align-items: center; justify-content: center; color: var(--faint); }
.trophy-icon-secret .i { width: 26px; height: 26px; }
.trophy-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trophy-name { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.trophy-detail { color: var(--muted); font-size: 14px; line-height: 1.5; }
.trophy-main .tag { align-self: flex-start; margin-top: 4px; }
.trophy-secret .trophy-name b { color: var(--muted); font-style: italic; }
.trophy-lost { background: rgba(255, 107, 107, .04); }
.trophy-rarity { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: right; }
.trophy-rarity b { font-size: 16px; }
.trophy-rarity .bar { width: 120px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }
.guide-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.guide-link span { flex: 1; min-width: 0; }
.guide-link:hover { border-color: var(--accent); }
.guide-link .i:last-child { color: var(--faint); }
.credit { margin-top: 8px; }

/* legal + errors */
.legal { padding-top: 40px; padding-bottom: 20px; }
.legal h1 { margin-bottom: 6px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal p, .legal li { color: #c9d3e6; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); }
.legal .updated { color: var(--faint); font-size: 14px; }
.error-page { text-align: center; padding-top: 90px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* future ad places (only drawn when ADS_ENABLED is true in server/site/render.ts) */
.ad { margin: 24px auto; }
.ad-between { max-width: var(--wrap); padding: 0 32px; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1180px) {
  .mainnav a { padding: 8px 9px; }
  .topsearch input, .topsearch input:focus { width: 170px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1020px) {
  .mainnav, .topsearch, .signin { display: none; }
  .mobilemenu { display: block; position: relative; margin-left: auto; }
  .mobilemenu summary { list-style: none; display: inline-flex; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); align-items: center; justify-content: center; cursor: pointer; }
  .mobilemenu summary::-webkit-details-marker { display: none; }
  .mobilemenu-panel { position: absolute; right: 0; top: 50px; width: min(340px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: 10px; display: grid; gap: 2px; box-shadow: var(--shadow); }
  .mobilemenu-panel a { padding: 11px 12px; border-radius: 8px; font-weight: 600; color: var(--muted); }
  .mobilemenu-panel a:hover, .mobilemenu-panel a.active { background: var(--surface-2); color: #fff; }
  .mobilesearch { position: relative; margin-bottom: 6px; }
  .mobilesearch .i { position: absolute; left: 12px; top: 12px; color: var(--faint); }
  .mobilesearch input { width: 100%; height: 42px; padding: 0 12px 0 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
  .langmenu { order: 2; }
  .getapp { order: 3; }
  .mobilemenu { order: 1; }
  .with-sidebar, .with-sidebar.sidebar-left { grid-template-columns: 1fr; }
  .sidebar, .filters { position: static; }
  .filters { display: flex; flex-wrap: wrap; gap: 0 24px; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
  .filters h2 { width: 100%; }
  .hero-inner, .appband-inner, .split { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .game-hero-inner { gap: 28px; }
  .cover-xl { width: 220px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  body { font-size: 15px; }
  h1, .page-head h1 { font-size: 30px; }
  .hero h1 { font-size: 34px; }
  .hero-inner { padding-top: 40px; padding-bottom: 40px; }
  .getapp { display: none; }
  .brand span { font-size: 15px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .statbar-inner { grid-template-columns: repeat(2, 1fr); }
  .statbar-inner div:nth-child(2) { border-right: 0; }
  .statbar-inner div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .statbar b { font-size: 24px; }
  .bigsearch { padding-left: 42px; }
  .bigsearch .btn { padding: 0 14px; }
  .news-list.two-col { grid-template-columns: 1fr; }
  .news-list.two-col li:nth-child(2) { border-top: 1px solid var(--border); }
  .feature-list, .steps { grid-template-columns: 1fr; }
  .appband h2 { font-size: 26px; }
  .game-hero-inner { flex-direction: column; align-items: flex-start; padding-top: 24px; padding-bottom: 28px; }
  .cover-xl { width: 100%; }
  .game-hero h1 { font-size: 28px; }
  .trophy { grid-template-columns: 48px minmax(0, 1fr); padding: 14px 16px; gap: 12px; }
  .trophy-icon img, .trophy-icon-secret { width: 48px; height: 48px; }
  .trophy-rarity { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
  .trophy-rarity .bar { width: 80px; }
  .group-head { padding: 14px 16px; }
  .rank-row, .rank-head, .split .rank-row { grid-template-columns: 28px minmax(0, 1fr) 92px; gap: 10px; }
  .cover-sm { width: 56px; }
  .panel { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .game-card-body { padding: 10px 12px 12px; }
  .game-card .counts { gap: 7px; font-size: 12px; }
  .pager .btn { padding: 0 10px; }
}

/* reset password page (session 18) */
.reset-page { padding-top: 56px; }
.reset-card { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.reset-card h1 { font-size: 30px; }
.reset-form { display: grid; gap: 14px; margin-top: 8px; }
.reset-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--muted); }
.reset-form input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; }
.reset-form input:focus { outline: none; border-color: var(--accent); }
.reset-message { min-height: 22px; margin: 0; font-size: 14px; }
.reset-message.bad { color: var(--danger); }
.reset-message.good { color: var(--platinum); }
.reset-done { display: grid; gap: 10px; }
