/* BrovyGames theme. Layout values come from measuring the reference at 1440, 768 and 390 px wide. */
:root {
  --ink: #0b1518;
  --ink-top: #122026;
  --ink-raised: #17282e;
  --field: #27424a;
  --field-text: #a7c0c4;
  --line: #21363c;
  --ember: #ff6b3d;
  --sun: #ffc83d;
  --sun-ink: #2a1a00;
  --teal: #3dd9c5;
  --text: #f3f7f2;
  --muted: #b3c4c6;
  --wash: #ffffff12;
  --wash-2: #ffffff1a;
  --r-card: 16px;
  --r-s: 8px;
  --r-m: 10px;
  --r-l: 30px;
  --head: Sora, Arial, sans-serif;
  --body: Manrope, Arial, sans-serif;
  --cw: 218px;
  --ch: 124px;
  --tall-h: 329px;
  --row-pad: 12px;
  --shadow: rgba(0, 0, 0, .5) 4px 4px 20px 0;
  --cur: url(/assets/cursor.svg) 6 6, auto;
  --cur-link: url(/assets/cursor-link.svg) 6 6, pointer;
}
* { box-sizing: border-box; }
html { background: var(--ink); cursor: var(--cur); }
a, summary, label { cursor: var(--cur-link); }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.25 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: var(--cur-link); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
img { display: block; }
.ic { width: 1em; height: 1em; display: block; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }

