/* Wartespiel (Biene). Keine Inline-Styles (CSP). */
.gm { margin: 18px 0 4px; }
.gm__field { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #faf6ea; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.gm__cv { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; outline: none; }
.gm__cv:focus-visible { box-shadow: inset 0 0 0 2px var(--brass); }
.gm__ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px 12px 34%; text-align: center; background: rgba(250, 246, 234, .82); }
.gm__ov[hidden] { display: none; }
.gm__title { font-size: 1.05rem; }
.gm__text { max-width: 440px; font-size: .92rem; }
.gm__hint { max-width: 440px; }
.gm__score { margin: 6px 2px 0; }
.gm__fs, .gm__stab { position: absolute; z-index: 2; font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, #d9d0bb); background: rgba(255, 255, 255, .92); color: #1f2733; cursor: pointer; }
.gm__fs { top: 8px; left: 8px; }
.gm__stab { right: 10px; bottom: 10px; padding: 12px 22px; font-size: .95rem; background: #1f2733; color: #fff; border-color: #1f2733; touch-action: manipulation; }
.gm__stab[hidden] { display: none; }
.gm__field:fullscreen, .gm__field--full { border-radius: 0; border: 0; display: flex; align-items: center; justify-content: center; background: #faf6ea; }
.gm__field:fullscreen .gm__cv, .gm__field--full .gm__cv { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.gm__field--full { position: fixed; inset: 0; z-index: 2147483000; }
.gm__field:fullscreen .gm__ov, .gm__field--full .gm__ov { padding-left: 18px; }
.gm__field:fullscreen .gm__stab, .gm__field--full .gm__stab { padding: 16px 30px; font-size: 1.05rem; bottom: 24px; right: 24px; }
.gm-lock { overflow: hidden; }
.gm__score { color: var(--slate); font-size: .9rem; text-align: center; }
.gm__text, .gm__hint { color: var(--slate); }
.gm__hint { font-size: .85rem; }
.gm__ov--dead { background: rgba(120, 30, 30, .78); color: #fff; }
.gm__ov--dead .gm__title { font-size: clamp(1.7rem, 6vw, 3rem); text-align: center; font-weight: 900; line-height: 1.08; text-transform: uppercase; letter-spacing: .01em; animation: gm-bigpop .5s cubic-bezier(.2, 1.5, .4, 1) 2.1s both, gm-shrink .6s ease 3.6s forwards; }
.gm__ov--dead .gm__text { color: #fff; }
.gm__res { white-space: pre-line; font-weight: 600; font-size: .95rem; }
.gm__snd { position: absolute; z-index: 2; top: 8px; left: 100px; font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, #d9d0bb); background: rgba(255, 255, 255, .92); color: #1f2733; cursor: pointer; }
.gm__swarm { position: absolute; z-index: 2; right: 120px; bottom: 10px; padding: 12px 18px; font: inherit; font-size: .9rem; font-weight: 700; border-radius: 999px; border: 1px solid #c97a0a; background: #ff9f1c; color: #1f2733; cursor: pointer; touch-action: manipulation; }
.gm__swarm[hidden] { display: none; }
.gm__field:fullscreen .gm__swarm, .gm__field--full .gm__swarm { right: 170px; bottom: 24px; padding: 16px 24px; }
.gm__share { margin-top: 4px; }
.gm__share[hidden], .gm__res[hidden] { display: none; }

/* Overlay-Einblendung */
@keyframes gm-pop { from { opacity: 0; transform: scale(.88) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes gm-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.gm__ov > * { animation: gm-pop .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.gm__ov > *:nth-child(2) { animation-delay: .08s; } .gm__ov > *:nth-child(3) { animation-delay: .16s; } .gm__ov > *:nth-child(4) { animation-delay: .24s; }
.gm__ov .btn--primary { animation: gm-pop .45s .3s cubic-bezier(.2, .9, .3, 1.2) both; }
@media (prefers-reduced-motion: reduce) { .gm__ov > *, .gm__ov .btn--primary { animation: none; } }
.gm__tip { display: block; margin-top: 4px; font-size: .82rem; opacity: .85; max-width: 38ch; font-style: italic; }
.gm__gore { position: absolute; z-index: 2; top: 8px; left: 196px; font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, #d9d0bb); background: rgba(255, 255, 255, .92); color: #1f2733; cursor: pointer; }
@keyframes gm-ready { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.gm__swarm.is-ready { animation: gm-ready .8s ease-in-out infinite; }
@keyframes gm-late { from { opacity: 0; } to { opacity: 1; } }
.gm__ov--dead { align-items: center; text-align: center; background: radial-gradient(ellipse at center, rgba(110, 24, 28, .86) 0, rgba(70, 12, 18, .92) 100%); animation: gm-late .4s 2.1s both; padding-left: 18px; }
.gm__ov--dead > * { animation: none; }


@media (prefers-reduced-motion: reduce) { .gm__swarm.is-ready, .gm__ov--dead, .gm__ov--dead > * { animation: none; } }

.gm__gear { position: absolute; z-index: 3; top: 8px; left: 100px; font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, #d9d0bb); background: rgba(255, 255, 255, .92); color: var(--ink, #1a1a1a); cursor: pointer; }
.gm__gear.is-on { background: var(--ink, #1a1a1a); color: #fff; }
.gm__set { position: absolute; z-index: 4; top: 46px; left: 8px; width: min(340px, calc(100% - 16px)); max-height: calc(100% - 56px); overflow: auto; padding: 14px 16px; background: var(--paper, #fff); border: 1.5px solid var(--ink, #1a1a1a); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink, #1a1a1a); text-align: left; }
.gm__set[hidden] { display: none; }
.gm__set-h { display: block; margin-bottom: 8px; font-size: 1rem; }
.gm__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line, #d9d0bb); font-size: .86rem; }
.gm__row label { flex: 1; }
.gm__sw { width: 42px; height: 24px; border-radius: 999px; border: 1.5px solid var(--ink, #1a1a1a); background: #e3ddcc; position: relative; cursor: pointer; padding: 0; flex: none; }
.gm__sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink, #1a1a1a); transition: transform .15s; }
.gm__sw.is-on { background: #f2b632; }
.gm__sw.is-on::after { transform: translateX(18px); }
.gm__seg { display: inline-flex; border: 1.5px solid var(--ink, #1a1a1a); border-radius: 999px; overflow: hidden; flex: none; }
.gm__seg button { font: inherit; font-size: .75rem; padding: 4px 9px; border: 0; background: transparent; cursor: pointer; color: var(--ink, #1a1a1a); }
.gm__seg button.is-on { background: var(--ink, #1a1a1a); color: #fff; }
.gm__rng { width: 120px; accent-color: #d9941a; flex: none; }
.gm__set-f { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
.gm__set-f span { flex: 1 1 100%; font-size: .75rem; color: var(--slate, #666); }
.gm__sub { display: block; font-size: 1rem; font-weight: 600; margin-top: 4px; opacity: 0; animation: gm-late .4s ease 2.2s forwards; }
.gm__sub[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .gm__sw::after { transition: none; } }

/* Todesszene: erst groß der Spruch, dann blenden die Run-Stats ein */
@keyframes gm-bigpop { from { opacity: 0; transform: scale(.5) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes gm-shrink { from { font-size: clamp(1.7rem, 6vw, 3rem); } to { font-size: clamp(1.1rem, 3vw, 1.45rem); } }
@keyframes gm-shrinks { from { font-size: clamp(1.05rem, 3vw, 1.5rem); } to { font-size: .92rem; } }
.gm__ov--dead .gm__sub { font-size: clamp(1.05rem, 3vw, 1.5rem); text-align: center; opacity: 1; animation: gm-bigpop .5s ease 2.35s both, gm-shrinks .6s ease 3.6s forwards; }
.gm__ov--dead .gm__stats, .gm__ov--dead .gm__res, .gm__ov--dead .gm__tip, .gm__ov--dead .gm__playbtn, .gm__ov--dead .gm__share { animation: gm-late .6s ease 3.8s both; }
.gm__ov--dead .gm__playbtn { animation-delay: 4.1s; }
.gm__ov--dead.is-skip *, .gm__ov--dead.is-skip { animation: none !important; }
.gm__stats { display: grid; justify-items: center; gap: 2px; }
.gm__stats[hidden] { display: none; }
.gm__big { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 900; line-height: 1; color: #ffe08a; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.gm__stats small { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.gm__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.gm__chip { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); font-size: .85rem; }
.gm__playbtn { display: inline-flex; align-items: center; gap: 12px; margin-top: 6px; padding: 14px 34px 14px 28px; font: inherit; font-size: 1.2rem; font-weight: 800; color: #1a1a1a; background: linear-gradient(180deg, #ffd96a, #f2a81c); border: 2px solid #1a1a1a; border-radius: 999px; box-shadow: 4px 4px 0 #1a1a1a; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.gm__playbtn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #1a1a1a; }
.gm__playbtn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #1a1a1a; }
.gm__playbtn[hidden] { display: none; }
.gm__playbtn:disabled { opacity: .6; cursor: wait; }
.gm__tri { width: 0; height: 0; border-left: 17px solid #1a1a1a; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-radius: 2px; }
.gm__playbtn.is-again .gm__tri { width: 20px; height: 20px; border: 4px solid #1a1a1a; border-right-color: transparent; border-radius: 50%; }
.gm__ov:not(.gm__ov--dead) .gm__playbtn { animation: gm-pulse 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .gm__playbtn, .gm__ov--dead .gm__title, .gm__ov--dead .gm__sub, .gm__ov--dead .gm__stats { animation: none !important; } .gm__playbtn { transition: none; } }

.gm__ov--dead { justify-content: center; gap: 4px; overflow: hidden; }
.gm__ov--dead .gm__tip { display: none; }
.gm__ov--dead .gm__res { font-size: .82rem; line-height: 1.35; }
.gm__ov--dead .gm__big { font-size: clamp(2rem, 6vw, 2.8rem); }
.gm__ov--dead .gm__chips { margin-top: 4px; }
.gm__ov--dead .gm__playbtn { padding: 10px 26px 10px 22px; font-size: 1.05rem; }
.gm__ov--dead .gm__share { margin-top: 0; }
