/* Bürokratopia – Minispiel „Unterschrift nachziehen“ (0.16.0). Gehört zu assets/js/spiel_unterschrift.js. Präfix s-unterschrift-.
   Zeichenfeld 2:1 als Canvas (die Höhe setzt das JS aus der Breite), touch-action: none, Papieroptik aus app.css-Variablen. */
.s-unterschrift { display: grid; gap: 10px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.s-unterschrift-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.s-unterschrift-vor { display: block; font-size: .78rem; color: var(--leise); font-weight: 600; }
.s-unterschrift-name { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.s-unterschrift-versuch { font-weight: 700; color: var(--leise); font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-unterschrift-versuch b { color: var(--text); font-size: 1.2rem; }
.s-unterschrift-regel { margin: 0; font-size: .88rem; color: var(--leise); text-align: center; }
.s-unterschrift-regel b { color: var(--text); }

/* Zeichenfeld */
.s-unterschrift-feld { position: relative; width: 100%; max-width: 560px; margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--linie2); background: var(--flaeche); background-image: repeating-linear-gradient(180deg, transparent 0 31px, var(--linie) 31px 32px); box-shadow: var(--schatten); overflow: hidden; touch-action: none; }
.s-unterschrift-feld::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 10%; height: 0; border-top: 1px solid var(--linie2); pointer-events: none; }
.s-unterschrift-canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; -webkit-tap-highlight-color: transparent; }
.s-unterschrift-aktiv .s-unterschrift-canvas { cursor: crosshair; }
.s-unterschrift-feld:not(.s-unterschrift-aktiv) .s-unterschrift-canvas { cursor: default; }
.s-unterschrift-start { position: absolute; inset: 0; z-index: 6; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 18px; text-align: center; background: color-mix(in srgb, var(--flaeche) 90%, transparent); backdrop-filter: blur(3px); }
.s-unterschrift-start p { margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.4; max-width: 320px; }
.s-unterschrift-start .knopf { min-width: 160px; min-height: 56px; font-size: 1.2rem; border-radius: 16px; }
.s-unterschrift-schild { position: absolute; left: 50%; top: 8px; z-index: 4; transform: translateX(-50%); padding: 6px 14px; border-radius: 99px; background: var(--akzent); color: var(--flaeche); font-weight: 800; white-space: nowrap; pointer-events: none; animation: aufploppen .2s var(--kurve); font-variant-numeric: tabular-nums; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
.s-unterschrift-schild-gut { background: var(--gruen); }
.s-unterschrift-schild-leise { background: var(--flaeche3); color: var(--leise); }

/* Knöpfe und Stand */
/* Die Zeile behält ihre Höhe, auch wenn beide Knöpfe versteckt sind: sonst springt im bodenbündigen Modal die Zeichenfläche unter dem Finger */
.s-unterschrift-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; margin: 0 auto; width: 100%; min-height: 52px; }
.s-unterschrift-knopf { min-height: 52px; font-size: 1.02rem; font-weight: 800; border-radius: 14px; }
.s-unterschrift-knopf[hidden] { display: none; }
.s-unterschrift-knoepfe:has(.s-unterschrift-knopf[hidden]) { grid-template-columns: 1fr; }
.s-unterschrift-stand { margin: 0; text-align: center; min-height: 1.6em; line-height: 1.6; font-variant-numeric: tabular-nums; }   /* feste Höhe: kein Springen, wenn der Text kommt */
.s-unterschrift-ergebnis { margin: 0; text-align: center; font-weight: 700; padding: 9px 12px; border-radius: var(--radius-k); background: var(--gruen-hell); color: var(--gruen-text); }
.s-unterschrift-pointe { margin: 0; text-align: center; font-style: italic; }
