@charset "UTF-8";

:root {
  --ink: #170d08;
  --ink-soft: #2a1710;
  --paper: #f4ead7;
  --paper-bright: #fff8e9;
  --red: #c83a2f;
  --red-deep: #8f201d;
  --jade: #1c624b;
  --jade-deep: #0d362b;
  --gold: #d5ad67;
  --muted: #a99985;
  --line-dark: rgba(255, 248, 233, 0.16);
  --line-light: rgba(23, 13, 8, 0.16);
  --shadow: 0 28px 70px rgba(5, 2, 1, 0.35);
  --display: "Noto Serif TC", "Songti TC", "PMingLiU", "Times New Roman", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--red);
  color: white;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  background: var(--paper-bright);
  color: var(--ink);
  border-radius: 4px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 84px;
  padding: 14px clamp(20px, 4vw, 72px);
  border-bottom: 1px solid transparent;
  background: rgba(23, 13, 8, 0.94);
  transition: background-color 240ms ease, border-color 240ms ease, min-height 240ms ease;
}

.site-header.is-scrolled {
  min-height: 70px;
  border-color: var(--line-dark);
  background: rgba(23, 13, 8, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.brand span {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.1em;
}

.brand small {
  margin-top: 5px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
  color: rgba(244, 234, 215, 0.76);
  font-size: 13px;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--paper-bright);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px 10px 18px;
  border: 1px solid rgba(244, 234, 215, 0.38);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-cta:hover {
  border-color: var(--paper-bright);
  background: var(--paper-bright);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  min-height: 920px;
  padding: 150px clamp(24px, 6vw, 110px) 110px;
  isolation: isolate;
  color: var(--ink);
  background:
    radial-gradient(circle at 77% 46%, rgba(28, 98, 75, 0.13), transparent 34%),
    linear-gradient(135deg, #f8f4e8 0%, #eee5d2 100%);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(92deg, transparent 0, transparent 26px, rgba(218, 173, 103, 0.035) 27px),
    repeating-linear-gradient(2deg, transparent 0, transparent 5px, rgba(0, 0, 0, 0.11) 6px);
}

.hero::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(136, 113, 73, 0.08));
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: 12%;
  right: 5%;
  width: min(50vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(213, 173, 103, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(213, 173, 103, 0.025),
    0 0 0 160px rgba(213, 173, 103, 0.018);
}

.hero-grid {
  position: absolute;
  z-index: -1;
  inset: 84px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 234, 215, 0.18), transparent);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 700px;
}

.hero-copy .eyebrow {
  color: var(--jade-deep);
}

.game-wordmark {
  width: min(100%, 480px);
  mix-blend-mode: multiply;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  display: block;
  width: 34px;
  height: 1px;
  background: currentColor;
}

.eyebrow.dark {
  color: var(--red-deep);
}

.hero h1,
.section h2,
.download h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 {
  font-size: clamp(62px, 7.1vw, 118px);
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
}

.hero-lede {
  max-width: 590px;
  margin: 34px 0 0;
  color: #665743;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.9;
}

.hero-actions,
.download-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 190px;
  min-height: 64px;
  padding: 10px 24px;
  border: 1px solid var(--paper-bright);
  border-radius: 5px;
  background: var(--paper-bright);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.play-button:hover {
  transform: translateY(-3px);
  background: var(--red);
  color: white;
  box-shadow: 0 18px 50px rgba(200, 58, 47, 0.28);
}

.play-button small {
  display: block;
  margin-bottom: 3px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.play-symbol {
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid currentColor;
  filter: drop-shadow(0 0 0 currentColor);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-block: 12px;
  border-bottom: 1px solid rgba(244, 234, 215, 0.4);
  color: rgba(244, 234, 215, 0.82);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease;
}

.text-button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero .text-button {
  border-color: #9e8b6d;
  color: var(--jade-deep);
}

.hero .play-button {
  border-color: var(--jade-deep);
  background: var(--jade-deep);
  color: var(--paper-bright);
}

.hero .play-button:hover {
  border-color: var(--jade);
  background: var(--jade);
}

.hero-meta {
  display: flex;
  gap: 0;
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  display: grid;
  min-width: 126px;
  padding: 0 26px;
  border-left: 1px solid var(--line-light);
}

.hero-meta li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-meta strong {
  color: var(--jade-deep);
  font-family: var(--display);
  font-size: 22px;
}

.hero-meta span {
  color: #665743;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hero-stage {
  position: relative;
  z-index: 2;
  min-height: 620px;
  margin-left: -2vw;
  perspective: 1400px;
}

.stage-ring {
  position: absolute;
  top: 5%;
  left: 11%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(213, 173, 103, 0.2);
  border-radius: 50%;
}

.hero-screen {
  position: absolute;
  top: 18%;
  left: 7%;
  width: 88%;
  margin: 0;
  padding: 9px;
  transform: rotateY(-7deg) rotateZ(2deg);
  transform-style: preserve-3d;
  border: 1px solid #a7926e;
  border-radius: 10px;
  background: var(--paper-bright);
  box-shadow: var(--shadow);
}

.hero-screen::before {
  position: absolute;
  z-index: -1;
  inset: -18px 25px 25px -18px;
  content: "";
  border: 1px solid rgba(200, 58, 47, 0.28);
  border-radius: 10px;
}

.hero-screen img {
  width: 100%;
  border-radius: 5px;
}

.hero-screen figcaption {
  position: absolute;
  top: -38px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #76572c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-screen figcaption span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(200, 58, 47, 0.16);
}

.hero-icon {
  position: absolute;
  z-index: 4;
  right: -1%;
  bottom: 4%;
  width: clamp(150px, 16vw, 250px);
  border-radius: 22%;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.52);
  animation: hover-icon 7s ease-in-out infinite;
}

.game-tile {
  position: relative;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 2 / 3;
  filter: drop-shadow(0 12px 18px rgba(44, 26, 15, 0.22));
}

.game-tile img {
  position: absolute;
  max-width: none;
}

.game-tile-base {
  inset: 0;
  width: 100%;
  height: 100%;
}

.game-tile-face {
  top: 2.963%;
  left: 4.444%;
  width: 91.111%;
  height: 92.593%;
  object-fit: contain;
}

.floating-tile {
  position: absolute;
  z-index: 5;
  width: 70px;
}

.tile-one {
  top: 7%;
  right: 3%;
  transform: rotate(13deg);
}

.tile-two {
  bottom: 3%;
  left: 3%;
  transform: rotate(-12deg);
}

.stage-note {
  position: absolute;
  bottom: 3%;
  left: 17%;
  margin: 0;
  color: #857255;
  font-family: "Courier New", monospace;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.stage-note span {
  display: block;
  margin-bottom: 5px;
  color: var(--red);
  font-size: 24px;
  line-height: 1;
}

@keyframes hover-icon {
  0%,
  100% {
    transform: translateY(0) rotate(3deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

.feature-ribbon {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: -54px auto 0;
  border: 1px solid rgba(255, 248, 233, 0.1);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.28);
}

.feature-ribbon > div {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 108px;
  padding: 20px clamp(20px, 3vw, 42px);
  border-left: 1px solid var(--line-light);
}

.feature-ribbon > div:first-child {
  border-left: 0;
}

.ribbon-mark {
  width: 40px;
}

.feature-ribbon p {
  display: grid;
  margin: 0;
}

.feature-ribbon strong {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.feature-ribbon small {
  margin-top: 2px;
  color: #786957;
  font-size: 11px;
}

.section {
  padding: clamp(100px, 11vw, 175px) clamp(24px, 7vw, 120px);
}

.rules {
  background:
    linear-gradient(rgba(23, 13, 8, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 13, 8, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  color: var(--ink);
}

.section-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  max-width: 1200px;
  margin: 0 auto 70px;
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
}

.section-intro h2,
.modes-heading h2,
.gallery-heading h2 {
  font-size: clamp(52px, 6vw, 96px);
}

.section-intro > p:last-child,
.modes-heading > p,
.gallery-heading > p {
  max-width: 480px;
  margin: 0 0 6px auto;
  color: #6f6253;
  font-size: 15px;
  line-height: 1.9;
}

.rules-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.75fr 0.75fr;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--line-light);
}

.rule-feature,
.rule-card {
  min-height: 420px;
}

.rule-feature {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  align-content: end;
  gap: 38px;
  padding: 50px;
  overflow: hidden;
  background: var(--paper-bright);
}

.rule-number {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #bcab94;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.rule-tile {
  width: 180px;
  transform: rotate(-5deg);
}

.rule-kicker {
  margin: 0 0 12px;
  color: var(--red-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.rule-feature h3,
.rule-card h3,
.mode-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
}

.rule-feature h3 {
  font-size: 32px;
}

.rule-feature div:last-child > p:last-child {
  margin: 18px 0 0;
  color: #746655;
  font-size: 13px;
  line-height: 1.9;
}

.rule-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px 32px;
  color: var(--paper-bright);
}

.rule-card.red {
  background: var(--red-deep);
}

.rule-card.green {
  background: var(--jade-deep);
}

.rule-card span {
  position: absolute;
  top: 24px;
  right: 25px;
  color: rgba(255, 248, 233, 0.45);
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.rule-card > p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.rule-card h3 {
  font-size: 36px;
}

.rule-card small {
  margin-top: 18px;
  color: rgba(255, 248, 233, 0.68);
  font-size: 12px;
  line-height: 1.8;
}

.modes {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 30%, rgba(28, 98, 75, 0.24), transparent 28%),
    linear-gradient(145deg, #20110b, #0d0806 70%);
}

.modes-heading,
.gallery-heading {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  max-width: 1200px;
  margin: 0 auto 76px;
}

.modes-heading > p {
  color: rgba(244, 234, 215, 0.57);
}

.mode-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 60px);
  max-width: 1200px;
  margin: 0 auto;
}

.mode-card {
  border: 1px solid rgba(244, 234, 215, 0.17);
  background: rgba(255, 248, 233, 0.035);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
}

.mode-card.offset {
  transform: translateY(80px);
}

.mode-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.mode-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(15, 8, 5, 0.42), transparent 50%);
}

.mode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mode-card:hover .mode-image img {
  transform: scale(1.035);
}

.mode-image > .mode-label {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 248, 233, 0.4);
  color: var(--paper-bright);
  font-family: "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.coming-soon-tag {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 248, 233, 0.48);
  border-radius: 999px;
  background: rgba(132, 26, 24, 0.92);
  box-shadow: 0 8px 24px rgba(15, 8, 5, 0.28);
  color: var(--paper-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.mode-copy {
  padding: 34px 36px 40px;
}

.mode-copy > p:first-child {
  margin: 0 0 13px;
  color: var(--gold);
  font-family: "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.mode-copy h3 {
  font-size: clamp(25px, 2.3vw, 36px);
}

.mode-copy > p:last-child {
  margin: 16px 0 0;
  color: rgba(244, 234, 215, 0.58);
  font-size: 13px;
  line-height: 1.9;
}

.gallery {
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.gallery-heading > p {
  color: #6f6253;
}

.gallery-track {
  display: flex;
  gap: 26px;
  width: calc(100vw - clamp(24px, 7vw, 120px));
  margin-right: calc(clamp(24px, 7vw, 120px) * -1);
  padding: 0 clamp(24px, 7vw, 120px) 24px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--red) rgba(23, 13, 8, 0.1);
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.gallery-track::-webkit-scrollbar {
  height: 5px;
}

.gallery-track::-webkit-scrollbar-track {
  background: rgba(23, 13, 8, 0.1);
}

.gallery-track::-webkit-scrollbar-thumb {
  background: var(--red);
}

.gallery-track figure {
  flex: 0 0 min(68vw, 790px);
  margin: 0;
  scroll-snap-align: start;
}

.gallery-track img {
  width: 100%;
  border: 1px solid rgba(23, 13, 8, 0.16);
  box-shadow: 0 22px 40px rgba(73, 45, 26, 0.16);
}

.gallery-track figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: #6f6253;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.gallery-track figcaption span {
  color: var(--red-deep);
  font-family: "Courier New", monospace;
}

.swipe-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 18px 0 0;
  color: #847461;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.swipe-hint span {
  color: var(--red-deep);
  font-size: 16px;
}

.download {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  min-height: 710px;
  padding: 100px clamp(24px, 9vw, 160px);
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 50%, rgba(213, 173, 103, 0.16), transparent 28%),
    linear-gradient(120deg, #9f2722 0%, #681915 100%);
}

.download::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.3;
  background-image: repeating-linear-gradient(93deg, transparent 0, transparent 29px, rgba(255, 248, 233, 0.035) 30px);
}

