/* Mobile campaign identity and compact primary controls. */
:root{--tg-brand-red:#E60012;--tg-brand-red-dark:#C80000;--tg-brand-red-text:#D00012;--tg-accent:var(--tg-brand-red);--tg-stage-charcoal:#151515;--tg-stage-black:#0B0B0B;--tg-surface:#FFFFFF;--tg-surface-soft:#EFEFEF;--tg-surface-muted:#F7F7F8;--tg-border:#D9DDE3;--tg-border-strong:#C8CDD5;--tg-text:#2A2A2A;--tg-text-muted:#667085;--tg-gold-divider:#F2C35C;--tg-promo-orange:#F36A21;--tg-success:#1C8C4A;--tg-warning:#B56A00;--tg-error:#B42318}img[src*="/brand/termgame/"]{object-fit:contain!important}

@media(max-width:620px){
 #pz-wheel>.pz-wheel-toolbar h1{display:none!important}
 #pz-wheel>.pz-wheel-toolbar{gap:4px!important;margin-bottom:4px!important;padding-bottom:4px!important}
 #pz-wheel .pz-wheel-toolbar .pz-wheel-balances{width:auto!important;order:0!important}
 #pz-wheel .pz-wheel-campaign{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:5px 8px!important;padding:4px 8px!important;align-items:center!important}
 #pz-wheel .pz-wheel-controls{display:contents!important}
 #pz-wheel .pz-wheel-controls>h2{display:block!important;order:-4!important;grid-column:1!important;margin:0!important;font-size:17px!important;line-height:1.3!important;color:var(--tg-accent)}
 #pz-wheel .pz-wheel-more-btn{order:-3!important;grid-column:2!important;width:auto!important;min-height:44px!important;padding:6px 10px!important;margin:0!important;font-size:12px!important;line-height:1.3!important;background:#241314!important;color:#ff3d4d!important;border:1px solid #8c2c34!important;border-radius:9px!important}
 #pz-wheel .pz-wheel-miniline{order:-2!important;grid-column:1/-1!important;margin:0!important;padding:3px 8px!important;min-height:0!important;line-height:1.3!important;font-size:12px!important}
 #pz-wheel .pz-wheel-visual{order:-1!important;grid-column:1/-1!important}
 #pz-wheel .pz-wheel-reference .pz-ref-frame{width:min(300px,calc(100svh - 470px),calc(100vw - 48px))!important;min-width:160px!important}
 #pz-wheel .pz-wheel-caption{display:none!important}
 #pz-wheel .pz-wheel-draw{order:1!important;grid-column:1/-1!important;gap:5px!important;margin:0!important}
 #pz-wheel .pz-wheel-consent{margin:0!important;padding:2px 0!important;min-height:38px!important;font-size:12px!important;line-height:1.35!important}
 #pz-wheel .pz-wheel-draw [type=submit]{position:static!important;min-height:48px!important;height:48px!important;margin:0!important}
 #pz-wheel .pz-wheel-result{margin:0!important;font-size:12px!important;line-height:1.4!important;max-height:34px;overflow:auto}
 #pz-wheel .pz-wheel-result:empty{display:none!important}
 #pz-wheel .pz-wheel-more{order:3!important;grid-column:1/-1!important;max-height:60svh;overflow:auto}
 #pz-wheel .pz-wheel-more[hidden]{display:none!important}
 #pz-wheel .pz-wheel-free{grid-column:1/-1!important;order:0!important}
 body:has(#pz-wheel) .pz-fx-mute{top:auto!important;bottom:calc(170px + env(safe-area-inset-bottom))!important;width:40px!important;height:40px!important;left:10px!important;right:auto!important}
}

@media(max-width:620px){#pz-wheel>.pz-wheel-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important}#pz-wheel .pz-wheel-toolbar .pz-wheel-balances{grid-column:1!important;justify-content:flex-start!important;min-width:0!important}#pz-wheel .pz-wheel-point-details{grid-column:2!important;margin:0!important}#pz-wheel .pz-wheel-member-link{grid-column:1!important;grid-row:1!important;order:0!important}}

@media(max-width:620px){#pz-wheel .pz-wheel-more .pz-fx-mute{position:static!important;display:inline-flex!important;margin:10px 0 0!important}}

/* Native modal top layer: details cover the wheel without moving the page. */
.pz-wheel-mobile-dialog:not([open]){display:none!important}
@media(max-width:620px){
 dialog.pz-wheel-mobile-dialog[open]{position:fixed!important;inset:0!important;margin:0!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;box-sizing:border-box!important;padding:0!important;border:0!important;border-radius:0!important;background:#101112!important;color:#eee!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;overscroll-behavior:contain}
 .pz-wheel-mobile-dialog::backdrop{background:#101112}
 .pz-wheel-mobile-dialog>header{flex:none;display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;border-bottom:1px solid #742c32;background:#191713}
 .pz-wheel-mobile-dialog>header h2{margin:0!important;color:var(--tg-accent);font-size:18px!important;line-height:1.4}
 .pz-wheel-mobile-dialog .pz-wheel-dialog-close{flex:none;width:44px;height:44px;min-height:44px;border:1px solid #b74a53;border-radius:10px;background:#7c121b;color:#fff;font-size:30px;line-height:1;cursor:pointer}
 .pz-wheel-mobile-dialog>.pz-wheel-more{display:flex!important;flex-direction:column;flex:1;min-height:0;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;padding:12px 14px calc(16px + env(safe-area-inset-bottom))!important;margin:0!important;border:0!important;background:#101112!important;border-radius:0!important}
 .pz-wheel-mobile-dialog .pz-wheel-prizes{order:-1;margin:0 0 12px!important;padding:0!important}
 .pz-wheel-mobile-dialog .pz-wheel-prizes h3{margin:0 0 10px;font-size:17px}
 .pz-wheel-mobile-dialog .pz-wheel-prizes ul{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;list-style:none!important;margin:0!important;padding:0!important}
 .pz-wheel-mobile-dialog .pz-wheel-prizes li{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;min-height:66px!important;padding:8px!important;margin:0!important;box-sizing:border-box;border:1px solid #52282b!important;border-radius:10px;background:#1c1a15}
 .pz-wheel-mobile-dialog .pz-wheel-prizes img{display:block!important;width:44px!important;height:48px!important;object-fit:contain!important;flex:0 0 44px!important;margin:0!important}
 .pz-wheel-mobile-dialog .pz-wheel-prizes strong{font-size:13px!important;line-height:1.4!important;overflow-wrap:anywhere;color:#ef4d5a}
 .pz-wheel-mobile-dialog .pz-fx-mute{position:static!important;align-self:flex-start;margin-top:10px}
 .pz-wheel-mobile-dialog details{padding:12px 0;border-top:1px solid #52282b}
 .pz-wheel-mobile-dialog summary{min-height:44px;display:flex;align-items:center;color:var(--tg-accent);cursor:pointer}
}

@media(max-width:620px){body dialog.pz-wheel-mobile-dialog[open]>.pz-wheel-more{display:flex!important;flex-direction:column!important}body dialog.pz-wheel-mobile-dialog[open] .pz-wheel-prizes{order:-10!important}body dialog.pz-wheel-mobile-dialog[open] .pz-wheel-more>p,body dialog.pz-wheel-mobile-dialog[open] .pz-wheel-more>details{order:0!important}}

/* สิทธิ์รายวันอยู่ข้างปุ่มหมุน ส่วนรายละเอียดอ่านในหน้ากติกา */
.pz-wheel-free-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pz-wheel-free-buttons .pz-free-line-link{display:flex;align-items:center;justify-content:center;background:#176333;border:1px solid #559769;border-radius:8px;color:white;min-height:44px;text-align:center;padding:6px}
#pz-wheel .pz-wheel-free{padding:10px 12px}
#pz-wheel .pz-wheel-free-left{margin:6px 0 0;font-size:12px}
#pz-wheel .pz-wheel-free-msg:empty{display:none}
@media(max-width:620px){
 #pz-wheel [data-free="1"] .pz-ref-frame{width:min(300px,calc(100svh - 480px),calc(100vw - 48px))!important;min-width:120px!important}
 #pz-wheel .pz-wheel-free{padding:6px 8px!important;margin:0!important}
 #pz-wheel .pz-wheel-free-buttons button,#pz-wheel .pz-free-line-link{min-height:44px!important;padding:5px!important;font-size:12px!important}
 #pz-wheel .pz-wheel-free-msg{font-size:12px;line-height:1.3;margin:4px 0;max-height:48px;overflow:auto}
}

/* จุดกลับจาก LINE ต้องเริ่มที่ขอบบนของวง ไม่ใช่หัวข้อในคอลัมน์ข้างวง */
#pz-wheel .pz-wheel-campaign{scroll-margin-top:112px}
