:root {
  color-scheme: dark;
  --ink: #fff5eb;
  --muted: #d6b9ac;
  --ember: #f07148;
  --wine: #40151b;
  --font: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; touch-action: pan-y; }

body {
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font);
  background: #120708 url("/house-rules/background-still.jpg?v=3e2198bcae3f5805") center / cover fixed no-repeat;
}

body::after {
  position: fixed;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.backdrop-video, .cinema-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.backdrop-video {
  z-index: 0;
  object-fit: cover;
  pointer-events: none;
}

.cinema-shade {
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(88, 27, 21, .13), rgba(13, 5, 7, .7) 78%),
    linear-gradient(180deg, rgba(13, 5, 7, .53), rgba(13, 5, 7, .38) 40%, rgba(13, 5, 7, .87));
}

.entrance {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(25px, env(safe-area-inset-top)) 34px max(22px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-actions {
  position: absolute;
  top: max(25px, env(safe-area-inset-top));
  right: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-close, .music-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(232, 189, 125, .48);
  border-radius: 50%;
  background: rgba(29, 10, 13, .75);
  color: #f5ddc5;
}

.home-close {
  font: 300 27px/1 Arial, sans-serif;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.music-toggle {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border-radius: 50%;
  font: 700 20px/1 var(--font);
  cursor: pointer;
}
.music-toggle[aria-pressed="true"] { border-color: #f5d0a2; background: #56252a; }
.music-toggle:disabled { opacity: .5; cursor: not-allowed; }
.music-toggle:hover:not(:disabled) { border-color: #f5d0a2; }
.music-toggle:focus-visible { outline: 2px solid #ffe1ae; outline-offset: 4px; }
.home-close:hover { border-color: #f5d0a2; background: #56252a; transform: rotate(90deg); }
.home-close:focus-visible { outline: 2px solid #ffe1ae; outline-offset: 4px; }

.intro {
  margin: clamp(31px, 6vh, 68px) 0 29px;
  text-align: center;
  animation: rise .8s .08s both;
}

.kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 0 11px;
  color: #efb497;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .21em;
}

.kicker-rule { width: 25px; height: 1px; background: #ad593d; }

h1 {
  margin: 0;
  color: #fff3e3;
  font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  font-size: clamp(48px, 8vw, 82px);
  font-weight: 400;
  letter-spacing: .045em;
  line-height: 1.08;
  text-shadow: 0 4px 28px #f0523150, 0 2px 3px #180709;
}

h1 span { color: #f39466; }

.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; }
.title-art { position: relative; display: block; width: 100%; aspect-ratio: 1344 / 400; overflow: hidden; }
.title-art img { position: absolute; top: -44%; left: 0; display: block; width: 100%; height: auto; max-width: none; }
.art-heading { width: min(82vw, 430px); margin-inline: auto; }

.intro-copy {
  margin: 12px 0 0;
  color: #f2d8ca;
  font-size: 14px;
  letter-spacing: .08em;
}

.destinations {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(13px, 2vw, 19px);
  width: min(100%, 806px);
  margin: 0 auto;
}

.destination {
  --card-accent: #e6b97c;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 58%) 42%;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  height: clamp(200px, 26vw, 240px);
  padding: clamp(14px, 2.2vw, 22px);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(241, 192, 142, .42);
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(47, 17, 18, .95), rgba(22, 10, 12, .94));
  box-shadow: 0 20px 70px #0802038c, inset 0 1px rgba(255, 231, 203, .11);
  transition: transform .24s ease, border-color .24s ease, background-color .24s ease;
  animation: rise .72s .18s both;
}

.destination.dice { --card-accent: #f1845a; }
.destination.guangong { --card-accent: #e2a56c; animation-delay: .27s; }
.destination.shuanghualingun { --card-accent: #ed5047; animation-delay: .36s; }
.destination.dice { animation-delay: .45s; }
.destination.fighter { --card-accent: #ed5047; animation-delay: .54s; }

.destination.upcoming {
  --card-accent: #b99577;
  border-color: rgba(205, 167, 137, .27);
  background: linear-gradient(145deg, rgba(35, 17, 19, .9), rgba(18, 10, 12, .94));
  opacity: .68;
  cursor: default;
  animation-name: rise-muted;
  animation-delay: .36s;
}

.destination.upcoming-alt { --card-accent: #b57869; animation-delay: .54s; }

a.destination:hover { transform: translateY(-5px); border-color: var(--card-accent); }

.destination:focus-visible {
  outline: 2px solid #ffe1ae;
  outline-offset: 4px;
}

.destination-number {
  display: flex;
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  gap: 9px;
  min-height: 22px;
  color: #d5b7a2;
  font-size: clamp(10px, 1.3vw, 14px);
  font-weight: 700;
  letter-spacing: .17em;
}

.destination-number i { width: 21px; height: 1px; background: var(--card-accent); }

.card-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44%;
  overflow: hidden;
  background: #1a0b0d;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 23%, #000 58%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 23%, #000 58%);
}

.poster-visual {
  background: #090709;
}

.poster-visual video, .dice-visual video, .fighter-visual video, .guangong-visual video, .shuanghualingun-visual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.dice-visual {
  background: #090406;
}

.fighter-visual { background: #130506; }
.guangong-visual { background: #10090a; }
.shuanghualingun-visual { background: #130506; }
.shuanghualingun-visual video { object-position: 50% 0%; transform-origin: 50% 0%; }
.guangong-visual video { object-fit: cover; }

.guangong-title .title-art { aspect-ratio: 900 / 230; }
.guangong-title .title-art img { top: 0; }
.shuanghualingun-title .title-art { aspect-ratio: 900 / 230; }
.shuanghualingun-title .title-art img { top: 0; }

.dice-visual video, .fighter-visual video {
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

a.destination:hover .dice-visual video, a.destination:hover .fighter-visual video, a.destination:hover .shuanghualingun-visual video { transform: scale(1.04); }

.teaser-visual {
  flex-direction: column;
  gap: 1px;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(154, 71, 51, .32), transparent 67%),
    linear-gradient(135deg, #2d1418, #120c10 75%);
}

.upcoming-alt .teaser-visual {
  background:
    radial-gradient(ellipse at 50% 110%, rgba(151, 49, 48, .3), transparent 67%),
    linear-gradient(135deg, #291219, #110b10 75%);
}

.teaser-number {
  color: rgba(228, 182, 144, .48);
  font-family: "ZCOOL XiaoWei", var(--font);
  font-size: clamp(68px, 10vw, 110px);
  line-height: 1;
  letter-spacing: -.06em;
  text-shadow: 0 3px 35px rgba(241, 88, 53, .24);
}

.teaser-caption {
  color: #b79785;
  font-size: 9px;
  letter-spacing: .19em;
}

.destination-info {
  display: flex;
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 2;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  padding: 10px 3px 1px;
}

.destination-title {
  color: #fff2e6;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.3;
}
.destination-title.art-title { display: block; width: min(100%, 340px); }

.destination-desc {
  margin-top: 4px;
  color: #d9bdb1;
  font-size: 12px;
}

.enter-link {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 9px;
  color: var(--card-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}

.enter-link span { font-size: 17px; transition: transform .2s ease; }
.destination:hover .enter-link span { transform: translate(3px, -2px); }

.upcoming .destination-title { color: #e2c8b7; }
.upcoming .destination-desc { color: #b9a096; }
.coming-label {
  margin-top: auto;
  padding-top: 9px;
  color: var(--card-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
}

.footnote {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding-top: 25px;
  color: #c3a49a;
  font-size: 9px;
  letter-spacing: .17em;
  animation: appear .8s .35s both;
}

.foot-divider { width: 22px; height: 1px; background: #b76d4c; }

@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise-muted { from { opacity: 0; transform: translateY(12px); } to { opacity: .68; transform: translateY(0); } }

@media (min-width: 1000px) and (min-height: 800px) {
  .destination { height: 245px; }
  .destinations { width: min(100%, 850px); }
}

@media (max-width: 620px) {
  .entrance { padding: max(19px, env(safe-area-inset-top)) 17px max(18px, env(safe-area-inset-bottom)); }
  .top-actions { top: max(19px, env(safe-area-inset-top)); right: max(17px, env(safe-area-inset-right)); }
  .intro { margin: clamp(25px, 5vh, 44px) 0 22px; }
  h1 { font-size: clamp(45px, 13vw, 68px); }
  .intro-copy { margin-top: 9px; font-size: 13px; }
  .destinations { gap: 13px; width: min(100%, 430px); }
  .destination { height: 170px; padding: 10px 12px; }
  .destination-number { font-size: 9px; }
  .card-visual { width: 46%; }
  .destination-info { padding: 9px 0 0 2px; }
  .destination-title { font-size: clamp(21px, 6vw, 26px); }
  .destination-desc { font-size: 11px; }
  .teaser-number { font-size: clamp(56px, 18vw, 80px); }
  .teaser-caption { font-size: 8px; }
  .footnote { padding-top: 20px; }
}

@media (max-width: 360px) {
  .entrance { padding-right: 12px; padding-left: 12px; }
  .intro { margin-top: 50px; }
  .destination { grid-template-columns: minmax(0, 62%) 38%; height: 160px; }
  .card-visual { width: 43%; }
  .destination-desc { font-size: 10px; }
}

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