.download-copy,
.download-icon {
  position: relative;
  z-index: 2;
}

.download h2 {
  font-size: clamp(66px, 8vw, 128px);
}

.download-copy > p:not(.eyebrow) {
  margin: 30px 0 0;
  color: rgba(255, 248, 233, 0.7);
}

.download .eyebrow {
  color: var(--paper-bright);
}

.download-icon {
  width: 100%;
  border-radius: 22%;
  filter: drop-shadow(0 32px 54px rgba(42, 4, 3, 0.38));
  transform: rotate(5deg);
}

.download-watermark {
  position: absolute;
  top: 50%;
  right: 2%;
  width: min(56vw, 600px);
  opacity: 0.06;
  transform: translateY(-50%);
}

.play-button.light:hover {
  background: var(--ink);
  color: var(--paper-bright);
}

.privacy-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-block: 12px;
  border-bottom: 1px solid rgba(255, 248, 233, 0.45);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease;
}

.privacy-button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 46px;
  padding: 70px clamp(24px, 7vw, 120px) 34px;
  background: #0b0604;
  color: var(--paper);
}

.footer-brand img {
  width: 40px;
  height: 40px;
}

.site-footer > div:first-child > p {
  margin: 20px 0 0;
  color: rgba(244, 234, 215, 0.45);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 34px;
  align-self: center;
  color: rgba(244, 234, 215, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--gold);
}