/* ---------- header ---------- */
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 60px; background: var(--ink-top); display: flex; align-items: center; padding-right: 16px; }
.menu { margin-left: 20px; width: 28px; height: 28px; font-size: 28px; color: #fff; flex: none; }
.logo { margin-left: 20px; height: 36px; display: flex; align-items: center; gap: 7px; flex: none; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-t { font: 800 17px/1 var(--head); letter-spacing: -.3px; color: #fff; }
.logo-t b { color: var(--ember); font-weight: 800; }
.search { position: absolute; left: 50%; top: 10px; width: 460px; height: 40px; transform: translateX(-50%); }
#search-input { width: 100%; height: 40px; border: 0; border-radius: 20px; background: var(--field); color: #fff; padding: 0 48px 0 17px; font: 700 16px var(--body); outline: 0; }
#search-input::placeholder { color: var(--field-text); opacity: 1; }
#search-input:focus { box-shadow: 0 0 0 2px var(--sun); }
.search-go { position: absolute; right: 16px; top: 10px; font-size: 20px; color: var(--field-text); }
.search-drop { position: absolute; top: 46px; left: 0; right: 0; background: var(--ink-raised); border-radius: var(--r-card); box-shadow: rgba(0,0,0,.9) 0 14px 40px 0; padding: 8px; max-height: 70vh; overflow: auto; }
.sd-h { font: 700 12px var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding: 8px 8px 4px; }
.sd-a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-s); font: 700 14px var(--body); }
.sd-a img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; }
.sd-a small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.sd-a:hover, .sd-a.sel { background: var(--wash-2); }
.sd-none { padding: 14px 8px; color: var(--muted); font-size: 14px; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.round { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--wash-2); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; flex: none; }
.round:hover { background: #ffffff2e; }
.join { height: 40px; min-width: 68px; padding: 0 14px; border-radius: 20px; background: var(--sun); color: var(--sun-ink); font: 700 14px var(--body); white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.join:hover { filter: brightness(1.08); }
.only-phone { display: none; }

/* ---------- side rail ---------- */
.rail { position: fixed; z-index: 30; top: 60px; left: 0; bottom: 0; width: 68px; background: var(--ink); border-right: 1px solid var(--line); overflow: hidden auto; scrollbar-width: none; transition: width .15s; }
.rail > ul { padding: 16px 0; }
.rail::-webkit-scrollbar { display: none; }
.rail-a { position: relative; display: flex; align-items: center; height: 40px; color: var(--teal); white-space: nowrap; }
.rail-a::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 48px; border-radius: var(--r-m); }
.rail-i { position: relative; margin-left: 20px; width: 28px; height: 28px; font-size: 28px; flex: none; }
.rail-l { display: none; margin-left: 12px; font: 700 14px var(--body); color: var(--text); }
.rail-a:hover::before { background: var(--wash); }
.rail-a.on::before { background: var(--wash-2); }
.rail-a.on { color: var(--sun); }
.needs-history { opacity: .45; }
.has-history .needs-history { opacity: 1; }
.rail-sep { height: 1px; width: 35px; margin: 12px 0 16px 16px; background: var(--line); }
.rail-sep:last-of-type { margin-top: 12px; }
.rail-open .rail { width: 240px; box-shadow: var(--shadow); }
.rail-open .rail-l { display: block; }
.rail-open .rail-a::before { right: 10px; width: auto; }
.rail-open .rail-sep { width: 208px; }
.scrim { position: fixed; inset: 60px 0 0; z-index: 25; background: rgba(0, 0, 0, .5); }

/* ---------- home ---------- */
main { display: block; margin-top: 60px; padding-left: 68px; min-height: calc(100vh - 60px); min-width: 0; overflow: hidden; }
.strip { display: flex; margin-left: 8px; padding: var(--row-pad) 8px; overflow: auto hidden; scrollbar-width: none; scroll-behavior: smooth; gap: 4px; }
.strip::-webkit-scrollbar { display: none; }
.moods { padding: 0 8px; margin-top: 20px; gap: 8px; height: 120px; }
.moods > li { flex: none; }
.mood { position: relative; display: block; width: 230px; height: 120px; border-radius: var(--r-card); overflow: hidden; transition: transform .15s; }
.mood:hover { transform: translateY(-2px); }
.mood-i { position: absolute; right: 14px; top: 12px; font-size: 54px; opacity: .95; }
.mood-t { position: absolute; left: 13px; bottom: 11px; font: 700 16px/20px var(--head); letter-spacing: -.2px; }

.sec-h { position: relative; z-index: 1; height: 31px; padding: 0 4px; margin: 0 0 -2px 84px; margin-left: 16px; font: 800 20px/31px var(--head); color: #fff; letter-spacing: -.3px; white-space: nowrap; }
.sec-h a { display: inline-flex; align-items: center; gap: 4px; }
.sec-h .ic { font-size: 20px; color: #9fb0b2; transition: transform .15s; margin-top: 1px; }
.sec-h a:hover .ic { transform: translateX(3px); }
.sec { margin-top: 8px; }
.sec-first { margin-top: 24px; }
.sec-tall .sec-h { margin-bottom: -10px; }
.sec-tall .strip { padding-block: 18px; }

.tile { position: relative; flex: none; width: var(--cw); height: var(--ch); list-style: none; transition: transform .18s; }
.card { display: block; position: absolute; inset: 0; padding: 2px; border-radius: var(--r-card); background: var(--wash); }
.card img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow); background: var(--wash); transition: transform .15s, filter .15s; }
.card-t { position: absolute; left: 2px; right: 2px; bottom: 2px; padding: 22px 11px 8px; border-radius: 0 0 var(--r-card) var(--r-card); background: linear-gradient(transparent, rgba(4, 12, 14, .82)); font: 700 14px/18px var(--head); letter-spacing: -.2px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.tile:hover .card img { filter: brightness(1.08); }
.tile:hover { z-index: 2; }
.tile:hover .card { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s; }
@media (hover: hover) {
  .tile:hover { transform: scale(1.1); }
  .tile.big:hover { transform: scale(1.06); }
  .strip > .tile:first-child, .mosaic > :first-child .tile { transform-origin: left center; }
  .strip > .tile:last-child, .mosaic > :last-child .tile { transform-origin: right center; }
}
.card::after { content: ""; position: absolute; inset: 2px; border-radius: var(--r-card); background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), transparent 60%); opacity: 0; transition: opacity .2s; pointer-events: none; }
@media (hover: hover) { .tile:hover .card::after { opacity: 1; } }
.badge { position: absolute; top: 0; left: 1px; width: 20px; height: 20px; padding: 3px; border-radius: var(--r-s); color: #fff; pointer-events: none; box-shadow: rgba(0,0,0,.35) 0 2px 6px; }
.badge::before, .fav::before { content: ""; display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.badge-new { --i: url(/assets/i-spark.svg); }
.badge-hot { --i: url(/assets/i-flame.svg); }
.badge-upd { --i: url(/assets/i-refresh.svg); }
.fav { --i: url(/assets/i-heart.svg); padding: 7px; }
.badge-new { background: #0f8f86; }
.badge-hot { background: var(--ember); }
.badge-upd { background: #4a6fd6; }
.fav { position: absolute; top: 7px; right: 7px; width: 30px; height: 30px; border-radius: 50%; background: rgba(4, 12, 14, .62); color: #fff; opacity: 0; transition: opacity .12s, transform .12s; }
.tile:hover .fav, .fav:focus-visible, .fav[aria-pressed="true"] { opacity: 1; }
.fav:hover { transform: scale(1.12); }
.fav[aria-pressed="true"] { color: var(--ember); }
@media (hover: none) { .fav { opacity: 1; width: 26px; height: 26px; padding: 6px; } }

.mosaic { --big-w: calc(var(--cw) * 2 + 4px); height: calc(var(--ch) * 2 + 25px); }
.m-big, .m-stack { flex: none; }
.m-col { display: flex; flex-direction: column; gap: 4px; }
.tile.big { width: var(--big-w); height: calc(var(--ch) * 2 + 1px); }
.tile.big .card-t { font-size: 24px; line-height: 30px; padding: 40px 16px 12px; }
/* Wider, not taller: the art carries the game's name, and a portrait crop would cut it off. */
.tall .tile { width: calc(var(--cw) * 1.4); height: calc(var(--ch) * 1.4); }
.tall .card-t { font-size: 16px; line-height: 20px; white-space: normal; padding: 40px 12px 12px; }
.also { flex: none; width: 34px; height: var(--ch); display: flex; align-items: center; justify-content: center; }
.also span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 12px var(--body); letter-spacing: .6px; color: var(--muted); white-space: nowrap; }

.panel { position: relative; margin: 24px 0 0 8px; padding: 12px 0 6px; border-radius: var(--r-card) 0 0 var(--r-card); overflow: hidden; }
.panel-i { position: absolute; left: 14px; top: 10px; font-size: 48px; }
.panel-h { position: relative; z-index: 1; margin-left: 78px; height: 31px; font: 800 20px/31px var(--head); letter-spacing: -.3px; color: #fff; white-space: nowrap; padding: 0 4px; }
.panel-h a { display: inline-flex; align-items: center; gap: 4px; }
.panel-h .ic { font-size: 20px; }
.panel-p { position: relative; z-index: 1; margin: 2px 0 0 82px; font: 500 16px/20px var(--body); color: #e8eeea; }
.panel > .strip { position: relative; margin-left: 8px; }
.panels { margin-top: 16px; }
.panels .panel:first-child { margin-top: 0; }

.hall { margin-top: 24px; background: linear-gradient(90deg, #5a3a1d 0%, #3d2a24 40%, rgba(46, 34, 60, .95) 75%, #2b2342 100%); padding-bottom: 9px; }
.hall-art { position: absolute; right: 0; top: 0; height: 100%; width: 520px; max-width: 60%; opacity: .75; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.hall-i { color: var(--sun); }
.hall-row { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 0 82px; padding-right: 16px; min-height: 28px; }
.hall-p { font: 500 16px/20px var(--body); color: #d9dfdb; margin-left: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 10px; border-radius: 14px; background: var(--wash-2); font: 700 12px var(--body); color: #ffffffcc; white-space: nowrap; }
.chip .ic { font-size: 15px; }
.chip-a { color: var(--sun); background: #ffc83d24; }

.about { margin: 12px 16px 12px 16px; padding: 24px 22px 22px; border-radius: var(--r-card); background: var(--wash); }
.about-tags { margin-top: 18px; }
.about-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.about h1 { font: 800 24px/30px var(--head); letter-spacing: -.3px; color: #fff; margin-bottom: 10px; }
.home-intro { padding: 16px 16px 0; }
.home-intro h1 { font: 800 24px/30px var(--head); letter-spacing: -.3px; color: #fff; }
.home-intro p { font: 400 14px/1.45 var(--body); color: var(--muted); margin-top: 2px; }
.gp-copy { max-width: 760px; margin-top: 24px; }
.gp-copy p { font: 400 14px/1.55 var(--body); color: var(--muted); }
.about h2 { font: 800 20px/26px var(--head); letter-spacing: -.3px; color: #fff; margin-bottom: 10px; }
.about p { font: 400 14px/1.45 var(--body); color: var(--muted); }
.about a, .foot a, .prose a { color: var(--teal); font-weight: 700; }
.about a:hover, .foot a:hover { text-decoration: underline; }

.end-btns { display: flex; justify-content: center; gap: 24px; padding: 41px 8px 12px; }
.btn-line, .btn-fill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 200px; height: 50px; border-radius: 25px; font: 700 16px var(--body); }
.btn-line { border: 1px solid #e6ebe6; color: #fff; }
.btn-line:hover { background: var(--wash); }
.dice-ic { color: var(--ember); font-size: 20px; }
.btn-fill { background: var(--ember); color: #fff; }
.btn-fill .ic { font-size: 22px; }
.btn-fill:hover { filter: brightness(1.08); }
.foot { padding: 4px 16px 18px; text-align: center; font-size: 12px; color: #84989b; }

/* ---------- grid pages ---------- */
.gp { padding: 16px 15px 24px 25px; }
.column { max-width: 1600px; margin: 0 auto; }
.gp-wide { padding-left: 17px; }
.gp-h { font: 800 32px/40px var(--head); letter-spacing: -.6px; color: #fff; text-transform: uppercase; }
.gp-sub { font: 500 14px/20px var(--body); color: #e4ebe7; }
.grid { margin-top: 20px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.gp-wide .grid { margin-top: 20px; }
.grid .tile { width: auto; height: auto; aspect-ratio: 216 / 124; }
.pager { margin: 28px auto 0; width: max-content; max-width: 100%; display: flex; align-items: center; gap: 4px; padding: 8px; border-radius: var(--r-l); background: var(--wash); }
.pg { min-width: 34px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-s); font: 700 16px var(--body); color: #fff; padding: 0 4px; }
.pg:hover { background: var(--wash-2); }
.pg.on { border: 1px solid var(--sun); }
.pg-arrow { width: 50px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--wash); color: #fff; }
.pg-arrow.go { background: var(--ember); }
.pg-arrow.off { color: #ffffff4d; }
.more { margin-top: 32px; }
.more-h { font: 800 20px/31px var(--head); letter-spacing: -.3px; color: #fff; margin-bottom: 12px; }
.genre-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.genre-tile { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 14px; border-radius: var(--r-card); background: var(--wash); font: 700 14px/1.15 var(--head); letter-spacing: -.2px; transition: background .12s; }
.genre-tile:hover { background: var(--wash-2); }
.g-ic { font-size: 26px; color: var(--teal); flex: none; }
.genre-tile[style] .g-ic { color: inherit; }
.empty { margin-top: 40px; padding: 40px 24px; text-align: center; border-radius: var(--r-card); background: var(--wash); color: var(--muted); }
.empty strong { display: block; font: 800 20px var(--head); color: #fff; margin-bottom: 6px; }
.empty a { display: inline-block; margin-top: 14px; padding: 10px 22px; border-radius: 20px; background: var(--ember); color: #fff; font-weight: 700; }
.clear { margin-top: 16px; color: var(--muted); font-size: 14px; text-decoration: underline; }
.score-t { margin-top: 40px; display: grid; gap: 8px; max-width: 720px; }
.score-r { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: var(--r-card); background: var(--wash); font: 700 15px var(--body); }
.score-r:hover { background: var(--wash-2); }
.score-r img { width: 80px; height: 45px; border-radius: var(--r-s); object-fit: cover; }
.score-r b { margin-left: auto; color: var(--sun); font: 800 18px var(--head); }
.prose h2 { font: 800 20px/26px var(--head); margin: 28px 0 8px; }
.prose p { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 640px; }
.prose .gp-sub { color: #e4ebe7; }

/* ---------- game page ---------- */
.gm { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; padding: 12px 16px 24px; align-items: start; }
.crumbs { display: flex; gap: 8px; font: 600 13px var(--body); color: var(--muted); margin-bottom: 10px; white-space: nowrap; overflow: hidden; }
.crumbs a:hover { color: #fff; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 190px); min-height: 280px; border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cover-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(26px) brightness(.5); }
.cover-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px; }
.cover-thumb { width: clamp(150px, 26vw, 320px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); box-shadow: rgba(0, 0, 0, .9) 0 14px 40px 0; }
.cover-h { font: 800 clamp(20px, 3vw, 32px)/1.15 var(--head); letter-spacing: -.5px; margin-top: 14px; }
.cover-p { font: 500 clamp(13px, 1.3vw, 16px)/1.3 var(--body); color: #e4ebe7; margin-top: 4px; }
.btn-play { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 30px; margin-top: 14px; border-radius: 25px; background: var(--ember); color: #fff; font: 800 17px var(--body); transition: transform .12s; }
.btn-play:hover { transform: scale(1.05); }
.exit-full { position: fixed; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.player.is-full { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; border-radius: 0; }
.bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 0 0 var(--r-card) var(--r-card); background: var(--ink-raised); }
.bar-th { width: 64px; height: 36px; object-fit: cover; border-radius: var(--r-s); flex: none; }
.bar-t { min-width: 0; }
.bar-t strong { display: block; font: 800 15px/1.2 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-t span { display: block; font-size: 12px; color: var(--muted); }
.bar-t .rating { color: var(--sun); font-weight: 700; }
.rate { margin-top: 10px; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; border-radius: var(--r-card); background: var(--wash); }
.rate[hidden] { display: none; }
.rate-h { font: 800 14px/1.2 var(--head); }
.rate-stars { display: flex; }
.rate-stars button { width: 36px; height: 36px; font-size: 24px; line-height: 1; color: var(--muted); background: none; border: 0; cursor: var(--cur-link); }
.rate-stars button.on, .rate-stars:hover button { color: var(--sun); }
.rate-stars button:hover ~ button { color: var(--muted); }
.rate-stars button:disabled { opacity: .5; cursor: var(--cur); }
.rate-msg { font-size: 13px; color: var(--muted); }
.bar-b { margin-left: auto; display: flex; gap: 6px; flex: none; }
.act { width: 38px; height: 38px; border-radius: 50%; background: var(--wash-2); font-size: 18px; display: flex; align-items: center; justify-content: center; color: #fff; }
.act:hover { background: #ffffff2e; }
.act[aria-pressed="true"] { color: var(--ember); }
.act-go { background: var(--ember); }
.act-go:hover { background: var(--ember); filter: brightness(1.1); }
.info { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr 160px; gap: 16px; }
.info section { padding: 16px 18px; border-radius: var(--r-card); background: var(--wash); }
.info h2 { font: 800 16px/1.2 var(--head); margin-bottom: 8px; }
.info p, .info li { font-size: 14px; line-height: 1.45; color: var(--muted); }
.info ol { list-style: decimal; padding-left: 18px; }
.keys { margin-top: 10px; }
/* Brain games are boards with toolbars, so they get more height than a 16:9 canvas, and scroll inside their frame. */
.player-tall:not(.is-full) { aspect-ratio: auto; height: clamp(600px, calc(100vh - 130px), 940px); max-height: none; }
.guide { margin-top: 16px; padding: 18px 22px; border-radius: var(--r-card); background: var(--wash); }
.guide h2:first-child { margin-top: 0; }
.guide h3 { font: 800 16px/1.3 var(--head); margin: 18px 0 6px; }
.guide p, .guide li { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 72ch; }
.guide p + p { margin-top: 10px; }
.guide ul, .guide ol { margin: 8px 0; padding-left: 20px; }
.guide ul { list-style: disc; }
.guide ol { list-style: decimal; }
.guide li { margin: 4px 0; }
.guide a { color: var(--link, #4fd1e8); text-decoration: underline; }
.faq details { border-top: 1px solid rgba(255, 255, 255, .1); padding: 10px 0; }
.faq summary { font-weight: 700; cursor: var(--cur-link); }
.faq details p { margin-top: 6px; }
.post-list { display: grid; gap: 10px; margin-top: 16px; }
.post-list a { display: block; padding: 14px 18px; border-radius: var(--r-card); background: var(--wash); }
.post-list strong { display: block; font: 800 17px/1.3 var(--head); }
.post-list span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.keys strong { color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags a { display: block; padding: 5px 11px; border-radius: 13px; background: var(--wash-2); font: 700 12px var(--body); color: #e4ebe7; }
.tags a:hover { background: #ffffff2e; }
.stats { display: flex; flex-direction: column; gap: 14px; justify-content: center; text-align: center; }
.st-n { display: block; font: 800 26px/1.1 var(--head); color: var(--sun); word-break: break-word; }
.st-l { font-size: 12px; color: var(--muted); }
.side-h { font: 800 16px/1.2 var(--head); margin: 23px 0 10px; }
.side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.side-grid .tile { width: auto; height: auto; aspect-ratio: 16 / 9.4; }
.side-grid .card-t { font-size: 11px; line-height: 14px; padding: 16px 8px 6px; }
.side-grid .fav { width: 24px; height: 24px; padding: 5px; top: 5px; right: 5px; }

/* ---------- tip bar and dialogs ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.modal-in { position: relative; width: 100%; max-width: 380px; padding: 24px; border-radius: var(--r-card); background: var(--ink-raised); }
.modal-in h2 { font: 800 20px var(--head); margin-bottom: 6px; }
.modal-in p { font-size: 14px; color: var(--muted); margin-bottom: 14px; line-height: 1.4; }
.modal-in input { width: 100%; height: 44px; border: 0; border-radius: 22px; padding: 0 16px; background: var(--field); color: #fff; font: 700 15px var(--body); outline: 0; }
.modal-in input:focus { box-shadow: 0 0 0 2px var(--sun); }
.modal-b { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end; }
.btn-s { height: 40px; padding: 0 18px; border-radius: 20px; font: 700 14px var(--body); background: var(--wash-2); }
.btn-s.go { background: var(--ember); color: #fff; }
.foot-btn { color: inherit; font: inherit; text-decoration: underline; }
.cookie-bar { position: fixed; z-index: 80; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(720px, calc(100% - 32px)); display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--ink-raised); box-shadow: var(--shadow); }
.cookie-bar p { flex: 1; font-size: 14px; line-height: 1.4; color: var(--muted); }
.cookie-bar a { color: var(--teal); text-decoration: underline; }
.cookie-b { display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) { .cookie-bar { flex-direction: column; align-items: stretch; gap: 10px; } .cookie-b .btn-s { flex: 1; } }
.toast { position: fixed; z-index: 95; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 18px; border-radius: 20px; background: #f4fbf8; color: #0c3f42; font: 700 14px var(--body); box-shadow: var(--shadow); white-space: nowrap; }

/* row scroll arrows on wide screens */
.strip-wrap { position: relative; }
.strip-b { position: absolute; z-index: 3; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; background: rgba(4, 12, 14, .82); color: #fff; font-size: 18px; display: none; align-items: center; justify-content: center; }
.strip-b.l { left: 16px; }
.strip-b.r { right: 16px; }
@media (hover: hover) { .strip-wrap:hover .strip-b.can { display: flex; } }

/* ---------- widths ---------- */
@media (max-width: 1240px) {
  .gm { grid-template-columns: minmax(0, 1fr); }
  .side-h { margin-top: 8px; }
  .side-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .grid, .genre-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  :root { --cw: 217px; --ch: 121px; }
  body { font-size: 14px; }
  .search { position: relative; left: 0; top: 0; transform: none; flex: 1; width: auto; min-width: 0; max-width: 460px; margin: 0 16px; }
  .logo { margin-left: 20px; }
  .top-r { margin-left: 0; }
  .gp-h { font-size: 24px; line-height: 32px; letter-spacing: -.3px; }
  .grid, .genre-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-in { grid-template-columns: 1fr; gap: 18px; }
  .info { grid-template-columns: 1fr 1fr; }
  .stats { grid-column: 1 / -1; flex-direction: row; justify-content: space-around; }
}
@media (max-width: 640px) {
  :root { --cw: 140px; --ch: 81px; --tall-h: 207px; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-t { font-size: 15px; }
  .menu { margin-left: 12px; }
  .logo { margin-left: 10px; gap: 4px; }
  .top { padding-right: 8px; }
  .top-r { gap: 6px; margin-left: auto; }
  .search { display: none; }
  .search.open { display: block; position: fixed; top: 60px; left: 0; right: 0; flex: none; width: auto; max-width: none; height: 56px; margin: 0; padding: 8px; background: var(--ink-top); z-index: 41; }
  .search.open .search-go { top: 18px; right: 24px; }
  .search.open .search-drop { top: 56px; left: 8px; right: 8px; }
  .only-phone { display: flex; }
  .hide-phone { display: none; }
  .round { width: 38px; height: 38px; font-size: 18px; }
  .join { min-width: 54px; padding: 0 10px; max-width: 70px; height: 38px; font-size: 13px; }
  .mood { width: 228px; }
  .sec-h, .panel-h { font-size: 20px; }
  .tile.big { width: calc(var(--cw) * 2 + 5px); height: calc(var(--ch) * 2); }
  .mosaic { height: calc(var(--ch) * 2 + 24px); }
  .tile.big .card-t { font-size: 18px; line-height: 22px; padding: 28px 12px 9px; }
  .card-t { font-size: 12px; line-height: 15px; padding: 16px 9px 6px; }
  .tall .card-t { font-size: 13px; line-height: 16px; padding: 24px 9px 8px; }
  .also { height: var(--ch); width: 26px; }
  .panel-i { font-size: 40px; left: 12px; }
  .panel-h { margin-left: 64px; }
  .panel-p { margin-left: 68px; margin-right: 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
  .hall-row { margin-left: 68px; margin-bottom: -6px; padding-right: 8px; }
  .hall-p { font-size: 14px; line-height: 18px; margin-top: 8px; }
  .about { padding: 16px; margin: 8px; }
  .about-tags { display: none; }
  .about h2 { font-size: 16px; line-height: 22px; }
  .gp { padding: 16px 16px 32px 25px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid .tile { aspect-ratio: 137 / 81; }
  .genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genre-tile { height: 46px; padding: 0 10px; gap: 8px; font-size: 12px; }
  .g-ic { font-size: 22px; }
  .pg-arrow { width: 40px; }
  .end-btns { gap: 8px; padding: 32px 8px 12px; }
  .btn-line, .btn-fill { width: 50%; max-width: 200px; font-size: 14px; gap: 6px; }
  /* the game page drops the rail on phones: the player needs the room */
  .on-game .rail { display: none; }
  .rail-open.on-game .rail { display: block; }
  .on-game main { padding-left: 0; }
  .gm { padding: 8px 8px 20px; }
  .player { aspect-ratio: 4 / 5; max-height: calc(100vh - 150px); min-height: 320px; }
  .info { grid-template-columns: 1fr; }
  .side-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar { flex-wrap: wrap; }
  .bar-b { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (max-width: 360px) {
  .hide-phone-s { display: none; }
}

/* ---------- design pass ---------- */
/* Category tiles at the top of the home page */
.cats { height: auto; padding-bottom: 4px; }
.cats .mood { width: 156px; height: 84px; }
.cats .mood-i { font-size: 32px; right: 10px; top: 10px; }
.mood-t small { display: block; margin-top: 2px; font: 600 11px/14px var(--body); letter-spacing: 0; color: #d5e0e0; }

/* Hearts stay small to look at but easy to hit */
.fav::after { content: ""; position: absolute; inset: -8px; }

/* Wide screens have the room to name every menu item */
@media (min-width: 1280px) {
  .menu { display: none; }
  .rail { width: 200px; }
  .rail-l { display: block; }
  .rail-a::before { right: 10px; width: auto; }
  .rail-sep { width: 168px; }
  main { padding-left: 200px; }
  .logo { margin-left: 18px; }
  .scrim { display: none; }
}

/* Phones get the full width: the menu slides in when asked for */
@media (max-width: 640px) {
  main { padding-left: 0; }
  .rail { width: 240px; transform: translateX(-100%); transition: transform .15s; }
  .rail-open .rail { transform: none; }
  .rail-l { display: block; }
  .rail-a::before { right: 10px; width: auto; }
  .rail-sep { width: 208px; }
  .gp { padding: 14px 12px 28px; }
  .gp-h { font-size: 24px; line-height: 30px; }
  .strip { margin-left: 0; }
  .sec-h { margin-left: 8px; }
  .cats .mood { width: 132px; height: 72px; }
  .cats .mood-i { font-size: 26px; }
  .cats .mood-t { font-size: 13px; line-height: 16px; left: 10px; bottom: 8px; }
  .pg { min-width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .tile:hover, .tile:hover .card { transform: none; }
}

/* ---------- what sets BrovyGames apart ---------- */
.lvl { display: flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 20px; background: var(--wash-2); color: var(--sun); font: 800 14px var(--head); white-space: nowrap; }
.lvl:hover { background: #ffffff2e; }

.daily { display: flex; align-items: center; gap: 16px; margin: 16px 16px 0; padding: 12px 18px 12px 12px; border-radius: var(--r-card); background: linear-gradient(100deg, #ff6b3d33, #ffc83d14 70%), var(--ink-raised); }
.daily-pic { flex: none; width: 150px; height: 84px; border-radius: 12px; overflow: hidden; }
.daily-pic img { width: 100%; height: 100%; object-fit: cover; }
.daily-t { flex: 1; min-width: 0; }
.daily-k { display: block; font: 800 12px var(--body); letter-spacing: .5px; text-transform: uppercase; color: var(--sun); }
.daily-t strong { display: block; margin: 2px 0; font: 800 20px/1.2 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.daily-s { display: block; font-size: 14px; line-height: 1.3; color: var(--muted); }
.daily-go { flex: none; display: flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 22px; background: var(--ember); color: #1c0c05; font: 800 15px var(--body); }
.daily-go:hover { filter: brightness(1.08); }

.fg-help { margin-top: 10px; text-align: right; }
.fg-help button, .link-b { color: var(--muted); font-size: 13px; text-decoration: underline; min-height: 24px; }
.fg-help button:hover, .link-b:hover { color: #fff; }
.link-b { color: #fff; font-size: inherit; }

.pass-top { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 18px; max-width: 760px; border-radius: var(--r-card); background: var(--wash); }
.pass-lv { flex: none; width: 84px; height: 84px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--ember); color: #1c0c05; }
.pass-lv span { font: 800 11px var(--body); text-transform: uppercase; letter-spacing: .5px; }
.pass-lv b { font: 800 32px/1 var(--head); }
.pass-bar-wrap { flex: 1; min-width: 0; }
.pass-bar { height: 14px; border-radius: 7px; background: var(--wash-2); overflow: hidden; }
.pass-bar i { display: block; height: 100%; border-radius: 7px; background: var(--sun); }
.pass-bar-wrap p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.pass-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; max-width: 760px; }
.pass-stats li { padding: 14px; border-radius: var(--r-card); background: var(--wash); text-align: center; }
.pass-stats b { display: block; font: 800 22px var(--head); color: #fff; }
.pass-stats span { font-size: 12px; color: var(--muted); }
.pass-h { margin-top: 28px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.badges li { padding: 14px; border-radius: var(--r-card); background: var(--wash); }
.badges strong { display: block; margin-top: 6px; font: 800 14px var(--head); color: var(--muted); }
.badges small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.b-i { display: block; font-size: 26px; line-height: 1; filter: grayscale(1); opacity: .45; }
.badges .on { background: #ffc83d1f; }
.badges .on .b-i { filter: none; opacity: 1; }
.badges .on strong { color: #fff; }
.badges .on small { color: var(--sun); }
.pass-set { display: grid; gap: 8px; max-width: 760px; }
.switch, .pass-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-card); background: var(--wash); }
.switch { cursor: var(--cur-link); }
.switch input { flex: none; width: 22px; height: 22px; accent-color: var(--ember); }
.pass-row { justify-content: space-between; }
.switch strong, .pass-row strong { display: block; font: 800 14px var(--head); }
.switch small, .pass-row small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.pass-row .btn-s { flex: none; }

/* Family mode */
.family .tile[data-m] { display: none; }
.family .rail a[href="/c/shooting"], .family .genre-tile[href="/c/shooting"], .family .mood[href="/c/shooting"], .family [data-shelf="shooting"] { display: none; }

@media (max-width: 640px) {
  .daily { margin: 12px 8px 0; flex-wrap: wrap; gap: 10px 12px; padding: 10px; }
  .daily-pic { width: 96px; height: 60px; }
  .daily-t { flex-basis: calc(100% - 108px); }
  .daily-t strong { font-size: 16px; }
  .daily-s { font-size: 12px; }
  .daily-go { width: 100%; justify-content: center; }
  .pass-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pass-row { flex-wrap: wrap; }
}

/* The search box needs the room more than the level chip does on narrow screens. */
@media (max-width: 800px) { .lvl { display: none; } }

/* The language menu. */
.lang { position: relative; flex: none; }
.lang > summary { list-style: none; cursor: var(--cur-link); font: 800 12px var(--head); }
.lang > summary::-webkit-details-marker { display: none; }
.lang[open] > summary { background: #ffffff2e; }
.lang-m { position: absolute; z-index: 60; top: 46px; right: 0; min-width: 190px; padding: 6px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 10px 30px #0006; }
.lang-a { display: block; padding: 8px 12px; border-radius: var(--r-s); color: #fff; font: 600 14px var(--body); white-space: nowrap; }
.lang-a:hover { background: var(--wash-2); }
.lang-a[aria-current] { color: var(--sun); }
/* The narrowest phones can't fit every header button. My hearts is still in the side menu. */
@media (max-width: 374px) {
  .top-r { gap: 4px; }
  .top-r > a.round { display: none; }
}

/* Sora has no Vietnamese letters, and neither font has Devanagari, so Hindi uses what the device has. */
:root:lang(vi) { --head: Manrope, Arial, sans-serif; }
:root:lang(hi) {
  --head: Sora, "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", Mangal, Arial, sans-serif;
  --body: Manrope, "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", Mangal, Arial, sans-serif;
}

/* Top games by country */
.top-h { display: flex; align-items: center; gap: 8px; overflow: visible; }
.flag-btn { position: relative; flex: none; width: 34px; height: 26px; padding: 0; overflow: hidden; border-radius: 6px; color: var(--teal); background: var(--wash-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 2px 8px rgba(0, 0, 0, .4); transition: transform .15s, box-shadow .15s; }
.flag-btn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.flag-btn svg { display: block; width: 18px; height: 18px; margin: 4px auto; }
/* The flag catches the light now and then, and lifts when it can be tapped. */
.flag-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: flag-shine 6s ease-in-out 1s infinite; pointer-events: none; }
.flag-btn:hover, .flag-btn:focus-visible { transform: translateY(-1px) rotate(-3deg) scale(1.1); box-shadow: 0 0 0 2px var(--sun), 0 4px 12px rgba(0, 0, 0, .5); }
@keyframes flag-shine { 0%, 70% { transform: translateX(-120%); } 90%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .flag-btn::after { animation: none; } .flag-btn { transition: none; } }
.rank { position: absolute; top: 7px; left: 7px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: rgba(4, 12, 14, .78); color: #fff; font: 800 13px/24px var(--head); text-align: center; pointer-events: none; }
.rank-top { background: var(--sun); color: var(--sun-ink); }
/* Its own row just above the title, because a small tile has no room beside the rank and the heart. */
.loved { position: absolute; bottom: 30px; left: 7px; max-width: calc(100% - 14px); height: 22px; padding: 0 8px 0 5px; overflow: hidden; text-overflow: ellipsis; border-radius: 11px; background: var(--ember); color: #fff; font: 700 11px/22px var(--body); white-space: nowrap; pointer-events: none; }
.tile.big .loved { bottom: 50px; left: 12px; }
.loved img { display: inline-block; margin-right: 5px; vertical-align: -1px; border-radius: 2px; }
.flag-pick { display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 32px)); }
.flag-pick input { flex: none; margin-bottom: 10px; }
.flag-list { flex: 1; min-height: 0; overflow-y: auto; list-style: none; }
.flag-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 8px; border-radius: var(--r-s); color: #fff; font: 600 14px var(--body); text-align: left; }
.flag-row:hover, .flag-row:focus-visible { background: var(--wash-2); }
.flag-row[aria-current="true"] { background: var(--wash-2); color: var(--sun); }
.flag-row img { flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.flag-home { flex: none; margin-bottom: 8px; color: var(--teal); }
.flag-none { padding: 12px 8px; color: var(--muted); font-size: 14px; }
