/* ===============================
   GRUEBACKER SNAKE – FINAL STYLE
   =============================== */

:root{
  --bg:#0f1512;
  --card:#121c16;
  --text:#e9f3ec;
  --muted:#9bb3a6;
  --accent:#d31e1e;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{
  box-sizing:border-box;
}

html, body{
  height:100%;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 30% 10%, #1b2b22 0%, var(--bg) 60%);
  color:var(--text);
  overscroll-behavior: contain;
}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:18px;
}

.top{
  display:flex;
  gap:16px;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom:14px;
}

.brand .title{
  font-size:28px;
  font-weight:800;
  letter-spacing:.4px;
}

.brand .subtitle{
  color:var(--muted);
  margin-top:4px;
  font-size:14px;
}

.stats{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.stat{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:10px 14px;
  min-width:150px;
  box-shadow:var(--shadow);
}

.stat span{
  display:block;
  font-size:12px;
  color:var(--muted);
}

.stat b{
  display:block;
  font-size:18px;
  margin-top:2px;
}

.main{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--shadow);
}

canvas{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  background:#0c120f;

  /* Wichtig für Mobile */
  touch-action:none;
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
}

.controls{
  display:flex;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}

button{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:650;
  transition:background .2s ease;
}

button:hover{
  background:rgba(255,255,255,.12);
}

.foot{
  color:var(--muted);
  font-size:13px;
  margin-top:14px;
  text-align:center;
}

/* Dialog */

dialog{
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:#0f1713;
  color:var(--text);
  width:min(520px,92vw);
  box-shadow:var(--shadow);
}

dialog::backdrop{
  background:rgba(0,0,0,.6);
}

label{
  display:block;
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
}

input{
  width:100%;
  margin-top:6px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--text);
}

.dlgBtns{
  margin-top:14px;
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

.hint{
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
  min-height:18px;
}

/* Mobile Layout Anpassung */

@media (max-width:760px){
  .top{
    flex-direction:column;
    align-items:stretch;
  }
  .stats{
    justify-content:flex-start;
  }
}

/* Touch-Pfeile komplett deaktivieren */
.touch{
  display:none !important;
}