.copyright {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 234, 215, 0.1);
  color: rgba(244, 234, 215, 0.32);
  font-family: "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal][data-delay="1"] {
  transition-delay: 120ms;
}

[data-reveal][data-delay="2"] {
  transition-delay: 240ms;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .site-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 160px;
  }

  .hero-copy {
    max-width: 800px;
  }

  .hero h1 {
    font-size: clamp(70px, 12vw, 120px);
  }

  .hero-stage {
    width: min(92vw, 820px);
    min-height: 620px;
    margin: 30px auto 0;
  }

  .feature-ribbon {
    width: calc(100% - 48px);
  }

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

  .rule-feature {
    grid-column: 1 / -1;
  }

  .rule-card {
    min-height: 310px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 78px;
  }

  .site-header {
    min-height: 72px;
    padding: 12px 18px;
  }

  .site-header.is-scrolled {
    min-height: 64px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    padding: 9px 12px;
    font-size: 10px;
  }

  .hero {
    padding: 132px 20px 84px;
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 80px);
    letter-spacing: -0.075em;
  }

  .hero-lede {
    margin-top: 25px;
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-actions,
  .download-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .play-button {
    min-width: 180px;
    min-height: 58px;
    font-size: 16px;
  }

  .hero-meta {
    margin-top: 40px;
  }

  .hero-meta li {
    min-width: 0;
    padding: 0 14px;
  }

  .hero-meta strong {
    font-size: 18px;
  }

  .hero-meta span {
    font-size: 9px;
  }

  .hero-stage {
    width: 100%;
    min-height: 410px;
    margin-top: 48px;
  }

  .hero-screen {
    top: 20%;
    left: 2%;
    width: 96%;
    padding: 5px;
    transform: rotateY(-4deg) rotateZ(1.5deg);
  }

  .hero-icon {
    right: -4%;
    bottom: 0;
    width: 130px;
  }

  .floating-tile {
    width: 46px;
  }

  .tile-one {
    top: 3%;
  }

  .tile-two,
  .stage-note {
    display: none;
  }

  .feature-ribbon {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    margin-top: -34px;
  }

  .feature-ribbon > div {
    min-height: 92px;
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .feature-ribbon > div:first-child {
    border-top: 0;
  }

  .section {
    padding: 94px 20px;
  }

  .section-intro,
  .modes-heading,
  .gallery-heading {
    grid-template-columns: 1fr;
    margin-bottom: 46px;
  }

  .section-intro h2,
  .modes-heading h2,
  .gallery-heading h2 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .section-intro > p:last-child,
  .modes-heading > p,
  .gallery-heading > p {
    margin: 28px 0 0;
  }

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

  .rule-feature {
    grid-column: auto;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    min-height: 390px;
    padding: 36px 24px;
  }

  .rule-tile {
    width: 96px;
  }

  .rule-feature h3 {
    font-size: 26px;
  }

  .rule-card {
    min-height: 260px;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }

  .mode-card.offset {
    transform: none;
  }

  .mode-copy {
    padding: 27px 24px 32px;
  }

  .gallery-track {
    width: calc(100vw - 20px);
    margin-right: -20px;
    padding-right: 20px;
  }

  .gallery-track figure {
    flex-basis: 85vw;
  }

  .download {
    grid-template-columns: 1fr;
    min-height: 760px;
    padding: 92px 22px 70px;
  }

  .download h2 {
    font-size: clamp(62px, 19vw, 88px);
  }

  .download-icon {
    width: min(72vw, 330px);
    margin: 60px auto 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 58px 20px 28px;
  }

  .footer-links {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (scripting: none) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Expanded game modes and authentic in-game previews. */
.hero h1, .section h2, .download h2 { line-height: 1.14; letter-spacing: -.035em; }
.hero-lede, .section-intro > p:last-child, .modes-heading > p,
.gallery-heading > p, .rule-feature div:last-child > p:last-child,
.rule-card small { font-size: 1rem; }
.eyebrow, .feature-ribbon small, .hero-meta span, .header-cta,
.site-nav, .text-button, .privacy-button, .footer-links,
.gallery-track figcaption, .swipe-hint { font-size: .875rem; }
.rule-kicker, .rule-card > p, .copyright, .site-footer > div:first-child > p,
.play-button small, .hero-screen figcaption { font-size: .75rem; }
.rules-layout { grid-template-columns: 1.3fr .85fr .85fr; }
.rule-feature { grid-template-columns: 120px 1fr; gap: 28px; padding: 38px 28px; }
.rule-tile { width: 112px; }
.rule-card { padding: 38px 28px; }
.variant-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; max-width: 1200px; margin: auto; background: var(--line-dark); border: 1px solid var(--line-dark); }
.variant-card { padding: clamp(24px, 3.5vw, 48px); background: #21160f; }
.variant-card:last-child { grid-column: 1 / -1; }
.variant-card:last-child > p:not(.card-index) { max-width: 760px; }
.card-index { color: var(--gold); font-size: .875rem; letter-spacing: .05em; margin: 0 0 18px; }
.variant-card h3, .custom-feature h3, .practice-copy h3 { margin: 0; font-family: var(--display); font-size: clamp(26px, 2.4vw, 36px); line-height: 1.4; }
.variant-card > p:not(.card-index), .custom-feature p:not(.eyebrow) { color: #c6b9a6; font-size: 1rem; }
.variant-detail { display: block; color: var(--gold); font-size: .875rem; margin-top: 26px; }
.mode-picker-screen { position: relative; max-width: 1200px; margin: 0 auto 40px; }
.mode-picker-screen img { width: 100%; border: 1px solid var(--line-dark); }
.mode-picker-screen figcaption { margin-top: 14px; color: #c6b9a6; font-size: .875rem; }
.custom-feature { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; max-width: 1200px; margin: 60px auto 0; }
.custom-feature img { width: 100%; border: 1px solid var(--line-dark); }
.custom-feature .custom-note { font-size: .875rem; }
.online-note { position: relative; max-width: 1200px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line-dark); color: #c6b9a6; font-size: .875rem; }
.online-note strong { color: var(--gold); margin-right: 18px; }
.practice { background: var(--paper); color: var(--ink); }
.practice-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: center; max-width: 1200px; margin: auto; }
.practice-copy .card-index { color: var(--red-deep); }
.practice-copy > p:not(.card-index) { color: #665743; }
.practice-divider { height: 1px; margin: 32px 0; background: var(--line-light); }
.practice-screen { margin: 0; }
.practice-screen img { border: 1px solid var(--line-light); box-shadow: 0 22px 40px #492d1a29; }
.practice-screen figcaption { color: #665743; font-size: .875rem; margin-top: 16px; }
.themes { background: #12251f; }
.themes .modes-heading > p { color: #c6cec4; }
.theme-choices { display: flex; flex-wrap: wrap; gap: 12px; max-width: 1200px; margin: 0 auto 28px; }
.theme-choice { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border: 1px solid #7f8b79; border-radius: 4px; background: transparent; color: var(--paper); font: inherit; cursor: pointer; }
.theme-choice:hover { border-color: var(--gold); }
.theme-choice[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #a38f6e; }
.swatch.original { background: #684729; }.swatch.classic { background: #963e29; }.swatch.midnight { background: #243c55; }.swatch.jade { background: #d8cebc; }
.theme-preview { max-width: 1200px; margin: auto; }
.theme-preview img { width: 100%; border: 1px solid var(--line-dark); }
.theme-preview figcaption { margin-top: 16px; font-size: .875rem; color: #c6cec4; }
@media (max-width: 1120px) {
  .rules-layout { grid-template-columns: 1fr 1fr; }
  .custom-feature, .practice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .rules-layout, .variant-grid { grid-template-columns: 1fr; }
  .rule-feature { grid-template-columns: 80px 1fr; padding: 32px 20px; gap: 18px; }
  .rule-tile { width: 76px; }
  .theme-choice { flex: 1 1 calc(50% - 12px); justify-content: center; padding: 12px 8px; font-size: .875rem; }
  .online-note strong { display: block; margin-bottom: 8px; }
  .hero-meta li { padding: 0 12px; }
  .hero-meta span { font-size: .75rem; }
}

/* October feature previews use uncropped game captures. */
.latest {
  background: linear-gradient(145deg, #29170f, #170d08 70%);
}
.latest .modes-heading > p { color: #c6b9a6; }
.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: auto;
}
.latest-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: rgba(255, 248, 233, 0.035);
}
.latest-card > a { position: relative; display: block; }
.latest-card img { width: 100%; }
.image-enlarge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 3px;
  background: rgba(23, 13, 8, 0.9);
  color: var(--paper-bright);
  font-size: .75rem;
}
.latest-copy { padding: 28px; }
.latest-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.4;
}
.latest-copy > p:not(.card-index) {
  color: #c6b9a6;
}
.latest .feature-note { font-size: .875rem; color: var(--gold); }
.hint-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; }
.hint-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; }
.hint-legend i { font-style: normal; font-weight: 800; font-size: 1rem; }
.hint-danger { color: #f48775; }
.hint-safe { color: #6fd29b; }
.hint-riichi { color: #81b9ff; }
@media (max-width: 760px) {
  .latest-grid { grid-template-columns: 1fr; }
  .latest-copy { padding: 24px 20px; }
}
