/* eremor.com (docs/website-design.md): night, and the light a lantern throws. LT Museum for the display (the game's title
   face), Alegreya Sans for the text, Grenze for small capitals; all three SIL Open Font License, served from this site. */

@font-face { font-family: "LT Museum"; src: url("/fonts/LTMuseum-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Grenze"; src: url("/fonts/grenze-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --night: #0b0f1c;
  --night-2: #111830;
  --night-3: #18213f;
  --ink: #ece4d2;
  --ink-2: #b9b2a3;
  --muted: #8d8a85;
  --lantern: #f2a93b;
  --lantern-2: #ffcf73;
  --ember: #c4572b;
  --line: rgba(236, 228, 210, 0.12);
  --ok: #7bd389;
  --down: #e0775f;
  --radius: 10px;
  --wrap: 1180px;
  --display: "LT Museum", "Grenze", Georgia, serif;
  --text: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --caps: "Grenze", "LT Museum", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 1.125rem/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lantern-2); text-underline-offset: 0.18em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; border-radius: 4px; }
code { font-size: 0.92em; background: var(--night-3); padding: 0.1em 0.35em; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; }
h1, .title, .section-title { font-family: var(--display); letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lantern); color: #000; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---- the header ---------------------------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(11, 15, 28, 0.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; background: url("/favicon.svg") center / contain no-repeat; filter: drop-shadow(0 0 8px rgba(242, 169, 59, 0.6)); }
.brand-name { font-family: var(--display); font-size: 1.2rem; white-space: nowrap; }
.brand-name em, .title em, .foot-brand em { font-style: normal; font-family: var(--caps); font-size: 0.7em; color: var(--lantern); padding: 0 0.15em; }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.button, .nav a.button:hover { color: #1b1206; }
.nav a[aria-current="page"]:not(.button) { box-shadow: inset 0 -2px 0 var(--lantern); }
@media (max-width: 720px) {
  .top { position: static; }
  .top-row { padding: 10px 16px; }
  .nav { width: 100%; justify-content: space-between; }
  .nav .button-small { display: none; }
}

/* ---- buttons -------------------------------------------------------------------------------------------------------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; font: 700 1.05rem/1 var(--text); color: #1b1206; text-decoration: none; background: linear-gradient(180deg, var(--lantern-2), var(--lantern)); box-shadow: 0 0 0 1px rgba(255, 207, 115, 0.4), 0 8px 30px rgba(242, 169, 59, 0.28); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.button:hover { color: #1b1206; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 207, 115, 0.6), 0 10px 36px rgba(242, 169, 59, 0.4); }
.button[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.button-quiet { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.button-quiet:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(236, 228, 210, 0.35); }
.button-small { min-height: 38px; padding: 0 16px; font-size: 0.95rem; }
.link { background: none; border: 0; padding: 0; color: var(--lantern-2); text-decoration: underline; cursor: pointer; font: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0.6em; }

/* ---- the hero: Lanternhold at night, drawn (an SVG skyline, a canvas of stars and embers), never a frame ----------------- */
.hero { position: relative; min-height: min(92vh, 880px); display: flex; align-items: flex-start; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 45% at 62% 100%, rgba(242, 169, 59, 0.16), transparent 70%),
              linear-gradient(180deg, #02040a 0%, #070b1a 38%, #10162e 68%, #1c1a2a 86%, #241b1e 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 0; background: linear-gradient(180deg, transparent, var(--night)); pointer-events: none; }
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; z-index: -1; }
.hero-city .moon { fill: #efe8d4; opacity: 0.92; }
.hero-city .ridge-far { fill: #0c1330; }
.hero-city .ridge-near { fill: #080d1f; }
.hero-city .windows rect { fill: #ffc35a; }
.hero-city .windows .dim { fill: #c98a3a; opacity: 0.55; }
.hero-city .windows-back rect { fill: #d99a48; opacity: 0.35; }
.hero-city .lamp { fill: #fff0c8; }
.hero-city .glints rect { fill: #ffc35a; opacity: 0.45; }
.hero-text { position: relative; z-index: 1; padding-top: clamp(72px, 13vh, 150px); padding-bottom: 64px; }
.eyebrow { font-family: var(--caps); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.85rem; color: var(--lantern); margin-bottom: 0.6em; }
.title { font-size: clamp(2.8rem, 8.5vw, 6.2rem); line-height: 1.02; margin: 0 0 0.3em; text-shadow: 0 0 48px rgba(242, 169, 59, 0.35), 0 2px 0 rgba(0, 0, 0, 0.6); }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: var(--ink); max-width: 38em; }
.hero .lede { max-width: 30em; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9); }
.hero-note { font-size: 0.95rem; margin-top: 0.4em; }
.night-band { text-align: left; }
@media (prefers-reduced-motion: no-preference) {
  .hero-city .beam { transform-box: view-box; transform-origin: 1418px 160px; animation: sweep 11s ease-in-out infinite alternate; }
  .hero-city .lamp-halo { animation: pulse 3.2s ease-in-out infinite alternate; }
  .hero-city .windows .f1 { animation: flicker 2.6s steps(6) infinite alternate; }
  .hero-city .windows .f2 { animation: flicker 4.1s steps(8) infinite alternate-reverse; }
  .hero-city .glints rect { animation: pulse 2.4s ease-in-out infinite alternate; }
  @keyframes sweep { from { transform: rotate(-7deg); } to { transform: rotate(9deg); } }
  @keyframes pulse { from { opacity: 0.55; } to { opacity: 1; } }
  @keyframes flicker { 0% { opacity: 1; } 40% { opacity: 0.7; } 60% { opacity: 0.95; } 100% { opacity: 0.5; } }
}

/* ---- bands and sections ----------------------------------------------------------------------------------------------- */
.band { padding: 72px 0; }
.band-dark { background: linear-gradient(180deg, var(--night-2), var(--night)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-lede { color: var(--ink-2); max-width: 40em; margin-bottom: 1.8em; }
.small-title { font-family: var(--caps); font-size: 1.15rem; letter-spacing: 0.04em; color: var(--lantern-2); margin-top: 1.6em; }
.page-head { padding: 72px 0 24px; background: radial-gradient(ellipse 50% 90% at 20% 0%, rgba(242, 169, 59, 0.12), transparent 70%); }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line); }
.columns { display: grid; gap: 28px; }
@media (min-width: 800px) { .columns { grid-template-columns: repeat(3, 1fr); } }
.columns h3, .pillar h3 { font-family: var(--caps); font-size: 1.3rem; color: var(--lantern-2); }

.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar { background: linear-gradient(160deg, var(--night-3), var(--night-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 18px; position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; width: 180px; height: 180px; left: -60px; top: -60px; background: radial-gradient(circle, rgba(242, 169, 59, 0.18), transparent 70%); }
.pillar p { color: var(--ink-2); }

.races { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.race { border-top: 2px solid var(--lantern); background: var(--night-2); border-radius: 0 0 var(--radius) var(--radius); padding: 18px 18px 8px; }
.race h3 { font-family: var(--display); font-size: 1.4rem; }
.race p { color: var(--ink-2); font-size: 1rem; }

.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gallery figure { margin: 0; background: var(--night-2); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: 10px 14px 12px; font-size: 0.95rem; color: var(--ink-2); }

.ticks { padding-left: 1.2em; color: var(--ink-2); }
.ticks li { margin-bottom: 0.5em; }
.ticks li::marker { color: var(--lantern); }

.join { display: grid; gap: 40px; }
@media (min-width: 900px) { .join { grid-template-columns: 1.2fr 1fr; } }
.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.post a { display: block; text-decoration: none; color: var(--ink); background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; transition: border-color 0.15s ease; }
.post a:hover { border-color: rgba(242, 169, 59, 0.5); }
.post time { font-size: 0.9rem; color: var(--lantern); font-family: var(--caps); letter-spacing: 0.04em; }
.post h3 { margin: 0.25em 0 0.3em; font-size: 1.25rem; }
.post p { color: var(--ink-2); margin: 0; font-size: 1rem; }

/* ---- cards, forms, the sign-up ---------------------------------------------------------------------------------------- */
.card { background: linear-gradient(160deg, var(--night-3), var(--night-2)); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45); }
.step label { display: block; font-weight: 700; margin: 0 0 6px; }
.step input[type="email"], .step input[type="text"] { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(236, 228, 210, 0.25); background: #0a0e1a; color: var(--ink); font: 400 1.15rem var(--text); margin-bottom: 14px; }
.step input:focus { outline: none; border-color: var(--lantern); box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.25); }
.step input#code { letter-spacing: 0.4em; font-size: 1.5rem; text-align: center; max-width: 260px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--ink-2); margin: 4px 0 16px !important; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--lantern); flex: none; }
.turnstile { margin: 4px 0 16px; min-height: 0; }
.hint { font-size: 0.92rem; margin-top: 14px; }
.step h2 { font-family: var(--display); font-size: 2rem; color: var(--lantern-2); }
.error { color: #ffb4a3; background: rgba(196, 87, 43, 0.15); border: 1px solid rgba(196, 87, 43, 0.5); border-radius: 8px; padding: 10px 14px; margin: 16px 0 0; }
.busy { opacity: 0.7; pointer-events: none; }
.faq-mini { margin-top: 40px; }
dl.faq dt, .faq-mini dt { font-weight: 700; margin-top: 1.4em; color: var(--ink); }
dl.faq dd, .faq-mini dd { margin: 0.3em 0 0; color: var(--ink-2); }
.download-meta { font-size: 1.1rem; }
.steps li { margin-bottom: 0.7em; color: var(--ink-2); }
.specs { border-collapse: collapse; width: 100%; margin: 0.4em 0 1em; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--ink-2); font-weight: 700; width: 34%; }

/* ---- articles and plain text ------------------------------------------------------------------------------------------ */
.article { padding: 64px 16px; max-width: 780px; }
.article-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 0.4em; }
.article-head time { color: var(--lantern); font-family: var(--caps); }
.back { font-family: var(--caps); text-decoration: none; }
.back::before { content: "\2190  "; }
.prose { color: var(--ink-2); }
.prose h2 { color: var(--ink); font-family: var(--caps); font-size: 1.4rem; margin-top: 1.6em; }
.prose strong { color: var(--ink); }
.prose li { margin-bottom: 0.5em; }
.lost { padding: 140px 0 120px; text-align: left; }

/* ---- the footer ------------------------------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); background: #080b15; padding: 48px 0 24px; margin-top: 40px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot-brand { font-family: var(--display); font-size: 1.4rem; margin-bottom: 0.3em; }
.legal { font-size: 0.9rem; margin-top: 28px; }
.world-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--ink-2); background: var(--night-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.world-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.world-badge[data-state="ok"] .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.world-badge[data-state="down"] .dot { background: var(--down); }
.world-badge[data-state="maintenance"] .dot, .world-badge[data-state="draining"] .dot { background: var(--lantern); }

/* ---- the database (docs/website-design.md 14.2): grids like a game's own database, cards like its tooltips --------------- */
:root { --q-common: #e3dccb; --q-uncommon: #6fdc76; --q-rare: #5aa9ff; --q-epic: #c084ff; --q-legendary: #ffa23a; --q-mythic: #ff6a52; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.q-common { color: var(--q-common); } .q-uncommon { color: var(--q-uncommon); } .q-rare { color: var(--q-rare); }
.q-epic { color: var(--q-epic); } .q-legendary { color: var(--q-legendary); } .q-mythic { color: var(--q-mythic); }
.q-rank-elite, .rank-elite { color: #e8c25a; } .q-rank-rare, .rank-rare { color: #c9d3e2; } .q-rank-boss, .rank-boss { color: #ff8a4c; } .q-rank-world, .rank-world { color: #ff5e7a; }
.good { color: #8fe39a; } .bad { color: #ff9a85; }
.db-head { padding: 40px 0 18px; background: radial-gradient(ellipse 50% 100% at 15% 0%, rgba(242, 169, 59, 0.1), transparent 70%); border-bottom: 1px solid var(--line); }
.db-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0.2em 0 0.15em; }
.db-sub { color: var(--ink-2); margin: 0; font-size: 1.05rem; }
.crumbs { font-family: var(--caps); font-size: 0.95rem; color: var(--muted); letter-spacing: 0.03em; }
.crumbs a { text-decoration: none; }
.db-page { padding-top: 28px; padding-bottom: 24px; }
.narrow-page { max-width: 880px; }
.lede-s { color: var(--ink-2); font-size: 1.1rem; max-width: 46em; }
.db-cols { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 24px; }
@media (min-width: 900px) { .db-cols { grid-template-columns: 340px minmax(0, 1fr); gap: 40px; } .db-aside { position: sticky; top: 84px; align-self: start; } }
.db-section { margin: 0 0 34px; }
.db-section > h2 { font-family: var(--caps); font-size: 1.35rem; color: var(--lantern-2); letter-spacing: 0.03em; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 12px; }
.db-list { padding-left: 1.2em; margin: 0 0 1em; color: var(--ink-2); }
.db-list li { margin-bottom: 0.45em; }
.db-list li::marker { color: var(--lantern); }
.facts { display: grid; gap: 0; margin: 14px 0 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 1rem; }
.facts > div:last-child { border-bottom: 0; }
.facts > div:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.specs-narrow { max-width: 360px; }
.specs td, .specs th { font-size: 1rem; }
.greeting { margin: 0 0 22px; padding: 14px 18px; border-left: 3px solid var(--lantern); background: var(--night-2); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--ink); }
.lore { font-style: italic; color: var(--ink); }
.steps-list { padding-left: 1.3em; color: var(--ink-2); }
.steps-list li { margin-bottom: 0.7em; }
.steps-list p { margin: 0; }
.kit { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* references: an icon and a name, coloured by rarity or rank */
.ref { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; vertical-align: middle; }
.ref:hover span { text-decoration: underline; }
.ref:not([class*="q-"]):not([class*="rank-"]) { color: var(--lantern-2); }
.ico { width: 40px; height: 40px; border-radius: 6px; background: radial-gradient(circle at 50% 40%, #222b4a, #10152a); box-shadow: inset 0 0 0 1px rgba(236, 228, 210, 0.16); flex: none; object-fit: contain; }
.ico-s { width: 24px; height: 24px; border-radius: 4px; padding: 1px; }
.ico-l { width: 48px; height: 48px; padding: 3px; }
.ico-none { display: inline-block; }
.q-uncommon .ico { box-shadow: inset 0 0 0 1px rgba(111, 220, 118, 0.55); }
.q-rare .ico { box-shadow: inset 0 0 0 1px rgba(90, 169, 255, 0.6); }
.q-epic .ico { box-shadow: inset 0 0 0 1px rgba(192, 132, 255, 0.6); }
.q-legendary .ico { box-shadow: inset 0 0 0 1px rgba(255, 162, 58, 0.7); }
.q-mythic .ico { box-shadow: inset 0 0 0 1px rgba(255, 106, 82, 0.75); }
.count { color: var(--muted); font-size: 0.95em; margin-right: 6px; }

/* the grids */
.grid-block { margin: 6px 0 18px; }
.grid-tools { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 10px; }
.grid-tools input, .grid-tools select { min-height: 40px; border-radius: 8px; border: 1px solid rgba(236, 228, 210, 0.22); background: #0a0e1a; color: var(--ink); font: 400 1rem var(--text); padding: 0 12px; }
.grid-tools input { flex: 1 1 220px; max-width: 360px; }
.grid-tools input:focus, .grid-tools select:focus { outline: none; border-color: var(--lantern); box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.22); }
.grid-count { color: var(--muted); font-size: 0.95rem; margin-left: auto; }
.grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(17, 24, 48, 0.55); }
.grid-wrap .specs { margin: 0; }
table.grid { border-collapse: collapse; width: 100%; font-size: 1rem; }
table.grid th, table.grid td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tbody tr:hover { background: rgba(242, 169, 59, 0.06); }
table.grid tbody tr:target { background: rgba(242, 169, 59, 0.12); }
table.grid th { background: var(--night-3); color: var(--ink-2); font-weight: 700; white-space: nowrap; padding: 0; }
table.grid td.col-name { min-width: 190px; }
table.grid tr[hidden] { display: none; }
table.grid a:not(.ref), .specs a, .facts a { text-decoration: none; }
table.grid a:not(.ref):hover, .specs a:hover, .facts a:hover { text-decoration: underline; }
.sort { all: unset; display: block; padding: 9px 12px; cursor: pointer; width: 100%; box-sizing: border-box; }
.sort:hover { color: var(--ink); }
.sort:focus-visible { outline: 2px solid var(--lantern); outline-offset: -2px; }
th[aria-sort="ascending"] .sort::after { content: " \25B2"; color: var(--lantern); font-size: 0.75em; }
th[aria-sort="descending"] .sort::after { content: " \25BC"; color: var(--lantern); font-size: 0.75em; }

/* the cards: an item's, a creature's, an ability's, on its page and floating over a link */
.tip { background: linear-gradient(180deg, #121a33, #0b1022); border: 1px solid rgba(236, 228, 210, 0.2); border-radius: 10px; padding: 14px 16px 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); font-size: 0.98rem; line-height: 1.45; margin-bottom: 18px; }
.tip.q-uncommon { border-color: rgba(111, 220, 118, 0.4); } .tip.q-rare { border-color: rgba(90, 169, 255, 0.45); } .tip.q-epic { border-color: rgba(192, 132, 255, 0.45); }
.tip.q-legendary { border-color: rgba(255, 162, 58, 0.5); } .tip.q-mythic { border-color: rgba(255, 106, 82, 0.55); }
.tip-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.tip-name { font-weight: 700; font-size: 1.12rem; margin: 0; color: inherit; }
.tip-name a { color: inherit; text-decoration: none; }
.tip-kind { margin: 0; color: var(--muted); font-size: 0.92rem; }
.tip-lines { list-style: none; padding: 0; margin: 0; color: var(--ink); }
.tip-lines li { margin: 2px 0; }
.tip-lines .tip-row { display: flex; justify-content: space-between; gap: 12px; }
.tip-lines .use { color: #8fe39a; }
.tip-lines .need { color: #ffcf73; }
.tip-lines .set { color: #e8c25a; }
.tip-lines .muted { color: var(--muted); }
.tip-lines .desc { color: #f2d48a; margin-top: 6px; }
.tip-float { position: absolute; z-index: 20; width: 320px; max-width: calc(100vw - 16px); pointer-events: none; }
.tip-float .tip { margin: 0; }

/* the hub */
.db-search { position: relative; max-width: 620px; margin-top: 1.2em; }
.db-search input { width: 100%; min-height: 54px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(236, 228, 210, 0.25); background: #0a0e1a; color: var(--ink); font: 400 1.15rem var(--text); }
.db-search input:focus { outline: none; border-color: var(--lantern); box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.25); }
.db-results { list-style: none; margin: 6px 0 0; padding: 6px; position: absolute; left: 0; right: 0; z-index: 6; background: #0d1326; border: 1px solid rgba(236, 228, 210, 0.2); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); max-height: 60vh; overflow-y: auto; }
.db-results a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.db-results a:not([class*="q-"]) { color: var(--ink); }
.db-results a:hover, .db-results a:focus { background: rgba(242, 169, 59, 0.1); }
.db-results li.muted { padding: 8px 12px; }
.db-results-cat { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.db-cats { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.db-cats a { display: block; height: 100%; text-decoration: none; color: var(--ink); background: linear-gradient(160deg, var(--night-3), var(--night-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; transition: border-color 0.15s ease, transform 0.15s ease; }
.db-cats a:hover { border-color: rgba(242, 169, 59, 0.5); transform: translateY(-1px); }
.db-cats h2 { font-family: var(--caps); font-size: 1.3rem; color: var(--lantern-2); margin: 0.1em 0 0.25em; }
.db-cats p { color: var(--ink-2); font-size: 0.98rem; }
.db-count { float: right; font-family: var(--display); font-size: 1.6rem; color: var(--lantern); line-height: 1; }
.db-note { margin-top: 28px; }
.race-cards, .prof-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.race-cards a, .prof-cards a { display: block; height: 100%; text-decoration: none; color: var(--ink); background: var(--night-2); border: 1px solid var(--line); border-top: 2px solid var(--lantern); border-radius: 0 0 var(--radius) var(--radius); padding: 16px 18px 6px; }
.prof-cards a { display: flex; gap: 14px; align-items: flex-start; border-top-width: 1px; border-radius: var(--radius); }
.race-cards a:hover, .prof-cards a:hover { border-color: rgba(242, 169, 59, 0.5); }
.race-cards h2, .prof-cards h2 { font-family: var(--display); font-size: 1.4rem; margin: 0 0 0.3em; }
.race-cards p, .prof-cards p { color: var(--ink-2); font-size: 1rem; }

/* the ability trees: each a grid of five tiers and three columns, laid out by the rules' own 'at <row> <col>' */
.trees { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); margin-bottom: 34px; }
.tree { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px 12px; }
.tree h3 { font-family: var(--caps); color: var(--lantern-2); font-size: 1.2rem; margin: 0 0 10px 4px; }
.tree-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(76px, auto); gap: 6px; }
.node a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; text-decoration: none; color: var(--ink); font-size: 0.85rem; line-height: 1.15; padding: 4px 2px; border-radius: 8px; }
.node a:hover, .node a:focus { background: rgba(242, 169, 59, 0.1); }
.node.major .ico { box-shadow: inset 0 0 0 2px rgba(192, 132, 255, 0.75), 0 0 14px rgba(192, 132, 255, 0.35); }
.node.r1 { grid-row: 1; } .node.r2 { grid-row: 2; } .node.r3 { grid-row: 3; } .node.r4 { grid-row: 4; } .node.r5 { grid-row: 5; }
.node.c2 { grid-column: 1; } .node.c3 { grid-column: 2; } .node.c4 { grid-column: 3; }
.attr h2 .small { font-family: var(--text); }
