:root {
    --bg: #071018;
    --bg-deep: #03070b;
    --bg-panel: #0b1720;
    --bg-panel-alt: #11222b;
    --border-frost: #27434d;
    --border-frost-bright: #4c7580;
    --ice: #7fd4ff;
    --ice-soft: #b7e6ff;
    --gold: #d9b06a;
    --gold-bright: #f3cd85;
    --text: #dfe9f2;
    --text-dim: #90a5b8;
    --error: #ff9393;
    --success: #8bffb0;
    --shadow: rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg-deep);
}

body {
    margin: 0;
    position: relative;
    color: var(--text);
    font-family: "Manrope", "Segoe UI", sans-serif;
    line-height: 1.65;
    background:
        radial-gradient(ellipse 900px 500px at 50% -8%, rgba(127, 212, 255, 0.14), transparent 60%),
        radial-gradient(ellipse 700px 500px at 90% 15%, rgba(63, 100, 130, 0.12), transparent 55%),
        radial-gradient(ellipse 700px 500px at 5% 30%, rgba(63, 100, 130, 0.10), transparent 55%),
        linear-gradient(180deg, var(--bg) 0%, #030710 60%, var(--bg-deep) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

body::before {
    /* subtle grain, keeps flat gradients from looking sterile/digital */
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

h1, h2, h3 {
    font-family: "Cinzel", "Georgia", serif;
    color: var(--gold-bright);
    letter-spacing: 0.02em;
    margin: 0 0 0.5em;
}

p {
    margin-top: 0;
}

a {
    color: var(--ice);
    text-decoration: none;
}

code {
    font-family: "Consolas", "Menlo", monospace;
    background: #030609;
    color: var(--ice-soft);
    padding: 0.15em 0.5em;
    border-radius: 4px;
    border: 1px solid var(--border-frost);
}

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Snowfall */
.snowfall {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.snowfall span {
    position: absolute;
    top: -5vh;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ice-soft);
    opacity: 0.55;
    filter: drop-shadow(0 0 2px rgba(183, 230, 255, 0.6));
    animation: fall linear infinite;
}

.snowfall span:nth-child(3n) { width: 2px; height: 2px; opacity: 0.35; }
.snowfall span:nth-child(5n) { width: 4px; height: 4px; opacity: 0.4; }

@keyframes fall {
    from { transform: translateY(-5vh) translateX(0); }
    to { transform: translateY(105vh) translateX(var(--drift, 40px)); }
}

.snowfall span:nth-child(1)  { left: 3%;  animation-duration: 18s; animation-delay: -1s;  --drift: 30px; }
.snowfall span:nth-child(2)  { left: 9%;  animation-duration: 22s; animation-delay: -6s;  --drift: -20px; }
.snowfall span:nth-child(3)  { left: 14%; animation-duration: 15s; animation-delay: -3s;  --drift: 50px; }
.snowfall span:nth-child(4)  { left: 20%; animation-duration: 26s; animation-delay: -12s; --drift: -40px; }
.snowfall span:nth-child(5)  { left: 27%; animation-duration: 19s; animation-delay: -8s;  --drift: 20px; }
.snowfall span:nth-child(6)  { left: 33%; animation-duration: 24s; animation-delay: -2s;  --drift: -30px; }
.snowfall span:nth-child(7)  { left: 39%; animation-duration: 17s; animation-delay: -15s; --drift: 40px; }
.snowfall span:nth-child(8)  { left: 45%; animation-duration: 21s; animation-delay: -5s;  --drift: -15px; }
.snowfall span:nth-child(9)  { left: 51%; animation-duration: 16s; animation-delay: -9s;  --drift: 25px; }
.snowfall span:nth-child(10) { left: 57%; animation-duration: 23s; animation-delay: -18s; --drift: -35px; }
.snowfall span:nth-child(11) { left: 63%; animation-duration: 20s; animation-delay: -4s;  --drift: 15px; }
.snowfall span:nth-child(12) { left: 69%; animation-duration: 27s; animation-delay: -11s; --drift: -25px; }
.snowfall span:nth-child(13) { left: 75%; animation-duration: 18s; animation-delay: -7s;  --drift: 45px; }
.snowfall span:nth-child(14) { left: 81%; animation-duration: 25s; animation-delay: -14s; --drift: -20px; }
.snowfall span:nth-child(15) { left: 87%; animation-duration: 19s; animation-delay: -1s;  --drift: 30px; }
.snowfall span:nth-child(16) { left: 93%; animation-duration: 22s; animation-delay: -10s; --drift: -40px; }
.snowfall span:nth-child(17) { left: 6%;  animation-duration: 29s; animation-delay: -20s; --drift: 20px; }
.snowfall span:nth-child(18) { left: 17%; animation-duration: 16s; animation-delay: -13s; --drift: -30px; }
.snowfall span:nth-child(19) { left: 24%; animation-duration: 21s; animation-delay: -17s; --drift: 35px; }
.snowfall span:nth-child(20) { left: 36%; animation-duration: 28s; animation-delay: -6s;  --drift: -15px; }
.snowfall span:nth-child(21) { left: 48%; animation-duration: 17s; animation-delay: -19s; --drift: 25px; }
.snowfall span:nth-child(22) { left: 60%; animation-duration: 24s; animation-delay: -3s;  --drift: -45px; }
.snowfall span:nth-child(23) { left: 72%; animation-duration: 20s; animation-delay: -16s; --drift: 15px; }
.snowfall span:nth-child(24) { left: 90%; animation-duration: 26s; animation-delay: -9s;  --drift: -25px; }

@media (prefers-reduced-motion: reduce) {
    .snowfall { display: none; }
}

/* Header */
.site-header {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(127, 212, 255, 0.18);
    background: rgba(3, 7, 11, 0.88);
    backdrop-filter: blur(6px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.brand small {
    display: block;
    color: var(--text-dim);
    font-family: "Manrope", sans-serif;
    font-size: 0.48rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1;
    margin-top: 0.25rem;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    box-shadow: 0 0 10px rgba(217, 176, 106, 0.35);
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: var(--text-dim);
    font-weight: 600;
    transition: color 0.15s ease;
}

nav a:hover {
    color: var(--ice-soft);
}

nav a.cta {
    color: #08131f;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    padding: 0.55rem 1.15rem;
    border-radius: 3px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    box-shadow: 0 2px 10px rgba(217, 176, 106, 0.25);
}

nav a.cta:hover {
    filter: brightness(1.08);
}

/* Hero */
.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(127, 212, 255, 0.2);
    background-image: url("../img/hero-arthas.jpg");
    background-size: cover;
    background-position: 78% 30%;
}

.hero-fog {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 11, 0.97) 0%, rgba(3, 7, 11, 0.82) 30%, rgba(3, 7, 11, 0.36) 63%, rgba(3, 7, 11, 0.08) 82%),
        linear-gradient(180deg, rgba(3, 7, 11, 0.22) 0%, transparent 30%, transparent 68%, rgba(3, 7, 11, 0.9) 100%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    max-width: 640px;
    text-align: left;
    padding: 3rem 1.5rem;
    padding-left: clamp(1.5rem, 8vw, 8rem);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ice-soft);
    margin: 0 0 0.6rem;
}

.eyebrow span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 0.55rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(217, 176, 106, 0.7);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-shadow: 0 0 28px rgba(127, 212, 255, 0.35), 0 3px 16px rgba(0, 0, 0, 0.7);
}

.tagline {
    font-size: 1.1rem;
    color: #c0d1d9;
    max-width: 32em;
    margin: 0 0 2rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.class-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2.5rem;
}

.class-strip img {
    width: 42px;
    height: 42px;
    border-radius: 3px;
    border: 1px solid var(--border-frost);
    opacity: 0.8;
    transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.class-strip img:hover {
    transform: translateY(-3px);
    opacity: 1;
    border-color: var(--gold);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    padding: 0.8rem 1.9rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: filter 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    color: #08131f;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    box-shadow: 0 4px 18px rgba(217, 176, 106, 0.25);
}

.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--ice-soft);
    background: rgba(127, 212, 255, 0.04);
    border-color: var(--border-frost);
}

