/* Ragnarok Card Storm: teal ink, parchment and antique gold, measured from the 2026-11 mockups. Installed fonts only. */
:root {
  color-scheme: light;
  --ink: #0A3239;
  --ink-raised: #0E3D45;
  --ink-deep: #062A30;
  --parchment: #F7EBDA;
  --parchment-raised: #FBF3E6;
  --parchment-deep: #E8D4B7;
  --gold: #C7994B;
  --gold-bright: #F0C273;
  --gold-hover: #E8C27A;
  --gold-line: #CDAA6E;
  --gold-ink: #8A6428;
  --text: #1F1913;
  --muted: #4A4036;
  --brown: #3A2412;
  --link: #94661C;
  --light: #FFF5DF;
  --light-muted: #E9E5DA;
  --focus: #0E6F86;
  --focus-on-dark: #FFE7A8;
  --error-text: #8C1C2C;
  --error-bg: #FBE7E5;
  --error-line: #C46C76;
  --notice-text: #1E4D3B;
  --notice-bg: #E3F0E3;
  --notice-line: #7CA88C;

  --rarity-common: #9A9A9A;
  --rarity-uncommon: #2F6FE0;
  --rarity-rare: #D8B020;
  --rarity-foil: #E040C8;
  --rarity-elemental: #1BA36F;
  --rarity-enchanted: #8A3FE0;
  --rarity-blessed: #EE6AA7;
  --rarity-cursed: #B0102A;
  --rarity-accent: var(--rarity-common);

  --font-heading: Georgia, 'Times New Roman', serif;
  /* Georgia only has old-style digits; the mockups set numbers in lining figures. */
  --font-numeral: 'Palatino Linotype', 'Book Antiqua', Palatino, 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --gutter: 1.5rem;
  --section: 4.5rem;
  --radius: 4px;
  --content-width: 75rem;
  --header-height: 3.5rem;
  --shadow: 0 18px 50px rgb(10 50 57 / 18%);
  --diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 0 8 4 4 8 0 4Z' fill='%23C7994B'/%3E%3C/svg%3E");
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--paper), var(--parchment);
  font: 400 1rem/1.5 var(--font-body);
}

main { flex: 1; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .7; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, figure { margin: 0; }
p, li, h1, h2, h3, dd, a { overflow-wrap: anywhere; }

/* The mockups letter headings at Georgia Regular widths with heavier strokes; a hairline stroke matches both. */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  -webkit-text-stroke: .025em currentColor;
}

h1 { font-size: clamp(2.125rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.375rem); }
h3 { font-size: 1.375rem; }

a {
  color: var(--link);
  text-underline-offset: .2em;
}

a:hover { color: var(--text); }

code {
  padding: .1em .35em;
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  color: var(--text);
  background: var(--parchment-raised);
  font: .92em var(--font-mono);
}

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

.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: min(var(--content-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* Teal surfaces */
.on-dark {
  color: var(--light);
  background: var(--ink);
}

.on-dark a:not(.button) { color: var(--gold-hover); }
.on-dark a:not(.button):hover { color: var(--light); }

/* Ornaments: thin gold rules around a diamond. */
.ornament {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--gold);
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
}

.ornament > span,
.diamond {
  flex: 0 0 auto;
  width: .5rem;
  height: .5rem;
  background: currentColor;
  transform: rotate(45deg);
}

.ornament--outline > span {
  border: 1.5px solid currentColor;
  background: transparent;
}

/* Lines that end in a diamond next to a centered heading or button. */
.flanked {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.flanked::before,
.flanked::after {
  content: '';
  flex: 1;
  height: .5rem;
  background:
    var(--diamond) right center / .5rem .5rem no-repeat,
    linear-gradient(var(--gold), var(--gold)) left center / calc(100% - .25rem) 1px no-repeat;
}

.flanked::after { transform: scaleX(-1); }

.section-title {
  display: grid;
  justify-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.section-title .ornament { width: min(25rem, 100%); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Buttons: serif labels, beveled gold fill. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  max-width: 100%;
  min-height: 2.625rem;
  padding: .5rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 400 1.125rem/1.2 var(--font-heading);
  text-align: center;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, filter .15s;
}

.button--primary {
  border-color: #A87B33;
  color: #1F1608;
  background: linear-gradient(180deg, #F4D38F 0%, #E8BD70 45%, #D6A24F 100%);
  box-shadow: inset 0 1px 0 #FFF1CC, 0 2px 5px rgb(0 0 0 / 28%);
}

.button--primary:hover {
  color: #1F1608;
  filter: brightness(1.07);
}

.button--secondary {
  border: 1.5px solid #EADBB8;
  color: var(--light);
  background: rgb(7 38 46 / 62%);
  box-shadow: inset 0 0 0 2px rgb(7 38 46 / 70%), inset 0 0 0 3px #C7994B55;
}

.button--secondary:hover {
  color: var(--light);
  background: rgb(14 61 69 / 85%);
}

.button--ghost {
  border-color: var(--gold-line);
  color: var(--text);
  background: var(--parchment-raised);
  font: 400 1rem/1.2 var(--font-body);
}

.button--ghost:hover {
  border-color: var(--gold);
  color: var(--text);
  background: #fff;
}

.button--large {
  min-height: 3.375rem;
  padding-inline: 2.75rem;
  font-size: 1.625rem;
}

.button--nav {
  min-height: 2.125rem;
  padding: .3rem 1.3rem;
  font-size: 1rem;
}

.button--block { width: 100%; }

/* Header */
.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--gold-hover);
  transform: translateY(-200%);
}

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

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 2px solid var(--gold);
  color: var(--light);
  background: var(--ink);
  box-shadow: 0 1px 0 #00000055;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--light);
  font-family: var(--font-heading);
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark:hover { color: var(--light); }

.wordmark__emblem {
  flex: 0 0 auto;
  width: 3.25rem;
  height: auto;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 40%));
}

