/* =========================================================================
   Game Hub — ล็อบบี้เกม (ธีม navy การ์ดมน ตาม mockup 2026-08-26)
     บน   = เหรียญ (พิลทอง ★) | กระดิ่งแจ้งเตือน (จุดแดง)
     กลาง = หัวเรื่องใหญ่ + ประกาย ✦ · hero FEATURED · แถวการ์ดมน
     ล่าง = แถบแท็บไอคอนสี SPOTLIGHT/ALL SLOTS/SPIN/QUESTS/CHAT/WALLET (2026-09-29: MY ZONE รวมเข้า WALLET)
            แท็บที่เลือกเป็นปุ่มสี่เหลี่ยมมนสีประจำแท็บ
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 62.5%; height: 100%; background: #0c1023; }

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  color: #fff;
  font-family: var(--font);
  font-size: 1.6rem;
  line-height: 1.5;
  background: #0c1023;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; border-style: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
::selection { background: #8b5cf6; color: #fff; }
.cleartap:active, .cleartap:focus { -webkit-tap-highlight-color: transparent; outline: none; touch-action: manipulation; }

:root {
  --font: "Kanit", "Noto Sans Thai", "Segoe UI", system-ui, sans-serif;
  /* จานสีหลักของธีม */
  --bg: #0c1023;
  --card: #151a33;
  --card-2: #1b2142;
  --line: rgba(139, 147, 184, .18);
  --mut: #8b93b8;
  --gold: #ffc93c;
  --red: #f4503e;
  --orange: #ff6a3d;
  --teal: #14b8a6;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --green: #22c55e;
  --pink: #ec4899;
  --topbar-h: 60px;
  --tabbar-h: 76px;
  --stage-w: 520px;
  /* ระบบระยะห่าง: ขอบจอ/ช่องไอเท็ม/ระยะเซกชัน — ทุกส่วนอ้างสามตัวนี้ให้เท่ากันทั้งแอป */
  --gutter: clamp(14px, 3.6vw, 18px);
  --gap: 12px;
  --section: 20px;
  --radius: 20px;
}

/* =========================================================================
   Shell
   ========================================================================= */
#app {
  position: relative;
  display: flex;
  flex-flow: column;
  width: 100%;
  max-width: var(--stage-w);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  /* ฉากหลังท้องฟ้ากลางคืน (ภาพมีดาว/เมฆในตัว) — สีพื้นสำรองไว้ระหว่างโหลด */
  background: var(--bg) url("hub-assets/bg-night.jpg") center top / cover no-repeat;
}
/* ดาวอยู่ในภาพพื้นหลังแล้ว — คงเลเยอร์ไว้เผื่อเอฟเฟกต์อนาคต */
.Sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* =========================================================================
   Top bar — เหรียญซ้าย กระดิ่งขวา
   ========================================================================= */
.TopBar {
  position: relative;
  z-index: 6;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--topbar-h);
  padding: 0 var(--gutter);
}
/* ปุ่มเปิด tutorial (มุมขวาบน) */
.HelpBtn {
  margin-left: auto; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font: inherit; font-size: 1.3rem; font-weight: 800; line-height: 1;
  background: var(--card); border: 1px solid var(--line); color: var(--gold); cursor: pointer;
}
.HelpBtn:active { transform: scale(.92); }

.CoinPill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .12s ease;
}
.CoinPill:active { transform: scale(.95); }
.CoinPill-Icon {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a3, var(--gold) 55%, #d99a10 100%);
  color: #7a5205;
  font-size: 1.5rem;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .25), inset 0 2px 3px rgba(255, 255, 255, .55);
}
.CoinPill-Value { font-size: 1.6rem; font-weight: 700; letter-spacing: .01em; }
.CoinIcon { width: 28px; height: 28px; object-fit: contain; }
.CoinIcon--lg { width: 38px; height: 38px; }
.InlineIcon { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; }

.Bell-Dot, .NavBtn-Dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ff3b30;
  border: 2px solid var(--bg);
  animation: badgePulse 1.4s ease-in-out infinite;
}
/* จุดแดงบนแท็บ: เกาะมุมขวาบนของ "ไอคอน" (อิงกึ่งกลางปุ่ม) ไม่ใช่ขอบปุ่ม */
.NavBtn-Dot { top: 4px; right: auto; left: calc(50% + 13px); }
/* จุดโบนัสบนพิลเหรียญ */
.CoinPill .Bell-Dot { top: -3px; right: -3px; }
@keyframes badgePulse { 50% { transform: scale(1.25); } }

/* =========================================================================
   หัวเรื่องหน้า + ประกาย
   ========================================================================= */
.PageHead {
  position: relative;
  text-align: center;
  margin: 4px var(--gutter) var(--section);
}
.PageHead-Title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .5);
}
.Spark { position: absolute; font-size: 1.5rem; pointer-events: none; }
.Spark--1 { left: 8%; top: -4px; color: var(--teal); }
.Spark--2 { left: 16%; bottom: -2px; color: var(--pink); font-size: 1.1rem; }
.Spark--3 { right: 9%; top: -8px; color: var(--purple); }
.Spark--4 { right: 17%; bottom: 0; color: var(--gold); font-size: 1.1rem; }

/* =========================================================================
   Stage
   ========================================================================= */
.Stage {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.Stage::-webkit-scrollbar { display: none; }
.View { padding: 10px 0 calc(var(--gutter) + 10px); }
.View[hidden] { display: none; }

.Row { margin-bottom: var(--section); }
.Row-Head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 var(--gutter);
  margin-bottom: 10px;
}
.Row-Title { font-size: 1.7rem; font-weight: 700; }
.Row-More {
  display: grid; place-items: center;
  min-width: 30px; height: 30px;
  padding: 0 10px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--mut);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
}

.Rail {
  display: flex; gap: var(--gap);
  padding: 4px var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* จุด snap ต้องเคารพระยะขอบ ไม่งั้นการ์ดในแถวที่ถูกเลื่อนจะชิดขอบจอ แนวไม่ตรงกับแถวอื่น */
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.Rail::-webkit-scrollbar { display: none; }
.Rail > * { scroll-snap-align: start; flex: none; }

/* =========================================================================
   Hero — เกมเด่นหัวหน้า SPOTLIGHT
   ========================================================================= */
.Hero {
  position: relative;
  margin: 0 var(--gutter) var(--section);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  cursor: pointer;
}
.Hero-Art { position: relative; aspect-ratio: 10 / 9; }
.Hero-Art, .Hero-Body { transition: opacity .28s ease; }
.Hero.is-fading .Hero-Art, .Hero.is-fading .Hero-Body { opacity: 0; }
.Hero-Art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.Hero-Art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 8, 30, .82) 100%);
}
.Hero-Badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 4px 14px;
  border-radius: 100px;
  background: var(--purple);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}
.Hero-Body {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  z-index: 2;
}
.Hero-Title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .8);
  margin-bottom: 12px;
}
.PlayNow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  border-radius: 100px;
  background: linear-gradient(180deg, #ff7a4d, var(--red));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(244, 80, 62, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .12s ease, filter .15s ease;
}
.PlayNow:hover { filter: brightness(1.06); }
.PlayNow:active { transform: scale(.95); }

/* =========================================================================
   Tile — การ์ดเกมมุมมน (ชื่อเกมฝังในภาพปกแล้ว)
   ========================================================================= */
