/* Account panel: same look as l2project4.com (beta.html / coming soon page). */
@font-face { font-family: 'Cinzel'; font-weight: 400 900; font-display: swap; src: url('https://l2project4.com/fonts/cinzel-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url('https://l2project4.com/fonts/inter-latin.woff2') format('woff2'); }
:root {
    --gold: #d4a85a; --gold-2: #a87a35; --gold-light: #f6e2b3; --glow: rgba(226, 183, 102, .35);
    --bg: #07080c; --card: rgba(18, 21, 28, .82); --text: #e9e4d8; --muted: #a39c8c; --line: rgba(212, 168, 90, .28);
    --ok: #7fd18b; --bad: #f3b3a8; --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
       -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--gold); }
.bg, .bg video, .shade { position: fixed; inset: 0; width: 100%; height: 100%; }
.bg video { object-fit: cover; filter: saturate(.7) brightness(.35); }
.shade { background: radial-gradient(ellipse 80% 70% at 50% 30%, rgba(7,8,12,.35), rgba(7,8,12,.92) 70%, #07080c); }

.top { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 22px 16px 0; text-align: center; }
.logo { width: min(240px, 60vw); height: auto; filter: drop-shadow(0 0 24px var(--glow)); }
/* bar of the logged in pages: logo, Beta/Live and account menu on the first row, the tabs on a second row at every width */
.bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px max(16px, calc((100% - 1100px) / 2)) 0;
       background: rgba(7, 8, 12, .86); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.brand img { display: block; height: 34px; width: auto; filter: drop-shadow(0 0 14px var(--glow)); }
.tabs { order: 3; flex-basis: 100%; display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; border-top: 1px solid rgba(212,168,90,.1); padding: 4px 0; }
/* centered while they fit, scroll from the first tab when they don't (justify-content: center would cut the first ones off) */
.tabs a:first-child { margin-left: auto; }
.tabs a:last-child { margin-right: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; padding: 10px 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: .08em;
          text-transform: uppercase; white-space: nowrap; border-radius: 10px; transition: color .2s, background .2s; }
.tabs a:hover { color: var(--gold-light); background: rgba(212,168,90,.08); }
.tabs a[aria-current] { color: var(--gold-light); }
.tabs a[aria-current]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #f0cf8a, #c9974a); }
.side { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.realm { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7,8,12,.6); }
.realm a { padding: 5px 13px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.realm a:hover { color: var(--gold-light); }
.realm a[aria-current] { color: #1a1206; background: linear-gradient(180deg, #f0cf8a, #c9974a); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light);
          font: 700 16px 'Cinzel', Georgia, serif; background: radial-gradient(circle at 30% 25%, rgba(240,207,138,.3), rgba(7,8,12,.9)); transition: box-shadow .2s; }
.menu summary:hover .avatar, .menu[open] .avatar { box-shadow: 0 0 18px var(--glow); }
.menu summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.drop { position: absolute; right: 0; top: calc(100% + 10px); width: 250px; display: grid; padding: 8px; border: 1px solid var(--line); border-radius: 14px;
        background: rgba(14, 16, 22, .97); box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.drop-who { display: grid; padding: 8px 10px 10px; color: var(--gold-light); font-weight: 600; word-break: break-all; }
.drop a, .drop button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left;
                        text-decoration: none; font: 500 14px 'Inter', sans-serif; letter-spacing: 0; text-transform: none; }
.drop a:hover, .drop button:hover, .drop a[aria-current] { background: rgba(212,168,90,.12); color: var(--gold-light); }
.drop hr { border: 0; border-top: 1px solid rgba(212,168,90,.14); margin: 6px 4px; }

main { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 22px 16px 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
section { scroll-margin-top: 16px; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); backdrop-filter: blur(6px); min-width: 0; }
.narrow { max-width: 420px; width: 100%; margin: 20px auto 0; }
h1 { font: 700 clamp(26px, 5vw, 38px)/1.15 'Cinzel', Georgia, serif; color: var(--gold-light); letter-spacing: .02em; margin-bottom: 6px; }
h2 { font: 700 19px/1.3 'Cinzel', Georgia, serif; color: var(--gold-light); margin-bottom: 12px; letter-spacing: .03em; }
h3 { font: 600 14px/1.3 'Inter', sans-serif; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; margin: 4px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.big { font: 700 44px/1.1 'Cinzel', Georgia, serif; color: var(--gold-light); text-shadow: 0 0 24px var(--glow); }
.big small { font: 500 15px 'Inter', sans-serif; color: var(--muted); }

.form { display: grid; gap: 12px; margin-top: 8px; }
.form.row { grid-template-columns: 1fr auto; }
label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
input, select { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: rgba(7,8,12,.7); color: var(--text); font: inherit; }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px; }
.eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
       border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.eye:hover, .eye[aria-pressed="true"] { color: var(--gold-light); }
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
label.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); line-height: 1.5; }
label.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--gold); }
button { cursor: pointer; font: 700 14px/1 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; }
button.gold { padding: 14px 26px; border: 0; color: #1a1206; background: linear-gradient(180deg, #f0cf8a, #c9974a);
              box-shadow: 0 8px 30px rgba(212,168,90,.25), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
button.gold:hover, button.gold:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(212,168,90,.4), inset 0 1px 0 rgba(255,255,255,.5); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.ghost { padding: 8px 14px; background: transparent; color: var(--muted); border: 1px solid var(--line); font-size: 12px; }
button.ghost:hover { color: var(--gold-light); border-color: var(--gold); }
a.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; color: #1a1206; background: linear-gradient(180deg, #f0cf8a, #c9974a); text-decoration: none;
        font: 700 13px/1 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
a.btn.ghost { color: var(--text); background: transparent; border: 1px solid var(--line); }
a.btn:hover { filter: brightness(1.08); } a.btn.ghost:hover { color: var(--gold-light); border-color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.steps { margin-left: 20px; display: grid; gap: 6px; }
.doc h2 { margin: 22px 0 8px; font-size: 17px; } .doc ul { margin: 6px 0 0 20px; display: grid; gap: 4px; } .doc { color: var(--text); }
button:focus-visible, a.btn:focus-visible, .pack input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.packs { display: grid; gap: 8px; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 520px) { .packs { grid-template-columns: repeat(3, 1fr); } }
.pack { cursor: pointer; }
.pack input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pack span { display: grid; place-items: center; gap: 2px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7,8,12,.55);
             color: var(--muted); transition: border-color .2s, background .2s; }
.pack b { font: 700 22px/1 'Cinzel', Georgia, serif; color: var(--gold-light); }
.pack em { font-style: normal; font-weight: 700; color: var(--text); }
.pack input:checked + span { border-color: var(--gold); background: rgba(212,168,90,.14); box-shadow: 0 0 20px rgba(212,168,90,.2); }

.flash { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.flash.ok { border-color: rgba(127,209,139,.5); color: var(--ok); }
.flash.err { border-color: rgba(212,90,90,.5); color: var(--bad); background: rgba(40,14,18,.82); }
.card .flash { margin: 8px 0; display: inline-block; padding: 4px 12px; }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid rgba(212,168,90,.1); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
        background: rgba(163,156,140,.15); color: var(--muted); }
.chip.alive { background: rgba(127,209,139,.15); color: var(--ok); }
.chip.dead { background: rgba(212,90,90,.15); color: var(--bad); }
.chip.busy { background: rgba(212,168,90,.15); color: var(--gold-light); }

.status { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); }
.dot.up { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.dot.down { background: #d45a5a; box-shadow: 0 0 12px #d45a5a; }
.bosses { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.boss { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(212,168,90,.14); border-radius: 10px; font-size: 14px; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); margin-top: 10px; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; } }
.stats div { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid rgba(212,168,90,.16); border-radius: 12px;
             background: linear-gradient(180deg, rgba(212,168,90,.07), rgba(7,8,12,.55)); }
.stats b { font: 700 26px/1.1 'Cinzel', Georgia, serif; color: var(--text); font-variant-numeric: tabular-nums; }
.stats span { order: -1; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.stats .gold { border-color: var(--line); } .stats .gold b { color: var(--gold-light); text-shadow: 0 0 18px var(--glow); }
.stats .ok b { color: var(--ok); } .stats .bad { border-color: rgba(212,90,90,.4); } .stats .bad b { color: var(--bad); }
.kv { display: grid; gap: 4px 14px; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; padding: 12px 14px; margin-bottom: 4px;
      border: 1px solid rgba(212,168,90,.14); border-radius: 12px; background: rgba(7,8,12,.45); }
.kv dt { font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.kv dd { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.kv small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }
code { font: 13px ui-monospace, Consolas, monospace; color: var(--gold-light); word-break: break-all; }
.ranks { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.rank { min-width: 0; overflow-x: auto; }
.terms { margin: 12px 0 0 20px; display: grid; gap: 10px; }
pre { white-space: pre-wrap; word-break: break-word; font: 12px/1.5 ui-monospace, Consolas, monospace; color: var(--muted); max-height: 520px; overflow: auto;
      padding: 12px; border-radius: 10px; background: rgba(7,8,12,.7); border: 1px solid var(--line); }
footer { position: relative; z-index: 2; text-align: center; padding: 0 16px 28px; font-size: 12px; letter-spacing: .12em; color: rgba(163,156,140,.7); }
footer a { color: inherit; }
@media (max-width: 600px) { .big { font-size: 36px; } .card { padding: 16px; } }

/* two-step login */
.qr { display: block; width: max-content; background: #fff; padding: 10px; border-radius: 8px; margin: 10px 0; line-height: 0 }
.qr svg { width: 200px; height: 200px }
.codes { columns: 2; list-style: none; padding: 0; font-size: 1.1em }
.codes li { padding: 4px 0 }
