/* Ergenekon2 — ana sayfa (v2, portal tasarımı) */

:root {
  --bg-deep: #060504;
  --bg: #0a0807;
  --panel-a: rgba(28, 21, 16, 0.9);
  --panel-b: rgba(11, 9, 8, 0.94);
  --gold: #d4af37;
  --gold-light: #f2da92;
  --gold-soft: #e6c96a;
  --gold-dim: #8a6d2a;
  --red: #9b1c1c;
  --red-deep: #4a0e0e;
  --red-bright: #d23a2e;
  --ember: #ff8a3d;
  --cream: #f3ead8;
  --cream-dim: #cfc4ac;
  --muted: #968b78;
  --line: rgba(212, 175, 55, 0.26);
  --line-strong: rgba(212, 175, 55, 0.55);
  --accent: #d4382c;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  --font-display: "Cinzel", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "Noto Sans", "Segoe UI", "Liberation Sans", Arial, sans-serif;
  --wrap: 1200px;
  --header-h: 84px;
}

@font-face { font-family: "Cinzel"; src: url("../assets/fonts/Cinzel-variable.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../assets/fonts/noto-sans-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  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: "Noto Sans"; src: url("../assets/fonts/noto-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  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; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; color-scheme: dark; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--cream-dim);
  background:
    radial-gradient(1100px 600px at 85% 8%, rgba(120, 22, 18, 0.16), transparent 60%),
    radial-gradient(900px 600px at 5% 55%, rgba(120, 70, 12, 0.08), transparent 60%),
    var(--bg-deep);
  overflow-x: hidden;
}
/* subtle fixed film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--cream); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 2000; background: var(--gold); color: #1a1408; padding: .5rem .9rem; border-radius: 4px; font-weight: 700; }
.skip-link:focus { top: .75rem; }
.wrap { width: min(var(--wrap), calc(100% - 2.4rem)); margin-inline: auto; }

/* ---------- gold corner frames ---------- */
.frame { position: relative; }
.frame::before {
  --c: var(--gold);
  content: ""; position: absolute; inset: 6px; z-index: 3; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 18px no-repeat;
  opacity: .8;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500; height: var(--header-h);
  background: linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,0));
  border-bottom: 1px solid transparent;
  transition: height .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-solid {
  --header-h: 66px; height: 66px;
  background: rgba(8, 6, 5, .9);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; height: 100%; }
.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); box-shadow: 0 0 0 3px rgba(0,0,0,.45), 0 0 22px rgba(155,28,28,.55); transition: transform .3s; }
.brand:hover img { transform: scale(1.06) rotate(-3deg); }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.brand-word b { color: var(--red-bright); font-weight: 800; margin-left: .05em; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: .2rem 1.5rem; }
.site-nav ul a { position: relative; display: block; padding: .5rem 0; font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); text-shadow: 0 1px 8px rgba(0,0,0,.8); transition: color .2s; }
.site-nav ul a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transition: width .25s, left .25s; }
.site-nav ul a:hover, .site-nav ul a.is-active { color: var(--gold-light); }
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { width: 100%; left: 0; }
.nav-actions { display: flex; gap: .55rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); background: rgba(10,8,7,.7); color: var(--gold); border-radius: 4px; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; border-radius: 1px; transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.site-header.is-open .nav-toggle span { background: transparent; }
.site-header.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.3rem; border-radius: 3px; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; line-height: 1.2;
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s, background .2s, filter .2s;
}
.btn > span { position: relative; z-index: 2; }
.btn::after { /* hover shine */
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-22deg); transition: left .7s ease;
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: .4rem 1.05rem; font-size: .72rem; }
.btn-lg { min-height: 52px; padding: .8rem 1.7rem; font-size: .84rem; }
.btn-xl { min-height: 62px; padding: 1rem 2.6rem; font-size: 1rem; letter-spacing: .16em; }
.btn-block { width: 100%; }
.btn-gold { color: #1b1306; background: linear-gradient(180deg, #f7e4a0 0%, #dcb840 45%, #a98425 100%); border-color: #f6e3a2; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(90,60,5,.35), 0 10px 26px rgba(212,175,55,.22); }
.btn-gold:hover { color: #1b1306; filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(90,60,5,.35), 0 14px 34px rgba(212,175,55,.38); }
.btn-red { color: var(--cream); background: linear-gradient(180deg, #c32a24 0%, #8a1613 52%, #5c0c0c 100%); border-color: rgba(230,190,90,.65); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -2px 0 rgba(0,0,0,.4), 0 10px 26px rgba(155,28,28,.35); }
.btn-red:hover { color: #fff; border-color: var(--gold-light); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.4), 0 14px 34px rgba(210,58,46,.5); }
.btn-ghost { color: var(--gold-light); background: rgba(10,8,7,.55); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--gold-light); background: rgba(212,175,55,.12); border-color: var(--gold); }
/* ornate double-line on the big CTAs */
.btn-xl::before, .btn-lg.btn-gold::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(255,235,170,.5); border-radius: 2px; pointer-events: none; z-index: 2; }
.btn-red.btn-xl::before { border-color: rgba(255,215,130,.4); }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; place-items: center; height: calc(100svh - 56px); min-height: 700px; max-height: 1040px; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; background: #0b0807; will-change: transform; }
.hero-bg img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: 50% 40%; animation: kenburns 46s ease-in-out infinite alternate; transform-origin: 40% 50%; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.13) translate3d(-1.2%, .8%, 0); } }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 56% at 50% 46%, rgba(4,3,3,.62), rgba(4,3,3,.2) 62%, transparent 78%),
    linear-gradient(180deg, rgba(4,3,3,.78) 0%, rgba(4,3,3,.1) 24%, rgba(4,3,3,.05) 50%, rgba(6,5,4,.62) 82%, var(--bg-deep) 100%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.6) 100%); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: calc(var(--header-h) - 10px); padding-bottom: 3.5rem; }
