:root {
  --ink: #080b0d;
  --ink-soft: #10171a;
  --panel: #11181b;
  --paper: #eee7da;
  --muted: #a7aaa4;
  --gold: #c89b49;
  --gold-bright: #edc878;
  --line: rgba(216, 187, 126, 0.2);
  --success: #67c58d;
  --danger: #d97869;
  --warning: #deb65f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.site-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(4,7,9,.82), rgba(4,7,9,.32));
}
.header-row { min-height: 88px; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 180px; height: auto; filter: drop-shadow(0 5px 14px rgba(0,0,0,.55)); }
.nav-links { justify-self: center; display: flex; align-items: center; gap: 18px; }
.nav-links a, .text-button {
  position: relative; padding: 34px 0 30px; border: 0; color: #d4d1ca; background: none;
  text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; cursor: pointer;
}
.nav-links a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 22px; height: 1px; background: var(--gold-bright); transition: .2s ease; }
.nav-links a:hover::after, .nav-links a.is-active::after { left: 0; right: 0; }
.account-actions { display: flex; align-items: center; gap: 18px; }
.account-actions form { margin: 0; }
.header-login {
  padding: 11px 18px; border: 1px solid rgba(221,183,104,.55); color: var(--gold-bright);
  text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700;
}

.hero {
  position: relative; min-height: 810px; display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(4,7,9,.44) 0%, rgba(4,7,9,.08) 48%, var(--ink) 100%),
              radial-gradient(circle at 50% 47%, rgba(3,6,8,.08), rgba(3,6,8,.48) 66%),
              var(--site-images-l2hydra-home-convergence-v1, url("images/l2hydra-home-convergence-v1.webp")) center/cover no-repeat;
}
.hero-inner { position: relative; z-index: 1; padding-top: 90px; text-align: center; }
.hero-copy { width: min(680px, 72%); margin-inline: auto; animation: rise-in .8s ease both; }
.eyebrow, .section-label { display: block; color: var(--gold); text-transform: uppercase; letter-spacing: .24em; font-size: 10px; font-weight: 700; }
.hero-kicker { display: flex; justify-content: center; align-items: center; gap: 14px; }
.hero-kicker::before { content: ""; width: 48px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-family: "Cinzel", serif; }
.hero h1 { margin: 20px 0; font-size: clamp(48px, 6.2vw, 86px); line-height: .98; letter-spacing: -.035em; text-shadow: 0 8px 34px rgba(0,0,0,.65); }
.hero h1 em { color: var(--gold-bright); font-size: .58em; font-style: normal; letter-spacing: .01em; }
.hero-copy > p { max-width: 570px; margin-inline: auto; color: #c0c2be; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.primary-button, .secondary-button, .disabled-button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 24px;
  border: 1px solid var(--gold); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 800;
}
.primary-button { color: #1a1208; background: linear-gradient(135deg, var(--gold-bright), #a87022); box-shadow: 0 12px 35px rgba(190,134,47,.22); }
.secondary-button { color: var(--paper); background: rgba(5,8,10,.4); border-color: rgba(238,231,218,.42); }
.primary-button, .secondary-button, .header-login { transition: transform .2s ease, filter .2s ease, background .2s ease; }
.primary-button:hover, .secondary-button:hover, .header-login:hover { transform: translateY(-2px); filter: brightness(1.1); }
.disabled-button { color: #716f69; border-color: #3c3d3b; cursor: not-allowed; }

.hero-status { width: min(700px, 100%); margin: 34px auto 0; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: rgba(5,10,12,.82); text-align: left; backdrop-filter: blur(12px); }
.hero-status .section-label { margin-bottom: 10px; }
.world-status { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.world-name { display: block; font: 600 18px "Cinzel", serif; }
.world-rates { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.status-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.status-pill { padding: 7px 10px; border: 1px solid currentColor; text-transform: uppercase; letter-spacing: .1em; font-size: 9px; font-weight: 800; }
.status-online { color: var(--success); background: rgba(103,197,141,.08); }
.status-offline { color: var(--danger); background: rgba(217,120,105,.08); }
.status-unknown { color: var(--warning); background: rgba(222,182,95,.08); }
.scroll-cue { position: absolute; right: 40px; bottom: 52px; z-index: 2; writing-mode: vertical-rl; color: #aaa9a4; text-transform: uppercase; letter-spacing: .18em; font-size: 9px; }

.feature-section, .content-section { padding: 100px 0; background: linear-gradient(180deg, var(--ink), #0d1214); }
.section-heading { max-width: 660px; margin-bottom: 44px; }
.section-heading h2, .page-hero h1 { margin: 12px 0; font-size: clamp(36px, 5vw, 58px); }
.section-heading p, .page-hero p, .content-panel p, .download-card p, .news-card p, .auth-intro p { color: var(--muted); line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-card { position: relative; min-height: 300px; padding: 36px; overflow: hidden; background: #0d1316; }
.feature-card::after { content: ""; position: absolute; right: -70px; bottom: -100px; width: 210px; height: 210px; border: 1px solid rgba(200,155,73,.15); transform: rotate(45deg); transition: .35s ease; }
.feature-card:hover::after { right: -40px; bottom: -70px; border-color: rgba(200,155,73,.45); }
.feature-card-accent { background: linear-gradient(145deg, #19170f, #11171a); }
.feature-icon { position: absolute; top: 22px; right: 24px; width: 94px; height: 94px; object-fit: contain; opacity: .72; filter: saturate(.75); transition: .3s ease; }
.feature-card:hover .feature-icon { opacity: 1; transform: translateY(-3px); filter: saturate(1); }
.feature-number { color: #6a6e6c; font: 500 12px "Cinzel", serif; }
.feature-card h3 { margin: 78px 0 12px; font-size: 23px; }
.feature-card p { min-height: 52px; color: var(--muted); line-height: 1.6; }
.card-link { display: inline-block; margin-top: 24px; color: var(--gold-bright); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; }
.announcement-section { padding: 100px 0; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 0%, rgba(178,39,39,.12), transparent 28%), linear-gradient(180deg, #080b0d, #0d1214); }
.announcement-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 42px; }
.announcement-heading h2 { margin: 12px 0; font-size: clamp(36px, 5vw, 58px); }
.announcement-heading p { margin-bottom: 0; color: var(--muted); }
.announcement-heading-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.announcement-heading-actions .card-link { margin-top: 0; }
.announcement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.announcement-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, #151d20, #0a0f11); box-shadow: 0 24px 55px rgba(0,0,0,.24); }
.announcement-card > img, .announcement-seal { width: 100%; height: 180px; object-fit: cover; }
.announcement-seal { display: grid; place-items: center; color: rgba(237,200,120,.25); background: radial-gradient(circle, rgba(200,155,73,.16), transparent 34%), #10171a; font: 700 58px "Cinzel", serif; }
.announcement-copy { padding: 28px; }
.announcement-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--gold); text-transform: uppercase; letter-spacing: .13em; font-size: 9px; }
.announcement-meta time { color: #747b77; }
.announcement-copy h3 { margin: 16px 0 10px; font-size: 23px; }
.announcement-copy p { min-height: 62px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.announcement-empty { grid-column: 1 / -1; min-height: 180px; display: flex; justify-content: center; align-items: center; gap: 28px; padding: 36px; border: 1px dashed var(--line); background: rgba(13,19,22,.55); text-align: left; }
.announcement-empty > span { color: rgba(237,200,120,.3); font: 700 64px "Cinzel", serif; }
.announcement-empty h3 { margin: 0 0 8px; font-size: 24px; }
.announcement-empty p { margin: 0; color: var(--muted); }
.chronicle-banner { padding: 62px 0; border-block: 1px solid var(--line); background: radial-gradient(circle at 28% 50%, rgba(180,125,37,.15), transparent 30%), #0b1012; }
.chronicle-inner { display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 50px; }
.chronicle-inner h2 { margin: 8px 0 0; font-size: 42px; }
.chronicle-inner p { color: var(--muted); }
.community-hero { min-height: 700px; display: flex; align-items: center; padding-top: 90px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 72% 48%, rgba(200,155,73,.17), transparent 20%), radial-gradient(circle at 15% 45%, rgba(151,35,31,.2), transparent 32%), linear-gradient(120deg, #080c0e, #151012 58%, #080b0d); }
.community-hero-grid { display: grid; grid-template-columns: 1fr 320px; gap: 100px; align-items: center; }
.community-copy h1 { margin: 16px 0 24px; font-size: clamp(52px, 7vw, 90px); line-height: .9; text-transform: uppercase; }
.community-copy h1 em { color: var(--gold-bright); font-size: .48em; font-style: normal; letter-spacing: .03em; }
.community-copy > p { max-width: 650px; color: #b9bcb8; line-height: 1.8; }
.community-copy .hero-actions { justify-content: flex-start; }
.community-emblem { position: relative; width: 280px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(237,200,120,.38); transform: rotate(45deg); box-shadow: inset 0 0 60px rgba(200,155,73,.08), 0 30px 90px rgba(0,0,0,.45); }
.community-emblem::before { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(237,200,120,.16); }
.community-emblem span { color: var(--gold-bright); font: 700 112px "Cinzel", serif; transform: rotate(-45deg); text-shadow: 0 0 35px rgba(237,200,120,.28); }
.community-paths { padding: 110px 0 130px; background: radial-gradient(circle at 50% 0%, rgba(200,155,73,.08), transparent 26%), #080b0d; }
.community-path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.community-path-grid article { min-height: 270px; padding: 38px; background: linear-gradient(145deg, #141b1e, #0a0f11); }
.community-path-grid article > span { color: #686d69; font: 600 12px "Cinzel", serif; }
.community-path-grid h3 { margin: 70px 0 14px; font-size: 25px; }
.community-path-grid p { color: var(--muted); line-height: 1.7; }

.page-hero { min-height: 430px; display: flex; align-items: end; padding: 150px 0 70px; background: linear-gradient(90deg, rgba(5,9,12,.98), rgba(5,9,12,.45)), var(--site-images-l2hydra-account, url("images/l2hydra-account.webp")) center/cover no-repeat; border-bottom: 1px solid var(--line); }
.page-hero-downloads { background-image: linear-gradient(90deg, rgba(5,9,12,.98), rgba(5,9,12,.32)), var(--site-images-l2hydra-downloads, url("images/l2hydra-downloads.webp")); background-position: center 54%; }
.page-hero-news { background-image: linear-gradient(90deg, rgba(5,9,12,.98), rgba(5,9,12,.34)), var(--site-images-l2hydra-news, url("images/l2hydra-news.webp")); background-position: center 55%; }
.page-hero-inner { animation: rise-in .6s ease both; }
.page-hero-inner p { max-width: 650px; }
.page-hero-compact { min-height: 350px; }
.split-layout, .dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.content-panel, .download-card, .news-card, .auth-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(20,28,31,.98), rgba(11,16,18,.98)); box-shadow: 0 28px 65px rgba(0,0,0,.22); }
.content-panel { padding: 36px; }
.content-panel .world-status { margin-top: 26px; align-items: flex-start; flex-direction: column; }
.prose-panel h2, .action-panel h2, .download-card h2, .news-card h2 { margin: 12px 0; font-size: 27px; }
.spec-list { margin: 28px 0 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 700; text-align: right; }
.action-panel .primary-button { margin-top: 20px; }
.admin-panel { grid-column: 1 / -1; }
.admin-panel h2 { margin: 12px 0; font-size: 27px; }
.inline-admin-form { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 16px; align-items: end; margin-top: 28px; }
.inline-admin-form label { display: grid; gap: 8px; color: #c8c7c1; font-size: 12px; font-weight: 700; }
.inline-admin-form input { width: 100%; padding: 14px 15px; border: 1px solid rgba(216,187,126,.22); outline: 0; color: var(--paper); background: rgba(5,9,11,.85); }
.inline-admin-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200,155,73,.08); }
.reset-result { margin-top: 26px; padding: 24px; border: 1px solid rgba(103,197,141,.42); background: rgba(103,197,141,.06); }
.reset-result code { display: block; margin: 14px 0; color: var(--gold-bright); font: 700 clamp(22px, 4vw, 34px) "Cinzel", serif; letter-spacing: .16em; overflow-wrap: anywhere; }
.reset-result p { margin: 8px 0 0; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.download-card { padding: 34px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.download-card > :last-child { grid-column: 2; justify-self: start; }
.download-icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--gold); color: var(--gold-bright); font: 24px "Cinzel", serif; }
.notice-panel { margin-top: 24px; padding: 24px 28px; display: flex; justify-content: space-between; gap: 28px; border-left: 3px solid var(--gold); background: rgba(200,155,73,.07); }
.notice-panel p { margin: 0; color: var(--muted); }
.notice-panel code { color: var(--gold-bright); }
.news-list { display: grid; gap: 18px; }
.news-card { display: grid; grid-template-columns: 150px 1fr; gap: 36px; padding: 34px; }
.news-card time { color: var(--gold); font: 600 13px "Cinzel", serif; letter-spacing: .1em; }

.server-hero { min-height: 680px; display: flex; align-items: center; padding-top: 90px; background: linear-gradient(90deg, rgba(4,8,10,.97), rgba(4,8,10,.34)), linear-gradient(180deg, transparent 55%, #080b0d), var(--site-images-l2hydra-server-v2, url("images/l2hydra-server-v2.webp")) center/cover no-repeat; }
.server-hero-grid { display: grid; grid-template-columns: 1fr 350px; gap: 90px; align-items: center; }
.server-hero h1 { margin: 16px 0 24px; font-size: clamp(54px, 7vw, 96px); line-height: .92; letter-spacing: -.045em; }
.server-hero h1 em { color: var(--gold-bright); font-size: .62em; font-style: normal; }
.server-hero p { max-width: 620px; color: #b8bcb8; line-height: 1.8; }
.server-live-card { position: relative; padding: 38px; border: 1px solid var(--line); background: rgba(7,12,14,.78); box-shadow: 0 30px 80px rgba(0,0,0,.45); backdrop-filter: blur(14px); }
.server-live-card > strong { display: block; margin: 10px 0 32px; font: 600 28px "Cinzel", serif; }
.live-orb { position: absolute; top: 38px; right: 38px; width: 13px; height: 13px; border-radius: 50%; }
.live-orb-online { background: var(--success); box-shadow: 0 0 0 7px rgba(103,197,141,.1), 0 0 25px var(--success); }
.live-orb-offline { background: var(--danger); box-shadow: 0 0 0 7px rgba(217,120,105,.1); }
.online-counter { display: flex; align-items: center; gap: 18px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.online-counter b { color: var(--gold-bright); font: 700 64px/1 "Cinzel", serif; }
.online-counter span { color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: 9px; line-height: 1.6; }
.server-dashboard { padding: 110px 0 130px; background: radial-gradient(circle at 50% 0%, rgba(200,155,73,.1), transparent 30%), #080b0d; }
.server-heading { text-align: center; margin-inline: auto; }
.rates-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; margin-bottom: 70px; border: 1px solid var(--line); background: var(--line); }
.rate-tile { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 14px; background: linear-gradient(145deg, #131a1d, #0b1012); }
.rate-tile span { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 9px; }
.rate-tile strong { color: var(--gold-bright); font: 700 36px "Cinzel", serif; }
.rankings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ranking-panel { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(19,26,29,.98), rgba(8,12,14,.98)); }
.ranking-panel > header { display: flex; justify-content: space-between; align-items: center; padding: 30px 34px; border-bottom: 1px solid var(--line); }
.ranking-panel h2 { margin: 7px 0 0; font-size: 30px; }
.ranking-sigil { color: rgba(237,200,120,.42); font: 38px "Cinzel", serif; }
.ranking-list { margin: 0; padding: 0; list-style: none; }
.ranking-list li { min-height: 62px; display: grid; grid-template-columns: 44px 1fr auto 82px; gap: 12px; align-items: center; padding: 0 28px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ranking-list li:first-child { background: linear-gradient(90deg, rgba(200,155,73,.12), transparent); }
.ranking-list li:last-child { border-bottom: 0; }
.rank-position { color: #626966; font: 600 11px "Cinzel", serif; }
.ranking-list strong { font: 600 14px "Cinzel", serif; }
.ranking-list li > span:nth-of-type(2) { color: var(--muted); font-size: 10px; }
.ranking-list b { color: var(--gold-bright); font-size: 11px; text-align: right; }
.ranking-list .ranking-empty { display: block; padding: 24px 28px; color: var(--muted); }

.news-hero-row { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.news-section { background: radial-gradient(circle at 90% 5%, rgba(200,155,73,.08), transparent 28%), #080b0d; }
.editorial-list { display: grid; gap: 34px; }
.editorial-card { display: grid; grid-template-columns: minmax(300px, 42%) 1fr; min-height: 380px; overflow: hidden; border: 1px solid var(--line); background: #0d1316; box-shadow: 0 28px 70px rgba(0,0,0,.25); }
.editorial-card > img, .editorial-placeholder { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.editorial-placeholder { display: grid; place-items: center; background: radial-gradient(circle, rgba(200,155,73,.18), transparent 30%), linear-gradient(145deg, #182024, #090d0f); }
.editorial-placeholder span { color: rgba(237,200,120,.32); font: 700 72px "Cinzel", serif; }
.editorial-copy { padding: 42px; }
.editorial-meta { display: flex; align-items: center; gap: 16px; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 9px; }
.editorial-meta time { color: #747b77; }
.editorial-meta b { padding: 5px 8px; border: 1px solid var(--warning); color: var(--warning); }
.editorial-copy h2 { margin: 18px 0 12px; font-size: clamp(27px, 3vw, 40px); }
.editorial-summary { color: #c8c7c0; font-size: 15px; line-height: 1.7; }
.editorial-body { margin-top: 22px; color: var(--muted); line-height: 1.8; white-space: pre-line; }
.editorial-card.is-draft { opacity: .72; border-style: dashed; }
.admin-actions, .editor-actions { display: flex; gap: 12px; align-items: center; margin-top: 28px; }
.admin-actions form { margin: 0; }
.danger-button, .text-action { min-height: 48px; padding: 0 20px; border: 1px solid rgba(217,120,105,.55); color: var(--danger); background: transparent; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; cursor: pointer; }
.empty-state { grid-column: 1 / -1; padding: 80px 34px; border: 1px dashed var(--line); text-align: center; background: rgba(13,19,22,.55); }
.empty-state h2 { margin: 14px 0; font-size: 34px; }
.empty-state p { color: var(--muted); }
.editor-shell { min-height: 100vh; padding: 160px max(24px, calc((100vw - 1050px)/2)) 100px; background: radial-gradient(circle at 15% 15%, rgba(200,155,73,.13), transparent 25%), #080b0d; }
.editor-intro { margin-bottom: 36px; }
.editor-intro h1 { margin: 12px 0; font-size: clamp(42px, 6vw, 68px); }
.editor-intro p { color: var(--muted); }
.editor-card, .market-form { display: grid; gap: 20px; padding: 42px; border: 1px solid var(--line); background: linear-gradient(145deg, #141c1f, #0b1012); }
.editor-card label, .market-form label { display: grid; gap: 9px; color: #c8c7c1; font-size: 12px; font-weight: 700; }
.editor-card label > span { color: #777e7a; font-size: 10px; font-weight: 500; }
.editor-card input, .editor-card textarea, .market-form input, .market-form textarea, .market-form select { width: 100%; padding: 14px 15px; border: 1px solid rgba(216,187,126,.22); outline: 0; resize: vertical; color: var(--paper); background: rgba(5,9,11,.86); }
.editor-card input:focus, .editor-card textarea:focus, .market-form input:focus, .market-form textarea:focus, .market-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200,155,73,.08); }
.check-label { display: flex !important; grid-template-columns: auto 1fr; flex-direction: row; align-items: center; gap: 10px !important; }
.check-label input { width: auto; accent-color: var(--gold); }
.current-news-image { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; }
.current-news-image img { width: 160px; height: 90px; object-fit: cover; }

.market-hero { min-height: 650px; display: flex; align-items: center; padding-top: 90px; background: linear-gradient(90deg, rgba(5,8,10,.97), rgba(5,8,10,.25)), linear-gradient(180deg, transparent 45%, #080b0d), var(--site-images-l2hydra-market-v2, url("images/l2hydra-market-v2.webp")) center/cover no-repeat; }
.market-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: center; }
.market-hero h1 { margin: 15px 0 22px; font-size: clamp(54px, 7vw, 94px); line-height: .86; text-transform: uppercase; }
.market-hero h1 em { color: var(--gold-bright); font-size: .48em; font-style: normal; letter-spacing: .04em; }
.market-hero p { max-width: 580px; color: #bdc0bc; line-height: 1.8; }
.hydra-coin-display { min-width: 300px; display: flex; align-items: center; gap: 24px; padding: 28px; border: 1px solid rgba(237,200,120,.35); background: rgba(8,12,14,.82); backdrop-filter: blur(14px); }
.hydra-coin { width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid #e7c36f; border-radius: 50%; color: #251604; background: radial-gradient(circle at 35% 30%, #fff0a8, #c68a27 60%, #6e3f0c); box-shadow: inset 0 0 0 5px rgba(83,48,8,.3), 0 0 28px rgba(200,155,73,.25); font: 800 27px "Cinzel", serif; }
.hydra-coin-display small, .hydra-coin-display b { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 9px; }
.hydra-coin-display strong { display: block; margin: 5px 0; color: var(--gold-bright); font: 700 38px/1 "Cinzel", serif; }
.hydra-coin-display .coin-name { font-size: 25px; }
.market-flow { border-block: 1px solid var(--line); background: #0b1012; }
.market-flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.market-flow-grid > div { padding: 34px; border-right: 1px solid var(--line); }
.market-flow-grid > div:last-child { border-right: 0; }
.market-flow-grid span { color: #59605d; font: 600 11px "Cinzel", serif; }
.market-flow-grid strong { display: block; margin: 12px 0 8px; font: 600 18px "Cinzel", serif; }
.market-flow-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.market-sell-section { padding: 100px 0; background: radial-gradient(circle at 8% 40%, rgba(200,155,73,.1), transparent 25%), #080b0d; }
.market-sell-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: start; }
.market-sell-grid h2, .market-list-heading h2, .wallet-history h2 { margin: 12px 0; font-size: clamp(34px, 4vw, 52px); }
.market-sell-grid > div > p { color: var(--muted); line-height: 1.8; }
.market-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.market-list-section { padding: 110px 0; background: linear-gradient(180deg, #0d1316, #080b0d); }
.market-list-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.listing-card { position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 28px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, #151d20, #0a0f11); }
.listing-card::after { content: ""; position: absolute; right: -70px; top: 80px; width: 170px; height: 170px; border: 1px solid rgba(200,155,73,.08); transform: rotate(45deg); }
.listing-reserved { border-color: rgba(222,182,95,.45); }
.listing-sold, .listing-cancelled { opacity: .65; }
.listing-top { position: relative; z-index: 1; display: flex; justify-content: space-between; color: #626966; text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.listing-status { color: var(--gold); }
.item-rune { width: 58px; height: 58px; display: grid; place-items: center; margin: 32px 0 20px; border: 1px solid rgba(237,200,120,.45); color: var(--gold-bright); background: radial-gradient(circle, rgba(200,155,73,.15), transparent 65%); font: 600 25px "Cinzel", serif; }
.item-icon-frame { position: relative; z-index: 1; width: 76px; height: 76px; display: grid; place-items: center; margin: 24px 0 10px; border: 1px solid rgba(237,200,120,.55); background: radial-gradient(circle, rgba(200,155,73,.18), rgba(5,8,9,.92) 68%); box-shadow: inset 0 0 0 4px rgba(200,155,73,.06), 0 12px 30px rgba(0,0,0,.35); }
.item-icon-frame::before, .item-icon-frame::after { content: ""; position: absolute; width: 7px; height: 7px; border-color: var(--gold-bright); }
.item-icon-frame::before { left: 4px; top: 4px; border-left: 1px solid; border-top: 1px solid; }
.item-icon-frame::after { right: 4px; bottom: 4px; border-right: 1px solid; border-bottom: 1px solid; }
.item-icon { width: 64px; height: 64px; image-rendering: auto; object-fit: contain; }
.listing-card h3 { position: relative; z-index: 1; margin: 0 0 10px; font-size: 21px; }
.listing-card h3 em { color: var(--gold-bright); font-style: normal; }
.listing-card > p { position: relative; z-index: 1; min-height: 48px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.listing-card dl { margin: 10px 0 20px; }
.listing-card dl div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 11px; }
.listing-card dt { color: #767d79; }
.listing-card dd { margin: 0; }
.listing-price { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.hydra-coin-small { width: 34px; height: 34px; font-size: 14px; box-shadow: inset 0 0 0 3px rgba(83,48,8,.3); }
.listing-price strong { color: var(--gold-bright); font: 700 24px "Cinzel", serif; }
.listing-price small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.listing-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.listing-actions form { margin: 0; }
.listing-actions .primary-button, .listing-actions .text-action { min-height: 40px; padding-inline: 14px; }
.text-action { border-color: rgba(255,255,255,.18); color: #999d9a; }
.awaiting-note { color: var(--warning); font-size: 10px; }
.market-hero-compact { min-height: 540px; }
.market-hero-compact h1 { font-size: clamp(54px, 6vw, 82px); }
.market-ticker { border-block: 1px solid rgba(129,174,178,.22); background: #0a1114; box-shadow: inset 0 1px rgba(255,255,255,.025); }
.market-ticker-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.market-ticker-grid > div { padding: 20px 24px; border-right: 1px solid rgba(129,174,178,.16); }
.market-ticker-grid > div:last-child { border-right: 0; }
.market-ticker span { display: block; margin-bottom: 7px; color: #718488; text-transform: uppercase; letter-spacing: .16em; font-size: 8px; font-weight: 700; }
.market-ticker strong { color: #d7e1de; font: 600 15px "Cinzel", serif; }
.market-custody i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px rgba(103,197,141,.65); }
.market-terminal-section { padding: 86px 0 110px; background: radial-gradient(circle at 85% 5%, rgba(53,99,104,.13), transparent 29%), linear-gradient(180deg, #0b1114, #070b0d 65%); }
.market-terminal-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 35px; }
.market-terminal-heading h2 { margin: 10px 0 8px; font-size: clamp(34px, 4vw, 52px); }
.market-terminal-heading p { max-width: 690px; margin: 0; color: #8e9a98; font-size: 12px; line-height: 1.75; }
.market-controls { display: grid; grid-template-columns: minmax(200px, 1.5fr) repeat(4, minmax(120px, .7fr)) auto auto; gap: 10px; align-items: end; padding: 18px; border: 1px solid rgba(121,159,163,.2); border-bottom: 0; background: #0e171a; }
.market-controls label > span { display: block; margin-bottom: 7px; color: #728386; text-transform: uppercase; letter-spacing: .12em; font-size: 8px; font-weight: 700; }
.market-controls input, .market-controls select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid rgba(135,167,170,.22); border-radius: 0; outline: 0; color: #dce3e0; background: #081013; }
.market-controls input:focus, .market-controls select:focus { border-color: #7ca8aa; box-shadow: 0 0 0 1px rgba(124,168,170,.18); }
.market-controls .primary-button { min-height: 42px; height: 42px; padding-inline: 18px; }
.market-clear { align-self: center; padding: 11px 6px; color: #819093; text-transform: uppercase; letter-spacing: .1em; font-size: 8px; font-weight: 700; }
.market-console { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 410px; border: 1px solid rgba(121,159,163,.2); background: #091013; box-shadow: 0 35px 80px rgba(0,0,0,.3); }
.market-groups { border-right: 1px solid rgba(121,159,163,.2); background: #0b1417; }
.market-console-label, .market-groups > a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 17px; border-bottom: 1px solid rgba(135,167,170,.1); }
.market-console-label { color: #8fa1a2; background: #101d21; text-transform: uppercase; letter-spacing: .13em; font-size: 8px; font-weight: 700; }
.market-console-label b, .market-groups > a b { color: #637477; font-size: 9px; }
.market-groups > a { position: relative; color: #9ca9a7; font-size: 11px; transition: color .16s ease, background .16s ease; }
.market-groups > a:hover, .market-groups > a.is-active { color: #e0e6e2; background: linear-gradient(90deg, rgba(81,130,134,.25), rgba(81,130,134,.04)); }
.market-groups > a.is-active::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--gold-bright); }
.market-npc-note { margin: 24px 17px; padding: 16px 0 0; border-top: 1px solid rgba(135,167,170,.14); }
.market-npc-note p { color: #687779; font-size: 9px; line-height: 1.65; }
.market-orders { min-width: 0; }
.market-orders-bar { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(121,159,163,.18); color: #718285; background: #0d181b; text-transform: uppercase; letter-spacing: .13em; font-size: 8px; font-weight: 700; }
.market-orders-bar span:last-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #6fa9ad; box-shadow: 0 0 9px rgba(111,169,173,.6); }
.market-order { display: grid; grid-template-columns: minmax(230px, 2fr) minmax(86px, .7fr) 62px minmax(68px, .5fr) minmax(100px, .8fr) minmax(92px, .65fr) minmax(104px, .7fr); align-items: center; min-height: 76px; border-bottom: 1px solid rgba(135,167,170,.11); color: #aeb9b6; }
.market-order > div { min-width: 0; padding: 12px 14px; }
.market-order-head { min-height: 38px; color: #617477; background: #081013; text-transform: uppercase; letter-spacing: .12em; font-size: 8px; font-weight: 700; }
.market-order-head > span { padding: 0 14px; }
.market-order:not(.market-order-head):hover { background: linear-gradient(90deg, rgba(63,108,112,.14), rgba(63,108,112,.025)); }
.market-order-reserved { border-left: 2px solid var(--warning); }
.market-order-sold, .market-order-cancelled { opacity: .58; }
.market-item-cell { display: flex; align-items: center; gap: 13px; }
.market-item-cell h3 { margin: 0 0 5px; overflow: hidden; color: #e4e6e1; font: 600 13px "Cinzel", serif; text-overflow: ellipsis; white-space: nowrap; }
.market-item-cell h3 em { color: var(--gold-bright); font-style: normal; }
.market-item-cell small { color: #617174; text-transform: uppercase; letter-spacing: .08em; font-size: 8px; }
.market-item-icon, .market-item-rune { width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(135,167,170,.25); background: radial-gradient(circle, rgba(71,116,120,.18), #081013 70%); }
.market-item-icon img { width: 44px; height: 44px; object-fit: contain; }
.market-item-rune { color: #7f9da0; font: 600 19px "Cinzel", serif; }
.market-type-chip { display: inline-block; padding: 5px 8px; border: 1px solid rgba(111,153,157,.2); color: #8da8a9; background: rgba(72,110,113,.1); text-transform: uppercase; letter-spacing: .08em; font-size: 7px; font-weight: 700; }
.market-grade { display: inline-grid; min-width: 32px; min-height: 26px; place-items: center; padding: 4px 7px; border: 1px solid rgba(237,200,120,.28); color: #edc878; background: rgba(185,139,62,.1); font: 700 9px "Cinzel", serif; letter-spacing: .05em; }
.market-grade-none { min-width: 58px; color: #7f8e8d; border-color: rgba(127,142,141,.22); background: rgba(127,142,141,.07); font-family: "Manrope", sans-serif; font-size: 7px; text-transform: uppercase; }
.market-price-cell { display: flex; align-items: baseline; gap: 5px; }
.market-price-cell strong { color: var(--gold-bright); font: 700 16px "Cinzel", serif; }
.market-price-cell small { color: #7b8582; font-size: 8px; }
.market-buy-cell form { margin: 0; }
.market-buy-button, .market-cancel-button, .market-login-link { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border: 1px solid rgba(207,165,79,.55); color: #e6c573; background: rgba(177,126,39,.11); text-transform: uppercase; letter-spacing: .09em; font-size: 8px; font-weight: 800; cursor: pointer; }
.market-buy-button:hover, .market-login-link:hover { color: #181006; background: var(--gold-bright); }
.market-cancel-button { margin-top: 5px; border-color: rgba(255,255,255,.16); color: #899392; background: transparent; }
.market-order-note { display: block; color: var(--warning); font-size: 8px; line-height: 1.4; text-transform: uppercase; }
.market-no-results { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 300px; padding: 45px; color: #68777a; }
.market-no-results > span { color: rgba(111,153,157,.38); font: 500 52px "Cinzel", serif; }
.market-no-results h3 { margin: 0 0 6px; color: #c3cbc8; font-size: 18px; }
.market-no-results p { margin: 0; font-size: 10px; }
.wallet-history { padding: 90px 0; border-top: 1px solid var(--line); background: #080b0d; }
.transaction-list { margin-top: 30px; border: 1px solid var(--line); }
.transaction-list > div { display: grid; grid-template-columns: 1fr auto 120px; gap: 20px; padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
.transaction-list > div:last-child { border-bottom: 0; }
.transaction-list time { color: var(--muted); font-size: 10px; }
.transaction-list strong { text-align: right; }
.positive { color: var(--success); }
.negative { color: var(--danger); }
.dashboard-balance { display: flex; align-items: center; gap: 18px; margin: 24px 0 8px; }
.dashboard-balance strong { color: var(--gold-bright); font: 700 48px "Cinzel", serif; }

.history-hero {
  position: relative; min-height: 880px; display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(90deg, rgba(4,7,9,.96) 0%, rgba(4,7,9,.74) 35%, rgba(4,7,9,.12) 68%),
              linear-gradient(180deg, rgba(4,7,9,.08) 60%, #080b0d 100%),
              var(--site-images-history-heart, url("images/history-heart.webp")) center/cover no-repeat;
}
.history-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 43%, rgba(226,187,96,.07), transparent 28%); pointer-events: none; }
.history-hero-inner { position: relative; z-index: 2; padding-top: 90px; }
.history-hero-inner > p { width: min(590px, 52%); color: #c7c5bf; font-family: "Cinzel", serif; font-size: 16px; line-height: 1.9; text-shadow: 0 3px 22px #000; }
.history-hero h1 { margin: 18px 0 26px; max-width: 700px; font-size: clamp(58px, 8vw, 112px); line-height: .86; letter-spacing: -.055em; text-transform: uppercase; text-shadow: 0 10px 40px #000; }
.history-scroll { display: inline-flex; gap: 18px; margin-top: 28px; color: var(--gold-bright); text-transform: uppercase; letter-spacing: .18em; font-size: 10px; font-weight: 800; }
.history-chapter-mark { position: absolute; right: 4vw; bottom: -70px; z-index: 1; color: rgba(255,255,255,.035); font: 700 300px/1 "Cinzel", serif; }

.history-conflict { position: relative; padding: 130px 0; overflow: hidden; background: radial-gradient(circle at 12% 50%, rgba(83,148,168,.08), transparent 28%), radial-gradient(circle at 88% 50%, rgba(187,81,48,.09), transparent 28%), #080b0d; }
.history-conflict::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 72px; background: linear-gradient(var(--gold), transparent); }
.history-conflict-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 90px; align-items: center; }
.history-ornament { position: relative; width: 230px; aspect-ratio: 1; margin: auto; border: 1px solid rgba(200,155,73,.22); transform: rotate(45deg); }
.history-ornament::before, .history-ornament::after, .history-ornament span { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(200,155,73,.14); }
.history-ornament::after { inset: 72px; background: radial-gradient(circle, var(--gold-bright), rgba(200,155,73,.08) 12%, transparent 45%); }
.history-ornament span { inset: -12px 104px; border-width: 0 1px; }
.history-prose { max-width: 760px; }
.history-prose > p { margin: 22px 0; color: #b7bab5; font-family: "Cinzel", serif; font-size: 15px; line-height: 2; }
.history-prose blockquote { margin: 38px 0 0; padding: 28px 0 28px 34px; border-left: 2px solid var(--gold); color: var(--paper); font: 600 clamp(22px, 3vw, 34px)/1.45 "Cinzel", serif; }

.faction-chapter { min-height: 820px; display: flex; align-items: center; border-top: 1px solid rgba(255,255,255,.08); background-attachment: fixed; background-position: center; background-size: cover; }
.faction-atrin { background-image: linear-gradient(90deg, rgba(5,8,10,.95) 0%, rgba(5,8,10,.82) 35%, rgba(5,8,10,.12) 70%), linear-gradient(180deg, rgba(5,8,10,.05), rgba(5,8,10,.55)), var(--site-images-history-atrin, url("images/history-atrin.webp")); }
.faction-eflon { background-image: linear-gradient(270deg, rgba(5,8,10,.97) 0%, rgba(5,8,10,.8) 35%, rgba(5,8,10,.08) 72%), linear-gradient(180deg, rgba(5,8,10,.05), rgba(5,8,10,.58)), var(--site-images-history-eflon, url("images/history-eflon.webp")); }
.faction-layout { width: 100%; display: flex; justify-content: flex-start; padding-block: 110px; }
.faction-layout-right { justify-content: flex-end; }
.faction-copy { width: min(540px, 48%); padding: 46px; border: 1px solid rgba(216,187,126,.24); background: rgba(7,11,13,.78); box-shadow: 0 35px 90px rgba(0,0,0,.45); backdrop-filter: blur(14px); }
.faction-index { color: var(--gold); text-transform: uppercase; letter-spacing: .24em; font-size: 9px; font-weight: 800; }
.faction-copy h2 { margin: 10px 0 22px; font-size: clamp(54px, 7vw, 88px); line-height: 1; text-transform: uppercase; }
.faction-atrin .faction-copy h2 { color: #f0d797; }
.faction-eflon .faction-copy h2 { color: #e5946c; }
.faction-copy > p { color: #c1c2bd; font-size: 14px; line-height: 1.9; }
.faction-creed { margin: 30px 0 0; }
.faction-creed div { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.1); }
.faction-creed dt { color: #858b87; text-transform: uppercase; letter-spacing: .14em; font-size: 9px; }
.faction-creed dd { margin: 0; font: 600 13px "Cinzel", serif; }

.history-choice { position: relative; padding: 150px 0; overflow: hidden; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(200,155,73,.18), transparent 38%), #080b0d; }
.history-choice::before { content: ""; position: absolute; inset: 30px; border: 1px solid rgba(200,155,73,.12); pointer-events: none; }
.history-choice-inner { position: relative; z-index: 1; max-width: 900px; }
.history-choice h2 { margin: 18px auto; font-size: clamp(38px, 5vw, 66px); line-height: 1.15; }
.history-choice p { color: var(--muted); font-size: 16px; }
.history-choice .hero-actions { justify-content: center; }

.auth-shell { min-height: 760px; padding: 150px max(24px, calc((100vw - 1180px)/2)) 80px; display: grid; grid-template-columns: 1fr 520px; align-items: center; gap: 90px; background: linear-gradient(90deg, rgba(5,9,12,.97), rgba(5,9,12,.68)), var(--site-images-l2hydra-account, url("images/l2hydra-account.webp")) center/cover fixed; }
.auth-intro { max-width: 520px; }
.auth-intro h1 { margin: 14px 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.auth-card { padding: 38px; display: grid; gap: 17px; }
.auth-card label { display: grid; gap: 8px; color: #c8c7c1; font-size: 12px; font-weight: 700; }
.optional { justify-self: end; margin-top: -22px; color: #777c7a; font-size: 10px; text-transform: uppercase; }
.auth-card input, .auth-card select { width: 100%; padding: 14px 15px; border: 1px solid rgba(216,187,126,.22); border-radius: 0; outline: 0; color: var(--paper); background: rgba(5,9,11,.85); }
.auth-card input:focus, .auth-card select:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200,155,73,.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-helper { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
.form-helper a { color: var(--gold-bright); }

.flash-stack { position: relative; z-index: 10; padding-top: 105px; margin-bottom: -82px; pointer-events: none; }
.flash { padding: 14px 18px; border: 1px solid var(--line); background: rgba(12,17,19,.96); }
.flash-success { border-color: rgba(103,197,141,.5); }
.flash-warning { border-color: rgba(222,182,95,.5); }
.flash-error { border-color: rgba(217,120,105,.5); }
.site-footer { padding: 42px 0; border-top: 1px solid var(--line); background: #070a0b; }
.footer-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 30px; align-items: center; }
.footer-logo { display: block; width: 150px; height: auto; }
.footer-row p { color: #747975; font-size: 11px; text-align: center; }
.footer-row > a { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }

.treasury-hero { min-height: 590px; display: flex; align-items: center; padding-top: 90px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 46%, rgba(200,155,73,.2), transparent 18%), linear-gradient(90deg, rgba(5,8,10,.98), rgba(5,8,10,.44)), var(--site-images-l2hydra-treasury, url("images/l2hydra-treasury.webp")) center/cover no-repeat; }
.treasury-hero-grid { display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 90px; }
.treasury-hero h1 { margin: 15px 0 22px; font-size: clamp(55px, 7vw, 94px); line-height: .86; text-transform: uppercase; }
.treasury-hero h1 em { color: var(--gold-bright); font-size: .51em; font-style: normal; letter-spacing: .03em; }
.treasury-hero p { max-width: 620px; color: #bdc0bc; line-height: 1.8; }
.treasury-seal { position: relative; width: 250px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(237,200,120,.42); border-radius: 50%; background: radial-gradient(circle, rgba(200,155,73,.2), rgba(7,11,13,.8) 64%); box-shadow: 0 0 0 18px rgba(200,155,73,.04), 0 0 90px rgba(200,155,73,.16); }
.treasury-seal::before { content: ""; position: absolute; width: 185px; aspect-ratio: 1; border: 1px solid rgba(237,200,120,.22); transform: rotate(45deg); }
.treasury-seal span { z-index: 1; color: var(--gold-bright); font: 700 94px "Cinzel", serif; text-shadow: 0 0 35px rgba(237,200,120,.35); }
.treasury-section { padding: 90px 0 130px; background: radial-gradient(circle at 8% 8%, rgba(200,155,73,.09), transparent 24%), #080b0d; }
.treasury-metrics { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: -135px; margin-bottom: 34px; border: 1px solid var(--line); background: var(--line); }
.treasury-metrics article { min-height: 155px; padding: 28px 32px; background: rgba(12,18,20,.96); backdrop-filter: blur(12px); }
.treasury-metrics span, .treasury-metrics small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: 9px; }
.treasury-metrics strong { display: block; margin: 13px 0 7px; color: var(--gold-bright); font: 700 36px "Cinzel", serif; }
.treasury-layout { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); gap: 24px; align-items: start; }
.treasury-form-panel, .treasury-ledger { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(20,28,31,.98), rgba(9,14,16,.98)); box-shadow: 0 28px 65px rgba(0,0,0,.24); }
.treasury-form-panel { padding: 38px; }
.treasury-form-panel h2, .treasury-ledger h2 { margin: 11px 0; font-size: 30px; }
.treasury-form-panel > p { color: var(--muted); line-height: 1.7; }
.treasury-form { display: grid; gap: 18px; margin-top: 28px; }
.treasury-form label { display: grid; gap: 8px; color: #c8c7c1; font-size: 12px; font-weight: 700; }
.treasury-form input, .treasury-form textarea { width: 100%; padding: 14px 15px; border: 1px solid rgba(216,187,126,.22); outline: 0; resize: vertical; color: var(--paper); background: rgba(5,9,11,.85); font: inherit; }
.treasury-form input:focus, .treasury-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200,155,73,.08); }
.treasury-guard { display: grid; gap: 6px; margin-top: 24px; padding: 18px; border-left: 2px solid var(--success); background: rgba(103,197,141,.06); }
.treasury-guard strong { color: var(--success); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.treasury-guard span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.treasury-ledger > header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 32px; border-bottom: 1px solid var(--line); }
.treasury-ledger > header b { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.audit-list { max-height: 720px; overflow: auto; }
.audit-entry { display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: start; padding: 24px 28px; border-bottom: 1px solid rgba(255,255,255,.07); }
.audit-entry:last-child { border-bottom: 0; }
.audit-id { padding-top: 3px; color: #646b68; font: 600 11px "Cinzel", serif; }
.audit-main > div { display: flex; align-items: baseline; gap: 12px; }
.audit-main strong { font: 600 15px "Cinzel", serif; }
.audit-main span, .audit-main time { color: #747b77; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.audit-main p { margin: 9px 0; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.audit-amount { text-align: right; }
.audit-amount strong { display: block; color: var(--success); font: 700 19px "Cinzel", serif; }
.audit-amount span { display: block; margin-top: 7px; color: #777e7a; font-size: 9px; text-transform: uppercase; }
.treasury-empty { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 16px; padding: 35px; text-align: center; }
.treasury-empty span { color: rgba(237,200,120,.26); font: 700 68px "Cinzel", serif; }
.treasury-empty p { color: var(--muted); }

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.market-update-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-market-results] { transition: opacity .18s ease; }
[data-market-results].is-loading { opacity: .42; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

@media (max-width: 980px) {
  .header-row { grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.08); }
  .nav-links a { padding: 14px 0 10px; }
  .nav-links a::after { bottom: 5px; }
  .hero { min-height: 850px; background-position: 58% center; }
  .hero-copy { width: min(620px, 80%); }
  .scroll-cue { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 240px; }
  .announcement-grid { grid-template-columns: 1fr 1fr; }
  .chronicle-inner { grid-template-columns: 1fr; gap: 18px; }
  .community-hero-grid { grid-template-columns: 1fr 220px; gap: 55px; }
  .community-emblem { width: 190px; }
  .community-emblem span { font-size: 78px; }
  .auth-shell { grid-template-columns: 1fr; gap: 36px; background-attachment: scroll; }
  .history-conflict-grid { grid-template-columns: 1fr; gap: 70px; }
  .history-ornament { width: 160px; }
  .faction-chapter { background-attachment: scroll; }
  .faction-copy { width: min(620px, 72%); }
  .server-hero-grid, .market-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .server-live-card, .hydra-coin-display { max-width: 420px; }
  .rates-grid { grid-template-columns: repeat(3, 1fr); }
  .rankings-grid, .market-sell-grid { grid-template-columns: 1fr; }
  .market-flow-grid { grid-template-columns: 1fr 1fr; }
  .market-flow-grid > div:nth-child(2) { border-right: 0; }
  .listing-grid { grid-template-columns: 1fr 1fr; }
  .market-ticker-grid { grid-template-columns: 1fr 1fr; }
  .market-ticker-grid > div:nth-child(2) { border-right: 0; }
  .market-ticker-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(129,174,178,.16); }
  .market-controls { grid-template-columns: 1fr 1fr 1fr; }
  .market-search { grid-column: span 2; }
  .market-console { grid-template-columns: 180px minmax(0, 1fr); }
  .market-order { grid-template-columns: minmax(210px, 1.8fr) 86px 58px 68px minmax(90px, .7fr) 90px; }
  .market-order > :nth-child(5), .market-order-head > :nth-child(5) { display: none; }
  .treasury-hero-grid { grid-template-columns: 1fr auto; gap: 35px; }
  .treasury-seal { width: 170px; }
  .treasury-seal::before { width: 125px; }
  .treasury-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-shell { width: min(100% - 28px, 1180px); }
  .header-row { min-height: 76px; }
  .brand img { width: 135px; }
  .account-actions { gap: 10px; }
  .account-actions .text-button { display: none; }
  .header-login { padding: 9px 12px; }
  .nav-links { overflow-x: auto; }
  .nav-links a { flex: 0 0 auto; font-size: 9px; }
  .hero { min-height: 780px; align-items: flex-start; }
  .hero {
    background-image: linear-gradient(180deg, rgba(4,8,11,.62) 0%, rgba(5,9,12,.15) 54%, var(--ink) 100%),
                      radial-gradient(circle at 50% 45%, rgba(3,6,8,.05), rgba(3,6,8,.48) 74%),
                      var(--site-images-l2hydra-home-convergence-mobile-v1, url("images/l2hydra-home-convergence-mobile-v1.webp"));
    background-position: center;
  }
  .hero-inner { padding-top: 220px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: 48px; }
  .hero-copy > p { font-size: 14px; }
  .hero-status { margin-top: 28px; padding: 16px; }
  .world-status, .notice-panel { align-items: flex-start; flex-direction: column; }
  .feature-section, .content-section, .announcement-section { padding: 70px 0; }
  .announcement-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .announcement-grid { grid-template-columns: 1fr; }
  .announcement-copy p { min-height: 0; }
  .announcement-empty { align-items: flex-start; padding: 28px 22px; }
  .announcement-empty > span { font-size: 48px; }
  .split-layout, .dashboard-grid, .download-grid { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; }
  .download-card > :last-child { grid-column: 1; }
  .news-card { grid-template-columns: 1fr; gap: 16px; }
  .server-hero { min-height: 760px; align-items: flex-end; padding-bottom: 60px; background-image: linear-gradient(180deg, rgba(4,8,10,.2), rgba(4,8,10,.88) 62%, #080b0d), var(--site-images-l2hydra-server-v2, url("images/l2hydra-server-v2.webp")); background-position: 58% center; }
  .server-hero h1 { font-size: 52px; }
  .server-live-card { width: 100%; padding: 28px; }
  .rates-grid { grid-template-columns: 1fr 1fr; }
  .rate-tile { min-height: 120px; }
  .ranking-panel > header { padding: 24px 20px; }
  .ranking-list li { grid-template-columns: 34px 1fr auto; padding: 0 18px; }
  .ranking-list li > span:nth-of-type(2) { display: none; }
  .news-hero-row, .market-list-heading { align-items: flex-start; flex-direction: column; }
  .editorial-card { grid-template-columns: 1fr; }
  .editorial-card > img, .editorial-placeholder { min-height: 230px; height: 230px; }
  .editorial-copy, .editor-card, .market-form { padding: 26px 20px; }
  .editor-shell { padding-top: 190px; }
  .current-news-image { grid-template-columns: 1fr; }
  .market-hero { min-height: 760px; align-items: flex-end; padding-bottom: 55px; background-image: linear-gradient(180deg, rgba(5,8,10,.18), rgba(5,8,10,.88) 62%, #080b0d), var(--site-images-l2hydra-market-v2, url("images/l2hydra-market-v2.webp")); background-position: 62% center; }
  .market-hero.market-hero-compact { min-height: 620px; }
  .market-hero h1 { font-size: 50px; }
  .hydra-coin-display { min-width: 0; width: 100%; }
  .market-flow-grid { grid-template-columns: 1fr; }
  .market-flow-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .market-numbers, .listing-grid { grid-template-columns: 1fr; }
  .listing-card { min-height: 400px; }
  .market-terminal-section { padding: 65px 0 80px; }
  .market-terminal-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .market-controls { grid-template-columns: 1fr; padding: 14px; }
  .market-search { grid-column: auto; }
  .market-console { grid-template-columns: 1fr; }
  .market-groups { display: grid; grid-template-columns: 1fr 1fr; border-right: 0; border-bottom: 1px solid rgba(121,159,163,.2); }
  .market-console-label, .market-npc-note { grid-column: 1 / -1; }
  .market-groups > a:nth-of-type(odd) { border-right: 1px solid rgba(135,167,170,.1); }
  .market-npc-note { display: none; }
  .market-order-head { display: none; }
  .market-order { grid-template-columns: 1fr 1fr; gap: 0; padding: 10px 5px; }
  .market-order > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; }
  .market-order > div::before { content: attr(data-label); color: #647477; text-transform: uppercase; letter-spacing: .1em; font-size: 7px; }
  .market-order > .market-item-cell { grid-column: 1 / -1; justify-content: flex-start; padding-bottom: 13px; }
  .market-order > .market-item-cell::before { display: none; }
  .market-order > :nth-child(5) { display: flex; }
  .market-buy-cell { align-items: center; }
  .market-ticker-grid > div { padding: 17px 14px; }
  .transaction-list > div { grid-template-columns: 1fr auto; }
  .transaction-list time { display: none; }
  .history-hero { min-height: 820px; align-items: flex-end; padding-bottom: 70px; background-image: linear-gradient(180deg, rgba(4,7,9,.32) 15%, rgba(4,7,9,.86) 66%, #080b0d 100%), var(--site-images-history-heart-mobile, url("images/history-heart-mobile.webp")); background-position: center; }
  .history-hero-inner { padding-top: 170px; }
  .history-hero h1 { font-size: 54px; }
  .history-hero-inner > p { width: 100%; font-size: 13px; line-height: 1.75; }
  .history-chapter-mark { right: -20px; bottom: 10px; font-size: 150px; }
  .history-conflict { padding: 90px 0; }
  .history-conflict-grid { gap: 55px; }
  .history-prose > p { font-size: 13px; line-height: 1.85; }
  .history-prose blockquote { padding-left: 22px; font-size: 22px; }
  .faction-chapter { min-height: 880px; align-items: flex-end; }
  .faction-atrin { background-image: linear-gradient(180deg, rgba(5,8,10,.1) 10%, rgba(5,8,10,.84) 60%, #080b0d 100%), var(--site-images-history-atrin-mobile, url("images/history-atrin-mobile.webp")); }
  .faction-eflon { background-image: linear-gradient(180deg, rgba(5,8,10,.08) 10%, rgba(5,8,10,.86) 60%, #080b0d 100%), var(--site-images-history-eflon-mobile, url("images/history-eflon-mobile.webp")); }
  .faction-layout { padding-block: 320px 42px; }
  .faction-copy { width: 100%; padding: 28px 22px; backdrop-filter: blur(10px); }
  .faction-copy h2 { font-size: 52px; }
  .history-choice { padding: 110px 0; }
  .history-choice::before { inset: 14px; }
  .community-hero { min-height: 700px; align-items: flex-end; padding-bottom: 80px; }
  .community-hero-grid, .community-path-grid { grid-template-columns: 1fr; }
  .community-copy h1 { font-size: 48px; }
  .community-emblem { display: none; }
  .community-paths { padding: 80px 0; }
  .community-path-grid article { min-height: 220px; padding: 30px 24px; }
  .community-path-grid h3 { margin-top: 45px; }
  .auth-shell { padding-top: 190px; }
  .page-hero { background-image: linear-gradient(180deg, rgba(5,9,12,.88), rgba(5,9,12,.42)), var(--site-images-l2hydra-account, url("images/l2hydra-account.webp")); background-position: center 68%; }
  .page-hero-downloads { background-image: linear-gradient(180deg, rgba(5,9,12,.76), rgba(5,9,12,.6)), var(--site-images-l2hydra-downloads, url("images/l2hydra-downloads.webp")); background-position: 58% center; }
  .page-hero-news { background-image: linear-gradient(180deg, rgba(5,9,12,.78), rgba(5,9,12,.58)), var(--site-images-l2hydra-news, url("images/l2hydra-news.webp")); background-position: 62% center; }
  .auth-shell { background-image: linear-gradient(180deg, rgba(5,9,12,.9), rgba(5,9,12,.7)), var(--site-images-l2hydra-account, url("images/l2hydra-account.webp")); background-position: 38% center; }
  .auth-card { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .inline-admin-form { grid-template-columns: 1fr; }
  .treasury-hero { min-height: 700px; align-items: flex-end; padding-bottom: 120px; background-image: linear-gradient(180deg, rgba(5,8,10,.24), rgba(5,8,10,.92) 62%, #080b0d), var(--site-images-l2hydra-treasury, url("images/l2hydra-treasury.webp")); background-position: 66% center; }
  .treasury-hero-grid { grid-template-columns: 1fr; }
  .treasury-hero h1 { font-size: 50px; }
  .treasury-seal { display: none; }
  .treasury-metrics { grid-template-columns: 1fr; margin-top: -150px; }
  .treasury-metrics article { min-height: 130px; }
  .treasury-form-panel { padding: 28px 20px; }
  .treasury-ledger > header { align-items: flex-start; flex-direction: column; padding: 26px 20px; }
  .audit-entry { grid-template-columns: 1fr auto; padding: 22px 18px; }
  .audit-id { display: none; }
  .footer-row { grid-template-columns: 1fr; text-align: center; }
  .footer-row p { text-align: center; }
}

/* Fixed content editor: isolated from the public layouts. */
.site-editor-shell { max-width: 1440px; margin: auto; padding: 160px 28px 90px; }
.site-editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.site-editor-heading h1 { margin: 10px 0; font-size: clamp(30px, 4vw, 48px); }
.site-editor-heading p, .site-editor-panel p { color: var(--muted); }
.site-editor-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.site-editor-nav { position: sticky; top: 110px; display: grid; border: 1px solid var(--line); }
.site-editor-nav a { padding: 13px 18px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 13px; }
.site-editor-nav a[aria-current] { color: var(--gold-bright); background: rgba(200,155,73,.12); }
.site-editor-main { min-width: 0; display: grid; gap: 28px; }
.site-editor-panel { padding: 28px; border: 1px solid var(--line); background: #101719; min-width: 0; }
.site-editor-panel h2 { margin-top: 0; }
.site-editor-form { display: grid; gap: 22px; }
.site-editor-field { display: grid; gap: 9px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.site-editor-field > label:first-child { font-weight: 700; color: var(--paper); font-size: 13px; overflow-wrap: anywhere; }
.site-editor-field input:not([type=checkbox]), .site-editor-field textarea { width: 100%; padding: 12px; color: var(--paper); background: #080d0f; border: 1px solid var(--line); font: inherit; resize: vertical; }
.site-editor-field small { color: var(--muted); }
.site-editor-reset { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.site-editor-image { max-width: 100%; width: 360px; max-height: 220px; object-fit: contain; background: #080d0f; }
.site-editor-save { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.site-editor-save span { color: var(--muted); font-size: 12px; }
.site-editor-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.site-editor-diff { padding-left: 20px; }
.site-editor-diff li { margin-bottom: 20px; overflow-wrap: anywhere; }
.site-editor-diff span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; white-space: pre-wrap; }
.site-editor-history { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.site-preview-banner { position: fixed; z-index: 300; top: 0; left: 0; right: 0; min-height: 54px; padding: 10px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; color: #171208; background: #edc878; font-size: 12px; }
.site-preview-banner a, .site-preview-banner button { color: #171208; text-decoration: underline; font: inherit; background: transparent; border: 0; cursor: pointer; }
.site-preview .site-header { top: 70px; }
@media (max-width: 800px) {
  .site-editor-shell { padding: 200px 14px 60px; }
  .site-editor-heading { align-items: flex-start; flex-direction: column; }
  .site-editor-layout { grid-template-columns: 1fr; }
  .site-editor-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-editor-panel { padding: 20px; }
}