.btn-secondary:hover {
    border-color: var(--ice);
}

/* Steps */
.steps {
    padding: 5.5rem 1.5rem 6rem;
}

.steps h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.45rem;
}

.section-heading {
    max-width: 540px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-heading .eyebrow {
    margin-bottom: 0.35rem;
    color: var(--gold);
}

.section-heading p:last-child {
    color: var(--text-dim);
    margin-bottom: 0;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.step-card {
    position: relative;
    background: linear-gradient(180deg, var(--bg-panel-alt), var(--bg-panel));
    border: 1px solid var(--border-frost);
    border-radius: 4px;
    padding: 1.6rem;
    box-shadow: 0 10px 30px var(--shadow);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.step-card:hover {
    border-color: var(--border-frost-bright);
    transform: translateY(-2px);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    background: rgba(127, 212, 255, 0.12);
    border: 1px solid var(--ice);
    color: var(--ice-soft);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-dim);
}

.step-card .hint {
    font-size: 0.85rem;
    margin-top: 0.6rem;
    margin-bottom: 0;
}

.realmlist-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.75rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border-frost);
    border-radius: 6px;
    background: #030609;
}

.realmlist-box code {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    padding: 0;
    font-size: 0.85rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

.copy-btn {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-family: inherit;
    color: var(--ice-soft);
    background: rgba(127, 212, 255, 0.06);
    border: 1px solid var(--border-frost);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
    border-color: var(--ice);
    color: var(--ice);
}

/* Field guide */
.guide-header {
    max-width: 680px;
    padding-top: 5rem;
    padding-bottom: 3rem;
}

.guide-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

.guide-header .subtitle {
    max-width: 54em;
    margin-bottom: 0;
}

.class-role {
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

/* Interactive class/race picker (used by the character builder below) */
.picker-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: sticky;
    top: 1.5rem;
}

.picker-group {
    margin-bottom: 0.5rem;
}

.picker-group-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    margin: 0.5rem 0 0.4rem;
}