.wordmark__text {
  display: inline-grid;
  justify-items: center;
  gap: .15rem;
}

.wordmark__name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.wordmark__sub {
  display: flex;
  align-items: center;
  gap: .4rem;
  width: 100%;
  font-size: .75rem;
  letter-spacing: .3em;
}

.wordmark__sub::before,
.wordmark__sub::after {
  content: '';
  flex: 1;
  min-width: .75rem;
  height: 1px;
  background: currentColor;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .4rem .9rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--light);
  background: transparent;
  font: 400 1rem var(--font-heading);
}

.menu-toggle__bars {
  display: grid;
  gap: 4px;
}

.menu-toggle__bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.site-nav__links,
.site-nav__session {
  display: flex;
  align-items: center;
  gap: .25rem 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__session {
  gap: .75rem 1.6rem;
  padding-left: 2.25rem;
  background: linear-gradient(#C7994Bcc, #C7994Bcc) left center / 1px 1.75rem no-repeat;
}

.site-nav__session form { margin: 0; }

.site-nav a:not(.button),
.nav-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: .25rem .2rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--light);
  background: none;
  font: 400 1rem var(--font-heading);
  text-decoration: none;
}

.site-nav a:not(.button):hover,
.nav-link-button:hover { color: var(--gold-hover); }

.site-nav a[aria-current='page'] {
  border-bottom-color: var(--gold);
  color: var(--gold-hover);
}

.nav-account {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footers */
.site-footer {
  border-top: 1px solid var(--gold);
  color: #EADBB8;
  background: var(--ink);
  text-align: center;
}

.site-footer__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  min-height: 3.5rem;
  font: 400 .875rem var(--font-heading);
  letter-spacing: .32em;
  text-transform: uppercase;
}

.site-footer__bar .diamond {
  width: .4rem;
  height: .4rem;
  border: 1.5px solid var(--gold);
  background: none;
}

/* The landing footer pulls up under the last section so its skyline sits behind the closing button. */
.site-footer--scenic {
  margin-top: -3.25rem;
  padding: 5.6rem 0 1.75rem;
  border-top: 0;
  background:
    url('/portal-static/img/skyline-left.webp') left bottom / auto 8.25rem no-repeat,
    url('/portal-static/img/skyline-right.webp') right bottom / auto 8.25rem no-repeat,
    linear-gradient(transparent 60%, #062A30),
    var(--ink);
}

.site-footer--scenic .wordmark__name { font-size: 1.3rem; }
.site-footer--scenic .wordmark__sub { font-size: .7rem; }

/* Rarity accents */
[data-rarity='common'] { --rarity-accent: var(--rarity-common); }
[data-rarity='uncommon'] { --rarity-accent: var(--rarity-uncommon); }
[data-rarity='rare'] { --rarity-accent: var(--rarity-rare); }
[data-rarity='foil'] { --rarity-accent: var(--rarity-foil); }
[data-rarity='elemental'] { --rarity-accent: var(--rarity-elemental); }
[data-rarity='enchanted'] { --rarity-accent: var(--rarity-enchanted); }
[data-rarity='blessed'] { --rarity-accent: var(--rarity-blessed); }
[data-rarity='cursed'] { --rarity-accent: var(--rarity-cursed); }

/* Landing: the eight beveled chips */
.chip-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.3rem;
  padding: 0 .75rem;
  list-style: none;
}

