html,body{
 margin:0;
 height:100%;
 overflow:hidden;
 font-family:Verdana,sans-serif;
}

body{
 background:#111;
 color:#20160c;
}

:root{
 --room-width:1536px;
 --room-height:1024px;
 --room-scale:1;
 --paper:#fff4da;
 --ink:#20160c;
 --line:#8e6b3a;
 --green:#263d29;
 --gold:#d7a93e;
 --touch:48px;
}

button{
 font:inherit;
 min-height:var(--touch);
 border:0;
 border-radius:8px;
 padding:10px 14px;
 background:var(--green);
 color:white;
 cursor:pointer;
 box-shadow:0 2px 0 rgba(0,0,0,.35);
}

button:disabled{
 cursor:not-allowed;
 opacity:.62;
 filter:saturate(.7);
}

#scene{
 position:fixed;
 left:50%;
 top:50%;
 width:var(--room-width);
 height:var(--room-height);
 transform:translate(-50%,-50%) scale(var(--room-scale));
 transform-origin:center;
 background:url('zeugniszimmer.webp') center center / 100% 100% no-repeat;
 image-rendering:pixelated;
}

#ui{
 position:fixed;
 left:50%;
 top:50%;
 width:var(--room-width);
 height:var(--room-height);
 transform:translate(-50%,-50%) scale(var(--room-scale));
 transform-origin:center;
}

#backBtn{
 position:absolute;
 left:2%;
 top:2%;
 min-width:136px;
 z-index:100;
}

#languageBtn{
 position:absolute;
 right:2%;
 top:2%;
 min-width:96px;
 padding:8px 10px;
 z-index:160;
 background:rgba(255,248,232,.94);
 color:#151515;
 border:1px solid rgba(142,107,58,.7);
 font-weight:bold;
 box-shadow:2px 2px 8px rgba(0,0,0,.35);
}

#reportTitle{
 position:absolute;
 left:50%;
 top:3%;
 transform:translateX(-50%);
 min-width:470px;
 padding:12px 24px;
 background:rgba(24,35,25,.92);
 color:#fff8e8;
 border:3px solid #8e6b3a;
 border-radius:8px;
 box-shadow:0 8px 22px rgba(0,0,0,.45);
 text-align:center;
 text-shadow:2px 2px 3px #000;
 z-index:70;
}

#reportTitle h1{
 margin:0;
 font-size:34px;
 line-height:1.1;
}

#reportTitle p{
 margin:6px 0 0;
 font-size:15px;
 color:#f0d8a6;
}

#reportCard{
 position:absolute;
 left:28%;
 top:18%;
 transform:translateX(-50%);
 width:620px;
 height:48%;
 min-height:0;
 overflow:auto;
 box-sizing:border-box;
 padding:28px 34px;
 background:rgba(255,248,232,.96);
 border:3px solid #8e6b3a;
 border-radius:8px;
 box-shadow:0 14px 34px rgba(0,0,0,.45);
}

.sheetTop{
 display:grid;
 grid-template-columns:1fr 110px;
 gap:18px;
 align-items:center;
 border-bottom:2px solid rgba(142,107,58,.45);
 padding-bottom:16px;
 margin-bottom:18px;
}

.sheetTop h2{
 margin:0 0 6px;
 font-size:28px;
}

.sheetTop p{
 margin:0;
 color:#5d4930;
 line-height:1.35;
}

.grade{
 width:100px;
 height:100px;
 border-radius:50%;
 display:grid;
 place-items:center;
 background:#263d29;
 color:#fff8e8;
 border:5px solid var(--gold);
 font-size:48px;
 font-weight:bold;
 box-shadow:inset 0 0 0 4px rgba(255,248,232,.16);
}

.stats{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:10px;
 margin:18px 0;
}

.stat{
 border:1px solid rgba(142,107,58,.38);
 border-radius:8px;
 padding:12px;
 background:rgba(255,255,255,.45);
}

.stat b{
 display:block;
 font-size:24px;
 margin-bottom:4px;
}

#monthPanel{
 position:absolute;
 right:4%;
 top:18%;
 width:560px;
 height:660px;
 overflow:auto;
 box-sizing:border-box;
 padding:22px;
 background:rgba(255,248,232,.96);
 border:3px solid #8e6b3a;
 border-radius:8px;
 box-shadow:0 14px 34px rgba(0,0,0,.45);
}

.monthTop h2{
 margin:0 0 6px;
 font-size:28px;
}

.monthTop p{
 margin:0 0 14px;
 color:#5d4930;
 line-height:1.35;
}

.monthlyGrid{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:9px;
}

.monthlyMetric{
 border:1px solid rgba(142,107,58,.38);
 border-radius:8px;
 padding:10px;
 background:rgba(255,255,255,.48);
 min-height:74px;
}

.monthlyMetric b{
 display:block;
 font-size:18px;
 margin-bottom:5px;
 overflow-wrap:anywhere;
}

.monthlyMetric span{
 color:#5d4930;
 font-size:12px;
}

.monthEmpty{
 padding:16px;
 text-align:center;
 border:1px dashed rgba(142,107,58,.5);
 border-radius:8px;
 color:#5d4930;
}

.monthComment{
 font-size:13px;
}

.stat span{
 color:#5d4930;
 font-size:14px;
}

.comment{
 margin-top:18px;
 padding:14px;
 background:rgba(38,61,41,.1);
 border-left:5px solid var(--green);
 line-height:1.4;
}

#rewardPanel{
 position:absolute;
 left:7.8%;
 bottom:8%;
 width:312px;
 max-height:24%;
 overflow:auto;
 box-sizing:border-box;
 padding:18px;
 background:rgba(255,248,232,.96);
 border:3px solid #8e6b3a;
 border-radius:8px;
 box-shadow:0 12px 28px rgba(0,0,0,.45);
 z-index:90;
}

#rewardPanel h2{
 margin:0 0 8px;
 font-size:23px;
}

#rewardPanel .coins{
 margin:12px 0;
 padding:12px;
 border-radius:8px;
 background:#f3d486;
 font-size:22px;
 font-weight:bold;
 text-align:center;
}

#rewardBtn{
 width:100%;
 background:#263d29;
 font-weight:bold;
}

#emptyPanel{
 position:absolute;
 left:50%;
 top:36%;
 transform:translateX(-50%);
 width:650px;
 box-sizing:border-box;
 padding:24px;
 background:rgba(255,248,232,.96);
 border:3px solid #8e6b3a;
 border-radius:8px;
 box-shadow:0 12px 28px rgba(0,0,0,.45);
 text-align:center;
 line-height:1.45;
}

#emptyPanel h2{
 margin:0 0 10px;
 font-size:28px;
}

.privacyLink{
 position:absolute;
 left:50%;
 bottom:1%;
 transform:translateX(-50%);
 color:white;
 text-shadow:1px 1px 3px #000;
 z-index:120;
}