.picker-group-label.faction-alliance {
    color: var(--ice-soft);
}

.picker-group-label.faction-horde {
    color: #d98a70;
}

.picker-group-items {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.picker-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: none;
    color: var(--text-dim);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.picker-item img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--border-frost);
}

.picker-item:hover {
    color: var(--text);
    border-color: var(--border-frost);
}

.picker-item.is-active {
    color: var(--gold-bright);
    background: rgba(217, 176, 106, 0.08);
    border-color: var(--gold);
}

/* Guide hub (/guide landing page) */
.guide-hub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-bottom: 5rem;
}

.hub-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 320px;
    border: 1px solid var(--border-frost);
    border-radius: 8px;
    box-shadow: 0 16px 40px var(--shadow);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.hub-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.hub-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hub-card-fog {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 7, 11, 0.95) 0%, rgba(3, 7, 11, 0.55) 50%, rgba(3, 7, 11, 0.15) 100%);
}

.hub-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem;
}

.hub-card-body h2 {
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
}

.hub-card-body p:last-child {
    color: var(--text-dim);
    margin-bottom: 0;
}

/* Class/race pickers with a lore detail panel */
.picker {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding-bottom: 5rem;
}

.picker-stage {
    min-height: 520px;
}

.lore-panel {
    position: relative;
    display: none;
    overflow: hidden;
    min-height: 520px;
    border: 1px solid var(--border-frost);
    border-radius: 8px;
    box-shadow: 0 16px 40px var(--shadow);
    animation: panel-in 0.2s ease;
}