.Tile {
  position: relative;
  display: block;
  width: clamp(132px, 38vw, 168px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
  transition: transform .2s ease;
}
.Tile:hover { transform: translateY(-4px); }
.Tile:active { transform: scale(.97); }
.Tile-Art { position: relative; aspect-ratio: 1; }
.Tile-Art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.Tile-Fallback {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  font-size: 4.4rem;
  background: linear-gradient(160deg, #2a2f57, #171b38);
}

/* ริบบิ้นแบบพิลสี */
.Tile-Ribbon {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 4;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .45);
}
.Tile-Ribbon--new { background: var(--teal); }
.Tile-Ribbon--hot { background: linear-gradient(180deg, #ff7a4d, var(--red)); }
.Tile-Ribbon--rush { background: linear-gradient(180deg, #a78bfa, var(--purple)); }

.Tile-Fav {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 4;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(10, 10, 26, .55);
  font-size: 1.4rem;
  color: rgba(255, 255, 255, .75);
  cursor: pointer;
  transition: transform .15s ease, color .2s ease;
}
.Tile-Fav:hover { transform: scale(1.15); }
.Tile-Fav.is-on { color: var(--pink); text-shadow: 0 0 10px rgba(236, 72, 153, .9); }

/* ม่าน COMING SOON */
.Tile--soon .Tile-Art img { filter: saturate(.5) brightness(.6); }
.Tile-Curtain {
  position: absolute; left: 0; right: 0; top: 0;
  aspect-ratio: 1;
  z-index: 1;
  display: grid; place-items: center;
  padding: 0 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(12, 16, 35, .5), rgba(12, 16, 35, .78));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .8);
}

/* =========================================================================
   ปุ่มหลัก
   ========================================================================= */
.GreenButton {
  display: inline-block;
  padding: .5em 1.7em;
  border-radius: 100px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(180deg, #4ade80, var(--green) 60%, #15803d);
  box-shadow: 0 6px 16px rgba(34, 197, 94, .4), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .12s ease, filter .2s ease;
}
.GreenButton:hover { filter: brightness(1.06); }
.GreenButton:active { transform: scale(.95); }
.GreenButton:disabled { opacity: .45; cursor: default; }
.GreenButton--sm { padding: .3em 1.1em; font-size: 1.15rem; flex: none; }

.GoldButton {
  padding: .5em 2em;
  border-radius: 100px;
  background: linear-gradient(180deg, #ffe084, var(--gold) 55%, #d99a10);
  color: #5a3c05;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 201, 60, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .12s ease;
}
.GoldButton:active { transform: scale(.96); }

.LinkButton {
  display: inline-block;
  padding: 2px 6px;
  color: var(--mut);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.LinkButton:hover { color: #fff; }

/* =========================================================================
   ALL SLOTS — ค้นหา + ชิปสี + กริด
   ========================================================================= */
.Search {
  display: flex; align-items: center; gap: 10px;
  height: 46px;
  margin: 0 var(--gutter) var(--gap);
  padding: 0 16px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.Search-Icon { flex: none; opacity: .6; font-size: 1.4rem; }
.Search input {
  width: 100%; border: 0; outline: 0; background: none;
  color: #fff; font-family: inherit; font-size: 1.45rem;
}
.Search input::placeholder { color: var(--mut); }

/* 2026-10-01: ตัวกรองประเภทเกม (ALL GAMES) — ชิปเลื่อนแนวนอนได้ถ้ามีหลายประเภท */
.KindChips { display: flex; gap: 8px; padding: 0 var(--gutter) var(--gap); overflow-x: auto; scrollbar-width: none; }
.KindChips::-webkit-scrollbar { display: none; }
.KindChip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 100px;
  background: var(--card); border: 1px solid var(--line); color: #fff;
  font-family: inherit; font-size: 1.3rem; font-weight: 700; cursor: pointer;
}
.KindChip-N { font-size: 1.1rem; font-weight: 600; color: var(--mut); }
.KindChip.is-on { background: var(--gold); border-color: var(--gold); color: #1a1405; }
.KindChip.is-on .KindChip-N { color: rgba(26, 20, 5, .7); }

.SortRow { display: flex; align-items: center; gap: 9px; padding: 0 var(--gutter) var(--gap); }
.SortRow-Label { font-size: 1.25rem; color: var(--mut); flex: none; }
.SortSelect {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-width: 132px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
}

.Grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--gap);
  padding: 0 var(--gutter);
}
.Grid .Tile { width: 100%; }

.Empty { padding: 40px 20px; text-align: center; font-size: 1.45rem; color: var(--mut); }

/* =========================================================================
   MY ZONE (อยู่ในแท็บ WALLET ใต้การ์ดรางวัล) — โปรไฟล์ / แบนเนอร์เหรียญ / การ์ดสถิติ / ภาษา
   ========================================================================= */
.Profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 var(--gutter) var(--section);
}
.Profile-Avatar {
  flex: none;
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--purple);
  background: var(--card-2);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .25), 0 8px 20px rgba(0, 0, 0, .45);
  display: grid; place-items: center;
}
.Profile-Avatar img { width: 100%; height: 100%; object-fit: cover; }
.Profile-Avatar span { font-size: 4rem; }
.Profile-Main { flex: 1; min-width: 0; }
.Profile-Name {
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.2;
  display: flex; align-items: baseline; gap: 8px;
  white-space: nowrap; overflow: hidden;
}
.Profile-Level { font-size: 1.25rem; font-weight: 600; color: var(--green); margin: 1px 0 6px; }
/* อีเมล Google ที่ผูกอยู่ (2026-09-29) */
.Profile-Email { margin: -2px 0 6px; font-size: 1.15rem; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.Profile-Email.is-guest { white-space: normal; color: #ffd28a; }
.Profile-Email .LinkButton { margin-left: 4px; font-size: 1.1rem; color: #9fc4ff; text-decoration: underline; background: none; border: 0; padding: 0; }
.Profile-XpRow { display: flex; align-items: center; gap: 10px; }
.Profile-XpRow .XpBar { flex: 1; margin: 0; }
.Profile-Xp { flex: none; font-size: 1.1rem; color: var(--mut); white-space: nowrap; }

.XpBar {
  position: relative; height: 10px; margin-top: 10px;
  border-radius: 100px; background: rgba(139, 147, 184, .2); overflow: hidden;
}
.XpBar i {
  position: absolute; inset: 0 auto 0 0;
  border-radius: 100px;
  background: linear-gradient(90deg, #4ade80, var(--green));
  box-shadow: 0 0 8px rgba(34, 197, 94, .6);
  transition: width .5s ease;
}
.XpBar--gold i { background: linear-gradient(90deg, #ffe084, var(--gold)); box-shadow: 0 0 8px rgba(255, 201, 60, .6); }

.CoinBanner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 var(--gutter) var(--gap);
  padding: 18px var(--gutter);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 120% at 85% 20%, rgba(236, 72, 153, .35), transparent 60%),
    linear-gradient(120deg, #6d28d9, #4c1d95 70%);
  box-shadow: 0 10px 24px rgba(76, 29, 149, .45);
  overflow: hidden;
}
.CoinBanner::after {
  content: "✦";
  position: absolute; right: 14px; top: 8px;
  color: rgba(255, 255, 255, .5); font-size: 1.3rem;
}
.CoinBanner-Main { position: relative; z-index: 1; }
.CoinBanner-Amount { display: flex; align-items: center; gap: 10px; font-size: 3rem; font-weight: 800; }
.CoinBanner-Note { font-size: 1.1rem; color: rgba(255, 255, 255, .75); margin-top: 2px; max-width: 70%; }
.CoinBanner-Art {
  position: absolute;
  right: 4px; bottom: -6px;
  width: 104px; height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35));
  pointer-events: none;
}

.StatGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: 0 var(--gutter) var(--section);
}
.StatCard {
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
}
.StatCard-Icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  margin: 0 auto 8px;
  border-radius: 12px;
  font-size: 1.9rem;
}
.StatCard-Icon img { width: 28px; height: 28px; object-fit: contain; }
.StatCard--green .StatCard-Icon { background: rgba(34, 197, 94, .18); }
.StatCard--purple .StatCard-Icon { background: rgba(139, 92, 246, .18); }
.StatCard--blue .StatCard-Icon { background: rgba(59, 130, 246, .18); }
.StatCard-Value { font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.StatCard-Label { font-size: 1.05rem; color: var(--mut); margin-top: 2px; }

.LangSeg {
  display: flex;
  gap: 4px;
  margin: 0 var(--gutter) var(--section);
  padding: 5px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--line);
}
.LangSeg .Seg-Btn { border-radius: 100px; }

.FavSlot {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 2px dashed rgba(139, 147, 184, .4);
  background: rgba(21, 26, 51, .5);
  color: var(--mut);
  font-size: 3rem;
  line-height: 1;
}
.FavSlot span { display: block; font-size: 1.05rem; margin-top: 6px; opacity: .85; }

.Panel {
  margin: 0 var(--gutter) var(--gap);
  padding: var(--gutter);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.Panel--center { text-align: center; }
.Panel-Label {
  font-size: 1.1rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mut);
}
.Panel-Value { font-size: 2.6rem; font-weight: 800; line-height: 1.2; }
.Panel-Row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.Panel-Note { margin-top: 6px; font-size: 1.2rem; color: var(--mut); line-height: 1.5; }

.Mascot {
  display: block;
  width: min(46%, 170px);
  margin: 6px auto 0;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .5));
  animation: floatMascot 5.5s ease-in-out infinite alternate;
}
@keyframes floatMascot { to { transform: translateY(-10px); } }

.ZoneHead {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 var(--gutter) var(--gap);
  font-size: 1.5rem;
  font-weight: 700;
}
.ZoneHead b { color: var(--mut); font-weight: 600; }

/* =========================================================================
   Bottom bar — 5 แท็บไอคอนสี
   ========================================================================= */
.TabBar {
  position: relative;
  z-index: 6;
  flex: none;
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: var(--tabbar-h);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #10142b;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .45);
}
.NavBtn {
  position: relative;
  flex: 1;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 14px;
  cursor: pointer;
  color: var(--mut);
  transition: background .2s ease, color .2s ease, transform .12s ease;
}
.NavBtn:active { transform: scale(.94); }
.NavBtn-Icon { font-size: 1.9rem; line-height: 1; filter: grayscale(.4) brightness(.9); }
.NavBtn-Img {
  width: 34px; height: 34px;
  margin: 0 auto;                     /* กึ่งกลางแนวนอนเป๊ะ */
  object-fit: contain;
  filter: saturate(.55) brightness(.8);
  transition: filter .2s ease, transform .2s ease;
}
.NavBtn-Label { font-size: .85rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.NavBtn.is-active { color: #fff; }
.NavBtn.is-active .NavBtn-Icon { filter: none; }
.NavBtn.is-active .NavBtn-Img { filter: none; transform: scale(1.08); }
.NavBtn--spotlight.is-active { background: linear-gradient(180deg, #ff6a55, var(--red)); box-shadow: 0 6px 16px rgba(244, 80, 62, .4); }
.NavBtn--wallet.is-active { background: linear-gradient(180deg, #4a63ff, #2a3be0); box-shadow: 0 6px 16px rgba(58, 80, 240, .45); }
/* ไอคอน WALLET = gem-reward.png (รอบ 7) — รูป 128px มีขอบว่าง (เนื้อภาพ 86% ของกรอบ vs ไอคอนเมนูอื่น ~90%) → ขยาย 5% ให้ขนาดเท่ากัน */
.NavBtn-Img--wallet { }   /* money.png ตัดขอบแล้ว 96px ขนาดเท่าไอคอนเมนูอื่น — ใช้ scale ปกติของ .NavBtn */
.NavBtn--allslots.is-active { background: linear-gradient(180deg, #a78bfa, var(--purple)); box-shadow: 0 6px 16px rgba(139, 92, 246, .4); }
.NavBtn--store.is-active { background: linear-gradient(180deg, #4ade80, var(--green)); box-shadow: 0 6px 16px rgba(34, 197, 94, .4); }
.NavBtn--quests.is-active { background: linear-gradient(180deg, #ffd166, #e8a615); box-shadow: 0 6px 16px rgba(255, 201, 60, .4); color: #4a3202; }

/* =========================================================================
   Sheet (เหรียญฟรี) / welcome / toast / curtain
   ========================================================================= */
.Sheet { position: fixed; inset: 0; z-index: 40; }
.Sheet[hidden] { display: none; }
.Sheet-Backdrop { position: absolute; inset: 0; background: rgba(5, 7, 18, .78); animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.Sheet-Panel {
  position: absolute;
  left: 50%; bottom: 0;
  width: 100%; max-width: var(--stage-w);
  max-height: 82dvh;
  overflow-y: auto;
  padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #1d2342, #11152c);
  border: 1px solid var(--line);
  border-bottom: 0;
  animation: sheetUp .3s cubic-bezier(.2, 1, .3, 1);
}
@keyframes sheetUp { from { transform: translate(-50%, 40px); opacity: 0; } }
.Sheet-Close {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(139, 147, 184, .15);
  color: var(--mut);
  cursor: pointer;
}
.Sheet-Title { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.Sheet-Note { font-size: 1.2rem; color: var(--mut); margin-bottom: 14px; line-height: 1.5; }
.Sheet-Body { display: flex; flex-flow: column; gap: 10px; }

.PackRow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 15px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.PackRow.is-locked { opacity: .5; }
.PackRow-Left { display: flex; align-items: center; gap: 12px; }
.PackRow-Coin {
  flex: none;
  width: 42px; height: 42px;
  background: url("hub-assets/icons/coin-star.png") center / contain no-repeat;
}
.PackRow-Amount { font-size: 1.7rem; font-weight: 800; }
.PackRow-Sub { font-size: 1.1rem; color: var(--mut); }

/* ---------- Tutorial แบบกดตามจริง (ไฮไลต์ปุ่มจริง + มือชี้) ---------- */
/* ตัวคลุมต้องไม่กินคลิก — ไม่งั้นช่องเจาะจะแตะปุ่มจริงไม่ได้ (ลูก ๆ เปิด pointer-events เอง) */
.Coach { position: fixed; inset: 0; z-index: 48; pointer-events: none; }
.Coach[hidden] { display: none; }
.Coach-Shade { position: fixed; background: rgba(5, 7, 18, .82); pointer-events: auto; }
.Coach-Bubble, .Coach-Skip, .Coach-Foot { pointer-events: auto; }
/* โล่กันแตะรัวช่วงเปลี่ยนขั้น — บังทั้งจอชั่วครู่ให้ผู้เล่นเริ่มอ่านก่อน */
.Coach-Guard { position: fixed; inset: 0; pointer-events: auto; }
.Coach-Guard[hidden] { display: none; }
.Coach-Ring {
  position: fixed; display: none; border-radius: 16px; pointer-events: none;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 201, 60, .28), 0 0 24px rgba(255, 201, 60, .55);
  animation: coachPulse 1.4s ease-in-out infinite;
}
@keyframes coachPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 201, 60, .28), 0 0 24px rgba(255, 201, 60, .55); }
  50%      { box-shadow: 0 0 0 9px rgba(255, 201, 60, .12), 0 0 34px rgba(255, 201, 60, .75); }
}
.Coach-Hand {
  position: fixed; display: none; font-size: 34px; line-height: 1; pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6));
  animation: coachHand .75s ease-in-out infinite alternate;
}
@keyframes coachHand { from { margin-top: 0; } to { margin-top: 9px; } }
.Coach-Bubble {
  position: fixed;   /* ตำแหน่ง left/top คำนวณสดจาก JS ให้เกาะปุ่มเป้าหมาย */
  width: min(88vw, 350px);
  padding: 18px 18px 14px; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, #241a4f, #151032 75%);
  border: 1px solid rgba(139, 92, 246, .6);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .65), inset 0 0 34px rgba(139, 92, 246, .1);
}
.Coach-Skip {
  position: absolute; top: 8px; right: 12px;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--mut);
  background: none; border: 0; cursor: pointer; padding: 4px 6px;
}
.Coach-Title { margin: 0 14px 7px; font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.Coach-Body { margin: 0 0 12px; font-size: 1.14rem; line-height: 1.55; color: #cbd2e8; }
.Coach-Body b { color: var(--gold); }
.Coach-Foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.Coach-StepNo { font-size: 1rem; font-weight: 700; color: var(--mut); letter-spacing: .06em; }
.Coach-Foot .GoldButton { flex: 1; }
.Coach-Foot .GoldButton[style*="display: none"] + * { margin-left: auto; }

.Welcome { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; }
.Welcome[hidden] { display: none; }
.Welcome-Backdrop { position: absolute; inset: 0; background: rgba(5, 7, 18, .82); }
.Welcome-Panel {
  position: relative;
  width: min(88%, 340px);
  padding: 24px 20px 26px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 246, .3), transparent 62%),
    linear-gradient(180deg, #232a52, #141834);
  border: 1px solid rgba(139, 92, 246, .5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .7);
  animation: popIn .4s cubic-bezier(.2, 1.1, .3, 1);
}
@keyframes popIn { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.Welcome-Kicker { font-size: 1.4rem; color: var(--mut); }
.Welcome-Brand {
  font-size: 3rem; font-weight: 800; line-height: 1.1;
  text-shadow: 0 4px 14px rgba(139, 92, 246, .5);
}
.Welcome-Coin {
  display: block;
  width: 64px; height: 64px;
  margin: 12px auto 6px;
  background: url("hub-assets/icons/coin-star.png") center / contain no-repeat;
  filter: drop-shadow(0 0 22px rgba(255, 201, 60, .55));
}
.Welcome-Amount {
  font-size: 3.4rem; font-weight: 800; line-height: 1.1;
  text-shadow: 0 4px 16px rgba(255, 201, 60, .55);
}
.Welcome-Sub { margin: 2px 0 16px; font-size: 1.25rem; color: var(--mut); }

.Award-Rank {
  display: inline-block;
  margin: 6px 0 0;
  padding: 4px 16px;
  border-radius: 100px;
  border: 1px solid var(--gold);
  background: rgba(255, 201, 60, .12);
  color: var(--gold);
  font-size: 1.25rem; font-weight: 700;
}
.Award-Note { margin: 0 0 16px; font-size: 1.1rem; line-height: 1.5; color: var(--mut); }
.Award .LinkButton { margin-top: 10px; }
.Award--coin .Gem--xl {
  clip-path: none; box-shadow: none;
  background: url("hub-assets/icons/coin-star.png") center / contain no-repeat;
  filter: drop-shadow(0 0 22px rgba(255, 201, 60, .55));
}

.Ask-Title { margin: 0 0 8px; font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.Ask-Body { margin: 0 0 18px; font-size: 1.25rem; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.Ask-Body small { display: block; margin-top: 8px; font-size: 1.05rem; color: var(--mut); }
.Ask .LinkButton { margin-top: 10px; }

#curtain {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-flow: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.loaded #curtain { opacity: 0; visibility: hidden; pointer-events: none; }
.Curtain-Bar { width: min(60%, 240px); height: 8px; border-radius: 100px; background: rgba(139, 147, 184, .2); overflow: hidden; }
.Curtain-Bar i {
  display: block; width: 0; height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #4ade80, var(--green));
  box-shadow: 0 0 10px rgba(34, 197, 94, .8);
  animation: loadBar 1.4s ease-out forwards;
}
@keyframes loadBar { to { width: 100%; } }
.Curtain-Text { font-size: 1.3rem; color: var(--mut); }

.Logo {
  display: inline-flex; flex-flow: column; align-items: center; justify-content: center;
  aspect-ratio: 1; overflow: hidden; border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #ffe9a3 0%, var(--gold) 30%, #d99a10 60%, #8a5f0a 85%, #ffe084 100%);
  box-shadow: 0 0 0 2px rgba(255, 224, 132, .5), 0 8px 24px rgba(0, 0, 0, .6),
    inset 0 -6px 12px rgba(0, 0, 0, .28), inset 0 4px 8px rgba(255, 255, 255, .55);
  color: #5a3c05; font-weight: 700; line-height: 1;
}
.Logo--xl { width: 116px; font-size: 116px; animation: scaleIn 1.6s infinite alternate; }
@keyframes scaleIn { to { transform: scale(1.08); } }
.Logo-Mark { font-size: .4em; letter-spacing: .02em; text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.Logo-Sub { margin-top: .1em; font-size: .11em; font-weight: 600; letter-spacing: .12em; opacity: .85; }

.Toast {
  position: fixed;
  left: 50%; bottom: calc(var(--tabbar-h) + 16px);
  z-index: 50;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(16, 20, 43, .97);
  color: #fff;
  font-size: 1.3rem; font-weight: 600; white-space: nowrap;
  transform: translate(-50%, 16px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
}
.Toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================================
   จอกว้าง — คงคอลัมน์แนวตั้ง
   ========================================================================= */
@media (min-width: 900px) {
  html {
    background:
      radial-gradient(60% 40% at 50% 0%, rgba(139, 92, 246, .2), transparent 70%),
      linear-gradient(180deg, #12173a, #0a0d1e 60%);
  }
  body { background: none; }
  #app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .7); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================================
   QUESTS — เควส / แต้ม / อันดับ / แลกรางวัล (shared/quests.js)
   ========================================================================= */
/* ไอคอนแต้ม — เหรียญม่วง = แต้มเควสรายสัปดาห์ · เหรียญรางวัลทอง = แต้มรางวัล (แลกได้) */
.Gem {
  width: 22px; height: 22px;
  flex: none;
  background: url("hub-assets/icons/gem-quest.png") center/contain no-repeat;
  filter: drop-shadow(0 1px 3px rgba(139, 92, 246, .45));
}
.Gem--reward { background-image: url("hub-assets/icons/gem-reward.png"); filter: drop-shadow(0 1px 3px rgba(255, 201, 60, .45)); }
.Gem--inline { display: inline-block; width: 26px; height: 26px; vertical-align: -3px; margin-right: 4px; }
.Gem--tiny { display: inline-block; width: 18px; height: 18px; vertical-align: -2px; margin-right: 3px; }
.Gem--xl { display: block; width: 64px; height: 64px; margin: 12px auto 4px; }

.QHead .Panel-Row { align-items: flex-start; }
.QHead-Who { min-width: 0; flex: 1; }
.QHead-Name { display: flex; align-items: center; gap: 8px; font-size: 1.7rem; font-weight: 700; line-height: 1.3; min-width: 0; }
.QHead-Name .is-guest { color: var(--mut); }
.QHead-Total { text-align: right; }
.NameForm { display: flex; gap: 6px; align-items: center; }
.NameInput {
  flex: 1; min-width: 0;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 35, .6);
  color: #fff; font: inherit; font-size: 1.3rem;
  outline: none;
}
.NameInput:focus { border-color: var(--purple); }

.QStats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-top: 12px;
}
.QStat {
  padding: 7px 4px;
  border-radius: 12px;
  background: rgba(12, 16, 35, .55);
  text-align: center;
}
.QStat b { display: block; font-size: 1.4rem; }
.QStat span { font-size: .95rem; color: var(--mut); }

.Seg {
  display: flex; gap: 4px;
  margin: 0 var(--gutter) var(--gap);
  padding: 4px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--line);
}
.Seg-Btn {
  flex: 1; padding: 7px 0;
  border-radius: 100px;
  font-size: 1.25rem; font-weight: 600;
  color: var(--mut);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.Seg-Btn.is-on { background: var(--purple); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(139, 92, 246, .4); }
/* แท็บย่อยในหน้าอันดับ: แต้มเควส / เศรษฐีเหรียญ (2026-09-16) */
.Seg--sub { margin-top: -2px; background: rgba(255, 255, 255, .04); }
.Seg--sub .Seg-Btn { padding: 6px 0; font-size: 1.15rem; }
.Board-Pts--coin { color: var(--gold); }

.QuestList { margin: 0 var(--gutter) 6px; display: flex; flex-flow: column; gap: 8px; }
.Quest {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.Quest.is-done { opacity: .55; }
.Quest-Main { flex: 1; min-width: 0; }
.Quest-Head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.Quest-Title { font-size: 1.35rem; font-weight: 700; }
.Quest-Pts {
  flex: none;
  padding: 1px 9px;
  border-radius: 100px;
  background: rgba(139, 92, 246, .18);
  color: #c4b5fd;
  font-size: 1.1rem; font-weight: 700;
}
.Quest.is-done .Quest-Pts { background: rgba(34, 197, 94, .18); color: #86efac; }
.Quest-Sub { margin-top: 2px; font-size: 1.05rem; color: var(--mut); line-height: 1.35; }
.Quest-Bar {
  position: relative; height: 14px; margin-top: 7px;
  border-radius: 100px; background: rgba(12, 16, 35, .7); overflow: hidden;
}
.Quest-Bar i {
  position: absolute; inset: 0 auto 0 0;
  border-radius: 100px;
  background: linear-gradient(90deg, #a78bfa, var(--purple));
  transition: width .5s ease;
}
.Quest-Bar span {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: .95rem; font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
}
.QFoot { margin: 6px var(--gutter) 10px; text-align: center; font-size: 1.05rem; }
/* การ์ดแลกเหรียญ → แต้มเควส (2026-11-02) บนสุดของแท็บเควส · โทนทองให้ต่างจากเควสม่วง */
.QuestList--coinx { margin-top: 10px; margin-bottom: 10px; }
.Quest--coinx { border-color: rgba(250, 204, 21, .45); background: linear-gradient(135deg, rgba(250, 204, 21, .12), rgba(255, 255, 255, .02)) , var(--card); }
.Quest--coinx .Quest-Pts { background: rgba(250, 204, 21, .18); color: #fde68a; }
.Quest--coinx .Quest-Bar i { background: linear-gradient(90deg, #fde68a, #f59e0b); }
.Quest--coinx .Quest-Sub b { color: #fde68a; }

/* Illustrated coin exchange panel — live amounts and exchange logic unchanged. */
.Quest.Quest--coinx {
  position: relative; min-height: 132px; gap: 12px;
  padding: 22px 18px 22px 20%; border: 0; border-radius: 22px;
  background: url('hub-assets/coin-exchange-panel-20261102.png') center / 100% 100% no-repeat;
  box-shadow: 0 8px 24px #05031540;
}
.Quest--coinx .Quest-Head { align-items: flex-start; gap: 8px; }
.Quest--coinx .Quest-Title { color: #fff2ca; font-size: 1.4rem; line-height: 1.45; text-shadow: 0 1px 3px #0008; }
.Quest--coinx .Quest-Pts { padding: 3px 8px; border: 1px solid #eaca7580; background: #65451d88; color: #ffe7a0; font-size: 1.1rem; line-height: 1.35; }
.Quest--coinx .Quest-Sub { color: #d4d9ef; font-size: 1.08rem; line-height: 1.6; margin-top: 5px; }
.Quest--coinx .Quest-Bar { height: 19px; margin-top: 10px; border: 1px solid #e6c07380; background: #080e20bd; box-shadow: inset 0 2px 4px #0008; }
.Quest--coinx .Quest-Bar i { background: linear-gradient(180deg,#ffeaaa,#eab346 55%,#c57b15); box-shadow: inset 0 1px 0 #fff5c9; }
.Quest--coinx .Quest-Bar span { color: #fff; font-size: 1rem; font-weight: 800; text-shadow: 0 1px 2px #342000,0 0 3px #342000; }
.Quest--coinx .GreenButton { flex: none; min-width: 60px; min-height: 40px; padding: 9px 14px; border: 1px solid #aaffd6; border-radius: 13px; background: linear-gradient(180deg,#65f6b4,#14bd74 55%,#079157); color: #fff; font-size: 1.3rem; text-shadow: 0 1px 2px #075e3b; box-shadow: inset 0 1px 0 #e0ffddaa,0 3px 0 #055338,0 0 18px #39df9c30; }
.Quest--coinx #coinx-go:not(:disabled) { animation: coinxReadyGlow 2.4s ease-in-out infinite; }
.Quest--coinx .GreenButton:disabled { animation: none; opacity: .5; filter: saturate(.35); cursor: not-allowed; box-shadow: none; }
.Quest--coinx .GreenButton:focus-visible { outline: 2px solid #fff0b2; outline-offset: 3px; }
.Quest--coinx .Coinx-Btns { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.Quest--coinx .Coinx-All { min-height: 32px; padding: 6px 10px; font-size: 1.05rem; border-color: #ffe7a0; background: linear-gradient(180deg,#ffe48a,#e6a92c 55%,#b97412); text-shadow: 0 1px 2px #5a3a06; box-shadow: inset 0 1px 0 #fff5c9,0 3px 0 #6b4308; }
@keyframes coinxReadyGlow { 0%,100% { box-shadow: inset 0 1px 0 #e0ffddaa,0 3px 0 #055338,0 0 9px #39df9c25; } 50% { box-shadow: inset 0 1px 0 #e0ffddaa,0 3px 0 #055338,0 0 20px #39df9c70; } }
@media(max-width:380px) { .Quest.Quest--coinx { flex-direction: column; align-items: stretch; padding-top: 20px; padding-bottom: 20px; gap: 9px; } .Quest--coinx .GreenButton, .Quest--coinx .Coinx-Btns { align-self: flex-end; } .Quest--coinx .Coinx-Btns { flex-direction: row; } }
@media(prefers-reduced-motion:reduce) { .Quest--coinx #coinx-go:not(:disabled) { animation: none; } .Quest--coinx .Quest-Bar i { transition: none; } }

.Board { margin: 0 var(--gutter) 6px; display: flex; flex-flow: column; gap: 5px; }
.Board-Row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.Board-Row.is-me { border-color: rgba(139, 92, 246, .6); background: rgba(139, 92, 246, .12); }
.Board-Row.is-top1 { border-color: rgba(255, 201, 60, .55); }
.Board-Row.is-top2 { border-color: rgba(203, 213, 225, .45); }
.Board-Row.is-top3 { border-color: rgba(217, 119, 6, .45); }
.Board-Row.is-out { margin-top: 6px; border-style: dashed; }
.Board-Rank { flex: none; width: 34px; text-align: center; font-size: 1.35rem; font-weight: 700; }
.Board-Name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.3rem; }
.Board-Name small { color: var(--mut); font-size: 1.05rem; }
.Board-Prize { display: block; color: var(--gold); font-size: 1rem; }
.Board-Pts { flex: none; font-size: 1.3rem; font-weight: 700; color: #c4b5fd; }

.RewardList { margin: 0 var(--gutter) 6px; display: flex; flex-flow: column; gap: 8px; }
.Reward {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.Reward.is-locked { opacity: .6; }
.Reward-Icon { flex: none; font-size: 2.2rem; }
.Reward-Icon img { width: 38px; height: 38px; object-fit: contain; display: block; }
.Reward-Main { flex: 1; min-width: 0; }
.Reward-Title { font-size: 1.35rem; font-weight: 700; }
.Reward-Sub { font-size: 1.05rem; color: var(--mut); line-height: 1.35; }
.Reward-Side { flex: none; text-align: right; display: flex; flex-flow: column; align-items: flex-end; gap: 4px; }
.Reward-Cost { font-size: 1.15rem; font-weight: 700; color: var(--gold); }
.Reward-Why { font-size: 1rem; color: var(--mut); }

/* ---------- แคตตาล็อกกิฟการ์ด v2: เลือกประเภท → ประเทศ → ราคา ---------- */
.RewardCatalog { margin-bottom: 6px; }
/* ทุกประเภทอยู่แถวเดียวกัน (3 คอลัมน์เท่า ๆ กัน) */
.RwTypes { margin: 0 var(--gutter) 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.RwType {
  display: flex; flex-flow: column; align-items: center; justify-content: center; gap: 1px;
  padding: 9px 5px; border-radius: 14px; text-align: center;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  font: inherit; cursor: pointer; min-width: 0;
}
.RwType:active { transform: scale(.97); }
/* ยังไม่ผูกบัญชี — การ์ดหรี่ลง มีแม่กุญแจ กดแล้วเด้งเตือนให้ผูกบัญชี */
.RwType.is-locked { opacity: .55; }
.RwType.is-locked .RwType-From { color: var(--mut); }
.RwType-Lock { font-size: 1.05rem; }
.RwType-Logo {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  font-size: 1.7rem; font-weight: 800; margin-bottom: 3px; color: #fff; overflow: hidden;
}
.RwType-Logo--sm { width: 26px; height: 26px; border-radius: 8px; font-size: 1.1rem; margin: 0 8px 0 0; }
/* โลโก้แบรนด์จริง (hub-assets/icons) — พื้นขาวของไอคอนกลืนกับการ์ดด้วยมุมโค้ง */
.RwLogo--gp, .RwLogo--tm, .RwLogo--pp {
  font-size: 0; background-repeat: no-repeat;
  background-position: center; background-size: 100% 100%;   /* ไอคอนมีแผ่นขาวมุมมนมาในตัวแล้ว */
}
.RwLogo--gp { background-image: url("hub-assets/icons/brand-googleplay.png"); }
.RwLogo--tm { background-image: url("hub-assets/icons/brand-truemoney.png"); }
.RwLogo--pp { background-image: url("hub-assets/icons/brand-paypal.png"); }
.RwType-Name { font-size: 1.08rem; font-weight: 800; line-height: 1.2; }
.RwType-From { font-size: .88rem; color: var(--gold); font-weight: 600; margin-top: 2px; }

/* ---------- หน้าเลือกจำนวน: หัวเรื่อง + ยอดแต้ม ---------- */
.RwTop { margin: 2px var(--gutter) 12px; display: flex; align-items: center; gap: 9px; }
.RwBackRound {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; font: inherit; font-size: 1.6rem; font-weight: 700; line-height: 1;
  background: transparent; border: 1px solid rgba(139, 92, 246, .5); color: var(--ink); cursor: pointer; padding-bottom: 3px;
}
.RwBackRound:active { transform: scale(.94); }
.RwTop .RwType-Logo--sm { flex: none; width: 36px; height: 36px; border-radius: 10px; margin: 0; }
.RwTop-Text { flex: 1; min-width: 0; display: flex; flex-flow: column; line-height: 1.2; }
.RwTop-Title { font-size: 1.32rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.RwTop-Sub { font-size: .95rem; color: var(--mut); }
.RwTop-Bal {
  flex: none; display: inline-flex; align-items: center; gap: 2px;
  padding: 6px 13px; border-radius: 100px; font-size: 1.18rem; font-weight: 800; color: var(--gold);
  background: rgba(255, 201, 60, .1); border: 1px solid rgba(139, 92, 246, .55);
}
.RwTop-Bal small { font-size: .92rem; font-weight: 600; color: var(--mut); margin-left: 2px; }
.RwTop-Bal .Gem--inline { width: 20px; height: 20px; margin-right: 3px; }

/* ---------- เลือกภูมิภาค (ดรอปดาวน์) ---------- */
.RwRegionBox { margin: 0 var(--gutter) 10px; }
.RwRegionSel {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 15px; border-radius: 14px; font: inherit; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid rgba(139, 92, 246, .45); color: var(--ink);
}
.RwRegionSel-Main { display: flex; flex-flow: column; gap: 2px; min-width: 0; }
.RwRegionSel-Label { font-size: .88rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #a5b4fc; }
.RwRegionSel-Val { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 800; }
.RwRegionSel-Flag { font-size: 1.35rem; }
.RwRegionSel-Caret { flex: none; font-size: 1.5rem; color: var(--mut); transition: transform .18s; line-height: 1; }
.RwRegionBox.is-open .RwRegionSel-Caret { transform: rotate(180deg); }
.RwRegionBox.is-open .RwRegionSel { border-color: rgba(139, 92, 246, .8); border-radius: 14px 14px 0 0; }
.RwRegionList {
  max-height: 240px; overflow-y: auto; display: flex; flex-flow: column;
  border: 1px solid rgba(139, 92, 246, .45); border-top: 0; border-radius: 0 0 14px 14px; background: var(--card);
}
.RwRegionItem {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; cursor: pointer;
  padding: 10px 15px; font: inherit; font-size: 1.12rem; font-weight: 600;
  background: transparent; border: 0; border-top: 1px solid rgba(255, 255, 255, .07); color: var(--ink);
}
.RwRegionItem.is-on { color: var(--gold); background: rgba(255, 201, 60, .09); }
.RwRegionItem-Tick { margin-left: auto; }

/* กล่องเตือนภูมิภาค */
.RwWarn {
  margin: 0 var(--gutter) 14px; display: flex; gap: 9px; align-items: flex-start;
  padding: 11px 14px; border-radius: 12px; font-size: 1.05rem; line-height: 1.45; color: #fcd34d;
  background: rgba(120, 78, 8, .18); border: 1px solid rgba(251, 191, 36, .5);
}

/* ---------- หัวข้อเลือกจำนวน ---------- */
.RwPick { margin: 0 var(--gutter) 10px; }
.RwPick-Title { margin: 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -.01em; }
.RwPick-Sub { margin: 2px 0 0; font-size: 1.05rem; color: var(--mut); }

/* ---------- การ์ดราคา ---------- */
.RwGrid { margin: 0 var(--gutter) 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.RwCard {
  display: flex; flex-flow: column; align-items: center; justify-content: center; gap: 7px;
  padding: 16px 10px 14px; border-radius: 16px; text-align: center;
  background: var(--card); border: 1px solid rgba(139, 92, 246, .35);
}
.RwCard.is-locked { background: rgba(255, 255, 255, .02); border-color: var(--line); }
.RwCard-Amt { font-size: 2.3rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.RwCard-Amt small { font-size: 1.05rem; color: #a5b4fc; font-weight: 700; margin-left: 4px; }
.RwCard.is-locked .RwCard-Amt { color: #7c839c; }
.RwCard.is-locked .RwCard-Amt small { color: #6b7280; }
.RwCard-Pts { display: flex; align-items: center; font-size: 1.25rem; font-weight: 800; color: var(--gold); }
.RwCard-Pts small { font-size: .92rem; font-weight: 600; color: var(--mut); margin-left: 3px; }
.RwCard.is-locked .RwCard-Pts { color: #a08a52; }
.RwCard.is-locked .Gem--reward { filter: grayscale(.45) opacity(.75); }
.RwCard-Why { font-size: .98rem; color: var(--mut); min-height: 34px; display: grid; place-items: center; }
.RwCard-Need { font-size: .98rem; color: var(--mut); font-weight: 600; }
/* ปุ่มแลกเต็มความกว้างการ์ด */
.RwBuy {
  width: 100%; margin-top: 3px; padding: 11px 8px; border-radius: 100px; cursor: pointer;
  font: inherit; font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; border: 0; background: linear-gradient(180deg, #4ade80, #22a54a);
  box-shadow: 0 3px 0 #157a34, 0 0 14px rgba(74, 222, 128, .45);
}
.RwBuy:active { transform: translateY(2px); box-shadow: 0 1px 0 #157a34, 0 0 10px rgba(74, 222, 128, .35); }
.RwBuy--link { background: linear-gradient(180deg, #60a5fa, #2563eb); box-shadow: 0 3px 0 #1d4ed8, 0 0 14px rgba(96, 165, 250, .4); text-transform: none; letter-spacing: 0; }
/* แถบความคืบหน้าของการ์ดที่แต้มยังไม่พอ */
.RwProg { width: 100%; height: 7px; border-radius: 100px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 4px; }
.RwProg i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.RewardAcct-Title { font-size: 1.45rem; font-weight: 700; margin-top: 2px; }
.RewardAcct-Email { font-size: 1.35rem; font-weight: 600; margin-top: 2px; word-break: break-all; }
.RewardAcct-Err { color: #fca5a5; }
.RewardWallet-Quest { font-size: 1.6rem; font-weight: 700; color: #c4b5fd; }
.RewardWallet-Quest small { font-size: 1.05rem; color: var(--mut); font-weight: 500; }

/* ประกาศเปิดระบบแลกรางวัล */
.RewardNotice {
  border-color: rgba(255, 201, 60, .55);
  background: linear-gradient(180deg, rgba(64, 46, 8, .9), rgba(38, 27, 6, .92));
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45), inset 0 0 24px rgba(255, 201, 60, .1);
}
.RewardNotice-Head { font-size: 1.35rem; font-weight: 700; color: var(--gold); line-height: 1.45; }
.RewardNotice .Panel-Note { margin-top: 6px; }

.Redeem-Row .Redeem-Status { flex: none; font-size: 1.05rem; color: var(--mut); }
.Redeem-Row.is-sent .Redeem-Status { color: #86efac; }
/* ช่องกรอกอีเมล PayPal ในกล่องยืนยันการแลก */
.PpDest { display: block; margin-top: 12px; text-align: left; }
.PpDest label { display: block; font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.PpDest input {
  width: 100%; padding: 10px 12px; border-radius: 10px; font: inherit; font-size: 1.15rem;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .35); color: var(--ink);
}
.PpDest input:focus { outline: none; border-color: #60a5fa; }
.PpDest small { display: block; margin-top: 6px; color: #fcd34d; font-size: .98rem; line-height: 1.4; }

/* โค้ดกิฟการ์ดที่แอดมินส่งมา — เลือกก๊อปได้ทั้งก้อน / เป็นลิงก์กดเปิดได้ */
.Redeem-Code { display: inline-block; max-width: 46vw; padding: 1px 8px; border: 1px dashed rgba(134,239,172,.5); border-radius: 6px; background: rgba(0,0,0,.3); color: #86efac; font-weight: 600; word-break: break-all; user-select: all; text-decoration: none; }
a.Redeem-Code { text-decoration: underline; }
.Redeem-Row.is-rejected .Redeem-Status, .Redeem-Row.is-failed .Redeem-Status { color: #fca5a5; }
.Redeem-Row.is-pending .Redeem-Status, .Redeem-Row.is-approved .Redeem-Status { color: var(--gold); }

/* ---------- แท็บ "ประวัติ" ในหน้าเควส: ใครได้รับรางวัลล่าสุด (ใช้โครง .Board-Row ร่วมกับอันดับ) ---------- */
.Hist-Row { align-items: center; }
.Hist-Icon { flex: none; width: 34px; height: 34px; border-radius: 9px; }
.Hist-What { display: block; color: var(--gold); font-size: 1rem; white-space: normal; }
.Hist-When { flex: none; color: var(--mut); font-size: .95rem; text-align: right; }

/* ---------- ป๊อปอัปผลอันดับสัปดาห์ที่แล้ว (#rank-results) ---------- */
.RankRes-List { max-height: 42vh; overflow: auto; margin: 10px 0 14px; display: flex; flex-flow: column; gap: 5px; text-align: left; }
.RankRes-Row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 1.1rem; }
.RankRes-Row.is-me { border-color: rgba(139, 92, 246, .6); background: rgba(139, 92, 246, .12); }
.RankRes-Rank { flex: none; width: 34px; text-align: center; font-weight: 700; }
.RankRes-Name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.RankRes-Name small { color: var(--mut); }
.RankRes-Pts { flex: none; color: var(--gold); font-weight: 700; }

/* ---------- ตารางแต้มรางวัล Top 20 ในแท็บอันดับ (.Prize) ---------- */
.Prize { margin: 0 var(--gutter) 12px; border-radius: 14px; background: var(--card); border: 1px solid rgba(255, 201, 60, .35); overflow: hidden; }
.Prize-Toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.Prize-Title { display: flex; align-items: center; gap: 6px; font-size: 1.2rem; font-weight: 700; }
.Prize-Sum { flex: none; color: var(--gold); font-size: 1.05rem; font-weight: 600; }
.Prize-Chev { font-style: normal; color: var(--mut); margin-left: 4px; }
.Prize-Grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 10px 8px; }
.Prize-Cell { display: flex; flex-flow: column; align-items: center; gap: 1px; padding: 7px 4px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.Prize-Cell.is-top1 { border-color: rgba(255, 201, 60, .6); background: rgba(255, 201, 60, .1); }
.Prize-Cell.is-top2 { border-color: rgba(203, 213, 225, .5); }
.Prize-Cell.is-top3 { border-color: rgba(217, 119, 6, .5); }
.Prize-Cell.is-me { border-color: rgba(139, 92, 246, .7); background: rgba(139, 92, 246, .14); }
.Prize-Rank { font-size: 1rem; color: var(--mut); font-weight: 700; }
.Prize-Cell.is-top1 .Prize-Rank, .Prize-Cell.is-top2 .Prize-Rank, .Prize-Cell.is-top3 .Prize-Rank { font-size: 1.25rem; }
.Prize-Pts { font-size: 1.12rem; font-weight: 800; color: var(--gold); }
.Prize-Note { margin: 0; padding: 0 12px 10px; color: var(--mut); font-size: .95rem; line-height: 1.45; }
@media (max-width: 360px) { .Prize-Grid { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================================
   แท็บที่ 6: CHAT (shared/chat.js) — 2026-09-09
   ========================================================================= */
.NavBtn--chat.is-active { background: linear-gradient(180deg, #5eead4, #0d9488); box-shadow: 0 6px 16px rgba(20, 184, 166, .4); color: #042f2e; }
.Chat { margin: 0 var(--gutter) var(--gap); display: flex; flex-flow: column; gap: 8px; }
.Chat-List {
  height: min(52vh, 520px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-flow: column; gap: 6px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(12, 16, 35, .55);
  border: 1px solid var(--line);
  overscroll-behavior: contain;
}
.Chat-Msg:first-child { margin-top: auto; }   /* ข้อความน้อยให้ชิดล่างเหมือนแอปแชต */
.Chat-Empty { margin: auto; text-align: center; color: var(--mut); font-size: 1.2rem; line-height: 1.5; }
.Chat-Msg {
  max-width: 88%; align-self: flex-start;
  padding: 7px 11px 8px;
  border-radius: 14px 14px 14px 4px;
  background: var(--card-2); border: 1px solid var(--line);
  contain: content;                    /* ให้เบราว์เซอร์จัดเลย์เอาต์เฉพาะฟองนี้ เลื่อนลื่นขึ้นบนมือถือ */
}
.Chat-Msg.is-new { animation: fadeIn .18s ease; }   /* เฟดเฉพาะข้อความที่เพิ่งมา ไม่ใช่ทั้ง 50 */
.Chat-Msg.is-me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: rgba(20, 184, 166, .18); border-color: rgba(94, 234, 212, .35); }
/* ข้อความของแอดมิน (hub_chat.is_admin จาก DB) — เด่นกว่าคนทั่วไป: กรอบทอง + ป้าย ทีมงาน (2026-09-11) */
.Chat-Msg.is-admin {
  background: linear-gradient(135deg, rgba(255, 201, 60, .22), rgba(232, 166, 21, .10));
  border-color: rgba(255, 201, 60, .65);
  box-shadow: 0 0 0 1px rgba(255, 201, 60, .25), 0 6px 18px rgba(255, 201, 60, .18);
}
.Chat-Msg.is-admin .Chat-Name { color: var(--gold); }
.Chat-Msg.is-admin .Chat-Body { color: #fff6d6; }
.Chat-AdminBadge {
  display: inline-block; padding: 1px 7px; margin-right: 2px;
  border-radius: 100px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; vertical-align: 1px;
  background: linear-gradient(180deg, #ffe084, var(--gold) 60%, #d99a10); color: #4a3202;
  box-shadow: 0 2px 6px rgba(255, 201, 60, .4);
}
.Chat-Meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.Chat-Name { font-size: 1.05rem; color: #5eead4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.Chat-Name small { color: var(--mut); font-weight: 400; }
.Chat-Time { margin-left: auto; font-size: .9rem; color: var(--mut); white-space: nowrap; }
.Chat-Body { font-size: 1.25rem; line-height: 1.45; word-break: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.Chat-Form { display: flex; gap: 6px; align-items: center; }
.Chat-Input { font-size: 1.25rem; padding: 9px 12px; }
.Chat-Input:disabled { opacity: .5; }
.Chat-Note { margin: 0; font-size: 1.05rem; }
.Chat-FbForm { display: flex; flex-flow: column; gap: 8px; margin-top: 10px; }
.Chat-Textarea { width: 100%; resize: vertical; min-height: 110px; font-size: 1.25rem; line-height: 1.45; padding: 9px 12px; font-family: inherit; }
.Chat-FbRow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.Chat-Count { font-size: 1rem; color: var(--mut); }
.Chat-FbDone { margin: 14px 0 6px; text-align: center; font-size: 1.3rem; line-height: 1.8; }
.Chat-NameIcon { margin: 0 0 6px; font-size: 3rem; line-height: 1; }
/* แท็บแชตยืดเต็มความสูงที่เหลือของจอ (ช่องพิมพ์ชิดล่างเหมือนแอปแชต) — ไม่ว่าจอสูงเท่าไหร่ก็ไม่เหลือที่ว่างข้างล่าง */
#view-chat:not([hidden]) { display: flex; flex-flow: column; height: 100%; min-height: 0; box-sizing: border-box; padding-bottom: 8px; overflow: hidden; }   /* สูงเท่า Stage พอดี → รายการเลื่อนในตัวเอง ช่องพิมพ์อยู่ล่างเสมอ */
#view-chat .PageHead { margin-bottom: 10px; }
#view-chat .Chat { flex: 1; min-height: 0; margin-bottom: 0; }
#view-chat .Chat-List { flex: 1 1 0; height: auto; min-height: 120px; }

/* ป้ายยอดสปินจริงบนการ์ดแถว "ยอดนิยม" (hub_popular_games) */
.Tile-Stat {
  position: absolute; left: 6px; bottom: 6px; z-index: 2;
  padding: 3px 8px; border-radius: 100px;
  background: rgba(5, 7, 18, .72); border: 1px solid rgba(255, 122, 77, .45);
  color: #ffd7c2; font-size: .95rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* ---- หลอดเควสต่อเกม (โหมดรายวัน 2026-09-14): ใต้ปกเกมสล็อตทุกใบ — ป้ายดาวซ้าย (แต้มที่จะได้) + หลอดม่วงเติมสีทองตาม % ของ 500 สปินวันนี้ ---- */
.GDaily {
  position: relative; z-index: 3;
  display: flex; align-items: center;
  padding: 7px 9px 8px 7px;
  background: linear-gradient(180deg, #1c2040, #12152c);
  border-top: 1px solid rgba(139, 147, 184, .18);
}
.GDaily-Badge {
  position: relative; z-index: 2; flex: none;
  display: grid; place-items: center;
  width: 30px; height: 30px; margin-right: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #c4a2ff, #7c3aed 68%);
  border: 2px solid #d5c3ff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .55);
}
.GDaily-Badge i { position: absolute; font-style: normal; color: #ffd24a; font-size: 2.1rem; line-height: 1; text-shadow: 0 1px 0 #a5560c, 0 0 6px rgba(255, 200, 60, .5); }
.GDaily-Badge b { position: relative; margin-top: 3px; font-size: .95rem; font-weight: 900; line-height: 1; color: #7a3d00; }
.GDaily-Bar {
  position: relative; flex: 1; height: 20px;
  border-radius: 100px;
  background: #3a2a78;
  border: 2px solid #a889f5;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.GDaily-Bar i {
  position: absolute; top: 0; bottom: 0; left: 0;
  border-radius: 100px;
  background: linear-gradient(180deg, #ffe680, #ffb300 55%, #ff9a00);
  box-shadow: inset 0 -3px 0 rgba(160, 80, 0, .35);
  transition: width .4s ease;
}
.GDaily-Bar em {
  position: absolute; inset: 0; padding-left: 10px;
  display: grid; place-items: center;
  font-style: normal; font-size: 1.05rem; font-weight: 900; letter-spacing: .02em;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}
.GDaily.is-done .GDaily-Bar { border-color: #9ef0a8; }
.GDaily.is-done .GDaily-Bar i { background: linear-gradient(180deg, #b5ff8a, #22c55e 60%, #15803d); }

/* ---- ป๊อปอัปประกาศกติกาใหม่ (ครั้งเดียว) ---- */
.Announce .Welcome-Brand { font-size: 2.3rem; }
.Announce .Welcome-Sub { margin: 4px 0 10px; font-size: 1.25rem; color: var(--gold); font-weight: 700; }
.Announce-List { max-height: 46vh; overflow: auto; margin: 0 0 12px; display: flex; flex-flow: column; gap: 6px; text-align: left; }
.Announce-Row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 1.15rem; line-height: 1.45; }
.Announce-Row i { flex: none; font-style: normal; font-size: 1.7rem; line-height: 1.2; }
.Announce-Row b { color: #fff; }
.Announce-Row s { color: var(--mut); }

/* หลอดครบ 500 แล้ว รอแตะรับ — เรืองแสงกระพริบ */
@keyframes gdailyGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 214, 74, 0), 0 0 10px rgba(255, 214, 74, .5); } 50% { box-shadow: 0 0 0 4px rgba(255, 214, 74, .25), 0 0 22px rgba(255, 214, 74, .95); } }
@keyframes gdailyBlink { 50% { opacity: .55; } }
.GDaily.is-claim { cursor: pointer; }
.GDaily.is-claim .GDaily-Bar { border-color: #ffe27a; animation: gdailyGlow 1.1s ease-in-out infinite; }
.GDaily.is-claim .GDaily-Bar i { background: linear-gradient(180deg, #fff3a8, #ffcc33 55%, #ff9f00); }
.GDaily.is-claim .GDaily-Bar em { color: #4a2a00; text-shadow: none; font-size: 1.15rem; animation: gdailyBlink 1.1s steps(2, end) infinite; }
.GDaily.is-claim .GDaily-Badge { animation: gdailyGlow 1.1s ease-in-out infinite; }
.GDaily.is-busy { opacity: .6; pointer-events: none; }

/* ---- ปุ่มคู่มือแลกรางวัลในแท็บ CHAT + เนื้อหาคู่มือใน Sheet (2026-09-22) ---- */
.Chat-Guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px var(--gutter) 10px; }
.Chat-Guide {
  display: flex; flex-flow: column; align-items: center; justify-content: center; gap: 8px;
  position: relative; isolation: isolate; overflow: hidden;
  min-width: 0; min-height: 0; padding: 14px 12px 13px; text-align: center;
  border-radius: 22px;
  background: radial-gradient(ellipse at 14% 0%, #7543b8 0%, transparent 65%), linear-gradient(145deg, #33225c, #1b1838);
  border: 1px solid #a77bd7;
  box-shadow: 0 5px 0 #100e26, 0 10px 22px #08091966, inset 0 1px 0 #ffffff38;
  color: var(--fg, #fff); cursor: pointer;
  font: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.Chat-Guide--redeem { background: radial-gradient(ellipse at 14% 0%, #946b43 0%, transparent 65%), linear-gradient(145deg, #46304a, #211b35); border-color: #c4a06a; }
.Chat-Guide::before { content: ""; position: absolute; z-index: -1; width: 140px; height: 140px; right: -62px; top: -60px; border: 1px solid #ffffff14; border-radius: 50%; box-shadow: 0 0 0 22px #ffffff04, 0 0 0 44px #ffffff03; pointer-events: none; }
.Chat-Guide::after { content: "✦"; position: absolute; top: 44px; right: 22px; color: #e7cdff8c; font-size: 17px; pointer-events: none; }
.Chat-Guide--redeem::after { color: #ffe6ad99; }
@media (hover: hover) { .Chat-Guide:hover { transform: translateY(-3px); border-color: #f2d4ff; box-shadow: 0 7px 0 #100e26, 0 14px 28px #08091980, 0 0 22px #b47aff26; } }
.Chat-Guide:active { transform: translateY(2px); box-shadow: 0 2px 0 #100e26; }
.Chat-Guide:focus-visible { outline: 3px solid #ffe296; outline-offset: 4px; }
.Chat-Guide-Icon {
  flex: none; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px;
  background: radial-gradient(circle, #ffc85030, transparent 72%);
  filter: drop-shadow(0 5px 8px #11082466);
  font-size: 2rem; line-height: 1;
}
.Chat-Guide-Icon--purple { background: radial-gradient(circle, #b991ff40, transparent 72%); }
.Chat-Guide-Icon svg { display: block; width: 100%; height: 100%; }
.Chat-Guide-Text { display: flex; flex-flow: column; align-items: center; gap: 5px; min-width: 0; width: 100%; }
.Chat-Guide-Text b { font-size: 1.5rem; font-weight: 800; line-height: 1.3; color: #fff0bb; text-shadow: 0 2px 3px #12092380; text-align: center; }
.Chat-Guide-Text small { font-size: 1.15rem; color: #e0d7ee; line-height: 1.6; }
.Chat-Guide-Arrow { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #ffffff2e; border-radius: 50%; background: #ffffff0b; color: #ffe8b2; font: 18px/1 sans-serif; }
@media (max-width: 360px) { .Chat-Guides { gap: 9px; } .Chat-Guide { padding: 12px; border-radius: 18px; } .Chat-Guide-Text b { font-size: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .Chat-Guide { transition: none; } }
.Guide-Num--purple { background: linear-gradient(180deg, #ddd6fe, #a78bfa 55%, #7c3aed); color: #fff; }
.Guide-Step { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.Guide-Num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: #2a1c00; background: linear-gradient(180deg, #fff3a8, #ffcc33 55%, #ff9f00); }
.Guide-Text { flex: 1; min-width: 0; }
.Guide-Title { margin: 2px 0 6px; font-size: 1.4rem; font-weight: 800; }
.Guide-List { margin: 0; padding-left: 18px; display: flex; flex-flow: column; gap: 6px; font-size: 1.2rem; line-height: 1.5; color: var(--mut); }
.Guide-List b { color: #fff; font-weight: 700; }
.Guide-Body { margin: 0; font-size: 1.25rem; line-height: 1.55; color: var(--mut); }
.Guide-Body b, .Guide-Foot b { color: #fff; font-weight: 700; }
.Guide-Foot { margin: 2px 0 0; padding: 0 4px; font-size: 1.15rem; line-height: 1.5; color: var(--mut); }
.Guide-Actions { display: flex; flex-flow: column; align-items: center; gap: 10px; margin-top: 6px; }
.Guide-Actions .GreenButton { width: 100%; }


/* ---- หน้ารายละเอียดเกม (2026-09-22) ---- */
/* ปุ่ม ▶ บนการ์ดถอดออก 22 ก.ย. (user) — แตะการ์ด = หน้ารายละเอียด, เล่นจากปุ่มในหน้านั้น/hero */
.DtTop { display: flex; align-items: center; gap: 10px; padding: 6px var(--gutter) 10px; }
.DtBack, .DtShare {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(139, 147, 184, .16); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
}
.DtShare { font-size: 1.6rem; }
.DtTop-Text { flex: 1; min-width: 0; display: flex; flex-flow: column; }
.DtTop-Text b { font-size: 1.6rem; font-weight: 800; }
.DtTop-Text small { font-size: 1.05rem; color: var(--mut); }
.DtFav { position: static; width: 38px; height: 38px; font-size: 1.7rem; background: rgba(139, 147, 184, .16); }
.DtFeature { margin: 0 var(--gutter) var(--gap); border: 1px solid #a890da66; border-radius: 26px; overflow: hidden; background: #15182e; box-shadow: 0 12px 32px #05061780; isolation: isolate; }
.DtHero { position: relative; margin: 0; overflow: hidden; aspect-ratio: 1; background: var(--card); }
.DtHero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.DtHero .Tile-Fallback { height: 100%; }
.DtRibbon { position: absolute; top: 14px; left: 14px; }
.DtHero-Pop { position: absolute; right: 12px; bottom: 34px; padding: 5px 12px; border-radius: 100px; background: rgba(10, 8, 30, .78); color: #ffd36a; font-size: 1.15rem; font-weight: 700; }
.DtCard { margin: 14px var(--gutter) var(--gap); position: relative; z-index: 2; padding: 18px var(--gutter) var(--gutter); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.DtTitle { font-size: 2.4rem; font-weight: 800; line-height: 1.1; text-align: center; }
.DtSub { text-align: center; color: var(--mut); font-size: 1.25rem; margin-top: 2px; }
.DtStats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.DtStat { display: flex; flex-flow: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); text-align: center; }
.DtStat-Value { font-size: 1.45rem; font-weight: 800; line-height: 1.1; word-break: break-word; }
.DtStat-Label { font-size: .95rem; color: var(--mut); }
.DtStat--green .DtStat-Value { color: #4ade80; }
.DtStat--red .DtStat-Value { color: #fb7185; }
.DtStat--blue .DtStat-Value { color: #60a5fa; }
.DtStat--gold .DtStat-Value { color: var(--gold); }
.DtPlay { width: 100%; font-size: 1.6rem; padding: .7em 1em; }
.DtVotes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.DtVote { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #fff; font: inherit; font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.DtVote em { font-style: normal; color: var(--mut); font-weight: 600; }
.DtVote em:empty { display: none; }
.DtVote--up.is-on { background: rgba(34, 197, 94, .22); border-color: rgba(34, 197, 94, .6); }
.DtVote--down.is-on { background: rgba(244, 80, 62, .2); border-color: rgba(244, 80, 62, .55); }
.DtPanel .Panel-Label { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: 1.35rem; color: #fff; }
.DtBar { margin-top: 8px; }
.DtBar .GDaily { position: relative; z-index: auto; margin: 0; padding: 5px 2px; background: transparent; border: 0; min-height: 44px; }
.DtBar .GDaily-Badge { width: 34px; height: 34px; margin-right: -10px; box-shadow: 0 2px 6px #08091b66, 0 0 12px #ad7aff26; }
.DtBar .GDaily-Bar { height: 22px; background: #19152e; box-shadow: inset 0 2px 5px #08091b99, 0 1px 0 #ffffff12; }
.DtTags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.DtTag { padding: 4px 11px; border-radius: 100px; background: rgba(139, 92, 246, .18); border: 1px solid rgba(139, 92, 246, .45); font-size: 1.1rem; font-weight: 600; }
.DtDesc { margin: 8px 0 4px; font-size: 1.2rem; line-height: 1.55; color: var(--mut); }
.DtList { margin: 8px 0 0; display: flex; flex-flow: column; }
.DtList > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.DtList > div:first-child { border-top: 0; }
.DtList dt { color: var(--mut); font-size: 1.2rem; }
.DtList dd { margin: 0; font-weight: 700; font-size: 1.2rem; text-align: right; }
.DtFine { font-size: 1.05rem; margin-top: 10px; opacity: .8; }
.DtRow { margin-top: var(--section); }
.DtSpacer { height: 12px; }


/* ---- รายงานเกมเสีย (ปุ่มแดงใต้ "เล่นเลย" + กล่องรายงาน · 2026-09-22) ---- */
.RedButton {
  display: inline-block;
  padding: .5em 1.7em;
  border-radius: 100px;
  color: #fff;
  font: inherit; font-size: 1.4rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; border: 0;
  background: linear-gradient(180deg, #ff7a6a, var(--red) 60%, #b91c1c);
  box-shadow: 0 6px 16px rgba(244, 80, 62, .4), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .12s ease, filter .2s ease;
}
.RedButton:hover { filter: brightness(1.06); }
.RedButton:active { transform: scale(.95); }
.RedButton:disabled { opacity: .45; cursor: default; }
.DtReport { width: 100%; font-size: 1.6rem; padding: .7em 1em; margin-top: 10px; }
.Report .Welcome-Panel { text-align: left; max-width: 440px; padding-top: 22px; position: relative; }
.Report-Title { margin: 0 0 4px; font-size: 1.8rem; font-weight: 800; color: #ff9a8a; }
.Report-Sub { margin: 0 0 14px; font-size: 1.15rem; color: var(--mut); line-height: 1.5; }
.Report-Form { display: flex; flex-flow: column; gap: 12px; }
.Report-Field { display: flex; flex-flow: column; gap: 6px; }
.Report-Field > span { font-size: 1.2rem; font-weight: 600; }
.Report-Select, .Report-Input, .Report-Textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.25rem; color: #fff; }
.Report-Select {
  padding: 11px 40px 11px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .06) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23c3c8e6' stroke-width='2' stroke-linecap='round'/></svg>") no-repeat right 14px center;
  border: 1px solid var(--line); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.Report-Select:required:invalid { color: var(--mut); }
.Report-Select option { color: #fff; background: #1b2142; }
.Report-Select:focus, .Report-Input:focus, .Report-Textarea:focus { outline: none; border-color: #ff6b5a; box-shadow: 0 0 0 3px rgba(224, 57, 43, .25); }
.Report-Input { padding: 11px 14px; }
.Report-Textarea { resize: vertical; min-height: 78px; padding: 11px 14px; line-height: 1.45; font-family: inherit; }
.Report-Note { margin: 0; font-size: 1.05rem; color: var(--mut); line-height: 1.5; }
.Report-Note small { display: block; font-size: 1rem; opacity: .85; word-break: break-word; }
.Report-Actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.Report-Cancel { padding: .55em 1.3em; border-radius: 100px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: #fff; font: inherit; font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.Report .Sheet-Close { top: 12px; right: 12px; }

.Report-Textarea.is-required { border-color: #ff9a8a; box-shadow: 0 0 0 3px rgba(224, 57, 43, .18); }

/* Game detail: jewel panels and tactile arcade controls. */
.DtCard {
  margin: -22px 0 0;
  padding: 24px 18px 18px;
  border-radius: 24px 24px 0 0;
  border: 0;
  border-top: 1px solid #a890da66;
  background: radial-gradient(ellipse at 50% 0%, #57378088, transparent 65%), linear-gradient(155deg, #282044, #15182e);
  box-shadow: 0 -6px 18px #08091b30, inset 0 1px 0 #ffe5b538;
}
.DtCard::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: linear-gradient(90deg, transparent, #ffe3a5, transparent); }
.DtTitle { color: #fff0cf; line-height: 1.25; text-shadow: 0 2px 10px #0a071b; }
.DtSub { margin-top: 5px; color: #c8badf; line-height: 1.5; }
.DtStats { gap: 10px; padding: 4px 0; margin: 16px 0; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.DtStat {
  --stat-color: #d8c2ff; --stat-glow: #a778ed26;
  position: relative; justify-content: center; min-width: 0; min-height: 84px; padding: 17px 8px 12px; gap: 8px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, var(--stat-glow), transparent 90%), #15172c;
  border: 1px solid #b5a2d42e; border-radius: 16px;
  box-shadow: inset 0 1px 0 #ffffff0f, 0 3px 6px #080a1a40;
}
.DtStat::before { content: ""; position: absolute; top: 6px; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: var(--stat-color); box-shadow: 0 0 6px var(--stat-color); pointer-events: none; }
.DtStat--green { --stat-color: #79f2c2; --stat-glow: #36d99e26; }
.DtStat--red { --stat-color: #ffaca9; --stat-glow: #f58a8526; }
.DtStat--blue { --stat-color: #a6cbff; --stat-glow: #709cfb26; }
.DtStat--gold { --stat-color: #ffe29a; --stat-glow: #efc45d26; }
.DtStat .DtStat-Value { display: block; max-width: 100%; color: var(--stat-color); font-size: 1.4rem; line-height: 1.5; overflow-wrap: anywhere; word-break: normal; }
.DtStat-Label { display: block; max-width: 100%; color: #c0b7d4; font-size: 1.05rem; line-height: 1.6; overflow-wrap: anywhere; }
.DtCard .DtPlay, .DtCard .DtReport {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  border-radius: 16px; white-space: normal; line-height: 1.5; letter-spacing: .01em;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.DtCard .DtPlay {
  border: 1px solid #aaffd1; color: #073e2b;
  background: linear-gradient(180deg, #a3ffd0, #3cdd97 48%, #22bf7c);
  box-shadow: 0 4px 0 #096045, 0 8px 20px #18db8526, inset 0 2px 0 #ffffff6b;
  font-size: 1.8rem; font-weight: 800; text-shadow: 0 1px 0 #c2ffdf80;
}
.DtCard .DtReport {   /* user 22 ก.ย.: รูปแบบ/ขนาดเท่าปุ่มเล่นเลย แค่เป็นสีแดง */
  margin-top: 12px; min-height: 52px; border: 1px solid #ffb3a8; color: #3d0a06;
  background: linear-gradient(180deg, #ffb0a2, #f4503e 48%, #d1301f);
  box-shadow: 0 4px 0 #7a1810, 0 8px 20px #f4503e26, inset 0 2px 0 #ffffff6b;
  font-size: 1.8rem; font-weight: 800; text-shadow: 0 1px 0 #ffd6cf80;
}
.DtVotes { margin-top: 17px; gap: 10px; }
.DtVote {
  min-height: 46px; padding: 10px 8px; flex-wrap: wrap;
  background: linear-gradient(150deg, #3b2c57, #24213c); border-color: #bda1ec40;
  box-shadow: 0 3px 0 #100f23, inset 0 1px 0 #ffffff0d;
  color: #e8def9; transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.DtVote em { min-width: 24px; padding: 2px 7px; border-radius: 8px; background: #0c0c2180; color: #d4c1f5; font-size: 1.15rem; }
.DtVote--up.is-on { border-color: #6be9b6; background: linear-gradient(150deg, #215c4d, #1b3337); color: #acffdb; }
.DtVote--down.is-on { border-color: #f9aaa5; background: linear-gradient(150deg, #673345, #332337); color: #ffceca; }
.DtBack, .DtShare, .DtFav { border: 1px solid #c1a4eb45; background: linear-gradient(145deg, #47335f, #24213d); box-shadow: inset 0 1px 0 #ffffff17, 0 3px 8px #08091b45; }
.DtPanel { border: 1px solid #a38ac736; border-radius: 22px; background: linear-gradient(135deg, #29213f, #171a30); box-shadow: inset 0 1px 0 #ffffff0d, 0 6px 18px #08091b30; }
.DtPanel .Panel-Label { color: #ffedbf; line-height: 1.5; }
.DtPanel .Panel-Note, .DtDesc, .DtList dt { color: #c1b9d1; line-height: 1.6; }
.DtList > div { padding: 11px 0; border-color: #d1b3fa17; }
.DtList dd { color: #f3e8ff; line-height: 1.6; }
.DtTag { color: #dfc9ff; background: #9770db17; border-color: #b594e842; }
.Report .Welcome-Panel {
  border-radius: 26px; border: 1px solid #bd9ad580;
  background: radial-gradient(ellipse at 0% 0%, #733a5960, transparent 65%), linear-gradient(145deg, #2d2347, #171a30);
  box-shadow: 0 20px 70px #03041299, inset 0 1px 0 #ffe9c930;
}
.Report-Title { padding-right: 32px; color: #ffcfb1; line-height: 1.5; }
.Report-Sub { color: #cbbdd9; }
.Report-Field > span { color: #f0e3ff; }
.Report-Select, .Report-Input, .Report-Textarea { border: 1px solid #ae91d34f; border-radius: 13px; background-color: #11152b; box-shadow: inset 0 2px 5px #070a194d; }
.Report-Textarea::placeholder, .Report-Select:required:invalid { color: #a9a0be; }
.Report-Select:focus, .Report-Input:focus, .Report-Textarea:focus { border-color: #c8a0ff; box-shadow: 0 0 0 3px #af7beb29; }
.Report-Note { padding: 10px 12px; border: 1px solid #c4a0ef24; border-radius: 12px; background: #ffffff04; color: #c1b7d4; }
.Report-Actions { gap: 10px; }
.Report-Actions .RedButton { min-height: 44px; border: 1px solid #ffb4a4; border-radius: 13px; background: linear-gradient(180deg, #ffb18f, #ec735f); color: #4e1726; box-shadow: 0 3px 0 #7b3540, inset 0 1px 0 #ffe7d780; white-space: normal; }
.Report-Cancel { border-radius: 13px; min-height: 44px; border-color: #af96d154; color: #e2d6f1; }
.DtCard button:focus-visible, .DtCard a:focus-visible, .DtTop button:focus-visible, .Report button:focus-visible { outline: 3px solid #ffe4a5; outline-offset: 4px; }
@media (hover: hover) {
  .DtCard .DtPlay:hover, .DtCard .DtReport:hover { transform: translateY(-2px); filter: brightness(1.08); }
  .DtVote:hover { transform: translateY(-2px); border-color: #d0acf7; }
}
.DtCard .DtPlay:active, .DtCard .DtReport:active, .DtVote:active { transform: translateY(2px); box-shadow: inset 0 2px 5px #080b202b; }
@media (max-width: 440px) { .DtStats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .DtCard { padding: 20px 12px 14px; } .DtStats { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .DtCard .DtPlay, .DtCard .DtReport, .DtVote { transition: none; } }

/* =========================================================================
   WALLET (2026-09-29) — การ์ดยอดรางวัลและเมนูธีมม่วง–ทอง Game Hub
   แสดง "แต้มรางวัล" เป็นมูลค่าเงินตามภาษา (แสดงผลเท่านั้น) · เหรียญสล็อตไม่แสดงเป็นเงินที่ไหนเลย
   ใต้ FAQ = เนื้อหา MY ZONE เดิม (สไตล์ Profile/CoinBanner/StatGrid/LangSeg/FavRow ด้านบน)
   ========================================================================= */
.WalletCard {
  position: relative;
  margin: 0 var(--gutter) var(--gap);
  padding: 20px 18px 16px;
  border-radius: 20px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(162, 104, 255, .3), transparent 65%),
    radial-gradient(ellipse at 100% 100%, rgba(255, 204, 108, .09), transparent 55%),
    linear-gradient(155deg, #30214e, #1b1533 75%);
  border: 1px solid rgba(235, 200, 132, .38);
  box-shadow: 0 12px 28px rgba(8, 4, 27, .4), inset 0 1px 0 rgba(255, 241, 199, .15);
  overflow: hidden;
}
.WalletCard::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: linear-gradient(90deg, transparent, #ffe5a5, transparent); pointer-events: none; }
.WalletCard-Label { font-size: 1.35rem; font-weight: 500; color: #d7c9ef; }
.WalletCard-Num { min-width: 0; color: #ffe6a5; text-shadow: 0 2px 0 #75441d, 0 0 24px rgba(255, 199, 86, .18); }
.WalletCard-Amount {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 2px 0 0;
  font-size: clamp(3.4rem, 11vw, 4.6rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.WalletCard-Cash { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(145deg, #73512d, #352443); border: 1px solid #b68a51; font-size: .55em; line-height: 1; box-shadow: inset 0 1px 0 #ffe3a54d, 0 4px 12px #08041b55; }
.WalletCard-Goal { margin-top: 10px; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.WalletCard-Bar {
  position: relative; height: 6px; margin: 6px auto 0; max-width: 260px;
  border-radius: 100px; background: rgba(255, 255, 255, .22); overflow: hidden;
}
.WalletCard-Bar i { position: absolute; inset: 0 auto 0 0; border-radius: 100px; background: #fff; transition: width .5s ease; }
.WalletCard-Btn {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  padding: .75em 1em;
  border-radius: 16px;
  min-height: 50px;
  border: 1px solid #9d86c266;
  font-size: 1.6rem; font-weight: 700; letter-spacing: .02em;
  color: #ddd0ed;
  background: linear-gradient(180deg, #514065, #352944);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  cursor: pointer;
  transition: transform .12s ease, filter .2s ease;
}
.WalletCard-Btn:active { transform: scale(.97); }
.WalletCard-Btn.is-ready {
  color: #fff;
  border-color: #8af3b3;
  background: linear-gradient(180deg, #40dd80, #1eb85c 48%, #138641);
  text-shadow: 0 1px 2px #075c34;
  box-shadow: 0 5px 0 #09552d, 0 0 14px #40e58333, inset 0 1px 0 #c2ffdb99;
  animation: walletRedeemGlow 2.4s ease-in-out infinite;
}
@keyframes walletRedeemGlow {
  0%, 100% { box-shadow: 0 5px 0 #09552d, 0 0 12px #40e58326, inset 0 1px 0 #c2ffdb99; }
  50% { box-shadow: 0 5px 0 #09552d, 0 0 26px #40e58388, inset 0 1px 0 #c2ffdbcc; }
}
.WalletCard-Hint { margin-top: 13px; font-size: 1.15rem; line-height: 1.6; color: #d2c2e6; }
.WalletCard-Pay {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 12px;
  padding: 5px 14px;
  border-radius: 14px;
  background: #130f25;
  border: 1px solid #ad91d12e;
  box-shadow: inset 0 1px 4px #0003;
}
.WalletCard-Pay img { width: 38px; height: 30px; padding: 3px; border-radius: 6px; background: #fff; object-fit: contain; }

.WalletFaq {
  margin: 0 var(--gutter) 8px;
  display: grid;
  gap: 9px;
  border-radius: 18px;
}
.WalletFaq-Row {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 12px 14px;
  min-height: 64px;
  border-radius: 16px;
  border: 1px solid #a995cd38;
  background: linear-gradient(115deg, #2c2344, #19172e);
  box-shadow: inset 0 1px 0 #ffffff09, 0 4px 12px #05031633;
  text-align: left;
  color: #f5edff;
  font-size: 1.45rem; font-weight: 600;
  cursor: pointer;
}
.WalletFaq-Row { transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.WalletFaq-Row:active { transform: scale(.985); background: #392a50; }
.WalletFaq-Ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid #d2b0ff3d; background: linear-gradient(145deg, #7546ac, #392859); box-shadow: inset 0 1px 0 #ffffff24; text-align: center; font-size: 1.9rem; line-height: 1; }
.WalletFaq-Row:nth-child(2) .WalletFaq-Ic { background: linear-gradient(145deg, #7a542a, #3c2b31); border-color: #e8b95255; }
.WalletFaq-Row:nth-child(3) .WalletFaq-Ic { background: linear-gradient(145deg, #35588b, #262847); border-color: #96c2ff44; }
.WalletFaq-Row:nth-child(4) .WalletFaq-Ic { background: linear-gradient(145deg, #7d435a, #3c2743); border-color: #ffb6d344; }
.WalletFaq-Text { flex: 1; min-width: 0; }
.WalletFaq-Chev { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #c2a0ef0d; color: #d7b773; font-size: 2.2rem; line-height: 1; font-weight: 400; }
.WalletCard-Btn:focus-visible, .WalletFaq-Row:focus-visible { outline: 2px solid #ffe3a2; outline-offset: 3px; }
@media (hover: hover) {
  .WalletFaq-Row:hover { border-color: #dab97488; background: linear-gradient(115deg, #39294f, #211b38); }
  .WalletCard-Btn.is-ready:hover { filter: brightness(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .WalletFaq-Row, .WalletCard-Btn { transition: none; }
  .WalletCard-Btn.is-ready { animation: none; }
}
.WalletCard-Note { margin: 4px 6px 12px; font-size: 1.05rem; line-height: 1.45; color: rgba(255, 255, 255, .82); text-align: center; }   /* อัตรา + หมายเหตุเหรียญ ใต้ยอดแต้ม เหนือปุ่มแลก (29 ก.ย.) */
.WalletNote { margin: 0 var(--gutter) var(--section); font-size: 1.05rem; line-height: 1.5; color: var(--mut); text-align: center; }
.WalletZoneHead { display: flex; }
@media (max-width: 360px) {
  .WalletCard { padding: 18px 14px 14px; }
  .WalletFaq-Row { padding: 13px 14px; font-size: 1.35rem; }
}

/* WALLET หน้าย่อย (แลกรางวัล / ประวัติการแลก — ย้ายมาจาก QUESTS 2026-09-29): หัวแถว ‹ ย้อนกลับ + ชื่อหน้า */
.WalletSub {
  display: flex; align-items: center; gap: 10px;
  margin: -6px var(--gutter) var(--gap);
}
.WalletSub .RwBackRound { width: 38px; height: 38px; font-size: 2rem; border-color: rgba(74, 99, 255, .7); background: rgba(74, 99, 255, .15); color: #fff; }
.WalletSub-Title { flex: 1; min-width: 0; font-size: 1.9rem; font-weight: 800; letter-spacing: .02em; }

/* =========================================================================
   ปฏิทินรางวัลเข้าเล่น 7 วัน (SPOTLIGHT บนสุด · 2026-09-29) — ตาม ref: หัวเรื่อง + การ์ด 3×2 ห่วงสันปฏิทิน + การ์ดทองวันที่ 7
   สถานะการ์ด: is-claimed (หัวเขียว "รับแล้ว" + $ เทา + ✓) · is-today (เรืองทอง กดรับ) · is-next (ป้ายแดง 🔒 นับถอยหลัง) · is-locked
   ========================================================================= */
.Cal {
  margin: 0 var(--gutter) var(--section);
  padding: 16px 14px 14px;
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 201, 60, .22), transparent 60%),
    linear-gradient(160deg, #3b2a8f, #251b63 70%);
  border: 1px solid rgba(255, 214, 102, .35);
  box-shadow: 0 12px 28px rgba(20, 12, 70, .55), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.Cal-Head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.Cal-Title { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.Cal-Sub { font-size: 1.2rem; color: rgba(255, 255, 255, .8); margin-top: 2px; }
.Cal-Count { flex: none; padding: 3px 10px; border-radius: 100px; background: rgba(255, 201, 60, .18); color: var(--gold); font-weight: 800; font-size: 1.25rem; }
.Cal-Grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; padding-top: 6px; }
.CalDay {
  position: relative;
  display: flex; flex-flow: column; align-items: center;
  min-width: 0;
  padding: 0 0 8px;
  border-radius: 14px;
  background: #fff;
  color: #1b1f3b;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .28);
  cursor: pointer;
  transition: transform .12s ease;
}
.CalDay:active { transform: scale(.96); }
/* ห่วงสันปฏิทิน 2 วง ยื่นเหนือขอบบน */
.CalDay-Rings { position: absolute; top: -7px; left: 0; right: 0; display: flex; justify-content: space-around; padding: 0 22%; pointer-events: none; }
.CalDay-Rings i { width: 7px; height: 14px; border-radius: 4px; background: linear-gradient(180deg, #d9dbe6, #8d91a8); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.CalDay-Head {
  width: 100%;
  padding: 7px 4px 5px;
  border-radius: 14px 14px 0 0;
  background: #e9ebf5;
  font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; text-align: center; white-space: nowrap;
}
.CalDay-Body { display: flex; flex-flow: column; align-items: center; gap: 2px; padding: 8px 4px 4px; min-width: 0; max-width: 100%; }
.CalDay-Coin {   /* เหรียญรางวัล gem-reward.png (รอบ 7 · ก่อนหน้าเป็น money.png) */
  display: block; width: 34px; height: 34px; object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
}
.CalDay-Amt { font-size: 1.3rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.CalDay-Foot { min-height: 22px; display: flex; align-items: center; justify-content: center; }
.CalDay-Check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 1.2rem; }
.CalDay-Go { padding: 2px 12px; border-radius: 100px; background: linear-gradient(180deg, #4ade80, var(--green) 60%, #15803d); color: #fff; font-size: 1.1rem; font-weight: 800; white-space: nowrap; }
.CalDay-Pill { padding: 2px 8px; border-radius: 100px; background: #ef4444; color: #fff; font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.CalDay-Lock { font-size: 1.4rem; opacity: .55; }
.CalDay.is-claimed .CalDay-Head { background: var(--green); color: #fff; }
.CalDay.is-claimed .CalDay-Coin { filter: grayscale(1) opacity(.55); }
.CalDay.is-claimed .CalDay-Amt { color: #8a8fa6; }
.CalDay.is-today { box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(255, 201, 60, .75); animation: calGlow 1.6s ease-in-out infinite; }
.CalDay.is-today .CalDay-Head { background: linear-gradient(180deg, #ffe084, var(--gold)); color: #4a3202; }
.CalDay.is-locked { opacity: .78; }
.CalDay.is-locked .CalDay-Coin, .CalDay.is-next .CalDay-Coin { filter: saturate(.55) drop-shadow(0 2px 3px rgba(0, 0, 0, .2)); }
.CalDay.is-busy { opacity: .6; pointer-events: none; animation: none; }
.CalDay.is-pop, .CalBig.is-pop { animation: calPop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes calGlow { 50% { box-shadow: 0 0 0 3px var(--gold), 0 0 26px rgba(255, 201, 60, .95); } }
@keyframes calPop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

.CalBig {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  text-align: left;
  color: #4a3202;
  background: linear-gradient(135deg, #fff1b8, #ffc93c 55%, #f0a51a);
  box-shadow: 0 6px 16px rgba(240, 165, 26, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
  cursor: pointer;
}
.CalBig-Gift { flex: none; font-size: 3rem; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.CalBig-Main { flex: 1; min-width: 0; display: flex; flex-flow: column; }
.CalBig-Title { font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.CalBig-Amt { font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.CalBig-Foot { flex: none; }
.CalBig.is-claimed { filter: grayscale(.6); opacity: .8; }
.CalBig.is-today { box-shadow: 0 0 0 3px #fff, 0 0 22px rgba(255, 201, 60, .9); animation: calGlow 1.6s ease-in-out infinite; }
.Cal-Note { margin-top: 10px; font-size: 1.1rem; color: rgba(255, 255, 255, .8); text-align: center; line-height: 1.45; }
.CalDone {
  margin: 0 var(--gutter) var(--gap);
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .35);
  font-size: 1.2rem; font-weight: 600; text-align: center;
}
@media (max-width: 360px) {
  .Cal { padding: 14px 10px 12px; }
  .Cal-Grid { gap: 12px 6px; }
  .CalDay-Amt { font-size: 1.15rem; }
  .CalDay-Head { font-size: 1.05rem; }
}

/* ---- รอบ 4 (2026-09-29): SPOTLIGHT = ปุ่มแบนเนอร์แถวเดียว → ป๊อปอัปปฏิทิน + ปุ่มเช็กอิน ---- */
.CalBanner {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: calc(100% - var(--gutter) * 2);
  min-height: 64px;
  margin: 0 var(--gutter) var(--section);
  padding: 10px 12px 10px 10px;
  border-radius: 18px;
  text-align: left;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 201, 60, .28), transparent 60%),
    linear-gradient(135deg, #3b2a8f, #251b63 75%);
  border: 1px solid rgba(255, 214, 102, .45);
  box-shadow: 0 8px 20px rgba(20, 12, 70, .5), inset 0 1px 0 rgba(255, 255, 255, .15);
  cursor: pointer;
  transition: transform .12s ease;
}
.CalBanner:active { transform: scale(.98); }
.CalBanner.is-claim { animation: calBannerGlow 1.8s ease-in-out infinite; }
@keyframes calBannerGlow {
  0%, 100% { box-shadow: 0 8px 20px rgba(20, 12, 70, .5), 0 0 0 0 rgba(255, 201, 60, 0); }
  50% { box-shadow: 0 8px 20px rgba(20, 12, 70, .5), 0 0 0 3px rgba(255, 201, 60, .55), 0 0 22px rgba(255, 201, 60, .55); }
}
.CalBanner-Icon {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(180deg, #fff1b8, #ffc93c);
  font-size: 2.4rem; line-height: 1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}
.CalBanner-Dot { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid #251b63; animation: badgePulse 1.4s ease-in-out infinite; }
.CalBanner-Main { flex: 1; min-width: 0; display: flex; flex-flow: column; line-height: 1.25; }
.CalBanner-Title { font-size: 1.45rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.CalBanner-Line { font-size: 1.2rem; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.CalBanner.is-claim .CalBanner-Line { color: var(--gold); font-weight: 700; }
.CalBanner-Chip { flex: none; padding: 3px 9px; border-radius: 100px; background: rgba(255, 201, 60, .18); color: var(--gold); font-weight: 800; font-size: 1.2rem; }
.CalBanner-Chev { flex: none; font-size: 2.2rem; line-height: 1; color: rgba(255, 255, 255, .6); }

/* ป๊อปอัป: ใช้ .Welcome (ฉากหลัง/กึ่งกลาง/เด้งเข้า) + ✕ แบบ Sheet · ปฏิทินข้างในไม่ต้องมีกรอบซ้อน */
.CalModal-Panel {
  width: min(94%, 420px);
  max-height: 92dvh;
  overflow-y: auto;
  padding: 18px 14px 16px;
  text-align: left;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(255, 201, 60, .2), transparent 60%),
    linear-gradient(170deg, #3b2a8f, #1d1650 75%);
  border-color: rgba(255, 214, 102, .45);
}
.CalModal .Sheet-Close { z-index: 2; background: rgba(255, 255, 255, .12); color: #fff; }
.CalModal .Cal { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.CalModal .Cal-Head { padding-right: 36px; }
.CalModal .CalDay { cursor: default; }
.CalModal .CalDay:active { transform: none; }
.CalModal .CalBig { cursor: default; }
.CalDay-Today { padding: 2px 10px; border-radius: 100px; background: var(--gold); color: #4a3202; font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.CalCheck {
  display: block; width: 100%;
  margin-top: 14px;
  padding: .75em 1em;
  border-radius: 100px;
  font-size: 1.6rem; font-weight: 800; letter-spacing: .02em;
  color: rgba(255, 255, 255, .85);
  background: rgba(214, 219, 240, .25);
  cursor: pointer;
  transition: transform .12s ease;
}
.CalCheck:disabled { cursor: default; }
.CalCheck:not(:disabled):active { transform: scale(.97); }
.CalCheck.is-ready {
  color: #fff;
  background: linear-gradient(180deg, #4ade80, var(--green) 60%, #15803d);
  box-shadow: 0 6px 16px rgba(21, 128, 61, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.CalCheck.is-link { color: #1b1f3b; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
@media (max-width: 360px) {
  .CalBanner-Title { font-size: 1.3rem; }
  .CalBanner-Line { font-size: 1.1rem; }
  .CalModal-Panel { padding: 16px 10px 14px; }
}

/* WALLET › อันดับนักแลกรางวัล (รอบ 5): โพเดียม #1–3 ทอง/เงิน/ทองแดง + แถว #4–20 · ยอดเป็นเงินตามภาษา */
.TopRd-Sub { margin: -4px var(--gutter) var(--gap); font-size: 1.2rem; color: var(--mut); }
.TopRd-Podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; margin: 6px var(--gutter) var(--gap); }
.TopRd-Pod {
  display: flex; flex-flow: column; align-items: center; gap: 2px;
  min-width: 0; padding: 12px 6px 10px;
  border-radius: 16px; text-align: center;
  background: var(--card); border: 1px solid var(--line);
}
.TopRd-Pod.is-top1 { padding-top: 18px; padding-bottom: 14px; background: linear-gradient(180deg, rgba(255, 201, 60, .32), rgba(255, 201, 60, .08)); border-color: rgba(255, 201, 60, .7); box-shadow: 0 8px 20px rgba(255, 201, 60, .18); }
.TopRd-Pod.is-top2 { background: linear-gradient(180deg, rgba(203, 213, 225, .28), rgba(203, 213, 225, .06)); border-color: rgba(203, 213, 225, .6); }
.TopRd-Pod.is-top3 { background: linear-gradient(180deg, rgba(217, 119, 6, .3), rgba(217, 119, 6, .06)); border-color: rgba(217, 119, 6, .6); }
.TopRd-Pod.is-me { outline: 2px solid var(--purple); outline-offset: 2px; }
.TopRd-Medal { font-size: 2.6rem; line-height: 1; }
.TopRd-Pod.is-top1 .TopRd-Medal { font-size: 3.2rem; }
.TopRd-PodName { max-width: 100%; font-size: 1.2rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.TopRd-PodName small, .TopRd-Row .Board-Name small:not(.TopRd-Cnt) { color: var(--mut); font-weight: 400; }
.TopRd-PodAmt { font-size: 1.6rem; font-weight: 800; color: var(--gold); white-space: nowrap; }
.TopRd-Pod.is-top1 .TopRd-PodAmt { font-size: 1.9rem; }
.TopRd-Cnt { display: block; font-size: 1rem; color: var(--mut); font-weight: 400; }
.TopRd-Amt { flex: none; font-size: 1.5rem; font-weight: 800; color: var(--gold); white-space: nowrap; }
/* 2026-09-30: ≈ USD ตัวเล็กใต้แต้ม (แต้มยังเป็นหลัก) */
.TopRd-AmtBox { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.TopRd-Usd { display: block; font-size: 1.05rem; font-weight: 500; color: var(--mut); white-space: nowrap; opacity: .85; }
.TopRd-Mine {
  margin: var(--gap) var(--gutter) 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(139, 92, 246, .16);
  border: 1px solid rgba(139, 92, 246, .55);
  font-size: 1.3rem; font-weight: 700; text-align: center;
}
.TopRd-Soon { font-size: 2rem; font-weight: 800; color: var(--gold); margin: 2px 0 4px; }

/* ปฏิทิน: Gmail เคยผูกกับบัญชีอื่น → ปุ่มเข้าสู่ระบบด้วยบัญชีนั้น + ข้อความ error (2026-09-29) */
.Cal-Note--err { color: #ffb4a8; font-weight: 700; }
.Cal-Signin { display: block; margin: 6px auto 0; font-size: 1.15rem; color: #cfe0ff; text-decoration: underline; background: none; border: 0; }

/* รอบ 7: การ์ด WALLET แสดงแต้มรางวัล — ไอคอนเหรียญรางวัลในกล่องหน้าตัวเลข (แทน 💵) */
.WalletCard-Gem { display: block; width: 30px; height: 30px; }
/* 2026-10-07: มูลค่าโดยประมาณของแต้มรางวัล (≈ ฿) ในหน้าอันดับ */
.Prize-Money { font-size: .82em; font-weight: 600; color: var(--mut); white-space: nowrap; }
.Prize-Cell .Prize-Money { font-size: .78rem; }

/* 2026-11-06 กิจกรรมสุดพิเศษ: แลกเหรียญ → แต้มรางวัล (hub.js coinrxBannerHtml/coinrxCard) */
.CoinrxBanner {
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 236, 160, .35), transparent 55%),
    linear-gradient(135deg, #8a5a12, #5a2f86 70%, #2e1a6b);
  border-color: rgba(255, 220, 120, .75);
  animation: calBannerGlow 2.4s ease-in-out infinite;
}
.CoinrxBanner .CalBanner-Title { color: #ffe9a6; }
.CoinrxBanner .CalBanner-Line { color: #fff; font-weight: 700; white-space: normal; }
.CoinrxBanner-Icon { background: linear-gradient(180deg, #fff4c4, #f5b41c); }
.CalBanner.CoinrxBanner {
  min-height: 120px; padding: 20px 22px 20px 28%; gap: 12px;
  border: 0; border-radius: 22px; box-shadow: none;
  background: url('hub-assets/button-special-event-20261106.webp') center / 100% 100% no-repeat;
  animation: none; transition: filter .18s ease, transform .18s ease;
}
.CoinrxBanner .CoinrxBanner-Icon { display: none; }
.CoinrxBanner .CalBanner-Title {
  color: #ffe6a1; font-size: 1.55rem; line-height: 1.45;
  white-space: normal; overflow: visible; text-shadow: 0 2px 4px #180820;
}
.CoinrxBanner .CalBanner-Line {
  margin-top: 5px; color: #f4e9ff; font-size: 1.18rem; line-height: 1.6;
  overflow: visible; overflow-wrap: anywhere; text-shadow: 0 1px 3px #180820;
}
.CoinrxBanner .CalBanner-Chev { color: #ffe5a1; font-size: 2.8rem; }
.CalBanner.CoinrxBanner:focus-visible { outline: 2px solid #ffe6a1; outline-offset: 3px; }
@media (hover: hover) { .CalBanner.CoinrxBanner:hover { filter: brightness(1.12); transform: translateY(-1px); } }
@media (max-width: 380px) {
  .CalBanner.CoinrxBanner { min-height: 112px; padding-right: 16px; gap: 6px; }
  .CoinrxBanner .CalBanner-Title { font-size: 1.35rem; }
  .CoinrxBanner .CalBanner-Line { font-size: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) { .CalBanner.CoinrxBanner { transition: none; } }
.QuestList--coinrx { margin-top: 12px; margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .CoinrxBanner { animation: none; } }
/* 2026-11-06 user: ระยะระหว่างแถวปฏิทิน/ชวนเพื่อนกับแบนเนอร์กิจกรรมห่างไป → ดึงขึ้น (ขอบใสในภาพปุ่มทั้งสองรวม ~19px) ให้ช่องว่างที่เห็น ≈ ช่องระหว่างปุ่มคู่ (~16-20px) */
#cal-slot:not(:empty) + #coinrx-slot > .CalBanner.CoinrxBanner { margin-top: -20px; }