.rarity-chip {
  --chip: #DCCDBA;
  --chip-line: #A99780;
  --gem: #8A7A66;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.0625rem;
  padding: .2rem .5rem;
  border: 1px solid var(--chip-line);
  border-bottom-color: color-mix(in srgb, var(--chip-line) 75%, #000);
  border-radius: var(--radius);
  color: #1F1913;
  background: linear-gradient(180deg, color-mix(in srgb, var(--chip) 70%, #fff), var(--chip) 55%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%), inset 0 0 0 2px rgb(255 255 255 / 18%), 0 1px 2px rgb(60 40 20 / 25%);
  font: 400 .9375rem/1.1 var(--font-heading);
  white-space: nowrap;
}

.rarity-chip .gem {
  flex: 0 0 auto;
  width: .55rem;
  height: .55rem;
  border: 2px solid var(--gem);
  background: color-mix(in srgb, var(--gem) 45%, #fff);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 60%);
  transform: rotate(45deg);
}

.rarity-chip[data-rarity='uncommon'] { --chip: #8EC1E6; --chip-line: #4E87BC; --gem: #1F5FA8; }
.rarity-chip[data-rarity='rare'] { --chip: #F8D579; --chip-line: #C6993A; --gem: #A4721A; }
.rarity-chip[data-rarity='elemental'] { --chip: #8AD9B6; --chip-line: #3F9E75; --gem: #0F6B45; }
.rarity-chip[data-rarity='enchanted'] { --chip: #CFA9DB; --chip-line: #8D62A9; --gem: #5B2E86; }
.rarity-chip[data-rarity='blessed'] { --chip: #F7B0CF; --chip-line: #C9648F; --gem: #A8306B; }
.rarity-chip[data-rarity='cursed'] { --chip: #93232B; --chip-line: #5E1218; --gem: #F6DCC4; color: #FFF0E0; }
.rarity-chip[data-rarity='cursed'] .gem { background: transparent; }

.rarity-chip[data-rarity='foil'] {
  --chip-line: #9C8CD0;
  --gem: #2F79D2;
  background: linear-gradient(100deg, #C3DAFB, #EAB9F2 38%, #F7E4BC 62%, #BCE9F0);
}

/* Landing: hero */
.hero {
  position: relative;
  isolation: isolate;
  height: clamp(26rem, 47.25vw, 44rem);
  border-bottom: 4px solid var(--gold);
  border-image: linear-gradient(#FFF6D5 0 25%, #E3C79A 25% 50%, #BF8A51 50% 75%, #DCBF97 75%) 1;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
}

.hero__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(6 36 44 / 55%) 0%, rgb(6 36 44 / 32%) 32%, transparent 55%);
}

.hero__inner {
  position: relative;
  height: 100%;
}

.hero__copy {
  max-width: 34rem;
  padding: clamp(4.75rem, 7.2vw, 6.5rem) 0 0 1.375rem;
  text-shadow: 0 2px 10px rgb(4 30 38 / 55%);
}

.eyebrow {
  display: inline-grid;
  gap: .4rem;
  color: #F6EBD3;
  font: 400 .875rem/1.2 var(--font-heading);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.eyebrow .ornament { gap: .3rem; }
.eyebrow .ornament > span { width: .375rem; height: .375rem; }

.hero h1 {
  margin-top: .65rem;
  color: #FBF1DA;
  font-size: clamp(2.875rem, 4.35vw, 3.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.005em;
}

.lede {
  max-width: 20.75rem;
  margin-top: .7rem;
  color: #fff;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.hero .button--primary { font-size: 1.1875rem; }
.hero .button--secondary { font-size: 1rem; padding-inline: 1.4rem; }

/* A card as the game's Cards tab draws it: the illustration on a parchment plate, under the rarity
   frame and finish from card-finish.css (a copy of the game's CardFinish.css). */
.card-plate {
  position: relative;
  display: block;
  aspect-ratio: .72;
  overflow: hidden;
  border-radius: 7px;
  background: radial-gradient(90% 80% at 50% 40%, #FBF6EA, #ECE2CB);
}

.card-plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.hero__fan {
  position: absolute;
  z-index: 2;
  right: 2.3rem;
  bottom: -.55rem;
  width: clamp(26.5rem, 40vw, 34rem);
  aspect-ratio: 960 / 561;
}

.hero-card {
  position: absolute;
  bottom: 4%;
  width: 30%;
  border-radius: 9px;
  box-shadow: var(--glow, 0 0 0 transparent), 0 12px 26px rgb(0 0 0 / 50%);
  transform: rotate(var(--tilt, 0deg));
  transform-origin: 50% 100%;
  transition: translate .25s ease-out;
}

.hero-card:hover { translate: 0 -.5rem; }
.hero-card:focus-visible { outline: 3px solid var(--focus-on-dark); outline-offset: 4px; }
.hero-card--left { left: 4%; --tilt: -11deg; }
.hero-card--right { right: 4%; --tilt: 11deg; }
.hero-card--center { z-index: 1; left: 32%; bottom: 9%; width: 36%; }

/* Shallow banner used by Cards and Server Info */
.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
  background: var(--ink);
}

.banner__art {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 19%;
}

.banner::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(6 36 44 / 55%) 0%, rgb(6 36 44 / 30%) 30%, transparent 52%);
}

.banner__copy {
  display: grid;
  align-content: start;
  justify-items: start;
  height: clamp(15rem, 23.75vw, 22rem);
  padding: 2.2rem 0 0 1.9rem;
  color: var(--light);
  text-shadow: 0 2px 10px rgb(4 30 38 / 60%);
}

.banner h1 {
  color: #FBF1DA;
  font-size: 2.5rem;
  line-height: 1;
}

.banner--cards .banner__art { object-position: 50% 25%; }
.banner--cards .banner__copy { padding: 3.2rem 0 0 2.4rem; }
.banner--cards h1 { font-size: 3.25rem; line-height: 1; }
.banner--cards .ornament { width: 23rem; margin-top: .55rem; }

.banner__tagline {
  margin-top: .6rem;
  font: italic 1.1875rem var(--font-heading);
}

.banner__lede {
  margin-top: .65rem;
  font-size: 1rem;
}

.banner--server .banner__art { object-position: 50% 34%; }
.banner--server .ornament { width: 18.75rem; margin-top: .75rem; }

/* Landing: rarity overview and features */
.rarities { padding: 1.85rem 0 1.5rem; }

.rarities__crest {
  width: min(40rem, 100%);
  margin: 0 auto .6rem;
}

.ruled-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-inline: 1.375rem;
  text-align: center;
}

.ruled-title::before,
.ruled-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
}

.rarities__sub {
  margin-top: .3rem;
  font-size: 1.0625rem;
  text-align: center;
}

.rarities__sub strong { font-weight: 600; }

.features {
  display: grid;
  margin-top: 2.3rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.feature img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  padding: 2px;
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  background: #FFF8EC;
  box-shadow: 0 0 0 1px #FFF8EC, 0 0 0 2px #CDAA6E66, 0 3px 8px rgb(80 50 20 / 18%);
}

.feature h3 {
  margin-top: .9rem;
  font-size: 1.5rem;
  font-weight: 400;
}

.feature p {
  max-width: 15.5rem;
  margin-top: .45rem;
  font-size: .9375rem;
  line-height: 1.25;
}

.feature .ornament {
  width: 12.5rem;
  margin-top: .6rem;
}

/* Landing: three steps */
.journey {
  padding: 1.25rem 0 0;
  border-top: 2px solid var(--gold);
  background:
    url('/portal-static/img/leaves-left.webp') left top no-repeat,
    url('/portal-static/img/leaves-right.webp') right top no-repeat,
    var(--ink);
}

.journey .flanked {
  max-width: 57rem;
  margin-inline: auto;
  font-size: 2.28rem;
  font-weight: 400;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0;
  margin-inline: -.6rem;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
}

.step + .step::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -.95rem;
  width: .5rem;
  height: 3rem;
  background:
    var(--diamond) center / .5rem .5rem no-repeat,
    linear-gradient(transparent, var(--gold) 30%, var(--gold) 70%, transparent) center / 1px 100% no-repeat;
  transform: translateY(-50%);
}

.step__art { flex: 0 0 auto; width: 8.25rem; }
.step:nth-child(2) .step__art { width: 10.3rem; }
.step:nth-child(3) .step__art { width: 9.4rem; }

.step__number {
  display: block;
  color: var(--gold-bright);
  font: 400 2.375rem/1 var(--font-numeral);
}

.step h3 {
  margin-top: .35rem;
  color: #FFF8EA;
  font-size: 1.25rem;
  white-space: nowrap;
  font-weight: 400;
}

.step p {
  max-width: 9.75rem;
  margin-top: .45rem;
  color: #F2F0EA;
  font-size: .875rem;
  line-height: 1.35;
}

.final-cta {
  position: relative;
  z-index: 1;
  max-width: 47.5rem;
  margin: 1.6rem auto 0;
  gap: 2rem;
}

/* Authentication pages: night art with a parchment form. */
.auth {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: calc(100vh - var(--header-height) - 3.6rem);
  overflow: hidden;
  background: var(--ink);
}

.auth__art {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.auth::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 40% at 15% 100%, rgb(6 30 38 / 55%), transparent),
    linear-gradient(0deg, rgb(6 30 38 / 50%) 0%, transparent 30%);
}

.auth__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(84rem, calc(100% - 6rem));
  padding-block: 2.5rem;
}

.auth__welcome {
  align-self: flex-end;
  padding: 0 0 .5rem 1rem;
  color: #FBF1DA;
  text-shadow: 0 2px 14px rgb(4 24 30 / 85%);
}

.auth__headline {
  max-width: 8em;
  font: 400 4.125rem/1 var(--font-heading);
  letter-spacing: -.01em;
  -webkit-text-stroke: .025em currentColor;
}

.auth__welcome .ornament { width: 26.25rem; max-width: 100%; margin-top: .9rem; }

.auth__sub {
  margin-top: .35rem;
  font: 1.5rem var(--font-heading);
}

.panel {
  flex: 0 0 auto;
  width: min(29.5rem, 100%);
  padding: 2.4rem 2.4rem 2rem;
  border: 1.5px solid #C9A46A;
  border-radius: 10px;
  outline: 1px solid #C9A46A99;
  outline-offset: -7px;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 35%, #FDF6E9 0%, transparent 70%),
    var(--paper),
    #F8EBD7;
  box-shadow: 0 0 0 3px #F8EBD7aa, 0 24px 60px rgb(4 24 30 / 60%);
}

.panel--wide { width: min(36rem, 100%); }

.panel__header {
  display: grid;
  justify-items: center;
  gap: .55rem;
  margin-bottom: 1.6rem;
  text-align: center;
}

.panel__header h1 {
  font-size: clamp(2.125rem, 4vw, 3rem);
  line-height: 1.02;
  -webkit-text-stroke-width: .035em;
}

.panel__header p { font: 1.25rem var(--font-heading); }

.ornament--crest {
  width: 13.5rem;
  margin-bottom: .8rem;
  gap: 1rem;
}

.ornament--crest::before,
.ornament--crest::after { flex: 1; }

.ornament--crest > span {
  width: .9rem;
  height: .9rem;
  border: 1.5px solid currentColor;
  background: radial-gradient(currentColor 25%, transparent 30%);
}

.form {
  display: grid;
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 0;
}

.field label,
legend {
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
}

.panel .field label { font-size: 1.1875rem; }

.field :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: .65rem .85rem;
  border: 1px solid #C9A46A;
  border-radius: var(--radius);
  color: var(--text);
  background: #FCF5E8;
  box-shadow: inset 0 1px 2px rgb(120 80 30 / 10%);
}

.field :is(input, select):hover { border-color: var(--gold-ink); }

.field :is(input, select):focus-visible {
  border-color: var(--focus);
  outline-offset: 1px;
}

.field [aria-invalid='true'] {
  border-color: var(--error-text);
  border-width: 2px;
}

input::placeholder { color: #6E6458; opacity: 1; }

.password-field { position: relative; }
.password-field input { padding-right: 3.25rem; }

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  color: var(--text);
  background: none;
}

.password-toggle svg { width: 1.5rem; height: 1.5rem; }
.password-toggle[aria-pressed='true'] svg { color: var(--link); }

.hint {
  color: var(--muted);
  font-size: .875rem;
}

.field-error {
  color: var(--error-text);
  font-size: .875rem;
  font-weight: 600;
}

.field-error::before { content: '⚠ '; }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.choice-fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-fieldset legend { margin-bottom: .5rem; padding: 0; }

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .55rem .9rem;
  border: 1px solid #C9A46A;
  border-radius: var(--radius);
  background: #FCF5E8;
  cursor: pointer;
}

.choice input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--ink);
}

.choice:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.form .button--large {
  min-height: 3.5rem;
  margin-top: .45rem;
  font-size: 1.85rem;
}

.panel__note {
  margin-top: -.35rem;
  font-size: 1.0625rem;
  text-align: center;
}

.panel__footer {
  display: grid;
  gap: .9rem;
  margin-top: 1.5rem;
  text-align: center;
}

.panel__footer p { font: 1.375rem var(--font-heading); }
.panel__footer a { color: var(--link); text-decoration-thickness: 1px; }

.notice,
.error {
  margin-bottom: 1.25rem;
  padding: .85rem 1rem;
  border: 1px solid;
  border-left-width: 4px;
  border-radius: var(--radius);
  font-size: .9375rem;
}

.notice {
  border-color: var(--notice-line);
  color: var(--notice-text);
  background: var(--notice-bg);
}

.error {
  border-color: var(--error-line);
  color: var(--error-text);
  background: var(--error-bg);
  font-weight: 600;
}

.error::before { content: '⚠ '; }

/* Simple parchment pages (account, error). */
.page { padding-block: 3.5rem var(--section); }
.page .panel { margin-inline: auto; box-shadow: var(--shadow); }

.account-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .5rem 1.5rem;
}

.account-facts dt { color: var(--muted); }
.account-facts dd { margin: 0; font-weight: 600; }
.account-section { margin-top: 2rem; }
.account-section h2 { margin-bottom: 1rem; font-size: 1.5rem; }
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: .6rem .5rem;
  border-bottom: 1px solid var(--gold-line);
  text-align: left;
}

