/* Pung! website — felt, ivory and a red drop shadow, from the app's own palette. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url("/assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --felt: #24502f;
  --felt-2: #1b4126;
  --felt-deep: #0f2617;
  --ivory: #f7edd1;
  --ivory-2: #efe1bb;
  --cream: #fbf6ea;
  --red: #bf1a1a;
  --red-deep: #7d0f10;
  --jade: #1f7a4a;
  --jade-deep: #0f4a2b;
  --gold: #e0b14a;
  --ink: #1e1a15;
  --ink-soft: #4d453a;
  --wood: #3a2216;
  --hk-1: #9e2121; --hk-2: #4d0c12;
  --ri-1: #293d80; --ri-2: #121a40;
  --am-1: #1f616b; --am-2: #0a2933;

  /* tile set (changed by the picker) */
  --t-face: #fbf3dc;
  --t-face-2: #ecdfba;
  --t-back: #1f7a4a;
  --t-back-2: #0f4a2b;
  --t-char: #1d2a5c;
  --t-red: #c0201c;
  --t-green: #1d7a3f;
  --t-blue: #1d4f9c;
  --t-glow: none;
  --t-edge: rgba(0,0,0,.18);

  --radius: 22px;
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.55), 0 12px 24px -12px rgba(0,0,0,.4);
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --han: "Songti TC", "Songti SC", "STSong", "Hiragino Mincho ProN", "Noto Serif CJK TC", "Source Han Serif TC", "PMingLiU", "SimSun", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; }
h2 em { font-style: normal; color: var(--red); }
h3 { font-size: 1.45rem; font-weight: 900; }
p { margin: 0; }
.small { font-size: .9rem; opacity: .78; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ivory); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- felt ---------- */
.felt {
  color: var(--ivory);
  background-color: var(--felt);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255,255,255,.07), transparent 70%),
    radial-gradient(ellipse at 50% 120%, rgba(0,0,0,.45), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.felt--dark { background-color: var(--felt-deep); }

/* ---------- wordmark ---------- */
.wordmark {
  font-family: var(--font);
  font-weight: 900;
  color: var(--ivory);
  letter-spacing: -0.02em;
  line-height: 1;
  --s: 1em;
  text-shadow:
    0.045em 0.055em 0 var(--red),
    0.03em 0.04em 0 var(--red),
    0.015em 0.02em 0 var(--red),
    0 0.12em 0.22em rgba(0,0,0,.55);
  display: inline-block;
  background: none; border: 0; padding: 0; cursor: default;
}
.wordmark--sm { font-size: 1.7rem; }
.wordmark--lg { font-size: clamp(3rem, 8vw, 5rem); }
.wordmark--xl { font-size: clamp(5.2rem, 17vw, 11rem); cursor: pointer; transform-origin: 50% 80%; }
.wordmark--xl:hover { animation: wobble .6s ease; }
.wordmark--xl.is-slammed { animation: thump .45s cubic-bezier(.2,1.6,.4,1); }

@keyframes wobble { 0%,100%{transform:rotate(0)} 30%{transform:rotate(-3deg) scale(1.02)} 60%{transform:rotate(2deg)} }
@keyframes thump { 0%{transform:scale(1)} 30%{transform:scale(.9,1.08) translateY(6px)} 100%{transform:scale(1)} }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  color: var(--ivory);
  background: linear-gradient(rgba(15,38,23,.75), rgba(15,38,23,0));
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled { background: rgba(15,38,23,.82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.nav-mark { text-decoration: none; }
.nav-mark .wordmark { cursor: pointer; }
.nav-links ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links { margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 800; font-size: .95rem; padding: 8px 12px; border-radius: 999px; opacity: .88; }
.nav-links a:hover { background: rgba(247,237,209,.12); opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 900 1.05rem/1 var(--font);
  padding: 16px 26px; border-radius: 999px; border: 0;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:active { transform: translateY(3px); }
.btn--red { background: var(--red); color: var(--ivory); box-shadow: 0 5px 0 var(--red-deep), 0 14px 26px -8px rgba(0,0,0,.5); }
.btn--red:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--red-deep), 0 18px 30px -8px rgba(0,0,0,.5); }
.btn--red:active { box-shadow: 0 2px 0 var(--red-deep); }
.btn--ghost { color: var(--ivory); border: 2px solid rgba(247,237,209,.5); }
.btn--ghost:hover { background: rgba(247,237,209,.1); border-color: var(--ivory); }
.btn--ivory { background: var(--ivory); color: var(--felt-deep); box-shadow: 0 4px 0 var(--ivory-2), 0 10px 18px -8px rgba(0,0,0,.4); }
.btn--small { padding: 11px 18px; font-size: .92rem; }
.btn--static { cursor: default; }
.btn--static:hover, .btn--static:active { transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; padding: 110px clamp(16px, 4vw, 48px) 0; overflow: hidden; display: flex; flex-direction: column; }
.swirl { position: absolute; inset: -20% -10%; pointer-events: none; }
.swirl .stile {
  position: absolute; width: 34px; height: 46px; border-radius: 7px;
  background: linear-gradient(160deg, var(--t-back), var(--t-back-2));
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.22), 0 6px 10px rgba(0,0,0,.35);
  opacity: .55;
}
.swirl .stile.up { background: linear-gradient(170deg, var(--t-face), var(--t-face-2)); box-shadow: inset 0 -5px 0 var(--t-back), 0 6px 10px rgba(0,0,0,.35); opacity: .7; }
.swirl-ring { position: absolute; left: 50%; top: 42%; width: 0; height: 0; animation: spin 140s linear infinite; }
.swirl-ring.rev { animation-direction: reverse; animation-duration: 200s; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1280px; margin: 0 auto; width: 100%; flex: 1; }
.eyebrow { font-size: .82rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.eyebrow--red { color: var(--red); }
.hero-title { position: relative; margin: 0 0 10px -6px; padding-top: 34px; }
.tagline { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 900; margin-bottom: 14px; }
.lede { font-size: 1.12rem; max-width: 34em; opacity: .9; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.slam-tiles { position: absolute; left: 60%; top: -2%; display: flex; gap: 4px; pointer-events: none; }
.slam-tiles .tile { --tw: 46px; opacity: 0; }
.slam-tiles.go .tile { animation: drop .55s cubic-bezier(.3,1.5,.5,1) forwards; }
.slam-tiles.go .tile:nth-child(2) { animation-delay: .07s; }
.slam-tiles.go .tile:nth-child(3) { animation-delay: .14s; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-160px) rotate(-18deg) scale(1.4); } 70% { opacity: 1; transform: translateY(4px) rotate(2deg) scale(1); } 100% { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); } }
.shake { animation: shake .35s ease; }
@keyframes shake { 20%{transform:translate(-4px,3px)} 40%{transform:translate(4px,-2px)} 60%{transform:translate(-3px,1px)} 80%{transform:translate(2px,0)} }

