@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&display=swap');
:root{--metal:#f0d28d;--ink:#110f14;--border:#be9251}
.auth-body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 15% 15%,#3e3d57,transparent 35%),radial-gradient(ellipse at 85% 80%,#442b21,transparent 45%),linear-gradient(135deg,#11131d,#17141a 60%,#221b18);color:#f6e6c8;font:15px/1.5 system-ui,Arial,sans-serif;overflow-x:hidden}
.auth-body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.12;background:repeating-linear-gradient(110deg,transparent 0 2px,#e6c990 2.5px 3px,transparent 4px 42px)}
.auth-layout{min-height:100svh;max-width:1200px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,480px);gap:5vw;align-items:center;padding:35px 30px;box-sizing:border-box}
.auth-brand{text-align:center;position:relative;padding:40px 10px;animation:auth-enter .85s ease-out both}
.auth-brand h1{font:800 clamp(52px,8vw,116px)/1.1 Cinzel,Georgia,serif;letter-spacing:.05em;margin:20px 0;color:#ffe2a0;text-shadow:0 3px 3px #000,0 0 36px #e8a33b65}
.auth-brand p{font-size:clamp(18px,2.4vw,26px);max-width:540px;margin:15px auto;color:#ded0ae;text-shadow:0 2px 6px #000}
.auth-mark,.auth-heraldry{color:#cdb889;letter-spacing:.25em;font-size:12px;font-weight:700}
.auth-heraldry{margin-top:50px;display:flex;align-items:center;justify-content:center;gap:15px}
.auth-heraldry span{white-space:nowrap}
.auth-card{position:relative;background:linear-gradient(145deg,#29262eec,#16151aeF 58%,#201b1bea);border:2px solid #9e7647;border-radius:20px;padding:clamp(22px,3.4vw,38px);box-shadow:0 22px 80px #000a,inset 0 1px 1px #ffd48c55;animation:auth-enter .8s .15s ease-out both}
.auth-card:before{content:"";pointer-events:none;position:absolute;inset:7px;border:1px solid #e4b97d25;border-radius:14px}
.auth-card h2{font:700 clamp(22px,3vw,31px) Cinzel,Georgia,serif;letter-spacing:.02em;color:#ffe1aa;text-align:center;margin:0 0 5px}
.auth-muted{color:#bfb2a3;text-align:center;margin:6px 0 23px;font-size:13px}
.auth-label{display:block;font-weight:650;margin-bottom:14px;color:#e8dbbd}
.auth-label input{display:block;box-sizing:border-box;width:100%;height:44px;margin-top:7px;padding:0 13px;border:1px solid #8f735b;background:#100e12;color:#fff3df;border-radius:8px;font-size:15px;outline:none}
.auth-label input:focus{border-color:#f4c16b;box-shadow:0 0 0 3px #ba803440}
.auth-error{color:#ffe1cd;background:#73352d80;border:1px solid #d47560;padding:10px 12px;border-radius:8px}
.auth-choice{display:grid;grid-template-columns:1fr 1fr;gap:14px;border:0;padding:0;margin:16px 0 22px;min-width:0}
.auth-choice legend{font-weight:700;float:left;width:100%;margin-bottom:9px}
.hero-card{cursor:pointer;min-width:0;position:relative}
.hero-card input{position:absolute;opacity:0}
.hero-frame{display:flex;flex-direction:column;overflow:hidden;border-radius:11px;background:#231c1a;border:2px solid #7c6648;transition:border-color .2s,transform .2s,box-shadow .2s}
.hero-frame img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;object-position:center 26%}
.hero-frame b{padding:8px;text-align:center;color:#ddc59a;font-size:15px}
.hero-card:hover .hero-frame{transform:translateY(-3px);border-color:#d4ac67}
.hero-card input:checked + .hero-frame{border-color:#ffdf83;box-shadow:0 0 0 3px #f0b64533,0 4px 22px #dca34050}
.hero-card input:focus-visible + .hero-frame{outline:3px solid #ffe3a1;outline-offset:3px}
.auth-submit{width:100%;border:1px solid #f7db87;background:linear-gradient(#d9a84f,#85501f);color:#fff5d8;font-size:18px;font-weight:800;min-height:49px;cursor:pointer;border-radius:8px;text-shadow:0 2px 2px #3b200f;box-shadow:inset 0 2px 2px #ffe49c8c,0 4px 16px #0007}
.auth-submit:hover{filter:brightness(1.15)}.auth-bottom{text-align:center;font-size:14px;color:#c1b6a5;margin:22px 0 0}.auth-bottom a{color:#ffe1a3;font-weight:800}
.discover-player-plate{position:fixed;z-index:10012;right:13px;top:10px;min-height:48px;max-width:235px;background:linear-gradient(135deg,#33261e,#161719);border:1px solid #d4ac61;border-radius:9px;box-shadow:0 2px 15px #0008;display:flex;align-items:center;gap:8px;padding:4px 8px 4px 4px;color:#ffe3b4;font-family:Arial,sans-serif}
.discover-player-plate>img{width:43px;height:43px;object-fit:cover;object-position:center 27%;border:1px solid #d6b475;border-radius:6px}
.discover-player-plate strong{font-size:13px;display:block;max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.discover-player-plate small{display:block;font-size:11px;color:#d3bf97}
.discover-logout{text-decoration:none;font-size:22px;color:#e2cb9d;border-left:1px solid #6a573d;padding-left:8px}
.discover-loading{z-index:20000;position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#343049,#12111b 55%,#0a090e);color:#f8e3ac;text-align:center;transition:opacity .6s ease,visibility .6s ease;pointer-events:all}
.discover-loading.done{opacity:0;visibility:hidden;pointer-events:none}
.loading-emblem{display:grid;place-items:center;width:100px;height:100px;border:3px solid #d9ae5b;border-radius:50%;font-size:65px;box-shadow:0 0 35px #dbac5350;animation:emblem-pulse 2s ease-in-out infinite}
.discover-loading h2{font:800 clamp(34px,7vw,72px) Cinzel,Georgia,serif;margin:22px 0 0;letter-spacing:.12em;text-shadow:0 0 28px #d89c4d}
.discover-loading p{font:15px Arial,sans-serif;color:#ceb98b}
.loading-track{height:16px;width:min(400px,75vw);border:2px solid #a77d47;background:#100e18;border-radius:12px;padding:3px;box-shadow:0 5px 18px #0009}
.loading-progress{height:100%;width:0;border-radius:6px;background:linear-gradient(90deg,#80501f,#e5b75d,#fff0ae);box-shadow:0 0 18px #f4ca73a0;transition:width .25s ease-out;position:relative;overflow:hidden}
.loading-progress:after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 25%,#fff9 50%,transparent 75%);animation:loading-glint .85s linear infinite}
.loading-sparks{position:absolute;width:160px;height:160px;border:2px dashed #cfb47d55;border-radius:50%;animation:rotate-sparks 6s linear infinite}
#loadingPercent{margin-top:9px;font:700 14px Arial,sans-serif;color:#eac889}
@keyframes rotate-sparks{to{transform:rotate(360deg)}}@keyframes emblem-pulse{50%{box-shadow:0 0 55px #f4c66a9c;transform:scale(1.035)}}@keyframes loading-glint{to{transform:translateX(125%)}}@keyframes auth-enter{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:780px){.auth-layout{grid-template-columns:1fr;padding:18px 15px;gap:8px}.auth-brand{padding:12px}.auth-brand h1{font-size:45px;margin:9px 0}.auth-brand p{font-size:15px;margin:0}.auth-heraldry{margin-top:13px;font-size:10px}.auth-card{max-width:520px;width:100%;margin:auto;box-sizing:border-box}.discover-player-plate{top:auto;bottom:74px;right:8px;max-width:175px}.discover-player-plate>img{height:32px;width:32px}.discover-player-plate strong{font-size:11px;max-width:85px}.discover-player-plate small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.loading-sparks,.loading-emblem,.loading-progress:after{animation:none}}

@media(min-width:781px){#topbar{right:252px!important}}