.hero-logo { width: min(860px, 92vw, calc(46svh * 1.774)); position: relative; }
.hero-logo::before { content: ""; position: absolute; inset: -8% -6%; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(255,150,60,.28), rgba(155,28,28,.22) 38%, transparent 68%); filter: blur(22px); animation: glow 5.5s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .65; transform: scale(.97); } to { opacity: 1; transform: scale(1.04); } }
.hero-logo img { width: 100%; filter: drop-shadow(0 14px 30px rgba(0,0,0,.8)) drop-shadow(0 0 26px rgba(255,140,50,.28)); }
.tagline { margin-top: .6rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2.3vw, 1.7rem); letter-spacing: .1em; color: var(--gold-light); text-shadow: 0 2px 20px rgba(0,0,0,.95), 0 0 30px rgba(0,0,0,.8); }
.tagline-sub { margin-top: .55rem; max-width: 44rem; text-wrap: balance; color: var(--cream); font-size: clamp(.95rem, 1.4vw, 1.08rem); text-shadow: 0 2px 16px rgba(0,0,0,.95); opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.2rem; margin-top: 1.9rem; }

/* floating status bar */
.status-wrap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; margin-inline: auto; }
.status-bar { display: grid; grid-template-columns: repeat(4, 1fr); transform: translateY(50%); background: linear-gradient(180deg, rgba(30,22,17,.92), rgba(10,8,7,.95)); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 24px 60px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.6), 0 0 40px rgba(155,28,28,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.status-item { display: flex; align-items: center; gap: .9rem; padding: 1.15rem 1.5rem; position: relative; }
.status-item + .status-item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: linear-gradient(180deg, transparent, var(--line-strong), transparent); }
.status-ico { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: radial-gradient(circle at 50% 35%, rgba(212,175,55,.18), rgba(0,0,0,.3)); color: var(--gold); }
.status-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.status-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.status-txt small { font-family: var(--font-display); font-weight: 600; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.status-txt strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--cream); letter-spacing: .04em; display: flex; align-items: center; gap: .5rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 2px rgba(212,175,55,.6); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; box-shadow: 0 0 4px 1px rgba(212,175,55,.3); } }

/* ---------- sections ---------- */
.section { position: relative; padding: 4.8rem 0; }
.section-head { text-align: center; margin-bottom: 3rem; }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.section-head h2 { margin-top: .4rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); text-shadow: 0 0 36px rgba(212,175,55,.25), 0 3px 18px rgba(0,0,0,.8); }
.lede { margin: 1rem auto 0; max-width: 36rem; color: var(--muted); }
.divider { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 1rem auto 0; width: min(340px, 70%); }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), var(--gold)); }
.divider span:last-child { background: linear-gradient(270deg, transparent, var(--gold-dim), var(--gold)); }
.divider i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 12px rgba(212,175,55,.7); flex: 0 0 auto; }
.divider-left { justify-content: flex-start; margin-left: 0; width: min(260px, 100%); }
.divider-left span { background: linear-gradient(90deg, var(--gold), var(--gold-dim), transparent); }

