:root {
  --felt: #f2cf57;
  --felt-deep: #d4a62b;
  --felt-light: #f8e79a;
  --tile: #fffaf0;
  --tile-edge: #f0d66f;
  --ink: #352e1c;
  --muted: #716441;
  --jade: #a77508;
  --jade-bright: #dfa915;
  --red: #c83232;
  --white: #ffffff;
  --line: rgba(83, 65, 15, 0.18);
  --shadow: 0 28px 80px rgba(94, 70, 12, 0.25);
  --daisy-white: #fffdf7;
  --daisy-cream: #fff7d8;
  --daisy-soft: #f8e79a;
  --daisy-yellow: #f2cf57;
  --daisy-gold: #a77508;
  --daisy-deep: #594510;
  --tile-green: #a8c98f;
  --tile-green-deep: #6f9b68;
  --tile-green-dark: #456f50;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.95), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(255, 248, 205, 0.9), transparent 30%),
    linear-gradient(135deg, var(--daisy-white), var(--daisy-soft) 58%, var(--daisy-yellow));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 93, 12, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 93, 12, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 90%);
}

body.reader-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--tile);
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.game-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 1rem 0 2.4rem;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 76px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.language-toggle {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  color: var(--daisy-deep);
  background: rgba(255, 253, 247, 0.82);
  border: 1px solid rgba(133, 98, 8, 0.28);
  border-radius: 6px;
  box-shadow: 0 5px 14px rgba(94, 70, 12, 0.12);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.language-toggle:hover {
  color: var(--daisy-white);
  background: var(--daisy-deep);
  transform: translateY(-1px);
}

.language-toggle:focus-visible {
  outline: 3px solid var(--jade-bright);
  outline-offset: 3px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.social-link {
  display: inline-grid;
  width: 42px;
  height: 42px;
  color: var(--daisy-deep);
  background: rgba(255, 253, 247, 0.82);
  border: 1px solid rgba(133, 98, 8, 0.28);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(94, 70, 12, 0.12);
  place-items: center;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover:not(.is-placeholder) {
  color: var(--daisy-white);
  background: var(--daisy-deep);
  transform: translateY(-1px);
}

.social-link:focus-visible {
  outline: 3px solid var(--jade-bright);
  outline-offset: 3px;
}

.social-link.is-placeholder {
  cursor: default;
  opacity: 0.62;
}

.table-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: clamp(0.5rem, 1.5vh, 0.9rem);
  min-height: calc(100dvh - 130px);
}

.intro-copy {
  width: 100%;
  max-width: 820px;
  text-align: center;
}

.intro-copy .kicker {
  margin-top: 0.9rem;
}

.kicker,
.reader-kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker {
  margin: 0;
  color: var(--daisy-gold);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
  text-transform: none;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 0.94;
}

.intro-copy p:not(.kicker) {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.board-wrap {
  position: relative;
  padding: clamp(1.45rem, 3vw, 2rem);
}

.service-area-summary {
  max-width: 820px;
  padding: 0 1rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: end;
  justify-content: center;
  gap: clamp(0.75rem, 1.45vw, 0.95rem);
  padding: clamp(0.2rem, 0.8vw, 0.45rem);
  perspective: 1100px;
}

.mahjong-tile {
  position: relative;
  width: clamp(132px, 10.5vw, 146px);
  aspect-ratio: 0.72;
  padding: 0;
  color: var(--ink);
  background:
    linear-gradient(145deg, #fffef8 0%, #faf0dd 58%, #e7d5ae 100%);
  border: 1px solid rgba(130, 101, 52, 0.22);
  border-radius: 11px 12px 13px 12px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.7),
    inset -7px -10px 0 rgba(132, 96, 42, 0.08),
    0 0.42rem 0 var(--tile-green),
    0 1rem 1.45rem rgba(0, 0, 0, 0.32),
    0 24px 32px rgba(0, 0, 0, 0.32);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.mahjong-tile.is-reader-source {
  visibility: hidden;
}

.mahjong-tile::before {
  position: absolute;
  inset: 0.55rem 0.62rem 0.72rem 0.5rem;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 12%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(145deg, #fffefa 0%, #fff8eb 64%, #f1e4c8 100%);
  border: 1px solid rgba(123, 93, 43, 0.2);
  border-radius: 8px 9px 10px 9px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    inset 0 0 22px rgba(120, 88, 38, 0.08);
  content: "";
}

.mahjong-tile::after {
  position: absolute;
  left: 0.42rem;
  right: 0.42rem;
  bottom: -0.42rem;
  z-index: -1;
  height: 0.48rem;
  background: linear-gradient(90deg, var(--tile-green-deep), var(--tile-green) 50%, var(--tile-green-dark));
  border-radius: 0 0 10px 10px;
  box-shadow: 0 0.26rem 0 rgba(55, 88, 60, 0.4);
  content: "";
}

.mahjong-tile:hover,
.mahjong-tile:focus-visible {
  filter: brightness(1.03);
  outline: none;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.7),
    inset -7px -10px 0 rgba(157, 126, 61, 0.06),
    0 0.32rem 0 #5c7fa2,
    0 0.86rem 1.35rem rgba(0, 0, 0, 0.34),
    0 30px 44px rgba(0, 0, 0, 0.36);
  transform: translateY(-3px);
}

.mahjong-tile:focus-visible {
  outline: 3px solid var(--jade-bright);
  outline-offset: 5px;
}

.tile-label {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: clamp(0.92rem, 1.55vw, 1.16rem);
  text-align: center;
  color: rgba(43, 55, 69, 0.78);
  font-size: clamp(0.86rem, 1.35vw, 1.02rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.tile-mark {
  position: absolute;
  z-index: 1;
  top: clamp(1.55rem, 3.15vw, 2.18rem);
  left: 50%;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
}

.tile-mark i {
  display: block;
}

.mark-eight-bam,
.mark-bird,
.mark-joker,
.mark-red-dragon {
  filter: saturate(0.78) contrast(0.95);
  mix-blend-mode: multiply;
}

.mark-eight-bam {
  top: clamp(0.92rem, 1.9vw, 1.28rem);
  display: block;
  width: clamp(4.72rem, 6.6vw, 5.35rem);
  height: clamp(6.38rem, 8.7vw, 7rem);
}

.mark-eight-bam > i {
  position: absolute;
  width: clamp(0.31rem, 0.55vw, 0.42rem);
  height: clamp(2.18rem, 3.35vw, 2.62rem);
  background:
    linear-gradient(90deg, rgba(33, 104, 105, 0.22), transparent 24% 70%, rgba(31, 87, 98, 0.24)),
    #299a8d;
  border: 1px solid rgba(35, 112, 106, 0.48);
  border-radius: 48% 43% 51% 46%;
  box-shadow:
    inset 0.06rem 0 0 rgba(91, 181, 149, 0.35),
    0.06rem 0.05rem 0 rgba(27, 91, 97, 0.16);
  transform-origin: center;
}

.mark-eight-bam > i::before,
.mark-eight-bam > i::after {
  position: absolute;
  left: 50%;
  width: 136%;
  height: 0.15rem;
  background: #247982;
  border-radius: 42% 55% 46% 52%;
  content: "";
  transform: translateX(-50%);
}

.mark-eight-bam > i::before {
  top: 27%;
}

.mark-eight-bam > i::after {
  bottom: 27%;
}

.mark-eight-bam > i:nth-child(1) {
  top: 0.18rem;
  left: 6%;
  transform: rotate(-2deg);
}

.mark-eight-bam > i:nth-child(2) {
  top: 0.16rem;
  left: 31%;
  width: clamp(0.29rem, 0.52vw, 0.4rem);
  transform: rotate(-43deg);
}

.mark-eight-bam > i:nth-child(3) {
  top: 0.16rem;
  right: 31%;
  transform: rotate(43deg);
}

.mark-eight-bam > i:nth-child(4) {
  top: 0.18rem;
  right: 6%;
  transform: rotate(2deg);
}

.mark-eight-bam > i:nth-child(5) {
  bottom: 0.18rem;
  left: 6%;
  opacity: 0.92;
  transform: rotate(2deg);
}

.mark-eight-bam > i:nth-child(6) {
  bottom: 0.16rem;
  left: 31%;
  transform: rotate(43deg);
}

.mark-eight-bam > i:nth-child(7) {
  right: 31%;
  bottom: 0.16rem;
  width: clamp(0.3rem, 0.53vw, 0.4rem);
  transform: rotate(-43deg);
}

.mark-eight-bam > i:nth-child(8) {
  right: 6%;
  bottom: 0.18rem;
  transform: rotate(-2deg);
}

.mark-eight-bam::after {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #31271f;
  content: "8";
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.32rem, 2.15vw, 1.62rem);
  font-weight: 600;
  line-height: 1;
  text-shadow: 0.05rem 0.05rem 0 rgba(108, 76, 25, 0.18);
  transform: translate(-50%, -50%) rotate(-3deg) scaleX(0.92);
}

.mark-bird {
  top: clamp(0.64rem, 1.55vw, 0.92rem);
  display: block;
  width: 5.4rem;
  height: 7.35rem;
}

.mark-bird > i,
.bird-tail {
  position: absolute;
}

.bird-tail {
  top: 3.35rem;
  left: 1.82rem;
  z-index: 1;
  width: 2.5rem;
  height: 3.55rem;
  transform: rotate(-2deg);
  transform-origin: top center;
}

.bird-tail i {
  position: absolute;
  top: 0;
  width: 0.34rem;
  height: 3.48rem;
  background: linear-gradient(180deg, #278e88 0 71%, #b78d1d 72% 80%, #247b79 81%);
  border-radius: 54% 46% 50% 42%;
  box-shadow: 0.05rem 0.04rem 0 rgba(33, 78, 80, 0.16);
  transform-origin: top center;
}

.bird-tail i:nth-child(1) {
  left: 0.25rem;
  transform: rotate(15deg);
}

.bird-tail i:nth-child(2) {
  left: 0.95rem;
  height: 3.72rem;
  background: linear-gradient(180deg, #b98e1e 0 12%, #2c7f80 13% 73%, #b68c1d 74% 81%, #247a75 82%);
  transform: rotate(27deg);
}

.bird-tail i:nth-child(3) {
  left: 1.55rem;
  height: 3.3rem;
  transform: rotate(39deg);
}

.bird-tail i::after {
  position: absolute;
  right: -0.12rem;
  bottom: -0.08rem;
  width: 0.56rem;
  height: 0.82rem;
  background:
    radial-gradient(ellipse at 50% 45%, #b78f22 0 18%, #2b6f73 21% 42%, #338c76 45% 72%, transparent 74%);
  border-radius: 52% 52% 48% 48%;
  content: "";
}

.bird-body {
  top: 2.2rem;
  left: 2.12rem;
  z-index: 2;
  width: 1.65rem;
  height: 2.45rem;
  background: #2f9188;
  border: 1px solid rgba(30, 104, 100, 0.42);
  border-radius: 56% 45% 60% 42%;
  box-shadow:
    inset 0.12rem 0 0 rgba(79, 165, 138, 0.3),
    0.06rem 0.07rem 0 rgba(47, 84, 92, 0.16);
  transform: rotate(-11deg);
}

.bird-body::before {
  position: absolute;
  top: -1.28rem;
  right: 0.12rem;
  width: 0.48rem;
  height: 1.65rem;
  background: #2d8c84;
  border-radius: 76% 68% 34% 42%;
  content: "";
  transform: rotate(18deg);
  transform-origin: bottom center;
}

.bird-body::after {
  position: absolute;
  right: -0.44rem;
  bottom: -1.06rem;
  width: 1.05rem;
  height: 1.18rem;
  border-right: 0.1rem solid #3e3a31;
  border-bottom: 0.1rem solid #3e3a31;
  content: "";
  transform: skewX(-18deg) rotate(14deg);
}

.bird-wing {
  top: 2.56rem;
  left: 2.18rem;
  z-index: 3;
  width: 1.12rem;
  height: 1.72rem;
  background:
    repeating-linear-gradient(90deg, transparent 0 0.23rem, rgba(30, 104, 102, 0.58) 0.24rem 0.31rem),
    #c5a12d;
  border-radius: 72% 36% 70% 42%;
  box-shadow: inset -0.1rem -0.12rem 0 rgba(109, 75, 4, 0.16);
  transform: rotate(14deg);
}

.bird-head {
  top: 0.78rem;
  left: 3.18rem;
  z-index: 4;
  width: 0.84rem;
  height: 0.8rem;
  background: #2e8e85;
  border: 1px solid rgba(31, 101, 96, 0.38);
  border-radius: 54% 46% 51% 49%;
}

.bird-head::before,
.bird-head::after {
  position: absolute;
  content: "";
}

.bird-head::before {
  top: -0.54rem;
  left: 0.35rem;
  width: 0.08rem;
  height: 0.58rem;
  background: #287d7b;
  border-radius: 999px;
  box-shadow: -0.2rem 0.08rem 0 #287d7b, 0.2rem 0.08rem 0 #287d7b;
  transform: rotate(4deg);
}

.bird-head::after {
  top: 0.24rem;
  right: 0.16rem;
  width: 0.14rem;
  height: 0.14rem;
  background: #fffdf7;
  border: 0.05rem solid #2a2b29;
  border-radius: 50%;
}

.bird-beak {
  top: 1.01rem;
  left: 3.88rem;
  z-index: 3;
  width: 0;
  height: 0;
  border-top: 0.15rem solid transparent;
  border-bottom: 0.15rem solid transparent;
  border-left: 0.48rem solid #ae302b;
  transform: rotate(4deg);
}

.mark-bird::before {
  position: absolute;
  top: 0.08rem;
  left: 0.08rem;
  color: #342923;
  content: "1";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.05rem;
  font-weight: 600;
  line-height: 1;
  transform: rotate(-4deg);
}

.mark-bird::after {
  position: absolute;
  top: 5.48rem;
  left: 0.25rem;
  z-index: 0;
  width: 4.95rem;
  height: 0.12rem;
  background: #3c3329;
  border-radius: 999px;
  box-shadow: 0.08rem 0.08rem 0 rgba(83, 67, 37, 0.12);
  content: "";
  transform: rotate(-17deg);
}

.mark-joker {
  top: clamp(0.7rem, 1.65vw, 1rem);
  display: block;
  width: 5.1rem;
  height: 6.8rem;
}

.joker-hat,
.joker-face,
.joker-collar,
.joker-word {
  position: absolute;
}

.joker-hat {
  top: 0.16rem;
  left: 0.48rem;
  z-index: 3;
  width: 4.12rem;
  height: 2.2rem;
  transform: rotate(-3deg);
}

.joker-hat::before {
  position: absolute;
  bottom: 0.08rem;
  left: 0.96rem;
  width: 2.24rem;
  height: 0.92rem;
  background: #b28b26;
  border: 0.11rem solid #55432c;
  border-radius: 62% 52% 22% 28%;
  box-shadow: inset 0.12rem 0.08rem 0 rgba(239, 210, 103, 0.28);
  content: "";
}

.joker-hat i {
  position: absolute;
  bottom: 0.38rem;
  width: 0.72rem;
  height: 1.92rem;
  background: #a8302e;
  border: 0.1rem solid #59412d;
  border-radius: 70% 35% 65% 30%;
  transform-origin: bottom center;
}

.joker-hat i::after {
  position: absolute;
  top: -0.24rem;
  left: 50%;
  width: 0.42rem;
  height: 0.42rem;
  background: #b58c24;
  border: 0.08rem solid #59412d;
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.joker-hat i:nth-child(1) {
  left: 0.52rem;
  transform: rotate(-46deg);
}

.joker-hat i:nth-child(2) {
  bottom: 0.72rem;
  left: 1.72rem;
  height: 1.74rem;
  background: #29877f;
  transform: rotate(3deg);
}

.joker-hat i:nth-child(3) {
  right: 0.4rem;
  background: #b28b26;
  transform: rotate(48deg);
}

.joker-face {
  top: 1.62rem;
  left: 1.49rem;
  z-index: 4;
  width: 2.08rem;
  height: 2.32rem;
  background: #e2c76d;
  border: 0.12rem solid #59432f;
  border-radius: 49% 45% 52% 47%;
  box-shadow:
    inset 0.18rem 0.08rem 0 rgba(255, 239, 168, 0.34),
    0.07rem 0.08rem 0 rgba(91, 62, 36, 0.13);
  transform: rotate(2deg);
}

.joker-face::before {
  position: absolute;
  top: 0.78rem;
  left: 0.46rem;
  width: 0.17rem;
  height: 0.22rem;
  background: #40352e;
  border-radius: 50%;
  box-shadow: 0.86rem 0.02rem 0 #40352e;
  content: "";
}

.joker-face::after {
  position: absolute;
  bottom: 0.4rem;
  left: 0.54rem;
  width: 0.84rem;
  height: 0.4rem;
  border-bottom: 0.12rem solid #a8302e;
  border-radius: 50%;
  content: "";
  transform: rotate(-4deg);
}

.joker-face i {
  position: absolute;
  top: 1.02rem;
  left: 0.9rem;
  width: 0.26rem;
  height: 0.34rem;
  background: #a8302e;
  border-radius: 70% 40% 65% 45%;
  transform: rotate(12deg);
}

.joker-collar {
  top: 3.72rem;
  left: 0.78rem;
  z-index: 2;
  width: 3.55rem;
  height: 1.32rem;
  transform: rotate(-2deg);
}

.joker-collar i {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-right: 0.72rem solid transparent;
  border-left: 0.72rem solid transparent;
  border-top: 1.24rem solid #29877f;
  filter: drop-shadow(0.05rem 0.05rem 0 rgba(76, 54, 35, 0.16));
}

.joker-collar i:nth-child(1) {
  left: 0.08rem;
  transform: rotate(8deg);
}

.joker-collar i:nth-child(2) {
  left: 1.04rem;
  border-top-color: #a8302e;
}

.joker-collar i:nth-child(3) {
  right: 0.08rem;
  border-top-color: #b28b26;
  transform: rotate(-8deg);
}

.joker-word {
  right: 0.18rem;
  bottom: 0.38rem;
  left: 0.18rem;
  color: #7f2928;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-2deg) scaleX(0.94);
}

.mark-red-dragon {
  top: clamp(1rem, 2.15vw, 1.48rem);
  font-family: "Kaiti SC", STKaiti, "Hiragino Mincho ProN", "Songti SC", serif;
  font-weight: 600;
  line-height: 0.9;
  text-align: center;
}

.mark-red-dragon span {
  display: block;
  color: #b92525;
  font-size: clamp(5.65rem, 8.6vw, 6.65rem);
  text-shadow:
    0.06rem 0.08rem 0 rgba(126, 45, 34, 0.2),
    -0.03rem 0.02rem 0 rgba(187, 54, 43, 0.16);
  transform: rotate(-2deg) scaleX(0.8) skewY(-1deg);
}

.tile-art {
  position: absolute;
  z-index: 1;
  top: 0.58rem;
  left: 50%;
  display: block;
  width: clamp(7.75rem, 10.4vw, 8.65rem);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translateX(-50%);
}

.tile-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.tile-art-eight {
  top: 0.58rem;
}

.tile-art-bird {
  top: 0.46rem;
  width: clamp(7.9rem, 10.6vw, 8.8rem);
}

.tile-art-joker {
  top: -1.35rem;
  width: clamp(11.34rem, 14.94vw, 12.42rem);
}

.tile-art-dragon {
  top: 1rem;
  width: clamp(8.15rem, 10.6vw, 8.8rem);
}

.tile-about {
  rotate: -2deg;
}

.tile-join {
  rotate: 2deg;
}

.tile-faq {
  rotate: 1deg;
}

.tile-contact {
  rotate: -1.5deg;
}

.reader-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  visibility: hidden;
  pointer-events: none;
  perspective: 1600px;
}

.reader-screen.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.reader-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 226, 112, 0.22), transparent 34%),
    rgba(65, 50, 12, 0.74);
  opacity: 0;
  transition: opacity 260ms ease;
}

.reader-screen.is-flipped .reader-scrim {
  opacity: 0.54;
}

.reader-screen.is-expanded .reader-scrim {
  opacity: 1;
}

.reader-card {
  position: fixed;
  left: var(--tile-left, 50%);
  top: var(--tile-top, 50%);
  width: var(--tile-width, 220px);
  height: var(--tile-height, 280px);
  color: var(--ink);
  border-radius: var(--tile-radius, 12px);
  box-shadow: none;
  opacity: 1;
  rotate: var(--tile-rotate, 0deg);
  transform-style: preserve-3d;
  will-change: left, top, width, height, border-radius, box-shadow, rotate;
  transition:
    left 520ms cubic-bezier(0.22, 0.8, 0.22, 1),
    top 520ms cubic-bezier(0.22, 0.8, 0.22, 1),
    width 520ms cubic-bezier(0.22, 0.8, 0.22, 1),
    height 520ms cubic-bezier(0.22, 0.8, 0.22, 1),
    border-radius 520ms cubic-bezier(0.22, 0.8, 0.22, 1),
    box-shadow 520ms cubic-bezier(0.22, 0.8, 0.22, 1),
    rotate 520ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.reader-card.is-resetting {
  transition: none;
}

.reader-screen.is-closing .reader-card {
  transition-duration: 620ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.reader-screen.is-expanded .reader-card {
  left: var(--reader-left, 50%);
  top: var(--reader-top, 50%);
  width: var(--reader-width, min(460px, calc(100vw - 2rem)));
  height: var(--reader-height, min(640px, calc(100dvh - 2rem)));
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  rotate: 0deg;
}

.reader-face {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  backface-visibility: hidden;
  border-radius: inherit;
  will-change: transform;
  transition: transform 560ms cubic-bezier(0.24, 0.72, 0.22, 1);
}

.reader-front {
  overflow: visible;
  background:
    linear-gradient(145deg, #fffef8 0%, #faf0dd 58%, #e7d5ae 100%);
  border: 1px solid rgba(130, 101, 52, 0.22);
  box-shadow: var(--tile-face-shadow);
}

.reader-front::after {
  position: absolute;
  left: 0.42rem;
  right: 0.42rem;
  bottom: -0.42rem;
  z-index: 2;
  height: 0.48rem;
  pointer-events: none;
  background: linear-gradient(90deg, var(--tile-green-deep), var(--tile-green) 50%, var(--tile-green-dark));
  border-radius: 0 0 10px 10px;
  box-shadow: 0 0.26rem 0 rgba(55, 88, 60, 0.4);
  content: "";
}

.reader-front::before {
  position: absolute;
  inset: 0.55rem 0.62rem 0.72rem 0.5rem;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 12%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(145deg, #fffefa 0%, #fff8eb 64%, #f1e4c8 100%);
  border: 1px solid rgba(123, 93, 43, 0.2);
  border-radius: 8px 9px 10px 9px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    inset 0 0 22px rgba(120, 88, 38, 0.08);
  content: "";
}

.reader-back {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.98)),
    var(--tile);
  border: 2px solid var(--tile-edge);
  pointer-events: none;
  transform: rotateY(180deg);
}

.reader-back::before {
  position: absolute;
  inset: 0.7rem;
  z-index: 0;
  background:
    linear-gradient(145deg, #fffefa, #f4e6c8);
  border: 1px solid rgba(123, 93, 43, 0.18);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    inset 0 -18px 28px rgba(120, 88, 38, 0.08);
  content: "";
  opacity: 1;
  transition: opacity 180ms ease;
}

.reader-back > * {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 180ms ease;
}

.reader-screen.is-flipped .reader-front {
  transform: rotateY(-180deg);
}

.reader-screen.is-flipped .reader-back {
  pointer-events: auto;
  transform: rotateY(0deg);
}

.reader-screen.is-expanded .reader-back::before {
  opacity: 0;
}

.reader-screen.is-expanded .reader-back > * {
  opacity: 1;
  transition-delay: 420ms;
}

.reader-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.92rem, 2.5vw, 1.2rem) clamp(5.8rem, 14vw, 6.9rem) clamp(0.9rem, 2.4vw, 1.1rem) clamp(0.92rem, 2.5vw, 1.2rem);
  border-bottom: 1px solid #ead993;
}

.reader-kicker {
  margin-bottom: 0.35rem;
  color: var(--jade);
  font-size: 0.72rem;
  font-weight: 950;
}

.reader-header h2 {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  line-height: 0.95;
}

.close-reader {
  position: fixed;
  top: max(1.45rem, env(safe-area-inset-top));
  right: max(1.45rem, env(safe-area-inset-right));
  z-index: 35;
  min-width: 86px;
  min-height: 44px;
  color: var(--daisy-white);
  background: var(--daisy-deep);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0ms linear 180ms;
}

.reader-screen.is-expanded .close-reader {
  top: calc(var(--reader-top, 1rem) + 0.78rem);
  right: calc(100vw - var(--reader-left, 1rem) - var(--reader-width, 20rem) + 0.78rem);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 420ms, 420ms, 0ms;
}

.reader-screen.is-closing .close-reader {
  top: calc(var(--reader-top, 1rem) + 0.78rem);
  right: calc(100vw - var(--reader-left, 1rem) - var(--reader-width, 20rem) + 0.78rem);
  pointer-events: none;
}

.close-reader:focus-visible {
  outline: 3px solid var(--jade-bright);
  outline-offset: 3px;
}

.reader-scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding: clamp(0.95rem, 3vw, 1.35rem);
  overscroll-behavior: contain;
}

.reader-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: none;
  margin: 0;
}

.reader-copy p {
  color: var(--muted);
  font-size: clamp(0.96rem, 2.2vw, 1.08rem);
}

.reader-copy p:last-child {
  margin-bottom: 0;
}

.about-content {
  display: grid;
  gap: clamp(1.65rem, 4vw, 2.1rem);
}

.about-intro {
  padding: 0.12rem 0 1.5rem;
  border-bottom: 1px solid rgba(133, 98, 8, 0.24);
}

.about-eyebrow {
  margin-bottom: 0.42rem;
  color: var(--daisy-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-intro h3,
.about-section h3 {
  margin-bottom: 0.68rem;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  line-height: 1.08;
}

.about-lede,
.about-section > p:not(.about-eyebrow) {
  color: var(--muted);
  font-size: clamp(0.96rem, 2.2vw, 1.05rem);
}

.about-section > p:last-child {
  margin-bottom: 0;
}

.about-why {
  padding-top: 1.5rem;
  border-top: 2px solid var(--daisy-yellow);
}

.about-cta {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(133, 98, 8, 0.24);
}

.about-cta > p:last-of-type {
  margin-bottom: 1rem;
}

.join-content {
  display: grid;
  gap: clamp(1.65rem, 4vw, 2.1rem);
}

.join-intro {
  padding: 0.12rem 0 1.5rem;
  border-bottom: 2px solid var(--daisy-yellow);
}

.join-eyebrow {
  margin-bottom: 0.42rem;
  color: var(--daisy-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.join-intro h3,
.join-section h3,
.join-location h3 {
  margin-bottom: 0.68rem;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  line-height: 1.08;
}

.join-intro > p:last-child,
.join-section-heading > p:last-child,
.free-play-section > p {
  color: var(--muted);
  font-size: clamp(0.96rem, 2.2vw, 1.05rem);
}

.join-section-heading {
  margin-bottom: 0.35rem;
}

.class-list {
  border-top: 1px solid rgba(133, 98, 8, 0.22);
}

.class-option {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(133, 98, 8, 0.22);
}

.class-option:last-child {
  border-bottom: 0;
}

.class-option h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.2;
}

.class-option p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 2.1vw, 1.02rem);
}

.join-booking-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  color: var(--daisy-white);
  background: var(--daisy-deep);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.join-booking-link:hover {
  background: #745b18;
  transform: translateY(-1px);
}

.join-booking-link:focus-visible,
.join-contact-link:focus-visible {
  outline: 3px solid var(--jade-bright);
  outline-offset: 3px;
}

.free-play-section {
  padding-top: 1.5rem;
  border-top: 2px solid var(--daisy-yellow);
}

.free-play-section > p:last-of-type {
  margin-bottom: 1rem;
}

.join-contact-link {
  color: var(--daisy-deep);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22rem;
}

.join-location {
  padding: 1.5rem 0;
  border-top: 2px solid var(--daisy-yellow);
}

.join-location address,
.contact-location address {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 1rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.55;
}

.join-location > p:not(.join-eyebrow),
.contact-location > p:not(.contact-eyebrow) {
  color: var(--muted);
  font-size: clamp(0.94rem, 2.1vw, 1.02rem);
}

.join-location > p:last-of-type {
  margin-bottom: 1rem;
}

.contact-content {
  display: grid;
  gap: clamp(1.65rem, 4vw, 2.1rem);
}

.contact-intro {
  padding: 0.12rem 0 1.5rem;
  border-bottom: 1px solid rgba(133, 98, 8, 0.24);
}

.contact-eyebrow {
  margin-bottom: 0.42rem;
  color: var(--daisy-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-intro h3,
.contact-location h3,
.contact-social-section h3,
.contact-form-heading h3 {
  margin-bottom: 0.68rem;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  line-height: 1.08;
}

.contact-intro > p:not(.contact-eyebrow) {
  color: var(--muted);
  font-size: clamp(0.96rem, 2.2vw, 1.05rem);
}

.contact-email {
  display: inline-block;
  color: var(--daisy-deep);
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22rem;
}

.contact-social-links {
  margin-top: 0.9rem;
}

.contact-location {
  padding: 0.1rem 0 1.5rem;
  border-bottom: 1px solid rgba(133, 98, 8, 0.24);
}

.contact-social-section {
  padding: 0.1rem 0 1.5rem;
  border-bottom: 1px solid rgba(133, 98, 8, 0.24);
}

.contact-social-section > p:not(.contact-eyebrow) {
  color: var(--muted);
  font-size: clamp(0.94rem, 2.1vw, 1.02rem);
}

.contact-location h3 {
  margin-bottom: 0.55rem;
}

.contact-location > p:last-child {
  margin-bottom: 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form-heading {
  margin-bottom: 0.15rem;
}

.contact-field {
  display: grid;
  gap: 0.38rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.78rem 0.82rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d9bd51;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
}

.contact-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--daisy-gold);
  box-shadow: 0 0 0 3px rgba(223, 169, 21, 0.18);
  outline: none;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.74rem 1.1rem;
  color: var(--daisy-white);
  background: var(--daisy-deep);
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  transition: background-color 160ms ease, transform 160ms ease;
}

.contact-submit:hover:not(:disabled) {
  background: #745b18;
  transform: translateY(-1px);
}

.contact-submit:focus-visible,
.contact-email:focus-visible {
  outline: 3px solid var(--jade-bright);
  outline-offset: 3px;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.66;
}

.contact-form-status {
  min-height: 1.5em;
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form-status[data-state="success"] {
  color: #397044;
}

.contact-form-status[data-state="error"] {
  color: #a2352f;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.faq-content {
  display: grid;
  gap: clamp(1.5rem, 4vw, 1.9rem);
}

.faq-intro {
  padding: 0.12rem 0 0;
}

.faq-eyebrow {
  margin-bottom: 0.42rem;
  color: var(--daisy-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-intro h3 {
  margin-bottom: 0.68rem;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  line-height: 1.08;
}

.faq-intro > p:not(.faq-eyebrow) {
  color: var(--muted);
  font-size: clamp(0.96rem, 2.2vw, 1.05rem);
}

.faq-contact-link,
.faq-answer a {
  color: var(--daisy-deep);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22rem;
}

.faq-contact-link:focus-visible,
.faq-answer a:focus-visible {
  outline: 3px solid var(--jade-bright);
  outline-offset: 3px;
}

.faq-list {
  border-top: 1px solid rgba(133, 98, 8, 0.26);
}

.faq-item {
  border-bottom: 1px solid rgba(133, 98, 8, 0.26);
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 3.8rem;
  padding: 0.82rem 0.1rem;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.3;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  color: var(--daisy-deep);
  background: var(--daisy-cream);
  border: 1px solid rgba(133, 98, 8, 0.24);
  border-radius: 50%;
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item summary:hover {
  color: var(--daisy-gold);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--jade-bright);
  outline-offset: 3px;
}

.faq-answer {
  padding: 0 2.9rem 1.15rem 0.1rem;
  animation: faq-answer-in 180ms ease;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 2.1vw, 1.02rem);
}

@keyframes faq-answer-in {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mini-table {
  align-self: start;
  padding: 1rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.72), transparent 36%),
    linear-gradient(145deg, var(--daisy-yellow), var(--daisy-cream));
  border: 1px solid rgba(133, 98, 8, 0.2);
  border-radius: 16px;
}

.mini-table h3 {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.mini-table ul {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mini-table li {
  padding: 0.68rem 0.75rem;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.placeholder-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.placeholder-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-weight: 800;
}

.placeholder-form input,
.placeholder-form textarea {
  width: 100%;
  padding: 0.8rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #e2c85c;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .game-header {
    align-items: center;
    flex-direction: row;
  }

  .table-stage {
    grid-template-columns: 1fr;
    align-items: center;
    min-height: auto;
    padding-top: 1.2rem;
  }

  .intro-copy {
    max-width: 760px;
  }

  .reader-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .game-shell {
    width: min(100% - 1rem, var(--max-width));
    padding-top: 0.7rem;
  }

  .header-social-links {
    gap: 0.38rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .language-toggle {
    min-height: 38px;
    padding: 0.48rem 0.68rem;
    font-size: 0.78rem;
  }

  .header-social-links .social-link {
    width: 38px;
    height: 38px;
  }

  .board-wrap {
    padding: 1.12rem;
  }

  .game-board {
    grid-template-columns: repeat(2, auto);
    gap: 0.82rem;
    padding: 0.25rem;
  }

  .mahjong-tile {
    width: clamp(118px, 33.5vw, 132px);
    border-radius: 12px 13px 14px 13px;
  }

  .tile-label {
    bottom: 0.95rem;
    font-size: clamp(0.77rem, 3.35vw, 0.93rem);
  }

  .tile-mark {
    top: 1.7rem;
  }

  .mark-eight-bam {
    top: 1.05rem;
    width: 4.48rem;
    height: 5.85rem;
  }

  .mark-eight-bam > i {
    width: 0.31rem;
    height: 2.02rem;
  }

  .mark-eight-bam::after {
    font-size: 1.28rem;
  }

  .mark-bird {
    top: 0.92rem;
    transform: translateX(-50%) scale(0.86);
    transform-origin: top center;
  }

  .mark-joker {
    top: 0.92rem;
    transform: translateX(-50%) scale(0.88);
    transform-origin: top center;
  }

  .mark-red-dragon {
    top: 1.16rem;
  }

  .mark-red-dragon span {
    font-size: 5.05rem;
  }

  .tile-art,
  .tile-art-bird,
  .tile-art-joker,
  .tile-art-dragon {
    top: 0.5rem;
    width: 7.55rem;
  }

  .tile-art-joker {
    top: -1.35rem;
    width: 10.74rem;
  }

  .tile-art-dragon {
    top: 0.96rem;
    width: 7.8rem;
  }

  .reader-screen.is-expanded .reader-card {
    border-radius: 16px;
  }

  .reader-header {
    padding-right: clamp(5.6rem, 30vw, 6.8rem);
  }

  .close-reader {
    top: max(0.8rem, env(safe-area-inset-top));
    right: max(0.8rem, env(safe-area-inset-right));
  }
}

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