/* Shards of the Crucible's website: the game's look, deep navy and gold with
   light text, the painted plates showing through. */

/* Cinzel (SIL OFL 1.1), served from our own site rather than Google Fonts,
   so pages make no requests to Google (privacy policy, November 8). The
   variable font covers weights 500-700; files from Google Fonts' v26. */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/fonts/cinzel-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/fonts/cinzel-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b1120;
  --panel: rgba(17, 26, 45, 0.82);
  --panel-solid: #111a2d;
  --text: #ece6d6;
  --muted: #b3ab98;
  --gold: #e4bc68;
  --gold-deep: #c9973f;
  --rule: #2a3550;
  --heading: "Cinzel", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --width: 1120px;
  --fire: #d6402a;
  --water: #2669a8;
  --wind: #3fa87a;
  --earth: #8a6448;
  --light: #e8dcae;
  --dark: #6b5a86;
  --aether: #5fd3d0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: #f3d79a; }
h1, h2, h3 { font-family: var(--heading); color: var(--gold); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 12px; }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 16px; }
h3 { font-size: 20px; margin: 0 0 6px; }
strong { color: #fff6e0; }

/* --- Header and footer --- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.site-header .bar {
  max-width: var(--width); margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-family: var(--heading); font-size: 18px; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 15px;
  letter-spacing: 0.03em;
}
.nav a:hover { background: rgba(228, 188, 104, 0.12); color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.site-footer { border-top: 1px solid var(--rule); margin-top: 64px; }
.site-footer .bar {
  max-width: var(--width); margin: 0 auto; padding: 24px 16px 40px;
  display: flex; gap: 12px 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px;
}
.site-footer .bar a { color: var(--muted); }
.site-footer .bar a:hover { color: var(--gold); }
.site-footer .bar a[aria-current="page"] { color: var(--gold); }
.site-footer .spacer { flex: 1; }

/* --- Page bodies --- */
.wrap { max-width: var(--width); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0 8px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow a { color: var(--muted); text-decoration: none; }
.lead { font-size: 19px; max-width: 760px; }
.muted { color: var(--muted); }
.note { background: var(--panel-solid); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 4px; color: var(--muted); }
.footer { margin-top: 48px; color: var(--muted); font-size: 15px; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

/* A plain text page, such as Delete your account. */
main.text { max-width: 720px; margin: 0 auto; padding: 40px 16px 24px; }
main.text h1 { margin-top: 4px; }
main.text h2 { font-size: 22px; margin: 36px 0 8px; padding-top: 20px; border-top: 1px solid var(--rule); }
main.text h3 { font-size: 17px; margin: 22px 0 6px; }
/* The privacy policy's tables (what's kept, for how long): they scroll
   sideways on a phone rather than squeezing. */
main.text .table-wrap { overflow-x: auto; margin: 12px 0; }
main.text table { width: 100%; border-collapse: collapse; font-size: 15px; }
main.text th, main.text td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
main.text thead th { color: var(--muted); font-weight: 600; font-size: 14px; }
main.text td:first-child { min-width: 9em; }

/* --- Banner: a painted plate behind a title --- */
.banner {
  position: relative; overflow: hidden;
  min-height: 300px; display: flex; align-items: flex-end;
  background: var(--panel-solid) center / cover no-repeat;
}
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.15) 0%, rgba(11, 17, 32, 0.55) 55%, var(--bg) 100%);
}
.banner .wrap { position: relative; z-index: 1; width: 100%; padding-top: 80px; padding-bottom: 24px; }
.banner p { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }

