/* Approved home layout (2026-11-07): title strip, spotlight glow, premium sponsors, Roblox vs hagame numbers,
   status labels, dev box, bottom tiles, Thai page hero, game page number boxes, footer columns. */

/* 1a title strip */
.title-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 14px;padding:14px 18px;border-radius:18px;background:linear-gradient(120deg,rgba(255,138,61,.14),rgba(255,79,123,.08) 60%,transparent);border:1px solid var(--line)}
.title-strip h1{margin:0;font-size:clamp(19px,2.6vw,26px);line-height:1.3}
.title-strip h1 em{font-style:normal;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.title-strip .btn{flex:none}

/* 1b spotlight glow */
.hero.spot-glow{padding:2px;background:linear-gradient(120deg,#ff4f7b,#ff8a3d,#ffcf6b,#ff4f7b);background-size:300% 300%;animation:spotGlow 8s linear infinite;box-shadow:0 10px 40px rgba(255,95,126,.25)}
.hero.spot-glow .hero-track{border-radius:20px;overflow:hidden}
@keyframes spotGlow{0%{background-position:0% 50%}100%{background-position:300% 50%}}
@media (prefers-reduced-motion:reduce){.hero.spot-glow{animation:none}}

/* 2 premium sponsor row */
.sp-row{margin:16px 0 6px}
.sp-strip{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.prem{position:relative;display:block;border-radius:20px;padding:2px;background:linear-gradient(135deg,#ffe9a8,#ffb347,#ff6f61,#ffe9a8);box-shadow:0 10px 34px rgba(255,140,60,.28);transition:transform .2s}
.prem:hover{transform:translateY(-3px)}
.prem-cover{position:relative;display:block;aspect-ratio:2/1;border-radius:18px 18px 0 0;overflow:hidden;background:var(--card)}
.prem-cover>img{width:100%;height:100%;object-fit:cover}
.prem-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(8,9,20,.92))}
.gold{position:absolute;z-index:2;top:10px;left:10px;display:inline-flex;align-items:center;gap:4px;padding:3px 11px;border-radius:999px;background:linear-gradient(135deg,#fff3c4,#ffc65c);color:#3a2300;font-weight:700;font-size:12.5px;box-shadow:0 2px 10px rgba(0,0,0,.3)}
.prem-ov{position:absolute;z-index:2;left:12px;right:12px;bottom:10px;display:flex;align-items:center;gap:10px}
.prem-ov .pic{width:48px;height:48px;border-radius:12px;border:2px solid #ffd27a;object-fit:cover;flex:none}
.prem-ov .pt{flex:1;min-width:0;display:flex;flex-direction:column;color:#fff}
.prem-ov .pt b{font-size:16.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prem-ov .pt small{font-size:12.5px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prem-ov .see{background:#2fe39a;color:#03240f;border:0;font-weight:700;flex:none}
.prem-meta{display:flex;gap:14px;align-items:center;padding:9px 14px;border-radius:0 0 18px 18px;background:#141831;color:var(--mute);font-size:13px}
.prem-meta span{display:inline-flex;align-items:center;gap:5px}
.prem-meta .i{width:13px;height:13px}
.shine{position:absolute;z-index:3;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.35) 50%,transparent 65%);transform:translateX(-120%);pointer-events:none}
.prem.lit .shine{animation:spShine 1.1s ease-out .2s 1}
@keyframes spShine{to{transform:translateX(120%)}}
@media (prefers-reduced-motion:reduce){.prem.lit .shine{animation:none}}
.sdots{display:none;justify-content:center;gap:6px;margin-top:8px}
.sdots i{width:7px;height:7px;border-radius:99px;background:rgba(255,255,255,.25);transition:.2s}
.sdots i.on{width:20px;background:#ffc65c}
@media (max-width:767px){
  .sp-strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;scrollbar-width:none;padding-bottom:2px}
  .sp-strip::-webkit-scrollbar{display:none}
  .sp-strip .prem{flex:0 0 84%;scroll-snap-align:start}
  .sdots{display:flex}
}

/* bottom sponsor banner */
.sp-banner{position:relative;display:flex;align-items:center;gap:14px;min-height:120px;margin:22px 0 4px;padding:16px 20px;border-radius:20px;overflow:hidden;border:2px solid #ffc65c;box-shadow:0 10px 30px rgba(255,140,60,.2);isolation:isolate}
.sp-banner .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.sp-banner::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(8,9,20,.95) 30%,rgba(8,9,20,.55) 70%,rgba(8,9,20,.2))}
.sp-banner .gold{top:8px;left:auto;right:10px}
.sp-banner .pic{width:64px;height:64px;border-radius:14px;border:2px solid #ffd27a;object-fit:cover;flex:none}
.sp-banner .pt{flex:1;min-width:0;display:flex;flex-direction:column;color:#fff}
.sp-banner .pt b{font-size:18px}
.sp-banner .pt small{font-size:13.5px;opacity:.85}
.sp-banner .see{flex:none}
@media (max-width:640px){.sp-banner{flex-wrap:wrap}.sp-banner .see{width:100%;justify-content:center}}

/* Roblox vs hagame numbers on cards */
.meta.grp{gap:7px;margin-top:2px}
.meta.grp em{font-style:normal;font-size:9.5px;font-weight:600;letter-spacing:.3px;padding:0 5px;border-radius:5px;line-height:15px}
.meta.grp.rb em{background:rgba(255,255,255,.1);color:#c7cbe0}
.meta.grp.hg em{background:var(--grad);color:#2a1000}
.meta.grp.hg{color:#ffd9b0}
.meta.grp.hg .hk .i{color:#ff7a9a}
.cm-badge{position:absolute;z-index:1;right:6px;bottom:6px;background:rgba(10,12,24,.78);backdrop-filter:blur(6px);color:#fff;font-size:11.5px;font-weight:600;border-radius:8px;padding:1px 7px}
.pf-nums{display:flex;flex-direction:column;gap:2px;min-width:0}
.pf-nums .meta{margin:0}

/* status labels */
.st-badge{position:absolute;z-index:1;top:7px;left:7px;display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;border-radius:8px;padding:2px 8px;color:#fff;max-width:calc(100% - 48px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 2px 8px rgba(0,0,0,.3)}
.st-testers{background:#2f8cff}
.st-beta{background:#8a5cff}
.st-soon{background:linear-gradient(135deg,#ffb347,#ff7a3d);color:#2a1000}
.pshot .st-badge{top:10px;left:auto;right:10px;font-size:12px;padding:3px 10px;border-radius:999px}
.gp-st{margin-top:10px}
.gp-st .st-badge{position:static;font-size:13px;padding:4px 12px;border-radius:999px;max-width:none}
.st-chips{margin-top:12px}

/* 6 dev box */
.devbox2{display:grid;grid-template-columns:1.3fr 1fr;gap:22px;margin:28px 0 6px;padding:26px;border-radius:24px;border:1px solid #ff8a3d66;background:radial-gradient(70% 90% at 0% 0%,rgba(255,79,123,.22),transparent 60%),linear-gradient(130deg,#24163c,#171b38 55%,#0f2235);color:#fff}
.db-k{display:inline-block;font-size:12.5px;font-weight:600;color:#ffd27a;background:rgba(255,198,92,.12);border:1px solid rgba(255,198,92,.3);border-radius:999px;padding:3px 12px}
.devbox2 h2{margin:10px 0 6px;font-size:clamp(22px,3vw,30px);line-height:1.25}
.devbox2 h2 em{font-style:normal;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.devbox2 .db-l>p{margin:0;color:#c9cee8;font-size:15px}
.db-why{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.db-why li{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.db-why .e{font-size:20px;line-height:1.2}
.db-why b{display:block;font-size:14.5px}
.db-why small{display:block;color:#b8bfe0;font-size:12.5px;line-height:1.45}
.db-r{display:flex;flex-direction:column;justify-content:center;gap:14px;padding:18px;border-radius:20px;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.08)}
.db-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.db-steps li{display:flex;gap:10px;align-items:center;font-size:14.5px}
.db-steps i{width:28px;height:28px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:700;background:var(--grad);color:#1a1020}
.db-go{justify-content:center;min-height:50px;font-size:16px}
.db-nums{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center}
.db-nums span{display:flex;flex-direction:column;font-size:12px;color:#b8bfe0}
.db-nums b{font-size:22px;color:#fff}
@media (max-width:860px){.devbox2{grid-template-columns:1fr;padding:20px}.db-why{grid-template-columns:1fr}}

/* 7 bottom tiles */
.explore2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0 4px}
.explore2 .ex{position:relative;display:block;min-height:110px;padding:0;border-radius:20px;overflow:hidden;background:var(--card);border:1px solid var(--line2);isolation:isolate}
.explore2 .bgi{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);z-index:-1}
.explore2 .bgi img{width:100%;height:100%;object-fit:cover;opacity:.35}
.explore2 .ex::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(10,12,24,.9),rgba(10,12,24,.45))}
.explore2 .ex-t{display:flex;align-items:center;gap:14px;height:100%;min-height:110px;padding:18px 20px}
.explore2 .ex-t>span{flex:1;display:flex;flex-direction:column}
.explore2 .ex-t b{font-size:18px}
.explore2 .ex-t small{color:var(--mute)}
.explore2 .flag{width:34px;height:23px;border-radius:4px}
.explore2 .ex-t>.i:first-child{width:30px;height:30px}
.explore2 .ex:hover{border-color:rgba(255,165,61,.6)}
@media (max-width:640px){.explore2{grid-template-columns:1fr}}

/* Thai page hero */
.th-hero{position:relative;overflow:hidden;margin:4px 0 6px;padding:18px 20px 16px;border-radius:22px;background:linear-gradient(130deg,#1e2246,#141831);border:1px solid var(--line2)}
.th-hero::after{content:"";position:absolute;top:-30%;right:-8%;width:34%;height:160%;transform:skewX(-14deg);background:linear-gradient(180deg,#a51931 0 16%,#f4f5f8 16% 33%,#2d2a4a 33% 67%,#f4f5f8 67% 84%,#a51931 84%);opacity:.12;pointer-events:none}
.th-hero .sec-head{margin:0}
.th-trust{display:flex;flex-wrap:wrap;gap:6px 16px;margin:10px 0 0;font-size:13.5px;color:#c9cee8}
.th-trust span{display:inline-flex;align-items:center;gap:6px}
.th-trust .i{width:16px;height:16px}

/* game page: two number boxes + sponsor extras */
.gp-stats{margin-top:12px;border-radius:16px;padding:12px;border:1px solid var(--line2);background:rgba(255,255,255,.03)}
.gp-stats.hg{border-color:rgba(255,138,61,.45);background:linear-gradient(135deg,rgba(255,138,61,.1),rgba(255,79,123,.05))}
.gs-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
.gs-h b{font-size:14px}
.gp-stats.hg .gs-h b{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.gs-h small{font-size:11.5px;color:var(--mute)}
.gs-g{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;text-align:center}
.gs-g div{display:flex;flex-direction:column;gap:2px}
.gs-g b{font-size:17px}
.gs-g span{font-size:11.5px;color:var(--mute);line-height:1.3}
.sp-detail{position:relative;margin:16px 0;padding:16px;border-radius:20px;border:2px solid #ffc65c;background:linear-gradient(135deg,rgba(255,198,92,.1),rgba(255,111,97,.05))}
.sp-detail .gold{position:static;margin-bottom:10px}
.sp-detail h3{margin:12px 0 8px;font-size:16px}
.sp-yt{display:block;width:100%;max-width:720px}
.sp-hl{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.sp-hl div{display:flex;gap:8px;align-items:flex-start;padding:12px;border-radius:14px;background:rgba(0,0,0,.2);font-size:14px}
.sp-hl .i{width:18px;height:18px;flex:none}
.sp-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
@media (max-width:640px){.sp-hl{grid-template-columns:1fr}.gs-g b{font-size:15px}}

/* footer columns */
.foot-cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:20px}
.foot-col{display:flex;flex-direction:column;gap:7px}
.foot-col b{font-size:14px;margin-bottom:2px}
.foot-col a{color:var(--mute)}
.foot-col a:hover{color:var(--text)}
.foot-bot{max-width:1320px;margin:0 auto;padding:0 var(--pad) 26px;font-size:12.5px;border-top:1px solid var(--line)}
.foot-bot p{margin:10px 0 0}
@media (max-width:760px){.foot-cols{grid-template-columns:1fr 1fr}.fc-brand{grid-column:1/-1}}
[data-theme="light"] .prem-meta{background:#fff}
[data-theme="light"] .devbox2,[data-theme="light"] .th-hero{color:#fff}
@media (min-width:760px){.hero.spot-glow .slide{aspect-ratio:16/5.4}.prem-cover{aspect-ratio:2.5/1}}
.card .meta.grp{gap:6px;overflow:hidden}
.card .meta.grp.rb em{display:none}

/* submit page: stepper + trust column */
.sub-wrap{display:grid;grid-template-columns:minmax(0,680px) 300px;gap:22px;justify-content:center;align-items:start}
.sub-wrap .form{margin:0;max-width:none}
.sub-stepper{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:6px 0 14px;padding:0}
.sub-stepper li{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:12.5px;color:var(--mute);position:relative}
.sub-stepper li:not(:last-child)::after{content:"";position:absolute;top:15px;left:calc(50% + 20px);right:calc(-50% + 20px);height:2px;background:var(--line2)}
.sub-stepper li.done:not(:last-child)::after{background:#2fe39a}
.sub-stepper i{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:700;background:var(--bg2);border:2px solid var(--line2);color:var(--mute)}
.sub-stepper i .i{width:16px;height:16px}
.sub-stepper li.on i{background:var(--grad);border-color:transparent;color:#1a1020}
.sub-stepper li.on{color:var(--text);font-weight:600}
.sub-stepper li.done i{background:#2fe39a;border-color:transparent;color:#03240f}
.sub-side{position:sticky;top:84px;display:flex;flex-direction:column;gap:10px;margin-top:118px}
.sub-tr{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:16px;background:var(--bg2);border:1px solid var(--line)}
.sub-tr .e{font-size:22px;line-height:1.1}
.sub-tr b{display:block;font-size:14.5px}
.sub-tr small{display:block;color:var(--mute);font-size:13px;line-height:1.5}
.sub-tr a{display:inline-block;margin-top:4px;font-size:13px;color:var(--acc)}
@media (max-width:1000px){.sub-wrap{grid-template-columns:1fr}.sub-side{position:static;margin-top:4px}}

/* compact sponsor cards (owner 2026-11-07: smaller, keep the gold highlight) */
.prem{border-radius:18px;box-shadow:0 6px 22px rgba(255,140,60,.22)}
.prem-in{display:flex;align-items:center;gap:12px;height:100%;padding:8px 12px 8px 8px;border-radius:16px;background:#141831}
.prem-thumb{position:relative;flex:none;width:150px;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:var(--card)}
.prem-thumb>img{width:100%;height:100%;object-fit:cover}
.prem-thumb .gold{top:6px;left:6px;font-size:10.5px;padding:2px 8px}
.prem-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.prem-top{display:flex;align-items:center;gap:8px;min-width:0}
.prem-top .pic{width:34px;height:34px;border-radius:9px;border:1.5px solid #ffd27a;object-fit:cover;flex:none}
.prem-top .pt{min-width:0;display:flex;flex-direction:column}
.prem-top .pt b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prem-top .pt small{font-size:12px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prem .prem-meta{padding:0;background:none;border-radius:0;gap:10px;font-size:12px}
.prem .see{flex:none;background:#2fe39a;color:#03240f;border:0;font-weight:700}
.sp-row{margin:14px 0 4px}
@media (max-width:767px){.prem-thumb{width:104px}.prem .see{display:none}.sp-strip .prem{flex:0 0 88%}}
[data-theme="light"] .prem-in{background:#fff}

/* top-10 rows: the big rank number ends at the bottom of the game icon (never over the name), all icons on one line */
.strip{align-items:flex-start}
.tcard{align-items:flex-start}
.tcard .big{margin-top:calc(118px - 96px * .78);text-align:right;min-width:52px}
.tcard .card{position:relative}
@media (min-width:760px){.tcard .big{margin-top:calc(140px - 118px * .78);min-width:64px}}
.tcard{width:184px}.tcard .big{margin-right:-10px}
@media (min-width:760px){.tcard{width:218px}}

/* sponsor pairs rotate together on PC; preview label */
.sp-demo{margin:0 0 8px;padding:6px 12px;border-radius:10px;background:rgba(255,198,92,.12);border:1px dashed rgba(255,198,92,.6);color:#ffd27a;font-size:13px}
.sp-demo a{color:#fff;text-decoration:underline}
.sdots.pc{display:none}
@media (min-width:768px){
  .sp-strip .prem.off{display:none}
  .sp-strip .prem{animation:spIn .45s ease-out}
  .sdots.pc{display:flex}
  .sdots.pc i{cursor:pointer}
  .sdots.ph{display:none}
}
@keyframes spIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.sp-strip .prem{animation:none}}

/* "can't decide?" game finder strip with slowly drifting game icons */
.finder-strip{position:relative;overflow:hidden;isolation:isolate;cursor:pointer;min-height:96px;padding:18px 22px;background:linear-gradient(120deg,#2a1a3c,#1a1d3c 55%,#14243a)}
.finder-strip::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(16,14,34,.94) 0%,rgba(16,14,34,.7) 45%,rgba(16,14,34,.35))}
.fs-float{position:absolute;inset:0;z-index:-2;pointer-events:none}
.fs-float img{position:absolute;left:var(--x);top:var(--y);width:var(--s);height:var(--s);border-radius:12px;opacity:.55;transform:rotate(var(--r));box-shadow:0 4px 14px rgba(0,0,0,.4);animation:fsDrift var(--d) ease-in-out infinite alternate}
@keyframes fsDrift{0%{transform:translate(0,0) rotate(var(--r))}50%{transform:translate(18px,-10px) rotate(calc(var(--r) * -1))}100%{transform:translate(-14px,8px) rotate(var(--r))}}
@media (prefers-reduced-motion:reduce){.fs-float img{animation:none}}
.fs-t{position:relative;min-width:0}
.fs-t h1{margin:0;font-size:clamp(19px,2.6vw,26px);line-height:1.3}
.fs-t h1 em{font-style:normal;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.fs-t p{margin:4px 0 0;color:#c9cee8;font-size:14px}
.fs-go{position:relative;flex:none;min-height:46px;padding:0 20px;font-size:15.5px;box-shadow:0 6px 22px rgba(255,120,80,.35)}
.finder-strip:hover .fs-go{transform:translateY(-1px)}
@media (max-width:640px){.finder-strip{flex-direction:column;align-items:flex-start;gap:12px}.fs-go{width:100%;justify-content:center}}
.finder-strip::after{background:linear-gradient(90deg,rgba(16,14,34,.88) 0%,rgba(16,14,34,.6) 40%,rgba(16,14,34,.2))}
.fs-float img{opacity:.75}
.finder-strip{min-height:112px}
.finder-strip::after{background:linear-gradient(90deg,rgba(16,14,34,.9) 0%,rgba(16,14,34,.55) 38%,rgba(16,14,34,.08))}
.fs-float img{opacity:.9}

/* ---------- Thai page header v2: glow, waving ribbon, live stats, clear badges ---------- */
.th-hero.th2{padding:22px 22px 18px;background:radial-gradient(80% 120% at 0% 0%,rgba(255,79,123,.18),transparent 55%),radial-gradient(70% 120% at 100% 100%,rgba(79,179,255,.16),transparent 55%),linear-gradient(130deg,#1f2350,#151933 60%,#141a36)}
.th-hero.th2::after{display:none}
.th-glow{position:absolute;inset:-40%;z-index:0;background:conic-gradient(from 0deg,transparent 0 60%,rgba(255,138,61,.16) 70%,transparent 80%);animation:thSpin 14s linear infinite;pointer-events:none}
@keyframes thSpin{to{transform:rotate(360deg)}}
.th-ribbon{position:absolute;right:-30px;top:-10px;bottom:-10px;width:44%;z-index:0;display:flex;flex-direction:column;transform:skewX(-14deg);opacity:.22;pointer-events:none;-webkit-mask:linear-gradient(90deg,transparent,#000 35%);mask:linear-gradient(90deg,transparent,#000 35%)}
.th-ribbon i{flex:1;animation:thWave 6s ease-in-out infinite}
.th-ribbon i:nth-child(1),.th-ribbon i:nth-child(5){background:#e3324b;flex:1}
.th-ribbon i:nth-child(2),.th-ribbon i:nth-child(4){background:#f4f5f8;flex:1}
.th-ribbon i:nth-child(3){background:#3a3ba0;flex:2}
.th-ribbon i:nth-child(2){animation-delay:.15s}.th-ribbon i:nth-child(3){animation-delay:.3s}.th-ribbon i:nth-child(4){animation-delay:.45s}.th-ribbon i:nth-child(5){animation-delay:.6s}
@keyframes thWave{50%{transform:translateX(14px)}}
.th2>*:not(.th-glow):not(.th-ribbon){position:relative;z-index:1}
.th-top h1{margin:0;font-size:clamp(24px,3.2vw,32px);display:flex;align-items:center;gap:10px}
.th-top h1 .flag{width:38px;height:26px;border-radius:5px;box-shadow:0 0 0 2px rgba(255,255,255,.15),0 4px 14px rgba(0,0,0,.35)}
.th-top p{margin:6px 0 0;color:#c9cee8;font-size:15px}
.th-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px;max-width:760px}
.ts-c{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-radius:18px;background:rgba(10,12,30,.55);border:1px solid rgba(255,255,255,.1);backdrop-filter:blur(4px)}
.ts-c b{font-size:clamp(22px,2.6vw,30px);line-height:1.1;margin-top:6px}
.ts-c>span:last-child{color:#b8bfe0;font-size:13.5px;display:flex;align-items:center;gap:6px}
.ts-ic{width:34px;height:34px;border-radius:11px;display:flex;align-items:center;justify-content:center}
.ts-ic .i{width:19px;height:19px}
.ts-ic.g{background:rgba(255,198,92,.16);color:#ffd27a}
.ts-ic.c{background:rgba(79,179,255,.16);color:#7cc6ff}
.ts-ic.l{background:rgba(47,227,154,.16)}
.ts-c.live{border-color:rgba(47,227,154,.45);box-shadow:0 0 24px rgba(47,227,154,.15)}
.ts-c.live b{color:#7ff0bf}
.ts-ic.l .live-dot{width:12px;height:12px;box-shadow:0 0 0 0 rgba(47,227,154,.7);animation:livep 1.6s infinite}
.live-tag{font-style:normal;font-size:10px;font-weight:700;letter-spacing:.8px;color:#03240f;background:#2fe39a;border-radius:5px;padding:0 5px;line-height:16px}
.th-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.tb{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:16px;background:rgba(47,227,154,.1);border:1px solid rgba(47,227,154,.35)}
.tb>.i{width:22px;height:22px;color:#2fe39a;flex:none}
.tb b{display:block;font-size:14.5px}
.tb small{display:block;color:#b8bfe0;font-size:12.5px;line-height:1.4}
.tb.v{background:rgba(79,179,255,.1);border-color:rgba(79,179,255,.45);box-shadow:0 0 22px rgba(79,179,255,.12)}
.tb.v>.i{color:#7cc6ff}
@media (max-width:640px){.th-stats{grid-template-columns:1fr 1fr}.th-stats .ts-c:first-child{grid-column:1/-1}.th-ribbon{width:60%;opacity:.14}}
@media (prefers-reduced-motion:reduce){.th-glow,.th-ribbon i{animation:none}}

/* ---------- genre picker: tiles sorted ก-ฮ, fire for the 3 most played ---------- */
.gpick{margin:16px 0 4px;padding:14px;border-radius:20px;background:var(--bg2);border:1px solid var(--line)}
.gp-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.gp-head b{display:flex;align-items:center;gap:8px;font-size:16px}
.gp-head span{color:var(--mute);font-size:12.5px}
.gp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;max-height:96px;overflow:hidden;transition:max-height .35s}
.gpick.open .gp-grid{max-height:1200px}
.gtile{position:relative;display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;border:1px solid var(--line2);background:var(--card);color:var(--text);font:inherit;font-size:14px;cursor:pointer;text-align:left;transition:.15s}
.gtile .i{width:18px;height:18px;flex:none}
.gtile .gn{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gtile em{font-style:normal;font-size:12px;color:var(--mute);background:rgba(255,255,255,.06);border-radius:8px;padding:0 7px}
.gtile:hover{border-color:rgba(255,165,61,.55);transform:translateY(-1px)}
.gtile.on{background:var(--grad);color:#1a1020;border-color:transparent;font-weight:600}
.gtile.on em{background:rgba(0,0,0,.15);color:#2a1000}
.gtile.on .i{color:#1a1020}
.gtile.hot{border-color:rgba(255,122,69,.55)}
.gfire{position:absolute;top:-8px;right:-6px;font-style:normal;font-size:11px;font-weight:700;color:#fff;background:linear-gradient(135deg,#ff9a3d,#ff4f5e);border-radius:999px;padding:1px 7px;box-shadow:0 3px 10px rgba(255,80,60,.4)}
.gp-more{display:block;margin:10px auto 0;background:none;border:1px solid var(--line2);color:var(--text);border-radius:999px;padding:6px 16px;font:inherit;font-size:13.5px;cursor:pointer}
@media (max-width:640px){.gp-grid{grid-template-columns:1fr 1fr}}

/* ---------- hero depth: picture, text and icon move at different speeds ---------- */
.hero{--mx:0;--my:0}
.hero .slide>img{transition:transform .5s ease-out;transform:scale(1.1) translate(calc(var(--mx) * -22px),calc(var(--my) * -14px))}
.hero .slide.on>img{transform:scale(1.14) translate(calc(var(--mx) * -22px),calc(var(--my) * -14px))}
.hero .slide .info{transition:transform .5s ease-out;transform:translate(calc(var(--mx) * 12px),calc(var(--my) * 8px))}
.hero .slide .ic{transition:transform .5s ease-out;transform:translate(calc(var(--mx) * 10px),calc(var(--my) * 6px)) rotate(calc(var(--mx) * 6deg));box-shadow:0 10px 26px rgba(0,0,0,.5)}
.hero .slide::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.14) 50%,transparent 60%);transform:translateX(-120%);animation:heroSweep 7s ease-in-out infinite}
@keyframes heroSweep{0%,70%{transform:translateX(-120%)}100%{transform:translateX(120%)}}
@media (hover:none){.hero .slide.on>img{animation:heroDrift 14s ease-in-out infinite alternate}}
@keyframes heroDrift{from{transform:scale(1.12) translate(-10px,-4px)}to{transform:scale(1.18) translate(10px,4px)}}
@media (prefers-reduced-motion:reduce){.hero .slide::after,.hero .slide.on>img{animation:none}}
.gp-grid{grid-template-columns:repeat(auto-fill,minmax(176px,1fr));padding:9px 6px 2px;margin:-9px -6px 0;max-height:112px}
.gtile .gn{white-space:normal;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media (max-width:640px){.gp-grid{grid-template-columns:1fr 1fr;max-height:118px}}

/* Thai page header: compact (owner 2026-11-07: about half the height) */
.th-hero.th2{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px 22px;padding:14px 18px}
.th2 .th-top{grid-column:1;grid-row:1}
.th2 .th-top h1{font-size:clamp(20px,2.4vw,26px)}
.th2 .th-top p{font-size:13.5px;margin-top:2px}
.th2 .th-stats{grid-column:2;grid-row:1;margin:0;justify-self:end;display:flex;gap:8px;max-width:none}
.th2 .ts-c{flex-direction:row;align-items:center;gap:8px;padding:8px 12px;border-radius:14px}
.th2 .ts-c b{font-size:20px;margin:0}
.th2 .ts-c>span:last-child{font-size:12.5px;line-height:1.25}
.th2 .ts-ic{width:28px;height:28px;border-radius:9px}
.th2 .ts-ic .i{width:16px;height:16px}
.th2 .th-badges{grid-column:1/-1;grid-row:2;margin:0;gap:8px}
.th2 .tb{padding:6px 12px;border-radius:12px;gap:8px}
.th2 .tb>.i{width:17px;height:17px}
.th2 .tb b{display:inline;font-size:13px}
.th2 .tb small{display:inline;font-size:12px;margin-left:6px}
@media (max-width:900px){.th-hero.th2{grid-template-columns:1fr}.th2 .th-stats{grid-column:1;grid-row:2;justify-self:stretch}.th2 .th-stats .ts-c{flex:1}.th2 .th-badges{grid-row:3}.th2 .tb small{display:none}}
@media (max-width:520px){.th2 .th-stats{flex-wrap:wrap}.th2 .ts-c{min-width:calc(50% - 4px)}}
/* Thai page slider a bit shorter on PC so more games show above the fold */
@media (min-width:760px){.th-hero.th2 ~ .hero .slide{aspect-ratio:16/5.2}}
.hero + .gpick,.hero ~ .gpick{margin-top:18px}
.gpick.slim{padding:10px 12px}
.gpick.slim .gp-head{margin-bottom:6px}
.gpick.slim:not(.open) .gp-grid{max-height:58px}

/* "ทีมงานแนะนำ" labels */
.tag.bo{background:linear-gradient(135deg,#fff3c4,#ffc65c);color:#3a2300;font-weight:700}
.tag.bo.house{background:var(--grad);color:#2a1000}
.tag.bo.inl{position:static;display:inline-flex;margin-left:6px;vertical-align:middle;font-size:11px;padding:1px 8px;border-radius:8px}

/* header fit on small laptops / tablets: the side links become icons so "ฝากเกม" never falls off the edge */
@media (min-width:760px) and (max-width:1199px){
  .toplink span{display:none}
  .toplink{padding:6px 7px}
  .submit-btn{white-space:nowrap;padding:0 14px}
}
@media (min-width:760px) and (max-width:1099px){
  .top{gap:6px}
  .seg a{padding-left:10px;padding-right:10px}
}
.submit-btn{white-space:nowrap}

/* phone sponsor slider: card never wider than its slot */
@media (max-width:767px){.sp-strip .prem{min-width:0;max-width:84%;overflow:hidden}.sp-strip .prem *{min-width:0}}

/* "เครื่องมือเสริม" menu (app.js TOOLS) */
.tools-btn{background:none;border:0;font:inherit;cursor:pointer}
.tools-btn .chev{width:14px;height:14px;transform:rotate(90deg);opacity:.7;transition:transform .2s}
.tools-btn[aria-expanded="true"] .chev{transform:rotate(-90deg)}
.tools-menu{position:fixed;z-index:80;width:340px;background:var(--card);border:1px solid var(--line2);border-radius:18px;padding:8px;box-shadow:0 18px 50px rgba(0,0,0,.45);animation:toolsIn .16s ease-out}
@keyframes toolsIn{from{opacity:0;transform:translateY(-6px)}}
.tool-list{display:flex;flex-direction:column;gap:4px}
.tool-it{display:flex;align-items:center;gap:12px;padding:10px;border-radius:14px;color:var(--text);transition:background .15s}
.tool-it:hover,.tool-it:focus-visible{background:rgba(255,255,255,.06)}
.tool-ic{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(150deg,color-mix(in srgb,var(--tc) 28%,transparent),color-mix(in srgb,var(--tc) 10%,transparent));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tc) 30%,transparent);color:var(--tc)}
.tool-ic .i{width:28px;height:28px}
.tool-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tool-tx b{font-size:15px}
.tool-tx small{font-size:12.5px;color:var(--mute);line-height:1.4}
.tool-it>.i{width:16px;height:16px;color:var(--mute);flex:none}
.tool-live{display:inline-flex;align-items:center;gap:5px;font-style:normal;font-size:11.5px;color:#7ff0bf}
.tool-live i{width:7px;height:7px;border-radius:50%;background:#2fe39a}
.tools-sheet .tool-it{padding:12px 6px}
/* phone #th numbers: live box gets the full first line, the other two share the second line */
@media (max-width:520px){.th2 .th-stats .ts-c.live{order:-1;flex:1 1 100%;min-width:100%}.th2 .th-stats .ts-c:not(.live){flex:1 1 calc(50% - 4px);min-width:0}.th2 .ts-c>span:last-child{flex-wrap:wrap}}

/* ฝากเกม guide (site/submit-guide.js) */
.sg{display:flex;flex-direction:column;gap:14px;margin:4px 0 16px}
.sg-head h2{margin:0;font-size:20px}
.sg-head p{margin:4px 0 0;color:var(--mute);font-size:14px}
.sg-why{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sg-why>div{display:flex;flex-direction:column;gap:3px;padding:12px;border-radius:16px;background:var(--bg2);border:1px solid var(--line)}
.sg-why .e{font-size:22px}
.sg-why b{font-size:14.5px}
.sg-why small{font-size:12.5px;color:var(--mute);line-height:1.45}
.sg-road{list-style:none;margin:0;padding:14px;border-radius:18px;background:var(--card);border:1px solid var(--line);display:flex;flex-direction:column;gap:0}
.sg-road li{position:relative;display:flex;gap:12px;padding:0 0 14px}
.sg-road li:last-child{padding-bottom:0}
.sg-road li:not(:last-child)::after{content:"";position:absolute;left:15px;top:32px;bottom:2px;width:2px;background:var(--line2)}
.sg-road li.done:not(:last-child)::after{background:#2fe39a}
.sg-road i{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;font-style:normal;font-weight:700;font-size:14px;background:var(--bg2);border:2px solid var(--line2);color:var(--mute);z-index:1}
.sg-road li.done i{background:#2fe39a;border-color:#2fe39a;color:#03240f}
.sg-road li.on i{background:var(--grad);border-color:transparent;color:#2a1000;box-shadow:0 0 0 5px rgba(255,165,61,.2)}
.sg-road span{display:flex;flex-direction:column;gap:2px;padding-top:4px;min-width:0}
.sg-road b{font-size:15px}
.sg-road li:not(.on):not(.done) b{color:var(--mute)}
.sg-road small{font-size:13px;color:var(--mute);line-height:1.45}
.sg-here{align-self:flex-start;margin-top:4px;font-style:normal;font-size:11.5px;font-weight:700;color:#2a1000;background:var(--grad);border-radius:999px;padding:2px 9px}
.sg.compact .sg-road{flex-direction:row;gap:6px;padding:12px;overflow:hidden}
.sg.compact .sg-road li{flex:1 1 0;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:0;min-width:0}
.sg.compact .sg-road li:not(:last-child)::after{left:calc(50% + 20px);right:calc(-50% + 14px);top:15px;bottom:auto;width:auto;height:2px}
.sg.compact .sg-road small,.sg.compact .sg-here{display:none}
.sg.compact .sg-road span{padding:0;align-items:center}
.sg.compact .sg-road b{font-size:12px;line-height:1.3}
.sg-faqs{display:flex;flex-direction:column;gap:6px}
.sg-faq{background:var(--bg2);border:1px solid var(--line);border-radius:14px;padding:10px 14px;font-size:14px}
.sg-faq summary{cursor:pointer;font-weight:600}
.sg-faq ul,.sg-faq p{margin:8px 0 2px;color:var(--text2,#c9cde6);line-height:1.55}
.sg-faq ul{padding-left:20px}
.sg-mine{display:flex;flex-direction:column;gap:10px;margin:0 0 16px;padding:14px;border-radius:18px;background:var(--card);border:1px solid var(--line)}
.sg-mine h3{margin:0;font-size:16px}
.sg-gh{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.sg-gh img{width:28px;height:28px;border-radius:8px}
.sg-track{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.sg-track li{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;min-width:0}
.sg-track li:not(:last-child)::after{content:"";position:absolute;top:13px;left:calc(50% + 17px);right:calc(-50% + 11px);height:2px;background:var(--line2)}
.sg-track li.done:not(:last-child)::after{background:#2fe39a}
.sg-track i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-style:normal;font-weight:700;font-size:13px;background:var(--bg2);border:2px solid var(--line2);color:var(--mute);z-index:1}
.sg-track li.done i{background:#2fe39a;border-color:#2fe39a;color:#03240f}
.sg-track li.on i{background:var(--grad);border-color:transparent;color:#2a1000;animation:sgPulse 1.6s infinite}
.sg-track li.fix i{background:#ffc65c;border-color:#ffc65c;color:#2a1000}
.sg-track li.no i{background:#ff6b7a;border-color:#ff6b7a;color:#fff}
@keyframes sgPulse{50%{box-shadow:0 0 0 6px rgba(255,165,61,.18)}}
.sg-track span{display:flex;flex-direction:column;gap:2px;min-width:0}
.sg-track b{font-size:12.5px;line-height:1.3}
.sg-track small{font-size:11.5px;color:var(--mute);line-height:1.35;overflow-wrap:anywhere}
.sg-fixgo{margin-top:8px}
.mg .sg-track{margin-top:8px}
@media (max-width:640px){.sg-why{grid-template-columns:1fr 1fr}.sg.compact .sg-road b{font-size:10.5px}.sg.compact .sg-road i{width:26px;height:26px;font-size:12px}.sg.compact .sg-road li:not(:last-child)::after{top:12px;left:calc(50% + 16px);right:calc(-50% + 11px)}}
@media (prefers-reduced-motion:reduce){.sg-track li.on i{animation:none}}

.sg-cta{align-self:flex-start;margin-top:8px}

/* account / submit: red star = must fill; level-card buttons */
.req{color:#ff4d5e;font-style:normal;font-weight:800;margin-left:3px}
.lv .lv-go{margin-top:8px;align-self:flex-start}
.lv:has(.lv-go){opacity:1;border-color:rgba(255,165,61,.55);box-shadow:0 0 0 3px rgba(255,165,61,.12)}
.lv .lv-go{display:inline-flex;margin-top:8px}

/* phone bar: 5 tabs (เกมใหม่ / เกมไทย / ทั่วโลก / เพิ่มเติม / ฝากเกม) */
.bottomnav{grid-template-columns:repeat(5,1fr)}

/* invite card in the developer feed (shown while the wall has few posts) */
.post.invite{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;min-height:220px;padding:24px;border:2px dashed var(--line2);background:linear-gradient(160deg,rgba(255,138,61,.08),transparent);color:inherit;text-decoration:none}
.post.invite .inv-e{font-size:40px}.post.invite b{font-size:18px}.post.invite small{color:var(--mute);max-width:32ch}
.post.invite:hover{border-color:#ff8a3d}

/* top tabs: one line on phones ("เดฟลงเอง", "เกมทั่วโลก") */
.mtabs a{white-space:nowrap}
@media (max-width:400px){.mtabs a{font-size:13px;letter-spacing:-.2px}}
@media (max-width:365px){.mtabs a{font-size:12px;gap:3px}}
