/* สามก๊กจอมยุทธ์ตัวจิ๋ว — official website. Comic-portal style: cream boards with ink outlines, bright tabs,
   the key art on top. Fonts: Mitr (headings) + Sarabun (text). */
:root {
  --ink: #3a2412; --ink2: #6a4424; --cream: #fff8e8; --cream2: #f6e7c4; --paper: #fffdf6; --gold: #f2b733; --gold2: #ffd96b; --red: #c8352e;
  --promo: #e8542a; --event: #2a8ad8; --update: #3aa85a; --notice: #8a5ad8; --muted: #8a6a4a;
  --sky1: #bfe6ff; --sky2: #fef4dc; --line: 3px solid var(--ink); --shadow: 0 6px 0 #3a241233, 0 14px 30px #3a24121f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 16px/1.6 Sarabun, system-ui, sans-serif; background: linear-gradient(180deg, var(--sky1), var(--sky2) 520px, #f8e6c0) fixed; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .18; background: radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 3px) 0 0 / 46px 46px, radial-gradient(circle at 70% 60%, #fff 0 1.5px, transparent 2.5px) 0 0 / 60px 60px; }
a { color: inherit; } h1, h2, h3, b.title { font-family: Mitr, sans-serif; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: min(560px, 46vw); padding-bottom: 54px; overflow: hidden; border-bottom: 5px solid var(--ink); background: #2a1a10; transition: min-height .3s; }
.hero.compact { min-height: 300px; }
.hero-art { position: absolute; inset: 0; background: url(/assets/ui/site/hero.webp) center 38% / cover no-repeat; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #1a0e06e0 0%, #1a0e0699 34%, transparent 58%), linear-gradient(0deg, #1a0e06aa 0%, transparent 30%); }
.hero-top { position: relative; display: flex; align-items: center; gap: 16px; padding-top: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; text-shadow: 0 2px 0 var(--ink), 0 0 10px #0008; }
.brand b { display: block; font: 700 22px/1.1 Mitr, sans-serif; } .brand small { display: block; font-size: 12px; letter-spacing: .08em; color: #ffe9b0; }
.seal { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: linear-gradient(#e8483a, #a8201a); border: 3px solid #ffd96b; font: 700 17px/1 serif; color: #fff4c8; box-shadow: 0 3px 0 var(--ink); text-shadow: none; }
.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--cream); border: var(--line); border-radius: 12px; box-shadow: 0 4px 0 #3a241255; }
.nav a { padding: 6px 12px; border-radius: 8px; text-decoration: none; font: 500 15px Mitr, sans-serif; color: var(--ink); }
.nav a:hover { background: #ffe9b0; } .nav a.on { background: var(--gold); box-shadow: inset 0 -3px 0 #c88a1a; }
.hero-copy { position: relative; margin-top: clamp(28px, 6vw, 88px); color: #fff; } .hero-copy > * { max-width: 540px; }
.hero.compact .hero-copy { margin-top: 26px; } .hero.compact .hero-copy p { display: none; } .hero.compact h1 { font-size: 34px; }
.hero h1 { margin: 0; font: 700 clamp(34px, 5vw, 58px)/1.08 Mitr, sans-serif; text-shadow: 0 3px 0 var(--ink), 0 0 18px #000a; }
.hero h1 em { font-style: normal; color: var(--gold2); }
.hero p { font-size: 17px; text-shadow: 0 2px 6px #000c; margin: 14px 0 20px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.online { font-size: 14px; color: #c8ffd8; text-shadow: 0 1px 3px #000; }
.play { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 12px; border-radius: 16px; text-decoration: none; color: #4a2400;
  background: linear-gradient(#fff2a8, var(--gold) 55%, #e8902a); border: var(--line); box-shadow: 0 5px 0 var(--ink), 0 0 24px #ffd36b88; transition: transform .12s; }
.play:hover { transform: translateY(-2px) scale(1.02); } .play:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.play-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-size: 16px; border: 2px solid var(--ink); }
.play b { display: block; font: 700 20px/1.1 Mitr, sans-serif; } .play small { display: block; font-size: 12px; color: #7a4a10; }
.play.big { padding: 14px 28px 14px 14px; } .play.big b { font-size: 26px; } .play.big .play-ico { width: 50px; height: 50px; font-size: 20px; }

/* ---------------- boards ---------------- */
.page { position: relative; margin-top: -40px; padding-bottom: 40px; }
.card { background: var(--paper); border: var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; }
.card h2 { margin: 0 0 10px; font-size: 20px; }
.home { display: grid; grid-template-columns: 250px minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.col-l, .col-m, .col-r { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.start { background: linear-gradient(#fff6d8, var(--paper)); } .start ol { margin: 0 0 14px; padding-left: 20px; } .start li { margin: 4px 0; } .start .play { width: 100%; justify-content: center; }
.tiles { display: flex; flex-direction: column; gap: 10px; }
.tile { position: relative; display: block; padding: 12px 16px; border: var(--line); border-radius: 14px; text-decoration: none; color: #fff; box-shadow: 0 4px 0 var(--ink); transform: rotate(-1.2deg); transition: transform .15s; text-shadow: 0 2px 0 #0005; }
.tile:nth-child(even) { transform: rotate(1.2deg); } .tile:hover { transform: rotate(0) scale(1.03); }
.tile b { display: block; font: 700 21px/1.2 Mitr, sans-serif; } .tile small { font-size: 13px; opacity: .95; }
.t0 { background: linear-gradient(135deg, #ff9a3a, #e8542a); } .t1 { background: linear-gradient(135deg, #5ab8ff, #2a6ad8); } .t2 { background: linear-gradient(135deg, #ff6a7a, #c8352e); }
.t3 { background: linear-gradient(135deg, #7ad86a, #2a9a4a); } .t4 { background: linear-gradient(135deg, #d8a84a, #8a5a1a); } .t5 { background: linear-gradient(135deg, #b88aff, #6a3ad8); } .t6 { background: linear-gradient(135deg, #4ad8c8, #1a8a8a); }

.slider { position: relative; aspect-ratio: 16 / 7; border: var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #2a1a10; }
.slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .6s; text-decoration: none; color: #fff; }
.slide.on { opacity: 1; z-index: 1; }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, #000c); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.slide-cap b { font: 600 clamp(18px, 2.4vw, 26px)/1.25 Mitr, sans-serif; text-shadow: 0 2px 4px #000; } .slide-cap small { font-size: 14px; opacity: .9; }
.dots { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: flex; gap: 6px; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #fff6; cursor: pointer; padding: 0; } .dots button.on { background: var(--gold); }

.board { padding: 0; overflow: hidden; }
.bhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px 0; background: linear-gradient(#ffe9b0, var(--cream2)); border-bottom: var(--line); }
.bhead h2 { margin: 0 0 10px; }
.btabs { display: flex; gap: 4px; flex-wrap: wrap; }
.btab { padding: 6px 14px 5px; border: var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; text-decoration: none; font: 500 15px Mitr, sans-serif; background: #f2dcae; color: var(--ink); position: relative; top: 3px; }
.btab.on { background: var(--paper); } .btab.promo.on { color: var(--promo); } .btab.event.on { color: var(--event); } .btab.update.on { color: var(--update); } .btab.notice.on { color: var(--notice); }
.nlist { padding: 6px 12px 12px; }
.nrow { display: grid; grid-template-columns: 98px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 2px dashed #e8d4a8; text-decoration: none; }
.nrow:hover { background: #fff3d0; border-radius: 8px; }
.nt { font-weight: 600; line-height: 1.4; } .nd { color: var(--muted); font-size: 14px; }
.pin { margin-right: 4px; } .new { font-style: normal; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.cat { display: inline-block; justify-self: start; text-align: center; padding: 1px 9px; line-height: 1.5; border-radius: 99px; font: 500 13px Mitr, sans-serif; color: #fff; border: 2px solid var(--ink); background: #888; white-space: nowrap; }
.cat.promo { background: var(--promo); } .cat.event { background: var(--event); } .cat.update { background: var(--update); } .cat.notice { background: var(--notice); }
.more { display: block; text-align: right; padding: 10px 6px 0; font-weight: 600; color: var(--ink2); }
.promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pcard { position: relative; aspect-ratio: 16 / 9; border: var(--line); border-radius: 14px; background: center / cover; box-shadow: var(--shadow); overflow: hidden; text-decoration: none; }
.pcard span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; color: #fff; font: 600 15px Mitr, sans-serif; background: linear-gradient(transparent, #000b); }

.side h2 { font-size: 18px; }
.live { background: linear-gradient(#fff0e0, var(--paper)); }
.ev { padding: 8px 10px; margin-top: 8px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.ev-m { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; } .ev-m span { padding: 0 8px; border-radius: 8px; background: var(--red); color: #fff; font: 600 14px Mitr, sans-serif; } .ev small { color: var(--muted); }
.fashion { background: linear-gradient(#e8f6ff, var(--paper)); }
.fa-pics { display: flex; justify-content: center; gap: 4px; margin: -4px 0 6px; } .fa-row { padding: 6px 0; border-top: 2px dashed #d8e4f0; } .fa-row b { display: block; } .fa-row small { color: #2a6ad8; font-weight: 600; }

/* ---------------- article ---------------- */
.single { max-width: 920px; margin: 0 auto; }
.article h1 { margin: 6px 0 10px; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; }
.ameta { display: flex; gap: 10px; align-items: center; margin-top: 8px; } .back { font-weight: 600; color: var(--ink2); text-decoration: none; }
.acover { display: block; width: 100%; border-radius: 12px; border: var(--line); margin: 8px 0 14px; }
.lead { font-size: 18px; font-weight: 600; color: var(--ink2); }
.md p { margin: 0 0 8px; } .md h3 { margin: 16px 0 6px; font-size: 20px; } .md ul { margin: 0 0 10px; padding-left: 22px; } .md .gap { height: 6px; } .md a { color: var(--event); word-break: break-all; }
.acta { margin-top: 20px; }

/* ---------------- guide ---------------- */
.guide { padding: 0 18px 22px; }
.gtabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 -18px 16px; padding: 12px 14px 0; background: linear-gradient(#ffe9b0, var(--cream2)); border-bottom: var(--line); border-radius: 13px 13px 0 0; }
.gtabs a { padding: 7px 14px 6px; border: var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; text-decoration: none; font: 500 15px Mitr, sans-serif; background: #f2dcae; position: relative; top: 3px; }
.gtabs a.on { background: var(--paper); }
.gh { margin: 18px 0 10px; } .gh h2 { margin: 0; font-size: 24px; } .gh p { margin: 2px 0 0; }
.steps { padding-left: 24px; } .steps li { margin: 6px 0; } .steps p { margin: 2px 0 0; }
.wheel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; } .wcell { padding: 10px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; } .wcell small { display: block; margin-top: 4px; }
.el { display: inline-block; padding: 1px 9px; border-radius: 99px; color: #fff; font: 500 13px Mitr, sans-serif; border: 2px solid var(--ink); }
.tag { display: inline-block; padding: 1px 9px; border-radius: 99px; background: #f2dcae; border: 2px solid var(--ink); font-size: 13px; }
.tbl { width: 100%; border-collapse: collapse; margin: 6px 0 10px; } .tbl td, .tbl th { padding: 8px 10px; border-bottom: 2px dashed #e8d4a8; text-align: left; vertical-align: top; }
.tbl.sys th { width: 170px; font-family: Mitr, sans-serif; font-weight: 500; }
kbd { display: inline-block; padding: 1px 8px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; font: 600 13px Mitr, sans-serif; box-shadow: 0 2px 0 var(--ink); }
.cls { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 14px; }
.cls-pic { display: grid; place-items: center; background: radial-gradient(#fff6d8, #f2dcae); border: 2px solid var(--ink); border-radius: 14px; padding: 6px; }
.cls h3 { margin: 0; font-size: 24px; } .cls h3 small { font: 400 14px Sarabun, sans-serif; color: var(--muted); }
.skl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; margin-top: 8px; }
.sk { display: flex; gap: 8px; padding: 6px 8px; border: 2px solid #e8d4a8; border-radius: 10px; background: #fff; } .sk img { width: 32px; height: 32px; flex: none; } .sk p { margin: 2px 0 0; font-size: 14px; } .sk small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { padding: 3px 12px; border: 2px solid var(--ink); border-radius: 99px; text-decoration: none; background: #fff; font: 500 14px Mitr, sans-serif; } .chip.on { background: var(--gold); }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.gcard { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 10px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: inherit; transition: transform .12s; }
.gcard:hover { transform: translateY(-3px); box-shadow: 0 6px 0 #3a241233; }
.gcard img { width: 96px; height: 96px; border-radius: 12px; background: radial-gradient(#fff6d8, #f2dcae); }
.gcard b { font-family: Mitr, sans-serif; } .gcard small { color: var(--muted); font-size: 12.5px; text-align: center; line-height: 1.3; }
.gtags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 4px; } .cls-info .gtags { justify-content: flex-start; margin: 6px 0; }
.rar { display: inline-block; line-height: 1.55; padding: 0 8px; border-radius: 99px; font: 600 12.5px Mitr, sans-serif; background: #ddd; border: 2px solid var(--ink); }
.r-SSRp { background: linear-gradient(#fff6c8, #ffe28a); } .r-SSRp .rar { background: linear-gradient(90deg, #ff5a8a, #ffb02a, #5ac8ff); color: #fff; }
.r-SSR .rar { background: #ffb02a; } .r-SR .rar { background: #b88aff; color: #fff; } .r-R .rar { background: #5ab8ff; color: #fff; } .r-A .rar { background: #7ad86a; } .r-B .rar { background: #e0d8c8; }
.pop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: #1a0e06aa; }
.popbox { position: relative; width: min(760px, 100%); max-height: 88vh; overflow: auto; } .popbox .cls { margin: 0; }
.x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: var(--red); color: #fff; cursor: pointer; font-size: 16px; }
.pet { display: grid; grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; margin-bottom: 12px; }
.pet h3 { margin: 0; font-size: 21px; } .pet p { margin: 4px 0; font-size: 14.5px; } .src { color: #2a8a3a; font-weight: 600; }
.pform { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 6px; border: 2px solid #e8d4a8; border-radius: 12px; background: radial-gradient(#fffaf0, #fff); }
.pform b { font: 500 14px Mitr, sans-serif; } .pform small { font-size: 12.5px; color: #b8401a; font-weight: 600; }
.reg { margin: 20px 0 8px; font-size: 21px; padding-left: 10px; border-left: 6px solid var(--gold); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.map { padding: 12px; box-shadow: none; } .map.town { background: #f2fbff; } .mh { display: flex; justify-content: space-between; gap: 8px; align-items: center; } .mh b { font: 600 18px Mitr, sans-serif; }
.map p { margin: 6px 0; font-size: 14px; color: var(--ink2); }
.mons { display: flex; flex-wrap: wrap; gap: 4px; } .mon { padding: 1px 8px; border-radius: 8px; background: #f6ecd6; font-size: 13px; } .mon.boss { background: var(--red); color: #fff; font-weight: 600; }
.mall { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.mitem { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 2px solid #e8d4a8; border-radius: 12px; background: #fff; }
.mitem img { width: 48px; height: 48px; } .mitem small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.mtag { margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--red); color: #fff; font-size: 11.5px; } .price { font: 600 15px Mitr, sans-serif; color: #2a6ad8; white-space: nowrap; }

.foot { margin-top: 20px; padding: 22px 0; background: var(--ink); color: #f6e7c4; font-size: 14px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) { .home { grid-template-columns: 230px minmax(0, 1fr); } .col-r { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
@media (max-width: 760px) {
  .home { grid-template-columns: 1fr; } .col-l { order: 2; } .col-m { order: 1; } .col-r { order: 3; } .tiles { display: grid; grid-template-columns: 1fr 1fr; } .tile, .tile:nth-child(even) { transform: none; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; } .nav a { white-space: nowrap; }
  .hero { min-height: 520px; } .hero-art { background-position: 62% center; } .hero-art::after { background: linear-gradient(0deg, #1a0e06ee 0%, #1a0e0688 55%, #1a0e0633 100%); }
  .nrow { grid-template-columns: 76px minmax(0, 1fr); } .nd { display: none; }
  .cls { grid-template-columns: 1fr; } .cls-pic { justify-self: start; } .pet { grid-template-columns: 1fr 1fr 1fr; } .pet-info { grid-column: 1 / -1; }
  .tbl.sys th { width: 110px; }
}

/* =====================================================================================================
   THEME v2 — jade & gold (matches the approved mock-up): 3KOKS emblem, hexagonal jade play button with
   cloud scrolls, jade tiles with gold icons, parchment boards framed in gold with corner brackets.
   ===================================================================================================== */
:root { --gold-a: #ffe9a0; --gold-b: #e8b84a; --gold-c: #a8701a; --jade-a: #2f8f6a; --jade-b: #145a42; --jade-c: #0a3a2a; --parch: #f6ecd4; --parch2: #efe0bc; --frame: #b8862e; }
body { background: var(--parch) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='90'%3E%3Cpath d='M20 60q-8-10 4-14q0-12 14-10q8-10 20-2q12-4 16 8q12 0 12 12' fill='none' stroke='%23d8c49a' stroke-width='2' opacity='.45'/%3E%3C/svg%3E"); }
body::before { display: none; }
.hero { border-bottom: 0; background: #1a120a; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(var(--gold-a), var(--gold-b) 50%, var(--gold-c)); box-shadow: 0 -2px 0 #3a2210 inset; }
.hero-art::after { background: linear-gradient(90deg, #120a04e8 0%, #120a04a0 32%, transparent 56%), linear-gradient(0deg, #120a04b0 0%, transparent 34%); }
/* emblem + brand */
.brand { gap: 6px; } .brand .emblem { display: block; width: 210px; margin: -6px -10px -18px -14px; filter: drop-shadow(0 6px 10px #000a); }
.brand .emblem svg { width: 100%; height: auto; display: block; }
.brand-txt b { font-size: 27px; color: #fff4d0; text-shadow: 0 2px 0 #3a2210, 1px 0 0 #3a2210, -1px 0 0 #3a2210, 0 -1px 0 #3a2210, 0 0 12px #000a; } .brand-txt small { font-size: 14px; letter-spacing: .06em; color: #ffe08a; }
.seal { display: none; }
/* nav */
.nav { align-self: flex-start; padding: 5px; background: linear-gradient(#fffaf0, #f2e2bc); border: 2px solid var(--frame); border-radius: 10px; box-shadow: inset 0 0 0 2px #fff8e4, 0 0 0 2px #3a2210, 0 5px 12px #0006; }
.nav a { font-weight: 500; color: #3a2210; } .nav a:hover { background: #fbe8b8; }
.nav a.on { background: linear-gradient(#e8483a, #a8201a); color: #ffe9a0; box-shadow: inset 0 0 0 1.5px #ffd36b, 0 2px 0 #5a0a06; text-shadow: 0 1px 0 #5a0a06; }
/* play button: cloud · gold hexagon around a jade hexagon · cloud */
.play { position: relative; display: inline-flex; align-items: center; gap: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-decoration: none; filter: drop-shadow(0 6px 8px #0008); }
.play:hover { transform: translateY(-2px) scale(1.02); } .play:active { transform: translateY(1px); box-shadow: none; }
.play .cloud { position: relative; z-index: 2; flex: none; } .play .cloud:first-child { margin-right: -30px; margin-top: 26px; } .play .cloud:last-child { margin-left: -30px; margin-top: -30px; }
.play-hex { position: relative; isolation: isolate; display: flex; align-items: center; gap: 14px; padding: 12px 40px 12px 30px; min-height: 76px;
  background: linear-gradient(var(--gold-a), var(--gold-b) 45%, var(--gold-c)); clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0 50%); }
.play-hex::before { content: ''; position: absolute; inset: 5px 6px; z-index: -1; clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0 50%);
  background: radial-gradient(ellipse at 40% 20%, var(--jade-a), var(--jade-b) 60%, var(--jade-c)); box-shadow: inset 0 0 0 2px #0a3a2a; }
.play-hex::after { content: ''; position: absolute; inset: 9px 12px; z-index: -1; clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0 50%); border: 1.5px solid #f2c45a88; background: repeating-linear-gradient(135deg, transparent 0 14px, #ffffff08 14px 16px); }
.play-ico { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff6a4a, #c8201a 60%, #7a0e08); box-shadow: 0 0 0 3px var(--gold-b), 0 0 0 5px #3a2210, 0 3px 6px #0008; border: 0; }
.play-ico i { display: block; width: 18px; height: 22px; margin-left: 5px; background: linear-gradient(var(--gold-a), var(--gold-b)); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.play-txt b { display: block; font: 700 28px/1.05 Mitr, sans-serif; color: #ffe9a0; text-shadow: 0 2px 0 #3a2210, 0 0 10px #ffd36b66; } .play-txt small { display: block; font-size: 13px; color: #d8f0e0; margin-top: 2px; }
.play.big .play-hex { min-height: 92px; padding: 14px 52px 14px 38px; } .play.big .play-ico { width: 62px; height: 62px; } .play.big .play-txt b { font-size: 34px; }
.start .play { width: calc(100% + 24px); margin: 0 -12px; justify-content: center; } .start .play .cloud { display: none; } .start .play-hex { width: 100%; padding: 10px 22px; min-height: 70px; } .start .play-txt b { font-size: 22px; } .start .play-ico { width: 44px; height: 44px; } .start .play-txt small { font-size: 11.5px; }
/* boards: parchment framed in gold with corner brackets */
.card { position: relative; border: 2px solid var(--frame); border-radius: 8px; background: linear-gradient(#fffbf2, #fbf1dc);
  box-shadow: inset 0 0 0 2px #fffaf0, inset 0 0 0 3.5px #e2c27a, 0 0 0 2px #3a2210, 0 8px 18px #3a24122e; }
.card::after { content: ''; position: absolute; inset: 4px; pointer-events: none; z-index: 3;
  --c: var(--frame);
  background: linear-gradient(var(--c), var(--c)) top left / 16px 3px, linear-gradient(var(--c), var(--c)) top left / 3px 16px, linear-gradient(var(--c), var(--c)) top right / 16px 3px, linear-gradient(var(--c), var(--c)) top right / 3px 16px,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 3px, linear-gradient(var(--c), var(--c)) bottom left / 3px 16px, linear-gradient(var(--c), var(--c)) bottom right / 16px 3px, linear-gradient(var(--c), var(--c)) bottom right / 3px 16px;
  background-repeat: no-repeat; }
.board { overflow: visible; } .board .bhead { border-radius: 6px 6px 0 0; }
.bhead { background: linear-gradient(#fbecc4, #f2dcaa); border-bottom: 2px solid var(--frame); box-shadow: inset 0 -1px 0 #fff4d8; }
.btab, .gtabs a { border: 2px solid var(--frame); border-bottom: 0; background: linear-gradient(#fff4d8, #f0dcb0); font-size: 14.5px; top: 2px; box-shadow: inset 0 0 0 1.5px #fffaf0; }
.btab.on, .gtabs a.on { background: #fffbf2; color: #8a1e14; }
.gtabs { background: linear-gradient(#fbecc4, #f2dcaa); border-bottom: 2px solid var(--frame); border-radius: 6px 6px 0 0; }
.nrow { border-bottom: 1px dashed #d8bc84; }
.cat { border: 1.5px solid #3a2210; box-shadow: inset 0 0 0 1px #ffffff55; }
.slider, .pcard { border: 3px solid var(--frame); border-radius: 10px; box-shadow: inset 0 0 0 2px #ffe9a0, 0 0 0 2px #3a2210, 0 8px 18px #3a24122e; }
.dots button { border-color: #ffe9a0; background: #ffffff55; } .dots button.on { background: var(--gold-b); }
/* jade tiles with gold icons */
.tiles { gap: 9px; }
.tile, .tile:nth-child(even) { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; transform: none; border: 2px solid var(--gold-b); border-radius: 8px; color: #fff4d0;
  background: radial-gradient(ellipse at 30% 0%, #2f8f6a, #145a42 55%, #0a3a2a); box-shadow: inset 0 0 0 2px #0a3a2a, inset 0 0 0 3.5px #f2c45a66, 0 0 0 2px #3a2210, 0 4px 8px #0005; text-shadow: 0 2px 0 #0a2a1a; }
.tile.red { background: radial-gradient(ellipse at 30% 0%, #e8483a, #a8201a 55%, #5a0a06); box-shadow: inset 0 0 0 2px #5a0a06, inset 0 0 0 3.5px #f2c45a66, 0 0 0 2px #3a2210, 0 4px 8px #0005; }
.tile:hover { transform: translateX(3px); filter: brightness(1.08); }
.tile .ico { flex: none; filter: drop-shadow(0 2px 2px #0008); } .tile-txt { flex: 1; min-width: 0; } .tile b { font-size: 21px; color: #ffe9a0; } .tile small { color: #e8f4ec; }
.chev { font: 700 30px/1 Mitr, sans-serif; color: var(--gold-b); text-shadow: 0 2px 0 #3a2210; }
.t0, .t1, .t2, .t3, .t4, .t5, .t6 { background: none; }
/* side boxes */
.live { background: linear-gradient(#fff7e8, #fbefd6); } .fashion { background: linear-gradient(#eef8ff, #fbf4e4); }
.start { background: linear-gradient(#fffbf0, #f8ecd0); }
/* footer ornaments */
.foot-orn { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; margin-bottom: -18px; position: relative; z-index: 1; pointer-events: none; }
.foot { margin-top: 0; border-top: 6px solid var(--gold-b); box-shadow: inset 0 3px 0 #3a2210; background: #2a1a0e; }
.gcard, .pform, .mitem, .sk, .wcell, .ev { border-color: #d8bc84; }
@media (max-width: 760px) {
  .brand .emblem { width: 112px; margin: -4px -6px -12px -8px; } .brand-txt b { font-size: 19px; } .brand-txt small { font-size: 11px; }
  .play .cloud { display: none; } .play.big .play-hex { padding: 12px 34px 12px 24px; min-height: 80px; } .play.big .play-txt b { font-size: 28px; }
  .foot-orn .cloud svg { width: 90px; height: 45px; }
}
