/* SQUAD+ Board – Apple-Stil, dunkel, für iPad quer und hochkant */
:root{--bg:#1c1c1e;--bar:rgba(44,44,46,.92);--cell:#2c2c2e;--fill:#3a3a3c;--text:#fff;--muted:#a1a1a6;--accent:#0a84ff;--a:#0a84ff;--b:#ff453a}
[hidden]{display:none!important}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font:15px/1.3 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;overflow:hidden;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none}
body{display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left)}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;padding:0}
svg{display:block}
.bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 12px;background:var(--bar);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-bottom:.5px solid rgba(255,255,255,.08);z-index:2}
.brand{display:flex;align-items:center;gap:8px;font-size:16px;margin-right:4px;white-space:nowrap}
.brand img{border-radius:8px}
.brand b{font-weight:800;font-style:italic;letter-spacing:.3px}
.group{display:flex;align-items:center;gap:4px}
.group.right{margin-left:auto}
.seg{background:var(--fill);border-radius:10px;padding:2px}
.seg button{width:44px;height:36px;border-radius:8px;display:grid;place-items:center}
.seg button[aria-checked="true"]{background:#636366}
.bar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--fill)}
.icon:active,.txt:active,.tray button:active{opacity:.6}
.txt{height:36px;padding:0 12px;border-radius:10px;background:var(--fill);font-weight:600}
.colors button{width:30px;height:30px;border-radius:50%;border:2px solid transparent;box-shadow:inset 0 0 0 2px rgba(0,0,0,.25)}
.colors button[aria-checked="true"]{border-color:#fff}
#stage{flex:1;min-height:0;display:grid;place-items:center;padding:10px;position:relative}
#board{width:100%;height:100%;touch-action:none}
.tray{display:flex;align-items:center;gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--bar);border-top:.5px solid rgba(255,255,255,.08);overflow-x:auto}
.tray button{display:flex;align-items:center;gap:8px;height:40px;padding:0 14px 0 8px;border-radius:20px;background:var(--fill);font-weight:600;white-space:nowrap}
.chip{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700;color:#fff}
.chip.a{background:var(--a)}.chip.b{background:var(--b)}
.chip.ball{background:#fff;box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 9px #1c1c1e}
.chip.cone{width:0;height:0;border-radius:0;border-left:11px solid transparent;border-right:11px solid transparent;border-bottom:22px solid #ff9f0a;margin:0 2px}
.chip.pole{width:6px;height:26px;border-radius:3px;background:repeating-linear-gradient(#ffd60a 0 6px,#1c1c1e 6px 12px)}
.hint{margin-left:auto;color:var(--muted);font-size:13px;white-space:nowrap;padding-left:8px}
.pop{position:fixed;z-index:5;display:flex;gap:6px;padding:6px;border-radius:14px;background:var(--bar);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:0 8px 30px rgba(0,0,0,.45)}
.pop button{height:38px;min-width:38px;padding:0 12px;border-radius:10px;background:var(--fill);font-weight:600}
.pop .num{min-width:44px;display:grid;place-items:center;font-weight:700;font-size:17px}
.pop .del{color:#ff453a}
.sheet-wrap{position:fixed;inset:0;z-index:10;background:rgba(0,0,0,.45);display:grid;place-items:center;padding:20px}
.sheet{width:min(520px,100%);max-height:85vh;overflow:auto;background:#1c1c1e;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.6);padding:8px 16px 18px;-webkit-user-select:text;user-select:text;touch-action:pan-y}
.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:8px 0}
.sheet-head h2{margin:0;font-size:20px}
.close{width:32px;height:32px;border-radius:50%;background:var(--fill);font-size:22px;line-height:1;color:var(--muted)}
.list{background:var(--cell);border-radius:12px;overflow:hidden;margin:6px 0 14px}
.row{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:10px 14px;text-align:left;border-bottom:.5px solid rgba(255,255,255,.08)}
.row:last-child{border-bottom:0}
.row .main{flex:1;min-width:0}
.row small{display:block;color:var(--muted);font-size:13px}
.row .check{color:var(--accent);font-weight:700}
.row .act{height:32px;padding:0 12px;border-radius:8px;background:var(--fill);font-weight:600}
.row .act.danger{color:#ff453a}
.label{color:var(--muted);font-size:13px;margin:10px 4px 4px}
.segpick{display:flex;background:var(--fill);border-radius:10px;padding:2px;margin:6px 0 10px}
.segpick button{flex:1;height:34px;border-radius:8px;font-weight:600}
.segpick button[aria-checked="true"]{background:#636366}
.input{width:100%;height:44px;border-radius:10px;border:0;background:var(--cell);color:var(--text);font:inherit;font-size:16px;padding:0 12px;margin:4px 0 8px;-webkit-user-select:text;user-select:text}
.primary{width:100%;height:46px;border-radius:12px;background:var(--accent);color:#fff;font-weight:700;font-size:16px;margin-top:4px}
.toast{position:fixed;left:50%;bottom:calc(80px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:20;background:rgba(60,60,62,.95);padding:10px 16px;border-radius:12px;font-weight:600}
@media (max-width:820px){.brand span{display:none}.hint{display:none}.txt{padding:0 9px}}
.evinfo{display:flex;align-items:center;gap:8px;min-width:0;font-weight:600;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.evinfo img{width:26px;height:26px;object-fit:contain}
.evinfo b{color:var(--text)}
.txt.save{background:var(--accent);color:#fff}
.txt.save.dirty .lbl::after{content:" •"}
.txt.save .sv{display:none}
.txt.save.dirty .sv{stroke:#fff}
.txt.back{background:none;color:#409cff;padding:0 6px}
@media (max-width:820px){.evinfo{display:none}}

/* Handy (Nutzer 2026-11-24): eine Zeile oben, Rest im „⋯“-Menü; untere Leiste wischbar */
.swatch,.more{display:none}
.swatch{width:34px;height:34px;border-radius:50%;border:2px solid #fff;box-shadow:inset 0 0 0 2px rgba(0,0,0,.25);flex:none}
.tray{touch-action:pan-x;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.tray::-webkit-scrollbar{display:none}
@media (max-width:700px){
  .bar{flex-wrap:nowrap;gap:6px;padding:6px 8px;overflow-x:auto;scrollbar-width:none}
  .bar::-webkit-scrollbar{display:none}
  .brand,#colors,#pitchBtn,#formBtn,#sceneBtn,#clear,#share{display:none}
  .group.right{margin-left:auto}
  .seg button{width:38px;height:34px}
  .icon{width:36px;height:36px}
  .swatch,.more{display:grid;place-items:center}
  .more svg{fill:currentColor;stroke:none}
  .txt.save{width:40px;padding:0;display:grid;place-items:center}
  .txt.save .lbl,.txt.back .lbl{display:none}
  .txt.save .sv{display:block;width:22px;height:22px}
  .txt.save.dirty{box-shadow:0 0 0 2px #ffd60a inset}
  .txt.back{font-size:28px;line-height:1;padding:0 4px;height:36px}
  .seg button{width:33px}
  .swatch{width:30px;height:30px}
  .icon{width:34px;height:34px}
  #stage{padding:6px}
  .tray button{height:36px;padding:0 12px 0 6px}
}
