/* Gloop — the stream screen. A live-stream app's overlay over a ring-lit camera feed of a bowl. */

:root {
  --live: #ff2d55;
  --gloop: #ff3d8b;
  --gloop2: #b44dff;
  --aqua: #35e0e8;
  --gold: #ffd257;
  --silver: #dfe6f0;
  --bronze: #e8a36b;
  --ink: #ffffff;
  --ink2: rgba(255, 255, 255, 0.78);
  --ink3: rgba(255, 255, 255, 0.55);
  --glass: rgba(0, 0, 0, 0.32);
  --glass2: rgba(0, 0, 0, 0.5);
  --pill: rgba(22, 16, 30, 0.42);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 6px rgba(0, 0, 0, 0.25);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bowl-top: 280px; --slime-top: 320px; --bowl-bottom: 620px; --tray-top: 650px; --safe-top: 12px; --safe-bottom: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #0b0a0f; overflow: hidden; }
body { font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

#stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; gap: 28px;
  background: radial-gradient(1200px 700px at 30% 20%, #2a1630 0%, #0b0a0f 60%); }
#phone { position: relative; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; background: #000; }
#app { position: absolute; inset: 0; overflow: hidden; touch-action: none; }

@media (min-width: 700px) and (min-height: 600px) {
  #phone { width: min(430px, calc((100dvh - 40px) * 0.4615)); height: min(932px, calc(100dvh - 40px)); border-radius: 44px;
    box-shadow: 0 0 0 10px #121016, 0 0 0 11px #2b2733, 0 30px 80px rgba(0, 0, 0, 0.6); }
  #desk-help:not([hidden]) { display: block; }
}

#desk-help { display: none; width: 260px; color: var(--ink2); font-size: 13px; line-height: 1.5; }
#desk-help h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); }
#desk-help kbd { display: inline-block; min-width: 20px; padding: 1px 6px; margin-right: 4px; border-radius: 5px; background: #2a2530; border: 1px solid #3c3545; color: #fff; font: 600 12px var(--font); text-align: center; }
#desk-help .row { margin: 6px 0; }
#desk-help .dim { color: var(--ink3); font-size: 12px; margin-top: 14px; }

/* ---------------- the camera layer (the slot) ---------------- */
.slot { position: absolute; inset: 0; z-index: 0; }
.slot canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.slime-layer { position: absolute; inset: 0; } /* the real slime's canvas (game/mount) */
.slot-fx { pointer-events: none; }
#hands { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.wifi-drop .slot { filter: saturate(0.4) contrast(1.15) blur(1.2px); }
.wifi-drop .slot::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 5px); }

/* ---------------- HUD ---------------- */
#hud { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
#hud .tap, #hud button, #hud [data-zone], #hud [data-ui] { pointer-events: auto; }
button { font-family: var(--font); color: inherit; border: 0; background: none; cursor: pointer; }

/* top band */
.top { position: absolute; top: var(--safe-top); left: 8px; right: 8px; height: 44px; display: flex; align-items: center; gap: 6px; }
.host { display: flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border-radius: 22px; background: var(--pill); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: 52%; }
.host .av { width: 34px; height: 34px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle at 35% 30%, #ffe3f6 0%, #e7a6ff 35%, #9c5cf2 75%, #6a35c9 100%); box-shadow: inset 0 -2px 4px rgba(0,0,0,0.25); }
.host .av::after { content: ""; position: absolute; left: 9px; top: 8px; width: 9px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.8); filter: blur(0.5px); }
.host .nm { min-width: 0; line-height: 1.1; }
.host .nm b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.host .nm span { font-size: 11px; color: var(--ink2); }
.trust { position: relative; width: 34px; height: 34px; flex: none; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; }
.trust svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.trust .h { position: relative; text-shadow: var(--shadow); line-height: 1; text-align: center; }
.trust .h i { display: block; font-style: normal; font-size: 11px; color: #ff6f9a; }
.spacer { flex: 1; }
.top3 { display: flex; align-items: center; }
.top3 .t { width: 30px; height: 30px; border-radius: 50%; margin-left: -5px; position: relative; display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 2px solid var(--silver); box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.top3 .t:nth-child(1) { border-color: var(--gold); z-index: 3; }
.top3 .t:nth-child(2) { border-color: var(--silver); z-index: 2; }
.top3 .t:nth-child(3) { border-color: var(--bronze); z-index: 1; }
.top3 .t em { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 8.5px; font-weight: 800; padding: 0 4px; border-radius: 6px; background: #ffcf3f; color: #4a2a00; white-space: nowrap; }
.top3 .t:nth-child(2) em { background: #e7ecf3; color: #333; }
.top3 .t:nth-child(3) em { background: #f2b27d; color: #4a2300; }
.viewers { display: flex; align-items: center; gap: 4px; padding: 0 9px; height: 28px; border-radius: 14px; background: var(--pill); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; transition: transform 0.25s; }
.viewers svg { width: 14px; height: 14px; opacity: 0.9; }
.viewers.up { transform: scale(1.08); }
.close { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pill); font-size: 17px; line-height: 1; }

.sub { position: absolute; top: calc(var(--safe-top) + 50px); left: 8px; right: 84px; display: flex; gap: 5px; align-items: center; flex-wrap: nowrap; overflow: hidden; }
/* the frame-rate pill (test builds): which slime, its frames per second big, its worst frame small. Green ≥ 100,
   amber ≥ 55, red below; "uyku" while the slime sleeps (10 s untouched). Tap for the detail. */
.pillx.fps { position: absolute; right: 8px; top: calc(var(--safe-top) + 48px); height: 26px; padding: 0 7px 0 8px; gap: 4px; z-index: 6; pointer-events: auto; }
.pillx.fps b { font-size: 17px; font-weight: 900; letter-spacing: -0.03em; min-width: 26px; text-align: right; }
.pillx.fps span { display: flex; flex-direction: column; line-height: 1.05; font-size: 8.5px; font-weight: 800; }
.pillx.fps i { font-style: normal; opacity: 0.8; }
.pillx.fps em { font-style: normal; opacity: 0.65; }
.pillx.fps em.more { font-size: 9.5px; margin-left: 4px; opacity: 0.85; }
.pillx.fps.wide { top: calc(var(--safe-top) + 78px); left: 8px; right: auto; }
.pillx.fps.g b { color: #7dffa8; } .pillx.fps.y b { color: #ffd257; } .pillx.fps.r b { color: #ff6b6b; } .pillx.fps.z b { color: #bbb; font-size: 12px; }
.pillx { height: 22px; padding: 0 8px; border-radius: 11px; background: var(--pill); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pillx.live { background: linear-gradient(90deg, #ff2d55, #ff3d8b); letter-spacing: 0.02em; }
.pillx.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.pillx.kr { color: #ffe9a8; }
.pillx.kr b { color: #fff; }
.pillx.warn { background: rgba(255, 184, 0, 0.85); color: #2b1a00; }
.pillx.warn.hot { background: rgba(255, 45, 45, 0.92); color: #fff; animation: shake 0.4s; }
.pillx.batt.low { background: rgba(255, 45, 45, 0.85); }
.pillx.rank { color: #ffe27a; }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes shake { 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }

/* chat: the ambient band at the top (GDD §4.1) */
.chat { position: absolute; top: calc(var(--safe-top) + 78px); left: 8px; width: 68%; height: calc(var(--slime-top) - var(--safe-top) - 78px - 64px);
  overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34px, #000 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 34px, #000 100%); }
.chat .l { display: flex; align-items: flex-start; gap: 5px; font-size: 12.5px; line-height: 1.28; padding: 3px 8px 3px 3px; border-radius: 13px; background: rgba(0, 0, 0, 0.2); width: fit-content; max-width: 100%;
  text-shadow: var(--shadow); animation: chatIn 0.22s ease-out; transition: filter 0.3s; }
.chat .l .a { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 800; text-shadow: none; margin-top: -1px; }
.chat .l .b { min-width: 0; }
.chat .l .n { font-weight: 700; color: rgba(255, 255, 255, 0.72); margin-right: 4px; }
.chat .l .n.reg { color: #ffd6ec; }
.chat .l .n.raid { color: #9fe8ff; }
.chat .l .kn { display: inline-block; font-size: 9.5px; font-weight: 800; padding: 0 5px; margin: 0 4px 0 -1px; border-radius: 6px; line-height: 14px; vertical-align: 1px; background: rgba(255, 214, 236, 0.22); color: #ffe3f2; text-shadow: none; }
.chat .l .bd { display: inline-block; font-size: 9px; font-weight: 800; padding: 0 4px; border-radius: 6px; margin-right: 3px; vertical-align: 1px; line-height: 14px; text-shadow: none; }
.bd.lv { background: linear-gradient(90deg, #5f6bff, #9b5cff); color: #fff; }
.bd.lv.l2 { background: linear-gradient(90deg, #00b7ff, #00e0c6); }
.bd.lv.l3 { background: linear-gradient(90deg, #ff9d00, #ff4d6d); }
.bd.mod { background: #2bd26b; color: #032; }
.bd.rk { background: #ffcf3f; color: #4a2a00; }
.bd.reg { background: rgba(255, 61, 139, 0.85); color: #fff; }
.chat .l.gift { background: linear-gradient(90deg, rgba(255, 61, 139, 0.32), rgba(180, 77, 255, 0.18)); }
.chat .l.gift .t { color: #ffe3a3; font-weight: 600; }
.chat .l.helper { background: rgba(255, 210, 87, 0.22); }
.chat .l.helper .n { color: var(--gold); }
.chat .l.sys { background: rgba(0, 0, 0, 0.28); color: var(--ink2); font-size: 11.5px; padding-left: 8px; }
.chat .l.sys.mod { color: #c6ffd8; }
.chat .l.join { background: none; color: var(--ink3); font-size: 11.5px; padding-left: 6px; }
.chat .l.me { background: rgba(53, 224, 232, 0.22); }
.chat .l.me .n { color: var(--aqua); }
.chat.smeared .l:not(.gift):not(.sys) { filter: blur(var(--smear, 0px)); }
@keyframes chatIn { from { transform: translateY(8px); opacity: 0; } }

/* the printed menu card + goal (right column) */
.menu { position: absolute; top: calc(var(--safe-top) + 80px); right: 8px; width: 29%; min-width: 108px; padding: 6px 7px 5px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(255, 240, 226, 0.9)); color: #2b1d2e; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); transform: rotate(1.2deg); }
.menu::before { content: ""; position: absolute; top: -6px; left: 50%; width: 38px; height: 12px; margin-left: -19px; background: rgba(255, 235, 160, 0.75); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.menu h4 { margin: 0 0 3px; font-size: 9.5px; font-weight: 900; letter-spacing: 0.12em; color: #b0327a; display: flex; justify-content: space-between; }
.menu .s { display: flex; align-items: center; gap: 4px; font-size: 10.5px; line-height: 1.25; padding: 1.5px 0; border-top: 1px dashed rgba(60, 30, 60, 0.15); }
.menu .s:first-of-type { border-top: 0; }
.menu .s .e { width: 15px; text-align: center; font-size: 12px; }
.menu .s .c { font-weight: 800; color: #8a5a00; font-size: 9.5px; min-width: 18px; }
.menu .s .x { font-weight: 800; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu .s.sale .x { color: #d9004c; }
.menu .s.sale .c::after { content: " %"; color: #d9004c; }
.menu .s.out { opacity: 0.45; text-decoration: line-through; }
.menu .s.hot { animation: hot 0.6s; }
.menu .goal { margin-top: 4px; font-size: 9.5px; font-weight: 800; }
.menu .goal .bar { height: 5px; border-radius: 3px; background: rgba(0, 0, 0, 0.12); overflow: hidden; margin-top: 2px; }
.menu .goal .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff3d8b, #ffb03d); }
@keyframes hot { 30% { background: rgba(255, 61, 139, 0.25); } }

/* gift combo banners (left, over the far rim) */
.gifts { position: absolute; left: 0; top: calc(var(--slime-top) - 116px); width: 82%; height: 112px; } /* two lanes: over the chat's foot and the far rim, never the slime */
.gb { position: absolute; left: 6px; height: 46px; display: flex; align-items: center; gap: 7px; padding: 3px 54px 3px 3px; border-radius: 23px;
  background: linear-gradient(90deg, rgba(120, 30, 160, 0.72), rgba(255, 61, 139, 0.45) 70%, rgba(255, 61, 139, 0)); animation: gbIn 0.28s cubic-bezier(.2,1.4,.4,1); transition: top 0.25s, opacity 0.3s; }
.gb.big { background: linear-gradient(90deg, rgba(255, 140, 0, 0.82), rgba(255, 61, 139, 0.55) 70%, rgba(255, 61, 139, 0)); }
.gb.blocked { background: linear-gradient(90deg, rgba(20, 120, 170, 0.78), rgba(53, 224, 232, 0.35) 70%, rgba(53, 224, 232, 0)); }
.gb.out { opacity: 0; transform: translateX(-30px); transition: opacity 0.35s, transform 0.35s; }
.gb .a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; border: 2px solid rgba(255,255,255,0.9); flex: none; }
.gb .w { line-height: 1.15; min-width: 0; max-width: 160px; }
.gb .w b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb .w span { font-size: 11px; color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
.gb .w span em { font-style: normal; color: #fff3b0; font-weight: 700; }
.gb .g { position: absolute; right: 6px; font-size: 36px; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4)); animation: gIn 0.35s ease-out; }
.gb .x { position: absolute; left: 100%; margin-left: 4px; font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -0.02em; white-space: nowrap;
  color: #fff7c2; -webkit-text-stroke: 1.5px #a0005a; text-shadow: 0 2px 0 #7a0044, 0 4px 10px rgba(0,0,0,0.35); }
.gb .x.bump { animation: bump 0.22s ease-out; }
.gb .x small { font-size: 18px; }
@keyframes gbIn { from { transform: translateX(-100%); opacity: 0; } }
@keyframes gIn { from { transform: scale(0.3) rotate(-30deg); } }
@keyframes bump { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* big gift moment */
.biggift { position: absolute; left: 0; right: 0; top: 28%; display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: bg 3.2s ease-out forwards; }
.biggift .e { font-size: 120px; filter: drop-shadow(0 8px 24px rgba(255, 180, 60, 0.8)); animation: bgE 3.2s ease-out forwards; }
.biggift .n { margin-top: 4px; padding: 6px 16px; border-radius: 18px; background: linear-gradient(90deg, #ff8a00, #ff3d8b); font-weight: 800; font-size: 15px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.biggift::before { content: ""; position: absolute; top: -60px; width: 340px; height: 340px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 230, 140, 0.32) 0 10deg, transparent 10deg 22deg); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); animation: spin 6s linear infinite; }
@keyframes bg { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bgE { 0% { transform: scale(0.2) translateY(80px); } 12% { transform: scale(1.15); } 20% { transform: scale(1); } 100% { transform: scale(1.05) translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* in-camera words: the streamer's voice, the helper, the counting, raid numbers */
.voice { position: absolute; left: 6%; right: 6%; bottom: calc(100% - var(--tray-top) + 22px); /* a subtitle in the band over the bowl's near wall, above the DEFTER label: never under the Defter (off a notched phone's screen) nor across the slime */ text-align: center; font-size: 15.5px; font-weight: 800; line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.5); opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; }
.voice.on { opacity: 1; transform: none; }
.voice small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink3); margin-bottom: 1px; }
.voice.worn { color: #e9dbe6; }
.counter { position: absolute; font-size: 34px; font-weight: 900; font-style: italic; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,0.5), 0 0 14px rgba(53, 224, 232, 0.8); transform: translate(-50%, -100%); animation: cnt 0.5s ease-out forwards; }
.counter.skim { color: #ffcfcf; text-shadow: 0 2px 0 rgba(0,0,0,0.5), 0 0 14px rgba(255, 60, 60, 0.9); }
@keyframes cnt { 0% { transform: translate(-50%, -60%) scale(1.5); opacity: 0.2; } 25% { transform: translate(-50%, -100%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -170%) scale(0.9); opacity: 0; } }
.helper { position: absolute; right: 8px; bottom: calc(100% - var(--bowl-top) + 10px); z-index: 4; /* over the menu card's foot on a notched phone, for its few seconds */ max-width: 52%; padding: 6px 10px; border-radius: 14px 14px 4px 14px; background: rgba(255, 238, 180, 0.95); color: #3b2a00; font-size: 12.5px; font-weight: 700; line-height: 1.25;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); opacity: 0; transform: translateY(-6px) scale(0.96); transition: opacity 0.2s, transform 0.2s; }
.helper.on { opacity: 1; transform: none; }
.helper small { display: block; font-size: 9.5px; font-weight: 900; letter-spacing: 0.06em; color: #a07000; }
.helper.wrong::after { content: " ✗"; color: #c62828; }

.raid { position: absolute; left: 50%; top: calc(var(--bowl-top) + 20px); pointer-events: none; /* on the far wall, above the slime */ transform: translateX(-50%); padding: 5px 12px; border-radius: 14px; background: linear-gradient(90deg, rgba(0, 120, 255, 0.88), rgba(0, 200, 255, 0.78)); font-size: 12.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); display: none; }
.raid.on { display: block; animation: gbIn 0.3s; }
.raidnum { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); font-size: 140px; font-weight: 900; color: #fff; -webkit-text-stroke: 3px #0067d6; text-shadow: 0 8px 30px rgba(0, 120, 255, 0.8); animation: rn 0.95s ease-out forwards; }
@keyframes rn { 0% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0; } }

/* the Set */
.set { position: absolute; left: 50%; bottom: calc(100% - var(--bowl-top) + 2px); transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 4px; }
.set.on { display: flex; }
.set .ring { position: relative; width: 74px; height: 74px; display: grid; place-items: center; }
.set .ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.set .ring b { position: relative; font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; text-shadow: var(--shadow); }
.set .lbl { font-size: 11px; font-weight: 900; letter-spacing: 0.14em; padding: 2px 8px; border-radius: 8px; background: rgba(255, 140, 0, 0.9); }
.set .hold { width: 150px; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.45); position: relative; overflow: hidden; }
.set .hold i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #5cff9d, #35e0e8); transition: width 0.1s; }
.set .hold u { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #fff; }
.set .hold.bad i { background: linear-gradient(90deg, #ff5050, #ff9d3d); }
.stamp { position: absolute; left: 50%; top: calc(var(--bowl-top) - 34px); pointer-events: none; transform: translate(-50%, -50%) rotate(-8deg); font-size: 64px; font-weight: 900; letter-spacing: 0.02em; color: #fff;
  -webkit-text-stroke: 3px #ff3d8b; text-shadow: 0 6px 30px rgba(255, 61, 139, 0.8); animation: stamp 1.8s ease-out forwards; white-space: nowrap; }
.stamp.bad { -webkit-text-stroke-color: #c00; text-shadow: 0 6px 30px rgba(255, 0, 0, 0.7); font-size: 40px; }
.stamp.rip { -webkit-text-stroke-color: #333; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.8); font-size: 40px; }
@keyframes stamp { 0% { transform: translate(-50%, -50%) rotate(-8deg) scale(2.6); opacity: 0; } 12% { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.04); } }

/* choices floating over the bowl (names, Bis, restart) */
.choice { position: absolute; left: 50%; bottom: calc(100% - var(--bowl-top) + 2px); z-index: 2; /* above the bowl, over the chat's foot: never on the slime, where its buttons would take the thumb */ transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; width: 86%; }
.choice h5 { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em; text-align: center; padding: 4px 10px; border-radius: 10px; background: rgba(0,0,0,0.62); }
.choice .opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.choice { gap: 5px; }
/* a choice asks for a thumb now: on a notched phone its stack reaches up into the banners' column, which step back */
#hud:has(.choice) .banners { opacity: 0.18; transition: opacity 0.2s; }
.choice h5 + .opts + h5 { font-size: 11px; padding: 2px 8px; }
.choice button { padding: 9px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.95); color: #2b1d2e; font-weight: 800; font-size: 13.5px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.choice button.hot { background: linear-gradient(90deg, #ff3d8b, #ff8a3d); color: #fff; }
.choice button .tmr { font-weight: 700; opacity: 0.75; margin-left: 4px; }
.jar { position: absolute; left: 50%; bottom: calc(100% - var(--bowl-top) + 6px); transform: translateX(-50%); width: 82%; padding: 10px 12px; border-radius: 16px; background: rgba(255, 250, 240, 0.95); color: #2b1d2e; box-shadow: 0 10px 30px rgba(0,0,0,0.4); animation: jar 5s ease-out forwards; display: flex; gap: 10px; align-items: center; }
.jar .i { font-size: 38px; }
.jar b { display: block; font-size: 15px; }
.jar span { font-size: 11.5px; color: #6b4b66; }
@keyframes jar { 0% { transform: translate(-50%, 30px); opacity: 0; } 8% { transform: translate(-50%, 0); opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }

/* banners: dares, wheel, home, closing, breather, appeal */
.banners { position: absolute; left: 8px; width: 68%; top: calc(var(--safe-top) + 80px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; } /* over the chat column, never the slime (its buttons would take the thumb) */
.bn { pointer-events: auto; max-width: 100%; padding: 7px 12px; border-radius: 14px; background: var(--glass2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.3; box-shadow: 0 4px 16px rgba(0,0,0,0.3); animation: gbIn 0.3s; }
.bn b { color: var(--gold); }
.bn .row { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 5px; justify-content: flex-start; margin-top: 5px; } /* one line: the banners stay short above the bowl */
.bn .row button { flex: none; }
.bn .row button { padding: 5px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.92); color: #2b1d2e; font-size: 12px; font-weight: 800; }
.bn .row button.red { background: var(--live); color: #fff; }
.bn.dare { background: linear-gradient(90deg, rgba(120, 0, 200, 0.8), rgba(255, 61, 139, 0.7)); }
.bn.home { background: rgba(255, 243, 210, 0.95); color: #3b2a00; }
.bn.home b { color: #a05a00; }
.bn .pbar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.25); margin-top: 5px; overflow: hidden; }
.bn .pbar i { display: block; height: 100%; background: #fff; }
.away { position: absolute; inset: 0; background: rgba(10, 6, 14, 0.42); display: grid; place-items: center; font-size: 15px; font-weight: 800; text-shadow: var(--shadow); }

/* towel at the right edge (GDD §4.16: wipe the slime off your fingers so chat is readable again) */
/* (below the slime's right flank since the slime fills the width: the screen's side edges over the bowl are its rims, Beşik) */
.towel { position: absolute; right: 0; top: calc(var(--bowl-bottom) - 124px); width: 20px; height: 92px; border-radius: 10px 0 0 10px;
  background: repeating-linear-gradient(0deg, #f2d7e6 0 6px, #e7bfd6 6px 12px); box-shadow: -2px 2px 8px rgba(0,0,0,0.35); opacity: 0.85; }
.towel::after { content: "havlu"; position: absolute; right: 23px; top: 50%; transform: translateY(-50%) rotate(-90deg); font-size: 9px; font-weight: 800; color: var(--ink3); letter-spacing: 0.1em; }

/* the gutter lip on the near rim */
.gutter { position: absolute; transform: translateX(-50%); border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: radial-gradient(60% 90% at 50% 0%, rgba(30, 20, 40, 0.0) 0%, rgba(30, 20, 40, 0.0) 55%, rgba(255, 255, 255, 0.10) 70%, rgba(20, 14, 26, 0.28) 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.16); }
.gutter::after { content: "oluk"; position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); font-size: 8.5px; font-weight: 800; letter-spacing: 0.16em; color: rgba(255,255,255,0.4); text-shadow: var(--shadow); }

/* the Defter tray */
.tray { position: absolute; left: 0; right: 0; top: var(--tray-top); height: 76px; padding: 0 8px; display: flex; align-items: flex-end; gap: 6px; overflow: visible; }
.tray .label { position: absolute; left: 10px; top: -15px; font-size: 9.5px; font-weight: 900; letter-spacing: 0.14em; color: var(--ink3); text-shadow: var(--shadow); }
.tray .owed { position: absolute; right: 10px; top: -15px; font-size: 10px; font-weight: 800; color: #ffd38a; text-shadow: var(--shadow); }
.tray .empty { margin: auto; font-size: 11.5px; color: var(--ink3); font-weight: 600; text-shadow: var(--shadow); padding-bottom: 22px; }
.stk { position: relative; width: 60px; height: 70px; border-radius: 16px; flex: none; touch-action: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: transform 0.12s, background 0.2s; animation: stkIn 0.25s cubic-bezier(.2,1.5,.4,1); }
.stk .e { font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3)); }
.stk .u { font-size: 15px; font-weight: 900; margin-top: 3px; text-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.stk .nm { position: absolute; top: 3px; left: 0; right: 0; text-align: center; font-size: 8px; font-weight: 900; letter-spacing: 0.06em; color: var(--ink2); }
.stk svg.fuse { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); pointer-events: none; }
.stk.banked { background: linear-gradient(180deg, rgba(255, 196, 70, 0.55), rgba(255, 140, 0, 0.32)); border-color: rgba(255, 210, 120, 0.8); }
.stk.banked .nm { color: #fff3c9; }
.stk .bk { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-size: 8.5px; font-weight: 900; letter-spacing: 0.05em; color: #fff3c9; }
.stk.drag { transform: scale(1.12); z-index: 30; }
.stk.armed { box-shadow: 0 0 0 2px var(--aqua), 0 4px 12px rgba(0,0,0,0.3); }
.stk.pressing { background: linear-gradient(180deg, rgba(255, 220, 120, 0.4), rgba(255, 255, 255, 0.1)); }
.stk.shelf { background: linear-gradient(180deg, rgba(53, 224, 232, 0.3), rgba(53, 224, 232, 0.08)); border-color: rgba(53, 224, 232, 0.55); width: 52px; }
@keyframes stkIn { from { transform: scale(0.4); opacity: 0; } }
.ghost { position: absolute; z-index: 40; pointer-events: none; transform: translate(-50%, -60%) scale(1.15); opacity: 0.92; }
.shieldchip { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--tray-top) - 20px); /* on the DEFTER label row (the near band above it is the spoken line's) */ pointer-events: none; padding: 3px 10px; border-radius: 12px; background: rgba(53, 224, 232, 0.85); color: #00323a; font-size: 11.5px; font-weight: 900; display: none; white-space: nowrap; }
.shieldchip.on { display: block; }

/* the bottom row: kıvam gauge, El Rafı, more */
.bottom { position: absolute; left: 8px; right: 8px; bottom: var(--safe-bottom); height: 40px; display: flex; align-items: center; gap: 6px; }
.gauge { flex: 1; position: relative; height: 34px; padding: 4px 8px 0; border-radius: 12px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gauge .strip { position: relative; display: flex; height: 9px; border-radius: 5px; overflow: hidden; }
.gauge .strip span { display: block; height: 100%; }
.gauge .labels { display: flex; font-size: 7.6px; font-weight: 900; letter-spacing: 0.03em; color: var(--ink3); margin-top: 3px; }
.gauge .labels span { text-align: center; transition: color 0.2s; }
.gauge .labels span.on { color: #fff; }
.gauge .mk { position: absolute; top: 1px; width: 4px; height: 15px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,0.6), 0 0 8px rgba(255,255,255,0.8); transition: left 0.15s linear; }
.gauge.danger { animation: danger 0.8s infinite; }
@keyframes danger { 50% { background: rgba(255, 40, 40, 0.42); } }
.gauge .ready { position: absolute; right: 6px; top: -18px; font-size: 10px; font-weight: 900; color: #b9ffd5; text-shadow: var(--shadow); white-space: nowrap; }
.gauge .ready.charging { color: #ffe08a; padding: 1px 6px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 176, 61, 0.55) var(--p, 0%), rgba(0, 0, 0, 0.35) var(--p, 0%)); }
.btn { height: 34px; min-width: 34px; padding: 0 10px; border-radius: 12px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.btn.on { background: rgba(53, 224, 232, 0.4); }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-left: 2px; }

.shelfrow { position: absolute; right: 8px; bottom: calc(var(--safe-bottom) + 46px); display: none; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(10, 30, 36, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.shelfrow.on { display: flex; }
.shelfrow .note { position: absolute; top: -16px; right: 8px; font-size: 9.5px; font-weight: 800; color: var(--ink3); white-space: nowrap; }

/* sheets and modals */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 50; padding: 14px 14px calc(var(--safe-bottom) + 14px); border-radius: 20px 20px 0 0; background: rgba(24, 18, 30, 0.96); box-shadow: 0 -10px 40px rgba(0,0,0,0.5); animation: sheet 0.22s ease-out; pointer-events: auto; max-height: 70%; overflow: auto; }
.sheet h3 { margin: 0 0 10px; font-size: 14px; display: flex; justify-content: space-between; }
.sheet .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet .grid button { padding: 10px 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); font-size: 11.5px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sheet .grid button i { font-style: normal; font-size: 20px; }
.sheet .grid button.red { background: rgba(255, 45, 85, 0.25); }
.sheet .note { font-size: 11px; color: var(--ink3); margin-top: 10px; line-height: 1.4; }
.sheet .list button { display: flex; width: 100%; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 13px; text-align: left; gap: 8px; }
@keyframes sheet { from { transform: translateY(40%); opacity: 0; } }
.scrim { position: absolute; inset: 0; z-index: 45; background: rgba(0, 0, 0, 0.35); pointer-events: auto; }
.modal { position: absolute; left: 7%; right: 7%; top: 30%; z-index: 60; padding: 16px; border-radius: 18px; background: rgba(250, 248, 252, 0.97); color: #221a26; box-shadow: 0 20px 60px rgba(0,0,0,0.6); pointer-events: auto; animation: gIn 0.25s; text-align: center; }
.modal .logo { font-size: 11px; font-weight: 900; letter-spacing: 0.1em; color: #b0327a; }
.modal h3 { margin: 6px 0; font-size: 16px; }
.modal p { margin: 0 0 12px; font-size: 12.5px; color: #5b4a60; line-height: 1.4; }
.modal .row { display: flex; gap: 8px; }
.modal .row button { flex: 1; padding: 11px; border-radius: 12px; font-weight: 800; font-size: 13px; background: #ece6f0; }
.modal .row button.red { background: var(--live); color: #fff; }

/* floating hearts (likes) and follows */
.hearts { position: absolute; right: 6px; bottom: calc(var(--safe-bottom) + 48px); width: 50px; height: 220px; overflow: visible; }
.hearts i { position: absolute; bottom: 0; right: 10px; font-style: normal; font-size: 22px; animation: heart 2.2s ease-out forwards; }
@keyframes heart { 0% { transform: translate(0, 0) scale(0.4); opacity: 0; } 10% { opacity: 1; transform: translate(0, -10px) scale(1); } 100% { transform: translate(var(--dx), -200px) scale(0.8); opacity: 0; } }
.toast { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--bowl-top) - 4px); z-index: 3; /* over the far wall: the near band is the spoken line's, the Defter sits right under it */ pointer-events: none; max-width: 88%; overflow: hidden; text-overflow: ellipsis; padding: 6px 12px; border-radius: 14px; background: rgba(0,0,0,0.55); font-size: 12px; font-weight: 700; white-space: nowrap; animation: toast 2.6s forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 10% { opacity: 1; transform: translate(-50%, 0); } 85% { opacity: 1; } 100% { opacity: 0; } }
.brb { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(10, 8, 14, 0.88); font-size: 28px; font-weight: 900; }

/* ---------------- the desk (before going live) ---------------- */
.desk { position: absolute; inset: 0; z-index: 80; overflow: auto; padding: calc(var(--safe-top) + 6px) 16px calc(var(--safe-bottom) + 16px); background: linear-gradient(180deg, rgba(14, 10, 20, 0.25) 0%, rgba(14, 10, 20, 0.85) 38%, rgba(14, 10, 20, 0.97) 60%); }
.desk .brand { display: flex; align-items: center; justify-content: space-between; }
.desk .brand b { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; background: linear-gradient(90deg, #ff3d8b, #b44dff 60%, #35e0e8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.desk .brand span { font-size: 11px; color: var(--ink3); font-weight: 700; }
.desk .hero { height: 34vh; }
.desk .card { padding: 10px 12px; margin-top: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); }
.desk .card h4 { margin: 0 0 6px; font-size: 10.5px; letter-spacing: 0.12em; color: var(--ink3); }
.desk .fc { font-size: 13px; line-height: 1.45; color: var(--ink); }
.desk .fc div::before { content: "☁ "; color: var(--ink3); }
.desk .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.desk .opts button { padding: 7px 11px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); font-size: 12.5px; font-weight: 700; color: var(--ink2); border: 1px solid transparent; }
.desk .opts button.on { background: rgba(255, 61, 139, 0.22); color: #fff; border-color: rgba(255, 61, 139, 0.7); }
.desk .opts button small { display: block; font-size: 10px; color: var(--ink3); font-weight: 600; }
.desk .go { position: sticky; bottom: 0; margin-top: 14px; width: 100%; height: 52px; border-radius: 26px; background: linear-gradient(90deg, #ff2d55, #ff3d8b); font-size: 16px; font-weight: 900; letter-spacing: 0.02em; box-shadow: 0 8px 26px rgba(255, 45, 85, 0.45); }
.desk .wall { margin-top: 8px; font-size: 12px; color: var(--ink2); text-align: center; }
.desk .wall b { color: #ff8aa8; }

.count3 { position: absolute; inset: 0; z-index: 75; display: grid; place-items: center; font-size: 150px; font-weight: 900; text-shadow: 0 10px 40px rgba(255, 45, 85, 0.8); pointer-events: none; }

/* ---------------- the end card (GDD §6.6) ---------------- */
.end { position: absolute; inset: 0; z-index: 90; overflow: auto; padding: calc(var(--safe-top) + 12px) 16px calc(var(--safe-bottom) + 20px); background: rgba(12, 9, 16, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: chatIn 0.4s; pointer-events: auto; }
.end .hd { text-align: center; margin: 8px 0 14px; }
.end .hd .t { font-size: 12px; letter-spacing: 0.16em; color: var(--ink3); font-weight: 800; }
.end .hd h2 { margin: 6px 0 2px; font-size: 22px; }
.end .hd p { margin: 0; font-size: 12.5px; color: var(--ink2); }
.end .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.end .st { padding: 10px 6px; border-radius: 14px; background: rgba(255,255,255,0.06); text-align: center; }
.end .st b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.end .st span { font-size: 10.5px; color: var(--ink3); font-weight: 700; }
.end .money { margin-top: 10px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 61, 139, 0.16), rgba(180, 77, 255, 0.12)); }
.end .money .ln { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: var(--ink2); }
.end .money .ln.net { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 4px; padding-top: 7px; font-size: 16px; font-weight: 900; color: #fff; }
.end .sec { margin-top: 12px; }
.end .sec h4 { margin: 0 0 6px; font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink3); }
.end .sec div { font-size: 12.5px; line-height: 1.5; color: var(--ink2); }
.end .sec .jarc { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 250, 240, 0.92); color: #2b1d2e; margin-bottom: 6px; }
.end .raw { margin-top: 12px; font: 11px/1.45 ui-monospace, Menlo, monospace; color: var(--ink3); white-space: pre-wrap; display: none; }
.end .raw.on { display: block; }
.end .acts { display: flex; gap: 8px; margin-top: 16px; }
.end .acts button { flex: 1; height: 44px; border-radius: 22px; background: rgba(255,255,255,0.1); font-weight: 800; font-size: 13px; }
.end .acts button.go { background: linear-gradient(90deg, #ff2d55, #ff3d8b); }
.end .verify { margin-top: 10px; font-size: 11px; color: var(--ink3); text-align: center; }
.end .verify.ok { color: #9dffbf; }
.end .verify.bad { color: #ff9d9d; }

.degraded { position: absolute; left: 10%; right: 10%; top: 45%; text-align: center; font-size: 13px; color: var(--ink2); }

.end, .desk, .sheet { scrollbar-width: none; }
.end::-webkit-scrollbar, .desk::-webkit-scrollbar, .sheet::-webkit-scrollbar { display: none; }

/* Over the real slime the camera layer changes every frame at up to 120 Hz, so every backdrop blur would be
   re-rendered every frame. That is a known cost on iPhone, and nobody has measured it here yet. The glass becomes
   plain tinted panels instead (?glass=1 brings the blur back to A/B it on the phone). */
#app.real-slime { --glass: rgba(0, 0, 0, 0.44); --glass2: rgba(0, 0, 0, 0.62); --pill: rgba(22, 16, 30, 0.6); }
#app.real-slime * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
#app.real-slime .end { background: rgba(12, 9, 16, 0.97); }

/* the room holds its breath while a sheet hangs thin between the thumbs (live/room.ts): the chat's lines dim a touch */
.chat.hush .l:not(.gift) { opacity: 0.72; transition: opacity 0.4s; }

/* ================================================================================================================
   The stream's frame in the game's look (TECH_SPEC_GAME §25, "Şeker cilası"): the same plum ink outline, candy
   fills, Avenir Next Heavy numbers and drawn faces the room and the phone use, so the slime and the interface come
   from one product. Static styling only: no blur (above), no new per-frame animation, nothing on the slime. */
:root { --inkp: #2b1438; --cream: #fff7ef; --display: "Avenir Next", ui-rounded, "SF Pro Rounded", system-ui, sans-serif; --stk: 0 3px 0 #2b1438; }
.face-av { overflow: hidden; background: #fff !important; }
.face-av img { width: 100%; height: 100%; display: block; }

/* top band: the host capsule is you (the bag), the pills are chunky stickers */
.host { background: var(--cream) !important; color: var(--inkp); border: 2.5px solid var(--inkp); box-shadow: var(--stk); padding: 2px 11px 2px 2px; }
.host .av { width: 36px; height: 36px; background: #ffd0e4; border: 2.5px solid var(--inkp); overflow: hidden; box-shadow: none; }
.host .av::after { display: none; }
.host .av svg { width: 100%; height: 100%; display: block; }
.host .nm b { font: 900 13.5px var(--display); }
.host .nm span { color: #d0185e; font: 800 11px var(--display); }
.viewers, .close { background: var(--cream) !important; color: var(--inkp); border: 2.5px solid var(--inkp); box-shadow: var(--stk); font-family: var(--display); font-weight: 900; }
.viewers svg { stroke: var(--inkp); }
.viewers svg path, .viewers svg circle { stroke: var(--inkp); }
.close { font-size: 15px; }
.top3 .t { border-width: 2.5px; box-shadow: 0 2px 0 var(--inkp); }
.top3 .t em { border: 1.5px solid var(--inkp); font-family: var(--display); }
.trust .h b { font-family: var(--display); }
.pillx { border: 2px solid var(--inkp); font: 900 11px var(--display); box-shadow: 0 2px 0 var(--inkp); height: 23px; }
.pillx.live { background: linear-gradient(180deg, #ff6a9a, #ff2d55); }
.pillx.kr { background: linear-gradient(180deg, #fff8dc, #ffd257) !important; color: var(--inkp); }
.pillx.kr b { color: var(--inkp); }
.pillx.rank { background: #e9defa !important; color: var(--inkp); }
.pillx.batt { background: #d9fbe9 !important; color: var(--inkp); }
.pillx.batt.low { background: #ff6b6b !important; color: #fff; }
.pillx.warn { color: var(--inkp); }
.pillx.fps { border-width: 2px; }

/* chat: faces, and the names in the display face */
.chat .l .a { width: 22px; height: 22px; border: 1.5px solid var(--inkp); }
.chat .l .n { font-family: var(--display); font-weight: 800; }
.chat .l.gift { background: linear-gradient(90deg, rgba(255, 61, 139, 0.5), rgba(122, 60, 255, 0.28)); }
.chat .l.me { background: rgba(122, 60, 255, 0.4); }

/* the menu card is a paper note: ink outline, tape */
.menu { border: 2.5px solid var(--inkp); box-shadow: 0 4px 0 rgba(43, 20, 56, 0.55); }
.menu h4 { font-family: var(--display); color: #e0185e; }
.menu .s .c { font-family: var(--display); }
.menu .goal .bar { border: 1.5px solid var(--inkp); height: 7px; }

/* gift combos: candy ribbons with an ink edge, the multiplier as a chunky sticker number */
.gb { border: 2.5px solid var(--inkp); border-right: 0; }
.gb .a { border: 2.5px solid var(--inkp); background: #fff; }
.gb .w b { font: 900 13px var(--display); }
.gb .x { font-family: var(--display); -webkit-text-stroke: 0; color: #fff; text-shadow: 2px 2px 0 var(--inkp), -2px -2px 0 var(--inkp), 2px -2px 0 var(--inkp), -2px 2px 0 var(--inkp), 0 4px 0 var(--inkp); }
.biggift .n { border: 2.5px solid var(--inkp); box-shadow: var(--stk); font-family: var(--display); }

/* words in the camera, stamps and counters: outlined like the HUD's numbers */
.voice { font-family: var(--display); font-weight: 900; text-shadow: 2px 2px 0 var(--inkp), -2px -2px 0 var(--inkp), 2px -2px 0 var(--inkp), -2px 2px 0 var(--inkp), 0 3px 0 var(--inkp); }
.counter, .raidnum, .stamp { font-family: var(--display); }
.helper { border: 2.5px solid var(--inkp); box-shadow: var(--stk); }
.raid { border: 2.5px solid var(--inkp); box-shadow: var(--stk); font-family: var(--display); }
.set .lbl { border: 2px solid var(--inkp); font-family: var(--display); }
.set .ring b { font-family: var(--display); text-shadow: 2px 2px 0 var(--inkp), -2px -2px 0 var(--inkp), 2px -2px 0 var(--inkp), -2px 2px 0 var(--inkp); }
.set .hold { border: 2px solid var(--inkp); height: 11px; }
.choice h5 { font-family: var(--display); }
.choice button { border: 2.5px solid var(--inkp); box-shadow: var(--stk); font-family: var(--display); font-weight: 900; }
.choice button.hot { background: linear-gradient(180deg, #ff8fc0, #ff3d8b 60%, #e8155c); }
.jar { border: 3px solid var(--inkp); box-shadow: 0 5px 0 var(--inkp); }
.jar b { font-family: var(--display); }
.bn { border: 2.5px solid var(--inkp); box-shadow: var(--stk); }
.bn .row button { border: 2px solid var(--inkp); font-family: var(--display); }
.toast { border: 2px solid rgba(255,255,255,0.8); font-family: var(--display); }

/* the Defter tray and the bottom row */
.stk { border: 2.5px solid var(--inkp); box-shadow: 0 3px 0 var(--inkp); }
.stk .u { font-family: var(--display); }
.stk.banked { background: linear-gradient(180deg, #ffe58a, #ffb13d); }
.stk.banked .nm, .stk.banked .bk { color: var(--inkp); }
.tray .label, .tray .owed { font-family: var(--display); }
.gauge { border: 2.5px solid var(--inkp); box-shadow: var(--stk); }
.gauge .strip { border: 2px solid var(--inkp); height: 11px; border-radius: 6px; }
.gauge .labels { font-family: var(--display); }
.gauge .mk { border: 2px solid var(--inkp); width: 7px; margin-left: -3.5px; height: 17px; top: 1px; box-shadow: 0 0 6px rgba(255,255,255,0.8); }
.gauge .ready { font-family: var(--display); text-shadow: 1px 1px 0 var(--inkp), -1px -1px 0 var(--inkp), 1px -1px 0 var(--inkp), -1px 1px 0 var(--inkp); }
.btn { background: var(--cream) !important; color: var(--inkp); border: 2.5px solid var(--inkp); box-shadow: var(--stk); font: 900 12.5px var(--display); }
.btn.on { background: linear-gradient(180deg, #8ff0ff, #2fd6ff) !important; }
.sheet { background: var(--cream); color: var(--inkp); border: 3px solid var(--inkp); border-bottom: 0; }
.sheet .grid button { background: #fff; border: 2.5px solid var(--inkp); box-shadow: var(--stk); color: var(--inkp); font-family: var(--display); font-weight: 800; }
.sheet .grid button.red { background: #ffd0dc; }
.sheet .note { color: #8a6f96; }
.sheet .list button { color: var(--inkp); border-bottom-color: rgba(43, 20, 56, 0.12); }
.modal { border: 3px solid var(--inkp); box-shadow: 0 6px 0 var(--inkp); }
.modal h3 { font-family: var(--display); font-weight: 900; }
.modal .row button { border: 2.5px solid var(--inkp); box-shadow: var(--stk); font-family: var(--display); font-weight: 900; }

/* the end card: a reward screen (Gloop cheering, the night's three numbers big and counted up) */
.end { background: radial-gradient(90% 40% at 50% 0%, rgba(255, 61, 139, 0.55), transparent 70%), linear-gradient(180deg, #3a1f9a 0%, #2a1466 50%, #1a0c44 100%) !important; }
.end .hd .mascot { width: 84px; height: 84px; margin: 0 auto -2px; animation: endPop 0.7s cubic-bezier(.2, 1.6, .4, 1) both; }
.end .hd .mascot svg { width: 100%; height: 100%; }
@keyframes endPop { from { transform: scale(0.2) translateY(30px); opacity: 0; } }
.end .hd .t { display: inline-block; padding: 3px 12px; border-radius: 10px; background: #ffe14d; color: var(--inkp); border: 2.5px solid var(--inkp); font: 900 12px var(--display); letter-spacing: 0.16em; }
.end .hd h2 { font: 900 32px var(--display); color: #fff; text-shadow: 2px 2px 0 var(--inkp), -2px -2px 0 var(--inkp), 2px -2px 0 var(--inkp), -2px 2px 0 var(--inkp), 0 5px 0 var(--inkp); margin: 10px 0 4px; }
.end .hd p { font-family: var(--display); font-weight: 700; }
.end .st { background: var(--cream); color: var(--inkp); border: 2.5px solid var(--inkp); box-shadow: var(--stk); border-radius: 16px; }
.end .st b { font: 900 20px var(--display); }
.end .st span { color: #8a6f96; font-family: var(--display); font-weight: 800; }
.end .st.big { display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.end .st.big svg.ic { width: 26px; height: 26px; }
.end .st.big b { font-size: 24px; }
.end .money { background: rgba(255, 255, 255, 0.08); border: 2px dashed rgba(255,255,255,0.3); border-radius: 18px; }
.end .money .ln.net { font-family: var(--display); color: #ffe14d; }
.end .sec h4 { color: #ffe14d; font-family: var(--display); font-weight: 900; }
.end .sec .jarc { border: 2.5px solid var(--inkp); box-shadow: var(--stk); }
.end .sec .jarc svg.ic { width: 30px; height: 30px; flex: none; }
.end .acts button { border: 2.5px solid var(--inkp); box-shadow: var(--stk); background: var(--cream); color: var(--inkp); font: 900 13.5px var(--display); }
.end .acts button.go { height: 58px; font-size: 18px; color: #fff; text-shadow: 0 2px 0 rgba(43,20,56,0.55); background: linear-gradient(180deg, #ff7ab0 0%, #ff2d6f 52%, #e8155c 100%); box-shadow: inset 0 -5px 0 rgba(90,0,40,0.28), 0 5px 0 var(--inkp); }
svg.ic { width: 20px; height: 20px; display: block; overflow: visible; }

/* the developer's test desk keeps its function; its buttons speak the same language */
.desk .go { border: 3px solid var(--inkp); box-shadow: inset 0 -5px 0 rgba(90,0,40,0.28), 0 5px 0 var(--inkp); font-family: var(--display); }

/* ================================================================================================================
   The stage (TECH_SPEC_GAME §25.7, ui/stage.ts): things that happen, seen happening. Small absolutely placed
   elements animated by transform/opacity only (compositor work), a handful at a time, never over the slime for
   long. */
.stage { position: absolute; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.stage > * { position: absolute; left: 0; top: 0; will-change: transform; }
/* a gift: the sender's face with the gift on it */
.gtok { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 3px solid var(--inkp); background: #fff; box-shadow: 0 3px 0 var(--inkp); }
.gtok img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.gtok .ge { position: absolute; right: -10px; bottom: -8px; font-size: 22px; filter: drop-shadow(0 2px 0 rgba(43,20,56,0.6)); }
.gtok b { position: absolute; left: -12px; top: -10px; padding: 0 5px; border-radius: 9px; background: #ffe14d; border: 2px solid var(--inkp); font: 900 12px var(--display); color: var(--inkp); }
.gtok.big { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.gtok.sab { border-color: #ff2d55; box-shadow: 0 0 0 3px var(--inkp), 0 0 14px rgba(255, 45, 85, 0.9); }
.gtok.sav { border-color: #3ee6a8; box-shadow: 0 0 0 3px var(--inkp), 0 0 14px rgba(62, 230, 168, 0.9); }
/* a pour: the ingredient falls where it went in, and splashes in the colour of what it means now */
.drop { font-size: 26px; margin: -14px 0 0 -14px; filter: drop-shadow(0 2px 0 rgba(43,20,56,0.6)); }
.splash { width: 0; height: 0; }
.splash i { position: absolute; left: -26px; top: -14px; width: 52px; height: 28px; border-radius: 50%; border: 4px solid #fff; animation: splashRing 0.8s ease-out forwards; }
.splash.sab i { border-color: #ff4d6d; } .splash.sav i { border-color: #3ee6a8; }
.splash span { position: absolute; left: -12px; top: -30px; font-size: 22px; animation: splashUp 0.9s ease-out forwards; }
@keyframes splashRing { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes splashUp { 0% { transform: translateY(10px) scale(0.6); opacity: 0; } 30% { opacity: 1; transform: translateY(-6px) scale(1.1); } 100% { opacity: 0; transform: translateY(-22px) scale(0.9); } }
/* the slime's answer, from the same spot: green + (it helped), red − (it hurt), DÖNÜŞ! (a weapon turned medicine) */
.verdict { display: flex; align-items: center; gap: 3px; margin: -22px 0 0 -22px; animation: verdictUp 1.5s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.verdict b { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 17px; display: grid; place-items: center; font: 900 24px/1 var(--display); color: #fff; border: 3px solid var(--inkp); box-shadow: 0 3px 0 var(--inkp); }
.verdict.good b { background: #22c97a; } .verdict.bad b { background: #ff2d55; }
.verdict.flip b { background: linear-gradient(180deg, #ffe14d, #ff9a3d); color: var(--inkp); font-size: 20px; padding: 0 12px; }
.verdict img { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--inkp); background: #fff; }
.verdict.flip { animation-duration: 2s; }
@keyframes verdictUp { 0% { opacity: 0; scale: 0.3; translate: 0 0; } 15% { opacity: 1; scale: 1.15; } 30% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; translate: 0 -40px; } }
.puff { font-size: 28px; margin: -16px 0 0 -16px; animation: puff 0.9s ease-out forwards; }
.puff.bad { filter: drop-shadow(0 0 6px rgba(255, 45, 85, 0.9)); }
@keyframes puff { 0% { opacity: 0; scale: 0.4; } 25% { opacity: 1; scale: 1.25; } 100% { opacity: 0; scale: 1; } }
/* a thank-you: the heart flies to the Güven ring (+2), or breaks on the line (0) */
.theart { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.theart svg { width: 100%; height: 100%; }
.theart.dud { filter: grayscale(1) brightness(1.3); }
.tplus, .tzero { margin: -12px 0 0 -14px; font: 900 20px var(--display); color: #fff; text-shadow: 2px 2px 0 var(--inkp), -2px -2px 0 var(--inkp), 2px -2px 0 var(--inkp), -2px 2px 0 var(--inkp); animation: puff 0.9s ease-out forwards; }
.tplus { color: #ffd6e8; }
.tzero { color: #cfc8d8; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.tzero small { font: 900 10px var(--display); margin-top: 2px; }
.trust.pop { animation: pop 0.45s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes pop { 40% { transform: scale(1.3); } }
.chat .l.tapped { animation: tapped 0.35s ease-out; }
@keyframes tapped { 30% { transform: scale(0.94); background: rgba(255, 255, 255, 0.45); } }

/* the Defter's stacks: red if what is in them ruins the slime as it stands, green if it rescues it; who sent it */
.stk.sab { box-shadow: 0 0 0 2.5px #ff2d55, 0 3px 0 var(--inkp), 0 0 14px rgba(255, 45, 85, 0.7) !important; }
.stk.sav { box-shadow: 0 0 0 2.5px #3ee6a8, 0 3px 0 var(--inkp), 0 0 14px rgba(62, 230, 168, 0.7) !important; }
.stk .who { position: absolute; top: -12px; right: -6px; display: flex; }
.stk .who img { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--inkp); background: #fff; margin-left: -7px; }
.stk.pop { animation: pop 0.45s cubic-bezier(.2, 1.8, .4, 1); }
/* the empty Defter: a drawn place with slots, not a caption */
.tray .empty { display: flex; gap: 8px; margin: 0; padding: 0 0 2px; }
.tray .empty i { width: 58px; height: 66px; border-radius: 16px; border: 2.5px dashed rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); }
.tray .label { font: 900 11px var(--display); color: #fff; letter-spacing: 0.16em; padding: 1px 8px; border-radius: 8px; background: var(--inkp); left: 8px; top: -18px; text-shadow: none; }

/* faces in chat: a red ring for the ones ruining the slime, a green ring for the ones saving it */
.chat .l .a.sab, .gb .a.sab { box-shadow: 0 0 0 2.5px #ff2d55; }
.chat .l .a.sav, .gb .a.sav { box-shadow: 0 0 0 2.5px #3ee6a8; }
/* the chat is the room's colour, not a wall to read: strangers small and passing, people you know bigger */
.moodglow { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--slime-top) + 10px); z-index: 0; pointer-events: none; transition: background 1.2s; }
.chat .l { animation: chatIn 0.22s ease-out, lineFade 0.8s 6s forwards; }
.chat .l.known { animation: chatIn 0.22s ease-out, lineFade 0.8s 12s forwards; font-size: 13.5px; background: rgba(43, 20, 56, 0.45); }
.chat .l.known .a { width: 28px; height: 28px; }
.chat .l:not(.known):not(.sys):not(.me) { font-size: 11.5px; }
.chat .l:not(.known):not(.sys):not(.me) .t { opacity: 0.85; }
@keyframes lineFade { to { opacity: 0.18; } }
.chat .l.join { animation: none; }

/* slime on your fingers: goo on the chat; the towel asks to be used */
.goo { position: absolute; top: calc(var(--safe-top) + 74px); left: 4px; width: 72%; height: 120px; z-index: 12; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.goo svg { width: 100%; height: 100%; }
.towel { width: 34px !important; height: 96px !important; border: 2.5px solid var(--inkp); border-right: 0; background: repeating-linear-gradient(0deg, #ffd0e4 0 8px, #ffb0d0 8px 16px) !important; box-shadow: -3px 3px 0 rgba(43,20,56,0.4) !important; opacity: 1 !important; overflow: visible; }
.towel::after { content: "" !important; }
.towel i { position: absolute; left: 6px; top: 8px; width: 4px; height: 76px; border-radius: 2px; background: rgba(255,255,255,0.7); }
.towel.dirty { animation: towelWiggle 1.1s ease-in-out infinite; transform-origin: right center; }
.towel.dirty::before { content: ""; position: absolute; inset: -6px; border-radius: 14px 0 0 14px; box-shadow: 0 0 0 3px #ffe14d, 0 0 18px rgba(255, 225, 77, 0.8); }
@keyframes towelWiggle { 0%, 100% { transform: none; } 20% { transform: translateX(-6px) rotate(-4deg); } 40% { transform: translateX(0) rotate(3deg); } }

/* the colour poll: a card with its clock and the votes filling, then the winner or "boya yok" */
.pollcard { position: absolute; left: 50%; top: calc(var(--slime-top) - 70px); z-index: 25; width: 210px; margin-left: -105px; padding: 8px 10px; border-radius: 18px; background: var(--cream); color: var(--inkp); border: 3px solid var(--inkp); box-shadow: 0 4px 0 var(--inkp); pointer-events: none; animation: endPop 0.45s cubic-bezier(.2, 1.6, .4, 1) both; }
.pollcard .ph { display: flex; align-items: center; gap: 8px; }
.pollcard .clock { position: relative; width: 36px; height: 36px; }
.pollcard .clock svg { width: 100%; height: 100%; }
.pollcard .clock b { position: absolute; inset: 0; display: grid; place-items: center; font: 900 14px var(--display); color: var(--inkp); text-shadow: 0 0 3px #fff; }
.pollcard .q { font: 900 18px var(--display); }
.pollcard .bars { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.pollcard .bar { position: relative; height: 22px; border-radius: 11px; border: 2px solid var(--inkp); background: #f3ecf6; overflow: hidden; display: flex; align-items: center; }
.pollcard .bar i { position: absolute; left: 0; top: 0; bottom: 0; transition: width 0.3s; }
.pollcard .bar span { position: relative; padding-left: 8px; font: 900 12px var(--display); flex: 1; }
.pollcard .bar b { position: relative; padding-right: 8px; font: 900 12px var(--display); }
.pollcard .bar.win { box-shadow: 0 0 0 3px #ffe14d; }
.pollcard .bar em { position: relative; padding-right: 8px; font: 900 11px var(--display); color: #d0204d; font-style: normal; }
.pollcard.done .bar:not(.win) { opacity: 0.35; }
.pollcard .wait { font: 900 14px var(--display); text-align: center; opacity: 0.5; }

/* ================================================================================================================
   The first stream teaches by playing (§25.8, ui/coach.ts): the screen opens nearly bare, each part arrives when
   it is first needed, and one drawn finger at a time does the thing over the place where it is done. */
#hud.coach .tray, #hud.coach .bottom, #hud.coach .menu, #hud.coach .sub, #hud.coach .gutter { transition: opacity 0.5s, transform 0.5s cubic-bezier(.2, 1.6, .4, 1); }
#hud.coach:not(.c-tray) .tray, #hud.coach:not(.c-tray) .gutter { opacity: 0; transform: translateY(18px); pointer-events: none; }
#hud.coach:not(.c-gauge) .bottom { opacity: 0; transform: translateY(18px); pointer-events: none; }
#hud.coach:not(.c-menu) .menu { opacity: 0; transform: translateX(30px) rotate(1.2deg); pointer-events: none; }
#hud.coach:not(.c-sub) .sub { opacity: 0; pointer-events: none; }
.coach-hint { position: absolute; left: 0; top: 0; z-index: 40; pointer-events: none; transform: translate(var(--x), var(--y)); }
.coach-hint .finger { position: absolute; left: -19px; top: -3px; width: 52px; height: 65px; filter: drop-shadow(0 4px 0 rgba(43, 20, 56, 0.45)); }
.coach-hint .cw { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); white-space: nowrap; padding: 4px 12px; border-radius: 14px; background: #ffe14d; border: 3px solid var(--inkp); box-shadow: 0 3px 0 var(--inkp); font: 900 15px var(--display); color: var(--inkp); animation: endPop 0.45s cubic-bezier(.2, 1.6, .4, 1) both; }
.coach-hint::before { content: ""; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; animation: tapRing 1.2s ease-out infinite; }
@keyframes tapRing { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.coach-hint.l-knead .finger, .coach-hint.l-knead::before { animation: kneadLoop 1.6s ease-in-out infinite; }
@keyframes kneadLoop { 0% { translate: 40px 0; } 25% { translate: 0 26px; } 50% { translate: -40px 0; } 75% { translate: 0 -26px; } 100% { translate: 40px 0; } }
.coach-hint.l-pour .finger, .coach-hint.l-pour::before { animation: dragLoop 1.8s ease-in-out infinite; }
@keyframes dragLoop { 0%, 15% { translate: 0 0; opacity: 1; } 75% { translate: var(--dx) var(--dy); opacity: 1; } 90% { translate: var(--dx) var(--dy); opacity: 0; } 100% { translate: 0 0; opacity: 0; } }
.coach-hint.l-thank .finger { animation: tapLoop 1s ease-in-out infinite; }
@keyframes tapLoop { 0%, 100% { translate: 0 0; } 40% { translate: 0 6px; scale: 0.92; } }
.coach-hint.l-towel .finger, .coach-hint.l-towel::before { animation: swipeLoop 1.2s ease-in-out infinite; }
@keyframes swipeLoop { 0% { translate: 0 -34px; } 60% { translate: 0 34px; } 100% { translate: 0 -34px; } }
.coach-hint.l-towel .cw { top: 58px; }
.coach-hint.l-set .finger:first-of-type { left: -64px; }
.coach-hint.l-set .finger:nth-of-type(2) { left: 22px; transform: scaleX(-1); }
.coach-hint.l-set .finger { animation: tapLoop 2s ease-in-out infinite; }
.coach-hint.ok .cw { background: #3ee6a8; }
.coach-hint.ok { animation: hintOut 0.5s ease-in forwards; }
@keyframes hintOut { to { opacity: 0; } }

/* the frame-rate pill sits in the pill row (it used to lie over the battery) */
.sub { right: 8px !important; }
.sub .pillx.fps { position: static; height: 23px; margin-left: auto; }
.sub .pillx.fps b { font-size: 13px; min-width: 0; }
.towel.swiped i { animation: towelSwipe 0.5s ease-out; }
@keyframes towelSwipe { 0% { transform: translateY(-20px); } 100% { transform: none; } }
/* (art-3) the towel is dragged: a tap says so; a thank-you shows what it is for */
.towel-tip { position: absolute; z-index: 40; transform: translate(-100%, -50%); padding: 4px 10px; border-radius: 12px; background: #ffe14d; color: var(--inkp); border: 2.5px solid var(--inkp); box-shadow: 0 3px 0 var(--inkp); font: 900 13px var(--display); white-space: nowrap; pointer-events: none; animation: puff 1.1s ease-out forwards; }
.towel.nudge { animation: towelWiggle 0.6s ease-in-out; }
.tdeed { font-size: 22px; margin: -14px 0 0 -14px; filter: drop-shadow(0 2px 0 rgba(43,20,56,0.6)); animation: puff 1.3s ease-out forwards; }

/* ================================================================================================================
   The core loop (§26, ui/loop.ts and the tiles in ui/tray.ts): one thing that matters now, the raid as it comes,
   the jar's price tag, and tiles that say what they would do to the slime and how long they have. */
/* ŞİMDİ: a candy pill above the Defter, coloured by what it asks */
.nowline { position: absolute; left: 50%; top: calc(var(--tray-top) - 52px); z-index: 22; transform: translateX(-50%) scale(0.9); max-width: calc(100% - 24px); padding: 5px 12px; border-radius: 16px; border: 2.5px solid var(--inkp); box-shadow: 0 3px 0 var(--inkp); background: var(--cream); color: var(--inkp); font: 900 13px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; opacity: 0; transition: opacity 0.2s, transform 0.25s cubic-bezier(.2, 1.6, .4, 1); }
.nowline.on { opacity: 1; transform: translateX(-50%) scale(1); }
.nowline.k-warn { background: #ffd2dc; color: #a3002f; }
.nowline.k-go { background: #c9ffe4; color: #00613a; }
.nowline.k-raid { background: #cfe9ff; color: #003f86; }
.nowline.k-set { background: #fff0a8; color: #6b4300; }
.nowline.k-warn, .nowline.k-raid { animation: nowPulse 0.9s ease-in-out infinite; }
@keyframes nowPulse { 50% { transform: translateX(-50%) scale(1.045); } } /* transform only: no repaint over the slime */
/* the stack the line is about lifts a little */
.stk.focus { transform: translateY(-6px); z-index: 5; }
/* a tile says what it would do to the slime as it stands, in its colour */
.stk .vd { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 0 5px; border-radius: 7px; font: 900 9px var(--display); color: #fff; background: var(--inkp); }
.stk.v-hurts .vd { background: #e8154c; }
.stk.v-helps .vd { background: #10a866; }
.stk.v-hurts:not(.banked) { box-shadow: 0 0 0 2.5px #ff2d55, 0 3px 0 var(--inkp), 0 0 14px rgba(255, 45, 85, 0.7) !important; }
.stk.v-helps { box-shadow: 0 0 0 2.5px #3ee6a8, 0 3px 0 var(--inkp), 0 0 14px rgba(62, 230, 168, 0.7) !important; }
/* its last seconds, big, on the tile; a burning tile shakes */
.stk .sec { position: absolute; top: -14px; left: -8px; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font: 900 13px var(--display); color: #fff; background: #ff2d55; border: 2px solid var(--inkp); }
.stk .sec:empty { display: none; }
.stk.banked .sec { background: #ff8a00; }
.stk.burning { animation: burn 0.25s linear infinite; }
@keyframes burn { 25% { translate: -1.5px 0; } 75% { translate: 1.5px 0; } }
.stk.raidstk { background-image: repeating-linear-gradient(135deg, rgba(0, 120, 255, 0.22) 0 6px, transparent 6px 12px); }
.tray .owed { font: 900 10.5px var(--display); color: #fff; background: var(--inkp); padding: 1px 8px; border-radius: 8px; top: -18px; text-shadow: none; }
.tray .owed:empty { display: none; }
.tray .owed.full { background: #e8154c; }
/* the old one-line raid banner gives way to the card */
#hud.core-loop .raid { display: none !important; }
/* BASKIN: a card on the far wall, from the moment the crew walks in to how it ended */
.rcard { position: absolute; left: 50%; top: calc(var(--bowl-top) + 6px); z-index: 21; width: min(330px, calc(100% - 24px)); transform: translateX(-50%) translateY(-8px); display: none; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 18px; border: 3px solid var(--inkp); box-shadow: 0 4px 0 var(--inkp); background: linear-gradient(180deg, #e6f3ff, #b9dcff); color: #00306b; pointer-events: none; }
.rcard.on { display: flex; animation: endPop 0.4s cubic-bezier(.2, 1.6, .4, 1); }
.rcard .cf { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--inkp); background: #fff; flex: none; }
.rcard .cb { flex: 1; min-width: 0; }
.rcard .ct { font: 900 13px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard .cl { font: 800 12px var(--display); opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard .cbar { height: 7px; margin-top: 3px; border-radius: 4px; border: 1.5px solid var(--inkp); background: #fff; overflow: hidden; }
.rcard .cbar i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #ff2d55, #ff9a3d); transform-origin: left center; transition: transform 0.4s linear; }
.rcard.hot { background: linear-gradient(180deg, #ffd9e2, #ff9fb6); color: #7a0022; animation: rcardHot 0.6s ease-in-out infinite; }
@keyframes rcardHot { 50% { transform: translateX(-50%) translateY(-8px) scale(1.03); } }
.rcard.won { background: linear-gradient(180deg, #d9ffe9, #8ff0be); color: #00552f; }
.rcard.lost { background: linear-gradient(180deg, #e9e3ee, #b7aac2); color: #3a2a48; }
.rcard.won .ct, .rcard.lost .ct { font-size: 16px; }
/* KAVANOZ: the jar's price tag over the El Rafı corner, rising by each act, crashing on a ruin */
.jarchip { position: absolute; right: 8px; top: calc(var(--tray-top) - 22px); z-index: 20; display: none; flex-direction: column; align-items: flex-end; pointer-events: none; }
.jarchip.on { display: flex; }
.jarchip .jv { padding: 2px 9px; border-radius: 12px; border: 2.5px solid var(--inkp); box-shadow: 0 3px 0 var(--inkp); background: linear-gradient(180deg, #fff7c9, #ffd65a); color: var(--inkp); font: 900 14px var(--display); }
.jarchip.rich .jv { background: linear-gradient(180deg, #fff3a0, #ffc531 60%, #ff9d00); }
.jarchip .jt { margin-top: 2px; font: 900 9.5px var(--display); color: #fff; text-shadow: 1px 1px 0 var(--inkp), -1px -1px 0 var(--inkp), 1px -1px 0 var(--inkp), -1px 1px 0 var(--inkp); white-space: nowrap; }
.jarchip.pop .jv { animation: pop 0.45s cubic-bezier(.2, 1.8, .4, 1); }
.jarchip.crash .jv { animation: crash 0.6s ease-out; background: #c9bcd3; }
@keyframes crash { 20% { transform: rotate(-8deg) scale(1.1); } 50% { transform: rotate(6deg); } 100% { transform: none; } }
/* what an act added, rising from the tag; a jar flying to the till */
.lfloat { position: absolute; z-index: 45; transform: translateX(-50%); white-space: nowrap; padding: 2px 9px; border-radius: 12px; border: 2.5px solid var(--inkp); font: 900 13px var(--display); pointer-events: none; animation: lfloat 1.6s ease-out forwards; }
.lfloat.good { background: #c9ffe4; color: #00613a; }
.lfloat.big { background: linear-gradient(180deg, #fff3a0, #ffc531); color: var(--inkp); font-size: 17px; animation-duration: 2.2s; }
.lfloat.bad { background: #ffd2dc; color: #a3002f; }
@keyframes lfloat { 0% { opacity: 0; translate: 0 6px; } 12% { opacity: 1; translate: 0 0; } 80% { opacity: 1; translate: 0 -46px; } 100% { opacity: 0; translate: 0 -56px; } }
.lfly { position: absolute; z-index: 46; transform: translate(-50%, -50%); padding: 3px 10px; border-radius: 12px; border: 2.5px solid var(--inkp); background: linear-gradient(180deg, #fff3a0, #ffc531); color: var(--inkp); font: 900 15px var(--display); pointer-events: none; animation: lfly 1.4s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes lfly { 0% { translate: 0 0; scale: 1.3; } 100% { translate: var(--dx) var(--dy); scale: 0.6; opacity: 0.2; } }
#hud.coach:not(.c-tray) .nowline, #hud.coach:not(.c-tray) .jarchip { opacity: 0; }
.coach-hint.l-release .finger, .coach-hint.l-release::before { animation: dragLoop 1.8s ease-in-out infinite; }
.coach-hint.l-hold .finger { animation: holdLoop 1.4s ease-in-out infinite; }
.coach-hint.l-hold::before { animation: holdRing 1.4s ease-out infinite; border-color: #ffe14d; }
@keyframes holdLoop { 0%, 100% { translate: 0 0; } 15%, 85% { translate: 0 7px; scale: 0.92; } }
@keyframes holdRing { 0% { transform: scale(0.3); opacity: 0; } 20% { opacity: 1; } 85% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1.2); opacity: 0; } }
/* the hand's count sits beside the DEFTER label, clear of the shield chip and the jar's tag */
#hud.core-loop .tray .owed { right: auto; left: 92px; }
.stk.banked .nm { font-size: 8.5px; }
/* the jar's tag steps aside while El Rafı's bottles are out */
.shelfrow.on ~ .jarchip { opacity: 0; }

/* ---- THE TABLE (game/mount round 4, TECH_SPEC_GAME §27): the stream seen from the front across the table ---- */
/* no bowl: no gutter lip; the towel lies on the table at the right, beside the slime's near flank */
#app.on-table .gutter { display: none !important; }
#app.on-table .towel { top: calc(var(--slime-bottom) - 96px); }
/* a stack dragged over the table pours from just above the finger: the tile rides under the finger, smaller, and tips
   over while it pours (the column is the slime's own, landing at the tile's top edge) */
#app.on-table .ghost { transform: translate(-50%, -25%) scale(0.66); transform-origin: 50% 0; transition: transform 0.14s ease-out; }
#app.on-table .ghost.pouring { transform: translate(-50%, -25%) scale(0.6) rotate(-28deg); }
#app.on-table .ghost.pouring::after { content: "dökülüyor"; position: absolute; left: 50%; top: 100%; margin-top: 6px; transform: translateX(-50%) rotate(28deg); padding: 1px 8px; border-radius: 9px; background: var(--cream); color: var(--inkp); font: 900 14px var(--display); white-space: nowrap; }
#app.on-table .ghost.waste { filter: grayscale(0.6) brightness(0.85); }
#app.on-table .ghost.waste::after { content: "masaya · israf"; position: absolute; left: 50%; top: 100%; margin-top: 6px; transform: translateX(-50%); padding: 1px 8px; border-radius: 9px; background: #ff5c5c; color: #fff; font: 900 14px var(--display); white-space: nowrap; }
#app.on-table .stk.pouring-src { opacity: 0.25 !important; }
/* the chat lies over the streamer and the room: a little more glass under each line so it reads over a bright picture */
#app.on-table .chat .l { background: rgba(20, 10, 30, 0.38); }
/* the raid card, the raid pill and toasts sat over the bowl's far wall; on the table that is the slime's back half, so
   they stand above the slime instead, over the streamer's hands (the slime stays in view while the raid is read) */
#app.on-table .rcard { top: auto; bottom: calc(100% - var(--bowl-top) + 4px); }
#app.on-table .raid { top: auto; bottom: calc(100% - var(--bowl-top) + 8px); }
#app.on-table .toast { top: auto; bottom: calc(100% - var(--bowl-top) + 2px); }
/* the table's lift lesson: the drawn finger taps twice, keeps the second press, and pulls down toward the camera */
.coach-hint.l-lift .finger, .coach-hint.l-lift::before { animation: liftLoop 2.2s ease-in-out infinite; }
@keyframes liftLoop { 0% { translate: 0 0; scale: 1; } 8% { scale: 0.86; } 14% { scale: 1; } 22% { scale: 0.86; } 40% { translate: 0 0; scale: 0.86; } 80% { translate: var(--dx) var(--dy); scale: 0.86; opacity: 1; } 92% { translate: var(--dx) var(--dy); opacity: 0; } 100% { translate: 0 0; opacity: 0; } }
/* Kaldırış on the table: the word over the slime and the room's faces rising from it (ui/stage.ts taunt) */
.taunt-word { position: absolute; left: 50%; z-index: 23; transform: translate(-50%, -100%) rotate(-6deg); pointer-events: none; font: 900 34px var(--display); color: #fff; letter-spacing: 0.02em; text-align: center; -webkit-text-stroke: 2px var(--inkp); text-shadow: 0 3px 0 var(--inkp); animation: tauntWord 1.6s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.taunt-word small { display: block; font: 900 12px var(--display); -webkit-text-stroke: 0; text-shadow: none; color: var(--inkp); background: #ffe14d; border-radius: 9px; padding: 1px 8px; margin: 2px auto 0; width: fit-content; }
@keyframes tauntWord { 0% { scale: 0.3; opacity: 0; } 15% { scale: 1.1; opacity: 1; } 25% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; translate: 0 -14px; } }
.taunt-face { position: absolute; z-index: 22; font-size: 26px; pointer-events: none; opacity: 0; animation: heart 1.9s ease-out forwards; }

/* ---- THE TABLE, second pass (TECH_SPEC_GAME §28): the streamer, their hands and the slime are what one sees ---- */
/* the chat: a translucent column at the lower left of the picture, just above the slime (as a live app's chat lies over
   its video's lower left), four or five lines, no heavy bubbles: the face above it stays clear */
#app.on-table .chat { top: auto; bottom: calc(100% - var(--slime-top) + 8px); height: 128px; width: 58%; gap: 1px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px, #000 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 44px, #000 100%); }
#app.on-table .chat .l { background: rgba(20, 10, 30, 0.2); font-size: 11.5px; line-height: 1.22; padding: 2px 7px 2px 2px; }
#app.on-table .chat .l .a { width: 16px; height: 16px; font-size: 8px; }
/* gift ribbons: over the chat column's older (faded) upper lines, under the face, narrower */
#app.on-table .gifts { top: auto; bottom: calc(100% - var(--slime-top) + 60px); height: 92px; width: 64%; z-index: 3; }
/* the slimed-finger goo smears the chat column, where the chat is, and lighter */
#app.on-table .goo { top: auto; bottom: calc(100% - var(--slime-top) + 8px); height: 128px; width: 58%; }
#app.on-table .goo svg { opacity: 0.6; }
/* one card slot, above the slime: banners, the jar card, choices and the raid card replace each other instead of stacking
   (the raid card or a choice wins; then the jar; then the newest banner) */
#app.on-table .banners { top: auto; bottom: calc(100% - var(--bowl-top) + 4px); left: 50%; transform: translateX(-50%); width: min(330px, calc(100% - 24px)); align-items: center; }
#app.on-table .banners .bn:not(:last-child) { display: none; }
#app.on-table #hud:has(.rcard.on) :is(.banners, .jar, .helper, .toast) { display: none; }
#app.on-table #hud:has(.choice) :is(.banners, .jar, .helper, .toast, .rcard) { display: none; }
#app.on-table #hud:has(.jar) :is(.banners, .helper) { display: none; }

/* ---- THE TABLE, two-step Defter (TECH_SPEC_GAME §29): a tapped tile is in the streamer's hand ---- */
#app.on-table .stk.inhand { transform: translateY(-34px) scale(1.12) rotate(-4deg) !important; z-index: 6; box-shadow: 0 0 0 3px #ffe14d, 0 10px 22px rgba(0, 0, 0, 0.35); transition: transform 0.22s cubic-bezier(.2, 1.6, .4, 1); }
#app.on-table .stk.inhand::after { content: "✋ ELİNDE"; position: absolute; left: 50%; top: -24px; transform: translateX(-50%); padding: 1px 8px; border-radius: 9px; background: #ffe14d; color: var(--inkp); border: 2px solid var(--inkp); font: 900 10.5px var(--display); white-space: nowrap; pointer-events: none; }
#app.on-table .tray.has-inhand .stk:not(.inhand) { opacity: 0.55; }
.coach-hint.inhand-step .finger, .coach-hint.inhand-step::before { animation: pressPulse 1.1s ease-in-out infinite !important; }
@keyframes pressPulse { 0%, 100% { scale: 1; } 40%, 70% { scale: 0.84; } }

/* ---------------- (look pass) the live picture: a night stream. The camera's edges fall off so the overlay floats on it,
   the room's two colours lean in from the top corners, the bottom sinks into the dark the tray sits on. */
.slot::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(70% 34% at 0% 0%, rgba(255, 45, 143, 0.20), transparent 70%),
    radial-gradient(70% 34% at 100% 0%, rgba(53, 224, 232, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(8, 3, 20, 0.42) 0%, rgba(8, 3, 20, 0) 12%, rgba(8, 3, 20, 0) 62%, rgba(8, 3, 20, 0.5) 82%, rgba(8, 3, 20, 0.82) 100%); }
.chat .l { background: rgba(14, 6, 34, 0.42); }
.chat .l.known { background: rgba(60, 20, 90, 0.55); box-shadow: 0 0 0 1px rgba(255, 120, 200, 0.35); }
.gauge { background: rgba(14, 6, 34, 0.6) !important; }
.stk:empty, .slotx { border-color: rgba(255, 255, 255, 0.4); }

/* (perf) the overlay's pills sit over a canvas that redraws every frame: a backdrop blur there is re-blurred every frame by
   the compositor, and most of these are opaque cream anyway. No blur on anything that is on screen through a stream. */
.host, .viewers, .pillx, .close, .gauge, .btn, .bn, .shelfrow { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* ---------------- SLIME YAP (screen/ui/sandbox.ts), in the chosen look (game/look/kil-theme.ts): white clay pills at
   the top, a cream shelf of five little clay bottles under the thumb. Its root carries `kil`; the rules are two
   classes deep so they win over the theme's `.kil button` reset. ---------------- */
@keyframes sbk-fade { from { opacity: 0; } }
@keyframes sbk-up { from { transform: translateY(48px); opacity: 0; } }
.sb { position: absolute; inset: 0; z-index: 20; pointer-events: none; font-weight: 700; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.sb .sb-top { position: absolute; left: 10px; right: 10px; top: calc(var(--safe-top) + 2px); height: 44px; display: flex; align-items: center; gap: 8px; pointer-events: auto; animation: sbk-fade 0.3s both; }
.sb .sb-x, .sb .sb-new { flex: none; display: flex; align-items: center; height: 44px; padding: 0 15px; border-radius: 22px; background: var(--k-card); box-shadow: var(--k-shd); font-size: 14px; font-weight: 800; white-space: nowrap; transition: transform 0.08s; }
.sb .sb-x { gap: 1px; padding: 0 15px 0 9px; }
.sb .sb-x svg { font-size: 18px; transform: scaleX(-1); }
.sb .sb-gear { flex: none; transition: transform 0.08s; }
.sb .sb-x:active, .sb .sb-new:active, .sb .sb-gear:active { transform: scale(0.94); }
/* the name, and under it the slime's own state: where it is between runny and hard (the thumb), how evenly (a wide
   pale band round the thumb = not mixed through yet); the word for a change takes the name's place for a moment */
.sb .sb-dial { position: relative; flex: 1; min-width: 0; height: 44px; border-radius: 22px; background: var(--k-card); box-shadow: var(--k-shd); }
.sb .sb-title, .sb .sb-word { position: absolute; left: 4px; right: 4px; top: 8px; text-align: center; font-size: 10.5px; font-weight: 800; line-height: 13px; letter-spacing: 0.16em; text-indent: 0.16em; white-space: nowrap; overflow: hidden; transition: opacity 0.25s, transform 0.25s; }
.sb .sb-word { font-size: 12px; letter-spacing: 0.04em; text-indent: 0; color: var(--k-red); opacity: 0; transform: translateY(4px); }
.sb .sb-word.on { opacity: 1; transform: none; }
.sb .sb-word.on + .sb-title { opacity: 0; transform: translateY(-4px); }
.sb .sb-track { position: absolute; left: 18px; right: 18px; top: 27px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #9fd0ee 0%, #a8dccf 27%, #9ccf98 50%, #f7d08e 75%, #f4a58d 100%); box-shadow: inset 0 1px 2px rgba(74, 52, 64, 0.16); }
.sb .sb-mark { position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 8px; transform: translateX(-50%); background: rgba(255, 255, 255, 0.74); box-shadow: 0 1px 3px rgba(74, 52, 64, 0.26); }
.sb .sb-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--k-ink2); box-shadow: inset 0 0 0 4.5px #fff, 0 1px 3px rgba(74, 52, 64, 0.45); }
/* what to do with the thing in the hand: a card just above the shelf, clear of the slime */
.sb .sb-hint { position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 132px); padding: 9px 14px; border-radius: 18px; background: rgba(255, 250, 244, 0.95); box-shadow: var(--k-shd); text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.35; color: var(--k-ink2); opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; }
.sb .sb-hint.on { opacity: 1; transform: none; }
@media (max-width: 380px) { .sb .sb-hint { padding: 8px 10px; font-size: 11.5px; } }
/* the shelf: a cream band, five bottles with their names; the one in the hand is lifted out of its place on peach */
.sb .sb-tools { position: absolute; left: 10px; right: 10px; bottom: calc(var(--safe-bottom) + 10px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 8px 8px 7px; border-radius: 28px; background: var(--k-card); box-shadow: 0 4px 0 var(--k-lip), 0 9px 16px rgba(110, 64, 60, 0.24); pointer-events: auto; animation: sbk-up 0.35s cubic-bezier(.2, .9, .3, 1.08) both; }
.sb .sb-tool { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 44px; height: 96px; padding-bottom: 6px; border-radius: 20px; transition: transform 0.12s; }
.sb .sb-tool:active { transform: scale(0.95); }
.sb .sb-pic { display: flex; align-items: flex-end; justify-content: center; height: 58px; }
.sb .sb-tool b { margin-top: 7px; font-size: 12.5px; font-weight: 800; line-height: 1.1; }
.sb .sb-kinds { display: flex; align-items: center; justify-content: center; gap: 4px; height: 7px; margin-top: 3px; }
.sb .sb-kinds i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); opacity: 0.5; transition: transform 0.15s, opacity 0.15s; }
.sb .sb-kinds i.on { opacity: 1; transform: scale(1.5); }
.sb .sb-tool.on { background: var(--k-peach); box-shadow: inset 0 -3px 0 #f5cbb6; }
.sb .sb-tool.on b { color: var(--k-red); }
.sb .sb-tool.on .sb-btl { transform: translateY(-10px) rotate(-9deg); }
.sb .sb-chk { position: absolute; z-index: 1; right: -1px; top: -5px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--k-cor); box-shadow: 0 0 0 2px var(--k-card); color: #fff; font-size: 12px; opacity: 0; transform: scale(0.4); transition: opacity 0.15s, transform 0.2s cubic-bezier(.3, 1.5, .5, 1); }
.sb .sb-chk svg { stroke-width: 3.4; }
.sb .sb-tool.on .sb-chk { opacity: 1; transform: none; }
/* a little clay bottle, in the concept's hand (game/concepts/kil.ts `bottle`): a cap, a pale body, the thing in it.
   Sized in units of --u, so the same drawing is the shelf's bottle and the small one the pour ring carries (ui/aim.ts,
   which is why these rules are not under `.sb`). */
.sb-btl { position: relative; display: block; isolation: isolate; --u: clamp(3.5px, 1.02vw, 4.3px); width: calc(var(--bw) * var(--u)); height: calc(var(--bh) * var(--u)); transition: transform 0.18s cubic-bezier(.3, 1.4, .5, 1); }
.sb-btl::after { content: ""; position: absolute; left: -22%; right: -22%; bottom: calc(-1.6 * var(--u)); height: calc(3.6 * var(--u)); background: radial-gradient(closest-side, rgba(130, 80, 60, 0.26), rgba(130, 80, 60, 0)); z-index: -1; }
.sb-btl .sb-cp { position: absolute; left: var(--cl); right: var(--cl); top: 0; height: calc(var(--ch) * var(--u)); border-radius: calc(1.2 * var(--u)) calc(1.2 * var(--u)) calc(0.5 * var(--u)) calc(0.5 * var(--u)); background: linear-gradient(90deg, rgba(60, 30, 40, 0.16), rgba(255, 255, 255, 0.4) 34%, rgba(255, 255, 255, 0) 60%, rgba(60, 30, 40, 0.2)), var(--c); }
.sb-btl .sb-bd { position: absolute; left: 0; right: 0; top: calc((var(--ch) - 0.4) * var(--u)); bottom: 0; overflow: hidden; border-radius: calc(var(--rt) * var(--u)) calc(var(--rt) * var(--u)) calc(var(--rb) * var(--u)) calc(var(--rb) * var(--u)); background: linear-gradient(90deg, #e6d6cc, #fff 30%, #fbf3ec 62%, #dccabd); box-shadow: inset 0 calc(-1 * var(--u)) 0 rgba(150, 100, 80, 0.12), 0 0 0 calc(0.25 * var(--u)) rgba(150, 100, 80, 0.1); }
.sb-btl .sb-fl { position: absolute; left: 0; right: 0; bottom: 0; height: var(--f); background: linear-gradient(90deg, rgba(60, 30, 40, 0.18), rgba(255, 255, 255, 0.34) 30%, rgba(255, 255, 255, 0) 60%, rgba(60, 30, 40, 0.2)), var(--c); }
.sb-btl .sb-fl::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-0.7 * var(--u)); height: calc(1.4 * var(--u)); border-radius: 50%; background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), var(--c); }
/* tutkal: a white bottle with a twist cap; its colour is a label on it, not the liquid */
.sb-b-glue .sb-cp { clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); border-radius: 0; }
.sb-b-glue .sb-fl { bottom: 22%; }
.sb-b-glue .sb-fl::before { display: none; }
/* sim: flecks in the shaker */
.sb-b-glitter .sb-fl::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, #fff 0 22%, transparent 30%), radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 18%, transparent 26%); background-size: calc(2.7 * var(--u)) calc(2.7 * var(--u)), calc(1.9 * var(--u)) calc(2.3 * var(--u)); background-position: 0 0, calc(1.1 * var(--u)) calc(0.9 * var(--u)); }

/* ---------------- SES VE TİTREŞİM (screen/ui/settings.ts): a clay sheet rising from the bottom, real toggles ---------------- */
.set-scrim { position: absolute; inset: 0; z-index: 200; background: rgba(74, 48, 58, 0.36); pointer-events: auto; animation: sbk-fade 0.2s both; }
.set-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 201; max-height: calc(100% - var(--safe-top, 12px) - 6px); overflow-y: auto; padding: 8px 18px calc(var(--safe-bottom, 0px) + 14px); border-radius: 30px 30px 0 0; background: var(--k-card); box-shadow: 0 -8px 30px rgba(96, 56, 60, 0.3); pointer-events: auto; font-weight: 700; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; animation: sbk-up 0.26s cubic-bezier(.2, .8, .3, 1) both; }
.set-sheet .set-grab { width: 42px; height: 5px; border-radius: 3px; background: var(--k-lip); margin: 0 auto 12px; }
.set-sheet h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.set-sheet .set-row { display: flex; align-items: center; gap: 12px; min-height: 60px; border-top: 1.5px solid var(--k-line); }
.set-sheet .set-row.set-sub { min-height: 50px; border-top: 0; padding-left: 40px; transition: opacity 0.2s; }
.set-sheet .set-row.set-sub > span { flex: 1 0 auto; }
.set-sheet .set-row.set-sub.off { opacity: 0.4; }
.set-sheet .set-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.set-sheet .set-row b { font-size: 16px; font-weight: 800; line-height: 1.2; }
.set-sheet .set-row.set-sub b { font-size: 14.5px; white-space: nowrap; }
.set-sheet .set-row small { font-size: 12.5px; font-weight: 700; line-height: 1.25; color: var(--k-ink2); }
.set-sheet .set-sw { position: relative; flex: none; width: 58px; height: 34px; border-radius: 17px; background: var(--k-lip); box-shadow: inset 0 2px 4px rgba(110, 64, 60, 0.22); }
.set-sheet .set-sw::before { content: ""; position: absolute; inset: -6px -4px; }
.set-sheet .set-sw i { position: absolute; left: 3px; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(96, 56, 60, 0.34); transition: transform 0.18s cubic-bezier(.2, 1.4, .4, 1); }
.set-sheet .set-sw.on { background: linear-gradient(#9ed39c, #7fbd84); box-shadow: inset 0 2px 4px rgba(40, 90, 50, 0.24); }
.set-sheet .set-sw.on i { transform: translateX(24px); }
.set-sheet .set-sw:disabled { opacity: 0.45; }
.set-sheet input[type=range] { -webkit-appearance: none; appearance: none; flex: 0 1 190px; width: 100px; min-width: 0; height: 44px; margin: 0; background: transparent; --v: calc(14px + (100% - 28px) * var(--p, 1)); }
.set-sheet input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #9ed39c, #7fbd84 var(--v), var(--k-lip) var(--v)); box-shadow: inset 0 1px 2px rgba(110, 64, 60, 0.2); }
.set-sheet input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(96, 56, 60, 0.36), 0 0 0 1px rgba(150, 96, 74, 0.08); }
.set-sheet .set-seg { flex: none; display: flex; gap: 2px; padding: 3px; border-radius: 22px; background: var(--k-line); box-shadow: inset 0 1px 2px rgba(110, 64, 60, 0.12); }
.set-sheet .set-seg button { position: relative; min-width: 46px; height: 38px; padding: 0 9px; border-radius: 19px; font-size: 13px; font-weight: 800; color: var(--k-ink2); }
.set-sheet .set-seg button::before { content: ""; position: absolute; inset: -3px 0; }
.set-sheet .set-seg button.on { background: #fff; color: var(--k-ink); box-shadow: var(--k-shd); }
.set-sheet .set-note { margin: 6px 0 10px; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--k-ink2); }
.set-sheet .set-diag { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--k-ink2); }
.set-sheet .set-diag b { color: var(--k-ink); font-weight: 800; }
.set-sheet .set-diag button { position: relative; flex: none; height: 36px; padding: 0 14px; border-radius: 18px; background: #f4e7da; box-shadow: inset 0 -3px 0 #e6d3c2; font-size: 12.5px; font-weight: 800; }
.set-sheet .set-diag button::before { content: ""; position: absolute; inset: -4px 0; }
.set-sheet .set-diag2 { margin: 0 0 12px; padding: 8px 10px; border-radius: 12px; background: var(--k-ground); font: 600 10.5px/1.45 ui-monospace, Menlo, monospace; color: var(--k-ink2); white-space: pre-line; -webkit-user-select: text; user-select: text; }
.set-sheet .set-diag2::first-line { color: var(--k-ink); font-weight: 700; }
.set-sheet .set-done { width: 100%; }

/* (the old "GLOOP UI" language lived here: dusk glass, a hair of neon, one pink (`.g-panel`, `.g-btn`, `.g-icon`).
   The screens that spoke it are drawn in the chosen look now (game/look/kil-theme.ts, "Kil"); only its custom
   properties stay, for the rules below that still read them.) */
:root {
  --g-glass: rgba(26, 12, 58, 0.72); --g-glass-2: rgba(255, 255, 255, 0.08); --g-edge: rgba(255, 255, 255, 0.16);
  --g-ink: #fff; --g-dim: rgba(255, 255, 255, 0.62); --g-faint: rgba(255, 255, 255, 0.4);
  --g-pink: #ff3d8b; --g-pink-2: #ff2d6f; --g-violet: #b44dff; --g-cyan: #35e0e8;
  --g-line: linear-gradient(90deg, #ff2d8f, #b44dff 50%, #35e0e8);
  --g-fill: linear-gradient(165deg, #ff6aae 0%, #ff2d6f 58%, #d21a8a 100%);
}

/* ---------------- the front door (screen/ui/home.ts) ---------------- */
.home { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--safe-top) + 6px) 16px calc(var(--safe-bottom) + 16px); pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 4, 26, 0.72) 0%, rgba(10, 4, 26, 0.12) 30%, rgba(10, 4, 26, 0) 52%, rgba(10, 4, 26, 0.55) 78%, rgba(10, 4, 26, 0.86) 100%); animation: homeIn 0.5s ease-out both; }
@keyframes homeIn { from { opacity: 0; } }
.home > * { pointer-events: auto; }
.home-gear { align-self: flex-end; }
.home-mark { position: absolute; left: 0; right: 0; top: calc(var(--safe-top) + 58px); text-align: center; pointer-events: none; }
.home-mark h1 { margin: 0; font: 900 76px var(--display, var(--font)); letter-spacing: -0.03em; line-height: 0.9; color: #fff; text-shadow: 0 0 2px #fff, 0 0 22px rgba(255, 61, 139, 0.95), 0 0 60px rgba(180, 77, 255, 0.8); }
.home-mark p { margin: 12px 0 0; font: 800 13px var(--display, var(--font)); letter-spacing: 0.2em; text-transform: uppercase; color: var(--g-dim); }
.home-doors { padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: eveUp 0.5s 0.1s cubic-bezier(.2, 1.2, .3, 1) both; }
@keyframes eveUp { from { transform: translateY(60px); opacity: 0; } }

/* ---------------- the door to SLIME YAP (screen/ui/gate.ts): a clay card rising from the bottom; the ad is the coral
   button, premium a quiet one under it. (Three classes deep where the theme's `.kil .k-btn` is being adjusted.) ---------------- */
.gate-scrim { position: absolute; inset: 0; z-index: 210; background: rgba(74, 48, 58, 0.38); pointer-events: auto; animation: sbk-fade 0.2s both; }
.gate { position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-bottom, 0px) + 12px); z-index: 211; display: flex; flex-direction: column; gap: 12px; padding: 20px 16px 8px; border-radius: 30px; background: var(--k-card); box-shadow: 0 10px 30px rgba(96, 56, 60, 0.34); pointer-events: auto; font-weight: 700; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; animation: sbk-up 0.32s cubic-bezier(.2, .9, .3, 1.08) both; }
.gate.kil h3 { margin: 0; padding-right: 44px; font-size: 23px; font-weight: 800; line-height: 1.15; }
.gate.kil p { margin: -4px 0 4px; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--k-ink2); }
.gate.kil .gate-x { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; }
.gate.kil .gate-x i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--k-line); }
.gate.kil .gate-btn { width: 100%; min-height: 66px; justify-content: flex-start; gap: 12px; padding: 0 16px 0 12px; border-radius: 24px; text-align: left; }
.gate.kil .gate-btn:not(.pri) { background: #f6eadd; box-shadow: 0 4px 0 #e6d3c2, 0 8px 14px rgba(150, 96, 74, 0.12); }
.gate.kil .gate-btn:not(.pri):active { box-shadow: 0 1px 0 #e6d3c2, 0 3px 6px rgba(150, 96, 74, 0.12); }
.gate.kil .gate-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; font-size: 24px; background: var(--k-butter); color: var(--k-butterink); }
.gate.kil .gate-btn.pri .gate-ic { background: rgba(255, 255, 255, 0.42); color: #5a2318; }
.gate.kil .gate-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gate.kil .gate-tx b { font-family: "Avenir Next", ui-rounded, system-ui, sans-serif; font-size: clamp(15.5px, 4.5vw, 18.5px); font-weight: 800; letter-spacing: 0.03em; line-height: 1.15; }
.gate.kil .gate-tx small { margin-top: 2px; font-size: clamp(11.5px, 3.2vw, 13px); font-weight: 700; letter-spacing: 0; opacity: 1; color: var(--k-ink2); }
.gate.kil .gate-btn.pri .gate-tx small { color: #56261b; }
.gate.kil .gate-link { align-self: center; min-height: 44px; padding: 0 16px; font-size: 13px; font-weight: 800; color: var(--k-ink2); text-decoration: underline; text-underline-offset: 3px; }
.gate.kil .gate-link:disabled { opacity: 0.5; }
.gate.kil .gate-note { min-height: 18px; margin: -8px 0 8px; text-align: center; font-size: 12.5px; font-weight: 800; color: var(--k-ink2); opacity: 0; transition: opacity 0.2s; }
.gate.kil .gate-note.on { opacity: 1; }
.gate.kil .gate-note.bad { color: var(--k-red); }

/* (2026-11-18, the chosen look) a table in the clay day is shown as the engine draws it: the night stream's vignette
   (.slot::after above: neon corners, a bottom sinking into the dark) belongs to the night look only */
#app.kil-day .slot::after { display: none; }

/* ---------------- YÜZEY (screen/ui/yuzey.ts): the surface SLIME YAP is played on. A pill that always says which, a clay
   sheet of surfaces under the thumb, and the clay curtain a change of surface is made behind (another surface is
   another page). The curtain is painted by index.html before the game's code and its look arrive, so its colours are
   written out here (game/look/kil-theme.ts KIL). ---------------- */
.yz-pic { display: block; flex: none; width: 48px; height: 30px; color: #cfe3c4; --yz-s: #f58fb4; }
/* (under Çık, on the room's window: the streamer leans a little to that side's far edge, and on a 360 px phone the same
   pill under Yeni slime reached the other ear) */
.sb .yz-pill { position: absolute; left: 10px; top: calc(var(--safe-top) + 52px); display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 8px 0 14px; border-radius: 22px; background: var(--k-card); box-shadow: var(--k-shd); text-align: left; pointer-events: auto; animation: sbk-fade 0.3s both; transition: transform 0.08s; }
.sb .yz-pill:active { transform: scale(0.95); }
.sb .yz-pill small { display: block; font-size: 10px; font-weight: 800; line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--k-ink2); }
.sb .yz-pill b { display: block; font-size: 14px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.sb .yz-pill .yz-chev { display: block; font-size: 13px; color: var(--k-ink2); transform: rotate(90deg); }
@media (max-width: 380px) { .sb .yz-pill { gap: 3px; padding: 0 6px 0 12px; } .sb .yz-pill b { font-size: 13px; } .sb .yz-pill .yz-chev { font-size: 12px; } }
.yz-scrim { position: absolute; inset: 0; z-index: 200; background: rgba(74, 48, 58, 0.36); pointer-events: auto; animation: sbk-fade 0.2s both; }
.yz-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 201; max-height: calc(100% - var(--safe-top, 12px) - 6px); overflow-y: auto; padding: 8px 18px calc(var(--safe-bottom, 0px) + 14px); border-radius: 30px 30px 0 0; background: var(--k-card); box-shadow: 0 -8px 30px rgba(96, 56, 60, 0.3); pointer-events: auto; font-weight: 700; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; animation: sbk-up 0.26s cubic-bezier(.2, .8, .3, 1) both; }
.yz-sheet .yz-grab { width: 42px; height: 5px; border-radius: 3px; background: var(--k-lip); margin: 0 auto 12px; }
.yz-sheet h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.yz-sheet .yz-lead, .yz-sheet .yz-note { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--k-ink2); }
.yz-sheet .yz-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.yz-sheet .yz-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 8px 14px 8px 12px; border-radius: 22px; background: var(--k-ground); box-shadow: inset 0 -3px 0 var(--k-line); text-align: left; transition: transform 0.08s; }
.yz-sheet .yz-row:active { transform: scale(0.98); }
.yz-sheet .yz-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.yz-sheet .yz-row b { font-size: 16px; font-weight: 800; line-height: 1.2; }
.yz-sheet .yz-row small { font-size: 12.5px; font-weight: 700; line-height: 1.25; color: var(--k-ink2); }
.yz-sheet .yz-row .yz-pic { width: 58px; height: 36px; }
.yz-sheet .yz-row .yz-chk { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--k-lip); color: transparent; font-size: 16px; }
.yz-sheet .yz-row .yz-chk svg { stroke-width: 3.2; }
.yz-sheet .yz-row.on { background: var(--k-peach); box-shadow: inset 0 -3px 0 #f5cbb6; }
.yz-sheet .yz-row.on b { color: var(--k-red); }
.yz-sheet .yz-row.on .yz-chk { background: var(--k-cor); color: #fff; }
.yz-sheet .yz-done { width: 100%; }
@keyframes yz-in { from { opacity: 0; } }
@keyframes yz-give { to { opacity: 0; visibility: hidden; } }
@keyframes yz-dot { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.35; } 40% { transform: none; opacity: 1; } }
/* (it gives way by itself after 6 s even if nothing lifts it: the game is never left behind a curtain) */
.yz-curtain { position: absolute; inset: 0; z-index: 1000; display: grid; place-items: center; background: #fff4e6; color: #4a3440; font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Nunito", system-ui, sans-serif; pointer-events: auto; transition: opacity 0.36s; animation: yz-give 0.4s 6s forwards; }
.yz-curtain.yz-in { animation: yz-in 0.22s both, yz-give 0.4s 6s forwards; }
.yz-curtain.yz-up { opacity: 0; pointer-events: none; }
.yz-curtain .yz-cbox { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.yz-curtain .yz-pic { width: 96px; height: 60px; margin-bottom: 10px; }
.yz-curtain b { font-size: 24px; font-weight: 800; line-height: 1.15; }
.yz-curtain small { font-size: 14px; font-weight: 700; color: #765d67; }
.yz-curtain .yz-dots { display: flex; gap: 7px; margin-top: 14px; }
.yz-curtain .yz-dots i { width: 9px; height: 9px; border-radius: 50%; background: #f47f65; animation: yz-dot 1s infinite both; }
.yz-curtain .yz-dots i:nth-child(2) { animation-delay: 0.15s; }
.yz-curtain .yz-dots i:nth-child(3) { animation-delay: 0.3s; }