.hero-art { position: relative; margin: 0; }
.clay-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--wood); }
.clay-frame--hero { border: 8px solid #2d1a10; border-radius: 30px; transform: rotate(1.5deg); box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.08); animation: float 7s ease-in-out infinite; }
.clay-frame--hero img { width: 100%; height: auto; }
@keyframes float { 0%,100%{ transform: rotate(1.5deg) translateY(0);} 50%{ transform: rotate(.6deg) translateY(-10px);} }
.speech {
  position: absolute; top: -26px; right: 8%;
  font: 900 clamp(1.4rem, 3vw, 2.2rem)/1 var(--font);
  background: var(--ivory); color: var(--red); padding: 14px 22px 12px; border-radius: 20px;
  box-shadow: 0 6px 0 var(--ivory-2), 0 14px 24px -8px rgba(0,0,0,.5);
  transform: rotate(6deg);
  animation: pop 2.6s ease-in-out infinite;
}
.speech::after { content: ""; position: absolute; left: 26px; bottom: -14px; border: 10px solid transparent; border-top: 16px solid var(--ivory); border-bottom: 0; transform: skewX(-20deg); }
@keyframes pop { 0%,70%,100%{ transform: rotate(6deg) scale(1);} 78%{ transform: rotate(3deg) scale(1.14);} 86%{ transform: rotate(7deg) scale(.97);} }

.hero-strip { position: relative; z-index: 2; margin: 48px -48px 0; padding: 18px 0 22px; background: linear-gradient(#3a2216, #24150d); border-top: 4px solid #4b2e1e; overflow: hidden; }
.hero-strip .tile-row { flex-wrap: nowrap; width: max-content; animation: marquee 50s linear infinite; gap: 8px; }
.hero-strip .tile { --tw: 40px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- tiles (drawn in JS) ---------- */
.tile-row { display: flex; flex-wrap: wrap; gap: 5px; align-items: flex-end; }
.tile {
  --tw: 44px;
  position: relative;
  width: var(--tw); height: calc(var(--tw) * 1.36);
  border-radius: calc(var(--tw) * .16);
  background: linear-gradient(170deg, var(--t-face) 0%, var(--t-face) 55%, var(--t-face-2) 100%);
  box-shadow:
    inset 0 0 0 1px var(--t-edge),
    0 calc(var(--tw) * .16) 0 var(--t-back),
    0 calc(var(--tw) * .16) 0 1px var(--t-back-2),
    0 calc(var(--tw) * .26) calc(var(--tw) * .28) rgba(0,0,0,.35);
  margin-bottom: calc(var(--tw) * .16);
  flex: none;
  transition: transform .18s ease, background .4s, box-shadow .4s;
}
.tile svg { position: absolute; inset: 6% 8%; width: 84%; height: 88%; overflow: visible; filter: var(--t-glow); }
.tile .ink { fill: var(--t-char); }
.tile .red { fill: var(--t-red); }
.tile .green { fill: var(--t-green); }
.tile .blue { fill: var(--t-blue); }
.tile .stroke-blue { stroke: var(--t-blue); fill: none; }
.tile .han { font-family: var(--han); font-weight: 900; }
.tile.is-hi { transform: translateY(-10px); }
.tile.is-pick { box-shadow: inset 0 0 0 1px var(--t-edge), 0 calc(var(--tw) * .16) 0 var(--t-back), 0 0 0 3px var(--gold), 0 0 24px 4px rgba(224,177,74,.6); }

/* ---------- sections ---------- */
section { padding: clamp(72px, 10vw, 130px) clamp(16px, 4vw, 48px); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-lede { font-size: 1.12rem; color: var(--ink-soft); }
.section-head--light .section-lede { color: var(--ivory); opacity: .85; }

/* two doors */
.door-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1180px; margin: 0 auto; }
.door { background: #fff; border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 42% 1fr; box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 24px 50px -24px rgba(60,40,10,.35); transition: transform .25s ease, box-shadow .25s; }
.door:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 30px 60px -24px rgba(60,40,10,.45); }
.door--new:hover { transform: translateY(-6px) rotate(.4deg); }
.door-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.door-body { padding: 28px 28px 30px; }
.door-kicker { display: inline-block; font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.door--vet .door-kicker { background: #fde8e6; color: var(--red); }
.door--new .door-kicker { background: #e3f1e7; color: var(--jade); }
.door h3 { margin-bottom: 14px; font-size: 1.6rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .97rem; color: var(--ink-soft); }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 20px; border-radius: 4px; background: var(--ivory); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 3px 0 var(--jade); }
.door--vet .checks li::before { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 3px 0 var(--red); }
.checks b { color: var(--ink); }

/* games */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1180px; margin: 0 auto; }
.game { border-radius: 26px; padding: 26px 24px 0; color: var(--ivory); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg); overflow: hidden; position: relative; transition: transform .25s ease; }
.game:hover { transform: translateY(-8px); }
.game--hk { background: linear-gradient(160deg, var(--hk-1), var(--hk-2)); }
.game--riichi { background: linear-gradient(160deg, var(--ri-1), var(--ri-2)); }
.game--am { background: linear-gradient(160deg, var(--am-1), var(--am-2)); }
.game-top { display: flex; gap: 16px; align-items: center; }
.game-top .tile { --tw: 46px; }
.game h3 { font-size: 1.8rem; }
.game-sub { font-size: .9rem; opacity: .75; font-weight: 800; }
.game > p { opacity: .9; }
.game-clay { margin: 6px -24px 0; width: calc(100% + 48px); max-width: none; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 20%; margin-top: auto; }
.game-host { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(15,15,15,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 14px; border-radius: 14px; font-size: .92rem; }
.games-note { text-align: center; margin-top: 30px; opacity: .7; font-weight: 800; }

/* call it */
.call-board { max-width: 760px; margin: 0 auto; background: linear-gradient(#2d1a10, #20120b); border: 3px solid #4b2e1e; border-radius: 30px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow-lg); position: relative; }
.call-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.call-who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; }
.call-who img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--ivory); box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.call-who p { font-weight: 800; }
.call-discard { min-width: 64px; min-height: 90px; display: flex; align-items: flex-end; }
.call-discard .tile { --tw: 60px; animation: toss .5s cubic-bezier(.3,1.4,.5,1); }
@keyframes toss { from { transform: translate(-80px,-40px) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
.clock-toggle { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .92rem; cursor: pointer; user-select: none; }
.clock-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 46px; height: 28px; border-radius: 999px; background: rgba(247,237,209,.25); position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ivory); transition: transform .2s; }
.clock-toggle input:checked + .switch { background: var(--jade); }
.clock-toggle input:checked + .switch::after { transform: translateX(18px); }
.clock-toggle input:focus-visible + .switch { outline: 3px solid var(--gold); outline-offset: 2px; }
.clock-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); margin: 16px 0 4px; overflow: hidden; visibility: hidden; }
.clock-bar.on { visibility: visible; }
.clock-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); transform-origin: left; }
.call-label { margin-top: 18px; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; opacity: .6; font-weight: 900; }
.call-hand { margin-top: 10px; min-height: 90px; justify-content: center; padding: 14px 10px 6px; background: rgba(36,80,47,.9); border-radius: 16px; box-shadow: inset 0 4px 12px rgba(0,0,0,.4); }
.call-hand .tile { --tw: 46px; }
.call-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.call-btn {
  font: 900 1.05rem/1 var(--font); color: var(--felt-deep);
  background: rgba(247,237,209,.92); border: 0; border-radius: 999px; padding: 12px 22px 12px 14px;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  box-shadow: 0 4px 0 var(--ivory-2), 0 10px 18px -8px rgba(0,0,0,.6);
  transition: transform .12s, background .2s, opacity .2s;
}
.call-btn:hover { transform: translateY(-2px); }
.call-btn:active { transform: translateY(2px); }
.call-ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--felt); color: var(--ivory); font-size: .8rem; }
.call-btn.right { background: var(--jade); color: #fff; box-shadow: 0 4px 0 var(--jade-deep); }
.call-btn.wrong { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-deep); animation: shake .35s; }
.call-btn:disabled { cursor: default; }
.call-btn:disabled:not(.right):not(.wrong) { opacity: .4; }
.call-result { min-height: 3.2em; margin-top: 20px; text-align: center; font-size: 1.05rem; }
.call-result b { font-size: 1.25rem; }
.call-result .big { display: block; font: 900 2.2rem/1.1 var(--font); color: var(--ivory); text-shadow: 0.05em 0.06em 0 var(--red); margin-bottom: 6px; animation: thump .45s cubic-bezier(.2,1.6,.4,1); }
.call-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
.call-score { font-weight: 800; opacity: .75; }

