/* ICE NAKA ARENA · ร่างแบบเว็บไซต์โดย App Alive
   Display: Chakra Petch · Body: Anuphan · motion ทั้งหมดปิดเมื่อ prefers-reduced-motion */

:root {
  --night: #06182b;
  --deep: #0b2743;
  --rinkside: #050f1c;
  --ice: #eef7fb;
  --frost: #d3e9f3;
  --cyan: #14a8cf;
  --cyan-bright: #6fe0f5;
  --blue-line: #1f5fd0;
  --red-line: #e2283c;
  --ink: #0b2236;
  --ink-soft: #46627a;
  --amber: #f2b33d;
  --display: "Chakra Petch", "Anuphan", system-ui, sans-serif;
  --body: "Anuphan", "Sarabun", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--night); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--cyan-bright); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 64px; }

.wrap { max-width: 1200px; margin-inline: auto; }

/* ---------- ปุ่ม ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 2px solid transparent; border-radius: 10px; background: var(--cyan-bright); color: var(--night); font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .01em; white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); background: #fff; }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn-ghost:hover { background: transparent; border-color: var(--cyan-bright); color: var(--cyan-bright); }
.btn-red { background: var(--red-line); color: #fff; }
.btn-red:hover { background: #fff; color: var(--rinkside); }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: .92rem; }
.sec-ice .btn, .sec-white .btn { background: var(--night); color: #fff; }
.sec-ice .btn:hover, .sec-white .btn:hover { background: var(--blue-line); }
.link { background: none; border: 0; padding: 4px 0; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- แถบนำทาง ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px var(--gutter); color: #fff; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(6, 24, 43, .94); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #fff; object-fit: cover; }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; letter-spacing: .08em; white-space: nowrap; }
.brand-text small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .42em; color: var(--cyan-bright); }
.nav-links { display: flex; gap: clamp(14px, 2vw, 28px); font-size: .96rem; }
.nav-links a { position: relative; padding: 8px 0; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--cyan-bright); transition: right .25s var(--ease); }
.nav-links a:hover::after { right: 0; }
.nav-side { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: transparent; font-family: var(--display); font-size: .8rem; font-weight: 600; cursor: pointer; }
.lang b, .lang span { padding: 3px 9px; border-radius: 999px; font-weight: 600; transition: background .2s, color .2s; }
.lang b { background: #fff; color: var(--night); }
html[lang="en"] .lang b { background: transparent; color: #fff; }
html[lang="en"] .lang span { background: #fff; color: var(--night); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn i:first-child { top: 17px; } .menu-btn i:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 250vh; background: var(--night); color: #fff; }
.hero-scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 108%, rgba(111, 224, 245, .22), transparent 60%),
    radial-gradient(60% 50% at 85% 0%, rgba(31, 95, 208, .35), transparent 70%),
    linear-gradient(180deg, #06182b 0%, #0a2a4a 100%); }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7; }

.hero-copy { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); top: clamp(96px, 15vh, 150px); max-width: 720px; opacity: calc(1 - var(--pa, 0)); transform: translateY(calc(var(--pa, 0) * -48px)); }
.hero-copy.is-off { pointer-events: none; visibility: hidden; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: .86rem; letter-spacing: .08em; color: var(--cyan-bright); }
.hero h1 { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 6.2vw, 5rem); line-height: 1.16; letter-spacing: -.01em; text-wrap: balance; }
html[lang="en"] .hero h1 { text-transform: uppercase; line-height: 1.02; letter-spacing: 0; }
.lead { margin-top: 18px; max-width: 34em; font-size: clamp(1rem, 1.5vw, 1.2rem); color: #cfe6f2; }
.hero-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.status { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(6, 24, 43, .55); font-size: .95rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #8aa3b5; flex: none; }
.status[data-k="live"] .dot { background: #4ee29a; animation: pulse 1.6s ease-out infinite; }
.status[data-k="resurface"] .dot, .status[data-k="before"] .dot { background: var(--amber); }
.status[data-k="closed"] .dot { background: var(--red-line); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(78, 226, 154, .7); } 100% { box-shadow: 0 0 0 12px rgba(78, 226, 154, 0); } }

.rink-wrap { position: absolute; z-index: 2; left: 50%; top: 50%; width: 1040px; will-change: transform; transform: translate(-50%, -50%); }
.rink { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .45)); }
.boards { stroke: #fff; stroke-width: 6; }
.ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) var(--d, 0s) forwards; }
.ln.red { stroke: var(--red-line); } .ln.blue { stroke: var(--blue-line); }
.ln { stroke-width: 2.2; } .ln.thin { stroke-width: 1.6; } .ln.thick { stroke-width: 5; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.crease { fill: rgba(31, 95, 208, .22); stroke: var(--red-line); stroke-width: 1.4; }
.dots circle { fill: var(--red-line); opacity: 0; animation: fadein .5s 1.4s forwards; }
@keyframes fadein { to { opacity: 1; } }
.dir path { stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .4s; }
.dir path:nth-child(odd) { stroke-dasharray: 7 7; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.rink[data-mode="live"] .dir path { opacity: .55; }
.rink[data-dir="ccw"] .dir { transform: scaleX(-1); transform-origin: 300px 150px; }
.sk { transition: opacity .5s; }
.rink:not([data-mode="live"]) .sk { opacity: 0; }
.zamboni { opacity: 0; transition: opacity .5s; }
.zamboni rect { fill: var(--amber); } .zamboni .cab { fill: var(--ink); }
.rink[data-mode="resurface"] .zamboni { opacity: 1; }

.hero-rounds { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: clamp(88px, 13vh, 128px) var(--gutter) clamp(28px, 6vh, 56px); opacity: var(--pb, 0); transform: translateY(calc((1 - var(--pb, 0)) * 26px)); pointer-events: none; }
.hr-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.8vw, 2.1rem); line-height: 1.3; text-align: center; text-wrap: balance; }
.hr-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(100%, 980px); }
.hr-chips li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: rgba(6, 24, 43, .6); transition: border-color .3s, background .3s, opacity .3s; }
.hr-chips b { grid-row: span 2; font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--cyan-bright); }
.hr-chips .t { font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.3; white-space: nowrap; }
.hr-chips .d { font-size: .82rem; line-height: 1.4; color: #b9d3e2; }
.hr-chips li[data-st="live"] { border-color: #4ee29a; background: rgba(78, 226, 154, .14); }
.hr-chips li[data-st="live"] b { color: #4ee29a; }
.hr-chips li[data-st="done"] { opacity: .5; }
.hr-chips li[data-st="closed"] { opacity: .6; border-style: dashed; }
.hr-chips li[data-st="closed"] .t { text-decoration: line-through; }

.scroll-hint { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: .8rem; letter-spacing: .08em; color: #b9d3e2; }
.scroll-hint i { width: 2px; height: 22px; background: linear-gradient(var(--cyan-bright), transparent); animation: hint 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.center-logo { opacity: 0; animation: fadein .8s 1.3s forwards; }
.center-ring { stroke: var(--blue-line); stroke-width: 2.2; }

/* ---------- ส่วนเนื้อหา ---------- */
.sec { position: relative; padding: clamp(72px, 10vw, 136px) var(--gutter); }
.sec-ice { background: var(--ice); }
.sec-white { background: #fff; }
.sec-night { background: var(--night); color: #fff; }
.sec-cup { background: var(--rinkside); color: #fff; padding-inline: 0; overflow: hidden; }
.sec-cup > .wrap { padding-inline: var(--gutter); max-width: calc(1200px + var(--gutter) * 2); }
.sec-cup::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--red-line) 0 33%, #fff 33% 66%, var(--blue-line) 66%); }

.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-line); }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--red-line); }
.sec-night .kicker { color: var(--cyan-bright); }
.kicker-red { color: #ff8c98; }
h2 { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 3.3rem); line-height: 1.2; letter-spacing: -.005em; text-wrap: balance; }
.sec-lead { margin-top: 14px; font-size: 1.08rem; color: var(--ink-soft); max-width: 40em; }
.sec-night .sec-lead, .sec-cup .sec-lead { color: #b9d3e2; }
h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.3; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- รอบเล่น ---------- */
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-inline: -2px; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.dates button { position: relative; flex: none; min-width: 68px; padding: 8px 12px 10px; border: 1.5px solid var(--frost); border-radius: 12px; background: #fff; cursor: pointer; text-align: center; line-height: 1.25; transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease); }
.dates button:hover { transform: translateY(-2px); border-color: var(--cyan); }
.dates button small { display: block; font-size: .76rem; color: var(--ink-soft); }
.dates button b { display: block; font-family: var(--display); font-size: 1.35rem; }
.dates button[aria-selected="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.dates button[aria-selected="true"] small { color: var(--cyan-bright); }
.dates button.has-close::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-line); }

.daybar-box { margin-top: 8px; }
.daybar { position: relative; height: 62px; border-radius: 14px; background: #fff; border: 1.5px solid var(--frost); overflow: hidden; }
.blk { position: absolute; top: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--frost); font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); transition: background .3s, color .3s, opacity .3s; }
.blk[data-st="live"] { background: var(--night); color: #fff; }
.blk[data-st="next"], .blk[data-st="open"] { background: #bfe6f4; }
.blk[data-st="done"] { opacity: .45; }
.blk[data-st="closed"] { background: repeating-linear-gradient(-45deg, #fbdfe2 0 6px, #fff 6px 12px); color: #b0182a; }
.gap { position: absolute; top: 8px; bottom: 8px; background: repeating-linear-gradient(90deg, rgba(242, 179, 61, .55) 0 3px, transparent 3px 6px); }
.needle { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red-line); transition: left .4s var(--ease); }
.needle::after { content: attr(data-t); position: absolute; top: 2px; left: 6px; padding: 0 6px; border-radius: 4px; background: var(--red-line); color: #fff; font-family: var(--display); font-size: .72rem; line-height: 1.5; white-space: nowrap; }
.needle.flip::after { left: auto; right: 6px; }
.ticks { position: relative; height: 22px; margin-top: 4px; font-family: var(--display); font-size: .76rem; color: var(--ink-soft); }
.ticks span { position: absolute; transform: translateX(-50%); }
.ticks i { font-style: normal; }

.rcards { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rcard { position: relative; padding: 18px 18px 16px; border-radius: 16px; background: #fff; border: 1.5px solid var(--frost); transition: transform .3s var(--ease), border-color .3s, background .3s, color .3s; }
.rcard:hover { transform: translateY(-4px); }
.rcard .n { font-family: var(--display); font-size: .84rem; font-weight: 600; letter-spacing: .08em; color: var(--ink-soft); }
.rcard .time { margin-top: 2px; font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.1vw, 1.7rem); line-height: 1.25; }
.rcard .meta { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); }
.rcard .meta svg { width: 20px; height: 20px; flex: none; }
.rcard .badge { margin-top: 12px; display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--ice); font-size: .8rem; font-weight: 600; }
.rcard[data-st="live"] { background: var(--night); border-color: var(--night); color: #fff; }
.rcard[data-st="live"] .n, .rcard[data-st="live"] .meta { color: #b9d3e2; }
.rcard[data-st="live"] .badge { background: #4ee29a; color: var(--night); }
.rcard[data-st="next"] .badge { background: var(--amber); }
.rcard[data-st="done"] { opacity: .55; }
.rcard[data-st="closed"] { border-style: dashed; border-color: #f0a5ae; background: #fff7f8; }
.rcard[data-st="closed"] .time { text-decoration: line-through; color: #8a5560; }
.rcard[data-st="closed"] .badge { background: var(--red-line); color: #fff; }
.closure-note { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: #fff0f1; color: #8f1423; font-size: .96rem; }

.resurf { margin-top: 26px; display: flex; align-items: center; gap: 16px; font-size: .92rem; color: var(--ink-soft); }
.resurf-track { position: relative; flex: 1; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #fff, var(--frost)); overflow: hidden; }
.resurf-z { position: absolute; top: 0; bottom: 0; left: 0; width: 34px; border-radius: 4px; background: var(--amber); animation: zam 6s linear infinite; }
.resurf-z::before { content: ""; position: absolute; right: 100%; top: 0; bottom: 0; width: 180px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95)); }
@keyframes zam { from { transform: translateX(-40px); } to { transform: translateX(1200px); } }

.demo { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border: 1.5px dashed #9cc4d6; border-radius: 12px; font-size: .9rem; color: var(--ink-soft); }
.demo label { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.demo b { color: var(--ink); }
.demo input[type="range"] { flex: 1 1 220px; min-width: 180px; accent-color: var(--blue-line); }
.demo output { font-family: var(--display); font-weight: 700; color: var(--ink); min-width: 4.5em; }

.rates { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: clamp(20px, 3vw, 44px); }
.rate h3 { padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.plist > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #c4dde9; }
.plist dt { font-weight: 500; line-height: 1.4; }
.plist dt small { display: block; font-weight: 400; font-size: .84rem; color: var(--ink-soft); }
.plist dd { white-space: nowrap; font-size: .92rem; color: var(--ink-soft); }
.plist dd b { font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--ink); }
.plist-sm dd { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.fine { margin-top: 12px; font-size: .88rem; color: var(--ink-soft); }
.promo { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; padding: 12px 16px; border-radius: 12px; background: var(--red-line); color: #fff; line-height: 1.4; }
.promo b { font-family: var(--display); letter-spacing: .04em; }
.promo strong { font-family: var(--display); font-size: 1.7rem; }

.steps { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 3px solid var(--blue-line); }
.steps li { padding: 20px 20px 0 0; }
.steps b { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-top: -38px; border-radius: 50%; background: var(--blue-line); color: #fff; font-family: var(--display); font-size: 1rem; }
.steps h4 { margin-top: 10px; font-family: var(--display); font-size: 1.12rem; }
.steps p { margin-top: 4px; font-size: .93rem; color: var(--ink-soft); max-width: 22em; }

/* ---------- เรียนสเก็ต ---------- */
.sec-night::after { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; border: 3px solid rgba(226, 40, 60, .28); pointer-events: none; }
.sec-night { overflow: hidden; }
.learn { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.tabs { display: grid; }
.tabs button { display: block; width: 100%; padding: 18px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); background: none; text-align: left; cursor: pointer; color: #9fbccd; transition: color .25s; }
.tabs button > span { transition: transform .3s var(--ease); }
.tabs button span { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.2; }
.tabs button small { display: block; margin-top: 2px; font-family: var(--body); font-weight: 400; font-size: .92rem; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(var(--cyan-bright), var(--cyan-bright)) left center / 6px 62% no-repeat; }
.tabs button[aria-selected="true"] > span { transform: translateX(22px); }
.panels { padding: clamp(22px, 3vw, 36px); border-radius: 20px; background: var(--deep); }
.panel { display: none; }
.panel.is-on { display: block; animation: panelin .45s var(--ease); }
@keyframes panelin { from { opacity: 0; transform: translateY(14px); } }
.when { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--cyan-bright); line-height: 1.4; }
.plist-dark > div { border-color: rgba(255, 255, 255, .16); }
.plist-dark dt small, .plist-dark dd { color: #a9c6d6; }
.plist-dark dd b { color: #fff; }
.sec-night .fine { color: #a9c6d6; }
.panels > .btn { margin-top: 22px; }
.ladder { margin: 18px 0 6px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; align-items: end; }
.ladder i { display: grid; place-items: end center; padding-bottom: 4px; border-radius: 6px 6px 0 0; background: rgba(111, 224, 245, .22); font-style: normal; font-family: var(--display); font-size: .82rem; font-weight: 600; height: calc(18px + var(--i) * 7px); transform-origin: bottom; }
.ladder i.hi { background: rgba(111, 224, 245, .6); color: var(--night); }
.ladder i:nth-child(1) { --i: 1; } .ladder i:nth-child(2) { --i: 2; } .ladder i:nth-child(3) { --i: 3; } .ladder i:nth-child(4) { --i: 4; } .ladder i:nth-child(5) { --i: 5; }
.ladder i:nth-child(6) { --i: 6; } .ladder i:nth-child(7) { --i: 7; } .ladder i:nth-child(8) { --i: 8; } .ladder i:nth-child(9) { --i: 9; } .ladder i:nth-child(10) { --i: 10; }
.panel.is-on .ladder i { animation: grow .6s var(--ease) calc(var(--i) * 45ms) backwards; }
@keyframes grow { from { transform: scaleY(0); } }

/* ---------- การแข่งขัน ---------- */
.sec-cup::after { content: ""; position: absolute; inset: 6px 0 auto 0; height: min(720px, 70%); background: url(assets/inht/bg-header-banner2.jpg) center / cover no-repeat; opacity: .42; -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); pointer-events: none; }
.sec-cup > * { position: relative; z-index: 1; }
.sec-cup h2 { text-transform: uppercase; font-size: clamp(2rem, 6vw, 4.6rem); line-height: 1.04; }
.cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 20px); max-width: 760px; }
.cd div { padding: clamp(10px, 2vw, 20px) 8px; border-radius: 14px; background: #0c1c30; border: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.cd b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 7vw, 4.4rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.cd span { font-size: .84rem; color: #9fbccd; }
.marq-title { margin-top: clamp(36px, 5vw, 60px); font-family: var(--display); font-weight: 600; letter-spacing: .08em; color: #ff8c98; }
.marq { margin-top: 12px; overflow: hidden; border-block: 1px solid rgba(255, 255, 255, .14); }
.marq-row { display: flex; width: max-content; animation: marq 36s linear infinite; }
.marq:hover .marq-row { animation-play-state: paused; }
.marq-row span { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding: 16px 0 16px clamp(20px, 3vw, 44px); font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 3rem); white-space: nowrap; }
.marq-row img { width: clamp(40px, 5vw, 56px); height: auto; border-radius: 50%; background: #fff; }
.marq-row span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--red-line); }
@keyframes marq { to { transform: translateX(-50%); } }
.recap { margin-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.cup-logo { width: clamp(120px, 14vw, 180px); height: auto; margin-bottom: 14px; }
.recap-head p { margin-top: 6px; color: #9fbccd; font-size: .96rem; }
.stats { grid-column: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
.stats b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; color: var(--cyan-bright); font-variant-numeric: tabular-nums; }
.stats span { color: #b9d3e2; font-size: .95rem; }
.board { grid-column: 2; grid-row: 1 / span 2; border-radius: 16px; background: #0c1c30; border: 1px solid rgba(255, 255, 255, .1); padding: 6px clamp(12px, 2vw, 22px); }
.board-row { display: grid; grid-template-columns: 6.2em minmax(0, 1fr) 2.2em .8em 2.2em minmax(0, 1fr); align-items: center; gap: 6px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .95rem; }
.board-row:last-child { border-bottom: 0; }
.board-row time { font-family: var(--display); font-size: .76rem; color: #8fb0c4; }
.board-row .t { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; line-height: 1.3; } .board-row .t.r { flex-direction: row-reverse; text-align: right; }
.board-row img { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #fff; }
.board-row em { font-style: normal; font-size: .76rem; color: #8fb0c4; }
.board-row b { font-family: var(--display); font-size: 1.5rem; text-align: center; color: #8fb0c4; font-variant-numeric: tabular-nums; }
.board-row b.w { color: #fff; }
.board-row i { font-style: normal; text-align: center; color: #5d7c91; }
.sponsors { grid-column: 1 / -1; }
.sponsors p { font-family: var(--display); font-weight: 600; font-size: .9rem; letter-spacing: .06em; color: #9fbccd; }
.sponsors ul { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.sponsors li { width: clamp(56px, 7vw, 84px); border-radius: 12px; overflow: hidden; background: #fff; transition: transform .25s var(--ease); }
.sponsors li:hover { transform: translateY(-4px); }
.sponsors img { width: 100%; height: auto; }
.cup-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- จัดงาน ---------- */
.events { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.evlist li { padding: 16px 0; border-bottom: 1px solid #c4dde9; font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.3; }
.evlist li:first-child { border-top: 3px solid var(--ink); }
.form { padding: clamp(22px, 3vw, 36px); border-radius: 20px; background: #fff; display: grid; gap: 16px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label > span { display: block; margin-bottom: 4px; font-size: .9rem; font-weight: 500; }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #b7d3e0; border-radius: 10px; background: var(--ice); transition: border-color .2s, background .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue-line); background: #fff; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.form .check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--blue-line); flex: none; }
.form .check span { margin: 0; font-weight: 400; }
.form .btn { justify-self: start; }
.form-ok { padding: 10px 14px; border-radius: 10px; background: #e3f6ec; color: #135c38; font-size: .93rem; }

/* ---------- ข่าว ---------- */
.news li { display: grid; grid-template-columns: 5.2em 7em minmax(0, 1fr); align-items: baseline; gap: 8px 20px; padding: 20px 0; border-bottom: 1px solid var(--frost); }
.news li:first-child { border-top: 3px solid var(--ink); }
.news time { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.news time span { font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.tag { justify-self: start; padding: 1px 10px; border-radius: 999px; background: var(--ice); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.tag-alert { background: #fde3e6; color: #8f1423; }
.tag-cup { background: #dfe9fb; color: #17409a; }
.tag-promo { background: #fdf0d2; color: #7a5200; }
.news a { font-size: 1.1rem; font-weight: 500; line-height: 1.5; background: linear-gradient(var(--blue-line), var(--blue-line)) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.news a:hover { background-size: 100% 2px; }

/* ---------- การเดินทาง ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.contact > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.contact dt { color: #9fbccd; font-size: .92rem; }
.contact dd a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .4); }
.contact dd a:hover { text-decoration-color: var(--cyan-bright); color: var(--cyan-bright); }
.socials { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.visit p { margin-top: 26px; }
.way { position: relative; display: grid; gap: 14px; padding-left: 34px; }
.way::before { content: ""; position: absolute; left: 10px; top: 28px; bottom: 28px; width: 2px; background: repeating-linear-gradient(rgba(255, 255, 255, .5) 0 6px, transparent 6px 12px); }
.way li { position: relative; padding: 18px 22px; border-radius: 16px; background: var(--deep); }
.way li::before { content: ""; position: absolute; left: -31px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--night); border: 3px solid #9fbccd; }
.way span { display: block; font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.way small { display: block; font-family: var(--body); font-weight: 400; font-size: .9rem; color: #a9c6d6; }
.way .here { background: var(--cyan-bright); color: var(--night); }
.way .here small { color: #0b3550; }
.way .here::before { border-color: var(--red-line); background: var(--red-line); animation: pulse-red 1.8s ease-out infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(226, 40, 60, .7); } 100% { box-shadow: 0 0 0 14px rgba(226, 40, 60, 0); } }

/* ---------- ท้ายหน้า ---------- */
.foot { padding: 48px var(--gutter) 96px; background: var(--rinkside); color: #b9d3e2; font-size: .9rem; }
.foot-in { display: grid; gap: 10px; }
.foot .brand-text { color: #fff; }
.foot .brand-logo { width: 56px; height: 56px; }
.foot-tag { font-family: var(--display); color: #fff; }
.foot-legal a { text-decoration: underline; text-underline-offset: 3px; }
.foot-mock { margin-top: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); max-width: 62em; color: #8fb0c4; }

.mock-pill { position: fixed; z-index: 60; left: 14px; bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--amber); color: #2a1d00; font-family: var(--display); font-weight: 600; font-size: .76rem; letter-spacing: .04em; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.cookie { position: fixed; z-index: 60; right: 14px; bottom: 14px; width: min(340px, calc(100vw - 28px)); padding: 16px 18px; border-radius: 16px; background: #fff; color: var(--ink); font-size: .9rem; line-height: 1.55; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); animation: cookiein .5s var(--ease); }
.cookie[hidden] { display: none; }
.cookie div { margin-top: 10px; display: flex; align-items: center; gap: 16px; }
.cookie .btn { background: var(--night); color: #fff; }
@keyframes cookiein { from { opacity: 0; transform: translateY(20px); } }

/* ---------- จอเล็ก ---------- */
@media (max-width: 1100px) {
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 6px; padding: 88px var(--gutter) 40px; background: var(--night); font-family: var(--display); font-size: 1.6rem; font-weight: 700; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .menu-btn { display: block; }
  .nav-call { display: none; }
}
@media (max-width: 900px) {
  .rates { grid-template-columns: 1fr; }
  .learn, .events, .visit, .recap { grid-template-columns: 1fr; }
  .stats, .board { grid-column: 1; grid-row: auto; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .rcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hr-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 560px); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; border-top: 0; }
  .steps li { border-top: 3px solid var(--blue-line); }
  .tabs { grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .tabs button { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; }
  .tabs button[aria-selected="true"] { background: var(--deep); border-color: var(--cyan-bright); }
  .tabs button[aria-selected="true"] > span { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { height: 230vh; }
  .hero-copy { top: 88px; }
  .hr-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hr-chips li { padding: 10px 12px; column-gap: 10px; }
  .hero-rounds { padding-bottom: 60px; }
  .ticks i { display: none; }
  .hr-chips b { font-size: 1.5rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .frow { grid-template-columns: 1fr; }
  .news li { grid-template-columns: auto 1fr; }
  .news a { grid-column: 1 / -1; }
  .board-row { grid-template-columns: minmax(0, 1fr) 1.9em .6em 1.9em minmax(0, 1fr); font-size: .86rem; }
  .board-row time { grid-column: 1 / -1; }
  .contact > div { grid-template-columns: 1fr; gap: 2px; }
  .brand-text { font-size: .92rem; }
  .cookie { bottom: 52px; }
}

/* ---------- ลดการเคลื่อนไหว ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ln { stroke-dashoffset: 0; } .dots circle { opacity: 1; }
  .js .rv { opacity: 1; transform: none; }
  .hero { height: auto; }
  .hero-scene { position: relative; height: auto; overflow: visible; padding: 110px var(--gutter) 48px; display: grid; gap: 32px; }
  .hero-copy, .hero-rounds, .rink-wrap { position: static; opacity: 1; transform: none !important; width: 100%; padding: 0; }
  .rink-wrap { max-width: 900px; margin-inline: auto; }
  .scroll-hint, .snow { display: none; }
}
