/* Home v5 rows (28 Nov 2026 reference board): VIP + invite friends, game center with cover-art cards, coupons of the month.
   Art: /assets/home/v5 (cut from the reference UI kit) + the games' own covers in /assets/games/v1. */
.h5-promo,.h5-games,.h5-coupons{--h5-navy:#2a1f6e;--h5-pink:#ff2f84;--h5-red:#ec1f55;--h5-purple:#5b3fd6;font-family:Kanit,Prompt,sans-serif}
.h4-wrap>.h5-games,.h4-wrap>.h5-coupons,.h5-promo{margin:22px 0}
.h5-promo{display:grid;grid-template-columns:minmax(0,1.68fr) minmax(0,1fr);gap:18px;align-items:stretch}
.h5-promo.solo{grid-template-columns:1fr}
.h5-promo>[data-h4-vip]{display:contents}
.h5-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:12px 24px;font:700 17px/1.1 Kanit,sans-serif;text-decoration:none;cursor:pointer;transition:transform .15s,filter .15s;white-space:nowrap}
.h5-btn svg{width:18px;height:18px;flex:none}
.h5-btn:hover{transform:translateY(-2px);filter:brightness(1.05)}
.h5-btn:active{transform:translateY(1px)}
.h5-btn.gold{background:linear-gradient(#ffe885,#ffc21c 60%,#ffb000);color:#2b1d5c;box-shadow:0 5px 0 #d98a00,0 10px 18px rgba(0,0,0,.25),inset 0 2px 0 rgba(255,255,255,.7)}
.h5-btn.red{background:linear-gradient(#ff5d86,#ec1f55);color:#fff;box-shadow:0 5px 0 #b10f3d,0 10px 18px rgba(236,31,85,.28),inset 0 2px 0 rgba(255,255,255,.35)}
.h5-btn.sm{padding:9px 18px;font-size:15px;box-shadow:0 4px 0 #b10f3d,inset 0 2px 0 rgba(255,255,255,.35)}
.h5-btn[disabled]{cursor:default;transform:none;filter:none}

/* ---- VIP */
.h5-vip{position:relative;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr) 25%;gap:16px;align-items:center;min-height:250px;padding:20px 22px 44px 22%;border-radius:30px;color:#fff;overflow:hidden;
  background:url(/assets/home/v5/bg-vip.webp) center bottom/100% 100% no-repeat,linear-gradient(135deg,#0d2a6e,#081a4f);border:3px solid rgba(255,255,255,.75);box-shadow:0 0 0 3px #c9d6ff,0 10px 24px rgba(20,30,90,.22)}
.h5-vip-bun{position:absolute;left:1.2%;bottom:6px;width:clamp(150px,22%,230px);height:auto;filter:drop-shadow(0 10px 14px rgba(0,0,20,.35));animation:h5-bob 4s ease-in-out infinite}
.h5-vip-pill{display:inline-flex;align-items:center;gap:8px;padding:4px 18px 4px 10px;border:2px solid #f5c84a;border-radius:999px;background:rgba(6,16,70,.55);font:600 16px/1.3 Kanit,sans-serif;color:#fff;box-shadow:0 0 14px rgba(245,200,74,.35)}
.h5-vip-pill img{width:30px;height:auto}
.h5-vip-title{margin:10px 0 14px;font:700 clamp(20px,4.3cqw,40px)/1.15 Kanit,sans-serif;color:#fff;text-shadow:0 2px 6px rgba(0,0,40,.45)}
.h5-vip-title b{font-weight:800;background:linear-gradient(#fff6b8,#ffd54a 45%,#f2a100);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 2px 0 rgba(110,55,0,.6)) drop-shadow(0 3px 6px rgba(0,0,30,.35))}
.h5-vip-title .vip{font-size:1.55em;letter-spacing:.5px}
.h5-vip-title .x4{font-size:1.15em}
.h5-perks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0;list-style:none}
.h5-perks li{display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 6px;gap:2px;min-width:0;text-shadow:0 1px 3px rgba(0,10,50,.75)}
.h5-perks li+li{border-left:1.5px solid rgba(255,255,255,.28)}
.h5-perks img{height:clamp(36px,5.6cqw,52px);width:auto;margin-bottom:4px;filter:drop-shadow(0 4px 6px rgba(0,0,0,.3))}
.h5-perks b{font:700 clamp(13px,2cqw,17px)/1.2 Kanit,sans-serif;white-space:nowrap}
.h5-perks small{font-size:clamp(10.5px,1.4cqw,12.5px);line-height:1.25;opacity:.85}
.h5-vip-side{display:flex;flex-direction:column;gap:18px;align-items:stretch;min-width:0}
.h5-vip-side .h5-btn{padding:12px 14px;font-size:clamp(14px,2cqw,17px)}
.h5-left{display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 18px 16px;border-radius:22px;background:linear-gradient(#fffdf6,#fff3e2);color:var(--h5-navy);box-shadow:0 6px 0 rgba(0,0,0,.12),inset 0 0 0 2px #fff}
.h5-left small{font:700 16px Kanit,sans-serif}
.h5-left b{font:800 clamp(22px,3.4cqw,30px)/1.1 Kanit,sans-serif;color:var(--h5-red);white-space:nowrap}
.h5-bar{display:block;width:100%;height:12px;margin-top:6px;border-radius:99px;background:#e6e3ee;overflow:hidden;box-shadow:inset 0 1px 2px rgba(0,0,0,.15)}
.h5-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ff5d97,#ec1f55)}

/* ---- invite friends */
.h5-invite{position:relative;min-height:250px;padding:24px 24px 22px 26px;border-radius:30px;overflow:hidden;
  background:url(/assets/home/v5/bg-invite.webp) center/100% 100% no-repeat,linear-gradient(135deg,#fde2f3,#e9d8ff);border:3px solid #fff;box-shadow:0 0 0 3px #f2d2ef,0 10px 24px rgba(160,80,170,.18)}
.h5-inv-main{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:12px;max-width:64%}
.h5-inv-title{display:flex;flex-direction:column;align-items:flex-start;margin:0;font:800 clamp(30px,2.7vw,42px)/1.08 Kanit,sans-serif;transform:rotate(-3deg);transform-origin:left}
.h5-inv-title .l2{display:inline-flex;align-items:center;gap:4px;margin-left:24px}
.h5-inv-title .l1 i{background-image:linear-gradient(#4a3fc2,#2a2386)}
.h5-inv-title .l2 i{background-image:linear-gradient(#ff5aa8,#d91f7c)}
.h5-curl{width:42px;height:32px;color:#e42e8c;transform:rotate(8deg);filter:drop-shadow(0 0 0 #fff) drop-shadow(0 2px 3px rgba(150,60,150,.25))}
.h5-checks{display:flex;flex-direction:column;gap:8px;margin:2px 0 0;padding:12px 14px;list-style:none;border-radius:18px;background:rgba(255,255,255,.72);box-shadow:0 4px 12px rgba(150,80,170,.12);color:var(--h5-navy);font:600 15px/1.3 Kanit,sans-serif}
.h5-checks li{display:flex;align-items:flex-start;gap:10px}
.h5-checks .h4-check{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:linear-gradient(#ff5d97,#e3266a);box-shadow:0 2px 0 #b71650}
.h5-checks .h4-check svg{width:16px;height:16px}
.h5-sticker{position:absolute;z-index:3;top:16px;right:16px;padding:6px 14px;border-radius:12px;border:3px solid #fff;background:linear-gradient(#ff5a7e,#e6194f);color:#fff;font:800 17px/1.15 Kanit,sans-serif;text-align:center;transform:rotate(7deg);box-shadow:0 6px 14px rgba(230,25,79,.35)}
.h5-inv-gift{position:absolute;z-index:1;right:4px;bottom:46px;width:190px;height:auto;animation:h5-bob 4.6s ease-in-out infinite reverse}

/* ---- game center */
.h5-games{position:relative;display:grid;grid-template-columns:minmax(250px,300px) minmax(0,1fr);gap:12px;align-items:center;padding:20px 22px;border-radius:32px;
  background:radial-gradient(120% 80% at 10% 100%,rgba(140,190,255,.45),transparent 60%),linear-gradient(135deg,#eef3ff,#dfe8ff 55%,#ebe3ff);border:4px solid #fff;box-shadow:0 0 0 3px #d4e0ff,0 10px 26px rgba(90,110,220,.16)}
.h5-gc-intro{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding-left:8px}
.h5-gc-pill{display:inline-flex;align-items:center;gap:8px;padding:5px 20px 5px 8px;border-radius:999px;background:linear-gradient(#5f52ec,#3d2fc8);color:#fff;font:700 19px Kanit,sans-serif;text-decoration:none;box-shadow:0 4px 0 #2a1f9a,0 8px 14px rgba(60,40,200,.25)}
.h5-gc-pill img{width:40px;height:auto}
.h5-gc-title{display:flex;flex-direction:column;align-items:flex-start;margin:6px 0 0;font:800 clamp(36px,3.4vw,52px)/1.06 Kanit,sans-serif;transform:rotate(-5deg);transform-origin:left}
.h5-gc-title .l1{margin-left:34px}
.h5-gc-title .l1 i{background-image:linear-gradient(#6b5cf2,#3d2bc4)}
.h5-gc-title .l2 i{background-image:linear-gradient(#ff5fb0,#f0157a)}
.h5-gc-intro p{margin:6px 0 0 34px;color:var(--h5-navy);font:600 15px/1.35 Kanit,sans-serif}
.h5-gc-intro p::after{content:'';display:block;width:54px;height:3px;margin:6px 0 0 70px;border-radius:9px;background:#ff2f84}
.h5-pad{width:210px;height:auto;margin:-6px 0 -10px -6px}
.h5-rail{position:relative;min-width:0}
.h5-row{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 56px) / 5);gap:14px;overflow-x:auto;overflow-y:visible;scroll-snap-type:x mandatory;scrollbar-width:none;padding:16px 4px 10px;margin:-8px 0}
.h5-row::-webkit-scrollbar{display:none}
.h5-game{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 8px 14px;border-radius:22px;text-decoration:none;scroll-snap-align:start;
  background:linear-gradient(#fff,#f3f6ff);border:3px solid #fff;box-shadow:0 0 0 2px #d2dbff,0 8px 18px rgba(80,90,200,.14);transition:transform .18s,box-shadow .18s}
.h5-game:hover{transform:translateY(-4px);box-shadow:0 0 0 2px #b9c6ff,0 14px 24px rgba(80,90,200,.22)}
.h5-cover{display:block;width:100%;aspect-ratio:4/3;border-radius:16px;overflow:hidden;background:#e9e3ff;box-shadow:inset 0 0 0 1px rgba(90,60,200,.08)}
.h5-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.h5-game:hover .h5-cover img{transform:scale(1.05)}
.h5-game>b{font:700 17px/1.2 Kanit,sans-serif;color:var(--h5-navy);text-align:center;min-height:1.2em}
.h5-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 14px 4px 8px;border-radius:999px;border:2px solid #ffc4da;background:linear-gradient(#fff,#fff0f6);color:#e8266f;font:700 14px Kanit,sans-serif;box-shadow:0 3px 0 rgba(255,120,170,.25);white-space:nowrap}
.h5-badge img{height:22px;width:auto}
.h5-new{position:absolute;z-index:2;top:-14px;left:-8px;width:74px;height:auto;transform:rotate(-8deg);filter:drop-shadow(0 4px 6px rgba(200,20,70,.3))}
.h5-arrow{position:absolute;z-index:3;top:50%;width:40px;height:40px;margin-top:-20px;display:grid;place-items:center;border:0;border-radius:50%;background:#fff;color:#4d38d4;box-shadow:0 0 0 2px #d6dcff,0 6px 14px rgba(60,60,160,.2);cursor:pointer;transition:opacity .2s}
.h5-arrow svg{width:20px;height:20px}
.h5-arrow.prev{left:-14px}.h5-arrow.prev svg{transform:rotate(180deg)}
.h5-arrow.next{right:-14px}
.h5-arrow.off{opacity:0;pointer-events:none}

/* ---- coupons of the month */
.h5-coupons{display:grid;grid-template-columns:minmax(280px,330px) minmax(0,1fr) 180px;gap:16px;align-items:center;padding:18px 20px;border-radius:32px;
  background:radial-gradient(180px 150px at 90px 50%,rgba(150,175,255,.55),transparent 70%),radial-gradient(90% 120% at 0% 100%,rgba(170,140,255,.3),transparent 60%),linear-gradient(120deg,#d7e4ff,#e6dcff 48%,#d4e4ff);border:4px solid #fff;box-shadow:0 0 0 3px #d5dcff,0 10px 26px rgba(100,90,220,.16)}
.h5-coupons[hidden]{display:none}
.h5-cou-intro{display:flex;align-items:center;gap:6px}
.h5-box{width:122px;height:auto;flex:none;animation:h5-bob 4.2s ease-in-out infinite}
.h5-cou-title{display:flex;flex-direction:column;align-items:flex-start;margin:0;font:800 clamp(22px,1.9vw,31px)/1.12 Kanit,sans-serif;white-space:nowrap}
.h5-cou-title .l2{display:inline-flex;align-items:center;gap:4px}
.h5-cou-title .l1 i{background-image:linear-gradient(#ff63b3,#ee1b78)}
.h5-cou-title .l2 i{background-image:linear-gradient(#ffd44a,#ffa000)}
.h5-cou-title em{font-style:normal;color:#ffc400;font-size:.7em;text-shadow:0 0 6px #fff}
.h5-cou-intro p{margin:8px 0 0;color:var(--h5-navy);font:600 14px/1.4 Kanit,sans-serif}
.h5-cou-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.h5-coupon{--c:#ffe3ef;--b:#ffc2da;--v:#ff2f6d;position:relative;display:flex;flex-direction:column;gap:2px;padding:16px 18px 14px;border-radius:20px;background:linear-gradient(var(--c),#fff 140%);box-shadow:inset 0 0 0 3px var(--b),0 6px 14px rgba(120,80,160,.12);color:var(--h5-navy);
  -webkit-mask:radial-gradient(circle 11px at 0 64%,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 11px at 100% 64%,#0000 97%,#000) right/51% 100% no-repeat;mask:radial-gradient(circle 11px at 0 64%,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 11px at 100% 64%,#0000 97%,#000) right/51% 100% no-repeat}
.h5-coupon.gold{--c:#fff0c4;--b:#ffd66a;--v:#ff3b3b}
.h5-coupon.blue{--c:#ddebff;--b:#b7d2ff;--v:#2858f0}
.h5-ctag{position:absolute;top:6px;right:8px;width:58px;height:auto}
.h5-cval{display:flex;align-items:baseline;gap:6px;margin:0;color:var(--h5-navy)}
.h5-cval span{font:700 22px Kanit,sans-serif}
.h5-cval b{font:800 46px/1 Kanit,sans-serif;color:var(--v)}
.h5-cdesc{margin:4px 0 0;font:700 14px/1.3 Kanit,sans-serif}
.h5-ccond{font-size:12px;line-height:1.35;color:#6f6487;padding-bottom:10px;border-bottom:2px dashed rgba(60,40,120,.14)}
.h5-coupon .h5-save{align-self:center;margin-top:10px;min-width:62%}
.h5-cou-more{position:relative;display:block;justify-self:center;width:170px;text-decoration:none;transition:transform .18s}
.h5-cou-more:hover{transform:translateY(-3px)}
.h5-cou-more img{display:block;width:100%;height:auto;filter:drop-shadow(0 8px 12px rgba(90,70,200,.2))}
.h5-cou-more span{position:absolute;left:12%;right:10%;bottom:8%;height:34%;display:flex;align-items:center;justify-content:center;gap:2px;text-align:center;color:var(--h5-navy);font:700 15px/1.2 Kanit,sans-serif}
.h5-cou-more svg{width:16px;height:16px;flex:none;color:#4d38d4}

/* outlined display titles: the white outline is a copy of the text (data-t) drawn BEHIND the letters, so it can never
   cover them (works the same in every browser, unlike -webkit-text-stroke + paint-order) */
.h5-tt{position:relative;z-index:0;display:inline-block;white-space:nowrap;--ow:.2em}
.h5-tt::before{content:attr(data-t);position:absolute;left:0;top:0;z-index:-1;color:#fff;-webkit-text-stroke:var(--ow) #fff;text-shadow:0 .1em .18em rgba(80,50,170,.28);pointer-events:none}
.h5-tt>i{font-style:normal;color:#5b3fd6;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.h5-cou-title .h5-tt{--ow:.22em}
/* category grid title (19 Nov board) — same outline-behind technique, no stacked text-shadows */
.h4-title .h5-tt{--ow:.2em;text-shadow:none}
.h4-title{padding-right:86px}
.h4-title .h5-tt::before{text-shadow:0 .08em .16em rgba(110,60,200,.3)}
.h4-title .t1>i{background-image:linear-gradient(#9a62ff,#5b25cf)}
.h4-title .t2>i{background-image:linear-gradient(#ffdc55,#ffa000)}
@keyframes h5-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

/* ---- tablet */
@media (max-width:1180px){
  .h5-row{grid-auto-columns:calc((100% - 42px) / 4)}
  .h5-coupons{grid-template-columns:1fr;gap:10px}
  .h5-cou-intro{gap:14px}
  .h5-cou-more{display:none}
}
@media (max-width:1240px){
  .h5-promo{grid-template-columns:1fr}
}
/* ---- phone */
@media (max-width:760px){
  .h4-wrap>.h5-games,.h4-wrap>.h5-coupons,.h5-promo{margin:16px 0}
  .h5-promo{gap:14px}
  .h5-vip{grid-template-columns:1fr;min-height:0;padding:16px 14px 18px;gap:14px;border-radius:24px;background:url(/assets/home/v5/bg-vip.webp) center bottom/auto 120px no-repeat,linear-gradient(170deg,#0f2f7a,#0a1d57 70%)}
  .h5-vip-bun{left:auto;right:-4px;top:4px;bottom:auto;width:112px}
  .h5-perks b{white-space:normal}
  .h5-vip-main{padding-right:96px}
  .h5-vip-pill{font-size:13px;padding:3px 12px 3px 8px}.h5-vip-pill img{width:24px}
  .h5-vip-title{font-size:22px;margin:8px 0 10px}
  .h5-perks{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-right:-96px}
  .h5-perks li{flex-direction:row;text-align:left;gap:8px;padding:8px 10px;border-radius:14px;background:rgba(255,255,255,.1)}
  .h5-perks li+li{border-left:0}
  .h5-perks img{height:34px;margin:0}
  .h5-perks li>b{font-size:14.5px}
  .h5-perks li{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:8px;row-gap:0}
  .h5-perks img{grid-row:1/3}
  .h5-perks small{font-size:11.5px}
  .h5-vip-side{flex-direction:row;align-items:center;gap:10px}
  .h5-left{flex:1;padding:8px 10px 10px;border-radius:16px}
  .h5-left small{font-size:13px}.h5-left b{font-size:22px}
  .h5-vip-side .h5-btn{flex:1.2;padding:12px 10px;font-size:15px}
  .h5-invite{min-height:0;padding:18px 16px 18px;border-radius:24px}
  .h5-inv-main{max-width:none}
  .h5-inv-title{font-size:30px}
  .h5-checks{max-width:calc(100% - 96px);font-size:13.5px;padding:10px 12px}
  .h5-sticker{top:12px;right:10px;font-size:13px;padding:4px 10px}
  .h5-inv-gift{width:118px;right:0;bottom:64px}
  .h5-games{grid-template-columns:1fr;padding:16px 12px 14px;border-radius:24px;gap:4px}
  .h5-gc-intro{display:grid;grid-template-columns:1fr auto;align-items:end;padding-left:4px}
  .h5-gc-pill{grid-column:1;font-size:16px}.h5-gc-pill img{width:32px}
  .h5-gc-title{grid-column:1;font-size:34px}
  .h5-gc-intro p{grid-column:1;margin-left:28px;font-size:13.5px}
  .h5-gc-intro p::after{display:none}
  .h5-pad{grid-column:2;grid-row:1/4;width:130px;margin:0}
  .h5-row{grid-auto-columns:58%;gap:12px;padding:16px 4px 10px}
  .h5-arrow{display:none}
  .h5-game>b{font-size:15.5px}
  .h5-badge{font-size:13px}
  .h5-coupons{grid-template-columns:1fr;padding:16px 12px;border-radius:24px}
  .h5-box{width:112px}
  .h5-cou-row{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:80%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:12px 2px 6px;margin:-6px 0 0}
  .h5-cou-row::-webkit-scrollbar{display:none}
  .h5-coupon{scroll-snap-align:start}
  .h5-cou-more{display:flex;align-items:center;width:auto;justify-self:stretch;gap:10px;padding:6px 14px;border-radius:999px;background:#fff;box-shadow:0 0 0 2px #d6dcff}
  .h5-cou-more img{width:46px}
  .h5-cou-more span{position:static;height:auto;font-size:14.5px}
  .h5-cou-more span br{display:none}
}
@media (max-width:680px){
  .h4-cats-head{align-items:center}
  .h4-title{flex-direction:column;align-items:flex-start;gap:0;padding:8px 46px 9px 16px;font-size:1.32rem;line-height:1.12;white-space:nowrap}
  .h4-title img{width:42px;right:-2px}
  .h4-all{margin-top:6px}
}
@media (prefers-reduced-motion:reduce){.h5-vip-bun,.h5-inv-gift,.h5-box{animation:none}}