.lore-panel.is-active {
    display: block;
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.lore-panel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.lore-panel-fog {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 11, 0.96) 0%, rgba(3, 7, 11, 0.85) 42%, rgba(3, 7, 11, 0.35) 75%, rgba(3, 7, 11, 0.05) 100%),
        linear-gradient(0deg, rgba(3, 7, 11, 0.9) 0%, transparent 35%);
}

.lore-portrait {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    max-width: 55%;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6));
}

/* Not currently used - races show the full portrait art now, but this
   sizing is kept in case races.html goes back to showing race.crest. */
.lore-portrait-crest {
    height: auto;
    width: 34%;
    max-width: 220px;
    top: 50%;
    right: 8%;
    bottom: auto;
    transform: translateY(-50%);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}

.lore-content {
    position: relative;
    z-index: 1;
    max-width: 62%;
    padding: 2.5rem;
}

.lore-epithet {
    font-family: "Cinzel", serif;
    font-style: italic;
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.lore-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.lore-content .class-role {
    margin-bottom: 1rem;
}

.lore-text {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.lore-vibe {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--border-frost);
    color: var(--ice-soft);
    font-style: italic;
    font-size: 0.92rem;
    margin-bottom: 0;
}

.lore-compat {
    margin-top: 1rem;
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-bottom: 0;
}

.guide-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 5rem;
    padding: 1.5rem 1.75rem;
    border-top: 1px solid var(--border-frost);
    border-bottom: 1px solid var(--border-frost);
}

.guide-cta p {
    color: var(--text-dim);
    margin: 0;
}

.news-header {
    padding-bottom: 2.5rem;
}

.news-list {
    max-width: 780px;
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.news-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 220px;
    border: 1px solid var(--border-frost);
    border-radius: 8px;
    box-shadow: 0 12px 30px var(--shadow);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.news-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.news-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-card-fog {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 11, 0.96) 0%, rgba(3, 7, 11, 0.82) 45%, rgba(3, 7, 11, 0.35) 80%, rgba(3, 7, 11, 0.1) 100%);
}

.news-card-body {
    position: relative;
    max-width: 640px;
    padding: 1.75rem;
}

.news-meta {
    color: var(--text-dim);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.news-meta span {
    color: var(--gold);
}

.news-meta span::before {
    content: "•";
    margin-right: 0.75rem;
    color: var(--border-frost-bright);
}

.news-card-body h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.news-card-body p {
    color: var(--text-dim);
    margin-bottom: 0;
}

/* Article page */
.article {
    max-width: 760px;
    padding-top: 2.5rem;
    padding-bottom: 5rem;
}

.article-back {
    display: inline-block;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.article-back:hover {
    color: var(--ice-soft);
}

.article-banner {
    position: relative;
    overflow: hidden;
    height: 320px;
    border: 1px solid var(--border-frost);
    border-radius: 8px;
    box-shadow: 0 16px 40px var(--shadow);
    margin-bottom: 1.5rem;
}

.article-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article-banner-fog {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 7, 11, 0.85) 0%, rgba(3, 7, 11, 0.15) 55%, rgba(3, 7, 11, 0.4) 100%);
}

.article-meta {
    margin-bottom: 0.5rem;
}

.article h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.75rem;
}

.article-body p {
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.75;
}

.empty-state {
    color: var(--text-dim);
    padding: 2rem 0;
    border-top: 1px solid var(--border-frost);
}

/* Forms */
.form-section {
    padding: 4rem 1.5rem;
    max-width: 480px;
}

.subtitle {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: linear-gradient(180deg, var(--bg-panel-alt), var(--bg-panel));
    border: 1px solid var(--border-frost);
    border-radius: 12px;
    padding: 2.25rem;
    box-shadow: 0 16px 40px var(--shadow);
}

.account-form label {
    font-weight: 600;
    color: var(--ice-soft);
    margin-top: 0.85rem;
}

.account-form input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--border-frost);
    background: #030609;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-form input:focus {
    outline: none;
    border-color: var(--ice);
    box-shadow: 0 0 0 3px rgba(127, 212, 255, 0.12);
}

.account-form .btn {
    margin-top: 1.6rem;
}

