/* GameFunLife — public site styles */
:root{
  --bg:#0b0920; --bg2:#0f0c2a; --card:#13103a; --card2:#1a1645; --line:#241f55; --line2:#2e2867;
  --text:#f4f2ff; --soft:#d6d1f5; --muted:#a9a3d6; --accent:#ffc24b; --accent-ink:#1b1938; --green:#2fd18b;
  --radius:20px; --display:'Fredoka',system-ui,sans-serif; --body:'Nunito Sans',system-ui,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);font-size:16px;line-height:1.5}
a{color:var(--accent);text-decoration:none}
a:hover{color:#ffd77f}
img{max-width:100%;display:block}
button{font-family:inherit}
.wrap{max-width:1360px;margin:0 auto;padding:0 20px}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:8px;background:var(--accent);color:var(--accent-ink);padding:8px 14px;border-radius:10px;z-index:99}
.skip:focus{left:8px}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.muted{color:var(--muted)} .small{font-size:13px} .strong{font-weight:800} .center{text-align:center}
.display{font-family:var(--display);font-weight:700;font-size:clamp(28px,4vw,40px);line-height:1.1;margin:0 0 6px}
.h2{font-family:var(--display);font-weight:600;font-size:clamp(22px,2.4vw,28px);margin:0}
.h3{font-size:16px;font-weight:800;margin:0 0 8px}
.prose{color:var(--soft);line-height:1.75}
.prose p{margin:0 0 12px}
.section{padding-top:36px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.section-head a{font-weight:700;font-size:14px}
.narrow{max-width:860px}

/* header */
.site-header{background:var(--bg2);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.header-row{display:flex;align-items:center;gap:14px;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}
.logo{display:flex;align-items:center;gap:10px;color:#fff;flex:none}
.logo:hover{color:#fff}
.logo-icon{width:40px;height:40px;border-radius:12px;background:var(--accent);display:flex;align-items:center;justify-content:center;transition:transform .2s}
.logo:hover .logo-icon{transform:rotate(-8deg) scale(1.05)}
.logo-text{font-family:var(--display);font-weight:700;font-size:25px;line-height:1}
.logo-text span{color:var(--accent)}
.search{flex:1 1 280px;display:flex;align-items:center;gap:10px;background:var(--card2);border:1px solid var(--line2);border-radius:999px;padding:0 6px 0 16px;height:46px;color:var(--muted);min-width:0}
.search input{flex:1;min-width:0;background:transparent;border:0;color:var(--text);font:inherit;font-size:15px;outline:none}
.search input::placeholder{color:#8c86bd}
.search button{height:34px;padding:0 16px;border-radius:999px;border:0;background:var(--accent);color:var(--accent-ink);font-weight:800;cursor:pointer}
.search.big{max-width:620px;margin:10px 0 24px;height:54px}
.search{position:relative}
.suggest{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:40;background:var(--card);border:1px solid var(--line2);border-radius:18px;padding:6px;box-shadow:0 18px 50px rgba(0,0,0,.45);max-height:min(70vh,460px);overflow:auto}
.suggest[hidden]{display:none}
.suggest a{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;color:var(--text);font-weight:700;font-size:15px}
.suggest a:hover,.suggest a.on{background:var(--card2);color:var(--text)}
.suggest img,.suggest .sg-ph{width:44px;height:44px;border-radius:10px;object-fit:cover;flex:none;background:var(--card2);display:flex;align-items:center;justify-content:center;font-family:var(--display);color:#fff}
.suggest .sg-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.suggest mark{background:none;color:var(--accent)}
.suggest .sg-c{font-size:12px;color:var(--muted);font-weight:600;flex:none}
.suggest .sg-all{justify-content:center;color:var(--accent);font-size:14px}
.suggest .sg-none{padding:12px;color:var(--muted);font-size:14px}
.pill-btn{height:44px;padding:0 16px;display:inline-flex;align-items:center;gap:8px;border-radius:999px;background:var(--card2);border:0;color:var(--text);font-weight:700;font-size:14px;cursor:pointer}
.pill-btn:hover{color:var(--text);background:#241f5f}
.user-btn img{width:28px;height:28px;border-radius:50%;margin-left:-8px}
.user-btn span{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Account menu (logged-in players) */
.acct{position:relative;flex:none}
.acct .user-btn{gap:8px;padding-right:12px}
.acct-chev{flex:none;opacity:.75;transition:transform .2s}
.acct .user-btn[aria-expanded="true"] .acct-chev{transform:rotate(180deg)}
.acct .user-btn[aria-expanded="true"]{background:#241f5f}
.acct-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:50;width:min(290px,calc(100vw - 24px));padding:8px;border-radius:18px;background:var(--card);border:1px solid var(--line2);box-shadow:0 22px 60px rgba(0,0,0,.55);opacity:0;transform:translateY(-6px);transition:opacity .16s,transform .16s}
.acct-menu.open{opacity:1;transform:none}
.acct-menu[hidden]{display:none}
.acct-head{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;color:var(--text)}
.acct-head:hover{background:var(--card2);color:var(--text)}
.acct-head img{width:46px;height:46px;border-radius:50%;flex:none}
.acct-head span{display:flex;flex-direction:column;min-width:0}
.acct-head strong{font-family:var(--display);font-weight:600;font-size:18px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-head small{color:var(--muted);font-size:13px;font-weight:700}
.acct-sep{height:1px;background:var(--line2);margin:6px 4px}
.acct-menu form{margin:0}
.acct-item{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:12px;background:none;color:#e9e6ff;font:inherit;font-size:15px;font-weight:700;text-align:left;cursor:pointer}
.acct-item svg{flex:none;color:var(--accent)}
.acct-item:hover,.acct-item:focus-visible{background:var(--card2);color:#fff}
.acct-menu form .acct-item svg{color:#ff8fa3}
@media (prefers-reduced-motion:reduce){.acct-menu,.acct-chev{transition:none}}
.account-head>div,.profile-main{min-width:0}
.account-head h1,.profile-main h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.comment-meta a{display:inline-block;max-width:16ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.cat-nav{display:flex;gap:8px;overflow-x:auto;padding-bottom:12px;scrollbar-width:none}
.cat-nav::-webkit-scrollbar{display:none}
.cat-nav a{flex:none;height:38px;padding:0 16px;display:flex;align-items:center;border-radius:999px;background:var(--card2);color:#e3deff;font-weight:700;font-size:14px;white-space:nowrap}
.cat-nav a.on,.cat-nav a:hover{background:var(--accent);color:var(--accent-ink)}
@media (max-width:640px){
  .header-row .pill-btn:not(.fav-open):not(.user-btn):not(.menu-btn){display:none}
  .fav-open span,.user-btn span{display:none}
  .fav-open,.user-btn{width:44px;padding:0;justify-content:center}
  .acct .user-btn .acct-chev{display:none}
  .search{order:3;flex-basis:100%}
  .logo-text{font-size:22px}
}
/* Phone & tablet menu (only with JavaScript; without it the category row stays) */
.menu-btn{display:none;width:44px;padding:0;justify-content:center}
@media (max-width:860px){
  .js .menu-btn{display:inline-flex}
  .js .cat-nav{display:none}
  .js .header-row .pill-btn:not(.fav-open):not(.user-btn):not(.menu-btn){display:none}
  .js .fav-open span,.js .user-btn span{display:none}
  .js .acct .user-btn .acct-chev{display:none}
  .js .fav-open,.js .user-btn{width:44px;padding:0;justify-content:center}
}
.site-menu[hidden],.menu-backdrop[hidden]{display:none}
@media (max-width:640px){.header-row{gap:8px}.header-row>.logo{margin-right:auto}}
@media (max-width:400px){
  .header-row .logo-text{font-size:19px}.header-row .logo-icon{width:36px;height:36px}
  .header-row .fav-open,.header-row .user-btn,.header-row .menu-btn{width:40px;height:40px}
}
@media (max-width:340px){.header-row{gap:6px;padding-left:14px;padding-right:14px}.header-row .logo{gap:7px}.header-row .logo-text{font-size:16px}}
.menu-backdrop{position:fixed;inset:0;z-index:55;background:rgba(5,4,20,.62);opacity:0;transition:opacity .25s}
.menu-backdrop.open{opacity:1}
.site-menu{position:fixed;top:0;right:0;bottom:0;z-index:60;width:min(330px,88vw);display:flex;flex-direction:column;gap:4px;padding:14px 14px 24px;background:var(--bg2);border-left:1px solid var(--line2);box-shadow:-20px 0 60px rgba(0,0,0,.45);overflow-y:auto;overscroll-behavior:contain;transform:translateX(100%);transition:transform .25s ease}
.site-menu.open{transform:none}
body.menu-open{overflow:hidden}
.sm-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 12px;border-bottom:1px solid var(--line);margin-bottom:8px}
.sm-head .logo-text{font-size:21px}.sm-head .logo-icon{width:36px;height:36px}
.sm-links{display:flex;flex-direction:column;gap:2px}
.sm-links a,.sm-links button{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 14px;border-radius:12px;border:0;background:none;color:#e3deff;font:inherit;font-weight:700;font-size:16px;text-align:left;cursor:pointer}
.sm-links a:hover,.sm-links button:hover,.sm-links a.on{background:var(--card2);color:#fff}
.sm-links a.on{box-shadow:inset 3px 0 0 var(--accent)}
.sm-sec{margin:14px 14px 6px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.sm-cats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.sm-cats a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:0 12px;border-radius:12px;background:var(--card2);color:#e3deff;font-weight:700;font-size:14px}
.sm-cats a span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sm-cats a:hover,.sm-cats a.on{background:var(--accent);color:var(--accent-ink)}
.sm-count{flex:none;font-size:12px;opacity:.7}
.sm-foot{margin-top:12px;border-top:1px solid var(--line);padding-top:8px}
@media (prefers-reduced-motion:reduce){.site-menu,.menu-backdrop{transition:none}}

/* buttons */
.btn-primary,.btn-play{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:48px;padding:0 26px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-weight:800;font-size:16px;border:0;cursor:pointer}
.btn-primary:hover,.btn-play:hover{color:var(--accent-ink);filter:brightness(1.05)}
.btn-play.big{height:56px;padding:0 34px;font-size:18px}
.icon-btn{width:44px;height:44px;border-radius:12px;border:0;background:#1d1950;color:var(--text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.icon-btn:hover{background:#2a2470}
.icon-btn.accent{background:var(--accent);color:var(--accent-ink)}
.icon-btn[aria-pressed="true"]{color:#ff6b8a}
.icon-btn[aria-pressed="true"] svg{fill:#ff6b8a}

/* game cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.grid.mosaic{grid-auto-flow:row dense}
@media (max-width:520px){.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}}
.card{display:block;color:var(--text);min-width:0;border-radius:18px;transition:transform .2s,box-shadow .2s}
.card.big{grid-column:span 2;grid-row:span 2}
.card[hidden]{display:none}
.card:hover{color:var(--text);transform:translateY(-3px);box-shadow:0 14px 34px rgba(0,0,0,.45),0 0 0 2px var(--accent)}
.card:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.card-media{position:relative;display:block;border-radius:18px;overflow:hidden;aspect-ratio:1/1;background:var(--card2)}
.card .thumb{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.card:hover .thumb{transform:scale(1.07)}
.thumb-ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:rgba(255,255,255,.92);font-family:var(--display);font-weight:700;font-size:40px}
.card.big .thumb-ph{font-size:96px}
.badge-hot,.badge-new{position:absolute;top:8px;left:8px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:800;z-index:2}
.badge-hot{background:var(--accent);color:var(--accent-ink)}
.badge-new{background:var(--green);color:#072b1d}
.card-info{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:4px;padding:28px 10px 9px;background:linear-gradient(0deg,rgba(8,6,26,.92) 0%,rgba(8,6,26,.7) 55%,rgba(8,6,26,0) 100%);opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s;pointer-events:none}
.card:hover .card-info,.card:focus-visible .card-info{opacity:1;transform:none}
.card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:800;font-size:13px;line-height:1.2;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.card.big .card-title{font-family:var(--display);font-weight:600;font-size:22px}
.card-line{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;font-size:11px;font-weight:700;color:#e3deff}
.card.big .card-line{font-size:13px}
.ci-rate{display:inline-flex;align-items:center;gap:4px}
.ci-rate b{color:#fff}
.ci-n{color:#c9c4ef;font-weight:600}
.ci-stars{display:inline-flex;gap:1px}
.ci-stars .st{display:inline-flex;color:rgba(255,255,255,.3)}
.ci-stars .st.on{color:var(--accent)}
.ci-plays{display:inline-flex;align-items:center;gap:3px}
.ci-cat{color:#c9c4ef;font-weight:600}
.ci-cat::before{content:"· ";}
.grid-side .ci-cat{display:none}
/* Touch screens have no hover: keep the name visible, smaller */
@media (hover:none){
  .card-info{opacity:1;transform:none;padding:22px 8px 7px}
  .card-title{font-size:12px;-webkit-line-clamp:1}
  .card-line{display:none}
  .card.big .card-line{display:flex}
  .card.big .card-title{font-size:17px;-webkit-line-clamp:2}
}

/* home hero */
.hero{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px;padding-top:24px}
@media (max-width:860px){.hero{grid-template-columns:minmax(0,1fr)}}
.hero-main{position:relative;min-height:340px;border-radius:24px;overflow:hidden;background:#2a1fa8;display:flex;align-items:flex-end;color:#fff}
.hero-main:hover{color:#fff}
.hero-art{position:absolute;inset:0}
.hero-art .hero-img,.hero-art .thumb-ph{width:100%;height:100%;object-fit:cover;font-size:120px}
.hero-art::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(11,9,32,.92) 0%,rgba(11,9,32,.45) 55%,rgba(11,9,32,.1) 100%)}
.hero-copy{position:relative;padding:30px;display:flex;flex-direction:column;gap:10px;max-width:560px}
.eyebrow{width:max-content;padding:6px 12px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-weight:800;font-size:12px;letter-spacing:.06em}
.hero-title{font-family:var(--display);font-weight:700;font-size:clamp(30px,4vw,48px);line-height:1.05}
.hero-text{color:#e3deff}
.hero-copy .btn-play{width:max-content;background:#fff}
.hero-side{display:flex;flex-direction:column;gap:18px}
@media (max-width:860px){.hero-side{flex-direction:row}.hero-small{flex:1 1 0}}
@media (max-width:560px){.hero-side{flex-direction:column}.hero-main{min-height:300px}}
.hero-small{flex:1;min-width:0;min-height:160px;border-radius:24px;display:flex;align-items:center;color:#fff;position:relative;overflow:hidden;background:var(--tint,#2a1fa8);isolation:isolate;transition:transform .15s}
.hero-small:hover{color:#fff;transform:translateY(-2px)}
.hero-small-art{position:absolute;top:0;right:0;bottom:0;width:62%;z-index:-1;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 45%);mask-image:linear-gradient(90deg,transparent 0%,#000 45%)}
.hero-small-art .hero-small-img{width:100%;height:100%;object-fit:cover;display:block;font-size:56px;border-radius:0;transition:transform .3s}
.hero-small:hover .hero-small-img{transform:scale(1.05)}
.hero-small::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,var(--tint,#2a1fa8) 30%,transparent 75%);opacity:.55}
.hero-small-copy{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:20px 22px;max-width:62%}
.hero-small-play{display:inline-flex;align-items:center;gap:6px;margin-top:4px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.92);color:var(--accent-ink);font-weight:800;font-size:12px}
.eyebrow-sm{display:block;font-size:11px;font-weight:800;letter-spacing:.06em;opacity:.85}
.hero-small-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-family:var(--display);font-size:22px;font-weight:600;line-height:1.1;text-shadow:0 1px 8px rgba(0,0,0,.25)}

.cat-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin-top:16px}
.cat-tile{height:96px;border-radius:20px;padding:16px 18px;display:flex;flex-direction:column;justify-content:flex-end;color:#fff;transition:transform .15s}
.cat-tile:hover{color:#fff;transform:translateY(-2px)}
.cat-name{font-family:var(--display);font-size:21px;font-weight:600}
.cat-count{font-size:13px;opacity:.9}
.about-box{margin-top:40px;background:var(--card);border:1px solid var(--line);border-radius:24px;padding:28px;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:28px}
.about-box.single{display:block}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:8px 14px;border-radius:999px;background:#1d1950;color:#e3deff;font-size:13px;font-weight:700}
.chip:hover{background:#2a2470;color:#fff}
.chip.ghost{background:transparent;border:1px solid #3a3480}

/* game page */
.game-layout{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start;padding-top:18px}
.game-main{flex:999 1 640px;min-width:0;display:flex;flex-direction:column;gap:20px}
.game-side{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:16px;position:sticky;top:130px}
@media (max-width:980px){.game-side{position:static}}
.grid-side{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.grid-side .card-title{font-size:12px}
.grid-side .card-line{font-size:10px}
.crumbs{font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px}
.crumbs [aria-current]{color:#e3deff}
.player-card{border-radius:24px;overflow:hidden;background:var(--card);border:1px solid var(--line)}
.player{position:relative;aspect-ratio:var(--ratio);background:#000;width:100%}
.player.portrait{max-height:80vh;margin:0 auto}
.player iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.player-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#2a1fa8}
.player-bg{position:absolute;inset:-30px;width:calc(100% + 60px);height:calc(100% + 60px);object-fit:cover;filter:blur(24px) brightness(.55)}
.player-cover-inner{position:relative;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;padding:20px}
.player-icon{width:128px;height:128px;border-radius:30px;object-fit:cover;box-shadow:0 12px 40px rgba(0,0,0,.4);font-size:60px}
.player-title{font-family:var(--display);font-size:clamp(22px,3vw,30px);font-weight:700}
.player-note{font-size:13px;color:#e3deff}
.player:fullscreen{max-height:none;aspect-ratio:auto}
.player-loading{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;text-align:center;background:radial-gradient(circle at 50% 40%,#1d1950,#0b0920 70%);color:var(--text);transition:opacity .3s}
.player-loading.pl-done{opacity:0;pointer-events:none}
.pl-spin{width:46px;height:46px;border-radius:50%;border:4px solid rgba(255,194,75,.25);border-top-color:var(--accent);animation:pl-spin .8s linear infinite}
@keyframes pl-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.pl-spin{animation-duration:2.4s}}
.pl-text{font-family:var(--display);font-weight:600;font-size:18px}
.pl-bar{display:none;width:min(260px,70%);height:8px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden}
.pl-has-bar .pl-bar{display:block}
.pl-bar span{display:block;height:100%;width:0;border-radius:999px;background:var(--accent);transition:width .2s}
.pl-note{font-size:13px;color:var(--muted);max-width:420px}
.pl-err .pl-spin,.pl-err .pl-bar{display:none}
.pl-err .pl-text{color:#ffb4b4}
.player-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
.player-meta{display:flex;align-items:center;gap:12px;min-width:0}
.player-meta span{display:flex;flex-direction:column}
.mini-icon{width:44px;height:44px;border-radius:12px;object-fit:cover;flex:none;font-size:20px}
.player-actions{display:flex;gap:8px}
.info-card{background:var(--card);border:1px solid var(--line);border-radius:24px;padding:24px;display:flex;flex-direction:column;gap:18px}
.title-row{display:flex;gap:18px;align-items:center}
.app-icon{width:96px;height:96px;border-radius:24px;object-fit:cover;flex:none;font-size:44px}
.game-h1{font-family:var(--display);font-size:clamp(26px,3.4vw,36px);line-height:1.1;margin:0 0 4px;font-weight:700}
.dev{font-weight:800;color:#7fe3b8}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line2);border-radius:16px}
.stats>div{display:flex;flex-direction:column;align-items:center;padding:12px 6px;text-align:center}
.stats>div+div{border-left:1px solid var(--line2)}
.stats strong{font-size:16px;display:flex;align-items:center;gap:4px}
.stats span{font-size:12px;color:var(--muted)}
@media (max-width:520px){.stats{grid-template-columns:repeat(2,1fr)}.stats>div:nth-child(3){border-left:0}.stats>div:nth-child(n+3){border-top:1px solid var(--line2)}}
.shots{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px}
.shot{flex:none;width:300px;max-width:78vw;aspect-ratio:16/9;border-radius:16px;overflow:hidden;position:relative;border:0;padding:0;cursor:zoom-in;scroll-snap-align:start;background:var(--card2)}
.shot img{width:100%;height:100%;object-fit:cover}
.shot-cap{position:absolute;left:0;right:0;top:0;padding:12px 12px 26px;background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,0));color:#fff;font-family:var(--display);font-weight:700;font-size:17px;text-align:left}
.howto{background:var(--card2);border-radius:16px;padding:18px}
.rating-row{display:flex;flex-wrap:wrap;gap:28px;align-items:center}
.rating-big{display:flex;flex-direction:column}
.rating-num{font-family:var(--display);font-size:58px;font-weight:600;line-height:1}
.bars{flex:1 1 220px;display:flex;flex-direction:column;gap:6px}
.bar-row{display:flex;align-items:center;gap:10px;font-size:13px;color:#c9c4ef}
.bar{flex:1;height:10px;border-radius:999px;background:var(--line);overflow:hidden}
.bar span{display:block;height:100%;background:var(--green);border-radius:999px}
.rate-box{display:flex;flex-direction:column;gap:6px}
.stars{display:flex;gap:2px}
.stars button{background:none;border:0;color:#3a3480;cursor:pointer;padding:4px;border-radius:8px;width:44px;height:44px;display:flex;align-items:center;justify-content:center}
.stars button.on,.stars button:hover,.stars button:hover~button{color:var(--accent)}
.stars:hover button{color:var(--accent)}
.stars button:hover~button{color:#3a3480}
.stars.done button,.stars button:disabled{cursor:default}
.stars.done:hover button,.stars.done button:hover~button{color:#3a3480}
.stars.done button.on,.stars.done:hover button.on{color:var(--accent)}
.faq{background:var(--card2);border-radius:14px;padding:14px 18px}
.faq summary{cursor:pointer;font-weight:800}
.faq p{margin:10px 0 0;color:#c9c4ef}
.ad-slot{display:flex;justify-content:center;min-height:90px;overflow:hidden}
.lightbox{border:0;padding:0;background:transparent;max-width:min(1200px,96vw);width:96vw}
.lightbox::backdrop{background:rgba(5,4,15,.92)}
.lightbox img{width:100%;max-height:86vh;object-fit:contain;border-radius:16px}
.lightbox .icon-btn{position:absolute;z-index:2;background:rgba(11,9,32,.8)}
.lb-close{top:10px;right:10px}.lb-prev{left:10px;top:50%;transform:translateY(-50%)}.lb-next{right:10px;top:50%;transform:translateY(-50%)}

/* blog */
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.section-sub{margin:-8px 0 16px;font-size:15px}
.more-link{margin:22px 0 0}
/* Homepage blog: 4 articles — 4 / 2×2 / 1 columns */
.home-posts{grid-template-columns:repeat(4,minmax(0,1fr))}
.home-posts .post-card-title{font-size:18px}
@media (max-width:1180px){.home-posts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.home-posts{grid-template-columns:minmax(0,1fr)}}
.post-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:20px;overflow:hidden;color:var(--text);min-width:0;transition:transform .15s}
.post-card:hover{color:var(--text);transform:translateY(-2px);border-color:var(--line2)}
.post-thumb{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:var(--card2)}
.post-thumb.thumb-ph{height:auto;font-size:56px}
.post-card-body{display:flex;flex-direction:column;gap:6px;padding:16px 18px 20px}
.post-date{font-size:12px;font-weight:700;color:var(--muted)}
.post-card-title{font-family:var(--display);font-size:20px;font-weight:600;line-height:1.2}
.post-card-text{font-size:14px;color:var(--soft)}
.article-wrap{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start}
.article{flex:999 1 640px;min-width:0;max-width:860px}
.article-side{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:16px;position:sticky;top:130px}
@media (max-width:980px){.article-side{position:static}}
.article-title{margin-top:12px}
.article-meta{margin:0 0 16px;font-size:14px}
.article-hero{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:20px;margin-bottom:18px}
.article-body{font-size:17px;display:block}
.article-body h2{font-family:var(--display);font-weight:600;font-size:26px;color:var(--text);margin:28px 0 10px;line-height:1.2}
.article-body h3{font-size:20px;color:var(--text);margin:22px 0 8px}
.article-body h2:first-child,.article-body h3:first-child{margin-top:0}
.article-body p{margin:0 0 14px}
.article-body ul,.article-body ol{margin:0 0 16px;padding-left:22px}
.article-body li{margin-bottom:6px}
.article-body img{max-width:100%;height:auto;border-radius:14px;margin:8px 0}
.article-body a{text-decoration:underline;text-underline-offset:3px}
.article-body blockquote{margin:16px 0;padding:12px 18px;border-left:4px solid var(--accent);background:var(--card2);border-radius:0 12px 12px 0}
.article-body table{width:100%;border-collapse:collapse;margin:0 0 16px;font-size:15px;display:block;overflow-x:auto}
.article-body th,.article-body td{border:1px solid var(--line2);padding:8px 10px;text-align:left}
.article-body th{background:var(--card2);color:var(--text)}
.article-body iframe,.article-body video{max-width:100%}

/* SEO text blocks */
.home-h1{font-family:var(--display);font-weight:600;font-size:clamp(20px,2.2vw,26px);margin:22px 0 0;line-height:1.2}
.home-h1 span{color:var(--muted);font-weight:500;font-size:.8em}
.hero{padding-top:14px}
.list-lead{max-width:860px;margin:-6px 0 20px;color:var(--soft);font-size:15px;line-height:1.6}
.cat-about{display:flex;flex-direction:column;gap:14px}
.cat-faq{display:flex;flex-direction:column;gap:10px}
.author-box{display:flex;gap:14px;align-items:flex-start;margin-top:18px;padding:18px 20px;border-radius:20px;background:var(--card);border:1px solid var(--line)}
.author-box .logo-icon{flex:none}
.author-box p{margin:4px 0 0;color:var(--soft);font-size:14px;line-height:1.6}
.article-meta a{color:var(--soft);text-decoration:underline;text-underline-offset:3px}
.contact-form{display:flex;flex-direction:column;gap:10px;margin-top:20px;max-width:620px;scroll-margin-top:150px}
.contact-form label{font-weight:700;font-size:14px}
.contact-form input,.contact-form textarea{width:100%;font:inherit;color:var(--text);background:var(--card2);border:1px solid var(--line2);border-radius:12px;padding:12px 14px}
.contact-form textarea{min-height:150px;resize:vertical}
.contact-form .hp{position:absolute;left:-5000px;width:1px;height:1px;overflow:hidden}
.contact-form .btn-primary{width:max-content}
.form-msg{padding:12px 16px;border-radius:12px;font-weight:700}
.form-msg.ok{background:#0e3b2c;color:#9ff0c9}.form-msg.err{background:#4a1520;color:#ffc2cc}

/* pager */
.pager{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:30px 0 0}
.pager a{min-width:44px;height:44px;padding:0 14px;border-radius:12px;background:var(--card2);color:var(--text);display:flex;align-items:center;justify-content:center;font-weight:700}
.pager a.on{background:var(--accent);color:var(--accent-ink)}
.page-body{margin-top:16px}

/* favorites dialog */
.fav-dialog{border:1px solid var(--line2);border-radius:20px;background:var(--card);color:var(--text);width:min(520px,94vw);padding:20px}
.fav-dialog::backdrop{background:rgba(5,4,15,.8)}
.fav-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.fav-head h2{margin:0;font-family:var(--display);font-weight:600}
.fav-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.fav-list .muted{grid-column:1/-1}

/* footer */
.site-footer{margin-top:56px;background:#08061a;border-top:1px solid #1f1a4a}
.footer-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:28px;padding-top:40px;padding-bottom:24px}
.footer-cols nav{display:flex;flex-direction:column;gap:8px;font-size:14px}
.footer-cols h2{font-size:15px;font-weight:800;margin:0 0 4px;color:#fff}
.socials{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.socials a{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#1a1640;color:#d9d5ff;border:1px solid #2a2460;transition:background .15s,color .15s}
.socials a:hover,.socials a:focus-visible{background:var(--brand,#ffc24b);color:#1b1938}
.footer-bottom{padding-top:16px;padding-bottom:28px;border-top:1px solid #1f1a4a;color:#8c86bd;font-size:13px}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
@media (max-width:640px){
  .player-cover-inner{gap:8px;padding:10px}
  .player-icon{width:64px;height:64px;border-radius:16px;font-size:30px}
  .player-title{font-size:18px}
  .btn-play.big{height:44px;padding:0 22px;font-size:16px}
  .player-note{display:none}
  .info-card{padding:18px}
  .app-icon{width:72px;height:72px;border-radius:18px}
}

/* accounts */
.hp{position:absolute!important;left:-5000px;width:1px;height:1px;overflow:hidden}
.auth-wrap{display:flex;justify-content:center}
.auth-card{width:100%;max-width:480px;background:var(--card);border:1px solid var(--line);border-radius:24px;padding:28px}
.auth-card.wide{max-width:760px}
.auth-form{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.auth-form label{font-weight:700;font-size:14px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}
.name-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.name-row>div{display:flex;flex-direction:column;gap:8px;min-width:0}
@media (max-width:480px){.name-row{grid-template-columns:1fr;gap:8px}}
.auth-form input:not([type=checkbox]):not([type=radio]),.auth-form select,.auth-form textarea,.comment-form textarea,.report-form textarea{width:100%;font:inherit;color:var(--text);background:var(--card2);border:1px solid var(--line2);border-radius:12px;padding:12px 14px}
.auth-form input:focus,.auth-form select:focus,.auth-form textarea:focus,.comment-form textarea:focus,.report-form textarea:focus{border-color:var(--accent);outline:none}
.auth-form input[aria-invalid=true]{border-color:#ff7b8f}
.auth-form input:disabled{opacity:.55}
.auth-form .btn-primary{margin-top:12px;width:max-content}
.auth-form .btn-primary:disabled{opacity:.5;cursor:not-allowed}
.auth-form .check,.report-form .check{font-weight:600;font-size:14px;display:flex;align-items:flex-start;gap:10px;margin-top:6px;line-height:1.4}
.check input{margin-top:2px;width:18px;height:18px;accent-color:var(--accent);flex:none}
.hint{font-weight:600;font-size:12px;color:var(--muted)}
.label-link{margin-left:auto;font-size:13px}
.field-err{color:#ff9aaa;font-size:13px;font-weight:700}
.auth-alt{margin:18px 0 0;color:var(--muted)}
.form-msg.ok{background:#0e3b2c;color:#9ff0c9}
.verify-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#3b2e0e;border:1px solid #6b5418;color:#ffe4a8;border-radius:16px;padding:12px 16px;margin:12px 0}
.account-wrap{max-width:820px}
.account-head{display:flex;align-items:center;gap:16px;margin-bottom:10px}
.account-head .display{margin:0}
.avatar-lg{width:72px;height:72px;border-radius:50%}
.avatar-xl{width:112px;height:112px;border-radius:50%;flex:none}
.avatar-sm{width:40px;height:40px;border-radius:50%;flex:none}
.tabs{display:flex;gap:8px;overflow-x:auto;margin:18px 0;scrollbar-width:none}
.tabs a{flex:none;height:40px;padding:0 16px;display:flex;align-items:center;gap:6px;border-radius:999px;background:var(--card2);color:#e3deff;font-weight:700;font-size:14px}
.tabs a.on,.tabs a:hover{background:var(--accent);color:var(--accent-ink)}
.tab-n{font-size:12px;opacity:.75}
.avatar-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:10px;border:0;padding:0;margin:0}
.avatar-pick legend{font-weight:700;font-size:14px;margin-bottom:8px}
.avatar-pick label{display:block;margin:0;cursor:pointer;position:relative}
.avatar-pick input{position:absolute;opacity:0}
.avatar-pick img{width:56px;height:56px;border-radius:50%;border:3px solid transparent;transition:transform .15s}
.avatar-pick input:checked+img{border-color:var(--accent);transform:scale(1.08)}
.avatar-pick input:focus-visible+img{outline:3px solid var(--accent);outline-offset:2px}
.pill{font-size:12px;font-weight:800;padding:3px 10px;border-radius:999px;background:#2a2470;color:#e3deff}
.pill.st-approved{background:#0e3b2c;color:#9ff0c9}.pill.st-pending{background:#3b2e0e;color:#ffe4a8}.pill.st-rejected{background:#4a1520;color:#ffc2cc}
.logout-row{margin-top:18px}
.profile-card{display:flex;gap:24px;align-items:flex-start;background:var(--card);border:1px solid var(--line);border-radius:24px;padding:24px}
.profile-main{flex:1;min-width:0}
.profile-main .display{margin:0}
.profile-about{color:var(--soft);margin:12px 0 0;white-space:normal;word-break:break-word}
.profile-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.profile-links.socials{gap:10px;margin-top:14px}
.link-ic{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#1a1640;border:1px solid #2a2460;color:#d9d5ff;flex:none}
.xp{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}
.xp-lvl{background:var(--accent);color:var(--accent-ink);font-weight:800;font-size:13px;border-radius:999px;padding:3px 10px}
.xp-bar{flex:1 1 140px;max-width:260px;height:10px;border-radius:999px;background:#241f5f;overflow:hidden}
.xp-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--accent),#ff8a3d);border-radius:999px}
@media (max-width:560px){.profile-card{flex-direction:column;align-items:center;text-align:center}.xp,.profile-links{justify-content:center}.avatar-xl{width:96px;height:96px}}

/* comments, share, report */
.comment-form{display:flex;gap:12px;align-items:flex-start}
.comment-input{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.comment-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.btn-primary.sm{height:40px;padding:0 18px;font-size:14px}
.comment-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.comment{display:flex;gap:12px;align-items:flex-start}
.comment.pending{opacity:.7}
.comment-body{flex:1;min-width:0;background:var(--card2);border-radius:14px;padding:10px 14px}
.comment-body p{margin:0;color:var(--soft);word-break:break-word}
.comment-body .comment-meta{font-size:13px;color:var(--muted);margin-bottom:4px}
.comment-meta a{font-weight:800}
.lv{background:#2a2470;color:#e3deff;font-size:11px;font-weight:800;border-radius:999px;padding:1px 7px}
.share-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.share-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:999px;border:0;font:inherit;font-size:13px;font-weight:700;color:#fff;cursor:pointer}
.share-btn:hover{color:#fff;filter:brightness(1.12)}
.share-btn.fb{background:#1877f2}.share-btn.x{background:#000;border:1px solid #333}.share-btn.wa{background:#1f9d55}.share-btn.tg{background:#229ed9}.share-btn.copy{background:#2a2470}
.report-dialog{border:1px solid var(--line2);border-radius:20px;background:var(--card);color:var(--text);width:min(480px,94vw);padding:20px}
.report-dialog::backdrop{background:rgba(5,4,15,.8)}
.report-form{display:flex;flex-direction:column;gap:8px}
.report-form fieldset{border:0;padding:0;margin:0}
.report-form .btn-primary{width:max-content}
.blog-cats{margin:0 0 20px}
.chip.on{background:var(--accent);color:var(--accent-ink)}

/* newsletter, follow, push */
.follow-h{font-size:14px;font-weight:800;margin:18px 0 0;color:#fff}
.link-btn{background:none;border:0;padding:0;font:inherit;font-size:14px;color:var(--accent);cursor:pointer;text-align:left}
.link-btn:hover{color:#ffd77f}
.footer-nl{padding-bottom:24px}
.newsletter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:8px 28px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:22px;padding:22px 24px}
.nl-title{font-family:var(--display);font-weight:600;font-size:20px;margin:0}
.nl-text{margin:4px 0 0;color:var(--soft);font-size:14px}
.nl-row{display:flex;gap:10px}
.nl-row input[type=email]{flex:1;min-width:0;font:inherit;color:var(--text);background:var(--card2);border:1px solid var(--line2);border-radius:999px;padding:0 18px;height:44px}
.nl-row input[type=email]:focus{border-color:var(--accent);outline:none}
.nl-row .btn-primary.sm{height:44px}
.nl-msg{grid-column:2;margin:0;min-height:0}
.nl-msg:empty{display:none}
.nl-msg.ok{color:#9ff0c9}.nl-msg.err{color:#ff9aaa}
.nl-legal{grid-column:2;margin:0;font-size:12px;color:var(--muted)}
.home-nl .newsletter{background:linear-gradient(135deg,#2a1f7a,#13103a);border-color:#3a2f99}
@media (max-width:760px){.newsletter{grid-template-columns:minmax(0,1fr)}.nl-msg,.nl-legal{grid-column:1}}
@media (max-width:420px){.nl-row{flex-direction:column}.nl-row input[type=email]{flex:none;width:100%}.nl-row .btn-primary.sm{width:100%}}
/* Scrollbars: thin and rounded in the site's dark colours */
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#2e2867;border:3px solid transparent;background-clip:padding-box;border-radius:999px}
::-webkit-scrollbar-thumb:hover{background:#4a4296;background-clip:padding-box}
::-webkit-scrollbar-corner{background:transparent}
::-webkit-scrollbar-button{display:none;width:0;height:0}
html::-webkit-scrollbar-track{background:var(--bg)}
.site-menu::-webkit-scrollbar,.suggest::-webkit-scrollbar,.fav-list::-webkit-scrollbar{width:8px}
@supports (-moz-appearance:none){
  html{scrollbar-color:#2e2867 var(--bg)}
  .site-menu,.suggest,.fav-list,textarea{scrollbar-width:thin;scrollbar-color:#2e2867 transparent}
}
