/* Jadora's website. Colours, radius and shadows are the game's design tokens (design/tokens.json, the "parlour" theme);
   keep them in step with CardGraphics. Display text is Bungee (OFL, self-hosted); body text is Arial/Helvetica, which
   Arimo (the game's Jadora Sans) was drawn to match, so it costs no download. Chinese comes from the OS fonts. */

@font-face {
  font-family: "Jadora Display";
  src: url("fonts/Bungee-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --room: #07040a;
  --room-top: #2a0f1c;
  --maroon: #2a1026;
  --maroon-light: #44183c;
  --rim: #2b1510;
  --neon-red: #ff3355;
  --neon-pink: #ff6fb5;
  --neon-jade: #33f0c8;
  --on-neon: #10231e;
  --felt: #0b4d3b;
  --felt-light: #13654d;
  --gold: #ffc94a;
  --ink: #f6ecd6;
  --muted: rgba(255, 255, 255, 0.72);
  --card-face: #fbf6ea;
  --suit-red: #cc1a24;
  --suit-black: #1a1a1f;
  --btn-secondary: #4a2a5e;
  --chip: rgba(255, 255, 255, 0.14);
  --radius: 14px;
  --outline: 2px 2px 0 rgba(13, 5, 15, 0.85);
  --glow-pink: 0 0 40px 0 rgba(255, 111, 181, 0.35);
  --display: "Jadora Display", "Arial Black", sans-serif;
  --sans: Arimo, "Liberation Sans", Arial, Helvetica, "PingFang TC", "Heiti TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--room); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover { color: #ffe08f; }
a:focus-visible { outline: 2px solid var(--neon-jade); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
h3 { line-height: 1.3; }
.nobr { white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; text-shadow: var(--outline); }
/* Bungee has no Chinese: in Chinese, display text is the sans in bold (as in the game). The wordmark stays Bungee. */
:lang(zh) .display { font-family: var(--sans); font-weight: 700; text-transform: none; }
:lang(zh) .wordmark { font-family: var(--display); font-weight: 400; text-transform: uppercase; }

/* ---- top bar ---- */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: var(--maroon-light); box-shadow: 0 0 0 3px var(--neon-pink); }
.wordmark { font-family: var(--display); font-size: 26px; color: var(--gold); text-transform: uppercase; text-shadow: var(--outline); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-weight: 700; font-size: 16px; }
.links a { color: var(--ink); text-decoration: none; }
.links a:hover { color: var(--gold); }
.lang { display: flex; padding: 4px; border-radius: var(--radius); background: var(--chip); }
.lang a { padding: 6px 12px; border-radius: 10px; color: var(--ink); }
.lang a[aria-current] { background: var(--neon-jade); color: var(--on-neon); }

/* ---- hero: the parlour at night ---- */
.hero { position: relative; overflow: hidden; background: var(--room) url("img/parlour.jpg") center / cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 4, 10, 0.55) 0%, rgba(7, 4, 10, 0.72) 60%, var(--room) 100%); }
.hero > .wrap { position: relative; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 40px 0 88px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-art { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.eyebrow { font-family: var(--display); font-size: 16px; letter-spacing: 1px; color: var(--neon-jade); text-transform: uppercase; }
:lang(zh) .eyebrow { font-family: var(--sans); font-weight: 700; }
.hero h1 { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.06; color: var(--ink); }
:lang(zh) .hero h1 { line-height: 1.25; }
.lead { max-width: 540px; font-size: 20px; line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.soon { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: var(--radius); background: var(--maroon); box-shadow: var(--glow-pink); }
.soon .display { font-size: 22px; color: var(--gold); white-space: nowrap; }
.soon span:last-child { font-size: 16px; line-height: 1.3; }
.button { display: inline-block; padding: 16px 24px; border-radius: var(--radius); background: var(--btn-secondary); color: #fff; font-size: 18px; text-decoration: none; }
.button:hover { color: #fff; filter: brightness(1.15); }
.small { font-size: 15px; color: var(--muted); }
.sign { position: relative; z-index: 1; width: 100%; max-width: 420px; }
.mascot { width: 72%; max-width: 320px; margin-top: -40px; }
.table-edge { width: 100%; max-width: 460px; height: 14px; border-radius: var(--radius); background: var(--rim); box-shadow: 0 0 56px 0 rgba(255, 111, 181, 0.45); }
.table-edge::after { content: ""; display: block; height: 6px; margin: 4px 6px 0; border-radius: 6px; background: var(--neon-red); box-shadow: 0 0 18px 2px rgba(255, 51, 85, 0.8); }

/* ---- sections ---- */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--gold); margin-bottom: 12px; }
.section-lead { max-width: 640px; margin-bottom: 36px; font-size: 18px; color: var(--muted); }
.band { background: linear-gradient(180deg, var(--room) 0%, var(--room-top) 50%, var(--room) 100%); }
.felt { background: radial-gradient(circle at 50% 40%, var(--felt-light) 0%, var(--felt) 45%, var(--room) 100%); }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius); background: var(--maroon); }
.card h3 { font-size: 22px; }
.card p { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 8px 14px; border-radius: var(--radius); background: var(--chip); font-family: var(--display); font-size: 14px; color: var(--ink); text-transform: uppercase; }
:lang(zh) .pill { font-family: var(--sans); font-weight: 700; }
.pill.on { background: var(--neon-jade); color: var(--on-neon); }
.suits { display: flex; gap: 8px; }
.suits span { display: flex; align-items: center; justify-content: center; width: 44px; height: 60px; border-radius: 8px; background: var(--card-face); box-shadow: 3px 5px 0 rgba(0, 0, 0, 0.35); font-size: 28px; }
.suits .red { color: var(--suit-red); }
.suits .black { color: var(--suit-black); }

.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 20px; }
.bot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.bot img { width: 120px; height: 120px; border-radius: 50%; object-fit: contain; object-position: bottom; background: var(--maroon-light); box-shadow: 0 0 0 3px var(--neon-pink), 0 0 24px 0 rgba(255, 111, 181, 0.35); }
.bot strong { display: block; font-size: 17px; }
.bot span { font-size: 14px; color: var(--muted); }