th { color: var(--muted); font-weight: 600; }

/* Server info */
.server-basics { width: min(59rem, calc(100% - 2 * var(--gutter))); padding-top: .75rem; }
.server-basics > .ornament:last-child { margin-top: 0; }

.basics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: .9rem 0 .8rem;
  list-style: none;
}

.basics li {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding-inline: 1.9rem .4rem;
}

.basics li + li { background: linear-gradient(var(--gold-line), var(--gold-line)) left center / 1px 85% no-repeat; }

.basics img {
  flex: 0 0 auto;
  margin-top: .1rem;
}

.basics h2 {
  font-size: 1.125rem;
  line-height: 1;
  -webkit-text-stroke-width: .035em;
}

.basics p {
  margin-top: .2rem;
  font-size: .84rem;
  line-height: 1.2;
}

:is(.rarity-ladder, .worlds) { padding-top: 1.15rem; }

:is(.rarity-ladder, .worlds) .section-title { gap: .3rem; }
:is(.rarity-ladder, .worlds) .section-title h2 { font-size: 2.25rem; }
:is(.rarity-ladder, .worlds) .section-title .ornament { width: min(31rem, 100%); }
.rarity-table {
  width: min(57rem, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  background: #F9EEDE;
}

.rarity-table thead th {
  padding: .32rem 1.25rem;
  border-bottom: 1px solid var(--gold-line);
  color: var(--text);
  background: linear-gradient(#ECDCC2, #E5D0AF);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

.rarity-table :is(tbody th, td) {
  height: 2.6rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid #DCC49B;
  color: var(--text);
  vertical-align: middle;
}

.rarity-table :is(th, td) + :is(th, td) { border-left: 1px solid #DCC49B; }

.rarity-table tbody th {
  width: 34.5%;
  padding-left: 3.2rem;
  font-weight: 400;
}

.rarity-table tr:last-child > * { border-bottom: 0; }

.rarity-name {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.rarity-name img {
  width: 3.5rem;
  height: auto;
}

.rarity-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.6rem;
  min-height: 1.4rem;
  padding: .1rem .75rem;
  border-radius: 4px;
  color: #fff;
  background: var(--label);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 1px 1px rgb(0 0 0 / 20%);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rarity-label[data-rarity='common'] { --label: #716B63; }
.rarity-label[data-rarity='uncommon'] { --label: #2970A9; }
.rarity-label[data-rarity='rare'] { --label: #A86F10; }
.rarity-label[data-rarity='foil'] { --label: #9C2C9A; }
.rarity-label[data-rarity='elemental'] { --label: #13805A; }
.rarity-label[data-rarity='enchanted'] { --label: #6D4DA6; }
.rarity-label[data-rarity='blessed'] { --label: #C9447C; }
.rarity-label[data-rarity='cursed'] { --label: #B32F32; }

/* The drop chance header spans one column per world; its second row starts beside the rowspan Rarity cell. */
.rarity-table thead tr + tr th:first-child { border-left: 1px solid #DCC49B; }
/* Sized by its content: a percentage lets the rarity label run into the first chance column below ~1000px. */
.rarity-table--worlds tbody th { width: auto; }

.rarity-table .chance {
  width: 14%;
  font-size: 1.1875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.rarity-table td:last-child {
  padding-left: 3.1rem;
  font-size: .9375rem;
}

.rarity-table__note {
  margin: .55rem 0 .7rem;
  font-size: .8125rem;
  font-style: italic;
  text-align: center;
}

.world-table tbody th {
  width: 30%;
  padding-left: 1.75rem;
  font-weight: 700;
}

.world-table td {
  font-size: 1.1875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.world-table td:last-child { padding-left: 1.25rem; font-size: 1.1875rem; }

.transform {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: min(78.75rem, calc(100% - 1rem));
  min-height: 12.75rem;
  margin: .95rem auto 0;
  background: var(--ink);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgb(10 40 45 / 25%);
}

.transform__art {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: auto;
  max-width: none;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%);
  mask-image: linear-gradient(90deg, transparent, #000 18%);
}

.transform__copy {
  display: grid;
  gap: .25rem;
  padding: 1rem 1.5rem 1.4rem 3.6rem;
}

.transform h2 {
  font-size: 2.25rem;
  line-height: .98;
}

.transform__copy > p { font-size: 1.0625rem; }
.transform__copy strong { font-weight: 700; }

.timers {
  display: flex;
  align-items: stretch;
  gap: 2.1rem;
  margin-top: .65rem;
  padding: 0;
  list-style: none;
}

.timers li {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 3.375rem;
  padding: .3rem 1rem .3rem .8rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
}

.timers li + li::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -1.1rem;
  width: 1px;
  height: 80%;
  background: #C7994B88;
}

.stopwatch {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--gold-bright);
}

.timers strong {
  color: var(--light);
  font: 400 2.375rem/1 var(--font-numeral);
}

.timers span {
  color: var(--light-muted);
  font-size: .78rem;
  line-height: 1.2;
}

.faq-section { padding-top: .7rem; }
.faq-section h2 { font-size: 2.125rem; -webkit-text-stroke-width: .04em; }
.faq-section .section-title { gap: .25rem; margin-bottom: .9rem; }
.faq-section .section-title .ornament { width: min(33.5rem, 100%); }

.faq {
  display: grid;
  gap: .5rem;
  max-width: 59.5rem;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  background: #FAF0E1;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.15rem;
  padding: .2rem 1.6rem;
  font: 400 1.1875rem var(--font-heading);
  -webkit-text-stroke: .03em currentColor;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '';
  flex: 0 0 auto;
  width: .5rem;
  height: .5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-25%);
}

.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 1.6rem .9rem; color: var(--muted); }

.closing {
  margin-top: 1.25rem;
  padding: .9rem 0 1.75rem;
  border-top: 1px solid var(--gold);
  background:
    url('/portal-static/img/skyline-left.webp') left bottom / auto 8.25rem no-repeat,
    url('/portal-static/img/skyline-right.webp') right bottom / auto 8.25rem no-repeat,
    var(--ink);
}

.closing__inner {
  display: grid;
  justify-items: center;
  gap: .35rem;
  text-align: center;
}

.closing h2 { font-size: 2.125rem; }

.closing .ornament { width: min(19.5rem, 100%); }
.closing .button { min-width: 16rem; margin-top: .7rem; }

/* Play page: the game iframe fills the window under a slim header. */
body.play {
  height: 100vh;
  overflow: hidden;
}

.play-header .site-header__inner { min-height: 3.25rem; }
.play-header .wordmark__name { font-size: 1.2rem; }
.play-header .wordmark__sub { font-size: .6rem; }

.play-hint {
  color: var(--light-muted);
  font-size: .9375rem;
}

.play-stage {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
}

#game {
  flex: 1;
  width: 100%;
  border: 0;
  background: #000;
}

/* Start screen over the loading game: the Play click is what lets the page go fullscreen. */
.play-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(ellipse at 50% 45%, rgb(6 42 48 / 35%), rgb(6 42 48 / 85%)),
    url(img/prontera-login.webp) center / cover;
}

.play-start[hidden] { display: none; }
.play-start .panel { text-align: center; }
.play-start .panel__header { margin-bottom: 1.4rem; }

.play-start__hint {
  margin: .75rem 0 .35rem;
  color: var(--muted);
  font-size: .875rem;
}

.play-start__window {
  color: var(--link);
  font-size: .9375rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Tablet */
@media (max-width: 60rem) {
  .chip-row { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features > :last-child { grid-column: 1 / -1; max-width: 32rem; justify-self: center; }
  .steps { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1rem; }
  .step { width: min(26rem, 100%); }
  .step + .step::before { display: none; }
  .hero .button--primary { font-size: 1.1875rem; }
.hero .button--secondary { font-size: 1rem; padding-inline: 1.4rem; }

/* Narrow enough that the tilted left card clears the hero buttons. */
.hero__fan { width: min(22rem, 100vw - 33rem); right: 1rem; }
  .basics { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .basics li { padding-inline: 0; }
  .basics li + li { padding-top: 1.25rem; background: linear-gradient(var(--gold-line), var(--gold-line)) top / 100% 1px no-repeat; }
  .auth__welcome { display: none; }
  .auth__inner { justify-content: center; }
}

/* Narrow desktop: the full nav (five links, account name, Sign out, Play now) needs about 70rem.
   Tighter gaps keep it on one row down to the compact navigation below. */
@media (min-width: 64.0625rem) and (max-width: 74rem) {
  .site-header__inner { gap: 1rem; }
  .wordmark__emblem { width: 2.5rem; }
  .site-nav { gap: 1.1rem; }
  .site-nav__links { gap: .25rem 1.2rem; }
  .site-nav__session { gap: .75rem 1rem; padding-left: 1.1rem; }
  .nav-account { max-width: 8rem; }
}

@media (max-width: 56rem) {
  .transform__copy { padding-left: 1.5rem; }
  .transform__art { opacity: .45; }
}

/* Compact navigation */
@media (max-width: 64rem) {
  .js .menu-toggle { display: inline-flex; }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    border-bottom: 1px solid var(--gold);
    background: var(--ink);
    box-shadow: 0 18px 30px #062A3080;
  }

  .js .site-nav.is-open { display: block; }

  .site-header__inner { flex-wrap: wrap; }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: .5rem var(--gutter) 1.25rem;
  }

  .site-nav__links,
  .site-nav__session {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a:not(.button),
  .nav-link-button { min-height: 3rem; }

  .site-nav__session {
    margin-top: .5rem;
    padding: .75rem 0 0;
    border-top: 1px solid #C7994B66;
    background: none;
  }

  .site-nav__session .button { margin-top: .5rem; min-height: 3rem; }
  .site-nav a[aria-current='page'] { border-bottom-color: transparent; }
  .nav-account { max-width: none; }
}

/* The Play page's two links (Account, Fullscreen) stay in a row until the compact navigation's old 56rem. */
@media (min-width: 56.0625rem) and (max-width: 64rem) {
  .play-header .site-header__inner { flex-wrap: nowrap; }
  .play-header .site-nav { flex-direction: row; align-items: center; gap: 1.9rem; width: auto; padding: 0; }
  .play-header .site-nav__links { flex-direction: row; align-items: center; gap: .25rem 2.25rem; }
  .play-header .site-nav a:not(.button),
  .play-header .nav-link-button { min-height: 2.5rem; }
}

/* Phone */
@media (max-width: 47.9375rem) {
  :root {
    --gutter: 1rem;
    --section: 3rem;
  }

  h1 { font-size: clamp(2rem, 9vw, 2.375rem); }
  h2 { font-size: clamp(1.625rem, 7vw, 2rem); }
  .wordmark__name { font-size: 1.3rem; }
  .wordmark__sub { font-size: .62rem; }

  .hero {
    height: auto;
    border-bottom: 0;
  }

  .hero__media {
    position: relative;
    z-index: 0;
    height: 15rem;
  }

  .hero__media::after { content: none; }
  .hero__art { object-position: 82% 30%; }
  .hero .button--primary { font-size: 1.1875rem; }
.hero .button--secondary { font-size: 1rem; padding-inline: 1.4rem; }

.hero__fan { display: none; }
  .hero__inner { height: auto; }

  .hero__copy {
    padding: 1.75rem 0 2.25rem;
    text-shadow: none;
  }

  .hero h1 { font-size: clamp(2rem, 9vw, 2.375rem); }
  .actions > .button { flex: 1 1 100%; }

  .ruled-title { padding-inline: 0; }
  .ruled-title::before,
  .ruled-title::after { display: none; }
  .chip-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rarity-chip { min-height: 2.75rem; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .features > :last-child { max-width: none; }
  .journey .flanked { font-size: 1.75rem; text-align: center; }
  .journey .flanked::before,
  .journey .flanked::after { display: none; }
  .step { flex-direction: column; text-align: center; }
  .step p { max-width: none; }
  .final-cta { margin-top: 2rem; }
  .final-cta::before,
  .final-cta::after { display: none; }
  .final-cta .button { width: 100%; padding-inline: 1rem; font-size: 1.375rem; }
  .site-footer--scenic { background-size: auto 5rem, auto 5rem, auto; }

  .banner__copy { height: auto; padding: 2.25rem 0; }
  .banner::before { background: rgb(6 36 44 / 62%); }
  .banner h1,
  .banner--cards h1 { font-size: 2.25rem; }
  .banner--cards .banner__copy { padding: 2.25rem 0; }
  .banner--cards .ornament,
  .banner--server .ornament { width: min(16rem, 100%); }

  .auth {
    display: block;
    min-height: 0;
    background: var(--parchment);
  }

  .auth::before { display: none; }

  .auth__art {
    position: static;
    height: 11rem;
    object-position: 18% 45%;
  }

  .auth__inner { display: block; width: 100%; padding: 0; }

  .panel {
    width: 100%;
    padding: 1.75rem var(--gutter) 2.5rem;
    border: 0;
    border-top: 1px solid var(--gold);
    border-radius: 0;
    outline: 0;
    box-shadow: none;
  }

  .page .panel {
    border: 1px solid var(--gold);
    padding-inline: 1.25rem;
  }

  .form-row { grid-template-columns: minmax(0, 1fr); }
  .site-footer__bar { gap: 1rem; letter-spacing: .2em; font-size: .75rem; }

  .basics img { width: 2.5rem; }
  :is(.rarity-ladder, .worlds) .section-title h2,
  .faq-section h2,
  .closing h2 { font-size: clamp(1.625rem, 7vw, 2rem); }

  .rarity-table,
  .rarity-table tbody { display: grid; gap: .75rem; border: 0; background: none; }
  .rarity-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  .rarity-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem 1rem;
    padding: .9rem 1rem;
    border: 1px solid var(--gold-line);
    border-radius: 6px;
    background: #F9EEDE;
  }

  .rarity-table :is(tbody th, td) { width: auto; height: auto; padding: 0; border: 0; }
  .rarity-table :is(th, td) + :is(th, td) { border-left: 0; }
  .rarity-table td:last-child { grid-column: 1 / -1; padding: 0; }
  .rarity-name { gap: .9rem; }

  .world-table tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .world-table tbody th { grid-column: 1 / -1; }
  .world-table td:last-child { grid-column: auto; }
  .rarity-table--worlds tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rarity-table--worlds tbody th { grid-column: 1 / -1; }
  .rarity-table--worlds .chance { width: auto; }
  :is(.world-table td, .rarity-table .chance)::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: .6875rem;
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .transform { flex-direction: column; align-items: stretch; width: calc(100% - 2 * var(--gutter)); }
  .transform__art { position: static; width: 100%; height: auto; opacity: 1; -webkit-mask-image: none; mask-image: none; }
  .transform__copy { padding: 1.5rem 1.25rem; }
  .transform h2 { font-size: 1.75rem; }
  .timers { flex-direction: column; gap: .75rem; }
  .timers li + li::before { display: none; }
  .faq summary { min-height: 3rem; padding-inline: 1rem; font-size: 1.0625rem; }
  .play-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .button,
  .choice,
  .rarity-chip,
  .rarity-label,
  .panel { border: 1px solid ButtonText; }
  .choice:has(input:checked) { outline: 1px solid Highlight; }
  :focus-visible { outline-color: Highlight; }
}