/* ---------- panels ---------- */
.panel { background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow), inset 0 1px 0 rgba(212,175,55,.1); }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; padding: .95rem 1.4rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(212,175,55,.06), transparent); }
.panel-title { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.gem { width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 10px rgba(212,175,55,.7); flex: 0 0 auto; }

.tabs { display: flex; gap: .25rem; }
.tab { padding: .5rem .95rem; border: 1px solid transparent; border-radius: 3px; background: none; color: var(--muted); cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; transition: color .2s, background .2s, border-color .2s; }
.tab:hover { color: var(--gold-light); }
.tab.is-active { color: #1b1306; background: linear-gradient(180deg, #f2da92, #c9a232); border-color: #f2da92; }
.tabs-sm .tab { padding: .38rem .8rem; font-size: .68rem; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-active { animation: tabin .4s ease both; }
@keyframes tabin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- portal ---------- */
.portal { padding-top: 8.2rem; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 1.8rem; align-items: stretch; }
.portal-main { grid-template-rows: auto 1fr; }
.portal-side { align-content: start; }
.portal-main, .portal-side { display: grid; gap: 1.8rem; min-width: 0; }
.portal-main > *, .portal-side > * { min-width: 0; }

.news-feature, .news-row { display: grid; color: inherit; transition: background .25s; }
.news-feature { grid-template-columns: 1.05fr 1fr; gap: 1.6rem; padding: 1.4rem; }
.news-feature:hover, .news-row:hover { background: rgba(212,175,55,.045); color: inherit; }
.news-img { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; aspect-ratio: 16/9; background: #0b0807; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .4s; filter: saturate(.95) brightness(.92); }
.news-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.5)); }
.news-feature:hover .news-img img, .news-row:hover .news-img img { transform: scale(1.07); filter: saturate(1.1) brightness(1.05); }
.news-body { display: flex; flex-direction: column; justify-content: center; gap: .55rem; min-width: 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; font-size: .78rem; }
.tag { font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: .22rem .6rem; border-radius: 2px; }
.tag-red { background: linear-gradient(180deg, #b32620, #761210); color: #fff3df; border: 1px solid rgba(255,200,120,.35); }
.tag-gold { background: rgba(212,175,55,.14); color: var(--gold-light); border: 1px solid var(--line-strong); }
.date { color: var(--muted); letter-spacing: .06em; }
.sample { margin-left: auto; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dim); border: 1px dashed rgba(212,175,55,.35); padding: .12rem .5rem; border-radius: 2px; }
.news-title { font-family: var(--font-display); font-weight: 700; color: var(--cream); letter-spacing: .04em; line-height: 1.25; }
.news-feature .news-title { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.news-row .news-title { font-size: 1.08rem; }
.news-text { color: var(--cream-dim); font-size: .94rem; line-height: 1.6; }
.more { margin-top: .35rem; font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.more i { font-style: normal; display: inline-block; transition: transform .2s; }
.news-feature:hover .more i { transform: translateX(5px); }
.news-list { border-top: 1px solid var(--line); }
.news-row { grid-template-columns: 200px 1fr; gap: 1.3rem; padding: 1.15rem 1.4rem; }
.news-row + li, .news-list li + li { border-top: 1px solid rgba(212,175,55,.14); }
.news-row .news-body { gap: .4rem; }

.portal-main .steps { display: flex; flex-direction: column; }
.steps-list { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; flex: 1; }
.steps-list li { display: flex; gap: 1rem; padding: 1.6rem 1.4rem; align-items: center; }
.steps-list li + li { border-top: 1px solid rgba(212,175,55,.16); }
.step-no { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--gold-light); border: 1px solid var(--line-strong); border-radius: 50%; background: radial-gradient(circle at 50% 30%, rgba(155,28,28,.45), rgba(0,0,0,.35)); box-shadow: 0 0 18px rgba(155,28,28,.3); }
.steps-list strong { display: block; font-family: var(--font-display); color: var(--cream); letter-spacing: .05em; margin-bottom: .2rem; }
.steps-list p { font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* widgets */
.widget .panel-head { padding: .85rem 1.2rem; }
.login-form { display: grid; gap: .8rem; padding: 1.2rem; }
.field { display: grid; gap: .3rem; }
.field > span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input { width: 100%; min-height: 44px; padding: .6rem .85rem; background: rgba(0,0,0,.45); border: 1px solid rgba(212,175,55,.3); border-radius: 3px; color: var(--cream); font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: #6e6556; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.16); }
.login-links { display: flex; justify-content: space-between; gap: .5rem; }
.login-links button { background: none; border: 0; padding: .2rem 0; color: var(--gold); font-size: .82rem; cursor: pointer; }
.login-links button:hover { color: var(--cream); text-decoration: underline; }
.draft-hint, .widget-note { font-size: .74rem; color: var(--muted); text-align: center; }
.widget-note { padding: 0 1.2rem 1.1rem; }

/* password rules + live checklist */
.pw-rules { margin-top: .1rem; padding: .65rem .75rem; border: 1px solid rgba(212,175,55,.2); border-radius: 3px; background: rgba(0,0,0,.28); }
.pw-rules-text { font-size: .74rem; line-height: 1.5; color: var(--muted); }
.pw-checks { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .8rem; margin-top: .5rem; }
.pw-checks li { position: relative; padding-left: 1.2rem; font-size: .72rem; color: var(--muted); transition: color .2s; }
.pw-checks li::before { content: "○"; position: absolute; left: 0; top: 0; color: var(--gold-dim); }
.pw-checks li.ok { color: #cfe3a8; } .pw-checks li.ok::before { content: "✓"; color: #9bd05b; }
.pw-checks li.bad { color: #f0a49c; } .pw-checks li.bad::before { content: "✕"; color: var(--red-bright); }
.pw-checks li.wide { grid-column: 1 / -1; }

.rank-list { padding: .4rem 1.2rem .6rem; }
.rank-list li { display: grid; grid-template-columns: 30px 42px 1fr; gap: .8rem; align-items: center; padding: .7rem 0; }
.rank-list li + li { border-top: 1px solid rgba(212,175,55,.13); }
.rk { display: grid; place-items: center; width: 30px; height: 30px; font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--muted); border: 1px solid rgba(212,175,55,.25); border-radius: 50%; }
.r1 .rk { color: #1b1306; background: linear-gradient(180deg, #f7e4a0, #c9a232); border-color: #f7e4a0; box-shadow: 0 0 14px rgba(212,175,55,.45); }
.r2 .rk { color: #14161a; background: linear-gradient(180deg, #e6e8ec, #a4a9b2); border-color: #e6e8ec; }
.r3 .rk { color: #1d1006; background: linear-gradient(180deg, #e0a56a, #a8672c); border-color: #e0a56a; }
.av { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(212,175,55,.3); background: url("../assets/kurt-ikon-256.webp") center/cover; opacity: .38; filter: grayscale(.6); }
.av-guild { background: radial-gradient(circle at 50% 35%, rgba(212,175,55,.25), rgba(0,0,0,.5)); position: relative; }
.av-guild::after { content: ""; position: absolute; inset: 11px; clip-path: polygon(50% 0, 100% 20%, 100% 60%, 50% 100%, 0 60%, 0 20%); background: rgba(212,175,55,.45); }
.nm { display: grid; gap: .3rem; min-width: 0; }
.nm small { font-size: .72rem; color: var(--muted); }
.sk { display: block; height: 11px; width: 62%; border-radius: 6px; background: linear-gradient(90deg, rgba(212,175,55,.1), rgba(212,175,55,.28), rgba(212,175,55,.1)); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.rank-list li:nth-child(2) .sk { width: 54%; } .rank-list li:nth-child(3) .sk { width: 68%; } .rank-list li:nth-child(4) .sk { width: 48%; } .rank-list li:nth-child(5) .sk { width: 58%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.discord-widget { text-align: center; padding: 1.6rem 1.3rem 1.4rem; background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(88,101,242,.2), transparent 70%), linear-gradient(180deg, var(--panel-a), var(--panel-b)); }
.dw-ico { width: 62px; height: 62px; margin: 0 auto .8rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(88,101,242,.16); color: var(--gold-light); }
.dw-ico svg { width: 32px; height: 32px; fill: currentColor; }
.dw-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.dw-text { margin: .45rem 0 .3rem; font-size: .9rem; }
.dw-count { margin-bottom: 1rem; font-size: .82rem; color: var(--muted); } .dw-count strong { color: var(--cream); }

/* ---------- classes ---------- */
.classes { overflow: hidden; background: #070504; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); --accent: #d4382c; }
.classes[data-class="ninja"] { --accent: #cf4668; }
.classes[data-class="sura"] { --accent: #9b63ff; }
.classes[data-class="saman"] { --accent: #5db4ff; }
.classes-bg { position: absolute; inset: 0; background: url("../assets/art/hero-1280.webp") 70% 40% / cover; filter: blur(5px) saturate(.8); transform: scale(1.06); opacity: .7; }
.classes-bg::after { content: ""; position: absolute; inset: -6px; background: linear-gradient(180deg, #070504 0%, rgba(7,5,4,.55) 28%, rgba(7,5,4,.6) 72%, #070504 100%), radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, rgba(7,5,4,.85) 100%); }
.classes .wrap { position: relative; z-index: 2; }
.class-stage { display: grid; grid-template-columns: 210px 340px minmax(0, 1fr); gap: 2.2rem; align-items: center; }
.class-tabs { display: grid; gap: .7rem; }
.class-tab { display: flex; align-items: center; gap: .9rem; padding: .55rem .9rem .55rem .55rem; background: linear-gradient(90deg, rgba(20,15,12,.85), rgba(12,9,8,.7)); border: 1px solid rgba(212,175,55,.2); border-radius: 3px; color: var(--cream-dim); cursor: pointer; text-align: left; transition: border-color .25s, background .25s, transform .25s, color .25s; }
.class-tab:hover { transform: translateX(4px); border-color: var(--line-strong); color: var(--gold-light); }
.class-tab.is-active { color: var(--cream); border-color: var(--accent); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 28%, #0c0908), rgba(12,9,8,.75)); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 30%, transparent); transform: translateX(8px); }
.ct-thumb { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-strong); background: #000; }
.ct-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.ct-name { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .92rem; }

.class-portrait { height: 620px; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; background: #050404; box-shadow: var(--shadow), 0 0 60px color-mix(in srgb, var(--accent) 22%, transparent); transition: box-shadow .5s; }
.portrait-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 55% at 50% 60%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); transition: background .5s; }
.class-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; transition: opacity .3s ease, transform .6s ease; }
.class-portrait.is-swapping img { opacity: 0; transform: scale(1.03); }
.class-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,.5)); pointer-events: none; }

.class-info { transition: opacity .3s ease, transform .3s ease; }
.class-info.is-swapping { opacity: 0; transform: translateY(10px); }
.class-role { display: inline-block; padding: .25rem .8rem; font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); background: color-mix(in srgb, var(--accent) 35%, #0b0807); border: 1px solid var(--accent); border-radius: 2px; transition: background .4s, border-color .4s; }
.class-name { margin-top: .7rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 3.8rem); letter-spacing: .08em; text-transform: uppercase; line-height: 1.05; color: var(--gold-light); text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 50%, transparent), 0 4px 20px rgba(0,0,0,.8); }
.class-desc { margin-top: 1.2rem; max-width: 34rem; font-size: 1.05rem; color: var(--cream); line-height: 1.7; }
.paths-title { margin: 1.8rem 0 .8rem; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.paths li { display: flex; gap: .85rem; padding: 1rem; background: rgba(8,6,5,.65); border: 1px solid rgba(212,175,55,.22); border-radius: 3px; backdrop-filter: blur(4px); }
.path-ico { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); background: rgba(0,0,0,.4); transition: color .4s, border-color .4s; }
.path-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.paths strong { display: block; font-family: var(--font-display); letter-spacing: .08em; color: var(--cream); margin-bottom: .15rem; }
.paths p { font-size: .84rem; line-height: 1.5; color: var(--muted); }
.class-foot { margin-top: 1.2rem; font-size: .76rem; color: var(--muted); }

/* ---------- why ---------- */
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.tile { flex: 0 1 calc(33.333% - 1rem); min-width: 260px; padding: 2.4rem 1.6rem 2rem; text-align: center; background: linear-gradient(180deg, rgba(30,22,17,.88), rgba(10,8,7,.94)); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); transition: transform .3s ease, border-color .3s, box-shadow .3s; }
.tile:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow), 0 0 40px rgba(155,28,28,.25); }
.tile-ico { position: relative; width: 86px; height: 86px; margin: 0 auto 1.6rem; display: grid; place-items: center; color: var(--gold-light); }
.tile-ico::before { content: ""; position: absolute; inset: 8px; transform: rotate(45deg); border: 1px solid var(--gold); background: radial-gradient(circle at 50% 35%, rgba(155,28,28,.6), rgba(30,6,6,.9)); box-shadow: 0 0 26px rgba(155,28,28,.45), inset 0 0 14px rgba(0,0,0,.6); transition: box-shadow .3s; }
.tile-ico::after { content: ""; position: absolute; inset: 0; transform: rotate(45deg); border: 1px solid rgba(212,175,55,.3); }
.tile:hover .tile-ico::before { box-shadow: 0 0 36px rgba(210,58,46,.65), inset 0 0 14px rgba(0,0,0,.6); }
.tile-ico svg { position: relative; z-index: 2; width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(212,175,55,.5)); }
.tile-ico b { position: absolute; z-index: 3; font-family: var(--font-display); font-size: .86rem; color: var(--gold-light); margin-top: 1px; }
.tile h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .6rem; }
.tile p { font-size: .94rem; color: var(--cream-dim); line-height: 1.6; }

/* ---------- download ---------- */
.download { background: linear-gradient(180deg, transparent, rgba(20,10,8,.4) 40%, transparent); }
.dl-panel { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 4px; background: #0a0807; box-shadow: var(--shadow); }
.dl-art { position: relative; height: 260px; background: url("../assets/art/classes-strip.webp") 50% 22% / cover; }
.dl-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,7,.25) 0%, rgba(10,8,7,.35) 45%, #0a0807 100%), linear-gradient(90deg, rgba(10,8,7,.55), transparent 30%, transparent 70%, rgba(10,8,7,.55)); }
.dl-body { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; padding: 0 2.6rem 2.6rem; margin-top: -90px; }
.dl-main h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.dl-main > p { margin: .8rem 0 1.5rem; max-width: 30rem; }
.dl-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 1.8rem 0 0; padding-top: 1.3rem; border-top: 1px solid rgba(212,175,55,.2); }
.dl-meta dt { font-family: var(--font-display); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dl-meta dd { margin: .1rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--cream); }
.reqs { background: rgba(6,5,4,.78); border: 1px solid rgba(212,175,55,.25); border-radius: 3px; padding: 1.4rem 1.5rem; backdrop-filter: blur(6px); }
.reqs h4 { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.reqs table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.reqs th, .reqs td { padding: .6rem .4rem; text-align: left; border-bottom: 1px solid rgba(212,175,55,.14); }
.reqs thead th { font-family: var(--font-display); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.reqs tbody th { font-weight: 600; color: var(--cream-dim); }
.reqs td { color: var(--muted); }
.reqs-note { margin-top: .8rem; font-size: .76rem; color: var(--muted); }

/* ---------- discord band ---------- */
.discord-band { position: relative; overflow: hidden; padding: 4.2rem 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.db-bg { position: absolute; inset: 0; background: url("../assets/art/hero-1280.webp") 85% 30% / cover; filter: saturate(.9); }
.db-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(74,14,14,.94) 0%, rgba(40,8,8,.88) 55%, rgba(8,6,5,.7) 100%); }
.db-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 2.2rem; }
.db-ico { flex: 0 0 auto; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); background: rgba(0,0,0,.4); color: var(--gold-light); box-shadow: 0 0 40px rgba(212,175,55,.2); }
.db-ico svg { width: 50px; height: 50px; fill: currentColor; }
.db-text { flex: 1; }
.db-text h2 { margin: .3rem 0 .5rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); text-shadow: 0 3px 20px rgba(0,0,0,.7); }
.db-text p:last-child { max-width: 38rem; color: var(--cream); opacity: .9; }

/* ---------- footer ---------- */
.site-footer { background: #040302; border-top: 1px solid var(--line); padding-top: 3.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2.4rem; padding-bottom: 2.6rem; }
.f-brand p { margin: 1.1rem 0 1.2rem; max-width: 22rem; font-size: .9rem; color: var(--muted); }
.socials { display: flex; gap: .6rem; }
.socials button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(212,175,55,.06); color: var(--gold); cursor: pointer; transition: background .2s, transform .2s, color .2s; }
.socials button:hover { background: rgba(212,175,55,.2); color: var(--gold-light); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }
.f-col { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.f-col h3 { margin-bottom: .5rem; font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); position: relative; padding-bottom: .7rem; }
.f-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.f-col a, .f-col button { background: none; border: 0; padding: 0; font-size: .92rem; color: var(--cream-dim); cursor: pointer; text-align: left; }
.f-col a:hover, .f-col button:hover { color: var(--gold-light); }
.footer-bottom { padding: 1.6rem 0 2.2rem; border-top: 1px solid rgba(212,175,55,.16); display: grid; gap: .7rem; }
.copyright { font-size: .86rem; color: var(--cream-dim); }
.disclaimer { max-width: 62rem; font-size: .76rem; line-height: 1.6; color: var(--muted); }

/* ---------- modal ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.2rem; overflow-y: auto; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(440px, 100%); margin: auto; padding: 2rem 1.7rem 1.7rem; background: linear-gradient(180deg, #1c1611, #0e0b09); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.7); text-align: center; animation: pop .3s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-card h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .7rem; }
.modal-card > p { margin-bottom: 1.3rem; color: var(--cream-dim); }
.modal-form { display: grid; gap: .85rem; text-align: left; margin-top: 1rem; }
.modal-card .draft-hint { margin-top: .2rem; }
.modal-close { position: absolute; top: .6rem; right: .7rem; width: 36px; height: 36px; background: none; border: 0; color: var(--gold); font-size: 1.5rem; line-height: 1; cursor: pointer; }
body.modal-open { overflow: hidden; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .portal-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 1.4rem; }
  .class-stage { grid-template-columns: 190px 300px minmax(0, 1fr); gap: 1.6rem; }
  .class-portrait { height: 560px; }
  .paths { grid-template-columns: 1fr; }
  .news-feature { grid-template-columns: 1fr; }
  .dl-body { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1.2rem 1.4rem; background: rgba(8,6,5,.98); border-bottom: 1px solid var(--line-strong); box-shadow: 0 24px 40px rgba(0,0,0,.6); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .site-header.is-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-header.is-open { background: rgba(8,6,5,.98); border-bottom-color: var(--line); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: .9rem 0; border-bottom: 1px solid rgba(212,175,55,.12); font-size: .9rem; }
  .site-nav ul a::after { display: none; }
  .nav-actions { margin-top: 1rem; } .nav-actions .btn { flex: 1; }
  .portal-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-side { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
  .portal-side .discord-widget { grid-column: 1 / -1; }
  .class-stage { grid-template-columns: 1fr; gap: 1.6rem; }
  .class-tabs { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .class-tab { flex-direction: column; padding: .6rem .3rem; gap: .5rem; text-align: center; }
  .class-tab:hover, .class-tab.is-active { transform: none; }
  .ct-name { font-size: .72rem; letter-spacing: .08em; }
  .class-portrait { height: 480px; max-width: 380px; width: 100%; margin-inline: auto; }
  .class-info { text-align: center; }
  .class-desc { margin-inline: auto; }
  .class-info .divider-left { margin-inline: auto; justify-content: center; }
  .class-info .divider-left span { background: linear-gradient(90deg, transparent, var(--gold)); }
  .paths { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .db-inner { flex-direction: column; text-align: center; }
  .db-text p:last-child { margin-inline: auto; }
}
@media (max-width: 720px) {
  .section { padding: 4rem 0; }
  .hero { min-height: 760px; }
  .status-bar { grid-template-columns: 1fr 1fr; }
  .status-item { padding: .9rem 1rem; gap: .7rem; }
  .status-item:nth-child(3)::before { display: none; }
  .status-item:nth-child(n+3) { border-top: 1px solid rgba(212,175,55,.18); }
  .status-ico { width: 38px; height: 38px; } .status-ico svg { width: 18px; height: 18px; }
  .status-txt strong { font-size: 1.05rem; } .status-txt small { font-size: .6rem; letter-spacing: .1em; }
  .portal { padding-top: 9rem; }
  .portal-side { grid-template-columns: minmax(0,1fr); }
  .tabs[data-tabs="news"] { width: 100%; }
  .tabs[data-tabs="news"] .tab { flex: 1; padding: .5rem .3rem; font-size: .66rem; letter-spacing: .06em; }
  .news-row { grid-template-columns: 112px 1fr; gap: .9rem; padding: 1rem 1.1rem; align-items: center; }
  .news-row .news-img { aspect-ratio: 1; }
  .news-row .news-text, .news-row .sample { display: none; }
  .news-feature { padding: 1.1rem; }
  
  .steps-list li + li { border-left: 0; border-top: 1px solid rgba(212,175,55,.16); }
  .dl-body { padding: 1.6rem 1.2rem; }
  .db-ico { width: 72px; height: 72px; } .db-ico svg { width: 38px; height: 38px; }
}
@media (max-width: 560px) {
  .brand-word { font-size: 1rem; letter-spacing: .1em; }
  .hero-actions { flex-direction: column; width: min(100%, 340px); }
  .hero-actions .btn { width: 100%; }
  .btn-xl { padding: .9rem 1.4rem; min-height: 58px; }
  .tagline { letter-spacing: .06em; }
  .tile { flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.2rem; }
  .class-portrait { height: 440px; }
  .pw-checks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img, .hero-logo::before, .dot, .sk { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tab-panel.is-active, .modal-card { animation: none; }
  .btn::after { display: none; }
  * { transition-duration: .01ms !important; }
}

.why { background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(155,28,28,.16), transparent 70%); }
.portal { background: radial-gradient(ellipse 50% 30% at 80% 0%, rgba(155,28,28,.12), transparent 70%); }
@media (max-width: 980px) { .portal-main { grid-template-rows: none; } }

.hero-bg, .classes { contain: paint; }
html { overflow-x: clip; }


/* =====================================================
   Inner pages (v3)
   ===================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.panel-title a { color: inherit; } .panel-title a:hover { color: var(--cream); }
.login-links a { color: var(--gold); font-size: .82rem; } .login-links a:hover { color: var(--cream); text-decoration: underline; }
.widget-link { display: block; padding: 0 1.2rem 1.2rem; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.widget-link i { font-style: normal; display: inline-block; transition: transform .2s; } .widget-link:hover i { transform: translateX(4px); }
.steps-list strong a { color: inherit; } .steps-list strong a:hover { color: var(--gold-light); }
.news-empty { display: grid; grid-template-columns: 200px 1fr; gap: 1.4rem; align-items: center; padding: 1.6rem 1.4rem; }
.news-empty strong { font-family: var(--font-display); color: var(--cream); letter-spacing: .05em; font-size: 1.1rem; }
.news-empty p { margin-top: .4rem; color: var(--muted); }
.reqs-lead { margin: 0 0 1.1rem; font-size: .92rem; color: var(--cream-dim); }
.btn.is-current { filter: brightness(1.12); }

/* page hero */
body.inner main { min-height: 60vh; }
.page-hero { position: relative; overflow: hidden; padding: calc(66px + 3.4rem) 0 3rem; text-align: center; border-bottom: 1px solid var(--line); contain: paint; }
.page-hero-bg { position: absolute; inset: 0; background: url("../assets/art/hero-1280.webp") 50% 38% / cover; opacity: .55; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,5,4,.8) 0%, rgba(6,5,4,.35) 45%, var(--bg-deep) 100%), radial-gradient(ellipse 70% 100% at 50% 40%, transparent 40%, rgba(6,5,4,.7) 100%); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { margin-top: .35rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); text-shadow: 0 0 36px rgba(212,175,55,.25), 0 3px 18px rgba(0,0,0,.85); }
.page-hero .lede { color: var(--cream-dim); text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.breadcrumb { display: flex; justify-content: center; align-items: center; gap: .55rem; margin-bottom: 1.4rem; font-size: .82rem; color: var(--muted); }
.breadcrumb a { color: var(--cream-dim); } .breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb [aria-current] { color: var(--gold); }
.inner-section { padding-top: 3.4rem; }

/* two-column page layout */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.8rem; align-items: start; }
.col-main, .col-side { display: grid; gap: 1.8rem; min-width: 0; align-content: start; }
.col-side { position: sticky; top: 90px; }
.col-side > *, .col-main > * { min-width: 0; }

/* notices */
.notice { padding: 1rem 1.2rem; border-radius: 3px; border: 1px solid var(--line-strong); font-size: .94rem; line-height: 1.6; }
.notice strong { color: var(--gold-light); }
.notice-gold { background: linear-gradient(180deg, rgba(212,175,55,.14), rgba(212,175,55,.06)); color: var(--cream); }
.notice-soft { background: rgba(212,175,55,.06); color: var(--cream-dim); border-color: rgba(212,175,55,.25); }
.notice-warn { background: rgba(230,160,40,.12); border-color: rgba(230,160,40,.5); color: var(--cream); }
.todo { background: #f2c94c; color: #1b1306; padding: .05em .4em; border-radius: 2px; font-weight: 600; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0; }

/* download page */
.dl-card { padding: 2rem 2rem 1.8rem; text-align: center; background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(155,28,28,.28), transparent 70%), linear-gradient(180deg, var(--panel-a), var(--panel-b)); }
.status-pill { display: inline-block; padding: .25rem .9rem; font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); border: 1px solid var(--gold); border-radius: 999px; background: rgba(212,175,55,.1); }
.dl-card h2 { margin: .9rem 0 .5rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.dl-card-head p { max-width: 34rem; margin-inline: auto; }
.dl-card-actions { margin: 1.6rem 0 .6rem; }
.btn.is-disabled { filter: saturate(.55) brightness(.9); cursor: not-allowed; }
.dl-note { font-size: .8rem; color: var(--muted); }
.dl-meta-4 { justify-content: center; text-align: center; gap: 1.2rem 2.4rem; }
.safe-note { display: flex; gap: .6rem; align-items: flex-start; justify-content: center; margin-top: 1.3rem; padding: .8rem 1rem; text-align: left; font-size: .86rem; color: var(--cream-dim); background: rgba(0,0,0,.3); border: 1px solid rgba(212,175,55,.2); border-radius: 3px; }
.safe-note svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.install-steps { padding: .4rem 1.4rem 1rem; counter-reset: s; }
.install-steps li { display: flex; gap: 1rem; padding: 1.1rem 0; align-items: flex-start; }
.install-steps li + li { border-top: 1px solid rgba(212,175,55,.14); }
.install-steps strong { display: block; font-family: var(--font-display); color: var(--cream); letter-spacing: .05em; margin-bottom: .15rem; }
.install-steps p { color: var(--cream-dim); font-size: .94rem; }
.install-steps a, .faq a, .side-text a, .prose a, .post a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(212,175,55,.5); }
.faq { padding: .4rem 1.4rem 1.2rem; }
.faq details { border-bottom: 1px solid rgba(212,175,55,.14); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; position: relative; list-style: none; font-weight: 600; color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .75rem; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.1rem; color: var(--cream-dim); font-size: .94rem; }
.req-body { padding: 1.2rem; display: grid; gap: 1rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { padding: .7rem .5rem; text-align: left; border-bottom: 1px solid rgba(212,175,55,.14); vertical-align: top; }
.data-table thead th { font-family: var(--font-display); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.data-table tbody th { font-weight: 600; color: var(--cream-dim); }
.data-table td { color: var(--cream); }
.fact-list { padding: .4rem 1.2rem 1rem; }
.fact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid rgba(212,175,55,.14); font-size: .92rem; }
.fact-list li:last-child { border-bottom: 0; }
.fact-list span { color: var(--muted); } .fact-list strong { color: var(--gold-light); font-family: var(--font-display); text-align: right; letter-spacing: .04em; }

/* register */
.reg-form { display: grid; gap: 1rem; padding: 1.4rem; }
.reg-form .hint { color: var(--muted); font-size: .76rem; }
.reg-form .err { color: #f0a49c; font-size: .8rem; min-height: 0; }
.reg-form .err:empty { display: none; }
.field input[aria-invalid="true"] { border-color: var(--red-bright); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--cream-dim); cursor: pointer; }
.check input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.form-result { padding: 1rem 1.2rem; border-radius: 3px; border: 1px solid var(--line-strong); background: rgba(212,175,55,.1); color: var(--cream); font-size: .94rem; }
.form-result[hidden] { display: none; }
.form-result.ok { border-color: #8fbf5a; background: rgba(143,191,90,.1); }
.tip-list { padding: 1rem 1.2rem 1.2rem 2.2rem; list-style: disc; color: var(--cream-dim); font-size: .92rem; }
.tip-list li { padding: .3rem 0; } .tip-list li::marker { color: var(--gold); }
.side-text { padding: 1.1rem 1.2rem 1.3rem; color: var(--cream-dim); font-size: .94rem; }
.two-col-form .reg-card { max-width: none; }

/* ranking page */
.empty-state { margin-bottom: 1.8rem; padding: 2.2rem 1.6rem; text-align: center; background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(155,28,28,.22), transparent 70%), linear-gradient(180deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--line-strong); border-radius: 4px; }
.empty-state svg { width: 54px; height: 54px; margin-bottom: .8rem; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(212,175,55,.4)); }
.empty-state h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.8rem); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); }
.empty-state p { max-width: 40rem; margin: .7rem auto 0; color: var(--cream-dim); }
.table-scroll { overflow-x: auto; padding: .4rem 1rem .6rem; }
.rank-table { min-width: 560px; }
.rank-table td { vertical-align: middle; }
.rank-table .rk-cell { width: 64px; }
.rank-table tbody tr:hover { background: rgba(212,175,55,.05); }
.rank-table .sk { width: 70%; max-width: 220px; } .rank-table .sk-s { width: 50%; max-width: 120px; }
.table-foot { padding: .2rem 1.4rem 1.2rem; text-align: center; font-size: .8rem; color: var(--muted); }