.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.item { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: var(--maroon); }
.item img { flex: none; width: 72px; height: 72px; padding: 14px; border-radius: 50%; background: var(--maroon-light); box-shadow: 0 0 0 3px var(--gold); }
.item h3 { font-size: 20px; }
.item h3 span { color: var(--gold); white-space: nowrap; }
.item p { margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, 0.78); }
.note { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); }
.note img { width: 56px; }

.screens { display: flex; gap: 32px; justify-content: safe center; overflow-x: auto; padding: 12px 4px 20px; }
.phone { flex: none; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; font-weight: 700; }
.phone img { display: block; width: 260px; padding: 10px; border-radius: 38px; background: #0d050f; box-shadow: 0 0 45px 0 rgba(255, 111, 181, 0.35); }

.closing { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.closing .face { width: 120px; height: 120px; border-radius: 50%; background: var(--maroon-light); box-shadow: 0 0 0 4px var(--neon-red), 0 0 40px 0 rgba(255, 51, 85, 0.6); }

/* ---- privacy and support ---- */
.page-head { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.doc { max-width: 780px; margin: 0 auto; padding: 56px 24px 72px; }
.doc h1 { font-size: clamp(30px, 3.6vw, 44px); color: var(--gold); margin-bottom: 8px; }
.doc .updated { margin-bottom: 32px; font-size: 15px; color: var(--muted); }
.doc-card { display: flex; flex-direction: column; gap: 28px; padding: 36px; border-radius: var(--radius); background: var(--maroon); line-height: 1.65; }
.doc-card h2 { margin-bottom: 8px; font-size: 22px; color: var(--gold); }
.doc-card p + p, .doc-card p + ul, .doc-card ul + p { margin-top: 10px; }
.doc-card ul { margin: 0; padding-left: 22px; }
.doc-card li + li { margin-top: 6px; }
.faq details { padding: 18px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.faq details p { margin-top: 10px; color: rgba(255, 255, 255, 0.82); }

/* ---- footer ---- */
footer { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.foot { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; padding: 36px 0 44px; }
.foot .about { display: flex; flex-direction: column; gap: 10px; max-width: 540px; font-size: 14px; color: var(--muted); }
.foot .about .wordmark { font-size: 20px; }
.foot nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 700; }
.foot nav a { color: var(--ink); }
.foot nav a.mail { color: var(--gold); }

@media (max-width: 600px) {
  .hero-grid { padding: 16px 0 64px; gap: 28px; }
  .hero-art { order: -1; }
  .section { padding: 56px 0; }
  .doc-card { padding: 24px; }
  .soon { width: 100%; flex-direction: column; gap: 4px; text-align: center; }
  .cta .button { width: 100%; text-align: center; }
}