.field-error {
    color: var(--error);
    font-size: 0.9rem;
    margin: 0.15rem 0 0;
}

/* Honeypot: off-screen rather than display:none, since some bots skip
   fields hidden that obviously */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* Flash messages */
.flash-wrap {
    padding-top: 1.5rem;
}

.flash {
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.flash-error {
    background: rgba(255, 147, 147, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.flash-success {
    background: rgba(139, 255, 176, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

/* Success page */
.success {
    text-align: center;
    max-width: 560px;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    box-shadow: 0 0 24px rgba(127, 212, 255, 0.3);
    margin-bottom: 1rem;
}

.reminder-card {
    background: linear-gradient(180deg, var(--bg-panel-alt), var(--bg-panel));
    border: 1px solid var(--border-frost);
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1.5rem 0 2rem;
    color: var(--text-dim);
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-frost);
    padding: 2rem 0;
    margin-top: 2rem;
}

.site-footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
}

/* Admin */
.admin-whoami {
    color: var(--text-dim);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.inline-form {
    display: inline;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-dim);
    font-weight: 600;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.link-button:hover {
    color: var(--ice-soft);
}

.admin-section {
    padding: 3rem 1.5rem 4rem;
}

.admin-panel {
    background: linear-gradient(180deg, var(--bg-panel-alt), var(--bg-panel));
    border: 1px solid var(--border-frost);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.admin-panel h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.admin-panel .account-form {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    max-width: 420px;
}

.server-status {
    white-space: pre-wrap;
    font-family: "Consolas", "Menlo", monospace;
    color: var(--ice-soft);
    background: #030609;
    border: 1px solid var(--border-frost);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
}

.search-form {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    max-width: 420px;
}

.search-form input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-frost);
    background: #030609;
    color: var(--text);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-frost);
    border-radius: 12px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-frost);
    font-size: 0.9rem;
    white-space: nowrap;
}

.admin-table th {
    color: var(--ice-soft);
    font-family: "Cinzel", serif;
    font-weight: 600;
    background: var(--bg-panel-alt);
}

.admin-table tbody tr:hover {
    background: rgba(127, 212, 255, 0.04);
}

.manage-account summary {
    cursor: pointer;
    color: var(--ice);
    font-weight: 600;
}

.manage-account[open] {
    padding-bottom: 0.5rem;
}

.manage-account .inline-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.manage-account input,
.manage-account select {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border-frost);
    background: #030609;
    color: var(--text);
    font-size: 0.85rem;
}

.btn-small {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 800px) {
    .hero {
        min-height: 520px;
        background-position: 88% 22%;
    }

    .hero-fog {
        background:
            linear-gradient(180deg, rgba(2, 5, 10, 0.5) 0%, rgba(2, 5, 10, 0.55) 55%, rgba(2, 5, 10, 0.92) 100%),
            linear-gradient(90deg, rgba(2, 5, 10, 0.6) 0%, rgba(2, 5, 10, 0.2) 60%, rgba(2, 5, 10, 0) 90%);
    }

    .hero-copy {
        max-width: none;
        text-align: center;
        margin: 0 auto;
        padding: 2rem 1.5rem;
    }

    .tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .class-strip {
        justify-content: center;
    }

    .guide-hub {
        grid-template-columns: 1fr;
    }

    .picker {
        grid-template-columns: 1fr;
    }

    .picker-list {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .picker-group {
        width: 100%;
    }

    .picker-group-items {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .lore-panel {
        min-height: 0;
    }

    .lore-panel-fog {
        background: linear-gradient(0deg, rgba(3, 7, 11, 0.97) 0%, rgba(3, 7, 11, 0.9) 60%, rgba(3, 7, 11, 0.55) 100%);
    }

    .lore-portrait {
        display: none;
    }

    .lore-content {
        max-width: none;
        padding: 1.5rem;
    }

    .guide-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .news-card {
        min-height: 180px;
    }

    .article-banner {
        height: 200px;
    }
}
