:root{--gd5-gold:#edbd51;--gd5-ink:#261309;--gd5-red:#6b170e;--gd5-parchment:#e7c78d;--gd5-dark:#17120f}
#gd5-entry{position:fixed;inset:0;z-index:100000;overflow:auto;color:#fff1d2;background:#21160f url('assets/ui/login-world.jpg') center/cover no-repeat;font-family:Georgia,'Times New Roman',serif;text-shadow:0 1px 2px #281608}
#gd5-entry:before{content:"";position:fixed;inset:0;background:linear-gradient(90deg,#170e0870,transparent 23%,transparent 77%,#170e0870),linear-gradient(0deg,#170e0850,transparent 28%,#170e0840);pointer-events:none}
.entry-logo{position:relative;display:flex;align-items:center;gap:12px;width:max-content;margin:18px auto 5px;text-align:center;color:#ffdc79;filter:drop-shadow(0 3px 4px #160b06)}.entry-logo>div{display:grid;justify-items:center;line-height:.9}.entry-logo small{font-size:clamp(10px,1.3vw,17px);letter-spacing:.32em}.entry-logo strong{font-size:clamp(26px,4vw,52px);letter-spacing:.03em;color:#ffe4a0;-webkit-text-stroke:.5px #60270d}.entry-crown{font-size:clamp(32px,5vw,58px);color:#ffcf46}.entry-logo i{font-style:normal;font-weight:bold;font-size:clamp(12px,1.6vw,20px);letter-spacing:.12em;margin-top:8px;background:#21150e;border:2px solid #b78b30;border-radius:24px;padding:6px 20px;box-shadow:0 2px 8px #190d08}
.entry-panel{position:relative;box-sizing:border-box;width:min(480px,92vw);margin:clamp(12px,3vh,34px) auto 16px;padding:clamp(22px,4vh,38px) clamp(22px,4vw,42px);color:var(--gd5-ink);text-shadow:none;background:linear-gradient(135deg,#f5dda9,#d6ad70 42%,#f2d79f 72%,#d1a666);border:8px ridge #55301c;outline:2px solid #d8ae48;box-shadow:0 14px 45px #100904cc,inset 0 0 0 2px #ffe5a9;border-radius:18px 18px 24px 24px}.entry-panel:before,.entry-panel:after{content:'✦';position:absolute;color:#d8aa41;font-size:25px;text-shadow:0 2px 2px #543011}.entry-panel:before{top:5px;left:8px}.entry-panel:after{bottom:5px;right:8px}.entry-panel-heading{text-align:center}.entry-panel h1{margin:0;font-size:clamp(25px,3vw,34px);color:#492510;text-shadow:0 1px #f6dda6}.entry-subtitle{text-align:center;margin:8px 0 20px;color:#5c3c1d;font-size:15px}.entry-form{display:grid;gap:13px}.entry-field{display:grid;gap:5px;color:#412718;font-size:17px;font-weight:700}.entry-field input,.entry-field select{box-sizing:border-box;width:100%;min-height:48px;border:3px ridge #d0a546;border-radius:8px;background:#211b17;color:#fff1cf;padding:8px 12px;font:18px Georgia,serif;box-shadow:inset 0 2px 5px #0009}.entry-field input:focus,.entry-field select:focus{outline:3px solid #fff0aa;outline-offset:1px}.entry-button{cursor:pointer;min-height:46px;border:2px solid #b88b31;border-radius:8px;background:linear-gradient(#473122,#211710);color:#ffe3a0;padding:9px 16px;font:bold 17px Georgia,serif;box-shadow:0 3px 0 #563016;text-shadow:0 1px 2px #000}.entry-button:hover{filter:brightness(1.2)}.entry-button:disabled{opacity:.55;cursor:wait}.entry-primary{min-height:58px;border:4px ridge #dfb346;border-radius:26px;background:linear-gradient(#a23d19,#5e130d 58%,#2b100b);font-size:clamp(21px,3vw,29px);letter-spacing:.08em;color:#ffe5a0;box-shadow:0 5px 0 #4b2918, inset 0 0 0 2px #f1ca62}.entry-message{min-height:20px;margin:0;color:#553216;font:14px system-ui,sans-serif}.entry-message.is-error{color:#8b1d12;font-weight:bold}.entry-links{display:flex;justify-content:space-between;gap:14px;margin-top:18px}.entry-links button{border:0;padding:3px;background:none;color:#482714;text-decoration:underline;font:bold 17px Georgia,serif;cursor:pointer}.entry-footer{display:block;position:relative;text-align:center;color:#ffe0a1;font:12px system-ui,sans-serif}
.gd5-select{background-image:url('assets/ui/character-select-world.jpg')}.gd5-select .entry-logo{margin-top:10px}.gd5-select .entry-logo strong{font-size:clamp(24px,3.1vw,42px)}.gd5-select .entry-logo i{display:none}.gd5-select .entry-panel{width:min(1120px,96vw);padding:18px 24px;margin:10px auto 16px;background:linear-gradient(135deg,#21160fde,#3a2819e8);border:3px ridge #b38939;outline:1px solid #f3d07a;color:#ffedce;text-shadow:0 1px 2px #000}.gd5-select .entry-panel h1{color:#ffe1a0;text-shadow:0 2px #30160c}.gd5-select .entry-subtitle{color:#e3c990}.roster-layout{display:grid;grid-template-columns:minmax(190px,260px) 1fr minmax(220px,280px);gap:18px;min-height:min(48vh,430px)}.hero-list,.hero-details{align-self:center;padding:16px;background:#211710df;border:2px ridge #b18a42;border-radius:12px;box-shadow:0 8px 22px #0008}.hero-list{display:grid;gap:9px}.hero-choice{display:grid;text-align:left;gap:3px;padding:12px;border:2px ridge #92723d;border-radius:8px;background:linear-gradient(#54402a,#261b12);color:#f9d992;cursor:pointer;font:18px Georgia,serif}.hero-choice small{color:#dfc99d;font-size:13px}.hero-choice.chosen{border-color:#ffe17a;background:linear-gradient(#79511f,#402315);box-shadow:0 0 13px #ffd25a77}.hero-stage{position:relative;display:grid;align-content:end;justify-items:center;min-height:290px;text-align:center;color:#ffe6ac;background:radial-gradient(ellipse at 50% 68%,#eec76466,transparent 40%);overflow:hidden}.stage-light{position:absolute;left:50%;bottom:40px;width:min(27vw,250px);aspect-ratio:1;border-radius:50%;transform:translateX(-50%);background:radial-gradient(circle,#ffe8a4bb,#eab94a55 45%,transparent 70%);filter:blur(5px)}.stage-rune{position:absolute;left:50%;top:15%;transform:translateX(-50%);font-size:clamp(140px,20vw,240px);line-height:1;color:#c79b4b77;text-shadow:0 0 35px #ffd569}.hero-stage p,.hero-stage strong,.hero-stage small{position:relative;margin:3px}.hero-stage p{font-size:12px;letter-spacing:.2em}.hero-stage strong{font-size:clamp(24px,3vw,38px);color:#ffdf8c}.hero-details h2{margin:0 0 14px;text-align:center;color:#ffe0a0}.hero-details p{margin:9px 0;padding-bottom:6px;border-bottom:1px solid #b89b6455;font-size:16px}.cloud-tag{display:inline-block;margin-top:5px;padding:5px 9px;border:1px solid #d0a450;border-radius:20px;color:#d9c89b;font:12px system-ui,sans-serif}.roster-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px}.roster-actions .entry-primary{min-width:min(40vw,500px);min-height:72px;font-size:clamp(22px,3vw,38px)}.gd5-select .entry-message{color:#ffe7ba}.gd5-select .entry-message.is-error{color:#ff9d8a}.gd5-select .entry-footer{margin:8px 0}
@media(max-width:720px){#gd5-entry{background-position:center;background-size:auto 100%;}.entry-logo{margin-top:12px}.entry-panel{margin-top:12px}.gd5-select .entry-panel{width:94vw;padding:15px}.roster-layout{grid-template-columns:1fr 1fr;gap:9px}.hero-stage{grid-column:1/-1;grid-row:1;min-height:120px}.hero-list{grid-column:1}.hero-details{grid-column:2}.hero-choice{padding:9px;font-size:15px}.hero-details p{font-size:13px}.roster-actions{flex-wrap:wrap}.roster-actions>*{flex:1}.roster-actions .entry-primary{order:-1;flex-basis:100%;max-width:none}.gd5-select .entry-logo{display:none}}
@media(max-height:650px) and (min-width:721px){.entry-logo{margin-top:4px}.entry-logo strong{font-size:28px}.entry-logo i{margin-top:4px}.entry-panel{margin-top:8px;padding-top:15px;padding-bottom:15px}.entry-subtitle{margin:5px 0 12px}.gd5-select .roster-layout{min-height:300px}}
@media(prefers-reduced-motion:reduce){#gd5-entry *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.install-link{display:inline-block;margin:7px 8px 0;color:#ffe3a0;font:bold 13px system-ui,sans-serif;text-decoration:underline;cursor:pointer}
/* Ajustes da versão 0.9.5: o fundo de referência já traz o brasão; evitamos repetir a marca e cobrimos o painel impresso. */
.gd5-login .entry-logo{display:none}.gd5-login .entry-panel{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:min(540px,92vw);height:min(820px,94vh);max-height:94vh;margin:0;overflow-y:auto;display:flex;flex-direction:column;justify-content:center;padding:clamp(24px,5vh,48px) clamp(22px,4vw,42px)}.entry-wordmark{display:block;margin-bottom:8px;color:#7b511e;font:bold 13px system-ui,sans-serif;letter-spacing:.16em}.gd5-select .entry-panel{background:rgba(31,21,15,.97)}.gd5-select .hero-stage canvas{position:relative;display:block;width:min(100%,300px);height:300px;image-rendering:pixelated;filter:drop-shadow(0 8px 10px #0009)}.gd5-select .hero-stage{align-content:center;min-height:390px}.gd5-select .stage-light{bottom:95px}
@media(max-width:720px){.gd5-login .entry-panel{height:auto;max-height:92vh;min-height:min(620px,90vh);width:92vw;padding:24px 20px}.gd5-select .hero-stage{min-height:260px}.gd5-select .hero-stage canvas{height:220px;width:220px}.gd5-select .stage-light{bottom:74px}}
.gd5-select .entry-logo{display:none}
html:not(.gd5-entry-required) #gd5-entry{display:none!important}html.gd5-entry-required body>:not(#gd5-entry){visibility:hidden!important}html.gd5-entry-required #gd5-entry{display:block;position:fixed;inset:0;z-index:100000}
#gd5-entry.gd5-login{background-image:url('assets/ui/fundo-login.jpg');background-position:center;background-size:cover}
.entry-brand{display:block;width:min(240px,62vw);height:auto;max-height:126px;object-fit:contain;margin:0 auto 8px;image-rendering:auto;filter:drop-shadow(0 3px 3px #2a180a66)}
.gd5-login .entry-logo{display:none}
.gd5-login .entry-panel{height:auto;min-height:0;max-height:min(760px,94vh);justify-content:flex-start;overflow-y:auto;padding:clamp(16px,3vh,28px) clamp(22px,4vw,42px);background:linear-gradient(135deg,#f3d8a8f5,#d3aa70f7 48%,#eed19af5);border:7px ridge #55301c;outline:2px solid #e1b74d;box-shadow:0 14px 45px #100904cc,inset 0 0 0 2px #ffe5a9}
.gd5-login .entry-panel-heading{width:100%}.gd5-login .entry-panel-heading .entry-brand{width:min(220px,58vw);max-height:122px;margin-bottom:2px}
.gd5-login .entry-panel h1{margin:0 0 4px;text-align:center;color:#492510;font-size:clamp(24px,3vw,32px)}
.gd5-login .entry-subtitle{margin:0 0 16px}
.gd5-select .entry-logo{display:block;margin:8px auto 0}.gd5-select .entry-brand{width:clamp(190px,22vw,310px);max-height:90px}
@media(max-width:720px){#gd5-entry.gd5-login{background-size:cover;background-position:center}.gd5-login .entry-panel{width:92vw;min-height:0;max-height:92vh;padding:18px 20px}.gd5-login .entry-panel-heading .entry-brand{max-height:96px}}
.gd5-select .entry-logo{display:flex;align-items:center;justify-content:center;margin:4px auto}.gd5-select .entry-logo .entry-brand{width:min(290px,64vw);max-height:88px}.gd5-select .entry-panel{margin:6px auto 12px}.gd5-select .entry-subtitle{margin:5px 0 8px}.gd5-select .roster-layout{grid-template-columns:minmax(190px,260px) minmax(280px,1fr) minmax(220px,280px);min-height:min(47vh,410px);gap:16px}.gd5-select .hero-stage{display:grid;grid-template-columns:40px minmax(180px,1fr) 40px;grid-template-rows:minmax(220px,1fr) auto auto auto;align-items:center;align-content:center;min-height:330px;overflow:visible}.gd5-select .hero-stage canvas{grid-column:2;grid-row:1;width:min(100%,300px);height:auto;max-height:300px}.gd5-select .hero-stage .stage-light{grid-column:2;grid-row:1;align-self:end;justify-self:center;z-index:0}.gd5-select .hero-stage .hero-arrow{grid-row:1;z-index:2;align-self:center}.gd5-select .hero-stage .hero-arrow:first-of-type{grid-column:1}.gd5-select .hero-stage .hero-arrow:last-of-type{grid-column:3}.gd5-select .hero-stage p,.gd5-select .hero-stage strong,.gd5-select .hero-stage small{grid-column:1/-1;grid-row:auto}.hero-arrow{width:38px;height:44px;cursor:pointer;border:1px solid #d8b354;border-radius:8px;background:#211710df;color:#ffe5a0;font:bold 32px Georgia;line-height:1}.hero-arrow:hover,.class-pick:hover{filter:brightness(1.2)}.gd5-select .roster-actions .entry-primary{min-width:min(38vw,440px)}
.gd5-create .entry-panel{width:min(1120px,96vw);padding:16px 24px;margin:8px auto 12px;background:linear-gradient(135deg,#21160fde,#3a2819e8);border:3px ridge #b38939;outline:1px solid #f3d07a;color:#ffedce;text-shadow:0 1px 2px #000}.gd5-create .entry-panel h1{color:#ffe1a0}.gd5-create .entry-subtitle{color:#e3c990;margin:4px 0 12px}.create-layout{display:grid;grid-template-columns:minmax(190px,250px) minmax(260px,1fr) minmax(220px,270px);gap:18px;min-height:min(45vh,390px)}.create-classes,.create-details{align-self:center;padding:14px;background:#211710df;border:2px ridge #b18a42;border-radius:12px;box-shadow:0 8px 22px #0008}.create-classes{display:grid;gap:8px}.class-pick{display:grid;gap:4px;padding:10px;text-align:left;border:2px ridge #92723d;border-radius:8px;background:linear-gradient(#54402a,#261b12);color:#f9d992;cursor:pointer;font:17px Georgia,serif}.class-pick small{color:#dfc99d;font:12px/1.4 system-ui,sans-serif}.class-pick.chosen{border-color:#ffe17a;background:linear-gradient(#79511f,#402315);box-shadow:0 0 13px #ffd25a77}.create-stage{position:relative;display:grid;grid-template-columns:40px minmax(180px,1fr) 40px;grid-template-rows:minmax(220px,1fr) auto auto;align-items:center;justify-items:center;align-content:center;min-height:330px;text-align:center;background:radial-gradient(ellipse at 50% 62%,#eec76466,transparent 52%)}.create-stage .stage-light{grid-column:2;grid-row:1;align-self:end;z-index:0}.create-stage canvas{grid-column:2;grid-row:1;position:relative;width:min(100%,320px);height:auto;image-rendering:pixelated;z-index:1}.create-stage .hero-arrow:first-of-type{grid-column:1;grid-row:1;z-index:2}.create-stage .hero-arrow:last-of-type{grid-column:3;grid-row:1;z-index:2}.create-stage .direction-label{grid-column:1/-1;grid-row:2;color:#ffe3a0;font:12px system-ui,sans-serif}.create-stage p{grid-column:1/-1;grid-row:3;margin:4px;color:#ffe6ac;font-size:12px;letter-spacing:.18em}.create-details h2{margin:0 0 12px;text-align:center;color:#ffe0a0}.create-details p{padding-bottom:6px;border-bottom:1px solid #b89b6455;font-size:15px}.create-character-form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);gap:10px 16px;margin-top:12px}.create-character-form .entry-field{gap:4px;font-size:14px}.create-character-form .entry-field input,.create-character-form .entry-field select{min-height:40px;font-size:16px}.create-character-form .entry-message{align-self:center}.create-actions{display:flex;justify-content:flex-end;gap:10px}.create-character-form>.entry-field:first-child{grid-column:1}.create-character-form>.entry-field:nth-child(2){grid-column:2}.create-character-form>.entry-message{grid-column:1}.create-actions{grid-column:2;grid-row:3}.create-actions .entry-primary{min-height:48px;font-size:18px}.gd5-splash{display:grid;place-items:center;overflow:hidden;background:#100c09 url('assets/ui/fundo-login.jpg') center/cover no-repeat}.gd5-splash:before{content:'';position:absolute;inset:0;background:#120d08a8}.splash-mark{position:relative;display:grid;place-items:center;gap:18px;opacity:0;animation:gd5-brand-transition 5s ease both}.splash-mark strong{color:#f1d68e;font:bold clamp(40px,8vw,104px) Georgia,serif;letter-spacing:.12em;text-shadow:0 4px 20px #000}.splash-mark small{color:#ead29a;font:14px system-ui,sans-serif;letter-spacing:.45em}.splash-mark img{display:block;width:min(620px,76vw);height:auto;max-height:42vh;object-fit:contain;filter:drop-shadow(0 8px 22px #000)}@keyframes gd5-brand-transition{0%{opacity:0;transform:scale(.97)}20%,75%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.02)}}
@media(max-width:1080px) and (min-width:721px){.gd5-select .entry-panel,.gd5-create .entry-panel{padding:14px 18px}.roster-layout{grid-template-columns:minmax(170px,210px) minmax(270px,1fr) minmax(195px,230px);gap:12px}.create-layout{grid-template-columns:minmax(170px,210px) minmax(260px,1fr) minmax(190px,220px);gap:12px}.hero-list,.hero-details,.create-classes,.create-details{padding:10px}.hero-choice,.class-pick{padding:8px}.gd5-select .entry-logo .entry-brand{width:235px;max-height:74px}}
@media(max-width:720px){.gd5-select .entry-logo{display:flex;margin:5px auto}.gd5-select .entry-logo .entry-brand{width:min(220px,54vw);max-height:66px}.gd5-select .roster-layout{grid-template-columns:1fr 1fr;gap:8px}.gd5-select .hero-stage{grid-column:1/-1;grid-row:1;grid-template-columns:34px minmax(170px,1fr) 34px;min-height:220px}.gd5-select .hero-stage canvas{width:220px;height:220px}.gd5-select .hero-details{grid-column:2;grid-row:2}.gd5-select .hero-list{grid-column:1;grid-row:2}.gd5-select .roster-actions{margin-top:8px}.gd5-select .entry-panel h1{font-size:24px}.gd5-create .entry-logo{display:flex}.create-layout{grid-template-columns:1fr 1fr;gap:8px}.create-classes{grid-column:1;grid-row:2}.create-stage{grid-column:1/-1;grid-row:1;min-height:235px;grid-template-columns:34px minmax(170px,1fr) 34px}.create-stage canvas{height:220px;width:220px}.create-details{grid-column:2;grid-row:2}.create-character-form{grid-template-columns:1fr}.create-character-form>.entry-field:first-child,.create-character-form>.entry-field:nth-child(2),.create-character-form>.entry-message,.create-actions{grid-column:1;grid-row:auto}.create-actions{justify-content:space-between}.gd5-create .entry-panel{width:94vw;padding:12px}.gd5-create .entry-logo{margin:4px auto}.gd5-create .entry-logo .entry-brand{max-height:56px}}
@media(max-height:700px) and (min-width:721px){.gd5-select .entry-logo{margin:3px auto}.gd5-select .entry-logo .entry-brand{max-height:62px}.gd5-select .entry-panel,.gd5-create .entry-panel{margin:4px auto;padding-top:10px;padding-bottom:10px}.gd5-select .roster-layout,.create-layout{min-height:270px}.gd5-select .hero-stage,.create-stage{min-height:250px}.gd5-select .hero-stage canvas,.create-stage canvas{max-height:230px}}

.create-bg-sample{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:8px;color:#e3c990;font:12px system-ui,sans-serif;pointer-events:none}.create-bg-sample i{display:block;width:34px;height:22px;border:1px solid #9ec7e2;border-radius:3px;background:#527da3;box-shadow:inset 0 0 0 2px #ffffff22}.gd5-teleport-transition{position:fixed;inset:0;z-index:100001;display:grid;place-items:center;background:radial-gradient(ellipse at center,#27384b,#090d12 76%);pointer-events:auto;cursor:wait}.gd5-teleport-transition img{display:block;width:min(620px,78vw);max-height:58vh;object-fit:contain;filter:drop-shadow(0 0 34px #e3bb5c99);animation:gd5-brand-transition 5s ease both}
.gd5-teleport-transition.gd5-loading{background-color:#090d12;background-size:cover;background-position:center;display:flex;align-items:flex-end;justify-content:center}
.gd5-loading .gd5-ld-box{width:min(760px,90vw);margin-bottom:6vh;text-align:center;color:#f3e6bf;text-shadow:0 2px 6px #000,0 0 14px #000}
.gd5-loading .gd5-ld-msg{margin:0 0 4px;font:italic 20px/1.4 Georgia,'Times New Roman',serif}
.gd5-loading .gd5-ld-ref{display:block;margin-bottom:14px;color:#e6c870;font:700 13px Verdana,sans-serif;letter-spacing:.08em}
.gd5-loading .gd5-ld-bar{height:8px;border:1px solid #8a7440;background:#0b0f16cc;border-radius:2px;overflow:hidden}
.gd5-loading .gd5-ld-bar i{display:block;height:100%;width:0;background:linear-gradient(#f0d88a,#c9a23f)}
@media(max-width:640px){.gd5-loading .gd5-ld-msg{font-size:16px}}