/* post / prose */
.post-cover { aspect-ratio: 21/8; overflow: hidden; border-bottom: 1px solid var(--line); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(.9); }
.post-body { padding: 1.8rem clamp(1.2rem, 4vw, 2.4rem) 2.2rem; }
.post-body h2 { margin: .6rem 0 .8rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: .05em; color: var(--gold-light); line-height: 1.2; }
.post-body h3, .prose h2 { margin: 1.8rem 0 .7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); }
.post-lead { font-size: 1.12rem; color: var(--cream); }
.post-body p, .prose p { margin-top: .8rem; }
.check-list li { position: relative; padding: .45rem 0 .45rem 1.7rem; }
.check-list li::before { content: ""; position: absolute; left: .2rem; top: 1rem; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 8px rgba(212,175,55,.6); }
.todo-list li::before { background: transparent; border: 1px solid var(--gold); box-shadow: none; }
.signature { font-family: var(--font-display); color: var(--gold); letter-spacing: .1em; }
.link-list { padding: .4rem 1.2rem 1rem; }
.link-list a { display: flex; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid rgba(212,175,55,.14); color: var(--cream-dim); }
.link-list li:last-child a { border-bottom: 0; } .link-list a:hover { color: var(--gold-light); }
.link-list i { font-style: normal; color: var(--gold); }
.prose { padding: clamp(1.2rem, 3vw, 2.2rem); }
.prose .rule-sec { scroll-margin-top: 90px; }
.prose .rule-sec:first-of-type h2 { margin-top: 1.4rem; }
.rule-list { margin-top: .6rem; }
.rule-list li { position: relative; padding: .5rem 0 .5rem 1.7rem; border-bottom: 1px solid rgba(212,175,55,.09); }
.rule-list li:last-child { border-bottom: 0; }
.rule-list li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); opacity: .85; }
.meta-line { margin-top: 1rem; color: var(--muted); font-size: .85rem; }
.toc { padding: .6rem 1.2rem 1.1rem 2.6rem; list-style: decimal; font-size: .9rem; }
.toc li { padding: .3rem 0; } .toc li::marker { color: var(--gold); font-family: var(--font-display); }
.toc a { color: var(--cream-dim); } .toc a:hover { color: var(--gold-light); }

/* 404 */
.notfound { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 8rem 0 5rem; text-align: center; overflow: hidden; contain: paint; }
.nf-bg { position: absolute; inset: 0; background: url("../assets/art/hero-1280.webp") 40% 40% / cover; opacity: .5; }
.nf-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 45%, rgba(6,5,4,.35), var(--bg-deep) 85%); }
.nf-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: .6rem; }
.nf-logo { width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--gold); box-shadow: 0 0 40px rgba(155,28,28,.6); }
.nf-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; letter-spacing: .06em; background: linear-gradient(180deg, #f7e4a0, #b8902a 55%, #7a1a14); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 6px 24px rgba(0,0,0,.7)); }
.notfound h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .08em; color: var(--gold-light); }
.nf-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.2rem; }

@media (max-width: 1100px) {
  .two-col { grid-template-columns: minmax(0, 1fr) 300px; gap: 1.4rem; }
}
@media (max-width: 980px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; }
  .news-empty { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .page-hero { padding: calc(66px + 2.4rem) 0 2.2rem; }
  .dl-card { padding: 1.4rem 1.1rem; }
  .btn-xl { width: 100%; }
}
