*{box-sizing:border-box}
:root{--forest:#1d2d25;--forest-deep:#101a15;--plum:#44313f;--plum-dark:#302331;--gold:#d7aa5c;--gold-bright:#f0c979;--cream:#f3e7ce;--teal:#315d5a;--teal-dark:#244542}
html,body{margin:0;width:100%;min-height:100%;font-family:"DM Sans",Arial,sans-serif;color:var(--cream)}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
body.landing{height:100vh;height:100dvh;overflow:hidden;background:var(--forest-deep)}
body.modal-open{overflow:hidden}
.site-frame{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.game-header{height:82px;flex:0 0 82px;position:relative;z-index:5;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 clamp(18px,4.2vw,72px);background:linear-gradient(180deg,#4a3545 0%,#3d2d3b 100%);border-top:3px solid #1c211c;border-bottom:2px solid var(--gold);box-shadow:0 3px 12px #0008,inset 0 1px 0 #d9b56c55}
.header-side{display:flex;align-items:center;gap:10px;color:#d9bd83;font:700 10px "Cinzel",serif;letter-spacing:.19em;white-space:nowrap}
.header-sigil{font-size:19px;color:var(--gold-bright);text-shadow:0 1px 3px #000}
.header-brand{display:flex;align-items:center;justify-content:center;height:100%;padding:8px 16px}
.header-brand img{display:block;width:clamp(170px,16vw,245px);max-height:66px;object-fit:contain;filter:drop-shadow(0 3px 2px #120b10)}
.header-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;min-width:0}
.hud-button{min-height:39px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 16px;border:1px solid #1a171b;border-radius:7px;background:linear-gradient(180deg,#60485a,#443443);box-shadow:inset 0 0 0 1px #a58b6a66,0 2px 4px #0007;color:#f4dfb1;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap;cursor:pointer;transition:filter .18s,transform .18s,border-color .18s}
.hud-button:hover{filter:brightness(1.17);transform:translateY(-1px);border-color:var(--gold)}
.hud-register{background:linear-gradient(180deg,#386965,#28514e);color:#ffe0a2}
.hud-register span{font-size:15px;line-height:0}
.world-screen{position:relative;isolation:isolate;flex:1;min-height:0;overflow:hidden;background:#17231b}
.ambient{display:none}
.ambient-one{width:min(68vw,900px);height:min(68vw,900px);right:-15%;top:-55%;background:radial-gradient(circle,rgba(183,143,75,.16),rgba(105,124,70,.06) 38%,transparent 70%)}
.ambient-two{width:min(65vw,800px);height:min(65vw,800px);left:-25%;bottom:-65%;background:radial-gradient(circle,rgba(61,111,79,.23),rgba(31,73,52,.08) 48%,transparent 72%)}
.ambient-grid{display:none}
.world-screen:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(8,15,10,.12),transparent 35%,rgba(8,15,10,.06));box-shadow:inset 0 0 90px 12px rgba(5,12,8,.22)}
.welcome-panel{position:absolute;z-index:2;left:50%;top:56%;transform:translate(-50%,-50%);width:min(490px,calc(100% - 40px));padding:32px 36px 25px;background:linear-gradient(145deg,rgba(70,51,66,.79),rgba(48,38,49,.76));backdrop-filter:blur(1.5px);-webkit-backdrop-filter:blur(1.5px);border:1px solid rgba(194,155,94,.9);border-radius:12px;box-shadow:0 16px 40px #0008,inset 0 0 0 3px rgba(18,17,17,.42),inset 0 0 0 4px rgba(210,169,94,.14)}
.panel-topline{display:flex;align-items:center;justify-content:center;gap:13px;color:#e6c27e;font:700 10px "Cinzel",serif;letter-spacing:.3em;text-shadow:0 2px 2px #000}
.panel-star{font-size:14px;color:var(--gold-bright)}
.panel-kicker{text-align:center;margin-top:25px;color:#e4c17f;font-size:9px;font-weight:700;letter-spacing:.24em}
.welcome-panel h1{margin:13px 0 12px;text-align:center;font:800 clamp(34px,3.3vw,49px)/1.17 "Cinzel",Georgia,serif;letter-spacing:-.035em;color:#f7edda;text-shadow:0 3px 3px #120d12,0 0 18px #0005}
.welcome-panel h1 em{font-style:normal;color:#eec477}
.welcome-copy{max-width:365px;margin:0 auto;text-align:center;color:#e1d7c6;font-size:13px;line-height:1.75}
.panel-divider{display:flex;align-items:center;gap:12px;margin:20px 0 16px;color:#e0b76c;font-size:15px}
.panel-divider:before,.panel-divider:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,#c19a5d)}
.panel-divider:after{background:linear-gradient(90deg,#c19a5d,transparent)}
.welcome-actions{display:grid;gap:10px}
.game-button{width:100%;height:49px;display:grid;grid-template-columns:29px 1fr 20px;align-items:center;gap:8px;padding:0 14px;border-radius:7px;border:1px solid #171719;background:linear-gradient(180deg,#386966,#28504d);color:#ffe1a3;box-shadow:inset 0 0 0 1px rgba(211,178,117,.58),0 3px 5px #100d11b8;font-size:11px;font-weight:700;letter-spacing:.075em;text-transform:uppercase;cursor:pointer;transition:filter .18s,transform .18s}
.game-button:hover{filter:brightness(1.18);transform:translateY(-1px)}
.game-button.secondary{background:linear-gradient(180deg,#514052,#3e3040);color:#e9d9b8}
.button-icon{font-size:18px;text-align:center;color:#f0c879;text-shadow:0 1px 2px #000}
.button-arrow{text-align:right;font-size:21px;color:#f0c879}
.panel-foot{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:20px;color:#c8b58f;font-size:8px;font-weight:700;letter-spacing:.2em}
.foot-dot{width:6px;height:6px;border-radius:50%;background:#a5c17b;box-shadow:0 0 7px #b5d28a}
.corner{position:absolute;width:13px;height:13px;border-color:#edc477;border-style:solid;opacity:.85}
.corner-tl{top:8px;left:8px;border-width:1px 0 0 1px}.corner-tr{top:8px;right:8px;border-width:1px 1px 0 0}.corner-bl{bottom:8px;left:8px;border-width:0 0 1px 1px}.corner-br{bottom:8px;right:8px;border-width:0 1px 1px 0}
.world-label{position:absolute;z-index:2;bottom:20px;color:#e6ca91;font:700 9px "Cinzel",serif;letter-spacing:.2em;text-shadow:0 2px 4px #000}
.world-label-left{left:clamp(20px,3vw,48px)}.world-label-right{right:clamp(20px,3vw,48px);color:#d2c5a5;font:600 8px "DM Sans",sans-serif;letter-spacing:.15em}
.label-mark{color:#f0c477;padding:0 6px}
.screen-edge{position:absolute;inset:0;border:1px solid rgba(222,181,105,.16);pointer-events:none}

/* Modal authentication */
.auth-modal[hidden]{display:none!important}
.auth-modal{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:18px}
.modal-backdrop{position:absolute;inset:0;background:rgba(5,10,7,.78);backdrop-filter:blur(7px);animation:fade-in .18s ease-out}
.auth-dialog{position:relative;z-index:1;width:min(100%,460px);max-height:calc(100dvh - 36px);overflow-y:auto;padding:25px clamp(22px,5vw,38px) 20px;border-radius:11px;background:linear-gradient(145deg,#4a3545,#302431);border:1px solid #c29b5e;box-shadow:0 22px 80px #000b,inset 0 0 0 3px rgba(18,17,17,.62),inset 0 0 0 4px rgba(210,169,94,.13);animation:pop-in .22s cubic-bezier(.2,.8,.2,1)}
.modal-close{position:absolute;top:12px;right:13px;width:32px;height:32px;border:1px solid rgba(224,190,126,.4);border-radius:5px;background:linear-gradient(#5a4354,#3b2d3b);color:#f1d49d;font:24px/1 "DM Sans",sans-serif;cursor:pointer}
.modal-close:hover{background:#684c60}
.modal-brand{text-align:center;padding:0 30px 3px}.modal-brand img{width:min(205px,68%);max-height:62px;object-fit:contain;filter:drop-shadow(0 3px 2px #100b10)}
.modal-kicker{text-align:center;color:#e1bd76;font:700 9px "Cinzel",serif;letter-spacing:.23em;margin:2px 0 15px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;border:1px solid rgba(215,170,92,.25);border-radius:7px;background:#2b222c}
.auth-tab{height:36px;border:1px solid transparent;border-radius:5px;background:transparent;color:#cbbda5;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;cursor:pointer}
.auth-tab.active{border-color:#171719;background:linear-gradient(180deg,#386966,#28504d);color:#ffe1a3;box-shadow:inset 0 0 0 1px rgba(211,178,117,.45),0 2px 4px #0006}
.auth-dialog h2{margin:18px 0 5px;text-align:center;color:#f4e9d5;font:700 clamp(27px,6vw,35px)/1.2 "Cinzel",Georgia,serif}
.modal-description{margin:0 0 17px;text-align:center;color:#d1c5b3;font-size:12px;line-height:1.65}
.auth-dialog label{display:block;margin:13px 0 6px;color:#e6c27e;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.auth-dialog input{width:100%;height:43px;padding:0 13px;border:1px solid #92744d;border-radius:5px;background:#211d23;color:#f4ead8;font:13px "DM Sans",sans-serif;outline:none;box-shadow:inset 0 2px 5px #0006}
.auth-dialog input::placeholder{color:#837b70}
.auth-dialog input:focus{border-color:#edc477;box-shadow:0 0 0 2px #e3b86633,inset 0 2px 5px #0006}
.auth-submit{width:100%;height:46px;margin-top:18px;border:1px solid #171719;border-radius:6px;background:linear-gradient(180deg,#386966,#28504d);color:#ffe1a3;box-shadow:inset 0 0 0 1px rgba(211,178,117,.6),0 3px 5px #100d11b8;font:700 10px "DM Sans",sans-serif;letter-spacing:.12em;text-transform:uppercase;cursor:pointer}
.auth-submit:hover{filter:brightness(1.15)}.auth-submit:disabled{opacity:.6;cursor:wait}
.status{min-height:19px;margin:9px 0 0;color:#e5d5b6;text-align:center;font-size:11px;line-height:1.45}.status.error{color:#ffaaa0}
.modal-switch{margin:9px 0 0;text-align:center;color:#d1c5b3;font-size:10px}
.modal-switch button{padding:0;border:0;background:none;color:#f0c879;font:700 10px "DM Sans",sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.modal-bottom{margin-top:17px;text-align:center;color:#bba77f;font:700 8px "Cinzel",serif;letter-spacing:.14em}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
@keyframes pop-in{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}

@media(max-width:760px){
  .welcome-panel{top:54%;background:linear-gradient(145deg,rgba(70,51,66,.82),rgba(48,38,49,.79))}
  .game-header{height:75px;flex-basis:75px;padding:0 12px;grid-template-columns:auto 1fr}
  .header-left{display:none}.header-brand{justify-content:flex-start;padding:5px 0}.header-brand img{width:clamp(100px,27vw,150px);max-height:56px}
  .header-actions{gap:5px}.hud-button{min-height:35px;padding:0 9px;font-size:8px;letter-spacing:.045em}
  .world-screen{background:#17231b}
  .welcome-panel{width:min(440px,calc(100% - 28px));padding:25px 23px 20px}
  .panel-kicker{margin-top:18px;font-size:8px}.welcome-panel h1{font-size:clamp(30px,7.7vw,40px)}
  .welcome-copy{font-size:12px}.panel-divider{margin:15px 0 12px}
  .game-button{height:46px;font-size:10px}.panel-foot{margin-top:15px;font-size:7px}
  .world-label{bottom:9px;font-size:7px}.world-label-right{font-size:7px}
}
@media(max-width:370px){
  .game-header{padding:0 8px}.header-brand img{width:94px}
  .hud-button{padding:0 7px;font-size:7px;letter-spacing:.025em}.header-actions{gap:4px}
  .welcome-panel{padding:21px 17px 17px}.welcome-panel h1{font-size:29px}
  .welcome-copy{font-size:11px}.game-button{height:43px;font-size:9px}
}
@media(max-height:690px) and (min-width:761px){
  .game-header{height:68px;flex-basis:68px}.welcome-panel{padding-top:20px;padding-bottom:17px}
  .panel-kicker{margin-top:14px}.welcome-panel h1{font-size:36px;margin:8px 0}
  .welcome-copy{font-size:12px}.panel-divider{margin:12px 0 10px}.game-button{height:43px}.panel-foot{margin-top:12px}
}
@media(max-height:620px){
  .welcome-panel{padding-top:16px;padding-bottom:14px}.panel-kicker{margin-top:10px}
  .welcome-panel h1{font-size:clamp(27px,5vh,36px);margin:7px 0}.welcome-copy{font-size:11px}
  .panel-divider{margin:9px 0 8px}.game-button{height:39px}.panel-foot{margin-top:10px}
  .world-label{display:none}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}


/* Fixed footer and Eichenwacht-styled legal notice popup */
.site-footer{
  position:relative;z-index:6;flex:0 0 38px;height:38px;display:flex;align-items:center;
  justify-content:space-between;padding:0 clamp(18px,3vw,48px);
  background:linear-gradient(180deg,#44313f,#302331);border-top:1px solid #b68c4e;
  box-shadow:0 -2px 8px #0005;color:#c9b78f;font-size:9px;letter-spacing:.12em
}
.footer-impressum{
  border:0;background:transparent;color:#f0c979;font:700 9px "DM Sans",sans-serif;
  letter-spacing:.13em;text-transform:uppercase;padding:7px 10px;cursor:pointer
}
.footer-impressum:hover{color:#fff0c8;text-decoration:underline;text-underline-offset:4px}
.impressum-modal[hidden]{display:none!important}
.impressum-modal{position:fixed;z-index:40;inset:0;display:grid;place-items:center;padding:18px}
.impressum-backdrop{position:absolute;inset:0;background:rgba(5,10,7,.8);backdrop-filter:blur(7px);animation:fade-in .18s ease-out}
.impressum-dialog{
  position:relative;z-index:1;width:min(100%,570px);max-height:calc(100dvh - 36px);overflow-y:auto;
  padding:25px clamp(22px,5vw,40px) 20px;border-radius:11px;
  background:linear-gradient(145deg,#4a3545,#302431);border:1px solid #c29b5e;
  box-shadow:0 22px 80px #000b,inset 0 0 0 3px rgba(18,17,17,.62),inset 0 0 0 4px rgba(210,169,94,.13);
  animation:pop-in .22s cubic-bezier(.2,.8,.2,1)
}
.impressum-close{
  position:absolute;top:12px;right:13px;width:32px;height:32px;border:1px solid rgba(224,190,126,.4);
  border-radius:5px;background:linear-gradient(#5a4354,#3b2d3b);color:#f1d49d;
  font:24px/1 "DM Sans",sans-serif;cursor:pointer
}
.impressum-close:hover{background:#684c60}
.impressum-brand{text-align:center;padding:0 35px}
.impressum-brand img{width:min(205px,68%);max-height:62px;object-fit:contain;filter:drop-shadow(0 3px 2px #100b10)}
.impressum-kicker{text-align:center;margin:3px 0 5px;color:#e1bd76;font:700 8px "Cinzel",serif;letter-spacing:.2em}
.impressum-dialog h2{margin:5px 0 19px;text-align:center;color:#f4e9d5;font:700 clamp(27px,6vw,35px)/1.2 "Cinzel",Georgia,serif}
.legal-section{margin:0}
.legal-section h3{margin:0 0 8px;color:#eec477;font:700 14px/1.4 "Cinzel",Georgia,serif}
.legal-section p{margin:0;color:#e1d7c6;font:13px/1.75 "DM Sans",Arial,sans-serif;overflow-wrap:anywhere}
.legal-section strong{color:#fff0d4}
.legal-section a{color:#f0c979;text-decoration:underline;text-underline-offset:3px}
.legal-section a:hover{color:#fff0c8}
.legal-divider{display:flex;align-items:center;gap:12px;margin:15px 0;color:#e0b76c;font-size:12px}
.legal-divider:before,.legal-divider:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,#c19a5d)}
.legal-divider:after{background:linear-gradient(90deg,#c19a5d,transparent)}
.impressum-bottom{margin-top:19px;text-align:center;color:#bba77f;font:700 8px "Cinzel",serif;letter-spacing:.2em}
@media(max-width:760px){
  .site-footer{height:35px;flex-basis:35px;padding:0 14px;font-size:8px}
  .footer-impressum{font-size:8px;padding:6px}
  .impressum-modal{padding:10px}
  .impressum-dialog{max-height:calc(100dvh - 20px);padding:22px 22px 17px}
  .legal-section h3{font-size:13px}
  .legal-section p{font-size:12px}
}


.footer-legal{display:flex;align-items:center;gap:8px}
.privacy-dialog{width:min(100%,720px)}
.privacy-content{color:#e1d7c6;font:13px/1.72 "DM Sans",Arial,sans-serif}
.privacy-content h3{margin:21px 0 7px;color:#eec477;font:700 14px/1.4 "Cinzel",Georgia,serif}
.privacy-content p{margin:7px 0 10px;overflow-wrap:anywhere}
.privacy-content a{color:#f0c979;text-decoration:underline;text-underline-offset:3px}
.privacy-stand{margin:0 0 12px;text-align:center;color:#cbbda5;font-size:10px;letter-spacing:.04em}
.legal-related{margin:0;text-align:center;color:#d1c5b3;font-size:11px;line-height:1.7}
.legal-related a,.auth-privacy-note a{color:#f0c979;text-decoration:underline;text-underline-offset:3px}
.auth-privacy-note{margin:9px 0 0;text-align:center;color:#cbbda5;font-size:10px;line-height:1.55}
@media(max-width:760px){
  .footer-legal{gap:2px}
  .privacy-dialog{max-height:calc(100dvh - 20px);padding:22px 18px 17px}
  .privacy-content{font-size:12px;line-height:1.65}
  .privacy-content h3{font-size:13px}
}

.legal-page-body{min-height:100vh;background:radial-gradient(ellipse at 50% 35%,#344b39 0%,#263a2d 40%,#17261d 100%);color:#f3e7ce;font-family:"DM Sans",Arial,sans-serif;padding:28px 14px}
.legal-page-wrap{width:min(900px,100%);margin:0 auto;padding:26px clamp(20px,5vw,46px);background:linear-gradient(145deg,#4a3545,#302431);border:1px solid #c29b5e;border-radius:11px;box-shadow:0 18px 50px #0008,inset 0 0 0 3px rgba(18,17,17,.62),inset 0 0 0 4px rgba(210,169,94,.13)}
.legal-page-logo{text-align:center;margin-bottom:8px}.legal-page-logo img{width:min(230px,65%);max-height:75px;object-fit:contain}
.legal-page-kicker{text-align:center;color:#e1bd76;font:700 9px "Cinzel",serif;letter-spacing:.2em}
.legal-page-wrap h1{text-align:center;margin:8px 0 25px;color:#f4e9d5;font:700 clamp(28px,6vw,40px) "Cinzel",Georgia,serif}
.legal-page-wrap h2,.legal-page-wrap h3{margin:24px 0 8px;color:#eec477;font:700 17px "Cinzel",Georgia,serif}
.legal-page-wrap p{color:#e1d7c6;font:14px/1.8 "DM Sans",Arial,sans-serif}
.legal-page-wrap a{color:#f0c979;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.legal-page-nav{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:28px;padding-top:18px;border-top:1px solid #b68c4e}
.legal-page-nav a{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.legal-page-stand{text-align:center;color:#cbbda5!important;font-size:11px!important}


/* Updated Eichenwacht wordmark (wide transparent PNG) */
.header-brand img,
.modal-brand img,
.impressum-brand img,
.legal-page-logo img {
  object-fit: contain;
  object-position: center;
}
.header-brand img {
  width: clamp(190px, 19vw, 285px);
  max-height: 68px;
}
.modal-brand img,
.impressum-brand img {
  width: min(260px, 76%);
  max-height: 82px;
}
.legal-page-logo img {
  width: min(290px, 78%);
  max-height: 92px;
}
@media (max-width: 760px) {
  .header-brand img {
    width: clamp(130px, 34vw, 190px);
    max-height: 55px;
  }
  .modal-brand img,
  .impressum-brand img {
    width: min(235px, 78%);
    max-height: 72px;
  }
  .legal-page-logo img {
    width: min(255px, 80%);
    max-height: 82px;
  }
}
@media (max-width: 380px) {
  .header-brand img {
    width: 122px;
    max-height: 48px;
  }
}



/* Static portal artwork: aligned to the top so the complete portal crest remains visible. */
.world-screen{position:relative;isolation:isolate;overflow:hidden}
.world-background-image{position:absolute;inset:0;z-index:0;background:url("assets/eichenwacht-portal-hintergrund.png") center top / cover no-repeat;pointer-events:none}
.world-screen:after{z-index:1}
.welcome-panel{z-index:2}

@media(max-height:620px){.welcome-panel{top:52%;backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px)}}