/* The home page's key art. */
.key-art { min-height: min(86vh, 760px); align-items: center; text-align: center; }
.key-art .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 48px; }
.key-art .title-logo { width: min(560px, 86vw); filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6)); }
.key-art .tagline { font-family: var(--heading); font-size: clamp(18px, 2.6vw, 24px); color: #fff6e0; margin: 0; max-width: 680px; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-size: 15px;
  border: 1px solid var(--gold); color: var(--gold); background: rgba(11, 17, 32, 0.6);
  text-decoration: none;
}
.badge.solid { background: var(--gold-deep); color: #1a1205; border-color: var(--gold); font-weight: 600; }
.key-art .join-steps { margin: 0; max-width: 620px; font-size: 15px; color: #fff6e0; }

/* --- Cards and grids --- */
.grid { display: grid; gap: 16px; }
.grid.features { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
}
.card .art { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card .body { padding: 14px 16px 16px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
/* A last feature card left alone on its row spans the row, picture on the left
   (one column wide) and text beside it, so an odd count never leaves an orphan.
   Column counts follow .grid.features: 2 from 616px of content, 3 from 932px. */
.wrap:has(> .grid.features) { container: features / inline-size; }
@container features (min-width: 616px) and (max-width: 931.98px) {
  .grid.features > .card:last-child:nth-child(odd) {
    grid-column: 1 / -1; display: grid; grid-template-columns: calc((100% - 16px) / 2) 1fr; align-items: center;
  }
}
@container features (min-width: 932px) {
  .grid.features > .card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1; display: grid; grid-template-columns: calc((100% - 32px) / 3) 1fr; align-items: center;
  }
}

/* Gameplay clips (Home): 16:9 videos recorded in the game, two across on wide screens. */
.grid.clips { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); margin-top: 20px; }
.clip { margin: 0; }
.clip video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--panel-solid); cursor: pointer;
}
.clip video[controls] { cursor: auto; }
.clip h3 { margin: 0 0 4px; font-size: 18px; }

.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 1fr; } }
.framed { border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }

.more { display: inline-block; margin-top: 16px; font-family: var(--heading); text-decoration: none; }
.more::after { content: " →"; }