/* regulars */
.filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -16px auto 36px; }
.chip { font: 800 .95rem/1 var(--font); padding: 10px 18px; border-radius: 999px; border: 2px solid rgba(0,0,0,.1); background: #fff; color: var(--ink); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--felt); }
.chip.is-on { background: var(--felt); color: var(--ivory); border-color: var(--felt); }
.roster { list-style: none; padding: 0; margin: 0 auto; max-width: 1180px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.regular { text-align: center; transition: opacity .3s, transform .3s; }
.regular.is-out { opacity: .18; transform: scale(.94); filter: grayscale(.8); }
.regular-pic { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--bg); box-shadow: 0 14px 26px -12px rgba(60,40,10,.5), inset 0 -8px 0 rgba(0,0,0,.08); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.regular-pic img { width: 100%; height: 100%; object-fit: cover; }
.regular:hover .regular-pic { transform: translateY(-6px) rotate(-3deg) scale(1.04); }
.regular:nth-child(even):hover .regular-pic { transform: translateY(-6px) rotate(3deg) scale(1.04); }
.regular h3 { margin-top: 14px; font-size: 1.15rem; }
.badge { display: inline-block; font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-top: 6px; }
.badge--teacher { background: #e3f1e7; color: var(--jade); }
.badge--casual { background: #fff1d6; color: #9a6a0c; }
.badge--club { background: #e5ebf7; color: #2a4a8a; }
.badge--master { background: #fde8e6; color: var(--red); }
.regular p { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.4; }

/* screens */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto; }
.feature { text-align: center; }
.feature h3 { margin: 22px 0 8px; font-size: 1.25rem; }
.feature p { opacity: .82; font-size: .97rem; }
.phone { margin: 0 auto; max-width: 240px; border-radius: 34px; padding: 8px; background: #0b0b0b; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2a2a; transition: transform .3s ease; }
.phone img { border-radius: 26px; width: 100%; }
.feature:nth-child(odd) .phone { transform: rotate(-2deg); }
.feature:nth-child(even) .phone { transform: rotate(2deg) translateY(18px); }
.feature:hover .phone { transform: rotate(0) translateY(-8px) scale(1.03); }
.device-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; max-width: 1180px; margin: 100px auto 0; }
.clay-frame--wide { border-radius: 26px; border: 8px solid #0b0b0b; }
.device-copy h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.device-copy p { opacity: .88; margin-bottom: 12px; }

/* tile sets */
.sets { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 0 auto 40px; }
.set-btn { font: 800 .95rem/1 var(--font); display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff; border: 2px solid rgba(0,0,0,.08); cursor: pointer; transition: all .15s; color: var(--ink); }
.set-btn .tile { --tw: 22px; margin-bottom: 4px; }
.set-btn:hover { border-color: var(--felt); }
.set-btn[aria-checked="true"] { background: var(--felt); color: var(--ivory); border-color: var(--felt); }
.set-preview { justify-content: center; gap: 8px; max-width: 900px; margin: 0 auto; padding: 36px 24px 28px; border-radius: 28px; background: var(--felt); box-shadow: inset 0 6px 20px rgba(0,0,0,.35), var(--shadow-lg); transition: background .4s; }
.set-preview .tile { --tw: 54px; }
.set-preview .tile:hover { transform: translateY(-10px) rotate(-3deg); }

/* tile set themes */
[data-set="classic"] { --t-face: #fbf3dc; --t-face-2: #ecdfba; --t-back: #1f7a4a; --t-back-2: #0f4a2b; --t-char: #1d2a5c; --t-red: #c0201c; --t-green: #1d7a3f; --t-blue: #1d4f9c; --t-glow: none; --t-edge: rgba(0,0,0,.18); }
[data-set="jade"] { --t-face: #fff8e2; --t-face-2: #eadcb0; --t-back: #0f8a5b; --t-back-2: #0a5a3a; --t-char: #8a6b1a; --t-red: #b88a1e; --t-green: #0f7a4c; --t-blue: #8a6b1a; }
[data-set="neon"] { --t-face: #17141c; --t-face-2: #0b0a0f; --t-back: #2a2533; --t-back-2: #111; --t-char: #ff4fd8; --t-red: #ff3b5c; --t-green: #39ff9c; --t-blue: #4fd7ff; --t-glow: drop-shadow(0 0 3px currentColor) drop-shadow(0 0 6px rgba(255,80,200,.6)); --t-edge: rgba(255,255,255,.12); }
[data-set="pearl"] { --t-face: #fff5f7; --t-face-2: #f0dde4; --t-back: #e7b3c4; --t-back-2: #c98aa0; --t-char: #6a4c8c; --t-red: #d0587a; --t-green: #5c9c86; --t-blue: #6a7fc0; }
[data-set="tortoiseshell"] { --t-face: #f6e7c6; --t-face-2: #e2c894; --t-back: #8a4a1c; --t-back-2: #4a2008; --t-char: #3a2210; --t-red: #a02a14; --t-green: #3c6a2a; --t-blue: #2a3c6a; }
[data-set="inkwash"] { --t-face: #fbfaf6; --t-face-2: #e6e3da; --t-back: #2a2a2a; --t-back-2: #0e0e0e; --t-char: #141414; --t-red: #b4231b; --t-green: #3a3a3a; --t-blue: #3a3a3a; }
[data-set="lacquer"] { --t-face: #f4e6c8; --t-face-2: #dcc38e; --t-back: #a3161a; --t-back-2: #5c0a0c; --t-char: #1a1a1a; --t-red: #a3161a; --t-green: #1f5a2a; --t-blue: #1f2f6a; }

/* cta */
.cta-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 1080px; margin: 0 auto; }
.clay-frame--round { border-radius: 50%; aspect-ratio: 1; border: 10px solid var(--ivory); animation: float2 6s ease-in-out infinite; }
.clay-frame--round img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float2 { 0%,100%{transform:rotate(-2deg) translateY(0)} 50%{transform:rotate(2deg) translateY(-12px)} }
.cta-copy h2 { margin: 18px 0 14px; }
.cta-copy > p { font-size: 1.12rem; opacity: .9; margin-bottom: 26px; max-width: 30em; }
.cta-copy .small { margin-top: 20px; }

/* footer */
.footer { background: var(--felt-deep); color: var(--ivory); display: flex; align-items: center; gap: 28px; padding: 30px clamp(16px, 4vw, 48px); flex-wrap: wrap; }
.footer-pets img { width: 130px; height: 130px; object-fit: cover; border-radius: 24px; }
.footer-copy { display: grid; gap: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-ctas { justify-content: center; }
  .slam-tiles { left: 58%; }
  .door-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; max-width: 520px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .device-band, .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-art { max-width: 380px; margin: 0 auto; }
  .cta-copy .hero-ctas { justify-content: center; }
  .cta-copy > p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 620px) {
  .door { grid-template-columns: 1fr; }
  .door-art img { aspect-ratio: 4 / 3; height: auto; object-position: 50% 25%; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature:nth-child(even) .phone { transform: rotate(2deg); }
  .call-hand .tile { --tw: 36px; }
  .call-btn { padding: 10px 16px 10px 10px; font-size: .95rem; }
  .set-preview .tile { --tw: 40px; }
  .roster { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .speech { right: 4%; top: -20px; }
  .hero-strip { margin: 36px -16px 0; }
  .hero-title { padding-top: 46px; }
  .slam-tiles { left: calc(50% - 53px); top: 0; }
  .slam-tiles .tile { --tw: 34px; }
}

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

/* app icon callouts */
.btn--app { padding-left: 6px; gap: 8px; }
.btn--app img { width: 26px; height: 26px; border-radius: 22.37%; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.app-badge { display: flex; align-items: center; gap: 20px; }
.app-icon { width: clamp(96px, 14vw, 132px); height: auto; border-radius: 22.37%; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 18px 34px -10px rgba(0,0,0,.6); transform: rotate(-4deg); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.app-badge:hover .app-icon { transform: rotate(0) scale(1.06); }
.app-name { font-weight: 900; font-size: 1.6rem; line-height: 1.1; }
.app-meta { opacity: .75; font-size: .95rem; }
@media (max-width: 1020px) { .app-badge { justify-content: center; text-align: left; } }

/* ---------- languages ---------- */
:lang(ja) body { --font: "Nunito", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Meiryo", sans-serif; }
:lang(zh-Hant-HK) body { --font: "Nunito", "PingFang HK", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
:lang(zh-Hans) body { --font: "Nunito", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(zh-Hant-HK) h2, :lang(zh-Hant-HK) h3, :lang(zh-Hans) h2, :lang(zh-Hans) h3 { letter-spacing: 0; line-height: 1.25; }
:lang(ja) .eyebrow, :lang(zh-Hant-HK) .eyebrow, :lang(zh-Hans) .eyebrow { letter-spacing: .06em; }
:lang(ja) .lede, :lang(zh-Hant-HK) .lede, :lang(zh-Hans) .lede { line-break: strict; }
h2, h3, .tagline { word-break: auto-phrase; text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* language menu (header) */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; font: 800 .92rem/1 var(--font); color: var(--ivory); background: rgba(247,237,209,.1); border: 1.5px solid rgba(247,237,209,.35); border-radius: 999px; padding: 9px 13px; cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(247,237,209,.2); border-color: var(--ivory); }
.lang-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 170px; background: var(--cream); border-radius: 16px; box-shadow: 0 18px 40px -10px rgba(0,0,0,.5); z-index: 60; }
.lang-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 800; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: #ece3cb; }
.lang-menu a[aria-current] { color: var(--felt); }
.lang-menu a[aria-current]::after { content: " ✓"; }

/* phone menu */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(247,237,209,.12); cursor: pointer; position: relative; flex: none; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: var(--ivory); transition: transform .25s, opacity .2s; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; padding: 86px 24px 32px; overflow-y: auto; color: var(--ivory);
  background: rgba(15,38,23,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: menuIn .22s ease; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu-links a { display: block; font: 900 1.7rem/1.2 var(--font); padding: 10px 4px; text-decoration: none; border-bottom: 1px solid rgba(247,237,209,.1); }
.menu-links a:hover { color: var(--gold); }
.menu-label { margin: 28px 0 10px; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.menu-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-langs a { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid rgba(247,237,209,.35); text-decoration: none; font-weight: 800; }
.menu-langs a[aria-current] { background: var(--ivory); color: var(--felt-deep); border-color: var(--ivory); }
.menu-legal { margin-top: 30px; font-size: .95rem; opacity: .8; }
body.menu-open { overflow: hidden; }

/* footer links */
.footer-links { margin-left: auto; display: grid; gap: 10px; justify-items: end; text-align: right; }
.footer-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-end; }
.footer-langs a, .footer-links a { text-decoration: none; font-weight: 800; opacity: .85; }
.footer-langs a:hover, .footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-langs a[aria-current] { color: var(--gold); opacity: 1; }

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav .lang { margin-left: auto; }
  .nav .btn { margin-left: 0; }
}
@media (max-width: 620px) {
  .nav { gap: 10px; }
  .nav .btn--app { padding: 6px; font-size: 0; gap: 0; }
  .nav .btn--app img { width: 30px; height: 30px; }
  .lang-btn { padding: 9px 11px; }
  .footer-links { margin-left: 0; justify-items: start; text-align: left; }
  .footer-langs { justify-content: flex-start; }
}
