/* K-pop Manager. Base: Start Me Up's stylesheet (mobile first, bottom bar + sheets; desktop ≥ 900px at the bottom), game parts at the end. */
@font-face { font-family: "Luckiest Guy"; src: url(fonts/LuckiestGuy.ttf) format("truetype"); font-display: swap; }
:root {
  --bg: #170c26; --panel: #22143a; --card: #2e1c4c; --card-hi: #3a2560; --line: #4a3278;
  --text: #f3f0ff; --muted: #bdb3e3; --accent: #d63aa8; --accent-2: #f062c0; --accent-d: #8e1f72;
  --gold: #ffd23f; --neg: #ff8a94; --pos: #63e6a0; --pink: #ff5fa2;
  --display: "Luckiest Guy", "Arial Black", Impact, system-ui, sans-serif;
  --tabbar: 64px; --safe-b: env(safe-area-inset-bottom, 0px); --side: 360px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: var(--bg); color: var(--text); font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.neg { color: var(--neg); } .pos { color: var(--pos); }
#app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
#app.busy .play-btn { opacity: .5; pointer-events: none; }

/* ---------- top bar */
#hud {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: calc(6px + env(safe-area-inset-top, 0px)) 10px 6px;
  background: linear-gradient(180deg, #221a44, #17112f); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px #0006; position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.brand .logo { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 2px 3px #0008); }
.brand > div { min-width: 0; }
.brand b { display: block; font: 18px/1 var(--display); letter-spacing: .03em; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { order: 3; flex: 1 0 100%; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip.warn { border-color: var(--neg); color: var(--neg); }
.chip small { color: var(--muted); font-weight: 600; font-size: 11px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; font: 18px/1 var(--display); padding-top: 3px; flex: none; }
.play-top { display: none; }

/* ---------- office */
#main { flex: 1; position: relative; min-height: 0; overflow: hidden; }
#game { position: absolute; inset: 0; }
#game canvas { display: block; touch-action: none; }
#remote { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); margin: 0; padding: 4px 10px; border-radius: 999px; z-index: 1;
  font-size: 12px; color: var(--text); background: #120d24cc; pointer-events: none; white-space: nowrap; }
#dialog {
  position: absolute; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 12px); transform: translateX(-50%); z-index: 4;
  width: min(640px, calc(100% - 24px)); padding: 14px 18px 24px; color: var(--text); background: #1c1536f2;
  border: 2px solid var(--accent-2); border-radius: 16px; box-shadow: 0 10px 30px #000a; cursor: pointer; user-select: none;
}
#dialog[hidden] { display: none; }
#dialog .name { font: 15px/1.2 var(--display); letter-spacing: .04em; color: var(--gold); margin-bottom: 6px; }
#dialog .text { font-size: 16px; line-height: 1.5; min-height: 3em; }
#dialog::after { content: 'toucher / espace'; position: absolute; right: 14px; bottom: 6px; font-size: 11px; color: var(--muted); }

/* ---------- bottom tab bar */
#tabs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: calc(var(--tabbar) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: #15102cf2; border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
#tabs [data-tab] { border: 0; background: none; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; font-weight: 700; color: var(--muted); min-width: 0; }
#tabs [data-tab] span { font-size: 20px; transition: transform .2s; }
#tabs [data-tab] i { font-style: normal; }
#tabs [data-tab].on { color: var(--text); }
#tabs [data-tab].on span { transform: translateY(-2px) scale(1.15); }
.play-tab { justify-self: center; width: 66px; height: 66px; margin-top: -26px; border-radius: 50%; border: 4px solid #15102c; color: #fff; font-size: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent) 60%, var(--accent-d)); box-shadow: 0 6px 18px #d63aa888; }
.play-tab::after { content: 'Semaine'; font: 10px/1 var(--display); letter-spacing: .05em; margin-top: 2px; }
.play-tab:active { transform: scale(.94); }

/* ---------- panel: bottom sheet on mobile */
#panel {
  position: absolute; left: 0; right: 0; bottom: calc(var(--tabbar) + var(--safe-b)); z-index: 2; max-height: 64%; overflow: auto; overscroll-behavior: contain;
  background: var(--panel); border-radius: 20px 20px 0 0; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px #0008;
  transform: translateY(calc(100% + var(--tabbar) + 20px)); transition: transform .28s cubic-bezier(.2, .9, .3, 1.1); visibility: hidden;
}
#panel::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: #4a3d85; margin: 8px auto 2px; }
.sheet-open #panel { transform: none; visibility: visible; }
.sec { padding: 8px 14px 12px; }
.sec h3 { margin: 6px 0 8px; font: 17px/1 var(--display); letter-spacing: .03em; color: var(--gold); }
.hint { color: var(--muted); font-size: 12px; margin: 6px 0; }
.focus { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; margin: 10px 0; }
.focus label { font-weight: 700; }
.focus output { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold); }
.focus input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent-2); height: 28px; }
.focus small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.list li img { width: 34px; height: 40px; object-fit: contain; flex: none; }
.list li div { flex: 1; min-width: 0; }
.list li b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list li small { color: var(--muted); font-size: 12px; }
.list li button { padding: 6px 10px; font-size: 12px; flex: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.card { padding: 8px; text-align: left; display: flex; flex-direction: column; gap: 2px; font-weight: 700; min-height: 0; }
.card img { width: 100%; height: 64px; object-fit: contain; border-radius: 8px; background: radial-gradient(circle at 50% 70%, #3a2f6a, #221a44 70%); }
.card small { color: var(--muted); font-weight: 400; font-size: 11px; line-height: 1.3; }
.card .why { color: var(--neg); }
.card:not(:disabled):hover { background: var(--card-hi); }
.big-btn { display: block; width: 100%; min-height: 48px; margin: 10px 0 4px; border: 0; border-radius: 14px; color: #fff; font: 18px/1 var(--display); letter-spacing: .04em; padding-top: 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 4px 0 var(--accent-d); }
.big-btn.gold { color: #1b1430; background: linear-gradient(180deg, #ffe27a, var(--gold)); box-shadow: 0 4px 0 #b8901c; }
dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 0; }
dt { color: var(--muted); } dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rounds { margin: 6px 0; padding-left: 18px; } .rounds li { margin: 3px 0; }

#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 16px); z-index: 10; max-width: calc(100% - 32px); transform: translate(-50%, 10px);
  background: #0b0818ee; border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; font-weight: 600; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- modal: bottom sheet on mobile (Clemtown's) */
#modal {
  width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; padding: 20px 16px calc(16px + var(--safe-b)); overflow: auto;
  background: linear-gradient(180deg, #2a2052, var(--panel)); color: var(--text); border: 1px solid var(--line); border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px #000a;
}
#modal[open] { animation: sheetUp .35s cubic-bezier(.2, 1.2, .4, 1); }
#modal::backdrop, #intro::backdrop { background: #07051099; backdrop-filter: blur(3px); }
.m-avatar { display: flex; justify-content: center; margin: -4px 0 4px; }
.m-avatar img { height: 110px; animation: hop .7s cubic-bezier(.3, 1.6, .5, 1) both, nod 2.4s 1s ease-in-out infinite; }
.m-body { text-align: center; }
.m-body h2 { margin: 0 0 8px; font: 32px/1.05 var(--display); letter-spacing: .02em; color: #fff; text-shadow: 0 3px 0 var(--accent-d); overflow-wrap: anywhere; }
.m-body p { margin: 6px 0; }
.m-body .story { font-size: 15px; }
.m-actions { display: flex; gap: 10px; margin-top: 16px; }
.m-actions.stack { flex-direction: column; }
.m-actions button { flex: 1; min-height: 50px; font: 17px/1.1 var(--display); letter-spacing: .03em; padding: 6px 10px 3px; animation: rise .4s .4s both; }
.m-actions button small { display: block; font: 12px/1.3 system-ui, sans-serif; letter-spacing: 0; color: var(--muted); margin-top: 3px; }
.m-actions .primary { border: 0; color: #fff; background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 3px 0 var(--accent-d); }
.m-actions .primary small { color: #e6e0ff; }
.m-actions button:active { transform: translateY(2px); box-shadow: none; }
.deltas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 2px; }
.deltas span { padding: 3px 9px; border-radius: 999px; background: var(--card); font-weight: 700; font-size: 13px; }
.field { display: block; margin: 12px 0 2px; text-align: left; }
.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 6px 4px; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select { width: 100%; padding: 11px 12px 8px; border-radius: 14px; border: 2px solid var(--line); background: #120d24; color: var(--gold);
  font: 20px/1.1 var(--display); letter-spacing: .02em; text-align: center; outline: none; }
.field select { font: 15px/1.2 system-ui, sans-serif; color: var(--text); text-align: left; }
.field input:focus, .field select:focus { border-color: var(--gold); }
.row { display: flex; gap: 6px; } .row > * { flex: 1; min-width: 0; }
.row button.dice { flex: none; width: 48px; font-size: 20px; }
.offers { display: grid; gap: 8px; margin-top: 10px; text-align: left; }
.offer { padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); width: 100%; text-align: left; }
.offer:hover { border-color: var(--accent-2); }
.offer b { font: 20px/1 var(--display); color: var(--gold); letter-spacing: .02em; }
.offer small { display: block; color: var(--muted); margin-top: 3px; }
.offer .shark { color: var(--neg); }

.word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; animation: chPop .55s cubic-bezier(.3, 1.7, .5, 1) both; animation-delay: calc(var(--d, 0ms) + var(--i) * 45ms); }
table.money { width: 100%; border-collapse: collapse; margin-top: 8px; text-align: left; font-variant-numeric: tabular-nums; }
table.money td, table.money th { padding: 7px 6px; border-bottom: 1px solid var(--line); }
table.money td:last-child, table.money th:last-child { text-align: right; }
table.money tr { animation: rowIn .4s both; animation-delay: calc(300ms + var(--r) * 110ms); }
table.money tr.net th { font: 22px/1 var(--display); padding-top: 12px; }
table.money .neg { color: var(--neg); } table.money .pos { color: var(--pos); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.kpis div { padding: 8px 4px; border-radius: 12px; background: var(--card); }
.kpis b { display: block; font: 20px/1 var(--display); color: #fff; letter-spacing: .02em; overflow-wrap: anywhere; }
.kpis small { color: var(--muted); font-size: 11px; }
.banner { margin-top: 12px; padding: 10px; border-radius: 14px; background: linear-gradient(135deg, #3d3214, #2a2412); border: 1px solid #8a7426; text-align: center; }
.banner h3 { margin: 0 0 4px; font: 22px/1 var(--display); color: var(--gold); }
.banner.bad { background: linear-gradient(135deg, #4a1d2a, #2a1420); border-color: #8a3445; }
.banner.bad h3 { color: var(--neg); }
.banner.info { background: linear-gradient(135deg, #22306a, #1a2050); border-color: #4a5cc0; }
.banner.info h3 { color: #b9c6ff; }
.payout { font: 44px/1 var(--display); color: var(--gold); margin: 6px 0; text-shadow: 0 3px 0 #0008; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 13px; border-radius: 2px; background: var(--c); animation: fall 2.4s ease-in both; }

/* ---------- first-launch sequence (intro.js, the camp's) */
#intro { width: min(440px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; display: none; flex-direction: column; overflow: hidden; color: var(--text);
  background: linear-gradient(180deg, #2a2052, var(--panel)); border: 3px solid #fff; border-radius: 22px; box-shadow: 0 6px 0 var(--accent), 0 24px 60px #000c; }
#intro[open] { display: flex; }
.intro-head { position: relative; display: flex; align-items: flex-end; justify-content: center; flex: none; height: 74px;
  background: repeating-linear-gradient(135deg, #d63aa8 0 22px, #e04db4 22px 44px); border-bottom: 4px solid #fff; }
.intro-portrait { position: relative; width: 88px; height: 88px; margin-bottom: -42px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #fff, #e2dcff); border: 4px solid var(--gold); box-shadow: 0 4px 0 #0006; }
.intro-portrait img { display: block; width: 100%; height: auto; margin-top: 2px; }
.intro-skip { position: absolute; top: 8px; right: 8px; padding: 6px 12px; border-radius: 999px; font: 600 13px/1 system-ui, sans-serif; color: #fff; background: #120d2499; border: 1px solid #ffffff66; }
.intro-who { margin: 48px 0 0; text-align: center; font: 700 12px/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.intro-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 22px 4px; text-align: center; }
.intro-body h2 { margin: 4px 0 10px; font: 27px/1.05 var(--display); letter-spacing: .02em; color: #fff; text-shadow: 0 3px 0 var(--accent-d); overflow-wrap: anywhere; }
.intro-body p { margin: 8px 0; } .intro-body b { color: #fff; }
.intro-list, .intro-keys { list-style: none; margin: 10px 0; padding: 0; text-align: left; }
.intro-list li { padding: 6px 10px; margin: 4px 0; border-radius: 10px; background: #ffffff10; border-left: 4px solid var(--accent-2); }
.intro-keys li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #ffffff26; }
kbd { flex: none; min-width: 74px; padding: 4px 8px 2px; border-radius: 8px; text-align: center; font: 14px/1.2 var(--display); letter-spacing: .03em; color: var(--bg); background: #fff; box-shadow: 0 3px 0 #9a90c5; }
.intro-foot { flex: none; padding: 10px 18px 16px; }
.intro-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.intro-dots span { width: 10px; height: 10px; border-radius: 50%; background: #ffffff40; transition: width .2s, background .2s; }
.intro-dots .on { width: 26px; border-radius: 6px; background: var(--gold); }
.intro-actions { display: flex; gap: 10px; }
.intro-actions button { flex: 1; min-height: 48px; padding: 4px 12px 0; border-radius: 14px; font: 18px/1 var(--display); letter-spacing: .04em; background: #ffffff14; border: 2px solid #ffffff40; }
.intro-actions button[hidden] { display: none; }
.intro-actions .primary { flex: 1.4; border: 0; color: #fff; background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 4px 0 var(--accent-d); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes chPop { from { opacity: 0; transform: translateY(-34px) scale(.3) rotate(-25deg); } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes hop { from { transform: translateY(30px) scale(.4); opacity: 0; } }
@keyframes nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg) translateY(-1px); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-14px); } }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .3; } }
@keyframes popIn { from { transform: scale(.85); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 380px) { .m-body h2 { font-size: 26px; } .kpis b { font-size: 16px; } .intro-body { padding: 4px 14px; } .intro-body h2 { font-size: 23px; } }
@media (max-height: 500px) { .intro-head { height: 0; border: 0; } .intro-portrait, .intro-who { display: none; } .intro-body { padding-top: 12px; } .m-avatar img { height: 70px; } }

/* ---------- desktop */
@media (min-width: 900px) {
  #hud { flex-wrap: nowrap; padding: 8px 14px; gap: 10px; }
  .brand { flex: none; max-width: 240px; }
  .chips { order: 0; flex: 1 1 auto; }
  .play-top { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 12px; color: #fff; white-space: nowrap;
    font: 17px/1 var(--display); letter-spacing: .03em; background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 3px 0 var(--accent-d), 0 6px 14px #d63aa855; }
  .play-top:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-d); }
  #game { right: var(--side); }
  #remote { left: calc(50% - var(--side) / 2); }
  #dialog { left: calc(50% - var(--side) / 2); bottom: 20px; width: min(640px, calc(100% - var(--side) - 32px)); }
  #tabs { left: auto; right: 0; top: 0; bottom: auto; width: var(--side); height: auto; padding: 10px; display: flex; gap: 4px; background: var(--panel); border-top: 0; border-left: 1px solid var(--line); backdrop-filter: none; }
  #tabs [data-tab] { flex: 1; flex-direction: row; gap: 5px; padding: 8px 0; border-radius: 8px; font-size: 13px; }
  #tabs [data-tab] span { font-size: 15px; }
  #tabs [data-tab].on { background: var(--card-hi); box-shadow: inset 0 -2px 0 var(--accent-2); }
  #tabs [data-tab].on span { transform: none; }
  .play-tab { display: none; }
  #panel { left: auto; right: 0; top: 58px; bottom: 0; width: var(--side); max-height: none; transform: none; transition: none; visibility: visible; border-radius: 0; border-top: 0; border-left: 1px solid var(--line); box-shadow: none; }
  #panel::before { display: none; }
  #toast { bottom: 24px; left: calc(50% - var(--side) / 2); }
  #modal { width: 460px; margin: auto; border-radius: 22px; padding-bottom: 20px; }
  #modal[open] { animation: popIn .3s cubic-bezier(.2, 1.4, .4, 1); }
}

/* ================= K-pop Manager parts ================= */
.chip img { width: 18px; height: 18px; object-fit: contain; }
#stage { position: absolute; inset: 0; overflow: hidden; background: #2a1840; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #170c2600 40%, #170c26cc 100%); pointer-events: none; }
#now { position: absolute; z-index: 1; top: 10px; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 20px)); padding: 8px 14px; border-radius: 14px;
  background: #170c26d9; border: 1px solid var(--line); box-shadow: 0 6px 18px #0007; text-align: center; backdrop-filter: blur(4px); }
#now b { display: block; font: 17px/1.15 var(--display); letter-spacing: .03em; color: var(--gold); padding-top: 2px; }
#now small { display: block; color: var(--muted); font-size: 12px; }
#now .trend { color: var(--text); margin-top: 2px; }
#crew { position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(var(--tabbar) + var(--safe-b) + 10px); display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 0 10px; }
.mate { position: relative; width: 84px; padding: 6px 4px 6px; border-radius: 16px; background: #22143ae6; border: 2px solid #ffffff30; text-align: center; animation: rise .4s both; }
.mate:hover { border-color: var(--accent-2); }
.mate .face { display: block; width: 62px; height: 62px; margin: 0 auto 2px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 3px 0 #0006; }
.mate .doing { position: absolute; top: 46px; right: 4px; width: 28px; height: 28px; filter: drop-shadow(0 2px 2px #0008); }
.mate b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mate.out { opacity: .65; } .mate.out .face { filter: grayscale(.6); }
.bar { display: inline-block; width: 100%; height: 6px; border-radius: 3px; background: #ffffff1f; overflow: hidden; vertical-align: middle; }
.bar i { display: block; height: 100%; border-radius: 3px; }
.bar.fat i { background: linear-gradient(90deg, #63e6a0, #ffd23f 60%, #ff6b7a); background-size: 100px 100%; background: #ff8a94; }
.bar.mor i { background: #63e6a0; } .bar.st i { background: linear-gradient(90deg, var(--accent), var(--gold)); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; } .dot.fat { background: #ff8a94; }
.list.plan li { align-items: flex-start; } .list.plan small .bar { width: 60px; margin: 0 6px 0 2px; }
.list li img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.list li .em, .card .em { font-size: 22px; flex: none; }
.acts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 6px; }
.list .acts button { padding: 4px 0 3px; min-width: 0; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10px; }
.acts button img { width: 26px; height: 26px; } .acts button i { font-style: normal; color: var(--muted); }
.acts button.on, .card.on, .budgets button.on { border-color: var(--gold); background: var(--card-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.acts button.on i { color: var(--text); }
.ghost-btn { width: 100%; padding: 9px; margin: 4px 0 6px; border-radius: 12px; font-weight: 700; }
.ghost-btn.danger { color: var(--neg); border-color: #8a3445; }
.member { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.member > img { width: 64px; height: 64px; border-radius: 50%; flex: none; border: 2px solid #fff; }
.member > div { flex: 1; min-width: 0; } .member .hint { margin: 2px 0 4px; }
.stat { display: grid; grid-template-columns: 20px 62px 1fr 28px; align-items: center; gap: 6px; font-size: 12px; margin: 3px 0; }
.stat img { width: 20px; height: 20px; } .stat output { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.single { padding: 10px 12px; margin: 6px 0 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.single b { font: 16px/1.2 var(--display); letter-spacing: .02em; color: var(--gold); } .single small { display: block; color: var(--muted); margin-top: 2px; }
.single.prep { border-color: var(--accent-2); }
h3.sub { font-size: 15px !important; margin-top: 14px !important; }
.budgets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.budgets button { padding: 8px; text-align: left; } .budgets small { display: block; color: var(--muted); font-size: 11px; } .budgets .why { color: var(--neg); }
.budgets button:not(:disabled):hover { border-color: var(--gold); }
.goals { list-style: none; padding: 0; margin: 0; } .goals li { padding: 5px 0; border-bottom: 1px dashed var(--line); } .goals li small { color: var(--muted); }
.goals li:not(.done) { color: var(--muted); }
.m-scene { margin: -20px -16px 8px; height: 140px; overflow: hidden; border-radius: 24px 24px 0 0; }
.m-scene img { width: 100%; height: 100%; object-fit: cover; }
.m-avatar img { width: 110px; height: 110px; border-radius: 50%; border: 4px solid var(--gold); box-shadow: 0 4px 0 #0006; }
.report { list-style: none; padding: 0; margin: 6px 0; text-align: left; }
.report li { padding: 7px 10px; margin: 5px 0; border-radius: 10px; background: #ffffff0d; animation: rowIn .4s both; }
.pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 4px; }
.cand { padding: 6px 2px; border-radius: 14px; border: 2px solid var(--line); }
.cand img { width: 100%; max-width: 76px; aspect-ratio: 1; border-radius: 50%; display: block; margin: 0 auto 3px; }
.cand b { display: block; font: 15px/1.1 var(--display); padding-top: 2px; } .cand small { display: block; font-size: 10px; color: var(--muted); line-height: 1.2; }
.cand[aria-pressed="true"] { border-color: var(--gold); background: var(--card-hi); box-shadow: 0 0 0 2px var(--gold); }
.cand[aria-pressed="true"] img { outline: 3px solid var(--gold); }
#film { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; align-items: center; justify-content: center; }
#film[hidden] { display: none; }
#film video { width: 100%; height: 100%; object-fit: cover; }
.film-title { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; pointer-events: none; animation: rise 1s .8s both; }
.film-title b { display: block; font: clamp(40px, 9vw, 92px)/1 var(--display); color: #fff; letter-spacing: .03em; text-shadow: 0 5px 0 #7a22a0, 0 10px 30px #000a; }
.film-title small { display: inline-block; margin-top: 10px; padding: 6px 16px 4px; border-radius: 999px; background: var(--gold); color: #28103c; font-weight: 800; font-size: clamp(14px, 2.4vw, 22px); }
#film-skip { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; padding: 10px 18px; border-radius: 999px; font-weight: 800; color: #fff; background: #0009; border: 2px solid #fff8; }
@media (max-width: 380px) { .mate { width: 74px; } .mate .face { width: 54px; height: 54px; } .mate .doing { top: 40px; } }
@media (min-width: 900px) {
  #stage { right: var(--side); }
  #crew { bottom: 22px; gap: 12px; }
  .mate { width: 104px; } .mate .face { width: 80px; height: 80px; } .mate .doing { top: 60px; width: 32px; height: 32px; } .mate b { font-size: 13px; }
  #now { top: 16px; }
  .m-scene { margin: -20px -16px 8px; }
}
