/* Mach's Meme – eigenes Stylesheet (made by Oskar) */
@font-face { font-family: 'Bangers'; src: url('fonts/Bangers-latin.woff2') format('woff2'); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bangers'; src: url('fonts/Bangers-latin-ext.woff2') format('woff2'); font-weight: 400; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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'; src: url('fonts/Nunito-latin-var.woff2') format('woff2'); font-weight: 200 1000; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito-latin-ext-var.woff2') format('woff2'); font-weight: 200 1000; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Barlow Condensed'; src: url('fonts/BarlowCondensed-700-italic-latin.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; src: url('fonts/BarlowCondensed-700-italic-latin-ext.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Barlow Condensed'; src: url('fonts/BarlowCondensed-800-italic-latin.woff2') format('woff2'); font-weight: 800; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; src: url('fonts/BarlowCondensed-800-italic-latin-ext.woff2') format('woff2'); font-weight: 800; font-style: italic; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg-a: #3a93ee; --bg-b: #6a5be2; --bg-c: #9236d6;
  --navy: #2f2b66; --navy-2: #26235a; --navy-3: #1d1a47;
  --panel: rgba(36, 32, 98, .52); --panel-2: rgba(30, 26, 84, .72);
  --ink: #1d1b44; --white: #fff; --muted: #c9c6f2;
  --cyan: #35f2e2; --cyan-2: #18c9e8; --green: #3ee45d; --green-2: #14b84b;
  --yellow: #ffd233; --yellow-2: #f2a917; --red: #ff3c5a; --red-2: #d61f3e;
  --pink: #ff58d5; --blue: #2fa4ff; --blue-2: #1b74e8; --orange: #ff8a1f;
  --silver: #a9f1ff; --bronze: #ffa25a; --gold: #ffd233;
  --f-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-logo: 'Bangers', 'Impact', sans-serif;
  --f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hdr-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--white);
  font-family: var(--f-head); font-style: italic; font-weight: 700; letter-spacing: 0; font-size: 18px;
  background: var(--bg-b); overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.title-logo span { font-weight: 400; }
b, strong { font-weight: 800; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
.hidden { display: none !important; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* HINTERGRUND */
.bg { position: fixed; inset: 0; z-index: -1; background: linear-gradient(225deg, var(--bg-c) 0%, var(--bg-b) 48%, var(--bg-a) 100%); overflow: hidden; }
.rays { position: absolute; left: 50%; top: 42%; width: 260vmax; height: 260vmax; transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.075) 0deg 9deg, rgba(255,255,255,0) 9deg 18deg); animation: spin 120s linear infinite; }
body.on-start .rays { opacity: 1; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* KOPFZEILE */
.hdr { position: sticky; top: 0; z-index: 30; height: var(--hdr-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 0 28px; padding-top: env(safe-area-inset-top, 0px); height: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); }
body:not(.on-start) .hdr { background: rgba(44, 40, 98, .92); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.hdr-left, .hdr-right { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hdr-right { justify-content: flex-end; }
.logo { text-decoration: none; display: inline-flex; }
.logo-mark { font-family: var(--f-logo); font-style: normal; font-weight: 400; font-size: 34px; line-height: 1; color: #fff; letter-spacing: -.01em;
  text-shadow: 0 3px 0 #5a2bb3, 2px 4px 0 #3b1a80, -1px -1px 0 #5a2bb3, 1px -1px 0 #5a2bb3; transform: rotate(-3deg); display: inline-block; }
.logo-mark i { font-style: normal; font-size: .55em; vertical-align: .55em; margin: 0 1px; }
.hdr-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 4px; color: #fff; font-size: 19px; text-decoration: none; white-space: nowrap; }
.hdr-btn:hover { color: var(--yellow); }
.hdr-btn.zb { background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.35); border-radius: 8px; padding: 5px 12px; }
body.on-start .hdr-btn.zb { background: var(--yellow); color: var(--ink); border-color: var(--yellow-2); box-shadow: 0 3px 0 var(--yellow-2); }
body.on-start #leaveBtn { display: none; }
body:not(.on-start) .logo { display: none; }
.hdr-mid { text-align: center; line-height: 1.05; min-width: 0; }
.hdr-tag { font-size: 14px; color: var(--yellow); }
.hdr-small { font-size: 15px; }
.hdr-small b { color: var(--yellow); font-size: 22px; font-weight: 800; }
.hdr-title { font-size: 27px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-title .lob { color: var(--cyan); font-size: 32px; }
.hdr-title .hash { font-size: 20px; color: #fff; }
.hdr-title .edit { background: none; border: 0; color: #fff; font-size: 16px; padding: 0 4px; }
.hdr-bar { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); width: min(980px, calc(100% - 120px)); height: 14px;
  background: rgba(44, 40, 98, .92); border-radius: 0 0 16px 16px; padding: 0 12px 6px; }
.hdr-bar::before { content: ''; position: absolute; left: 12px; right: 12px; top: 0; height: 6px; background: #17153a; border-radius: 3px; }
.hdr-fill { position: absolute; left: 12px; top: 0; height: 6px; width: 0; max-width: calc(100% - 24px); background: var(--yellow); border-radius: 3px; transition: width .25s linear; }
.hdr-fill.low { background: var(--red); }
.hdr-secs { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); color: var(--red); font-size: 14px; text-shadow: 0 1px 0 rgba(0,0,0,.3); }

/* LAYOUT */
.main { padding: 18px 24px calc(96px + var(--safe-b)); max-width: 1180px; margin: 0 auto; }
.screen { animation: pop .28s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.panel { background: var(--panel); border-radius: 10px; padding: 16px; box-shadow: 0 6px 24px rgba(20, 10, 70, .18); }
.sec-title { font-size: 34px; text-align: center; margin: 46px 0 18px; font-weight: 800; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.sec-title.left { text-align: left; margin: 0; }

/* KNÖPFE */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 6px; padding: 11px 26px 13px; font-size: 20px; color: var(--ink);
  background: linear-gradient(180deg, #ffe066, var(--yellow)); box-shadow: inset 0 -4px 0 rgba(0,0,0,.14), 0 4px 0 var(--yellow-2), 0 6px 14px rgba(0,0,0,.18);
  transition: transform .08s, filter .15s; text-decoration: none; white-space: nowrap; }
.btn:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.14), 0 1px 0 var(--yellow-2); }
.btn:disabled { filter: grayscale(.7) brightness(.8); opacity: .7; }
.btn.green { background: linear-gradient(180deg, #6cf27f, var(--green)); box-shadow: inset 0 -4px 0 rgba(0,0,0,.14), 0 4px 0 var(--green-2), 0 6px 14px rgba(0,0,0,.18); }
.btn.green:active:not(:disabled) { box-shadow: inset 0 -2px 0 rgba(0,0,0,.14), 0 1px 0 var(--green-2); }
.btn.blue { background: linear-gradient(180deg, #5cbcff, var(--blue)); box-shadow: inset 0 -4px 0 rgba(0,0,0,.14), 0 4px 0 var(--blue-2), 0 6px 14px rgba(0,0,0,.18); }
.btn.red { background: linear-gradient(180deg, #ff6b83, var(--red)); color: #fff; box-shadow: inset 0 -4px 0 rgba(0,0,0,.14), 0 4px 0 var(--red-2); }
.btn.small { padding: 6px 14px 8px; font-size: 16px; }
.btn.big { padding: 14px 34px 16px; font-size: 24px; }
.btn.wide { width: 100%; }
.pill { border-radius: 999px; padding: 5px 14px; font-size: 15px; background: rgba(20,18,60,.55); border: 2px solid; white-space: nowrap; }
.pill.cyan { border-color: var(--cyan); color: #fff; }
.pill.yellow { border-color: var(--yellow); color: #fff; }
.pill:hover { background: rgba(20,18,60,.8); }
.link-back, .link-small, .link-act { background: none; border: 0; color: #fff; font-size: 17px; padding: 8px; }
.link-back:hover, .link-small:hover, .link-act:hover:not(:disabled) { color: var(--yellow); }
.link-act:disabled { opacity: .4; }
.chip-btn { border: 0; border-radius: 999px; padding: 5px 14px; font-size: 15px; color: var(--ink); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.chip-btn.yellow { background: var(--yellow); }
.chip-btn.light { background: #e8e8f4; }
.chip-btn.on { background: var(--green); }

/* EINGABEN */
input[type=text], .selw select { width: 100%; border: 0; border-bottom: 3px solid #b8b6d6; border-radius: 4px; background: #eeeef6; color: var(--ink);
  padding: 9px 12px 7px; font-size: 18px; outline: none; font-family: var(--f-head); }
input[type=text]:focus { background: #fff; border-bottom-color: var(--cyan-2); }
input::placeholder { color: #8d8ab0; }
.selw { position: relative; display: block; }
.selw select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.selw::after { content: '▾'; position: absolute; right: 0; top: 0; bottom: 3px; width: 36px; display: grid; place-items: center; color: var(--ink);
  background: #d4d3ea; border-radius: 0 4px 4px 0; pointer-events: none; font-size: 18px; }
.selw select:disabled { cursor: default; opacity: .85; }
.selw.small select { font-size: 16px; padding: 5px 38px 4px 10px; }
.selw.small::after { width: 28px; }

/* START */
.title-logo { font-family: var(--f-logo); font-style: normal; font-weight: 400 !important; margin: 6px auto 0; text-align: center; line-height: .82; font-weight: 800; transform: rotate(-4deg); user-select: none; }
.title-logo span { display: block; color: #fff; text-transform: uppercase;
  text-shadow: 0 5px 0 #e9e4ff, 0 9px 0 #4a2299, 3px 11px 0 #2e1366, 0 14px 20px rgba(0,0,0,.25); -webkit-text-stroke: 2px #3a1a85; paint-order: stroke fill; }
.title-logo .t1 { font-size: 54px; margin-left: -60px; }
.title-logo .t2 { font-size: 104px; }
.start-cards { display: grid; grid-template-columns: 210px 254px 210px; gap: 38px; justify-content: center; align-items: center; margin-top: 30px; }
.card-profile { background: #5a6be0; border-radius: 6px; padding: 8px; box-shadow: 0 8px 0 #3d48a8, 0 14px 24px rgba(0,0,0,.2); height: 300px; transform: perspective(700px) rotateY(10deg); }
.cp-inner { background: #4748b0; border-radius: 4px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 14px; }
.avatar-xl { position: relative; width: 134px; height: 134px; border-radius: 50%; border: 3px solid #fff; background: radial-gradient(circle at 35% 30%, #fff, #ffd9ef 55%, #ffb3dc); display: grid; place-items: center; font-size: 76px; line-height: 1; padding: 0; box-shadow: 0 4px 0 rgba(0,0,0,.2); }
.avatar-xl .pencil { position: absolute; right: -6px; bottom: 2px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); border: 3px solid #fff; color: #fff; font-size: 24px; display: grid; place-items: center; font-family: var(--f-body); font-weight: 900; }
.name-field { position: relative; width: 100%; }
.name-field input { padding-right: 42px; background: rgba(20,18,60,.55); border: 2px solid rgba(255,255,255,.12); border-bottom-width: 2px; color: #fff; font-size: 19px; }
.name-field input:focus { background: rgba(20,18,60,.8); border-color: var(--cyan); }
.name-field input::placeholder { color: #aaa7d8; }
.dice { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 20px; padding: 4px 6px; }
.card-play { position: relative; border: 0; border-radius: 6px; padding: 8px; color: #fff; overflow: hidden; text-align: center; transition: transform .15s; }
.card-play:hover:not(:disabled) { transform: translateY(-6px) rotate(-1deg); }
.card-play:disabled { filter: grayscale(.5); }
.card-play.quick { height: 368px; background: linear-gradient(160deg, #f0613a, #e43a3a 45%, #ef9b2b); box-shadow: 0 8px 0 #a32323, 0 16px 28px rgba(0,0,0,.25); }
.card-play.private { height: 300px; background: linear-gradient(160deg, #b7f03a, #3be04a 50%, #23d0b0); box-shadow: 0 8px 0 #1a9a3e, 0 14px 24px rgba(0,0,0,.2); transform: perspective(700px) rotateY(-10deg); }
.card-play.private:hover:not(:disabled) { transform: perspective(700px) rotateY(-10deg) translateY(-6px); }
.cp-art { position: absolute; inset: 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.08); }
.cp-art .dots { position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,210,170,.55) 3px, transparent 4px) 0 0 / 22px 22px; mask-image: radial-gradient(circle at 55% 30%, #000 0 35%, transparent 60%); -webkit-mask-image: radial-gradient(circle at 55% 30%, #000 0 35%, transparent 60%); }
.cp-art .tris { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.18) 25%, transparent 25%) 0 0 / 34px 34px; opacity: .6; }
.art-emoji { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); font-size: 92px; filter: drop-shadow(0 6px 0 rgba(0,0,0,.18)); white-space: nowrap; }
.private .art-emoji { font-size: 74px; top: 32%; }
.cp-title { position: absolute; left: 0; right: 0; bottom: 18%; font-size: 52px; line-height: .95; text-shadow: 0 4px 0 rgba(120,20,20,.6), 0 0 2px rgba(0,0,0,.4); -webkit-text-stroke: 1px rgba(80,0,0,.35); }
.private .cp-title { font-size: 44px; bottom: 16%; text-shadow: 0 4px 0 rgba(10,90,40,.65); -webkit-text-stroke: 1px rgba(0,60,20,.35); }
.cp-hover { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%) translateY(14px); background: var(--yellow); color: var(--ink); padding: 4px 16px 6px; border-radius: 5px; font-size: 18px; opacity: 0; transition: .18s; box-shadow: 0 3px 0 var(--yellow-2); white-space: nowrap; }
.card-play:hover .cp-hover, .card-play:focus-visible .cp-hover { opacity: 1; transform: translateX(-50%); }
.link-big { display: flex; align-items: center; gap: 10px; margin: 28px auto 0; background: none; border: 0; color: #fff; font-size: 30px; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.link-big .globe { font-size: 34px; }
.link-big:hover { color: var(--yellow); }
.link-small { display: block; margin: 4px auto 0; font-size: 16px; opacity: .85; }
.howto-toggle { display: flex; flex-direction: column; align-items: center; margin: 22px auto 0; background: none; border: 0; color: #fff; font-size: 22px; }
.howto-toggle .caret { font-size: 16px; line-height: .6; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--panel); border-radius: 10px; padding: 18px; }
.step.buddy { background: linear-gradient(135deg, rgba(255,88,213,.35), rgba(36,32,98,.55)); }
.step-ico { font-size: 40px; }
.step h3 { margin: 6px 0 6px; font-weight: 800; font-size: 24px; color: var(--yellow); }
.step p, .faq p { font-family: var(--f-body); font-weight: 700; letter-spacing: 0; margin: 0; line-height: 1.45; font-size: 15px; color: #eeeaff; }
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--panel); border-radius: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-size: 21px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ' ▾'; color: var(--yellow); }
.faq details[open] summary { margin-bottom: 8px; color: var(--yellow); }
.site-foot { margin: 46px 0 0; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.site-foot b { font-weight: 800; font-size: 24px; color: var(--yellow); }
.site-foot span { font-family: var(--f-body); font-weight: 700; font-size: 13px; opacity: .8; letter-spacing: 0; }

/* PRIVAT */
.private-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; max-width: 860px; margin: 40px auto 0; align-items: start; }
.pv-col { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.pv-title { font-size: 34px; margin: 0; font-weight: 800; line-height: 1; text-shadow: 0 3px 0 rgba(0,0,0,.2); }
.pv-title.orange { color: #ffa21f; }
.pv-title.green { color: var(--cyan); }
.pv-ico { font-size: 72px; filter: drop-shadow(0 5px 0 rgba(0,0,0,.2)); }
.pv-sep { width: 2px; align-self: stretch; background: rgba(255,255,255,.25); }
.pv-hint { margin: 0; font-size: 16px; }
.code-boxes { display: flex; gap: 10px; }
.code-boxes input { width: 54px; height: 64px; text-align: center; font-size: 32px; text-transform: uppercase; padding: 0; background: rgba(20,18,60,.5); color: #fff; border: 2px solid rgba(255,255,255,.2); border-radius: 6px; outline: none; font-family: var(--f-head); }
.code-boxes input:focus { border-color: var(--cyan); background: rgba(20,18,60,.8); }
.code-boxes input::placeholder { color: rgba(255,255,255,.25); }
.link-back { display: block; margin: 30px auto 0; }

/* EINLADUNG */
.invite-wrap { max-width: 420px; margin: 30px auto 0; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.invite-title { font-size: 38px; line-height: 1.05; margin: 0; font-weight: 800; text-shadow: 0 3px 0 rgba(0,0,0,.2); }

/* ÖFFENTLICHE LOBBYS */
.public-panel { max-width: 760px; margin: 20px auto 0; }
.pp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.browse-list { display: flex; flex-direction: column; gap: 10px; }
.browse-item { display: flex; align-items: center; gap: 14px; background: rgba(20,18,60,.45); border-radius: 8px; padding: 10px 14px; }
.browse-item .bi-av { font-size: 30px; }
.browse-item .bi-main { flex: 1; min-width: 0; }
.browse-item .bi-sub { font-size: 14px; color: var(--muted); }
.browse-empty { text-align: center; padding: 24px; font-size: 18px; color: var(--muted); }

/* LOBBY */
.lobby-steps { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px auto 18px; flex-wrap: wrap; }
.lstep { display: flex; align-items: center; gap: 8px; background: var(--navy-2); border: 2px solid transparent; border-radius: 999px; padding: 4px 18px 4px 4px; color: #fff; font-size: 18px; }
.lstep .ls-ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 17px; }
.lstep.on { border-color: var(--cyan); color: var(--cyan); }
.lstep:disabled { cursor: default; }
.ls-arrow { color: rgba(255,255,255,.6); font-size: 14px; }
.go-btn { margin-left: 18px; display: flex; align-items: center; gap: 6px; border: 0; padding: 8px 26px 10px 18px; font-size: 24px; color: var(--ink); background: linear-gradient(180deg, #ffe066, var(--yellow)); border-radius: 6px;
  transform: rotate(-3deg); box-shadow: 0 4px 0 var(--yellow-2), 0 8px 16px rgba(0,0,0,.2); transition: transform .1s; }
.go-btn .flame { font-size: 28px; }
.go-btn:hover:not(:disabled) { transform: rotate(-3deg) scale(1.05); }
.go-btn:disabled { filter: grayscale(.8); opacity: .65; }
.lobby-body { max-width: 980px; margin: 0 auto; }
.lobby-panel { padding: 22px; min-height: 340px; }
.lp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.lp-head h2 { margin: 0; font-weight: 800; font-size: 30px; }
.lp-count { font-size: 16px; }
.lp-count b { color: var(--cyan); font-weight: 800; font-size: 20px; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.pack { position: relative; border-radius: 8px; overflow: hidden; background: #111; aspect-ratio: 3 / 4; border: 3px solid transparent; padding: 0; color: #fff; text-align: left; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.pack img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.pack::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(10,8,40,.85)); }
.pack .pk-count { position: absolute; top: 6px; right: 6px; z-index: 1; font-size: 13px; background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 999px; }
.pack .pk-new { position: absolute; top: 6px; left: 6px; z-index: 1; font-size: 12px; background: var(--green); color: var(--ink); padding: 1px 7px; border-radius: 4px; transform: rotate(-6deg); }
.pack .pk-name { position: absolute; left: 10px; right: 10px; bottom: 44px; z-index: 1; font-size: 22px; line-height: 1; text-shadow: 0 2px 0 #000; }
.pack .pk-btn { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; text-align: center; font-size: 15px; padding: 4px; border-radius: 5px; background: rgba(255,255,255,.88); color: var(--ink); }
.pack.on { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,210,51,.35), 0 5px 0 rgba(0,0,0,.25); }
.pack.on .pk-btn { background: var(--yellow); }
.pack:disabled { cursor: default; }
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode { border: 3px solid transparent; border-radius: 10px; background: rgba(20,18,60,.5); padding: 18px 12px; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; box-shadow: 0 5px 0 rgba(0,0,0,.2); }
.mode .md-ico { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 54px; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.3), rgba(255,255,255,.06)); }
.mode .md-t { font-size: 26px; }
.mode .md-d { font-family: var(--f-body); font-weight: 700; font-size: 14px; letter-spacing: 0; color: #e3e0ff; line-height: 1.3; }
.mode.on { border-color: var(--cyan); background: rgba(53,242,226,.12); }
.mode.on .md-t { color: var(--cyan); }
.mode:disabled { cursor: default; }
.set-rows { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.set-row { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 14px; font-size: 21px; }
.qm { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); font-style: normal; font-size: 14px; cursor: help; }
.expert-toggle { margin-top: 20px; background: none; border: 0; color: #fff; font-size: 20px; padding: 6px 0; }
.expert-toggle:hover { color: var(--yellow); }
.expert { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.tgl-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: rgba(20,18,60,.35); padding: 10px 14px; border-radius: 8px; }
.tgl-row .tg-t { font-size: 19px; }
.tgl-row .tg-d { font-family: var(--f-body); font-weight: 700; font-size: 13px; color: #d9d6fb; letter-spacing: 0; line-height: 1.3; }
.tgl { position: relative; width: 96px; height: 34px; border-radius: 999px; background: var(--navy-3); border: 0; padding: 0; color: #fff; font-size: 13px; }
.tgl::before { content: 'JA'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .5; }
.tgl::after { content: 'NEIN'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); opacity: .5; }
.tgl .knob { position: absolute; top: 3px; right: 3px; width: 46px; height: 28px; border-radius: 999px; background: var(--red); z-index: 1; transition: .18s; display: grid; place-items: center; font-size: 13px; }
.tgl .knob::after { content: 'NEIN'; }
.tgl.on .knob { right: 47px; background: var(--green); color: var(--ink); }
.tgl.on .knob::after { content: 'JA'; }
.tgl:disabled { opacity: .7; cursor: default; }
.guest-sum { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; padding: 10px 0; }
.gs-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 16px; text-align: center; max-width: 140px; }
.gs-ico { width: 74px; height: 74px; border-radius: 50%; background: rgba(20,18,60,.5); border: 3px solid rgba(255,255,255,.5); display: grid; place-items: center; font-size: 30px; overflow: hidden; }
.gs-ico img { width: 100%; height: 100%; object-fit: cover; }
.gs-ico.ring { border-color: var(--cyan); font-size: 26px; }
.guest-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; font-size: 16px; }
.guest-details div { background: rgba(20,18,60,.35); padding: 8px 12px; border-radius: 6px; }
.guest-details b { color: var(--cyan); font-weight: 800; }
.guest-wait { text-align: center; color: var(--muted); margin: 20px 0 0; }
.lobby-bar { margin: 18px auto 0; max-width: 980px; background: rgba(32, 28, 86, .78); border-radius: 12px; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.lb-players { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.pl { position: relative; display: flex; flex-direction: column; align-items: center; width: 74px; gap: 4px; text-align: center; background: none; border: 0; color: #fff; padding: 0; }
.pl .av { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; border: 3px solid #fff; line-height: 1; }
.pl .nm { font-size: 14px; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl.me .nm { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 3px; }
.pl .role { font-size: 11px; color: var(--pink); letter-spacing: .06em; }
.pl .crown { position: absolute; top: -12px; left: -6px; font-size: 20px; transform: rotate(-20deg); }
.pl .edit-badge { position: absolute; right: -4px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); border: 2px solid #fff; font-size: 11px; display: grid; place-items: center; font-family: var(--f-body); font-weight: 900; }
.pl.empty .av { background: rgba(255,255,255,.08); border: 3px dashed rgba(255,255,255,.25); color: rgba(255,255,255,.3); font-size: 28px; }
.pl.more .av { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); font-size: 18px; }
.pl .ready { position: absolute; right: -4px; top: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: var(--ink); font-size: 13px; display: grid; place-items: center; border: 2px solid #fff; }
.lb-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 260px; }
.lb-count { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.lb-count b { font-weight: 800; color: var(--cyan); font-size: 22px; }
.lb-count .selw { width: 130px; }
.lb-msg { margin: 0; font-size: 15px; color: #e9e5ff; text-align: right; max-width: 300px; }
.lb-msg.ok { color: var(--green); }
.lb-btns { display: flex; gap: 8px; }
.votekick { position: fixed; left: 50%; top: calc(var(--hdr-h) + 70px); transform: translateX(-50%); z-index: 40; background: var(--navy-3); border: 2px solid var(--red); border-radius: 10px; padding: 10px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }

/* ZWISCHENBILDSCHIRM */
.stage { min-height: calc(100vh - var(--hdr-h) - 140px); min-height: calc(100dvh - var(--hdr-h) - 140px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.blob { width: 210px; height: 190px; display: grid; place-items: center; font-size: 110px; background: #2f2a70; border-radius: 58% 42% 55% 45% / 50% 60% 40% 50%; box-shadow: 30px -20px 0 -60px #2f2a70, -70px 30px 0 -76px #2f2a70; animation: wobble 2.4s ease-in-out infinite; position: relative; }
.blob::before, .blob::after { content: ''; position: absolute; background: #2f2a70; border-radius: 50%; }
.blob::before { width: 46px; height: 40px; right: -22px; top: 12px; }
.blob::after { width: 34px; height: 24px; left: -10px; bottom: 6px; }
.blob span { position: relative; z-index: 1; filter: drop-shadow(0 6px 0 rgba(0,0,0,.25)); animation: bob 1.2s ease-in-out infinite; }
@keyframes wobble { 50% { border-radius: 45% 55% 42% 58% / 58% 45% 55% 42%; } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.stage-title { font-size: 46px; margin: 14px 0 0; font-weight: 800; color: var(--cyan); text-shadow: 0 3px 0 #0e7a6a, 0 6px 10px rgba(0,0,0,.2); line-height: 1; }
.stage-sub { margin: 0; font-size: 22px; }
.stage-note { margin: 0; color: var(--muted); font-size: 16px; }

/* MEME-DARSTELLUNG */
.meme { position: relative; width: 100%; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; line-height: 0; }
.meme img, .meme canvas.still { display: block; width: 100%; height: auto; pointer-events: none; border-radius: 4px; }
.meme canvas.cap { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.meme .gif-badge { position: absolute; left: 6px; top: 6px; background: var(--yellow); color: var(--ink); font-size: 12px; padding: 1px 7px 2px; border-radius: 4px; line-height: 1.4; }
.meme .wm { position: absolute; right: 6px; bottom: 4px; font-size: 11px; line-height: 1; color: rgba(255,80,110,.85); text-shadow: 0 1px 0 rgba(0,0,0,.5); pointer-events: none; }
.meme .loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; line-height: 1; color: #fff; background: rgba(0,0,0,.25); }
.meme .bx { position: absolute; border: 2px dashed rgba(255,255,255,.55); outline: 1px dashed rgba(0,0,0,.35); outline-offset: -3px; touch-action: none; cursor: grab; border-radius: 2px; }
.meme .bx.sel { border-color: var(--cyan); outline-color: rgba(0,60,80,.4); }
.meme .bx:active { cursor: grabbing; }
.meme .bx .rs { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; background: var(--cyan); border: 2px solid #fff; border-radius: 4px; cursor: nwse-resize; touch-action: none; display: none; }
.meme .bx.sel .rs { display: block; }
.meme .bx .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1; text-shadow: 0 1px 2px #000; pointer-events: none; }

/* ERSTELLEN */
.create-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 16px; max-width: 1000px; margin: 8px auto 0; align-items: stretch; }
.meme-panel { display: flex; flex-direction: column; gap: 10px; }
.tpl-name { text-align: center; font-size: 16px; }
.topic-chip { align-self: center; background: var(--yellow); color: var(--ink); border-radius: 6px; padding: 4px 14px 5px; font-size: 19px; transform: rotate(-1.5deg); box-shadow: 0 3px 0 var(--yellow-2); }
.topic-chip.small { font-size: 15px; padding: 3px 10px; }
.meme-box { background: rgba(10,8,40,.35); border-radius: 6px; padding: 14px; display: flex; justify-content: center; }
.meme-box .meme { width: min(100%, calc((100vh - 300px) * var(--ar, 1))); width: min(100%, calc((100dvh - 300px) * var(--ar, 1))); }
.meme-actions { display: flex; justify-content: space-between; gap: 8px; }
.input-panel { display: flex; flex-direction: column; gap: 12px; }
.motivation { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mini-blob { width: 74px; height: 64px; display: grid; place-items: center; font-size: 42px; background: rgba(255,255,255,.92); border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%; }
.motivation p { margin: 0; font-size: 18px; }
.box-inputs { display: flex; flex-direction: column; gap: 10px; }
.bi-row { display: flex; gap: 6px; align-items: stretch; }
.bi-row input { flex: 1; min-width: 0; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.bi-row.sel input { background: #fff; border-bottom-color: var(--cyan-2); }
.bi-tool { width: 38px; flex: none; border: 0; border-radius: 4px; background: rgba(255,255,255,.18); color: #fff; font-size: 16px; padding: 0; }
.bi-tool:hover { background: rgba(255,255,255,.3); }
.bi-tool.col-b { background: #111; border: 2px solid #fff; }
.bi-tool.col-w { background: #fff; border: 2px solid #111; }
.grow { flex: 1; }
.locked .box-inputs, .locked .meme-actions, .locked .bx { pointer-events: none; opacity: .5; }

/* BEWERTEN */
.vote-wrap { max-width: 960px; margin: 4px auto 0; display: flex; flex-direction: column; gap: 12px; }
.vote-top { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 0; }
.vote-panel { padding: 0; overflow: hidden; display: flex; justify-content: center; align-items: center; background: rgba(36,32,98,.6); min-height: 300px; }
.vote-panel .meme { width: min(100%, calc((100vh - 300px) * var(--ar, 1))); width: min(100%, calc((100dvh - 300px) * var(--ar, 1))); }
.vote-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.vc-main { display: flex; align-items: center; gap: 12px; background: rgba(40, 34, 110, .55); border-radius: 999px; padding: 8px 10px; }
.vote-acts { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.vc { border: 0; padding: 0; transition: transform .12s, filter .15s; }
.vc.up, .vc.down { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; border: 4px solid #fff; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.vc svg { width: 34px; height: 34px; fill: #fff; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.vc.up { background: radial-gradient(circle at 40% 35%, #6df27c, var(--green-2)); }
.vc.down { background: radial-gradient(circle at 40% 35%, #ff7088, var(--red-2)); }
.vc.meh { background: #ececf6; color: var(--ink); border-radius: 14px; padding: 6px 18px 7px; display: flex; flex-direction: column; align-items: center; line-height: 1.05; box-shadow: 0 4px 0 rgba(0,0,0,.25); min-width: 108px; }
.vc.meh .shrug { font-family: var(--f-body); font-weight: 800; font-size: 13px; letter-spacing: 0; }
.vc.meh .meh-l { font-size: 20px; }
.vc:hover:not(:disabled) { transform: translateY(-3px); }
.vc.sel { transform: translateY(-6px) scale(1.12); }
.vc.sel.meh { background: var(--yellow); }
.vote-controls.voted .vc:not(.sel) { filter: grayscale(.6) brightness(.8); }
.vote-controls.off .vc, .vote-controls.off .buddy-btn { opacity: .35; pointer-events: none; }
.buddy-btn { justify-self: start; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: #fff; padding: 0; font-size: 13px; }
.buddy-btn .bface { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe78a, #ffc21a); display: grid; place-items: center; font-size: 30px; box-shadow: 0 4px 0 rgba(0,0,0,.25); transition: transform .15s; }
.buddy-btn:hover:not(:disabled) .bface { transform: scale(1.08) rotate(-6deg); }
.buddy-btn.given .bface { background: radial-gradient(circle at 40% 35%, #ff9ee6, var(--pink)); box-shadow: 0 0 0 4px rgba(255,88,213,.45), 0 4px 0 rgba(0,0,0,.25); }
.buddy-btn:disabled { opacity: .45; }
.vote-note { text-align: center; margin: 0; font-size: 17px; min-height: 1.2em; }
.host-next { align-self: center; }

/* ERGEBNISSE */
.results-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 22px; max-width: 1000px; margin: 8px auto 0; align-items: start; }
.res-board { position: sticky; top: calc(var(--hdr-h) + 20px); display: flex; flex-direction: column; gap: 12px; }
.meme-list { display: flex; flex-direction: column; gap: 16px; }
.mcard { background: var(--panel); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mcard .meme { width: min(100%, calc(64vh * var(--ar, 1))); margin: 0 auto; }
.mc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mc-by { font-size: 17px; }
.mc-by b { color: var(--cyan); font-weight: 800; font-size: 20px; }
.mc-pts { font-size: 15px; white-space: nowrap; }
.mc-pts b { color: var(--yellow); font-weight: 800; font-size: 26px; }
.mc-pts b.neg { color: var(--red); }
.mc-buddies { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.mc-buddies .mini { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 15px; border: 2px solid #fff; margin-right: -10px; }
.mc-buddies b { color: var(--yellow); font-weight: 800; margin-left: 12px; }
.mc-acts { display: flex; gap: 8px; align-items: center; }
.round-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 17px; color: var(--ink); box-shadow: 0 3px 0 rgba(0,0,0,.25); padding: 0; }
.round-btn.light { background: #e8e8f4; }
.round-btn.yellow { background: var(--yellow); }
.round-btn.on { background: var(--green); }
.mc-medal { font-size: 22px; }
.no-memes { text-align: center; padding: 40px 10px; }
.no-memes h2 { color: var(--orange); font-weight: 800; font-size: 34px; margin: 0 0 10px; text-transform: uppercase; line-height: 1.05; text-shadow: 0 3px 0 rgba(0,0,0,.2); }
.no-memes p { margin: 0; font-size: 19px; }
.score-list { display: flex; flex-direction: column; gap: 6px; }
.srow { border: 2px solid transparent; border-radius: 8px; padding: 6px 10px; background: none; color: #fff; text-align: left; width: 100%; }
.srow.me { border-color: var(--yellow); background: rgba(20,18,60,.45); }
.srow .sr-main { display: flex; align-items: center; gap: 10px; }
.srow .pos { font-size: 26px; width: 34px; color: var(--yellow); }
.srow .pos.p2 { color: var(--silver); }
.srow .pos.p3 { color: var(--bronze); }
.srow .pos.px { color: #fff; font-size: 22px; }
.srow .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; border: 2px solid #fff; flex: none; }
.srow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.srow.me .nm { text-decoration: underline; text-underline-offset: 3px; }
.srow .pts { font-size: 24px; color: var(--yellow); }
.srow .pts.neg { color: var(--red); }
.srow .sr-det { display: none; margin: 4px 0 2px 44px; font-size: 15px; }
.srow.open .sr-det { display: block; }
.sr-det div { display: flex; justify-content: flex-end; gap: 10px; }
.sr-det span.v { color: var(--yellow); min-width: 54px; text-align: right; }
.sr-det span.v.neg { color: var(--red); }
.divider-title { display: flex; align-items: center; gap: 14px; justify-content: center; font-size: 18px; margin: 18px 0 12px; color: #fff; background: none; border: 0; width: 100%; }
.divider-title::before, .divider-title::after { content: ''; flex: 1; max-width: 160px; height: 2px; background: rgba(255,255,255,.75); }
.hidden-lg { display: none; }

/* FINALE */
.final-sum { max-width: 560px; margin: 4px auto 0; display: flex; align-items: center; justify-content: center; gap: 26px; font-size: 20px; flex-wrap: wrap; padding: 12px 18px; }
.final-sum b { color: var(--cyan); font-weight: 800; }
.final-sum b.gold { color: var(--yellow); }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 22px; margin: 34px 0 10px; min-height: 260px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 170px; text-align: center; animation: rise .6s cubic-bezier(.2,1.4,.4,1) both; }
.pod.p1 { animation-delay: .5s; }
.pod.p2 { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.7); } }
.pod .place { font-size: 34px; line-height: 1; }
.pod .place sup { font-size: .5em; }
.pod .ring { position: relative; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; font-size: 64px; border: 6px solid var(--silver); box-shadow: 0 0 0 4px rgba(169,241,255,.25); }
.pod.p1 .ring { width: 150px; height: 150px; font-size: 84px; border-color: var(--gold); box-shadow: 0 0 0 5px rgba(255,210,51,.3), 0 0 40px rgba(255,210,51,.45); }
.pod.p1 .ring::before { content: '🌿'; position: absolute; left: -38px; bottom: 6px; font-size: 54px; transform: rotate(-30deg) scaleX(-1); filter: hue-rotate(10deg) saturate(1.6) brightness(1.2) sepia(.6); }
.pod.p1 .ring::after { content: '🌿'; position: absolute; right: -38px; bottom: 6px; font-size: 54px; transform: rotate(30deg); filter: hue-rotate(10deg) saturate(1.6) brightness(1.2) sepia(.6); }
.pod.p3 .ring { border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(255,162,90,.25); }
.pod .who { font-size: 24px; color: var(--silver); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 10px; }
.pod.p1 .who { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; font-size: 28px; }
.pod.p3 .who { color: var(--bronze); }
.pod .sc { font-size: 22px; }
.final-btns { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; }
.final-note { margin: 0; color: var(--muted); font-size: 16px; }
.gallery { max-width: 640px; margin: 0 auto; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* SCHWEBENDE KNÖPFE */
.fab { position: fixed; left: 18px; bottom: calc(16px + var(--safe-b)); z-index: 35; width: 54px; height: 54px; border-radius: 50%; border: 0; background: none; padding: 0; }
.fab .bubble { font-size: 42px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)) grayscale(1) brightness(1.9); display: block; line-height: 1; }
.fab .badge { position: absolute; right: 2px; bottom: 4px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--red); color: #fff; font-size: 13px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.fab-r { position: fixed; right: 18px; bottom: calc(18px + var(--safe-b)); z-index: 35; display: flex; gap: 10px; }
.fab-ico { width: 44px; height: 44px; border: 0; background: none; font-size: 28px; padding: 0; filter: grayscale(1) brightness(2.2) drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.fab-ico.muted { opacity: .45; }
body.on-start .chat-fab { display: none; }

/* CHAT */
.chat { position: fixed; left: 16px; bottom: calc(82px + var(--safe-b)); z-index: 45; width: min(360px, calc(100vw - 32px)); height: min(440px, calc(100vh - 180px)); height: min(440px, calc(100dvh - 180px));
  background: var(--navy-2); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.4); display: flex; flex-direction: column; overflow: hidden; animation: pop .2s; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: rgba(255,255,255,.06); font-size: 20px; }
.x { background: none; border: 0; color: #fff; font-size: 20px; padding: 2px 6px; }
.chat-log { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; font-family: var(--f-body); font-weight: 700; letter-spacing: 0; font-size: 15px; -webkit-overflow-scrolling: touch; }
.chat-log .sys { color: var(--muted); font-style: italic; font-weight: 600; }
.chat-log .who { font-family: var(--f-head); letter-spacing: .02em; color: var(--cyan); font-weight: 800; font-size: 16px; }
.chat-form { display: flex; gap: 8px; padding: 10px; background: rgba(0,0,0,.18); }
.chat-form input { font-size: 16px; padding: 8px 10px; }

/* MODAL + POPOVER + TOAST */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(12,10,40,.6); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { background: var(--navy); border-radius: 14px; padding: 22px; width: min(520px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.45); animation: pop .2s; }
.modal-card h2 { margin: 0 0 14px; font-weight: 800; font-size: 30px; text-align: center; }
.modal-card p { font-family: var(--f-body); font-weight: 700; letter-spacing: 0; text-align: center; }
.modal-btns { display: flex; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px; }
.av-grid button { aspect-ratio: 1; border-radius: 50%; border: 3px solid transparent; font-size: 30px; display: grid; place-items: center; padding: 0; }
.av-grid button.on { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(53,242,226,.35); }
.saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.saved-grid .mcard { padding: 10px; }
.popover { position: fixed; right: 16px; bottom: calc(74px + var(--safe-b)); z-index: 50; background: var(--navy-2); border-radius: 12px; padding: 14px 18px; width: 250px; box-shadow: 0 12px 40px rgba(0,0,0,.4); animation: pop .15s; }
.popover h3 { margin: 0 0 10px; font-weight: 800; font-size: 22px; }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; font-size: 17px; }
.pop-row input[type=range] { width: 120px; accent-color: var(--cyan); }
.pop-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--cyan); }
.pop-foot { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.toasts { position: fixed; right: 16px; bottom: calc(80px + var(--safe-b)); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; background: var(--navy-3); color: #fff; border-radius: 8px; padding: 10px 14px 12px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 16px; max-width: min(380px, calc(100vw - 32px)); position: relative; overflow: hidden; animation: slidein .25s; }
.toast .ti { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--ink); font-size: 13px; flex: none; }
.toast.err .ti { background: var(--red); color: #fff; }
.toast .tx { background: none; border: 0; color: #fff; font-size: 16px; padding: 0 0 0 6px; }
.toast::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; background: var(--cyan); animation: shrink var(--dur, 3s) linear forwards; width: 100%; }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); } }
@keyframes shrink { to { width: 0; } }

/* RESPONSIV */
@media (max-width: 900px) {
  .start-cards { grid-template-columns: 1fr 1.15fr 1fr; gap: 18px; }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --hdr-h: 60px; }
  body { font-size: 16px; }
  .hdr { padding: 0 14px; gap: 6px; grid-template-columns: auto 1fr auto; }
  .hide-sm { display: none; }
  .hdr-btn { font-size: 17px; }
  .hdr-btn .ico { width: 26px; height: 26px; }
  .hdr-btn.zb span { display: none; }
  body.on-start .hdr-btn.zb span { display: inline; }
  .hdr-title { font-size: 21px; }
  .hdr-title .lob { font-size: 26px; }
  .hdr-small { font-size: 13px; }
  .hdr-small b { font-size: 18px; }
  .hdr-bar { width: calc(100% - 28px); bottom: -8px; height: 12px; }
  .logo-mark { font-size: 28px; }
  .main { padding: 14px 12px calc(86px + var(--safe-b)); }
  .title-logo { display: none; }
  .start-cards { grid-template-columns: 1fr; gap: 18px; max-width: 320px; margin: 10px auto 0; }
  .card-profile { height: auto; background: none; box-shadow: none; padding: 0; transform: none; }
  .cp-inner { background: none; padding: 0; gap: 14px; }
  .avatar-xl { width: 104px; height: 104px; font-size: 58px; }
  .avatar-xl .pencil { width: 36px; height: 36px; font-size: 19px; }
  .name-field { max-width: 220px; }
  .card-play, .card-play.quick, .card-play.private { height: 128px; transform: none; }
  .card-play.private:hover:not(:disabled) { transform: translateY(-4px); }
  .art-emoji, .private .art-emoji { font-size: 52px; left: 22%; top: 50%; }
  .cp-title, .private .cp-title { font-size: 34px; bottom: auto; top: 50%; transform: translateY(-50%); left: 34%; right: 8px; text-align: center; }
  .cp-title br { display: none; }
  .cp-hover { display: none; }
  .link-big { font-size: 25px; margin-top: 18px; }
  .steps { grid-template-columns: 1fr; }
  .sec-title { font-size: 28px; }
  .private-wrap { grid-template-columns: 1fr; gap: 20px; margin-top: 16px; }
  .pv-sep { width: 70%; height: 2px; justify-self: center; }
  .pv-title { font-size: 28px; }
  .pv-ico { font-size: 56px; }
  .invite-title { font-size: 30px; }
  .lobby-steps { gap: 6px; margin: 4px auto 12px; }
  .lstep { padding: 3px; }
  .lstep .ls-txt { display: none; }
  .lstep .ls-ico { width: 38px; height: 38px; }
  .go-btn { position: fixed; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%) rotate(-3deg); z-index: 36; margin: 0; }
  .go-btn:hover:not(:disabled) { transform: translateX(-50%) rotate(-3deg) scale(1.04); }
  .lobby-panel { padding: 14px; min-height: 0; }
  .lp-head h2 { font-size: 26px; }
  .pack-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pack .pk-name { font-size: 15px; bottom: 36px; left: 6px; right: 6px; }
  .pack .pk-btn { font-size: 12px; left: 6px; right: 6px; bottom: 6px; padding: 3px; }
  .mode-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mode { padding: 12px 8px; }
  .mode .md-ico { width: 64px; height: 64px; font-size: 36px; }
  .mode .md-t { font-size: 21px; }
  .mode .md-d { font-size: 12px; }
  .set-row { grid-template-columns: 1fr; gap: 6px; font-size: 19px; }
  .tgl-row { grid-template-columns: 1fr; gap: 8px; }
  .lobby-bar { grid-template-columns: 1fr; padding: 14px 12px; margin-bottom: 40px; }
  .lb-side { align-items: center; min-width: 0; }
  .lb-msg { text-align: center; }
  .lb-players { justify-content: center; order: 2; }
  .pl { width: 64px; }
  .pl .av { width: 50px; height: 50px; font-size: 27px; }
  .create-grid { grid-template-columns: 1fr; gap: 10px; }
  .meme-panel { background: none; box-shadow: none; padding: 0; gap: 8px; }
  .meme-box { padding: 8px; }
  .input-panel { background: none; box-shadow: none; padding: 0; }
  .motivation { display: none; }
  .vote-panel .meme { width: min(100%, calc((100dvh - 290px) * var(--ar, 1))); }
  .meme-box .meme { width: min(100%, calc((100dvh - 330px) * var(--ar, 1))); }
  .vc.up, .vc.down { width: 58px; height: 58px; }
  .vc svg { width: 28px; height: 28px; }
  .vc.meh { min-width: 92px; padding: 5px 12px 6px; }
  .vc.meh .meh-l { font-size: 18px; }
  .buddy-btn .bface { width: 46px; height: 46px; font-size: 26px; }
  .vc-main { gap: 6px; padding: 6px; }
  .vote-controls { grid-template-columns: auto 1fr auto; gap: 6px; }
  .vc-main { justify-self: center; }
  .vote-acts .chip-btn { font-size: 12px; padding: 4px 8px; white-space: nowrap; }
  .vote-panel { min-height: 200px; }
  .results-grid { grid-template-columns: 1fr; }
  .res-board { position: static; order: -1; }
  .hidden-lg { display: flex; }
  .podium { gap: 6px; min-height: 200px; margin-top: 24px; }
  .pod { width: 112px; }
  .pod .ring { width: 84px; height: 84px; font-size: 44px; border-width: 5px; }
  .pod.p1 .ring { width: 108px; height: 108px; font-size: 60px; }
  .pod.p1 .ring::before, .pod.p1 .ring::after { font-size: 38px; }
  .pod.p1 .ring::before { left: -26px; }
  .pod.p1 .ring::after { right: -26px; }
  .pod .who { font-size: 18px; max-width: 110px; }
  .pod.p1 .who { font-size: 21px; }
  .pod .sc { font-size: 18px; }
  .stage-title { font-size: 36px; }
  .blob { width: 170px; height: 150px; font-size: 84px; }
  .toasts { left: 16px; right: 16px; align-items: stretch; bottom: calc(76px + var(--safe-b)); }
  .toast { max-width: none; }
}
@media (hover: none) { .card-play:hover:not(:disabled) { transform: none; } .card-play.private:hover:not(:disabled) { transform: none; } }
@media (prefers-reduced-motion: reduce) { .rays, .blob, .blob span { animation: none; } }
.step p, .faq p, .mode .md-d, .tgl-row .tg-d, .chat-log, .modal-card p, .site-foot span, .vc.meh .shrug { font-style: normal; }
.chat-log .who { font-style: italic; }

/* Verbindung weg (Spieler wartet auf Rückkehr) */
.pl.off, .srow.off { opacity: .45; }
/* GIF-Hinweis blendet sich aus, damit er keinen Text verdeckt */
.meme .gif-badge { pointer-events: none; animation: mmBadgeOut .6s ease 2.6s forwards; }
@keyframes mmBadgeOut { to { opacity: 0; visibility: hidden; } }

/* Tipp-Modus am Handy (Tastatur offen): das Meme wird so klein, dass es mit allen Textfeldern über die Tastatur passt */
body.mm-typing #scr-create .meme-box .meme { width: min(100%, calc(max(150px, var(--vvh, 60vh) - var(--hdr-h) - var(--rows, 2) * 58px - 44px) * var(--ar, 1))); }
body.mm-typing #scr-create .tpl-name, body.mm-typing #scr-create .meme-actions, body.mm-typing .fab, body.mm-typing .fab-ico { display: none; }
body.mm-typing #scr-create .create-grid { margin-top: 4px; }
body.mm-typing #scr-create .input-panel { gap: 8px; }
body.mm-typing #scr-create .box-inputs { gap: 8px; }
