/* Dream Deck: My Legend Hero: the website (28 Nov 2026). The game's own look: a night pitch, holo foil, the game's
   fonts (Bebas Neue for headings, Exo 2 for text; both OFL, served from here). */
@font-face { font-family: 'Bebas'; src: url('fonts/BebasNeue-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Exo2'; src: url('fonts/Exo2.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --night: #061a1c;
  --pitch: #0c3328;
  --panel: rgba(8, 22, 30, 0.86);
  --ink: #eef3ff;
  --dim: #a9b8c9;
  --gold: #ffd34d;
  --c: #c77b3b;
  --sr: #c9d2e2;
  --ssr: #f5b625;
  --foil: linear-gradient(115deg, #7df9ff, #b28dff 30%, #ff8de1 55%, #ffd97d 78%, #7dffb2);
  --edge: rgba(125, 249, 255, 0.35);
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { background: var(--night); color: var(--ink); }
body {
  margin: 0;
  font-family: 'Exo2', system-ui, 'Segoe UI', 'Noto Sans', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans Arabic', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(178, 141, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 0% 40%, rgba(125, 249, 255, 0.08), transparent 60%),
    var(--night);
}
a { color: #9ff3ff; }
a:focus-visible, .chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }

/* The top: the title picture full width, the logo on it, one line and where to get it. */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; overflow: hidden; }
.hero > img.art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 26, 28, 0) 35%, rgba(6, 26, 28, 0.85) 75%, var(--night)); }
.hero .inner { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(32px, 6vw, 72px); max-width: 1180px; width: 100%; margin: 0 auto; }
.hero img.logo { width: clamp(240px, 34vw, 440px); filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)); }
.hero p.lead { font-size: clamp(19px, 2.2vw, 24px); max-width: 34ch; margin: 18px 0 26px; color: #f4f7ff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 12px;
  font-family: 'Bebas', Impact, 'Arial Narrow', system-ui, sans-serif; font-size: 26px; letter-spacing: 1px; color: #0a0718; text-decoration: none;
  background: var(--foil); box-shadow: 0 6px 24px rgba(178, 141, 255, 0.35);
}
.chip small { font-family: 'Exo2', sans-serif; font-size: 14px; letter-spacing: 0; font-weight: 700; opacity: 0.8; }

/* The game as four cards, each in a rarity's rim, as the game shows its players. */
main { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter); }
h2 { font-family: 'Bebas', Impact, 'Arial Narrow', system-ui, sans-serif; font-weight: 400; font-size: clamp(36px, 5vw, 56px); letter-spacing: 1px; line-height: 1; margin: 0 0 12px; }
.intro { color: var(--dim); max-width: 60ch; margin: 0 0 40px; }
.deck { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); }
.card { position: relative; border-radius: 18px; padding: 3px; background: var(--rim); }
.card .face { background: var(--panel); border-radius: 15px; overflow: hidden; height: 100%; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card .text { padding: 18px 22px 22px; }
.card h3 { font-family: 'Bebas', Impact, 'Arial Narrow', system-ui, sans-serif; font-weight: 400; font-size: 32px; letter-spacing: 1px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--dim); }
.card .tag {
  position: absolute; top: 14px; inset-inline-start: 14px; padding: 2px 12px; border-radius: 8px; z-index: 1;
  font-family: 'Bebas', Impact, 'Arial Narrow', system-ui, sans-serif; font-size: 22px; letter-spacing: 1px; color: #0a0718; background: var(--rim);
}
.c { --rim: linear-gradient(135deg, #ffd0a0, var(--c) 45%, #7a3d12); }
.sr { --rim: linear-gradient(135deg, #ffffff, var(--sr) 45%, #6f7b90); }
.ssr { --rim: linear-gradient(135deg, #fff1a8, var(--ssr) 45%, #a35f00); }
.ur { --rim: var(--foil); }
.more { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.more img { border-radius: 16px; border: 2px solid var(--edge); }
.more p { color: var(--dim); }

/* The legal pages: readable text on a plain panel. */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter); }
.doc .top { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.doc .top img { width: 120px; }
.doc h1 { font-family: 'Bebas', Impact, 'Arial Narrow', system-ui, sans-serif; font-weight: 400; font-size: clamp(38px, 6vw, 56px); letter-spacing: 1px; line-height: 1.05; margin: 0 0 6px; }
.doc h2 { font-size: 30px; margin: 32px 0 6px; }
.doc p, .doc li { color: #d6dfea; }
.doc .meta { color: var(--dim); font-size: 15px; }

footer { border-top: 1px solid var(--edge); padding: 28px var(--gutter) 40px; text-align: center; color: var(--dim); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 10px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .deck, .more { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 0.2s ease; }
  .card:hover { transform: translateY(-4px) rotate(-0.4deg); }
}

/* The language bar (28 Nov 2026): top corner of every page, over the picture on the home page. */
.langbar { position: absolute; top: 14px; inset-inline-end: var(--gutter); z-index: 5; }
.langbar label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: rgba(8, 22, 30, 0.82); border: 1px solid var(--edge); }
.langbar .globe { font-size: 18px; line-height: 1; }
.langbar select { appearance: none; background: transparent; color: var(--ink); border: 0; font: inherit; font-size: 16px; font-weight: 700; padding: 4px 22px 4px 4px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir='rtl'] .langbar select { padding: 4px 4px 4px 22px; background-position: 10px 55%, 5px 55%; }
.langbar select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.langbar option { color: #0a0f1e; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.doc { position: relative; padding-top: 72px; }
/* Scripts without a narrow display face: a bold system face, no wide letter spacing. */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3,
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { font-family: system-ui, 'Noto Sans', sans-serif; font-weight: 800; letter-spacing: 0; line-height: 1.25; }
:lang(ar) body { line-height: 1.8; }

/* Latin names inside right-to-left text stay on one line */
bdi { white-space: nowrap; }
