/* Nunito (SIL OFL, vendor/OFL.txt) vom eigenen Server – keine Google Fonts */
@font-face{font-family:'Nunito';font-style:normal;font-weight:500;font-display:swap;src:url(vendor/nunito-latin-ext-500.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Nunito';font-style:normal;font-weight:500;font-display:swap;src:url(vendor/nunito-latin-500.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:url(vendor/nunito-latin-ext-800.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:url(vendor/nunito-latin-800.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:url(vendor/nunito-latin-ext-900.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:url(vendor/nunito-latin-900.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
:root{
  --paper:#EEF3F5; --ink:#1E2833; --line:#C9D3DA; --card:#FFFFFF; --muted:#5C6B78;
  --accent:#F2C233; --accent-ink:#1E2833; --danger:#D9534F;
  box-sizing:border-box; padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --paper:#16202A; --ink:#EDF2F5; --line:#33434F; --card:#1F2C38; --muted:#9AAAB6; } }
:root[data-theme="dark"]{ --paper:#16202A; --ink:#EDF2F5; --line:#33434F; --card:#1F2C38; --muted:#9AAAB6; }
*{ box-sizing:border-box; }
body{ margin:0; font-family:'Nunito','Segoe UI',system-ui,sans-serif; font-weight:500; color:var(--ink); background:var(--paper); line-height:1.45; }
.app{ max-width:560px; margin:0 auto; padding:16px 16px 230px; position:relative; z-index:1; }
.app.wide{ max-width:1100px; padding-bottom:40px; }
#terra{ position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; image-rendering:pixelated; }
h1,h2,h3{ font-weight:900; margin:0 0 8px; line-height:1.15; } h1{ font-size:1.6rem; } h2{ font-size:1.3rem; } h3{ font-size:1.05rem; }
a{ color:var(--ink); font-weight:700; text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:2px; text-underline-offset:2px; } a:hover{ text-decoration-color:var(--ink); } .btnlike,.btnlike:hover{ text-decoration:none; }
p{ margin:0 0 10px; } .muted{ color:var(--muted); font-size:.9rem; } small{ color:var(--muted); font-weight:500; }
button,.btnlike{ font:inherit; font-weight:800; border:2px solid var(--ink); background:var(--card); color:var(--ink); border-radius:12px; padding:10px 14px; cursor:pointer; display:inline-block; line-height:1.3; text-decoration:none; }
button.primary,.btnlike.primary{ background:var(--accent); color:var(--accent-ink); } button.small,.btnlike.small{ padding:6px 10px; font-size:.85rem; border-radius:10px; }
button.ghost,.btnlike.ghost{ border-color:var(--line); font-weight:700; } button.tiny{ padding:2px 10px; font-size:1rem; border-radius:8px; line-height:1.3; }
button.danger{ border-color:var(--danger); color:var(--danger); }
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{ outline:3px solid var(--accent); outline-offset:2px; }
button:disabled{ opacity:.4; cursor:not-allowed; }
input[type=text],input[type=search],input[type=email],textarea,select{ font:inherit; width:100%; padding:10px 12px; border:2px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink); }
input:disabled,textarea:disabled{ opacity:.8; } textarea{ min-height:80px; resize:vertical; }
.card{ background:var(--card); border:2px solid var(--ink); border-radius:16px; padding:16px; margin-bottom:14px; box-shadow:0 4px 0 rgba(30,40,51,.18); } .card.soft{ border-color:var(--line); box-shadow:none; }
.row{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; } .spread{ display:flex; justify-content:space-between; align-items:center; gap:8px; }
.hidden{ display:none !important; } label.fld{ display:block; font-weight:900; margin:12px 0 4px; }
.top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; background:var(--card); border:2px solid var(--ink); border-radius:12px; padding:8px 12px; } .top h1{ margin:0; }
.netstate{ font-size:.75rem; color:var(--muted); }
.steps{ display:flex; gap:4px; margin-bottom:12px; } .steps i{ flex:1; height:8px; border-radius:999px; background:var(--line); } .steps i.on{ background:var(--accent); } .steps i.done{ background:var(--ink); }
.mon{ width:100%; aspect-ratio:1; object-fit:contain; image-rendering:pixelated; background:repeating-conic-gradient(var(--line) 0 25%,var(--card) 0 50%) 0 0/24px 24px; border:2px solid var(--line); border-radius:12px; }
.mon.plain{ background:transparent; border:none; }
.hero{ display:flex; flex-direction:column; align-items:center; gap:10px; padding:10px 0 6px; } .hero .mon{ width:200px; }
.spawnin{ animation:spawn .6s cubic-bezier(.2,1.4,.4,1) both; } @keyframes spawn{ from{ transform:scale(.2) rotate(-12deg); opacity:0; } to{ transform:none; opacity:1; } }
@media (prefers-reduced-motion: reduce){ .spawnin{ animation:none; } }
.namebig{ font-size:2rem; font-weight:900; text-align:center; border:none; background:transparent; border-bottom:3px dashed var(--line); border-radius:0; padding:4px; }
.quartett{ display:grid; grid-template-columns:auto auto 1fr; gap:4px 10px; align-items:center; margin:8px 0 4px; }
.quartett .n,.statrow .n{ font-weight:900; font-size:1.1rem; text-align:right; min-width:1.4em; }
.quartett .bar,.statrow .bar{ height:10px; border-radius:999px; background:var(--line); overflow:hidden; } .bar i{ display:block; height:100%; background:var(--ink); }
.statrow{ display:grid; grid-template-columns:1fr auto auto auto 90px; gap:6px 8px; align-items:center; padding:6px 0; border-bottom:1px dashed var(--line); } .statrow .statname{ display:flex; flex-direction:column; line-height:1.2; } .statrow small{ font-size:.75rem; }
.seam{ font-size:.82rem; color:var(--muted); border-left:3px solid var(--accent); padding:4px 8px; margin:6px 0 10px; }
.idtag{ font-size:.8rem; color:var(--muted); letter-spacing:.06em; } .qr{ width:72px; height:72px; background:#fff; padding:4px; border-radius:6px; } .qr img,.qr canvas{ width:64px !important; height:64px !important; }
.monlist{ display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:10px; }
.monlist button{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:10px 6px; } .monlist .mon{ width:72px; border:none; background:transparent; } .monlist button.on{ background:var(--accent); } .monlist .why{ font-size:.7rem; color:var(--muted); font-weight:700; }
.objlist{ display:grid; gap:8px; } .objrow{ display:flex; align-items:center; gap:10px; border:2px solid var(--line); border-radius:12px; padding:8px 10px; background:var(--card); }
.objrow .mon{ width:56px; flex:none; } .objrow .name{ flex:1; min-width:0; } .objrow .name b{ display:block; } .objrow .name small{ display:block; }
.friendrow{ display:flex; align-items:center; gap:8px; border:2px solid var(--line); border-radius:12px; padding:8px 10px; } .friendrow .mon{ width:44px; flex:none; }
.soundrow{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; } .rec{ background:var(--danger) !important; color:#fff !important; border-color:var(--danger) !important; }
.picker{ display:flex; flex-direction:column; align-items:center; gap:8px; } .picker .mon{ width:180px; }
.modal{ position:fixed; inset:0; background:rgba(0,0,0,.55); display:flex; align-items:flex-end; justify-content:center; z-index:50; padding:env(safe-area-inset-top,0px) 0 0; }
.sheet{ background:var(--card); width:100%; max-width:560px; border-radius:20px 20px 0 0; padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px)); max-height:96vh; overflow:auto; }
.sheet.editor{ max-width:640px; }
.edwrap{ display:flex; justify-content:center; }
.edcanvas{ width:min(92vw,420px); height:min(92vw,420px); border:3px solid var(--ink); border-radius:8px; touch-action:none; background:repeating-conic-gradient(var(--line) 0 25%,var(--card) 0 50%); image-rendering:pixelated; cursor:crosshair; }
.tools{ display:flex; gap:4px; flex-wrap:wrap; justify-content:center; margin:8px 0 4px; align-items:center; } .tools .sep{ width:10px; }
.tb{ padding:6px 10px; font-size:1rem; border-radius:8px; border-color:var(--line); min-width:38px; } .tb.on{ background:var(--accent); border-color:var(--ink); }
.palette{ display:flex; flex-wrap:wrap; gap:5px; justify-content:center; margin:6px 0; } .pcol{ width:30px; height:30px; border-radius:8px; border:3px solid var(--line); cursor:pointer; padding:0; } .pcol.sel{ border-color:var(--ink); transform:scale(1.15); }
.pcol.custom{ background:conic-gradient(red,yellow,lime,cyan,blue,magenta,red); } .pcol.custom.sel{ border-color:var(--ink); transform:scale(1.15); }
.toast{ position:fixed; left:50%; bottom:calc(20px + env(safe-area-inset-bottom,0px)); transform:translateX(-50%); background:var(--ink); color:var(--paper); padding:10px 16px; border-radius:999px; font-weight:800; z-index:60; opacity:0; transition:opacity .2s; pointer-events:none; white-space:nowrap; max-width:92vw; overflow:hidden; text-overflow:ellipsis; } .toast.show{ opacity:1; }
pre.prompt{ white-space:pre-wrap; font:inherit; font-size:.9rem; background:var(--paper); border:2px dashed var(--line); border-radius:10px; padding:10px; }
.wallgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px; }
.wallcard{ border:2px solid var(--line); border-radius:12px; padding:10px; background:var(--card); } .wallcard .trio{ display:flex; align-items:center; justify-content:space-between; gap:4px; } .wallcard .trio .mon{ width:60px; } .wallcard .trio .arrow{ font-size:1.4rem; font-weight:900; }

/* ---------- Druck: Makermon-Karte A7 ---------- */
#print-card,#print-wall,#print-duo,#print-pitch{ display:none; }
@media print{
  body{ background:#fff !important; color:#000; margin:0; }
  .app,.toast,.modal,#terra{ display:none !important; }
  /* Karte ist in A7-Maßen (74×105mm) gesetzt; admin.html skaliert sie per transform auf das druckbare Feld des gewählten Papiers (Druckränder einstellbar). */
  body.print-card,body.print-duo{ overflow:hidden; }
  /* Pitch-Karten: eine Seite pro Idee, Karte darin absolut und skaliert wie bei printCard */
  body.print-pitch #print-pitch{ display:block; }
  #print-pitch .ppage{ position:relative; overflow:hidden; page-break-after:always; break-after:page; }
  #print-pitch .ppage:last-child{ page-break-after:auto; break-after:auto; }
  #print-pitch .pcard{ position:absolute; }
  .pcard .pframe{ align-items:stretch; }
  .pcard .ptag{ font-size:6.5pt; letter-spacing:.08em; text-transform:uppercase; color:#444; text-align:center; }
  .pcard .pframe .pname{ white-space:normal; font-size:13pt; line-height:1.1; max-height:2.2em; }
  .pcard .pteam{ display:flex; flex-wrap:wrap; gap:1mm 2.5mm; justify-content:center; margin-top:1.5mm; font-size:8pt; font-weight:800; }
  .pcard .pteam span{ display:inline-flex; align-items:center; gap:1mm; } .pcard .pteam img{ width:7mm; height:7mm; object-fit:contain; image-rendering:pixelated; }
  .pcard .pteam small{ font-weight:500; color:#444; } .pcard .pteam .t{ font-weight:500; color:#444; }
  .pcard .psketch{ width:100%; max-height:26mm; object-fit:contain; margin-top:1.5mm; border:.3mm solid #999; border-radius:2mm; }
  .pcard .pline{ font-size:8pt; line-height:1.3; margin-top:1.8mm; } .pcard .pline b{ font-weight:900; }
  .pcard{ width:74mm; height:105mm; transform-origin:0 0; padding:5mm 4.5mm 4.5mm; overflow:hidden; font-family:'Nunito',sans-serif; color:#000; position:relative; }
  body.print-card #print-card{ display:block; position:fixed; left:0; top:0; }
  /* Doppeldruck: zwei Karten nebeneinander auf dem nächstgrößeren Papier quer (z.B. 2× A6 auf A5), Schnittlinie in der Mitte */
  body.print-duo #print-duo{ display:block; position:fixed; left:0; top:0; }
  #print-duo .pcard{ position:absolute; top:0; left:0; }
  #print-duo .cut{ position:absolute; border-left:.2mm dashed #999; }
  .pcard .hole{ position:absolute; top:2.2mm; left:50%; transform:translateX(-50%); width:4mm; height:4mm; border:.4mm solid #000; border-radius:50%; }
  .pcard .frame{ border:.6mm solid #000; border-radius:3mm; width:100%; height:100%; padding:3.5mm 3mm 2.5mm; display:flex; flex-direction:column; align-items:center; overflow:hidden; }
  .pcard img.pmon{ width:28mm; height:28mm; object-fit:contain; image-rendering:pixelated; flex:none; }
  .pcard .pname{ font-size:14pt; font-weight:900; line-height:1.05; margin-top:1mm; text-align:center; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:none; }
  .pcard .pcreator{ font-size:7.5pt; color:#444; margin-top:.5mm; flex:none; }
  .pcard .pobj{ display:flex; align-items:center; gap:2mm; margin-top:1.5mm; width:100%; border:.3mm solid #000; border-radius:2mm; padding:1mm 1.5mm; flex:none; }
  .pcard .pobj img{ width:11mm; height:11mm; object-fit:contain; image-rendering:pixelated; flex:none; }
  .pcard .pobj div{ font-size:7pt; line-height:1.2; min-width:0; } .pcard .pobj b{ font-size:8.5pt; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .pcard table{ width:100%; font-size:7.5pt; border-collapse:collapse; margin-top:1.5mm; flex:none; }
  .pcard td{ padding:.3mm 1mm; border-bottom:.2mm dotted #999; line-height:1.15; } .pcard td.v{ text-align:right; font-weight:900; font-size:9pt; }
  .pcard .pfoot{ margin-top:auto; width:100%; display:flex; justify-content:space-between; align-items:flex-end; font-size:6pt; line-height:1.25; flex:none; }
  .pcard .pfoot > div:first-child{ min-width:0; overflow:hidden; } .pcard .pqr{ flex:none; } .pcard .pqr img,.pcard .pqr canvas{ width:13mm !important; height:13mm !important; display:block; }
  /* ---------- Druck: Freundschafts-Wandkarte A6 quer ---------- */
  /* Wandkarte in A6-quer-Maßen (148×105mm) gesetzt, Skalierung wie oben. */
  body.print-wall{ overflow:hidden; }
  body.print-wall #print-wall{ display:block; position:fixed; left:0; top:0; width:148mm; height:105mm; transform-origin:0 0; padding:6mm; overflow:hidden; font-family:'Nunito',sans-serif; color:#000; }
  #print-wall .wframe{ border:.6mm solid #000; border-radius:4mm; width:100%; height:100%; padding:4mm 5mm; display:flex; flex-direction:column; align-items:center; overflow:hidden; }
  #print-wall .wtitle{ font-size:9pt; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
  #print-wall .wrow{ display:flex; align-items:center; justify-content:space-between; width:100%; margin-top:2mm; gap:2mm; }
  #print-wall .who{ display:flex; flex-direction:column; align-items:center; width:38mm; } #print-wall .who img.m{ width:26mm; height:26mm; object-fit:contain; image-rendering:pixelated; }
  #print-wall .who b{ font-size:11pt; margin-top:1mm; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
  #print-wall .who small{ font-size:7pt; color:#444; }
  #print-wall .who .o{ display:flex; align-items:center; gap:1.5mm; font-size:7.5pt; margin-top:1mm; } #print-wall .who .o img{ width:9mm; height:9mm; object-fit:contain; image-rendering:pixelated; }
  #print-wall .sign{ font-size:22pt; font-weight:900; }
  #print-wall .result{ display:flex; flex-direction:column; align-items:center; width:44mm; } #print-wall .result img{ width:30mm; height:30mm; object-fit:contain; image-rendering:pixelated; }
  #print-wall .result b{ font-size:12pt; margin-top:1mm; text-align:center; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #print-wall .wtext{ margin-top:auto; font-size:9pt; text-align:center; line-height:1.3; }
  #print-wall .wfoot{ font-size:6pt; color:#444; margin-top:1mm; }
}
@page{ margin:0; }
img.mon[src=""],img.mon:not([src]){ visibility:hidden; }
#ro-banner{ background:var(--card); border-radius:0 10px 10px 0; padding:8px 10px; }

.quartett .n small.buff{ font-size:.7rem; color:#2f6b3a; font-weight:900; margin-left:2px; }
.bar{ position:relative; } .bar b{ position:absolute; left:0; top:0; height:100%; border-right:2px solid var(--card); }
.stamps{ display:flex; gap:6px; flex-wrap:wrap; } .stamp{ border:2px solid var(--ink); border-radius:999px; padding:3px 10px; font-weight:800; font-size:.85rem; background:var(--accent); color:var(--accent-ink); }
.stampgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:8px; } .stampgrid label{ display:flex; gap:8px; align-items:center; border:2px solid var(--line); border-radius:12px; padding:8px 10px; cursor:pointer; } .stampgrid label.on{ border-color:var(--ink); background:var(--accent); }

.camframe{ position:relative; width:min(100%,320px); aspect-ratio:1; background:#111; border-radius:12px; overflow:hidden; border:2px solid var(--line); }
.camframe video{ width:100%; height:100%; object-fit:cover; display:block; }
.camguide{ position:absolute; inset:6%; border:2px dashed rgba(255,255,255,.75); border-radius:8px; pointer-events:none; }

.histstrip{ display:flex; flex-wrap:wrap; gap:6px; }
.histpick{ padding:0; border:2px solid var(--line); border-radius:10px; background:repeating-conic-gradient(var(--line) 0 25%,var(--card) 0 50%) 0 0/12px 12px; width:64px; height:64px; overflow:hidden; cursor:pointer; }
.histpick:disabled{ cursor:default; opacity:.8; }
.histpick img{ width:100%; height:100%; object-fit:contain; display:block; image-rendering:pixelated; }
.histstrip.small .histpick{ width:36px; height:36px; border-radius:6px; margin-top:4px; }

.printcfg{ display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; font-size:13px; color:var(--muted); margin:8px 0 4px; } .printcfg input[type=number]{ width:64px !important; padding:4px 6px; } .printcfg select{ width:auto !important; padding:4px 6px; }

.histpick.sel{ border-color:var(--accent); box-shadow:0 0 0 2px var(--accent); }

/* Spielpass */
.passitem{ display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:12px 14px; border:2px solid var(--ink); border-radius:14px; background:var(--card); box-shadow:0 3px 0 rgba(30,40,51,.18); }
.passitem.on{ background:#eef9ea; border-color:#2f6b3a; }
.passitem .num{ width:32px; height:32px; border-radius:50%; background:var(--ink); color:#fff; font-weight:900; display:flex; align-items:center; justify-content:center; flex:none; }
.passitem.on .num{ background:#2f6b3a; }
.passitem .txt{ flex:1; min-width:0; display:flex; flex-direction:column; } .passitem .txt b{ font-size:1.05rem; } .passitem .txt small{ color:var(--muted); font-weight:700; }
.passitem .chk{ width:34px; height:34px; border-radius:50%; border:2px dashed var(--ink); display:flex; align-items:center; justify-content:center; font-weight:900; font-size:1.2rem; flex:none; }
.passitem.on .chk{ border-style:solid; background:#4fa85c; color:#fff; border-color:#2f6b3a; }

/* Hinweis + Benachrichtigung (02.11.2026) */
#pause-card ul{ margin:6px 0 8px; padding-left:20px; } #pause-card li{ margin:3px 0; }
#notify{ margin-top:12px; padding-top:12px; border-top:2px dashed var(--line); }
#notify .row{ gap:8px; } #notify label.chk{ display:flex; gap:8px; align-items:flex-start; font-size:.9rem; margin:8px 0; cursor:pointer; }
#notify label.chk input{ width:18px; height:18px; margin-top:2px; flex:none; accent-color:var(--accent); }
#notify .hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.legal{ text-align:center; font-size:.8rem; color:var(--muted); margin:6px 0 18px; } .legal a{ color:inherit; }

/* Ideen-Wand auf- und zuklappbar (02.11.2026) */
details#pitches-card > summary{ cursor:pointer; list-style:none; }
details#pitches-card > summary::-webkit-details-marker{ display:none; }
details#pitches-card > summary h3::before{ content:"▸ "; display:inline-block; width:1.1em; transition:transform .15s; }
details#pitches-card[open] > summary h3::before{ content:"▾ "; }
