/* Layout: eine Roblox-Grundplatte voller Noppen; Avatar steht mittig auf einem gelben Baustein, darunter 4 Bausteine als Menü, Klick öffnet die Ablage darunter. Bewusst nur ein Look (Tageshimmel). */
:root {
  --sky: #3fa4f0;        /* Grundplatte */
  --sky-deep: #1f7fd6;
  --ink: #141830;        /* Umrisse, Text */
  --paper: #fffaf0;      /* Karten-Fläche */
  --yolk: #ffd21f;
  --yolk-deep: #e0a800;
  --brick-red: #ff5a4e;   --brick-red-d: #c9372f;
  --brick-green: #45c46a; --brick-green-d: #2a9147;
  --brick-purple: #9b6bff;--brick-purple-d: #6c43d1;
  --brick-orange: #ff9a2e;--brick-orange-d: #cf6d0c;
  --muted: #4b5578;
  --display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --pixel: "Silkscreen", "Courier New", monospace;
  --stud: 28px;
  color-scheme: light;
}
html { background: var(--sky); }
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.5;
  background-color: var(--sky);
  background-image:
    radial-gradient(circle at 42% 38%, rgba(255,255,255,.38) 0 13%, transparent 14%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.10) 0 29%, rgba(10,50,120,.22) 30% 34%, transparent 35%);
  background-size: var(--stud) var(--stud);
  min-height: 100%;
}
.wrap { max-width: 980px; margin: 0 auto; padding-block: 28px 56px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 34px; }

/* Kopf */
header { display: grid; justify-items: center; gap: 6px; text-align: center; }
.logo { font-family: var(--display); font-size: clamp(56px, 13vw, 116px); line-height: .9; letter-spacing: 2px; color: #fff; margin: 0;
  -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--ink); transform: rotate(-2deg); }
.logo span { color: var(--yolk); }
.tag { font-family: var(--pixel); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 4px; }

/* Avatar auf Baustein */
.hero { display: grid; justify-items: center; gap: 0; }
.avatar { width: min(300px, 72vw); aspect-ratio: 1; max-width: 100%; border-radius: 50%; border: 8px solid #fff; outline: 6px solid var(--ink);
  box-shadow: 0 0 0 18px rgba(255,210,31,.35), 0 18px 0 rgba(20,24,48,.25); background: var(--yolk); animation: bob 3.2s ease-in-out infinite; position: relative; z-index: 2; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; }
.pedestal { margin-top: -26px; width: min(380px, 86vw); height: 64px; position: relative; z-index: 1; }
.brick { --c: var(--yolk); --d: var(--yolk-deep); position: relative; background: var(--c); border: 4px solid var(--ink); border-radius: 8px; box-shadow: inset 0 -10px 0 var(--d), 0 6px 0 var(--ink); }
.brick::before { /* Noppen oben */
  content: ""; position: absolute; left: 10px; right: 10px; top: -15px; height: 14px;
  background:
    radial-gradient(ellipse 9px 7px at 50% 55%, var(--c) 0 92%, transparent 100%) 0 0 / 30px 14px repeat-x,
    radial-gradient(ellipse 11px 9px at 50% 60%, var(--ink) 0 92%, transparent 100%) 0 0 / 30px 14px repeat-x;
}
.pedestal.brick { border-radius: 10px; }
.hello { font-weight: 800; font-size: 18px; text-align: center; max-width: 34ch; margin: 22px auto 0; background: var(--paper); border: 4px solid var(--ink); border-radius: 14px; padding: 10px 16px; position: relative; }
.hello::before { content: ""; position: absolute; top: -14px; left: 50%; margin-left: -12px; border: 12px solid transparent; border-top: 0; border-bottom: 14px solid var(--ink); }

/* Menü-Bausteine */
nav.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 18px; padding-top: 14px; }
.tile { appearance: none; font: inherit; color: inherit; margin: 0; cursor: pointer; display: grid; justify-items: center; gap: 8px; padding: 20px 10px 22px; text-align: center; transition: transform .12s ease; }
.tile:hover { transform: translateY(-4px); }
.tile:active { transform: translateY(3px); box-shadow: inset 0 -6px 0 var(--d), 0 2px 0 var(--ink); }
.tile:focus-visible { outline: 4px dashed #fff; outline-offset: 6px; }
.tile[aria-selected="true"] { transform: translateY(4px); box-shadow: inset 0 -4px 0 var(--d), 0 2px 0 var(--ink); }
.tile .ico { width: 56px; height: 56px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(20,24,48,.35)); }
.tile b { font-family: var(--display); font-size: 26px; letter-spacing: 1px; color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; line-height: 1; }
.tile small { font-family: var(--pixel); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); background: rgba(255,255,255,.75); padding: 2px 8px; border-radius: 3px; }
.t-games  { --c: var(--brick-green);  --d: var(--brick-green-d); }
.t-prompt { --c: var(--brick-purple); --d: var(--brick-purple-d); }
.t-assets { --c: var(--brick-orange); --d: var(--brick-orange-d); }
.t-help   { --c: var(--brick-red);    --d: var(--brick-red-d); }

/* Ablage (Inhalt der gewählten Kachel) */
.panel { background: var(--paper); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 0 8px 0 var(--ink); padding: 22px clamp(16px, 4vw, 30px) 26px; display: grid; gap: 16px; }
.panel h2 { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: 1px; margin: 0; line-height: 1; text-wrap: balance; }
.panel p { margin: 0; max-width: 62ch; color: var(--muted); }
.list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.item { border: 3px solid var(--ink); border-radius: 10px; padding: 14px 16px; display: grid; gap: 6px; background: #fff; min-width: 0; }
.item h3 { margin: 0; font-size: 18px; font-weight: 900; }
.item p { font-size: 15px; }
.chip { justify-self: start; font-family: var(--pixel); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; border: 2px solid var(--ink); }
.live { background: #8ff0a4; } .soon { background: var(--yolk); } .dev { background: #d9d2ff; }
.btn { justify-self: start; font-family: var(--display); font-size: 18px; letter-spacing: 1px; color: var(--ink); text-decoration: none; background: var(--yolk); border: 3px solid var(--ink); border-radius: 8px; padding: 6px 14px 4px; box-shadow: 0 4px 0 var(--ink); }
.btn:hover { transform: translateY(-2px); } .btn:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
.price { font-family: var(--pixel); font-size: 13px; color: var(--ink); }
details { border: 3px solid var(--ink); border-radius: 10px; background: #fff; padding: 10px 14px; }
summary { cursor: pointer; font-weight: 900; }
details p { margin-top: 6px; }
.handle { font-family: var(--pixel); font-size: 13px; background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 3px; user-select: all; }

footer { text-align: center; font-family: var(--pixel); font-size: 12px; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 0 var(--ink); }

@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@media (prefers-reduced-motion: reduce) { .avatar { animation: none } .tile, .btn { transition: none } }
@media (max-width: 760px) { nav.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .tile b { font-size: 22px; } .tile .ico { width: 46px; height: 46px; } }

/* Fußzeile + Rechtsseiten */
.legal { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal a:focus-visible { outline: 3px dashed #fff; outline-offset: 3px; }
.doc { max-width: 760px; }
.doc .panel h2 { font-size: 28px; margin-top: 8px; }
.doc .panel p, .doc .panel li { color: var(--ink); max-width: 68ch; }
.doc .panel ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.back { justify-self: start; }
.todo { background: #ffe9a8; border: 2px dashed var(--ink); padding: 0 6px; border-radius: 3px; }
