/* Fifty DKP Minus. Everything is served from this site: the Content-Security-Policy in
   app/lib/core.php allows no outside styles, fonts or images, and no inline style or script.
   To change a colour, change the tokens in :root. Fonts: SIL Open Font License, see fonts/OFL.txt. */

@font-face { font-family: Cinzel; font-style: normal; font-weight: 500 900; 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 900; 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; }
@font-face { font-family: Spectral; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/spectral-400-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: Spectral; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/spectral-400-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; }
@font-face { font-family: Spectral; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/spectral-600-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: Spectral; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/spectral-600-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; }
@font-face { font-family: Spectral; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/spectral-italic-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: Spectral; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/spectral-italic-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 {
  --night: #070a1c;
  --night-2: #0d1230;
  --panel: #111737;
  --line: #2b3468;
  --gold: #e9b95a;
  --gold-hi: #ffe2a0;
  --ember: #ff8a2b;
  --text: #e8e4d6;
  --muted: #a5a9c6;
  --type-raid: var(--ember);
  --type-dungeon: var(--gold);
  --type-guild: #6fc27c;
  --type-pvp: #e4606d;
  --class-druid: #ff7c0a;
  --class-hunter: #aad372;
  --class-mage: #3fc7eb;
  --class-paladin: #f48cba;
  --class-priest: #ffffff;
  --class-rogue: #fff468;
  --class-shaman: #2a8cff;
  --class-warlock: #b48cf0;
  --class-warrior: #c69b6d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 18px/1.6 Spectral, Georgia, serif; }
a { color: inherit; }
h1, h2, h3, .nav a, .btn, .eyebrow { font-family: Cinzel, Georgia, serif; }

/* Navigation */
.nav { position: fixed; z-index: 20; inset: 0 0 auto; transition: padding .25s, background .25s, box-shadow .25s; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(16px, 4vw, 56px); }
.nav.stuck { padding-top: 12px; padding-bottom: 12px; background: rgba(7,10,28,.92); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0,0,0,.5); backdrop-filter: blur(8px); }
section[id] { scroll-margin-top: 40px; }
.burger { display: none; width: 46px; height: 46px; padding: 11px 10px; border: 1px solid var(--gold); background: rgba(7,10,28,.66); cursor: pointer; }
.burger span { display: block; height: 2px; margin: 4px 0; background: var(--gold-hi); transition: transform .2s, opacity .2s; }
.nav.open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.brand img { width: 52px; height: 52px; margin: -8px 10px -8px 0; transition: width .25s, height .25s; }
.nav.stuck .brand img { width: 42px; height: 42px; }
.brand { display: inline-flex; text-transform: uppercase; align-items: center; font: 900 18px Cinzel, serif; letter-spacing: .14em; color: var(--gold-hi); text-decoration: none; white-space: nowrap; }
.links { display: flex; gap: clamp(14px, 2.6vw, 34px); }
.links a { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--text); opacity: .86; }
.links a:hover { color: var(--gold-hi); opacity: 1; }