/* --- Heroes --- */
.grid.heroes { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.hero-card {
  position: relative; display: flex; flex-direction: column; text-align: left; cursor: pointer;
  background: radial-gradient(120% 80% at 50% 20%, rgba(40, 60, 100, 0.65), rgba(17, 26, 45, 0.92));
  border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; padding: 0; color: inherit; font: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease; text-decoration: none;
}
.hero-card:hover, .hero-card:focus-visible { transform: translateY(-3px); border-color: var(--gold); outline: none; }
.hero-card img { aspect-ratio: 2 / 3; object-fit: cover; object-position: top; width: 100%; }
.hero-card .who { padding: 10px 12px 12px; border-top: 1px solid var(--rule); background: rgba(11, 17, 32, 0.7); }
.hero-card .name { font-family: var(--heading); color: var(--gold); font-size: 17px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card .epithet { color: var(--muted); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }

.element {
  display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; color: #fff; background: #555;
}
.element.fire { background: var(--fire); }
.element.water { background: var(--water); }
.element.wind { background: var(--wind); }
.element.earth { background: var(--earth); }
.element.light { background: var(--light); color: #2b2412; }
.element.dark { background: var(--dark); }
.element.aether { background: var(--aether); color: #0b1a1a; }
.hero-card .element { position: absolute; top: 8px; left: 8px; }

.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }

/* --- Dialogs: a hero's page, a gallery picture --- */
dialog {
  border: 1px solid var(--gold); border-radius: 12px; padding: 0; background: var(--panel-solid); color: var(--text);
  width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
}
dialog::backdrop { background: rgba(5, 8, 16, 0.82); }
.dialog-close {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--rule); background: rgba(11, 17, 32, 0.8); color: var(--text); font-size: 20px; cursor: pointer;
}
.hero-detail { display: grid; grid-template-columns: 1fr; }
@media (min-width: 700px) { .hero-detail { grid-template-columns: 300px 1fr; } }
.hero-detail img { width: 100%; max-height: 70vh; object-fit: contain; background: radial-gradient(circle at 50% 30%, #23345a, #0d1424); }
.hero-detail .text { padding: 24px; }
.hero-detail .epithet { color: var(--muted); margin: 0 0 12px; }
.picture-dialog { width: min(1400px, calc(100vw - 32px)); background: #000; }
.picture-dialog img { width: 100%; height: auto; max-height: calc(100vh - 80px); object-fit: contain; }
.picture-dialog p { margin: 0; padding: 10px 16px; background: var(--panel-solid); font-family: var(--heading); color: var(--gold); }

/* --- World & Art gallery --- */
.grid.gallery { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.shot {
  display: block; padding: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden;
  background: none; cursor: zoom-in; color: inherit; font: inherit; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.25s ease; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.04); }
.shot span { display: block; flex: 1; padding: 8px 12px; font-size: 14px; color: var(--muted); background: rgba(11, 17, 32, 0.85); }
.shot:focus-visible { outline: 2px solid var(--gold); }

/* --- News --- */
.news-list { display: grid; gap: 16px; }
.news-item { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.news-item .head { padding: 16px 18px 0; }
.news-item .meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.news-item h3 { margin: 6px 0 8px; }
.news-item .text { padding: 0 18px 18px; white-space: pre-line; }
.news-item img { width: 100%; max-height: 360px; object-fit: cover; }
.kind {
  padding: 1px 9px; border-radius: 999px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--gold); color: var(--gold);
}
.kind.maintenance { border-color: #e08a5f; color: #e08a5f; }
.kind.event { border-color: var(--wind); color: #79d1a8; }
.news-empty { text-align: center; padding: 40px 16px; color: var(--muted); background: var(--panel); border: 1px dashed var(--rule); border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card, .shot img { transition: none; }
}

/* --- The language list in the header --- */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 6px; font-size: 15px;
  color: var(--text); border: 1px solid var(--rule); white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--gold); color: var(--gold); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  background: var(--panel-solid); border: 1px solid var(--rule); border-radius: 8px; min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.lang li { margin: 0; }
.lang ul a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; }
.lang ul a:hover { background: rgba(228, 188, 104, 0.12); color: var(--gold); }
.lang ul a[aria-current="true"] { color: var(--gold); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Cinzel has no Japanese, Korean or Chinese letters: headings there use the
   system's serif. */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3,
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { font-family: Georgia, "Noto Serif CJK JP", "Noto Serif CJK KR", "Noto Serif CJK TC", serif; }

/* Japanese breaks lines between phrases, not inside a word. */
:lang(ja) { word-break: auto-phrase; }

/* --- Closed Alpha: the Home badge, the sign-up form (#alpha) and the site's own news posts --- */
.badge.alpha-badge { border-color: var(--aether); color: #9ff0ee; background: rgba(20, 60, 70, 0.6); }
.badge.alpha-badge:hover, .badge.alpha-badge:focus-visible { background: rgba(30, 90, 100, 0.7); }
.alpha { scroll-margin-top: 72px; }
.alpha-form { display: grid; gap: 6px; padding: 20px; min-width: 0; }
.alpha-form label { font-size: 15px; color: var(--text); margin-top: 8px; }
.alpha-form input[type="text"], .alpha-form input[type="email"], .alpha-form select {
  width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 12px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--panel-solid); border: 1px solid var(--rule); border-radius: 6px;
}
.alpha-form input:focus-visible, .alpha-form select:focus-visible, .alpha-form button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.alpha-form input::placeholder { color: #7d7869; }
.alpha-form .check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; cursor: pointer; }
.alpha-form .check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--gold-deep); }
.alpha-form .button {
  margin-top: 14px; padding: 12px 20px; font-family: var(--heading); font-size: 17px; font-weight: 600; cursor: pointer;
  color: #1a1205; background: var(--gold-deep); border: 1px solid var(--gold); border-radius: 999px; justify-self: start;
}
.alpha-form .button:hover { background: var(--gold); }
.alpha-form .button:disabled { opacity: 0.6; cursor: wait; }
.alpha-status { margin: 4px 0 0; min-height: 1.6em; font-size: 15px; color: var(--muted); }
.alpha-status.error { color: #f09a7a; }
.alpha-status.success { color: #8fe3b5; font-weight: 600; }
.alpha-form.done label, .alpha-form.done input, .alpha-form.done select, .alpha-form.done .button { display: none; }
/* Only bots see this field. */
/* display: none, so the iPhone keyboard's field arrows skip it (October 19). */
.alpha-form .hp { display: none; }
.news-item.pinned { border-color: rgba(95, 211, 208, 0.55); }
.news-item .news-link { margin: 0 18px 18px; }
.news-item.compact .news-link { margin-top: 0; }
.alpha-status:focus { outline: none; }

/* --- Credits: the game's credits (data/credits.txt) as cards, role beside name --- */
.credits {
  display: grid; gap: 16px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}
.credits-card { padding: 20px 22px 18px; min-width: 0; height: 100%; }
.credits-card.wide { grid-column: 1 / -1; }
.credits-card h2 { font-size: 24px; margin: 0 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.credits-card h3 { font-size: 18px; margin: 0; }
.credit-lead { margin: 8px 0 4px; font-size: 15px; }
.credits-card .credit-text { margin: 12px 0 4px; color: var(--text); font-size: 17px; }
.credit-rows { margin: 0; }
.credit-rows > div {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2px 20px;
  padding: 10px 0; border-top: 1px solid rgba(42, 53, 80, 0.6);
}
.credit-rows > div:first-child { border-top: 0; }
.credit-rows dt { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.credit-rows dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.credit-rows .pack, .licence { color: var(--muted); font-size: 14px; }
.credit-rows .by { color: #fff6e0; }
.licence::before { content: "· "; }
.licence a { color: var(--muted); }
.licence a:hover { color: var(--gold); }

/* A source's list: Eric Matyas's songs and sounds, the Sonniss bundle's sounds. */
.credit-groups {
  display: grid; gap: 4px 32px; margin-top: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}
.credit-group { padding-top: 14px; min-width: 0; }
.credit-group.wide { grid-column: 1 / -1; }
.credit-group .source { margin: 2px 0 8px; font-size: 14px; }
.credit-group .sounds dt { color: var(--text); font-style: italic; }
.credit-group .sounds dd { font-size: 15px; }
.titles { list-style: none; margin: 0; padding: 0; }
.titles li { position: relative; margin: 0; padding: 7px 0 7px 18px; border-top: 1px solid rgba(42, 53, 80, 0.6); font-style: italic; overflow-wrap: anywhere; }
.titles li:first-child { border-top: 0; }
.titles li::before { content: "◆"; position: absolute; left: 0; top: 9px; font-size: 9px; color: var(--gold-deep); font-style: normal; }

/* The studio's logo and Taiga on the logo's own plum, as in the game. */
.studio {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin: 14px 0 6px; padding: 0 12px; background: #16101a; border-radius: 8px;
}
.studio img { width: 62%; max-width: 300px; }
.studio .mascot { width: 31%; max-width: 150px; }

/* Phones: each role above its name. */
@media (max-width: 600px) {
  .credits-card { padding: 16px 16px 14px; }
  .credit-rows > div { grid-template-columns: 1fr; gap: 0; padding: 8px 0; }
  .credit-rows dt { font-size: 14px; }
}

/* --- Phone menu (Michelle, October 19): at narrow widths the nav and the
   language list fold behind a three-bar button (web/js/menu.js). Without
   JavaScript (no "js" class) they stay open. --- */
.menu { display: flex; align-items: center; gap: 16px; margin-left: auto; flex-wrap: wrap; }
.menu .nav { margin-left: 0; }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; padding: 11px 10px;
  flex-direction: column; justify-content: space-between;
  background: transparent; border: 1px solid var(--rule); border-radius: 6px; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.menu-toggle:hover, .site-header.open .menu-toggle { border-color: var(--gold); }
.site-header.open .menu-toggle span { background: var(--gold); }
.site-header.open .menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media (max-width: 700px) {
  .js .menu-toggle { display: flex; }
  .js .menu { display: none; }
  .js .site-header.open .menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 8px;
    width: 100%; margin: 4px 0 8px; padding-top: 8px; border-top: 1px solid var(--rule);
  }
  .js .site-header.open .nav { flex-direction: column; gap: 2px; }
  .js .site-header.open .nav a { padding: 12px 8px; font-size: 17px; }
  .js .site-header.open .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
  .js .site-header.open .lang ul { position: static; margin-top: 6px; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .menu-toggle span { transition: none; } }

/* --- Contact (Michelle, October 19): a bug report (#bug) and a message
   (#message), side by side on wide screens, one above the other on phones.
   The fields look like the Alpha form's. --- */
.contact-email { margin: 4px 0 0; }
.contact-email a { overflow-wrap: anywhere; }
.contact { padding-top: 32px; }
.contact-jump { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.contact-jump a {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold);
  text-decoration: none; font-size: 15px; background: rgba(11, 17, 32, 0.6);
}
.contact-jump a:hover, .contact-jump a:focus-visible { background: rgba(228, 188, 104, 0.12); }
.contact-grid { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.contact-card { padding: 20px; min-width: 0; scroll-margin-top: 72px; }
.contact-card h2 { font-size: 26px; margin: 0 0 6px; }
.contact-card > p.muted { margin: 0 0 6px; font-size: 15px; }
.contact-form { display: grid; gap: 6px; min-width: 0; }
.contact-form label { font-size: 15px; color: var(--text); margin-top: 10px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea {
  width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 12px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--panel-solid); border: 1px solid var(--rule); border-radius: 6px;
}
.contact-form textarea { resize: vertical; min-height: 3.2em; line-height: 1.5; }
.contact-form input[type="file"] {
  width: 100%; min-width: 0; font-size: 15px; color: var(--muted);
  padding: 8px; border: 1px dashed var(--rule); border-radius: 6px; background: var(--panel-solid);
}
.contact-form input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 6px 12px; font: inherit; color: var(--gold); cursor: pointer;
  background: transparent; border: 1px solid var(--gold); border-radius: 999px;
}
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible,
.contact-form button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #7d7869; }
.contact-form .hint { margin: 0; font-size: 14px; color: var(--muted); }
.contact-form .privacy { margin: 14px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.contact-form .button {
  margin-top: 10px; padding: 12px 20px; font-family: var(--heading); font-size: 17px; font-weight: 600; cursor: pointer;
  color: #1a1205; background: var(--gold-deep); border: 1px solid var(--gold); border-radius: 999px; justify-self: start;
}
.contact-form .button:hover { background: var(--gold); }
.contact-form .button:disabled { opacity: 0.6; cursor: wait; }
.contact-form .hp { display: none; }
.contact-status { margin: 4px 0 0; min-height: 1.6em; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.contact-status.error { color: #f09a7a; }
.contact-done {
  margin: 14px 0 0; padding: 14px 16px; border-radius: 8px; font-weight: 600; color: #8fe3b5;
  background: rgba(63, 168, 122, 0.12); border: 1px solid rgba(63, 168, 122, 0.5);
}
.contact-done { scroll-margin-top: 96px; }
.contact-done:focus { outline: none; }

/* --- Heroes' wiki pages and tier lists (November 5) --- */
.tier-S { --tier: #e8574a; }
.tier-A { --tier: #e8954a; }
.tier-B { --tier: #e4c75a; }
.tier-C { --tier: #6cc58c; }
.tier-D { --tier: #5c9ad6; }
.tier-chip {
  position: absolute; top: 8px; right: 8px; z-index: 1; min-width: 28px; padding: 2px 8px; border-radius: 6px;
  font-family: var(--heading); font-weight: 700; text-align: center; color: #160c06; background: var(--tier);
}
.hero-card[hidden] { display: none; }
.filters { display: grid; gap: 10px; margin: 0 0 12px; }
.filters[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 6px 14px; font: inherit; font-size: 15px; color: var(--text); cursor: pointer;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 999px;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { color: #1a1205; background: var(--gold-deep); border-color: var(--gold); }
.chip:focus-visible, .tab:focus-visible, .face:focus-visible, .button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.search, .editor-form input[type="text"], .editor-form select, .editor-form textarea, .login-form input, .report-form textarea {
  width: 100%; max-width: 420px; min-width: 0; padding: 10px 12px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--panel-solid); border: 1px solid var(--rule); border-radius: 6px;
}
.editor-form textarea, .report-form textarea { max-width: none; resize: vertical; }
.button {
  display: inline-block; padding: 10px 18px; font-family: var(--heading); font-size: 16px; font-weight: 600; cursor: pointer;
  text-decoration: none; color: #1a1205; background: var(--gold-deep); border: 1px solid var(--gold); border-radius: 999px;
}
.button:hover { background: var(--gold); color: #1a1205; }
.button.quiet { color: var(--gold); background: transparent; }
.button.quiet:hover { background: rgba(228, 188, 104, 0.12); }
.button:disabled { opacity: 0.6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 0; }
.form-status { margin: 8px 0 0; min-height: 1.6em; font-size: 15px; color: var(--muted); }
.form-status.error { color: #f09a7a; }
.form-status.success { color: #8fe3b5; font-weight: 600; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--aether); color: #9ff0ee; vertical-align: middle; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: 4px 0; }

/* A hero's wiki page. */
.wiki-banner .wrap { padding-top: 32px; }
.wiki-head { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 760px) { .wiki-head { grid-template-columns: 320px minmax(0, 1fr); } }
.wiki-splash { width: 100%; max-width: 320px; margin: 0 auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)); }
.wiki-intro .epithet { color: var(--muted); margin: -6px 0 10px; font-size: 18px; }
.wiki-intro .bio { max-width: 720px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.wiki-tags { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; }
.wiki-tags .stars { font-size: 18px; }
.tier-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; align-items: center; }
.tier-badges-label { font-size: 14px; color: var(--muted); min-width: 110px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.tier-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 999px; text-decoration: none;
  color: var(--text); background: var(--panel); border: 1px solid var(--tier); font-size: 14px;
}
.tier-badge b { display: inline-block; min-width: 26px; padding: 1px 6px; border-radius: 999px; text-align: center; font-family: var(--heading); color: #160c06; background: var(--tier); }
.wiki-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: start; }
.wiki-card { padding: 18px 20px; min-width: 0; }
.wiki-card h2 { font-size: 22px; margin: 0 0 6px; }
.wiki-card > p.muted { margin: 0 0 10px; font-size: 14px; }
.wiki-card p { color: var(--text); font-size: 16px; }
.build-card { border-color: rgba(228, 188, 104, 0.6); }
.build-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.build-card dt { color: var(--muted); font-size: 15px; }
.build-card dd { margin: 0; }
.power { margin: 12px 0 0; font-family: var(--heading); color: var(--gold) !important; }
table.stats { width: 100%; border-collapse: collapse; font-size: 15px; }
table.stats th, table.stats td { padding: 4px 6px; border-bottom: 1px solid var(--rule); text-align: right; }
table.stats th[scope="row"], table.stats thead th:first-child { text-align: left; font-weight: normal; color: var(--muted); }
table.stats thead th { color: var(--muted); font-weight: normal; font-size: 13px; }
.jobs { display: grid; gap: 10px; }
.job { padding: 0; }
.job summary { padding: 12px 18px; cursor: pointer; list-style-position: inside; }
.job .job-name { font-family: var(--heading); color: var(--gold); font-size: 18px; }
.job > p, .job > ul, .job > ul.skills { margin: 0 18px 14px; }
.job > p { color: var(--text); font-size: 15px; }
ul.skills { list-style: none; padding: 0; margin: 0; }
ul.skills li { margin: 0 0 10px; display: grid; gap: 2px; }
.skill-head strong { color: #fff6e0; }
.skill-text { color: var(--muted); font-size: 15px; }

/* The tier lists: rows S to D of hero faces. */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--rule); }
.tabs[hidden] { display: none; }
.build-tabs { border-bottom: none; margin-bottom: 4px; }
.build-tabs .tab { border: 1px solid var(--rule); border-radius: 999px; padding: 6px 16px; }
.build-tabs .tab[aria-selected="true"] { border-color: var(--gold); }
.tab { padding: 10px 16px; text-decoration: none; color: var(--muted); font-family: var(--heading); border-bottom: 2px solid transparent; }
.tab[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.tier-panel { margin: 0 0 40px; scroll-margin-top: 80px; }
.tier-panel[hidden] { display: none; }
.tier-tabs .tier-panel-title { display: none; }
.tier-table { display: grid; gap: 6px; }
.tier-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.tier-label {
  display: flex; align-items: center; justify-content: center; font: 700 26px var(--heading); color: #160c06; background: var(--tier);
  border: 0; padding: 0; cursor: default;
}
button.tier-label { cursor: pointer; }
.tier-faces { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; min-height: 84px; align-content: flex-start; }
.face {
  position: relative; display: block; width: 76px; padding: 0; text-decoration: none; color: var(--text);
  background: var(--panel-solid); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; cursor: pointer; font: inherit;
}
.face img { width: 76px; height: 76px; object-fit: cover; background: radial-gradient(circle at 50% 35%, #2a3d66, #111a2d); }
.face-name { display: block; padding: 2px 4px; font-size: 11px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.face:hover { border-color: var(--gold); }
.element-dot { position: absolute; top: 4px; left: 4px; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.5); }
.element-dot.fire { background: var(--fire); }
.element-dot.water { background: var(--water); }
.element-dot.wind { background: var(--wind); }
.element-dot.earth { background: var(--earth); }
.element-dot.light { background: var(--light); }
.element-dot.dark { background: var(--dark); }
.element-dot.aether { background: var(--aether); }
@media (max-width: 520px) {
  .tier-row { grid-template-columns: 40px minmax(0, 1fr); }
  .face, .face img { width: 60px; }
  .face img { height: 60px; }
}

/* Players' tier lists. */
.account-bar { display: grid; gap: 16px; padding: 18px 20px; margin: 0 0 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .account-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.account-bar h2 { font-size: 22px; margin: 0 0 6px; }
.account-bar .muted { font-size: 15px; margin: 0; }
.login-form { display: grid; gap: 6px; }
.login-form label { display: block; font-size: 15px; margin: 6px 0 0; }
.login-form .actions { margin-top: 8px; }
.login-form .small { font-size: 14px; }
.google-sign-in { margin-top: 14px; min-height: 44px; }
.signed-in { margin: 0; font-family: var(--heading); color: var(--gold); font-size: 18px; }
.my-lists h3 { font-size: 17px; margin: 0 0 6px; }
.gallery-controls { display: grid; gap: 10px; margin: 0 0 16px; }
.grid.lists { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.list-card { display: block; padding: 16px 18px; text-decoration: none; color: var(--text); }
.list-card:hover { border-color: var(--gold); }
.list-card h3 { overflow-wrap: anywhere; }
.list-card > p.muted { font-size: 14px; margin: 0 0 10px; }
.list-card .preview { display: flex; gap: 4px; flex-wrap: wrap; }
.list-card .preview .face, .list-card .preview .face img { width: 44px; }
.list-card .preview .face img { height: 44px; }
.list-card .preview .face-name, .list-card .preview .element-dot { display: none; }
.list-card .likes { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.list-view h2 { overflow-wrap: anywhere; margin: 12px 0 4px; }
.list-view > p.muted { margin: 0 0 12px; }
.list-note { white-space: pre-line; overflow-wrap: anywhere; }
.back { display: inline-block; text-decoration: none; }
.report-form { display: grid; gap: 8px; margin: 12px 0 0; max-width: 560px; }
.report-form[hidden] { display: none; }
.editor-form .fields { display: grid; gap: 6px; max-width: 560px; margin: 0 0 12px; }
.editor-form .fields label { font-size: 15px; margin-top: 6px; }
.editor .face.selected { outline: 3px solid var(--aether); outline-offset: -3px; }
.editor .face { cursor: grab; }
.tier-faces.drop.over { background: rgba(95, 211, 208, 0.12); }
.tier-faces.pool { background: var(--panel); border: 1px dashed var(--rule); border-radius: 8px; max-height: 360px; overflow-y: auto; }
.editor-form h3 { margin: 18px 0 6px; font-size: 18px; }

.button[hidden] { display: none; }
