:root { color-scheme: light; --ink: #2b2025; --red: #862638; --gold: #ae8443; --paper: #fffdf7; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui,sans-serif; }
header { min-height: 66px; padding: .7rem max(1.25rem,calc((100% - 1240px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #dbc39a; }
.brand { font: bold clamp(1.35rem,4vw,2rem) Georgia,serif; }
.brand span,h1 em { color: var(--red); }
nav { display: flex; gap: clamp(.75rem,3vw,2rem); }
a { color: inherit; text-decoration: none; }
nav a:hover { color: var(--red); }
.hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; background: #e8edf1 url("assets/video/poster.webp") center/cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#fff9efcb,#edf2f48f 55%,#fffdf7 100%); }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-inner { width: min(1300px,96%); margin: auto; padding: clamp(1.7rem,5vw,4rem) 0 2.2rem; }
.eyebrow { font-size: .875rem; letter-spacing: .13em; font-weight: 800; text-transform: uppercase; }
h1,h2 { font-family: Georgia,serif; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(2.5rem,6vw,5rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2rem,4vw,3.5rem); }
.intro { font-size: clamp(1.05rem,2vw,1.35rem); margin: .7rem 0; }
.classes { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.4rem,2vw,1.6rem); margin: clamp(1rem,3vw,2.5rem) auto 1.5rem; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: clamp(165px,27vw,390px); object-fit: contain; object-position: bottom; transition: transform .3s; }
figure:hover img { transform: translateY(-7px); }
figcaption { display: inline-block; margin-top: .8rem; padding: .42rem .8rem; border: 1px solid var(--gold); border-radius: 2rem; background: #fffdf7f5; color: var(--red); font-size: .875rem; font-weight: 700; }
button { font: inherit; cursor: pointer; }
.button { display: inline-block; border: 1px solid #a74f59; border-radius: .8rem; padding: .72rem 1.15rem; color: white; font-weight: 750; background: var(--red); }
#video-toggle,.account-help button { border: 0; background: transparent; color: var(--red); text-decoration: underline; padding: .65rem; }
.lower { display: grid; grid-template-columns: 1fr minmax(0,460px); gap: clamp(2rem,7vw,6rem); width: min(1100px,calc(100% - 2.5rem)); margin: clamp(2rem,6vw,5rem) auto; align-items: center; }
dl { margin: 1.2rem 0; } dl div { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid #ddc69e; gap: 1rem; } dd { margin: 0; font-weight: 700; color: var(--red); }
.account { border: 1px solid var(--gold); outline: 1px dashed #bb9455; outline-offset: -7px; background: white; border-radius: 1.6rem; padding: clamp(1.4rem,4vw,2rem); box-shadow: 0 12px 40px #422d231a; }
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .25rem; background: #f4eee4; border-radius: .85rem; }
.switch button { background: transparent; border: 1px solid transparent; border-radius: .7rem; color: var(--ink); font-weight: 750; padding: .65rem .25rem; }
.switch [aria-pressed=true] { background: white; color: var(--red); border-color: var(--gold); }
.status,.note { color: #65575b; font-size: .9rem; }
.account label { display: grid; gap: .4rem; font-size: .875rem; font-weight: 750; margin: 1rem 0; }
.account label[hidden] { display: none; }
input { width: 100%; min-height: 46px; border-radius: .65rem; border: 1px solid #d5bf9e; background: #faf8f4; }
.submit { width: 100%; }
.submit:disabled { opacity: .65; cursor: default; }
.account-help { text-align: center; }
.note { border-top: 1px solid #e7d8bd; padding-top: .8rem; }
footer { border-top: 1px solid #e7d8bd; text-align: center; padding: 1.25rem; }
:focus-visible { outline: 3px solid #946227; outline-offset: 3px; }
@media(max-width: 660px) { .classes,.lower { grid-template-columns: repeat(2,minmax(0,1fr)); } .lower { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } figure img { transition: none; } }

header { flex-wrap: wrap; }
nav { flex-wrap: wrap; }
.class-choice { background: transparent; border: 0; padding: 0; color: inherit; }
.class-choice img { display: block; width: 100%; height: clamp(165px,27vw,390px); object-fit: contain; object-position: bottom; transition: transform .28s; }
.class-choice:hover img,.class-choice[aria-pressed=true] img { transform: translateY(-6px); }
.class-choice span { display: inline-block; margin-top: .8rem; padding: .4rem .85rem; border: 1px solid var(--gold); border-radius: 2rem; background: white; color: var(--red); font-size: .875rem; font-weight: 750; }
.class-choice[aria-pressed=true] span { background: var(--red); color: white; }
#class-detail { min-height: 3rem; margin: 0 auto .6rem; }
.secondary { background: var(--paper); color: var(--red); border-color: var(--gold); }
.section-inner { width: min(1100px, calc(100% - 2.5rem)); margin-inline: auto; padding-block: clamp(2.5rem, 7vw, 5rem); }
.arena { background: radial-gradient(ellipse at 45% 100%, #792b3d, #32131d 75%); color: #fffaf1; }
.arena .eyebrow,.arena h3 { color: #f3cc87; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.feature-grid > * { border: 1px solid var(--gold); outline: 1px dashed #b18b5299; outline-offset: -6px; padding: 1.35rem; border-radius: .85rem; transition: transform .24s; }
.feature-grid > *:hover { transform: translateY(-4px); }
.feature-grid h3,.feature-grid p { margin: .25rem 0; }
.podium { text-align: center; }
.podium li { background: white; }
.podium strong { font: bold 2rem Georgia,serif; color: var(--red); }
.steps { padding-left: 1.4rem; }
.steps li { margin: .7rem 0; }
@media(max-width: 660px) { .feature-grid { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion: reduce) { .class-choice img,.feature-grid > * { transition: none; transform: none !important; } }

.hero-brand {
  margin: 0 0 .4rem;
  color: #392421;
  font: 700 clamp(3.75rem, 11vw, 9rem)/.95 Georgia, serif;
  letter-spacing: -.065em;
  text-shadow: 0 1px #fff5df, 0 3px #c19a55, 0 8px 24px #5c332c40;
}
.hero-brand span { color: var(--red); }

header { background: #fffdf7; }
.hero::after { background: linear-gradient(180deg,#fffaf1e8 0%,#fffaf156 42%,#f5e5ccc9 82%,#fffdf7 100%); }
.hero-inner { padding-top: clamp(1.5rem,3.5vw,3.4rem); }
.hero-brand { color: #482820; }
.hero .eyebrow { color: #6b422c; }
.classes { gap: clamp(.5rem,2vw,1.5rem); }
.class-choice { position: relative; isolation: isolate; border-radius: 44% 44% .9rem .9rem / 32% 32% .9rem .9rem; }
.class-choice::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 6% 1rem;
  border: 1px solid #9d6f3980;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 75%,#e8b960a6,transparent 69%),#fff8ec38;
  opacity: .55;
  transition: opacity .25s ease;
}
.class-choice:hover::before,.class-choice[aria-pressed=true]::before { opacity: 1; }
.class-choice[aria-pressed=true] img { filter: drop-shadow(0 12px 14px #54362368); }
.hero-controls { margin-inline: auto; width: fit-content; max-width: 100%; padding: .75rem 1rem; border-block: 1px solid #c9a46b; }
#class-detail { min-height: 2.4rem; }
.arena { position: relative; isolation: isolate; overflow: hidden; border-block: 1px solid #c59b5e; }
.arena::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(ellipse at 70% 120%,transparent 0 49px,#ddad6423 50px 51px,transparent 52px 85px);
  pointer-events: none;
}
.arena article { background: #32131d85; }
.hall .podium li:first-child { background: linear-gradient(140deg,#fffaf0,#f6e5c4); }
.account { background: linear-gradient(160deg,#fffdf7,white); }
@media(prefers-reduced-motion: reduce) { .class-choice::before { transition: none; } }

.ranking-portrait {
  display: block;
  margin: .75rem auto;
  border: 1px solid var(--gold);
  border-radius: .55rem;
}
.ranking-portrait { image-rendering: pixelated; width: 130px; height: 143px; }

.game-facts {
  text-align: center;
  border-block: 1px solid #d9bf8d;
  background: repeating-linear-gradient(60deg, transparent 0 37px, #b68a3820 38px 39px, transparent 40px 76px), #f4ead5;
}
.game-facts article { background: linear-gradient(#fffdf7,#f8efd9); padding: 1.6rem 1.25rem; }
.game-facts img { display: block; margin: 0 auto .8rem; image-rendering: pixelated; }
.game-facts h3 { color: #694e31; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; }
.game-facts strong { display: block; color: #845016; font: bold clamp(1.6rem, 3vw, 2.25rem) Georgia,serif; }
.game-facts p { border-top: 1px solid #deca9e; margin: 1rem auto 0; padding-top: 1rem; max-width: 29ch; }
.ranking-portrait { width: auto; height: 143px; max-width: 100%; object-fit: contain; }