/* Page title */
.eyebrow { margin: 0 0 8px; font-size: clamp(12px, 1.25vw, 16px); font-weight: 700; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 12px #000; }
h1 { margin: 0; font-size: clamp(44px, 8.6vw, 132px); font-weight: 900; line-height: 1; letter-spacing: .03em; text-transform: uppercase; background: linear-gradient(180deg, #fff6dc 8%, var(--gold-hi) 38%, var(--gold) 62%, #9a5f1e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(40,18,0,.9)) drop-shadow(0 10px 34px rgba(0,0,0,.85)); }
.tagline { margin: 14px 0 26px; font-size: clamp(18px, 1.8vw, 25px); font-style: italic; color: #f3eedf; text-shadow: 0 2px 10px #000; }

/* Buttons */
.btn { display: inline-block; padding: 13px 26px; border: 1px solid var(--gold); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--gold-hi); background: rgba(7,10,28,.62); transition: background .2s, color .2s, box-shadow .2s; }
.btn:hover { color: #1c1003; background: var(--gold); box-shadow: 0 0 28px rgba(255,170,70,.55); }
.btn.main { color: #1c1003; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #b97f2a); }
.btn.off { border-color: var(--line); color: var(--muted); background: transparent; box-shadow: none; cursor: default; }

/* Sections */
section.block { max-width: 1180px; margin: 0 auto; padding: 76px 16px 18px; }
.head { margin-bottom: 30px; text-align: center; }
.head h2 { margin: 0; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; color: var(--gold-hi); letter-spacing: .04em; }
.head p { margin: 6px 0 0; color: var(--muted); }
.rule { width: 180px; height: 1px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.addon { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 22px 34px; padding: 30px 34px; border: 1px solid var(--line); border-left: 4px solid var(--ember); background: linear-gradient(100deg, rgba(255,138,43,.13), transparent 46%), var(--panel); }
.addon h3 { margin: 0 0 4px; font-size: 26px; color: var(--gold-hi); }
.addon p { margin: 0; color: var(--text); }
.tag { display: inline-block; margin-bottom: 8px; padding: 2px 10px; font: 700 12px Cinzel, serif; letter-spacing: .14em; text-transform: uppercase; color: #1c1003; background: var(--ember); }

/* Recommended addon */
.addon.rec { border-left-color: var(--gold); background: linear-gradient(100deg, rgba(233,185,90,.1), transparent 46%), var(--panel); }
.addon.rec .btn { text-align: center; }
.rec-main { display: flex; align-items: flex-start; gap: 18px; min-width: 0; }
.rec-logo { flex: none; width: 48px; height: 48px; border: 1px solid #000; outline: 1px solid var(--line); }
.addon .rec-note { margin-top: 8px; font-size: 16px; color: var(--muted); }

footer { padding: 26px 16px 32px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Top bar: logged-in menu */
.links { align-items: center; }
.links a[aria-current] { color: var(--gold-hi); opacity: 1; }
.user-menu { position: relative; }
.user-menu summary { display: flex; align-items: center; gap: 8px; font: 700 14px Cinzel, Georgia, serif; letter-spacing: .08em; cursor: pointer; list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary::after { content: ""; margin-top: 5px; border: 5px solid transparent; border-top-color: var(--gold); }
.user-menu .class-icon { width: 26px; height: 26px; }
.user-panel { position: absolute; right: 0; top: calc(100% + 14px); min-width: 230px; padding: 6px 0; border: 1px solid var(--line); background: rgba(7,10,28,.97); box-shadow: 0 16px 30px rgba(0,0,0,.6); }
.user-account { display: block; padding: 8px 18px 10px; border-bottom: 1px solid rgba(43,52,104,.6); font-size: 16px; color: var(--muted); overflow-wrap: anywhere; }
.links .user-panel a, .user-panel button { display: block; width: 100%; padding: 10px 18px; border: 0; font: 700 13px Cinzel, Georgia, serif; letter-spacing: .12em; text-align: left; text-transform: uppercase; text-decoration: none; color: var(--text); background: none; cursor: pointer; opacity: 1; }
.links .user-panel a:hover, .user-panel button:hover { color: var(--gold-hi); background: rgba(255,255,255,.04); }
.user-panel form { margin: 0; }
.guild-menu summary { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text); opacity: .86; }
.guild-menu summary:hover, .guild-menu summary.current, .guild-menu[open] summary { color: var(--gold-hi); opacity: 1; }
.guild-menu .user-panel { left: 0; right: auto; }

/* Top bar: language switch */
.lang-switch { display: flex; align-items: center; gap: 4px; font: 700 13px Cinzel, Georgia, serif; color: var(--muted); }
.lang-switch span { opacity: .5; }
.lang-switch a { padding: 4px 3px; font-size: 13px; letter-spacing: .1em; text-decoration: none; color: var(--text); opacity: .62; }
.lang-switch a:hover { color: var(--gold-hi); opacity: 1; }
.lang-switch a[aria-current] { color: var(--gold-hi); opacity: 1; box-shadow: inset 0 -1px 0 var(--gold); }

/* Home: hero */
.hero { position: relative; z-index: 10; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
.hero > picture img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(7,10,28,.82) 0%, rgba(7,10,28,.34) 30%, rgba(7,10,28,0) 52%, rgba(7,10,28,0) 82%, var(--night) 100%); }
.glow { position: absolute; z-index: -1; left: var(--fx, 55%); top: var(--fy, 85%); width: 62vmax; height: 62vmax; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,150,50,.34) 0%, rgba(255,110,30,.12) 30%, transparent 62%); mix-blend-mode: screen; animation: flicker 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes flicker { 0%, 100% { opacity: .72; } 18% { opacity: 1; } 34% { opacity: .8; } 57% { opacity: .96; } 76% { opacity: .68; } }
#embers, #night { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
/* Night sky easter eggs: drawn above the dark top gradient, under the fire glow, embers and title. */
#night { z-index: -2; }
.title { position: absolute; z-index: 2; left: 0; right: 0; top: clamp(92px, 13vh, 150px); padding: 0 16px; text-align: center; }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: clamp(18px, 4vh, 40px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 14px; font: 700 13px Cinzel, Georgia, serif; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--gold-hi); text-shadow: 0 1px 6px #000; white-space: nowrap; transition: opacity .4s; }
.scroll-cue svg { box-sizing: content-box; width: 26px; height: 26px; padding: 11px; border: 1px solid var(--gold); border-radius: 50%; background: rgba(7,10,28,.72); box-shadow: 0 0 18px rgba(255,160,50,.45), inset 0 0 10px rgba(233,185,90,.2); filter: drop-shadow(0 0 4px rgba(255,170,60,.6)); animation: cue-bob 1.8s ease-in-out infinite; }
.scroll-cue:hover { color: #fff; }
.scroll-cue:hover svg { background: rgba(233,185,90,.22); }
.scroll-cue.gone { opacity: 0; pointer-events: none; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); opacity: .75; } 50% { transform: translateY(8px); opacity: 1; } }

/* Home: scene versions. The generated one is one whole picture with characters around the fire
   (app/lib/scene.php). A little above the bottom, so wide screens keep the heads. With a member's
   main (focus-<seat>) a narrow screen shows that character: the x positions put the seat in the
   middle of a phone held upright. The original version uses none of this. */
.hero.scene-generated > picture img { object-position: 50% 72%; }
.hero.focus-tank > picture img { object-position: 12% 72%; }
.hero.focus-healer > picture img { object-position: 54% 72%; }
.hero.focus-dps > picture img { object-position: 74% 72%; }
.hero.scene-generated::before { pointer-events: none; }
/* Above the dark gradient, so the nameplate is not dimmed. No z-index here: the box stays under the
   title (its buttons keep working where they overlap a head), the nameplate goes above it. */
.scene { position: absolute; inset: 0; pointer-events: none; }
/* An empty box over the member's character (site.js places it): the nameplate shows on hover. */
.seat { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.seat.me { pointer-events: auto; }
.nameplate { position: absolute; z-index: 3; left: 50%; bottom: 100%; margin-bottom: 2px; transform: translateX(-50%); padding: 1px 9px; border-radius: 3px; font: 700 13px Cinzel, Georgia, serif; letter-spacing: .06em; white-space: nowrap; background: rgba(7,10,28,.6); text-shadow: 0 0 3px #000, 0 1px 2px #000; opacity: 0; transition: opacity .25s; pointer-events: none; }
.seat.me:hover .nameplate { opacity: 1; }
.scene-switch { position: absolute; z-index: 4; left: clamp(12px, 2vw, 26px); bottom: clamp(12px, 2.4vh, 26px); display: flex; padding: 3px; border: 1px solid rgba(233,185,90,.32); border-radius: 999px; background: rgba(7,10,28,.62); font: 700 11px Cinzel, Georgia, serif; letter-spacing: .12em; text-transform: uppercase; opacity: .62; transition: opacity .2s; }
.scene-switch:hover, .scene-switch:focus-within { opacity: 1; }
.scene-switch a { padding: 5px 11px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.scene-switch a:hover { color: var(--gold-hi); }
.scene-switch a[aria-current] { color: #1c1003; background: var(--gold); }
/* Glowing spells in the generated picture (app/lib/scene_glows.php): a soft light of the spell's
   own colour (--c) over each painted spell, placed and coloured by site.js. Above the dark
   gradient, under the night effects, the fire glow and the title; the layer as a whole lightens
   the picture (screen), so the painted magic looks alive. Kinds: pulse (orbs, crystals, books)
   breathes slowly, flame flickers, spark (lightning) flashes. */
.spells { position: absolute; inset: 0; z-index: -2; mix-blend-mode: screen; pointer-events: none; }
.spell { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 50%; opacity: .6; background: radial-gradient(circle closest-side, var(--c), transparent); background: radial-gradient(circle closest-side, color-mix(in srgb, var(--c) 70%, transparent) 0%, color-mix(in srgb, var(--c) 32%, transparent) 38%, transparent 100%); animation: spell-pulse 3.6s ease-in-out infinite; will-change: opacity, transform; }
.spell[hidden] { display: none; }
.spell-flame { animation: spell-flame 1.2s linear infinite; }
.spell-spark { animation: spell-spark 2.9s linear infinite; }
@keyframes spell-pulse { 0%, 100% { opacity: .38; transform: scale(.88); } 50% { opacity: .8; transform: scale(1.06); } }
@keyframes spell-flame { 0%, 100% { opacity: .5; transform: scale(.96); } 14% { opacity: .78; transform: scale(1.04); } 27% { opacity: .58; transform: scale(.98); } 43% { opacity: .85; transform: scale(1.07); } 58% { opacity: .55; transform: scale(.97); } 74% { opacity: .76; transform: scale(1.03); } 87% { opacity: .6; transform: scale(.99); } }
@keyframes spell-spark { 0%, 100% { opacity: .3; } 6% { opacity: .9; } 9% { opacity: .35; } 12% { opacity: 1; } 16% { opacity: .32; } 48% { opacity: .42; } 63% { opacity: .3; } 66% { opacity: .85; } 69% { opacity: .34; } }

/* Home: forum preview */
.forum { border: 1px solid var(--line); background: var(--panel); }
.forum h3 { margin: 0; padding: 10px 20px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); background: linear-gradient(180deg, #27306a, #1a2150); border-bottom: 1px solid var(--line); }
.board { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 20px; border-bottom: 1px solid rgba(43,52,104,.6); text-decoration: none; }
.board:hover { background: rgba(255,255,255,.03); }
.board b { display: block; font-weight: 600; color: var(--gold-hi); }
.board span { font-size: 16px; color: var(--muted); }
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(43,52,104,.6); }
.class { display: flex; align-items: center; gap: 14px; padding: 12px 20px; background: var(--panel); font-weight: 600; text-decoration: none; color: var(--c); }
.class:hover { background: #182050; }
.class img { width: 40px; height: 40px; border: 1px solid #000; outline: 1px solid var(--c); }

/* Home: about, countdown and recruiting board */
.about { max-width: 820px; margin: 0 auto; padding: 30px 34px; border: 1px solid var(--line); border-left: 4px solid var(--gold); text-align: center; background: linear-gradient(100deg, rgba(233,185,90,.1), transparent 46%), var(--panel); }
.about p { margin: 0 0 14px; font-size: 20px; }
.about .cta { margin-top: 22px; }
.countdown { display: flex; justify-content: center; gap: 14px; }
.countdown div { flex: 0 1 132px; min-width: 0; padding: 16px 8px 12px; border: 1px solid var(--line); text-align: center; background: var(--panel); }
.countdown b { display: block; font: 900 clamp(30px, 4.6vw, 52px)/1.1 Cinzel, Georgia, serif; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 16px; color: var(--muted); }
.recruit-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.need { font: 700 12px/1.4 Cinzel, Georgia, serif; letter-spacing: .1em; text-transform: uppercase; }
.need-low { color: var(--muted); }
.need-medium { color: var(--gold); }
.need-high { color: var(--ember); }

/* Home: trailer */
.video { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.play img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.play:hover img { filter: brightness(1.15); }
.play span { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%); border: 2px solid var(--gold-hi); border-radius: 50%; background: rgba(7,10,28,.66); box-shadow: 0 0 34px rgba(255,170,70,.6); }
.play span::after { content: ""; position: absolute; left: 36px; top: 26px; border-style: solid; border-width: 19px 0 19px 30px; border-color: transparent transparent transparent var(--gold-hi); }

.discord { margin-top: 70px; padding: 74px 16px; text-align: center; background: radial-gradient(ellipse at 50% 120%, rgba(255,138,43,.26), transparent 62%), var(--night-2); border-top: 1px solid var(--line); }
.discord h2 { margin: 0 0 8px; font-size: clamp(28px, 3.6vw, 44px); color: var(--gold-hi); }
.discord p { margin: 0 0 24px; }
.more { margin: 22px 0 0; text-align: center; }

/* Addon page */
button.btn { line-height: inherit; }
.addons-page { padding-bottom: 64px; }
.strip { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: clamp(280px, 40vh, 380px); padding: 0 16px 26px; overflow: hidden; isolation: isolate; text-align: center; }
.strip > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 82%; }
.strip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,10,28,.82) 0%, rgba(7,10,28,.42) 40%, rgba(7,10,28,.5) 68%, var(--night) 100%); }
.strip h1 { font-size: clamp(44px, 6.4vw, 84px); }
.strip .tagline { margin: 10px 0 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 22px 20px 24px; border: 1px solid var(--line); background: var(--panel); }
.steps li::before { content: counter(step); display: block; width: 42px; height: 42px; margin-bottom: 12px; border: 1px solid var(--gold); border-radius: 50%; font: 700 20px/40px Cinzel, serif; text-align: center; color: var(--gold-hi); background: rgba(7,10,28,.66); }
.steps h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; color: var(--gold-hi); }
.steps p { margin: 0; font-size: 17px; }
.steps a { color: var(--gold-hi); }
.manual { margin: 16px 0 0; padding: 14px 20px; border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--night-2); font-size: 17px; }
.manual code { padding: 1px 6px; font: 15px/1.5 Consolas, ui-monospace, monospace; color: var(--gold-hi); background: rgba(255,255,255,.06); overflow-wrap: anywhere; }

.addon.big { padding: 40px 42px; border-color: var(--gold); border-left-color: var(--ember); box-shadow: 0 0 44px rgba(255,138,43,.18); }
.addon + .addon { margin-top: 16px; }
.addon.big h3 { font-size: clamp(28px, 3.2vw, 36px); }
.addon.big p { font-size: 20px; }

.feature { display: flex; align-items: stretch; border: 1px solid var(--line); background: radial-gradient(ellipse at 100% 0%, rgba(255,138,43,.14), transparent 60%), var(--panel); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.feature-shot { flex: 3 1 0; min-width: 0; background: #000; position: relative; }
.shot-credit { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; font-size: 13px; color: #e8dcc4; background: rgba(0,0,0,.65); text-decoration: none; }
.shot-credit:hover { text-decoration: underline; }
.feature-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-body { flex: 2 1 0; min-width: 0; padding: 30px 32px; }
.feature-body p { margin: 0 0 16px; }
.feature-body .logo { display: block; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.chips li { padding: 2px 10px; border: 1px solid var(--line); font-size: 16px; background: rgba(7,10,28,.5); }

.group + .group { margin-top: 38px; }
.group h3 { margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 20px; letter-spacing: .06em; color: var(--gold); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.card:hover { border-color: var(--gold); }
.card-top { display: flex; align-items: center; gap: 12px; }
.logo { flex: none; width: 44px; height: 44px; border: 1px solid #000; outline: 1px solid var(--line); }
.card h4 { margin: 0; min-width: 0; font: 700 18px/1.25 Cinzel, Georgia, serif; color: var(--gold-hi); overflow-wrap: anywhere; }
.card p { margin: 0; font-size: 17px; line-height: 1.5; }
.shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: #000; }
.shot img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.card .btn { margin-top: auto; padding: 10px 12px; font-size: 12px; letter-spacing: .1em; text-align: center; }

.addon.soon { grid-template-columns: 1fr; border-left-color: var(--gold); background: linear-gradient(100deg, rgba(233,185,90,.1), transparent 46%), var(--panel); }
.addon.soon .tag { background: var(--gold); }

/* Inner pages: the campfire band sits behind the page title */
.site-main { max-width: 1180px; min-height: 62vh; margin: 0 auto; padding: 112px 16px 56px; }
.site-main::before { content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: 340px; background: linear-gradient(180deg, rgba(7,10,28,.82) 0%, rgba(7,10,28,.5) 45%, rgba(7,10,28,.62) 70%, var(--night) 100%), url(../img/campfire-banner.webp) 50% 82% / cover no-repeat; }
/* The top padding keeps accents on capitals inside the gradient, which only paints the box. */
.site-main h1 { margin-bottom: 14px; padding-top: .22em; background-size: 100% 100%; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.site-main h1.thread-title { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; letter-spacing: .01em; text-transform: none; }
.site-main h1 .tag { margin: 0 4px 0 0; vertical-align: middle; }
.site-main h2 { margin: 34px 0 14px; font-size: clamp(22px, 2.4vw, 28px); color: var(--gold-hi); letter-spacing: .04em; }
.site-main p { overflow-wrap: anywhere; }
.site-main a:not(.btn) { color: var(--gold-hi); }
.page-lead { max-width: 760px; margin: 0 auto 22px; text-align: center; color: var(--text); text-shadow: 0 2px 10px #000; }
.page-lead.join-invite { margin-top: -10px; color: var(--gold-hi); }
.breadcrumb { margin: 0 0 8px; font-size: 16px; text-align: center; color: var(--text); text-shadow: 0 2px 10px #000; }
.page-actions { display: flex; justify-content: flex-end; margin: 0 0 14px; }

/* Messages */
.notice { margin: 0 0 18px; padding: 12px 18px; border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--night-2); }
.notice-success { border-left-color: #6fc27c; }
.notice-error { border-left-color: var(--ember); }
.page-notices { padding: 96px 16px 8px; background: var(--night-2); }
.page-notices .notice { max-width: 1148px; margin: 0 auto 10px; background: var(--panel); }
.form-errors { max-width: 34rem; margin: 0 auto 18px; padding: 12px 18px; border-left: 4px solid var(--ember); list-style: none; color: #ffc9a0; background: #1c1a30; }
.error-box { max-width: 620px; margin: 0 auto; padding: 30px 34px; border: 1px solid var(--line); border-left: 4px solid var(--ember); text-align: center; background: var(--panel); }
.error-box p { margin: 0 0 18px; }
.error-box p:last-child { margin-bottom: 0; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 4px; max-width: 34rem; margin: 0 auto 22px; padding: 26px 30px 30px; border: 1px solid var(--line); background: var(--panel); }
.form label { margin-top: 12px; font-weight: 600; color: var(--gold-hi); }
.form label:first-of-type { margin-top: 0; }
.form small { display: block; font-size: 15px; line-height: 1.4; color: var(--muted); }
.form h2 { margin: 22px 0 0; font-size: 20px; }
.form .btn { align-self: flex-start; margin-top: 18px; }
.form-wide { max-width: none; }
.form-note { margin: 0 0 6px; text-align: center; color: var(--muted); }
.site-main .form-title { max-width: 34rem; margin: 34px auto 14px; text-align: center; }
input, select, textarea { max-width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; font: inherit; color: var(--text); background: #0b1029; }
.form input, .form select, .form textarea { width: 100%; }
textarea { line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: 1px solid var(--gold); }
input[type="date"], input[type="time"] { color-scheme: dark; }
input[type="checkbox"] { width: auto; margin: 0 4px 0 0; accent-color: var(--gold); }
.form input[type="radio"] { width: auto; margin: 0 6px 0 0; accent-color: var(--gold); }
.form-choice { margin: 12px 0 0; padding: 0; border: 0; }
.form-choice legend { padding: 0; font-weight: 600; color: var(--gold-hi); }
.form .form-choice label { display: block; margin-top: 4px; font-weight: 400; color: var(--text); }
/* The hidden field of the join form: people never see it, robots fill it in. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
option { background: #0b1029; }
.btn { cursor: pointer; }
.btn.small { padding: 7px 12px; font-size: 12px; letter-spacing: .08em; }
.inline-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 100%; margin: 0 8px 6px 0; }
.inline-form input:not([type="checkbox"]), .inline-form select { min-width: 0; padding: 5px 8px; font-size: 16px; }
.inline-form label { font-size: 16px; color: var(--muted); }
.profile-card { display: flex; align-items: center; gap: 16px; max-width: 34rem; margin: 0 auto 24px; padding: 16px 20px; border: 1px solid var(--line); background: var(--panel); }
.profile-card .class-icon { flex: none; width: 56px; height: 56px; }
.profile-card p { margin: 0; line-height: 1.4; }
.profile-name { font: 700 20px Cinzel, Georgia, serif; }

/* Forum tables */
.forum-table { width: 100%; margin: 0 0 26px; border: 1px solid var(--line); border-collapse: collapse; font-size: 17px; line-height: 1.4; background: var(--panel); }
.forum-table th { padding: 10px 16px; border-bottom: 1px solid var(--line); font: 700 13px Cinzel, Georgia, serif; letter-spacing: .1em; text-align: left; text-transform: uppercase; color: var(--gold-hi); background: linear-gradient(180deg, #27306a, #1a2150); }
.forum-table td { padding: 12px 16px; border-bottom: 1px solid rgba(43,52,104,.6); vertical-align: middle; overflow-wrap: anywhere; }
.forum-table td + td { border-left: 1px solid rgba(43,52,104,.6); }
.forum-table tbody tr:hover { background: rgba(255,255,255,.03); }
.forum-table td > span { white-space: nowrap; }
.forum-table td.keep { overflow-wrap: break-word; }
.forum-table a { text-decoration: none; }
.forum-table a:hover { text-decoration: underline; }
.forum-table th.col-count, .forum-table td.col-count { width: 7.5rem; text-align: center; }
.forum-table .col-author { width: 10rem; }
.forum-table .col-last { width: 17rem; }
.forum-table td.col-last { font-size: 16px; }
.board-cell { display: flex; align-items: center; gap: 14px; }
.board-cell > div { min-width: 0; }
.board-cell > .class-icon { flex: none; }
.board-name { font-weight: 600; }
.board-description, .post-date, .post-edited, .post-time { font-size: 16px; color: var(--muted); }
.board-note { font-size: 15px; font-style: italic; color: var(--gold); }
.board-counts { display: none; font-size: 15px; color: var(--muted); }
.thread-pinned { background: rgba(233,185,90,.07); }
td .tag { margin: 0 4px 0 0; padding: 0 7px; font-size: 11px; }
.class-icon { display: inline-block; width: 40px; height: 40px; border: 1px solid #000; outline: 1px solid var(--c, var(--line)); vertical-align: middle; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 14px; font-size: 16px; color: var(--muted); }
.pager a { padding: 3px 12px; border: 1px solid var(--line); text-decoration: none; background: var(--panel); }
.pager a:hover { border-color: var(--gold); }

/* Forum posts */
.post { display: grid; grid-template-columns: 216px minmax(0, 1fr); margin-bottom: 14px; border: 1px solid var(--line); background: var(--panel); scroll-margin-top: 90px; }
.post-author { padding: 18px 16px; border-right: 1px solid var(--line); text-align: center; background: linear-gradient(180deg, #1a2150, #121838); }
.post-author .class-icon { width: 64px; height: 64px; margin-bottom: 8px; }
.post-character { font: 700 18px/1.3 Cinzel, Georgia, serif; overflow-wrap: anywhere; }
.post-username { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.post-author dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; text-align: left; }
.post-author dt { color: var(--muted); }
.post-author dd { margin: 0; overflow-wrap: anywhere; }
.post-banned { margin-top: 8px; font-size: 15px; color: var(--ember); }
.post-main { display: flex; flex-direction: column; min-width: 0; }
.post-date { padding: 7px 20px; border-bottom: 1px solid rgba(43,52,104,.6); background: rgba(255,255,255,.025); }
.post-date a { text-decoration: none; }
.site-main .post-date a:not(.btn) { color: var(--muted); }
.post-body { flex: 1; padding: 16px 20px; overflow-wrap: anywhere; }
.post-edited { padding: 0 20px 10px; font-style: italic; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 20px 8px; }
.post-actions .inline-form { margin: 0; }
.post-quote { margin: 8px 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: var(--night-2); }
.post-quote cite { display: block; font-size: 15px; font-style: normal; color: var(--gold); }
.post-heading { margin: 18px 0 8px; font-size: 20px; letter-spacing: .03em; color: var(--gold-hi); }
.post-heading:first-child { margin-top: 0; }
.post-list { margin: 8px 0; padding-left: 26px; }
.post-list li { margin: 3px 0; }
.mod-tools { margin-top: 20px; padding: 18px 20px 12px; border: 1px solid var(--line); border-left: 4px solid var(--ember); background: var(--panel); }
.site-main .mod-tools h2 { margin: 0 0 12px; font-size: 18px; }

/* Roster and member profile */
.class-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 8px; }
.class-filter a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 12px; border: 1px solid var(--line); font-size: 16px; text-decoration: none; background: var(--panel); }
.class-filter a:hover, .class-filter a[aria-current] { border-color: var(--gold); background: #182050; }
.class-filter .class-icon { width: 26px; height: 26px; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.roster a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 14px; border: 1px solid var(--line); text-decoration: none; background: var(--panel); transition: border-color .2s; }
.roster a:hover { border-color: var(--gold); }
.roster .class-icon { flex: none; }
.roster-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.roster-text b { font: 700 18px/1.3 Cinzel, Georgia, serif; overflow-wrap: anywhere; }
.site-main .roster-text small { font-size: 15px; color: var(--muted); }
.member-card { display: flex; align-items: flex-start; gap: 20px; max-width: 34rem; margin: 0 auto 18px; padding: 20px 24px; border: 1px solid var(--line); background: var(--panel); }
.member-card .class-icon { flex: none; width: 72px; height: 72px; }
.member-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; min-width: 0; margin: 0; }
.member-card dt { color: var(--muted); }
.member-card dd { margin: 0; overflow-wrap: anywhere; }
.member-badges { max-width: 34rem; margin: 0 auto; }
.site-main .member-badges h2 { text-align: center; }
.medals { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 26px 14px; margin: 0; padding: 14px 0 0; list-style: none; }
.medal { display: flex; flex-direction: column; align-items: center; gap: 10px; font: 700 14px/1.3 Cinzel, Georgia, serif; text-align: center; color: var(--gold-hi); }
.medal-disc { position: relative; width: 76px; height: 76px; border: 2px solid #9a5f1e; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6dc 0%, var(--gold-hi) 26%, var(--gold) 58%, #9a5f1e 100%); box-shadow: 0 0 0 3px rgba(233,185,90,.22), 0 0 24px rgba(255,170,70,.35), inset 0 0 0 5px rgba(255,246,220,.3); isolation: isolate; }
.medal-disc::before { content: ""; position: absolute; left: 50%; top: -16px; z-index: -1; width: 30px; height: 24px; transform: translateX(-50%); background: linear-gradient(90deg, #7a1f1a 0 34%, var(--gold) 34% 66%, #7a1f1a 66%); clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%); }
.medal-disc::after { content: ""; position: absolute; inset: 15px; background: linear-gradient(180deg, #8a5417, #5e3709); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.site-main .mod-tools { max-width: 34rem; margin-left: auto; margin-right: auto; }

/* Officer page, host check */
.recruit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 14px 18px; }
.recruit-form label { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.recruit-form .class-icon { width: 26px; height: 26px; }
.reset-link { padding: 12px 16px; border: 1px solid var(--line); background: var(--night-2); }
code { font: 15px/1.5 Consolas, ui-monospace, monospace; color: var(--gold-hi); overflow-wrap: anywhere; }
.check-ok { color: #7fd38a; }
.check-fail { color: #ff9a7a; }
.check-warn { color: var(--gold); }

/* Calendar */
.type-raid { --type: var(--type-raid); }
.type-dungeon { --type: var(--type-dungeon); }
.type-guild { --type: var(--type-guild); }
.type-pvp { --type: var(--type-pvp); }
.calendar-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.calendar-page section > h2 { margin-top: 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.site-main .cal-head h2 { flex: 1; margin: 0; text-align: center; }
.cal { width: 100%; table-layout: fixed; border: 1px solid var(--line); border-collapse: collapse; background: var(--panel); }
.cal th { padding: 8px 4px; border-bottom: 1px solid var(--line); font: 700 13px Cinzel, Georgia, serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi); background: linear-gradient(180deg, #27306a, #1a2150); }
.cal td { height: 104px; padding: 4px 5px; border: 1px solid rgba(43,52,104,.6); vertical-align: top; }
.cal td.cal-out { background: var(--night-2); }
.cal td.cal-today { outline: 1px solid var(--gold); outline-offset: -1px; }
.cal-day { display: block; font-size: 15px; line-height: 1.3; color: var(--muted); }
.cal-today .cal-day { font-weight: 600; color: var(--gold-hi); }
.site-main .cal-event { display: block; margin-top: 3px; padding: 1px 5px; overflow: hidden; border-left: 3px solid var(--type); font-size: 14px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; color: var(--text); background: rgba(255,255,255,.05); }
.site-main .cal-event:hover { background: rgba(255,255,255,.12); }
.cal-time { color: var(--gold-hi); }
.cal-note { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.event-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.event-list a { display: flex; flex-direction: column; padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--type); text-decoration: none; background: var(--panel); transition: border-color .2s; }
.event-list a:hover { border-color: var(--gold); border-left-color: var(--type); }
.event-list b { font: 700 18px/1.3 Cinzel, Georgia, serif; overflow-wrap: anywhere; }
.event-kind { font: 700 12px/1.4 Cinzel, Georgia, serif; letter-spacing: .1em; text-transform: uppercase; color: var(--type); }
.event-card { max-width: 46rem; margin: 0 auto; padding: 18px 24px; border: 1px solid var(--line); border-left: 4px solid var(--type); background: var(--panel); }
.event-when { margin: 2px 0 0; font: 700 20px/1.3 Cinzel, Georgia, serif; color: var(--gold-hi); }
.event-card .cal-note { margin-top: 2px; }
.event-text { margin: 12px 0 0; }
.event-answer { text-align: center; }
.answer-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.answer-column { padding: 14px 16px; border: 1px solid var(--line); background: var(--panel); }
.answer-column h3 { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 10px; font-size: 18px; color: var(--gold-hi); }
.answer-class + .answer-class { margin-top: 10px; }
.answer-class-name { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.answer-class-name .class-icon { flex: none; width: 26px; height: 26px; }
.answer-count { margin-left: auto; color: var(--muted); }
.answer-class ul { margin: 4px 0 0; padding: 0 0 0 34px; font-size: 17px; line-height: 1.4; list-style: none; overflow-wrap: anywhere; }
.site-main .answer-class a { text-decoration: none; }

/* DKP and wall of shame */
.dkp-table .class-icon { width: 26px; height: 26px; margin-right: 4px; }
.forum-table th.col-points, .forum-table td.col-points { width: 6.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.dkp-table th[aria-sort="ascending"] a::after { content: " \25B2"; font-size: 10px; }
.dkp-table th[aria-sort="descending"] a::after { content: " \25BC"; font-size: 10px; }
.member-dkp { max-width: 46rem; margin: 0 auto; }
.site-main .member-dkp h2 { text-align: center; }
.dkp-total { margin: 0 0 14px; font: 700 20px Cinzel, Georgia, serif; text-align: center; color: var(--gold-hi); }
.dkp-plus { color: #7fd38a; }
.dkp-minus { color: #ff9a7a; }
.shame { margin-top: 44px; scroll-margin-top: 90px; }
.site-main .shame > h2 { margin-bottom: 6px; text-align: center; }
.shame-lead { margin: 0 0 18px; text-align: center; color: var(--muted); }
.shame-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; margin: 0 0 14px; padding: 0; list-style: none; }
.shame-list li { display: flex; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--ember); background: var(--panel); }
.shame-list .class-icon { flex: none; }
.shame-list li > div { min-width: 0; }
.shame-list b { font: 700 17px/1.3 Cinzel, Georgia, serif; }
.site-main .shame-list a { text-decoration: none; }
.shame-list p { margin: 2px 0; }
.shame-list .inline-form { display: flex; margin: 6px 0 0; }
.shame h3.form-title { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: .04em; color: var(--gold-hi); }

/* First kills */
.trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.trophy { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--panel); }
.trophy-picture { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 100%, rgba(255,138,43,.22), transparent 65%), var(--night-2); }
.trophy-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.trophy-picture:empty::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); opacity: .35; background: linear-gradient(180deg, var(--gold-hi), #9a5f1e); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.trophy-body { padding: 14px 18px 16px; }
.trophy-body .tag { margin-bottom: 6px; overflow-wrap: anywhere; }
.site-main .trophy-body h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.trophy-body p { margin: 0; }
.trophy-names { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 10px 0 0; padding: 0; font-size: 16px; list-style: none; }
.site-main .trophy-names a { text-decoration: none; }
.trophy-body .trophy-note { margin-top: 10px; font-style: italic; }
.trophy-body .inline-form { margin: 12px 0 0; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 0 12px; max-height: 320px; margin-top: 4px; overflow-y: auto; }

/* The picture of a kill links to the gallery. */
.trophy-picture a { display: block; height: 100%; }
.trophy-body .trophy-pick { margin-top: 10px; font-size: 16px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.gallery-item { display: block; min-width: 0; border: 1px solid var(--line); text-decoration: none; background: var(--panel); transition: border-color .2s, box-shadow .2s; }
.gallery-item:hover { border-color: var(--gold); box-shadow: 0 0 22px rgba(255,170,70,.28); }
.gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-item span { display: block; padding: 6px 12px 8px; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.gallery-view { margin: 0 0 18px; text-align: center; }
.gallery-view img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--line); }
.gallery-view figcaption { margin-top: 8px; font-size: 16px; color: var(--muted); }
.gallery-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.gallery-actions .inline-form { margin: 0; }
.form input[type="file"] { padding: 8px; }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 6px 12px; border: 1px solid var(--gold); font: 700 12px Cinzel, Georgia, serif; letter-spacing: .08em; color: var(--gold-hi); background: transparent; cursor: pointer; }

/* Polls. Bar widths come from the progress element, because inline styles are not allowed. */
.polls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 16px; align-items: start; }
.poll { min-width: 0; padding: 20px 24px 22px; border: 1px solid var(--line); background: var(--panel); }
#anketa .poll { max-width: 760px; margin: 0 auto; }
.poll .tag { margin-bottom: 6px; background: var(--gold); }
.poll .tag.poll-closed { color: var(--text); background: var(--line); }
.poll-question, .site-main .poll-question { margin: 0 0 12px; font-size: 22px; line-height: 1.3; color: var(--gold-hi); letter-spacing: .02em; overflow-wrap: anywhere; }
.poll-form { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.poll-form label { display: block; margin-bottom: 4px; overflow-wrap: anywhere; cursor: pointer; }
.poll-form input[type="radio"] { margin: 0 6px 0 0; padding: 0; accent-color: var(--gold); }
.poll-form .btn { margin-top: 8px; }
.poll-results { margin: 0; padding: 0; list-style: none; }
.poll-results li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; margin-bottom: 12px; }
.poll-label { overflow-wrap: anywhere; }
.poll-label .tag { margin: 0 0 0 4px; padding: 0 7px; font-size: 11px; vertical-align: middle; }
.poll-count { font-size: 16px; color: var(--muted); white-space: nowrap; }
.poll-bar { grid-column: 1 / -1; display: block; width: 100%; height: 14px; border: 1px solid var(--line); background: var(--night-2); -webkit-appearance: none; appearance: none; }
.poll-bar::-webkit-progress-bar { background: var(--night-2); }
.poll-bar::-webkit-progress-value { background: linear-gradient(90deg, #b97f2a, var(--gold) 60%, var(--gold-hi)); }
.poll-bar::-moz-progress-bar { background: linear-gradient(90deg, #b97f2a, var(--gold) 60%, var(--gold-hi)); }
.poll-meta { margin: 0; font-size: 16px; color: var(--muted); }
.poll .inline-form { margin: 10px 0 0; }
.poll-fields { display: grid; gap: 6px; margin-top: 4px; }

/* Class colours, used for names, icon frames and forum tiles */
.class-druid { --c: var(--class-druid); color: var(--c); }
.class-hunter { --c: var(--class-hunter); color: var(--c); }
.class-mage { --c: var(--class-mage); color: var(--c); }
.class-paladin { --c: var(--class-paladin); color: var(--c); }
.class-priest { --c: var(--class-priest); color: var(--c); }
.class-rogue { --c: var(--class-rogue); color: var(--c); }
.class-shaman { --c: var(--class-shaman); color: var(--c); }
.class-warlock { --c: var(--class-warlock); color: var(--c); }
.class-warrior { --c: var(--class-warrior); color: var(--c); }

@media (max-width: 1000px) {
  .calendar-page { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .feature { flex-direction: column; }
  .feature-shot, .feature-body { flex: none; }
  .feature-shot img { height: auto; }
}

/* Wide tables turn into stacked rows, each cell with its label */
@media (max-width: 900px) {
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table td { display: block; width: 100%; }
  .stack-table thead { display: none; }
  .stack-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .forum-table.stack-table td, .forum-table.stack-table td + td, .forum-table.stack-table .col-author, .forum-table.stack-table .col-last, .forum-table.stack-table td.col-count { width: 100%; padding: 2px 0; border: 0; text-align: left; }
  .stack-table td:empty { display: none; }
  .stack-table td[data-label]::before { content: attr(data-label) ": "; font-size: 15px; color: var(--muted); }
}

/* The top bar needs more room than the page, so it becomes the burger menu earlier. */
@media (max-width: 1240px) {
  .burger { display: block; }
  .nav { padding-top: 12px; padding-bottom: 12px; }
  .links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: rgba(7,10,28,.97); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,0,0,.6); }
  .nav.open { background: rgba(7,10,28,.97); }
  .nav.open .links { display: flex; }
  .links a { padding: 15px 20px; font-size: 15px; border-top: 1px solid rgba(43,52,104,.6); }
  .user-menu summary { padding: 12px 20px; font-size: 15px; border-top: 1px solid rgba(43,52,104,.6); }
  .user-panel { position: static; min-width: 0; padding: 0 0 6px 16px; border: 0; background: none; box-shadow: none; }
  .user-account { border-bottom: 0; }
  .links .user-panel a, .user-panel button { font-size: 14px; }
  .links .lang-switch { gap: 6px; padding: 6px 14px; border-top: 1px solid rgba(43,52,104,.6); font-size: 15px; }
  .links .lang-switch a { padding: 10px 8px; border-top: 0; font-size: 15px; }
}

@media (max-width: 760px) {
  .eyebrow { letter-spacing: .24em; }
  .tagline { margin: 10px 0 18px; }
  .btn { padding: 12px 20px; }
  section.block { padding-top: 56px; }
  h1 { background-size: 100% 1em; }
  .addon { grid-template-columns: 1fr; padding: 24px 20px; }

  .title { top: 84px; }
  .play span { width: 68px; height: 68px; }
  .play span::after { left: 26px; top: 19px; border-width: 15px 0 15px 23px; }
  .hero > picture img { object-position: 56% 100%; }
  .classes { grid-template-columns: 1fr 1fr; }
  .about { padding: 22px 18px; }
  .about p { font-size: 18px; }
  .countdown { gap: 8px; }
  .countdown div { padding: 12px 4px 8px; }
  .countdown span { font-size: 14px; }
  .member-card { padding: 16px; gap: 14px; }
  .member-card .class-icon { width: 52px; height: 52px; }
  .class { padding: 10px 12px; gap: 10px; font-size: 16px; }
  .board span.count { display: none; }

  .strip { height: 280px; padding-bottom: 20px; }
  .addon.big { padding: 26px 20px; }
  .addon.big p { font-size: 18px; }
  .feature-body { padding: 22px 20px; }

  .site-main { padding-top: 88px; }
  .site-main::before { height: 260px; }
  .page-notices { padding-top: 84px; }
  .form { padding: 20px 18px 24px; }
  .page-actions { justify-content: center; }
  .pager { justify-content: center; }

  .cal th { padding: 6px 0; letter-spacing: 0; }
  .cal td { height: 58px; padding: 2px; }
  .cal-day { font-size: 14px; }
  .cal-name { display: none; }
  .site-main .cal-event { padding: 3px 0; border-left-width: 2px; font-size: 12px; text-align: center; }
  .answers { grid-template-columns: minmax(0, 1fr); }
  .forum-table.dkp-table th, .forum-table.dkp-table td { padding: 8px 10px; }
  .forum-table th.col-points, .forum-table td.col-points { width: 4.5rem; }

  .board-table, .board-table thead, .board-table tbody, .board-table tr, .board-table td { display: block; width: 100%; }
  .board-table th { display: block; }
  .board-table th:not(:first-child) { display: none; }
  .board-table tbody tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .forum-table.board-table td, .forum-table.board-table td + td { padding: 0; border: 0; }
  .forum-table.board-table td.col-count { display: none; }
  .forum-table.board-table td.col-last { width: 100%; margin-top: 6px; padding-left: 54px; font-size: 15px; }
  .board-counts { display: block; }

  .post { grid-template-columns: minmax(0, 1fr); }
  .post-author { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .post-author .class-icon { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .post-author dl { grid-column: 1 / -1; grid-template-columns: repeat(4, auto); justify-content: space-between; margin-top: 8px; padding-top: 8px; }
  .post-author dd { white-space: nowrap; }
  .post-banned { grid-column: 1 / -1; }
  .post-date { padding: 6px 14px; }
  .post-body { padding: 12px 14px; }
  .post-edited { padding: 0 14px 8px; }
  .post-actions { padding: 0 14px 8px; }
  .error-box { padding: 22px 18px; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .site-main::before { background-image: linear-gradient(180deg, rgba(7,10,28,.82) 0%, rgba(7,10,28,.5) 45%, rgba(7,10,28,.62) 70%, var(--night) 100%), url(../img/campfire-phone.jpg); background-position: 50% 78%; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow { animation: none; }
  #embers, #night { display: none; }
  .scroll-cue svg { animation: none; }
  .spell { animation: none; }
}

/* ==========================================================================
   Characters: race, role, PvP and alts (profile, roster, member page).
   Added by the characters feature; keep this section at the end.
   ========================================================================== */
.character-summary { color: var(--muted); font-size: 14px; }
.traits-missing { max-width: 34rem; margin: 0 auto 18px; }
.profile-alts { margin-top: 32px; }
.profile-alts > h3 { margin: 24px 0 8px; text-align: center; }
.alt-list { display: grid; gap: 10px; max-width: 46rem; margin: 0 auto 18px; padding: 0; list-style: none; }
.alt-item { padding: 10px 14px; border: 1px solid var(--line); background: var(--panel); }
.alt-head { display: flex; align-items: center; gap: 12px; }
.alt-head .class-icon { flex: none; }
.alt-head small { display: block; }
.alt-actions { margin-top: 8px; }
.alt-edit summary { cursor: pointer; color: var(--gold-hi); font-weight: 600; }
.alt-edit .form { margin-top: 8px; }
.roster > li { display: flex; flex-direction: column; }
.roster > li > a { flex: 1 0 auto; height: auto; }
.roster-alts { margin: 0; padding: 6px 14px 8px; list-style: none; border: 1px solid var(--line); border-top: 0; background: var(--night-2); font-size: 14px; }
.roster-alts li { padding: 2px 0; }
.roster-alts small { color: var(--muted); }

/* Character profile */
/* ==========================================================================
   Character page (index.php?p=character): the Character tab with the paper doll and the
   3D portrait card, the social side, and the "Novinky z Azerothu" feed. Script: js/character.js.
   ========================================================================== */
.q-poor, .gear-q-poor { --qc: #9d9d9d; }
.q-common, .gear-q-common { --qc: #ffffff; }
.q-uncommon, .gear-q-uncommon { --qc: #1eff00; }
.q-rare, .gear-q-rare { --qc: #3a8fff; }
.q-epic, .gear-q-epic { --qc: #b45cf5; }
.q-legendary, .gear-q-legendary { --qc: #ff8000; }
.q-artifact, .gear-q-artifact { --qc: #e6cc80; }
.q-heirloom, .gear-q-heirloom { --qc: #00ccff; }
.q-poor, .q-common, .q-uncommon, .q-rare, .q-epic, .q-legendary, .q-artifact, .q-heirloom { color: var(--qc); }

.charpage { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.charpage .muted { color: var(--muted); }
.char-tab { position: relative; min-width: 0; padding: 18px 18px 16px; border: 1px solid #5a4a2a; background: linear-gradient(180deg, rgba(26,20,12,.94), rgba(9,10,22,.96)); box-shadow: inset 0 0 0 1px rgba(233,185,90,.16), 0 18px 40px rgba(0,0,0,.5); }
.char-head { margin-bottom: 14px; text-align: center; }
.site-main h1.char-name { margin: 0; padding-top: 0; background: none; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: .02em; text-transform: none; filter: drop-shadow(0 2px 6px #000); }
.char-line { margin: 2px 0 6px; font-size: 17px; }
.char-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0; }
.char-tag { padding: 1px 8px; border: 1px solid var(--line); background: var(--night-2); font: 700 12px/1.6 Cinzel, Georgia, serif; letter-spacing: .1em; text-transform: uppercase; }
.char-pvp { border-color: #8a2c33; color: #ff9a9a; background: rgba(140,20,30,.28); }
.char-guild { font-size: 15px; color: #40ff40; }

.doll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 1.05fr) minmax(0, 1fr); grid-template-areas: "left centre right" "weapons weapons weapons"; gap: 10px 12px; }
.gear { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.gear-left { grid-area: left; }
.gear-right { grid-area: right; }
.doll-centre { grid-area: centre; display: flex; align-items: center; justify-content: center; perspective: 900px; }
.gear-weapons { grid-area: weapons; flex-direction: row; justify-content: center; }
.gear-weapons .gear-slot { flex: 0 1 210px; min-width: 0; }
.gear-slot { position: relative; display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 3px; border: 1px solid #3a3424; background: rgba(0,0,0,.42); }
.gear-slot:focus { outline: none; }
.gear-slot:focus-visible { outline: 1px solid var(--gold); }
.gear-right .gear-slot { flex-direction: row-reverse; text-align: right; }
.gear-icon { position: relative; overflow: hidden; flex: none; width: 42px; height: 42px; border: 2px solid var(--qc, #555); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.2), transparent 60%), linear-gradient(135deg, #34323d, #121219); box-shadow: inset 0 0 8px rgba(0,0,0,.85), 0 0 6px -1px var(--qc, transparent); }
.gear-empty .gear-icon { border: 2px dashed #3d3d48; background: #0b0b12; box-shadow: none; opacity: .75; }
/* Item icon from the Blizzard armory. The alt text stays hidden if the picture cannot load. */
.gear-icon img { display: block; width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; }
.gear-icon.has-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.75), inset 0 0 6px rgba(0,0,0,.55); pointer-events: none; }
.news-icon { display: inline-block; width: 18px; height: 18px; margin-right: 3px; border: 1px solid var(--qc, #555); border-radius: 2px; vertical-align: -4px; color: transparent; font-size: 0; }
.gear-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.gear-text small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gear-name { overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.gear-empty .gear-name { font-style: italic; color: #6b6e86; }
.gear-tip { position: absolute; z-index: 6; left: 0; bottom: calc(100% + 6px); display: none; flex-direction: column; width: max-content; max-width: min(260px, 80vw); padding: 8px 10px; border: 1px solid #6b6b7a; border-radius: 4px; background: rgba(8,10,24,.97); box-shadow: 0 8px 24px rgba(0,0,0,.65); font-size: 14px; line-height: 1.35; text-align: left; pointer-events: none; }
.gear-right .gear-tip { left: auto; right: 0; }
.gear-tip b { font-weight: 600; }
.gear-tip .muted { font-size: 13px; }
.gear-slot:hover .gear-tip, .gear-slot:focus .gear-tip { display: flex; }

.tilt-card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 40%; position: relative; width: 100%; max-width: 260px; aspect-ratio: 5 / 7; border-radius: 14px; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .35s ease-out; will-change: transform; }
.tilt-card.is-active { transition: transform .08s linear; }
.tilt-inner { position: absolute; inset: 0; overflow: hidden; border: 2px solid var(--c); border-radius: inherit; background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.08), transparent 60%), linear-gradient(180deg, #1a1530, #07081a); box-shadow: 0 0 22px -4px var(--c), 0 0 70px -24px var(--c), 0 22px 40px rgba(0,0,0,.6); }
.tilt-art { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.tilt-crest-art { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.tilt-crest-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, var(--c), transparent 62%); opacity: .3; }
.tilt-crest-art img { position: relative; width: 96px; height: 96px; border: 3px solid var(--c); border-radius: 50%; box-shadow: 0 0 26px var(--c), inset 0 0 10px #000; }
.crest-initial { position: relative; font: 900 64px/1 Cinzel, Georgia, serif; color: var(--c); text-shadow: 0 0 18px var(--c), 0 4px 0 #000; }
.tilt-sheen { position: absolute; inset: 0; background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.34), rgba(255,255,255,.06) 28%, transparent 55%), linear-gradient(115deg, transparent 35%, rgba(255,255,255,.14) 48%, transparent 60%); mix-blend-mode: overlay; pointer-events: none; }
/* The embers rise from just above the caption, so they never pass over its text. */
.tilt-embers { position: absolute; inset: 0 0 38px; pointer-events: none; }
.tilt-embers i { position: absolute; bottom: -8px; left: 20%; width: 4px; height: 4px; border-radius: 50%; background: #ffc46b; box-shadow: 0 0 6px 2px rgba(255,138,43,.8); opacity: 0; animation: cp-ember 5.5s linear infinite; }
.tilt-embers i:nth-child(2) { left: 38%; animation-delay: -1.1s; animation-duration: 6.5s; }
.tilt-embers i:nth-child(3) { left: 55%; animation-delay: -2.3s; }
.tilt-embers i:nth-child(4) { left: 72%; animation-delay: -3.2s; animation-duration: 7s; }
.tilt-embers i:nth-child(5) { left: 85%; animation-delay: -4.4s; }
.tilt-embers i:nth-child(6) { left: 12%; animation-delay: -2.8s; animation-duration: 6s; }
.tilt-embers i:nth-child(7) { left: 63%; animation-delay: -0.6s; animation-duration: 7.5s; }
@keyframes cp-ember {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: translate(14px, -330px) scale(.3); opacity: 0; }
}
.tilt-caption { position: absolute; inset: auto 0 0; padding: 22px 8px 8px; background: linear-gradient(transparent, rgba(0,0,0,.88)); font: 700 13px Cinzel, Georgia, serif; letter-spacing: .14em; text-align: center; text-transform: uppercase; color: var(--c); }

.site-main .char-profs h2 { margin: 18px 0 8px; font-size: 18px; }
.prof-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.prof-list li { display: grid; grid-template-columns: minmax(90px, 9rem) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 15px; }
.prof-list progress { width: 100%; height: 14px; border: 1px solid #000; outline: 1px solid #4a3d22; background: #15151d; -webkit-appearance: none; appearance: none; }
.prof-list progress::-webkit-progress-bar { background: #15151d; }
.prof-list progress::-webkit-progress-value { background: linear-gradient(180deg, #5a9bff, #1d4fb0); }
.prof-list progress::-moz-progress-bar { background: linear-gradient(180deg, #5a9bff, #1d4fb0); }
.prof-value { font-variant-numeric: tabular-nums; color: var(--muted); }
.char-ach { margin: 10px 0 0; font-size: 15px; color: #ffd100; }
.char-stamp { margin: 14px 0 6px; font-size: 14px; text-align: center; color: var(--muted); }
.char-armory { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 0; }
.char-armory small { font-size: 13px; color: var(--muted); }
.char-armory .inline-form { margin: 0; }
.char-problem { margin: 0 0 10px; font-size: 14px; text-align: center; color: #ffc9a0; }

.char-social { display: grid; gap: 14px; min-width: 0; }
.social-card { min-width: 0; padding: 14px 18px; border: 1px solid var(--line); background: var(--panel); }
.site-main .social-card h2 { margin: 0 0 8px; font-size: 18px; }
.social-card h3 { margin: 12px 0 6px; font-size: 15px; color: var(--gold); }
.social-card p { margin: 0 0 6px; }
.mood-now { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.mood-emoji { font-size: 34px; line-height: 1; }
.mood-word { font-weight: 600; color: var(--gold-hi); }
.mood-text { flex-basis: 100%; font-style: italic; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--night-2); font-size: 14px; }
.chip-badge { border-color: #9a5f1e; color: var(--gold-hi); }
.news-list, .plain-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.news-list time, .plain-list time, .news-feed time { font-size: 13px; white-space: nowrap; color: var(--muted); }
.char-edit summary { cursor: pointer; font: 700 16px Cinzel, Georgia, serif; color: var(--gold-hi); }
.char-form { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.char-form > label { margin-top: 10px; font-weight: 600; color: var(--gold-hi); }
.char-form input[type="url"], .char-form input:not([type]), .char-form textarea { width: 100%; }
.char-form small { font-size: 14px; line-height: 1.4; color: var(--muted); }
.char-form .btn { align-self: flex-start; margin-top: 14px; }
.char-form #export_code { font: 13px/1.45 ui-monospace, Consolas, monospace; }
.mood-pick { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; margin: 10px 0 0; padding: 0; border: 0; }
.mood-pick legend { margin-bottom: 6px; padding: 0; font-weight: 600; color: var(--gold-hi); }
.mood-chip { position: relative; }
.mood-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mood-chip > span { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--night-2); font-size: 14px; cursor: pointer; }
.mood-chip input:checked + span { border-color: var(--gold); background: rgba(233,185,90,.16); color: var(--gold-hi); }
.mood-chip input:focus-visible + span { outline: 2px solid var(--gold); }

.news-feed { display: grid; gap: 8px; max-width: 46rem; margin: 0 auto 18px; padding: 0; list-style: none; }
.news-feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); background: var(--panel); font-size: 16px; }
.news-feed .class-icon { width: 32px; height: 32px; }
.news-feed .news-text { overflow-wrap: anywhere; }
.news-block .news-feed { max-width: none; }
.news-more { text-align: center; }

@media (max-width: 980px) {
  .charpage { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .char-tab { padding: 14px 10px; }
  .doll { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "centre centre" "left right" "weapons weapons"; gap: 8px; }
  .tilt-card { max-width: 230px; }
  .gear-icon { width: 38px; height: 38px; }
  .gear-slot { min-height: 46px; }
  .gear-weapons { flex-direction: column; }
  .gear-weapons .gear-slot { flex: none; }
  .prof-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .prof-list progress { grid-column: 1 / -1; grid-row: 2; }
  .news-feed li { grid-template-columns: auto minmax(0, 1fr); }
  .news-feed time { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .tilt-card, .tilt-card.is-active { transform: none; transition: none; }
  .tilt-embers { display: none; }
}
.roster-charlink { display: block; padding: 3px 14px; border: 1px solid var(--line); border-top: 0; background: var(--night-2); font-size: 14px; text-align: right; }
.member-charlink { max-width: 34rem; margin: -6px auto 18px; text-align: center; }

/* News: the list (a big top story, then rows) and an article with comments, see app/templates/news/ */
.news-featured-picture, .news-thumb, .news-hero-picture, .news-side-picture { display: block; overflow: hidden; background: var(--night-2); }
.news-featured-picture img, .news-thumb img, .news-hero-picture img, .news-side-picture img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s; }
.news-fallback { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: linear-gradient(180deg, rgba(7,10,28,.3), rgba(7,10,28,.78)), url(../img/campfire-banner.webp) 50% 72% / cover no-repeat; }
.news-fallback img, .news-featured-picture.news-fallback img, .news-thumb.news-fallback img, .news-hero-picture.news-fallback img, .news-side-picture.news-fallback img { width: 26%; max-width: 132px; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 4px 18px #000); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.site-main .news-meta a { color: var(--muted); text-decoration: none; }
.site-main .news-meta a:hover { color: var(--gold-hi); }
.news-tag, .news-label { display: inline-block; padding: 1px 9px; font: 700 11px/1.6 Cinzel, Georgia, serif; letter-spacing: .14em; text-transform: uppercase; }
.news-tag { color: #1c1003; background: var(--gold); }
.news-label { border: 1px solid var(--ember); color: var(--ember); }
.news-teaser { margin: 0; color: var(--text); }
.site-main .news-featured h2, .site-main .news-row h2 { margin: 0; letter-spacing: .01em; line-height: 1.22; }
.site-main .news-featured h2 a, .site-main .news-row h2 a { color: var(--gold-hi); text-decoration: none; }
.site-main .news-featured h2 a:hover, .site-main .news-row h2 a:hover { text-decoration: underline; }

.news-featured { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin: 0 0 18px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.news-featured-media, .news-row-media { display: block; min-width: 0; overflow: hidden; }
/* The picture fills its side of the card when the text next to it is taller. */
.news-featured-media .news-featured-picture, .news-row-media .news-thumb { height: 100%; }
.news-featured-text { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; padding: 26px 30px; border-left: 1px solid var(--line); background: linear-gradient(180deg, #1a2150, #121838); }
.site-main .news-featured h2 { font-size: clamp(23px, 2.5vw, 31px); }
.news-featured .btn { align-self: flex-start; margin-top: 4px; }
.news-featured:hover .news-featured-picture img, .news-row:hover .news-thumb img { transform: scale(1.03); }

.news-rows { display: grid; gap: 12px; margin: 0 0 22px; }
.news-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, background .2s; }
.news-row:hover { border-color: rgba(233,185,90,.55); background: #141b40; }
.news-row-text { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; padding: 14px 22px; }
.site-main .news-row h2 { font-size: 21px; }
.news-row .news-teaser { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 17px; line-height: 1.5; }

.news-byline { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 0 auto 22px; font-size: 16px; color: var(--muted); text-shadow: 0 2px 10px #000; }
.news-byline > * + *::before { content: "·"; padding: 0 10px; color: var(--gold); }
.news-byline a { text-decoration: none; }
.news-byline a:hover { text-decoration: underline; }
.news-hero { margin: 0 0 26px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.news-hero-picture img { aspect-ratio: 2 / 1; }
.news-hero figcaption { padding: 6px 14px; border-top: 1px solid var(--line); font-size: 14px; text-align: right; color: var(--muted); }

.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.news-main { min-width: 0; }
.news-body { padding: 26px 34px 28px; border: 1px solid var(--line); background: var(--panel); font-size: 19px; line-height: 1.7; }
.news-body > :first-child { margin-top: 0; }
.news-body .post-heading { margin-top: 26px; font-size: 22px; }
.news-body .post-heading:first-child { margin-top: 0; }
.post-image { display: block; margin: 16px 0; }
.post-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.news-source { margin: 10px 2px 0; font-size: 15px; font-style: italic; color: var(--muted); }

.news-comments { margin-top: 34px; }
.site-main .news-comments h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.news-count { padding: 0 10px; font-size: 15px; line-height: 1.6; color: #1c1003; background: var(--gold); }
.news-empty { margin: 0 0 14px; font-style: italic; color: var(--muted); }
.comment { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; margin-bottom: 10px; padding: 14px 18px; border: 1px solid var(--line); background: var(--panel); scroll-margin-top: 90px; }
.comment .class-icon { width: 44px; height: 44px; }
.comment-main { min-width: 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 15px; }
.comment-author { font: 700 17px/1.3 Cinzel, Georgia, serif; overflow-wrap: anywhere; }
.site-main .comment-date { color: var(--muted); text-decoration: none; }
.comment .post-body { padding: 4px 0 0; }
.comment .post-edited { padding: 4px 0 0; }
.comment .post-actions { justify-content: flex-start; padding: 8px 0 0; }
.comment-form { margin-top: 16px; }

.news-side { position: sticky; top: 90px; padding: 16px 16px 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #1a2150, #121838); }
.site-main .news-side h2 { margin: 0 0 6px; font-size: 18px; }
.site-main .news-side-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(43,52,104,.7); color: var(--text); text-decoration: none; }
.news-side-item:first-of-type { border-top: 0; }
.news-side-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.news-side-title { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.news-side-item:hover .news-side-title { color: var(--gold-hi); }
.news-side time { font-size: 13px; color: var(--muted); }
.news-side .btn { display: block; margin-top: 10px; text-align: center; }

@media (max-width: 980px) {
  .news-featured { grid-template-columns: minmax(0, 1fr); }
  .news-featured-text { border-top: 1px solid var(--line); border-left: 0; }
  .news-layout { grid-template-columns: minmax(0, 1fr); }
  .news-side { position: static; }
}
@media (max-width: 640px) {
  .news-row { grid-template-columns: minmax(0, 1fr); }
  .news-row-text { padding: 12px 14px 14px; }
  .news-featured-text { padding: 16px 16px 18px; }
  .news-hero-picture img { aspect-ratio: 16 / 9; }
  .news-body { padding: 16px; font-size: 18px; line-height: 1.65; }
  .comment { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .comment .class-icon { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .news-featured-picture img, .news-thumb img { transition: none; }
  .news-featured:hover .news-featured-picture img, .news-row:hover .news-thumb img { transform: none; }
}

/* Changelog: the list (the newest entry big on top, then a grid of cards with a date block instead of
   a picture) and an entry, see app/templates/changelog/. The entry uses the article layout of the news. */
.cl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.cl-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, background .2s; }
.cl-card:hover { border-color: rgba(233,185,90,.55); background: #141b40; }
.cl-date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px 6px; border-right: 1px solid var(--line); background: linear-gradient(180deg, #1a2150, #121838); text-align: center; line-height: 1; }
.cl-day { font: 700 36px/1 Cinzel, Georgia, serif; color: var(--gold-hi); text-shadow: 0 2px 12px rgba(233,185,90,.25); }
.cl-month { font: 700 13px/1.2 Cinzel, Georgia, serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.cl-year { font-size: 13px; color: var(--muted); }
.cl-card-text { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 14px 20px 16px; }
.cl-card-text > .news-meta:last-child { margin-top: auto; }
.site-main .cl-card h2 { margin: 0; font-size: 21px; line-height: 1.22; letter-spacing: .01em; }
.site-main .cl-card h2 a { color: var(--gold-hi); text-decoration: none; }
.site-main .cl-card h2 a:hover { text-decoration: underline; }
.cl-card .news-teaser { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 1.5; }
.cl-type-devnotes { color: #0b1430; background: #9bbcff; }
.cl-type-patch { background: var(--ember); }
.cl-sections { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cl-sections li { padding: 1px 9px; border: 1px solid var(--line); background: var(--night-2); font-size: 13px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.cl-sections .cl-sections-more { color: var(--muted); }

.cl-featured { grid-template-columns: 160px minmax(0, 1fr); margin: 0 0 18px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.cl-featured .cl-date { gap: 8px; }
.cl-featured .cl-day { font-size: 64px; }
.cl-featured .cl-month { font-size: 17px; }
.cl-featured .cl-year { font-size: 15px; }
.cl-featured .cl-card-text { gap: 12px; padding: 24px 30px 26px; }
.site-main .cl-featured h2 { font-size: clamp(23px, 2.5vw, 31px); }
.cl-featured .news-teaser { -webkit-line-clamp: 4; font-size: 17px; }
.cl-featured .btn { align-self: flex-start; margin-top: 2px; }

.cl-sections-all { justify-content: center; max-width: 820px; margin: -8px auto 24px; }
.cl-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.site-main .cl-nav a { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .2s; }
.site-main .cl-nav a:hover { border-color: rgba(233,185,90,.55); }
.cl-nav a:hover .cl-nav-title { color: var(--gold-hi); }
.cl-nav .cl-nav-newer { text-align: right; }
.cl-nav-label { font: 700 12px/1.6 Cinzel, Georgia, serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cl-nav-older .cl-nav-label::before { content: "\2190  "; }
.cl-nav-newer .cl-nav-label::after { content: "  \2192"; }
.cl-nav-title { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }

.site-main .cl-side .news-side-item { grid-template-columns: 62px minmax(0, 1fr); }
.cl-date-small { gap: 3px; padding: 8px 4px; border: 1px solid var(--line); }
.cl-date-small .cl-day { font-size: 24px; }
.cl-date-small .cl-month { font-size: 11px; letter-spacing: .1em; }
.cl-date-small .cl-year { font-size: 11px; }
.cl-side-type { font-size: 13px; color: var(--muted); }

@media (max-width: 980px) {
  .cl-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cl-card { grid-template-columns: 66px minmax(0, 1fr); }
  .cl-day { font-size: 28px; }
  .cl-month, .cl-year { font-size: 12px; letter-spacing: .08em; }
  .cl-card-text { padding: 12px 14px 14px; }
  .site-main .cl-card h2 { font-size: 19px; }
  .cl-featured { grid-template-columns: minmax(0, 1fr); }
  .cl-featured .cl-date { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 10px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .cl-featured .cl-day { font-size: 34px; }
  .cl-featured .cl-month, .cl-featured .cl-year { font-size: 15px; }
  .cl-featured .cl-card-text { padding: 16px 16px 18px; }
  .cl-nav { grid-template-columns: minmax(0, 1fr); }
  .cl-nav .cl-nav-newer { text-align: left; }
  .cl-nav-none { display: none; }
}
