/* StickGame.org — design A "Arena": dark, big tiles, one yellow accent.
   Fonts are on our server (assets/fonts, SIL OFL): Bricolage Grotesque for headings, DM Sans for text. */
@font-face{font-family:"Bricolage Grotesque";src:url(../fonts/bricolage-wght.woff2) format("woff2-variations"),url(../fonts/bricolage-wght.woff2) format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"DM Sans";src:url(../fonts/dm-sans-400.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"DM Sans";src:url(../fonts/dm-sans-500.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"DM Sans";src:url(../fonts/dm-sans-700.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}

:root{
  --bg:#0b0c0f;--bg2:#111318;--surf:#15171c;--surf2:#1c1f26;--line:#23262e;--line2:#2a2e37;
  --ink:#f2f0ea;--text:#d3d6dc;--mut:#a7abb4;--mut2:#7d828c;
  --acc:#ffd60a;--acc-ink:#111;--acc-dim:#5c5220;--acc-bg:#1b1906;
  --r:16px;
  --disp:"Bricolage Grotesque","Arial Narrow",system-ui,sans-serif;
  --body:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 var(--body)}
a{color:var(--ink);text-decoration:none}
a:hover{color:var(--acc)}
img{max-width:100%}
.wrap{max-width:1440px;margin:0 auto;padding:0 24px}
@media (max-width:600px){.wrap{padding:0 14px}}
.skip{position:absolute;left:-9999px}.skip:focus{left:8px;top:8px;z-index:99;background:var(--acc);color:var(--acc-ink);padding:8px 12px;border-radius:8px}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
h1,h2,h3{font-family:var(--disp);font-weight:800;letter-spacing:-.5px}

/* ---------- header ---------- */
.top{position:sticky;top:0;z-index:30;background:rgba(11,12,15,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.top-in{display:flex;align-items:center;gap:20px;min-height:66px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;flex:none;color:var(--ink)}
.brand:hover{color:var(--ink)}
.brand svg{width:34px;height:34px}
.brand-t{font-family:var(--disp);font-weight:800;font-size:24px;letter-spacing:-.5px}
.brand-t b{color:var(--acc);font-weight:800}
.find{flex:1 1 280px;max-width:520px;margin-left:auto;display:flex;align-items:center;background:var(--surf);border:1px solid var(--line2);border-radius:999px;padding:0 5px 0 18px}
.find:focus-within{border-color:var(--acc)}
.find input{flex:1;min-width:0;background:none;border:0;color:var(--ink);font:inherit;font-size:15px;padding:10px 0;outline:none}
.find input::placeholder{color:var(--mut2)}
.find button{width:40px;height:40px;border:0;border-radius:50%;background:var(--acc);display:grid;place-items:center;cursor:pointer;flex:none}
.find svg{width:18px;height:18px;fill:none;stroke:var(--acc-ink);stroke-width:2.6;stroke-linecap:round}
.find-big{max-width:640px;margin:0 0 24px}
@media (max-width:600px){.top-in{gap:10px;padding-top:8px;padding-bottom:8px}.find{flex-basis:100%;max-width:none;margin-left:0}}
.menu{border-top:1px solid #1b1e25}
.menu-in{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding-top:8px;padding-bottom:8px}
.menu-in::-webkit-scrollbar{display:none}
.menu a{flex:none;padding:8px 14px;border-radius:999px;font-weight:700;font-size:14.5px;white-space:nowrap}
.menu a:hover{background:var(--surf2);color:var(--ink)}
.menu a.flash{color:var(--acc)}
.menu a[aria-current],.menu a.on{background:var(--acc);color:var(--acc-ink)}

/* ---------- headings, sections ---------- */
.hero{padding:30px 0 4px;margin-bottom:18px}
.hero h1{margin:0;font-size:clamp(32px,4.4vw,58px);line-height:1.02;letter-spacing:-1.5px}
.hero h1 span{color:var(--acc)}
.lead{margin:12px 0 0;color:var(--mut);font-size:17px;max-width:760px}
.sec{margin:38px 0}
.sec-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.sec-h{margin:0 0 14px;font-size:28px;line-height:1.15}
.sec-top .sec-h{margin:0}
.sec-h a{color:var(--ink)}.sec-h a:hover{color:var(--acc)}
.more{font-weight:700;color:var(--acc);white-space:nowrap}
.more:hover{text-decoration:underline}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:16px 0 6px;font-size:14px;color:var(--mut2)}
.crumbs li+li:before{content:"›";margin-right:8px}
.crumbs a{color:var(--mut2)}.crumbs a:hover{color:var(--acc)}
.crumbs [aria-current]{color:var(--text)}

/* ---------- tiles ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr));gap:14px}
.tile{position:relative;display:block;border-radius:14px;overflow:hidden;background:var(--surf);color:var(--ink);transition:transform .15s ease,box-shadow .15s ease}
.tile:hover{color:var(--ink);transform:translateY(-3px);box-shadow:0 0 0 2px var(--acc),0 14px 30px rgba(0,0,0,.55)}
.tile img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;background:#1a1d24}
.tile-cap{display:flex;flex-direction:column;padding:10px 12px 12px}
.tile-t{font-weight:700;font-size:15px;line-height:1.25}
.tile-s{font-size:12.5px;color:var(--mut)}
.badge{position:absolute;top:10px;left:10px;font-size:11px;font-weight:800;letter-spacing:.8px;padding:4px 8px;border-radius:6px;background:var(--bg);color:var(--acc);z-index:1}
.badge-new{background:var(--acc);color:var(--acc-ink)}
@media (max-width:520px){.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tile-t{font-size:14px}}

/* mosaic: one 2×2 tile + small ones with the name on the picture */
.mosaic{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-flow:dense;gap:14px}
.mosaic .tile{border-radius:16px}
.mosaic .tile img{height:100%}
.mosaic .tile-cap{position:absolute;left:10px;right:10px;bottom:10px;background:rgba(11,12,15,.9);border-radius:10px;padding:7px 10px}
.tile-big{grid-column:span 2;grid-row:span 2}
.tile-big img{position:absolute;inset:0;aspect-ratio:auto}
.tile-big .tile-cap{left:16px;right:auto;bottom:16px;max-width:calc(100% - 32px);padding:12px 16px;border-radius:14px}
.tile-big .tile-k{font-size:12px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--acc)}
.tile-big .tile-t{font-family:var(--disp);font-weight:800;font-size:clamp(22px,2.4vw,34px);line-height:1.05}
.tile-big .tile-s{font-size:14px}
.tile-play{position:absolute;right:16px;bottom:16px;display:inline-flex;align-items:center;gap:8px;background:var(--acc);color:var(--acc-ink);font-weight:800;font-size:18px;padding:14px 22px;border-radius:999px}
.tile-play svg{width:18px;height:18px;fill:var(--acc-ink)}
@media (max-width:1100px){.mosaic{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){
  .mosaic{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .mosaic .tile img{height:auto;aspect-ratio:3/2}
  .tile-big{grid-row:span 1}.tile-big img{position:static}
  .tile-play{display:none}
  .mosaic .tile-cap{position:static;background:none;padding:10px 12px 12px;border-radius:0}
  .tile-big .tile-cap{max-width:none}
}

/* genre chips with a stickman in the pose of the genre */
.genres{display:flex;flex-wrap:wrap;gap:10px}
@media (max-width:700px){.genres{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;scrollbar-width:none;margin-right:-14px;padding-right:14px}}
.chip{flex:none;display:flex;align-items:center;gap:10px;border:1px solid var(--line2);background:var(--surf);border-radius:14px;padding:9px 16px 9px 12px;font-weight:700;font-size:15px}
.chip:hover{border-color:var(--acc);color:var(--acc)}
.chip svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;flex:none}
.chip svg .h{fill:currentColor;stroke:none}
.chip small{color:var(--mut2);font-weight:500}
.chip-acc{border-color:var(--acc);color:var(--acc)}
.chips{display:flex;flex-wrap:wrap;gap:10px}

/* the "Flash classics" band */
.band{border:1px solid var(--line2);border-radius:22px;padding:26px;background:var(--bg2)}
.band .sec-top{align-items:end;flex-wrap:wrap}
.band .sec-h{display:flex;align-items:center;gap:10px}
.band .sec-h svg{width:26px;height:26px;fill:none;stroke:var(--acc);stroke-width:2.6;stroke-linejoin:round}
.band p{margin:6px 0 0;color:var(--mut)}
@media (max-width:600px){.band{padding:16px;border-radius:16px}}

/* series cards */
.series-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));gap:14px}
.serie{display:flex;align-items:center;gap:12px;border-radius:16px;background:var(--surf);border:1px solid var(--line);padding:10px;transition:border-color .15s}
.serie:hover{border-color:var(--acc);color:var(--ink)}
.serie img{width:84px;height:56px;object-fit:cover;border-radius:10px;flex:none;background:#1a1d24}
.serie b{display:block;font-size:16px}
.serie small{font-size:13px;color:var(--mut)}

/* ---------- game page ---------- */
.game-head{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:10px 0 18px}
.game-head h1{margin:0;font-size:clamp(28px,3.6vw,46px);letter-spacing:-1px;line-height:1.05}
.game-meta{display:flex;gap:8px;flex-wrap:wrap;margin:0}
.tag{font-size:13.5px;padding:6px 12px;border-radius:999px;border:1px solid var(--line2);background:var(--surf)}
.tag-flash{border-color:var(--acc-dim);background:var(--acc-bg);color:var(--acc);display:inline-flex;align-items:center;gap:6px}
.tag-flash svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:3;stroke-linejoin:round}
.theater{background:#050608;border-top:1px solid #1b1e25;border-bottom:1px solid #1b1e25;padding:22px 24px}
@media (max-width:600px){.theater{padding:12px 0}}
.player{position:relative;width:min(100%,calc(78vh * var(--ar)));max-width:1180px;margin:0 auto;aspect-ratio:var(--ar);background:#000;border-radius:16px;overflow:hidden}
@media (max-width:600px){.player{border-radius:0}}
.stage{position:absolute;inset:0}
.stage iframe,.stage .ruffle,.stage ruffle-player{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.stage-msg{position:absolute;inset:0;display:grid;place-items:center;color:var(--mut);text-align:center;padding:20px}
.poster{position:absolute;inset:0;width:100%;border:0;padding:0;cursor:pointer;background:#000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#fff;font:inherit}
.poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.45}
.poster-btn{position:relative;display:inline-flex;align-items:center;gap:10px;background:var(--acc);color:var(--acc-ink);font-weight:800;font-size:24px;padding:18px 40px;border-radius:999px;box-shadow:0 12px 30px rgba(0,0,0,.5);transition:transform .15s}
.poster-btn svg{width:24px;height:24px;fill:var(--acc-ink)}
.poster:hover .poster-btn{transform:scale(1.06)}
.poster-hint{position:relative;font-size:14px;color:#d4d6db;text-shadow:0 1px 3px #000}
@media (max-width:600px){.poster-btn{font-size:20px;padding:14px 30px}}
.fs-close{display:none}
.player.is-fs{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;aspect-ratio:auto;border-radius:0;z-index:100}
.player.is-fs .fs-close{display:block;position:absolute;top:8px;right:8px;z-index:3;width:44px;height:44px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;font-size:26px;cursor:pointer}
body.fs-on{overflow:hidden}
.game-bar{max-width:1180px;margin:14px auto 0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
@media (max-width:600px){.game-bar{padding:0 14px}}
.game-btns{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.btn{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--line2);background:var(--surf);color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
.btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.btn:hover{border-color:var(--acc)}
.vote{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.vote-btn{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line2);background:var(--surf);color:var(--ink);cursor:pointer;font:inherit;font-weight:700}
.vote-btn svg{width:18px;height:18px;fill:currentColor}
.vote-btn:hover{border-color:var(--acc)}
.vote-btn.up.on{background:var(--acc);color:var(--acc-ink);border-color:var(--acc)}
.vote-btn.down.on{background:#e8eaee;color:#111;border-color:#e8eaee}
.vote-pct,.vote-note{font-size:13.5px;color:var(--mut)}.vote-note.bad{color:#ff8a7a}
.report{font-size:14px;color:var(--mut2)}
.game-main{max-width:1200px;margin:0 auto;padding:28px 24px 0;display:flex;flex-wrap:wrap;gap:32px;align-items:flex-start}
@media (max-width:600px){.game-main{padding:22px 14px 0}}
.game-text{flex:999 1 560px;min-width:0}
.game-side{flex:1 1 300px;display:flex;flex-direction:column;gap:18px}
.card-box{background:var(--surf);border:1px solid var(--line);border-radius:18px;padding:16px}
.card-box h2{margin:0 0 12px;font-size:20px}
.series-list{display:flex;flex-direction:column;gap:8px;list-style:none;margin:0;padding:0}
.series-list a,.series-list .here{display:flex;align-items:center;gap:12px;border-radius:12px;padding:6px}
.series-list a:hover{background:var(--surf2);color:var(--ink)}
.series-list .here{background:var(--acc-bg);border:1px solid var(--acc-dim)}
.series-list img{width:78px;height:52px;object-fit:cover;border-radius:10px;flex:none;background:#1a1d24}
.series-list small{display:block;font-size:12px;color:var(--mut2)}
.series-list .here small{color:#c9b54a}.series-list .here b{color:var(--acc)}
.series-list b{font-weight:700}

/* ---------- text ---------- */
.prose{line-height:1.65;color:var(--text)}
.prose h2{margin:24px 0 10px;font-size:26px;color:var(--ink)}
.prose h2:first-child{margin-top:0}
.prose h3{margin:20px 0 8px;font-size:20px;color:var(--ink)}
.prose p{margin:0 0 14px}
.prose ul,.prose ol{margin:0 0 14px;padding-left:22px}
.prose li{margin:5px 0}
.prose a{color:var(--acc)}.prose a:hover{text-decoration:underline}
.cat-head{margin:10px 0 16px}
.cat-head h1{margin:0;font-size:clamp(28px,3.6vw,46px);letter-spacing:-1px;line-height:1.05}
.cat-n{color:var(--mut);margin:6px 0 0}
.cat-intro{max-width:880px;margin-bottom:22px}
.page-text{max-width:820px;margin:10px 0 30px}
.page-text h1{font-size:clamp(28px,3.6vw,42px);margin:0 0 12px}
.seo{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));gap:28px;padding:30px 0;border-top:1px solid var(--line)}
.nf-big{font-family:var(--disp);font-size:120px;font-weight:800;color:var(--acc);margin:20px 0 0;line-height:1}

/* ---------- ads ---------- */
.ad{margin:24px auto;min-height:100px;max-width:970px;text-align:center}
.ad-side{min-height:250px;margin:0}

/* ---------- footer ---------- */
.foot{margin-top:56px;background:var(--bg2);border-top:1px solid var(--line);font-size:14.5px}
.foot-cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr 1.2fr;gap:26px;padding-top:34px;padding-bottom:26px}
@media (max-width:1000px){.foot-cols{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.foot-cols{grid-template-columns:1fr}}
.foot-about p{color:var(--mut);margin:10px 0 0}
.foot-nav{display:flex;flex-direction:column;gap:6px}
.foot-h{font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--mut2);margin-bottom:2px}
.foot-line{display:flex;flex-wrap:wrap;gap:18px;padding-top:14px;padding-bottom:26px;border-top:1px solid #1b1e25;color:var(--mut2);font-size:13.5px}
.foot-line a{color:var(--mut2)}.foot-line a:hover{color:var(--acc)}
