/* 就活スロット */
:root {
  --bg: #050a18;
  --ink: #e8eefb;
  --mute: #8f9bb8;
  --line: rgba(158, 186, 228, .22);
  --line2: rgba(226, 192, 110, .55);
  --gold: #ffc93c;
  --gold-t: #f2d28a;
  --goldgrad: linear-gradient(180deg, #fffbe0 0%, #ffe680 24%, #ffb800 48%, #fff6c0 52%, #ff9d00 76%, #ffe9a8 100%);
  --rainbow: linear-gradient(90deg, #ff3d6e, #ff9a3d, #ffe14a, #3dff9a, #3dc8ff, #9a6bff, #ff3d6e);
  --t0: #59647d;
  --t1: #e9eef8;
  --t2: #39aaff;
  --t3: #2fdc80;
  --t4: #ff3b52;
  --neg: #7d6bff;
  --blue: #3ea6ff;
  --red1: #ff4a4a;
  --red2: #c40d1c;
  --ui: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --lux: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --min: "Shippori Mincho", "Noto Serif JP", serif;
  --num: "Rajdhani", "Noto Sans JP", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100dvh; color: var(--ink); font-family: var(--ui); font-size: 14px; line-height: 1.7; letter-spacing: .02em; font-feature-settings: "palt" 1; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }

/* 背景: 夜のオフィス街 */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg img { position: absolute; left: 50%; top: 0; width: max(100vw, 780px); height: 100%; object-fit: cover; transform: translateX(-50%); opacity: .9; }
.bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 60% at 50% 0%, rgba(5, 10, 24, 0) 0%, rgba(5, 10, 24, .55) 70%), linear-gradient(180deg, rgba(5, 10, 24, .2), rgba(5, 10, 24, .75)); }
body.dim .bg::after { background: rgba(3, 6, 15, .72); }

.phone { position: relative; max-width: 440px; margin: 0 auto; min-height: 100dvh; padding: max(12px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom)); container-type: inline-size; }
.screen { animation: enter .45s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }

/* ボタン */
.btn-red { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 14px; width: 100%; min-height: 62px; padding: 14px 18px 12px; border-radius: 13px; color: #fff; font-family: var(--ui); background: linear-gradient(180deg, var(--red1) 0%, #e3202c 46%, var(--red2) 100%); box-shadow: inset 0 1.5px 0 rgba(255, 180, 180, .75), inset 0 -3px 0 rgba(90, 0, 8, .35), 0 5px 0 #6d0a10, 0 10px 18px rgba(0, 0, 0, .5); transition: transform .1s, box-shadow .1s, filter .2s; text-decoration: none; }
.btn-red b { font-size: 23px; font-weight: 900; letter-spacing: .04em; line-height: 1.2; text-shadow: 0 1px 2px rgba(90, 0, 8, .5); }
.btn-red small { font-size: 13.5px; font-weight: 700; }
.btn-red:active { transform: translateY(4px); box-shadow: inset 0 1.5px 0 rgba(255, 150, 150, .6), 0 1px 0 #6d0a10, 0 4px 8px rgba(0, 0, 0, .4); }
.btn-red:disabled { filter: grayscale(.9) brightness(.55); cursor: not-allowed; }
.btn-red.sm { min-height: 52px; padding: 10px 14px 8px; }
.btn-red.sm b { font-size: 18px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 10px; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: #fff; text-decoration: none; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(40, 56, 92, .85), rgba(14, 22, 44, .9)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.98); filter: brightness(1.15); }
.tlink { font-size: 12.5px; font-weight: 700; color: var(--mute); text-decoration: underline; text-underline-offset: .35em; text-decoration-color: rgba(143, 155, 184, .5); }
.tlink b { font-family: var(--num); }

/* タイトル */
.tt { display: flex; flex-direction: column; min-height: calc(100dvh - 32px); }
.tt-top { text-align: center; padding-top: 4vh; }
.tt-lead { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--gold-t); letter-spacing: .16em; padding: 4px 14px 3px; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.tt-lead b { font-family: var(--num); font-size: 15px; letter-spacing: .04em; margin: 0 1px; }
.tt-logo { margin: 2.4vh 0 1.8vh; font-weight: 400; }
.tt-logo .w { position: relative; display: block; width: fit-content; margin: 0 auto; font-family: var(--lux); font-weight: 900; font-size: min(19cqw, 88px); line-height: 1.12; letter-spacing: .03em; }
.tt-logo .w:first-child { font-size: min(14cqw, 62px); letter-spacing: .3em; padding-left: .3em; }
.tt-logo .w-s { position: absolute; inset: 0; color: #3a0d00; text-shadow: 0 1px 0 #5a1800, 0 2px 0 #4a1300, 0 3px 0 #3a0d00, 0 4px 0 #2a0800, 0 5px 0 #200600, 0 6px 12px rgba(0, 0, 0, .8), 0 0 40px rgba(255, 160, 0, .45); }
.tt-logo .w-f { position: relative; display: block; background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tt-sub { font-size: 13px; font-weight: 700; color: #d6deef; letter-spacing: .03em; line-height: 1.8; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }
.tt-form { display: flex; flex-direction: column; gap: 14px; margin-top: auto; padding-top: 22px; }
.tt-field { display: flex; flex-direction: column; gap: 6px; }
.tt-label { font-size: 12px; font-weight: 700; color: #c4cee4; letter-spacing: .06em; }
.tt-field input { height: 50px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(158, 186, 228, .35); background: rgba(6, 14, 34, .78); font-size: 16px; color: #fff; }
.tt-field input::placeholder { color: #66738f; font-size: 14px; }
.tt-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(62, 166, 255, .25); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg button { min-height: 48px; border-radius: 10px; font-weight: 700; font-size: 15px; letter-spacing: .04em; color: rgba(230, 238, 255, .82); border: 1px solid rgba(158, 186, 228, .32); background: linear-gradient(180deg, rgba(26, 38, 68, .9), rgba(10, 18, 38, .92)); }
.seg button.on { color: #fff; border-color: var(--blue); background: radial-gradient(120% 150% at 50% 40%, #1663c8 0%, #0e4594 45%, #0a2a60 100%); box-shadow: 0 0 0 1px rgba(62, 166, 255, .5), 0 0 18px rgba(62, 166, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tt-note { font-size: 11.5px; color: var(--mute); text-align: center; }
.tt-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; padding: 22px 0 6px; }

/* 分かれ道の見出し */
.br-kick { text-align: center; font-size: 12px; font-weight: 700; color: var(--gold-t); letter-spacing: .2em; padding-top: 3vh; }
.br-h { text-align: center; font-family: var(--min); font-weight: 800; font-size: clamp(26px, 8cqw, 34px); line-height: 1.35; letter-spacing: .04em; margin: 4px 0 6px; text-shadow: 0 2px 10px rgba(0, 0, 0, .8), 0 0 30px rgba(255, 190, 60, .2); }
.br-sub { text-align: center; font-size: 12.5px; font-weight: 700; color: #b9c4dc; letter-spacing: .06em; margin-bottom: 18px; }
.br-sub b { font-family: var(--num); font-size: 16px; color: var(--gold); }

/* 学歴ガチャ */
.gacha-win { position: relative; flex: 1; min-height: 110px; max-height: 180px; margin: 6px 0 12px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line2); background: radial-gradient(90% 80% at 50% 50%, #0b1a3a, #02050c); box-shadow: inset 0 0 30px rgba(0, 0, 0, .9), 0 0 30px rgba(255, 190, 60, .15); }
.gacha-win::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 5, 12, .95), transparent 32%, transparent 68%, rgba(2, 5, 12, .95)); pointer-events: none; }
.gacha-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.gacha-strip span { display: grid; place-items: center; height: 120px; white-space: nowrap; font-size: clamp(26px, 9cqw, 40px) !important; font-family: var(--min); font-weight: 800; font-size: 40px; letter-spacing: .08em; }
.gacha-strip .a5 { background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 1.2s linear infinite; }
.gacha-strip .a4 { background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gacha-strip .a3 { color: var(--t3); text-shadow: 0 0 18px rgba(47, 220, 128, .7); }
.gacha-strip .a2 { color: var(--t2); text-shadow: 0 0 18px rgba(57, 170, 255, .7); }
.gacha-strip .a1 { color: #cfd6e6; }
.gacha-strip .a0 { color: #4a5674; letter-spacing: .3em; }
.rates { display: grid; gap: 4px; margin: 0; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(158, 186, 228, .2); background: rgba(6, 14, 34, .78); }
.rates dt { font-size: 11px; font-weight: 700; color: var(--mute); letter-spacing: .2em; margin-bottom: 2px; }
.rates dd { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.rates dd b { font-family: var(--num); font-size: 16px; }
.rates dd > span small { margin-left: 8px; font-size: 10.5px; font-weight: 500; color: var(--mute); }
.rates .a5 { color: #ffb8f0; }
.rates .a4 { color: var(--gold); }
.rates .a3 { color: var(--t3); }
.rates .a2 { color: var(--t2); }
.rates .a1 { color: #cfd6e6; }

/* スロット */
.slot { display: flex; flex-direction: column; height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom))); min-height: 600px; }
.hdr { display: flex; justify-content: space-between; align-items: flex-start; padding: 6px 2px 0; }
.hdr-grade { font-family: var(--lux); font-weight: 900; font-size: clamp(26px, 8.4cqw, 34px); line-height: 1.15; letter-spacing: .02em; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.hdr-sub { font-size: 12px; font-weight: 700; color: #c4cee4; letter-spacing: .06em; }
.hdr-r { display: flex; align-items: center; gap: 10px; padding-top: 8px; }
.badge { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 700; color: #fff; border: 1px solid rgba(158, 186, 228, .4); background: rgba(10, 20, 44, .8); }
.badge[data-a="5"] { border-color: transparent; background: linear-gradient(rgba(10, 20, 44, .92), rgba(10, 20, 44, .92)) padding-box, var(--rainbow) border-box; }
.badge[data-a="4"] { border-color: var(--gold); color: var(--gold-t); }
.round { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(226, 192, 110, .6); background: rgba(10, 20, 44, .8); color: var(--gold-t); }
.round svg { width: 18px; height: 18px; }
.round[aria-pressed="false"] .wave { opacity: .15; }
.prog { margin: 10px 2px 12px; }
.prog-bar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.prog-bar li { height: 5px; border-radius: 1px; background: rgba(158, 186, 228, .18); }
.prog-bar li.done { background: #2fdc80; box-shadow: 0 0 6px rgba(47, 220, 128, .6); }
.prog-bar li.now { background: #b9c4dc; }
.prog-lab { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 4px; font-size: 10px; font-weight: 700; color: #6c7894; white-space: nowrap; }
.prog-lab li { grid-column: span 2; }
.prog-lab li:first-child, .prog-lab li:last-child { grid-column: span 1; }

.cab { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 10px 10px; border-radius: 10px; border: 1px solid rgba(158, 186, 228, .45); background: linear-gradient(180deg, rgba(14, 26, 52, .88), rgba(5, 10, 24, .94)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 20px 40px rgba(0, 0, 0, .6); }
.cab-rim { position: absolute; inset: -2px; z-index: -1; border-radius: 12px; opacity: 0; overflow: hidden; filter: blur(7px); transition: opacity .4s; }
.cab-rim::before { content: ""; position: absolute; inset: 0; background: var(--rainbow); background-size: 200% 100%; animation: flow 1s linear infinite; }
.cab.rush { border-color: #fff; }
.cab.rush .cab-rim { opacity: 1; }
.cab[data-edge="4"] { animation: edge4 .45s ease-out 3; }
.cab[data-edge="5"] { animation: edge5 .45s ease-out 3; }
@keyframes edge4 { 50% { box-shadow: 0 0 0 2px var(--t4), 0 0 40px var(--t4); } }
@keyframes edge5 { 50% { box-shadow: 0 0 0 2px var(--gold), 0 0 50px var(--gold); } }
.cab-title { text-align: center; font-family: var(--min); font-weight: 800; font-size: 15px; letter-spacing: .14em; color: #e94a4a; padding: 2px 0 7px; margin-bottom: 8px; border-bottom: 1px solid rgba(226, 192, 110, .35); text-shadow: 0 0 12px rgba(255, 60, 60, .35); }
.cab-title.calm { color: var(--gold-t); text-shadow: none; }
.cab-title.rush { background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.reels { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 10px 8px; }
.reel { display: flex; flex-direction: column; gap: 5px; min-width: 0; min-height: 0; }
.rhead { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; padding: 0 2px; }
.rname { font-size: 12px; font-weight: 700; color: #d6deef; white-space: nowrap; }
.rgv { display: flex; align-items: baseline; gap: 4px; }
.grade { font-family: var(--num); font-weight: 700; font-size: clamp(20px, 6.2cqw, 26px); line-height: .9; color: #c9d3e8; }
.grade.pop { animation: gradePop .6s cubic-bezier(.2, 1.8, .3, 1); }
.grade[data-g="S"] { background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grade[data-g="A"] { color: #ff7a8a; }
.grade[data-g="B"] { color: #ffb15c; }
.grade[data-g="C"] { color: #ffe26a; }
.grade[data-g="D"] { color: #8be07d; }
.grade[data-g="E"] { color: #6fc6ff; }
.val { font-family: var(--num); font-weight: 600; font-size: 16px; line-height: 1; color: #fff; }
@keyframes gradePop { 40% { transform: scale(1.6); } }
.win { position: relative; flex: 1; min-height: 0; border-radius: 6px; overflow: hidden; background: radial-gradient(90% 70% at 50% 50%, #0e1f44 0%, #050b1c 60%, #02050c 100%); border: 1px solid rgba(158, 186, 228, .2); }
.win::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(2, 5, 12, .9), transparent 30%, transparent 70%, rgba(2, 5, 12, .9)); }
.win::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 6px; pointer-events: none; opacity: 0; }
.win[data-t="2"]::after { opacity: 1; box-shadow: inset 0 0 0 1px var(--t2), inset 0 0 24px rgba(57, 170, 255, .38); }
.win[data-t="3"]::after { opacity: 1; box-shadow: inset 0 0 0 1px var(--t3), inset 0 0 24px rgba(47, 220, 128, .42); }
.win[data-t="4"] { background: radial-gradient(90% 70% at 50% 50%, #5a0014 0%, #22000a 60%, #000 100%); }
.win[data-t="4"]::after { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--t4), inset 0 0 32px rgba(255, 59, 82, .62); }
.win[data-t="5"] { background: radial-gradient(90% 70% at 50% 50%, #8a5400 0%, #2a1700 60%, #000 100%); }
.win[data-t="5"]::after { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 36px rgba(255, 201, 60, .8); }
.win[data-t="6"] { background: radial-gradient(90% 70% at 50% 50%, #3a0a6a 0%, #061a44 60%, #000 100%); }
.win[data-t="6"]::after { opacity: 1; box-shadow: inset 0 0 0 2px #fff, inset 0 0 44px rgba(255, 255, 255, .5); }
.win[data-t="-1"] { background: radial-gradient(90% 70% at 50% 50%, #1b1640 0%, #07061a 60%, #000 100%); }
.win.reach { animation: reach .3s ease-in-out infinite; }
@keyframes reach { 50% { box-shadow: 0 0 0 2px var(--gold), 0 0 22px var(--gold); } }
.strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.cell { display: flex; align-items: center; justify-content: center; font-family: var(--num); font-weight: 700; font-size: clamp(34px, 11.5cqw, 50px); line-height: 1; letter-spacing: -.02em; }
.cell.t0 { color: var(--t0); }
.cell.t1 { color: var(--t1); }
.cell.t2 { color: var(--t2); text-shadow: 0 0 16px rgba(57, 170, 255, .85); }
.cell.t3 { color: var(--t3); text-shadow: 0 0 16px rgba(47, 220, 128, .85); }
.cell.t4 { color: #ff5468; text-shadow: 0 0 18px rgba(255, 59, 82, 1); }
.cell.t5 b { background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 9px rgba(255, 190, 40, .95)); }
.cell.t6 b { background: var(--rainbow); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 1.1s linear infinite; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .9)); }
.cell.tn { color: var(--neg); text-shadow: 0 0 14px rgba(125, 107, 255, .7); }
.cell b { font: inherit; display: block; }
.win.blur .strip { filter: blur(2.5px); }
.win.land .cell:last-child { animation: symPop .5s cubic-bezier(.2, 1.8, .3, 1); }
@keyframes symPop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } }
@keyframes flow { to { background-position: 200% 0; } }
.rbar { height: 4px; border-radius: 1px; background: rgba(158, 186, 228, .14); overflow: hidden; }
.rbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5b7cbd, #a9c4ff); transition: width .7s var(--ease); }
.cab-msg { min-height: 3.3em; display: flex; flex-direction: column; justify-content: center; margin-top: 8px; padding: 6px 8px; border-radius: 6px; text-align: center; font-weight: 700; font-size: 13.5px; line-height: 1.45; background: rgba(0, 0, 0, .35); border: 1px solid rgba(158, 186, 228, .12); }
.cab-msg small { font-size: 11px; color: var(--gold-t); font-weight: 700; }
.cab-msg.bad { color: #b9b0ff; }
.cab-msg.reach { color: var(--gold); font-family: var(--min); font-weight: 800; font-size: 20px; letter-spacing: .3em; animation: pulse .3s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.06); } }

.ctl { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 6px; padding: 12px 2px 0; }
.total { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.total-l { font-size: 11px; font-weight: 700; color: var(--mute); letter-spacing: .2em; }
.total-num { position: relative; font-family: var(--num); font-weight: 700; font-size: clamp(46px, 15cqw, 62px); line-height: .86; color: #fff; }
.total-num.bump { animation: totalBump .4s cubic-bezier(.2, 1.8, .3, 1); }
@keyframes totalBump { 40% { transform: scale(1.15); } }
.total-delta { position: absolute; left: 2px; bottom: 100%; font-size: .34em; font-style: normal; font-weight: 700; color: var(--gold); white-space: nowrap; opacity: 0; }
.total-delta.neg { color: var(--neg); }
.total-delta.show { animation: deltaUp 1.5s ease-out both; }
@keyframes deltaUp { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.total-rank { text-align: right; font-size: 10.5px; font-weight: 700; color: var(--mute); line-height: 1.5; }
.total-rank b { display: block; font-family: var(--num); font-size: clamp(24px, 7.6cqw, 31px); font-weight: 700; color: #fff; line-height: 1; }
.total-rank b small { font-family: var(--ui); font-size: 12px; margin-left: 2px; }
.total-rank.up b { color: var(--gold); }
.total-rank.down b { color: var(--neg); }

/* 回すボタン（メダル） */
.spin { position: relative; width: clamp(104px, 30cqw, 128px); aspect-ratio: 1; border-radius: 50%; transition: transform .12s var(--ease); }
.spin-md { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 5px 0 #4a050a) drop-shadow(0 12px 14px rgba(0, 0, 0, .6)); }
.spin-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 200deg, #fff2c0, #c98a12, #ffe58a, #8a5a00, #ffd75e, #b07400, #fff2c0); }
.spin-face { position: absolute; inset: 7%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 50%; color: #fff; background: radial-gradient(80% 70% at 40% 28%, #ff8a7a 0%, #e3202c 42%, #8e0812 100%); box-shadow: inset 0 3px 6px rgba(255, 220, 200, .5), inset 0 -6px 10px rgba(60, 0, 4, .55); }
.spin-face b { font-weight: 900; font-size: clamp(26px, 8cqw, 32px); letter-spacing: .04em; line-height: 1; text-shadow: 0 2px 0 rgba(90, 0, 8, .6); }
.spin-md::before { content: ""; position: absolute; inset: -7px; z-index: -1; border-radius: 50%; opacity: 0; background: conic-gradient(#ff3d6e, #ff9a3d, #ffe14a, #3dff9a, #3dc8ff, #9a6bff, #ff3d6e); filter: blur(5px); transition: opacity .3s; }
.slot.is-rush .spin-md::before { opacity: 1; animation: spinRot 2s linear infinite; }
@keyframes spinRot { to { transform: rotate(360deg); } }
.spin:active, .spin.is-down { transform: translateY(4px) scale(.985); }
.spin.is-busy .spin-md { filter: drop-shadow(0 5px 0 #2b0306) drop-shadow(0 12px 12px rgba(0, 0, 0, .55)) saturate(.5) brightness(.62); }
.spin.is-next .spin-face { background: radial-gradient(80% 70% at 40% 28%, #7fc0ff 0%, #1663c8 42%, #082a66 100%); }
.spin.is-next .spin-face b { font-size: clamp(18px, 5.6cqw, 22px); }

/* 演出 */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.fx-flash { position: absolute; inset: 0; animation: flash .7s ease-out forwards; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.fx-bit { position: absolute; top: -20px; width: 8px; height: 13px; border-radius: 1px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }
.fx-banner { position: absolute; left: 0; right: 0; top: 36%; text-align: center; font-family: var(--lux); font-weight: 900; font-size: clamp(44px, 14vw, 76px); line-height: 1.1; animation: banner 1.7s var(--ease) forwards; }
.fx-banner span { background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #3a0d00) drop-shadow(0 0 22px rgba(255, 170, 0, .8)); }
.fx-banner.rb span { background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: flow .8s linear infinite; filter: drop-shadow(0 4px 0 #1a0033) drop-shadow(0 0 22px rgba(255, 255, 255, .8)); }
.fx-banner.blue span { background: linear-gradient(180deg, #e8f2ff, #8fb0ff 50%, #4a6bd8); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 4px 0 #0a1440) drop-shadow(0 0 22px rgba(80, 120, 255, .8)); }
.fx-banner small { display: block; margin-top: 8px; font-family: var(--ui); font-size: 14px; font-weight: 700; letter-spacing: .2em; color: #fff; text-shadow: 0 2px 6px #000; }
@keyframes banner { 0% { opacity: 0; transform: scale(2.2); } 16% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(.96); } }

/* 選択肢 */
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: grid; gap: 5px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(158, 186, 228, .32); background: linear-gradient(180deg, rgba(20, 34, 66, .9), rgba(6, 12, 28, .92)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 24px rgba(0, 0, 0, .45); transition: transform .12s, border-color .2s; }
button.choice:hover { border-color: var(--gold); }
button.choice:active { transform: scale(.985); }
.choice-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.choice-name { font-family: var(--min); font-weight: 800; font-size: 18px; line-height: 1.4; letter-spacing: .02em; }
.tag { flex: none; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 3px; border: 1px solid rgba(255, 90, 100, .6); color: #ff97a1; }
.tag.ok { border-color: rgba(47, 220, 128, .6); color: #7ff0b0; }
.tag.gold { border-color: var(--line2); color: var(--gold-t); }
.choice-desc { font-size: 12.5px; color: #c4cee4; line-height: 1.6; }
.choice-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; font-weight: 700; color: var(--mute); }
.choice-meta b { color: var(--gold-t); }
.stars { color: var(--gold); letter-spacing: .06em; }
.stars i { font-style: normal; color: rgba(255, 255, 255, .18); }
.res-big { text-align: center; padding: 20px 16px; }
.res-big .choice-name { font-size: 24px; text-align: center; }
.res-big .choice-desc { text-align: center; font-size: 13.5px; }
.gains { font-family: var(--num); font-weight: 700; font-size: 15px; color: var(--gold); letter-spacing: .04em; text-align: center; }
.gains .neg { color: var(--neg); }

/* エントリー */
.mini { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 14px; }
.mini span { display: flex; flex-direction: column; align-items: center; padding: 5px 0 4px; border-radius: 6px; font-size: 10px; font-weight: 700; color: #b9c4dc; background: rgba(6, 14, 34, .78); border: 1px solid rgba(158, 186, 228, .2); }
.mini b { font-family: var(--num); font-size: 18px; line-height: 1.1; }
.cos { display: grid; gap: 7px; padding-bottom: 12px; }
.co-group { margin: 8px 2px 0; font-size: 11.5px; font-weight: 700; color: var(--gold-t); letter-spacing: .12em; }
.co-group:first-child { margin-top: 0; }
.co { position: relative; }
.co input { position: absolute; opacity: 0; pointer-events: none; }
.co label { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; padding: 11px 12px 11px 44px; border-radius: 10px; border: 1px solid rgba(158, 186, 228, .28); background: linear-gradient(180deg, rgba(20, 34, 66, .88), rgba(6, 12, 28, .92)); cursor: pointer; }
.co label::before { content: ""; position: absolute; left: 13px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 4px; border: 2px solid rgba(158, 186, 228, .5); }
.co input:checked + label { border-color: var(--blue); background: radial-gradient(120% 150% at 50% 40%, rgba(22, 99, 200, .55) 0%, rgba(10, 42, 96, .7) 100%); box-shadow: 0 0 16px rgba(62, 166, 255, .35); }
.co input:checked + label::before { background: var(--blue); border-color: var(--blue); box-shadow: inset 0 0 0 3px #0a2a60; }
.co input:disabled + label { opacity: .4; cursor: not-allowed; }
.co input:focus-visible + label { outline: 2px solid #fff; }
.co-name { font-weight: 900; font-size: 14.5px; word-break: keep-all; overflow-wrap: anywhere; }
.co-ind { font-size: 11.5px; color: #9eabc6; }
.co-ind em { font-style: normal; color: #ff97a1; margin-left: 6px; }
.co-right { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-size: 11px; font-weight: 700; color: #b9c4dc; line-height: 1.5; }
.co-right .when { display: block; color: var(--mute); font-weight: 500; }
.co-early { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px; font-size: 10px; font-weight: 700; color: #052012; background: #2fdc80; vertical-align: 2px; }
/* 選考 */
.stages { display: grid; gap: 5px; counter-reset: st; }
.stages li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(158, 186, 228, .22); background: rgba(6, 14, 34, .8); font-size: 14px; font-weight: 700; counter-increment: st; transition: all .3s; }
.stages li::before { content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-family: var(--num); font-weight: 700; font-size: 14px; background: rgba(158, 186, 228, .16); }
.stages li.now { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 22px -6px var(--gold); }
.stages li.pass::before { content: "✓"; background: #2fdc80; color: #052012; }
.stages li.fail { border-color: rgba(125, 107, 255, .6); }
.stages li.fail::before { content: "×"; background: var(--neg); }
.stages li.skip { opacity: .35; }
.stages .res { font-size: 12.5px; }
.stages li.reach { animation: reach .25s ease-in-out infinite; border-color: var(--gold); }
.stages .pass .res { color: #7ff0b0; }
.stages .fail .res { color: #b9b0ff; }
/* 配属ガチャ */
.hz-win { position: relative; height: 110px; margin: 10px 0 0; overflow: hidden; border-radius: 10px; border: 1px solid var(--line2); background: radial-gradient(90% 80% at 50% 50%, #0b1a3a, #02050c); box-shadow: inset 0 0 30px rgba(0, 0, 0, .9); }
.hz-win::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 5, 12, .95), transparent 30%, transparent 70%, rgba(2, 5, 12, .95)); pointer-events: none; }
.hz-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.hz-strip span { display: grid; place-items: center; height: 110px; padding: 0 16px; text-align: center; font-family: var(--min); font-weight: 800; font-size: 19px; line-height: 1.45; }
.hz-strip .lucky { color: var(--gold); text-shadow: 0 0 16px rgba(255, 190, 40, .7); }
/* 結果カード */
.result { padding-top: 6px; }
.card { position: relative; padding: 18px 18px 16px; border-radius: 12px; border: 2px solid var(--frame, rgba(158, 186, 228, .5)); background: radial-gradient(110% 70% at 100% 0%, rgba(40, 90, 200, .45), transparent 60%), linear-gradient(170deg, #0f1d42, #050a18 70%); box-shadow: 0 30px 60px rgba(0, 0, 0, .7); }
.card-rim { position: absolute; inset: -3px; z-index: -1; border-radius: 14px; opacity: 0; filter: blur(8px); }
.card[data-rare="gold"] { --frame: var(--gold); }
.card[data-rare="gold"] .card-rim { opacity: 1; background: var(--gold); }
.card[data-rare="rainbow"] { border-color: transparent; background: radial-gradient(110% 70% at 100% 0%, rgba(255, 190, 40, .3), transparent 60%), linear-gradient(170deg, #1a1442, #050a18 70%) padding-box, var(--rainbow) border-box; }
.card[data-rare="rainbow"] .card-rim { opacity: 1; background: var(--rainbow); background-size: 200% 100%; animation: flow 1.4s linear infinite; }
.card[data-rare="black"] { --frame: #3a3a46; background: linear-gradient(170deg, #17161d, #050508 70%); }
.card[data-rare="gray"] { --frame: #4a5168; }
.card-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--mute); }
.card-logo { font-family: var(--lux); font-weight: 900; font-size: 13px; letter-spacing: .1em; background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-title { margin-top: 14px; font-family: var(--min); font-weight: 800; font-size: 14px; color: var(--gold-t); letter-spacing: .06em; }
.card-co { font-family: var(--lux); font-weight: 900; font-size: clamp(24px, 7.6cqw, 32px); line-height: 1.3; letter-spacing: .02em; word-break: keep-all; overflow-wrap: anywhere; }
.card-co.long { font-size: clamp(20px, 6.2cqw, 26px); }
.card-ind { font-size: 12.5px; font-weight: 700; color: #b9c4dc; }
.card-who { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 14px 0 10px; padding-top: 12px; border-top: 1px solid rgba(226, 192, 110, .3); }
.card-name { font-weight: 900; font-size: 18px; }
.card-ac { font-size: 11.5px; font-weight: 700; color: var(--mute); text-align: right; }
.card-nums { display: grid; grid-template-columns: .7fr 1.3fr 1.1fr; gap: 6px; margin-bottom: 12px; }
.card-nums div { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 6px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(158, 186, 228, .14); }
.card-nums div > span { font-size: 9.5px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.card-nums b { font-family: var(--num); font-weight: 700; font-size: 26px; line-height: 1.05; }
.card-nums small { font-family: var(--ui); font-size: 11px; margin-left: 2px; }
.card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.card-stats li { display: flex; align-items: baseline; justify-content: space-between; padding: 5px 8px; border-radius: 6px; background: rgba(0, 0, 0, .3); font-size: 11px; font-weight: 700; color: #c4cee4; }
.card-stats .grade { font-size: 20px; }
.card-stats .val { font-size: 12px; color: var(--mute); margin-left: 2px; }
.card-fate { display: grid; gap: 6px; }
.card-fate div { display: grid; grid-template-columns: 46px 1fr; gap: 8px; font-size: 12.5px; line-height: 1.55; }
.card-fate dt { font-weight: 700; color: var(--gold-t); font-size: 11px; padding-top: 1px; }
.card-fate dd { font-weight: 700; }
.card-trail { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(158, 186, 228, .2); font-size: 11px; color: var(--mute); line-height: 1.7; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 12px; }

/* ダイアログ */
.dlg { width: min(92vw, 420px); max-height: 86dvh; padding: 22px 20px 18px; border-radius: 12px; border: 1px solid var(--line2); background: linear-gradient(180deg, #0f1d42, #050a18); color: var(--ink); }
.dlg::backdrop { background: rgba(2, 5, 12, .75); backdrop-filter: blur(3px); }
.dlg h2 { font-family: var(--min); font-weight: 800; font-size: 22px; margin-bottom: 12px; color: var(--gold-t); }
.dlg p, .dlg li { font-size: 13.5px; color: #d6deef; margin-bottom: 10px; line-height: 1.75; }
.dlg-list { list-style: decimal; padding-left: 1.3em; }
.dlg .btn-red { margin-top: 8px; }
.noscript { padding: 20px; text-align: center; }

@media (max-height: 700px) {
  .slot { min-height: 560px; }
  .cab-msg { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 押すだけで進む版 ---------- */
.view { flex: 1; min-height: 0; }
.gv { display: flex; flex-direction: column; justify-content: center; }
.gv .rates { padding: 8px 12px; }
.gv .rates dd { font-size: 12px; }
.sv { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.deck { display: flex; flex-wrap: wrap; gap: 4px; }
.deck li { flex: 1 1 0; min-width: 0; padding: 3px 4px; border-radius: 4px; font-size: 9.5px; font-weight: 700; text-align: center; color: #8f9bb8; border: 1px solid rgba(158, 186, 228, .2); background: rgba(0, 0, 0, .3); }
.deck li span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.deck li.now { color: #fff; border-color: var(--gold); box-shadow: 0 0 10px -2px var(--gold); }
.deck li.ok { color: #052012; background: var(--goldgrad); border-color: var(--gold); }
.deck li.ng { opacity: .4; text-decoration: line-through; }
.sv-card { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; border-radius: 8px; border: 1px solid rgba(226, 192, 110, .4); background: radial-gradient(100% 60% at 50% 0%, rgba(40, 90, 200, .35), transparent 70%), rgba(2, 6, 16, .6); overflow-y: auto; animation: cardIn .35s cubic-bezier(.2, 1.4, .3, 1); }
@keyframes cardIn { from { transform: translateY(-14px) scale(.96); opacity: 0; } }
.sv-kick { font-size: 11px; font-weight: 700; color: var(--gold-t); letter-spacing: .12em; }
.sv-co { font-family: var(--lux); font-weight: 900; font-size: clamp(22px, 7cqw, 28px); line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere; }
.sv-co.long { font-size: clamp(18px, 5.6cqw, 22px); }
.sv-ind { font-size: 12px; font-weight: 700; color: #b9c4dc; margin-bottom: 4px; }
.sv-card.reach { animation: reach .25s ease-in-out infinite; }
.sv-card.offer { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 30px rgba(255, 190, 40, .45); }
.sv-card.offer .sv-co { background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv-card.offer.rb { border-color: transparent; background: linear-gradient(rgba(10, 8, 30, .95), rgba(10, 8, 30, .95)) padding-box, var(--rainbow) border-box; }
.sv-card.offer.rb .sv-co { background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: flow 1s linear infinite; }
.sv-card.fail { filter: saturate(.4) brightness(.8); }

.rushbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: -2px -2px 6px; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #b40000, #ff6a00, #b40000); background-size: 200% 100%; animation: flow 1.2s linear infinite; box-shadow: 0 0 18px rgba(255, 90, 0, .6); }
.rushbar > b { font-family: var(--lux); font-weight: 900; font-size: 15px; letter-spacing: .06em; text-shadow: 0 1px 0 #600; }
.rushbar span b { font-family: var(--num); font-size: 18px; margin: 0 1px; }
.slot[data-lv="2"] .rushbar { background: linear-gradient(90deg, #6a00c8, #ff2fb0, #6a00c8); background-size: 200% 100%; box-shadow: 0 0 22px rgba(255, 47, 176, .7); }
.slot[data-lv="3"] .rushbar { background: var(--rainbow); background-size: 200% 100%; color: #120020; box-shadow: 0 0 26px rgba(255, 255, 255, .8); }
.slot[data-lv="3"] .rushbar > b { text-shadow: none; }
.slot.is-rush .cab { background: repeating-linear-gradient(135deg, rgba(255, 80, 0, .08) 0 14px, transparent 14px 28px), linear-gradient(180deg, rgba(60, 10, 10, .9), rgba(15, 3, 3, .95)); background-size: 40px 40px, auto; animation: stripes .6s linear infinite; }
.slot[data-lv="2"] .cab { background: repeating-linear-gradient(135deg, rgba(255, 47, 176, .1) 0 14px, transparent 14px 28px), linear-gradient(180deg, rgba(40, 6, 60, .92), rgba(10, 2, 20, .95)); background-size: 40px 40px, auto; }
.slot[data-lv="3"] .cab { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 14px, transparent 14px 28px), linear-gradient(180deg, rgba(10, 30, 60, .92), rgba(20, 2, 30, .95)); background-size: 40px 40px, auto; }
@keyframes stripes { to { background-position: 40px 0, 0 0; } }
.combo { position: absolute; right: 8px; top: 6px; z-index: 4; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 900; color: #052012; background: #2fdc80; box-shadow: 0 0 12px rgba(47, 220, 128, .7); animation: symPop .5s cubic-bezier(.2, 1.8, .3, 1); }
.combo[data-n="4"], .combo[data-n="5"] { color: #300; background: var(--goldgrad); box-shadow: 0 0 14px rgba(255, 190, 40, .8); }
.combo[data-n="6"] { color: #120020; background: var(--rainbow); background-size: 200% 100%; animation: flow 1s linear infinite; }
.slot.is-rush .combo { top: 40px; }

/* 予告の保留色 */
.spin[data-hold="green"] .spin-face { background: radial-gradient(80% 70% at 40% 28%, #9dffc8 0%, #12b85e 42%, #04502a 100%); }
.spin[data-hold="red"] .spin-face { background: radial-gradient(80% 70% at 40% 28%, #ffd0d0 0%, #ff1a2e 42%, #6a0008 100%); animation: pulse .18s ease-in-out infinite alternate; }
.spin[data-hold="gold"] .spin-face { background: radial-gradient(80% 70% at 40% 28%, #fff7d0 0%, #ffbf1a 42%, #8a5400 100%); animation: pulse .15s ease-in-out infinite alternate; }
.spin[data-hold="rainbow"] .spin-face { background: conic-gradient(#ff3d6e, #ff9a3d, #ffe14a, #3dff9a, #3dc8ff, #9a6bff, #ff3d6e); animation: spinRot 1s linear infinite; }
.spin[data-hold="rainbow"] .spin-face b { animation: spinRot 1s linear infinite reverse; }
.spin[data-hold] .spin-md, .spin.is-busy[data-hold] .spin-md { filter: drop-shadow(0 5px 0 #4a050a) drop-shadow(0 0 16px rgba(255, 255, 255, .55)); }
.spin[data-hold=""] .spin-md { filter: drop-shadow(0 5px 0 #4a050a) drop-shadow(0 12px 14px rgba(0, 0, 0, .6)); }
.spin.is-busy[data-hold=""] .spin-md { filter: drop-shadow(0 5px 0 #2b0306) drop-shadow(0 12px 12px rgba(0, 0, 0, .55)) saturate(.5) brightness(.62); }
.spin[data-kind="next"] .spin-face, .spin[data-kind="gacha"] .spin-face { background: radial-gradient(80% 70% at 40% 28%, #7fc0ff 0%, #1663c8 42%, #082a66 100%); }
.spin[data-kind="sel"] .spin-face { background: radial-gradient(80% 70% at 40% 28%, #ffe6a0 0%, #d48a00 42%, #6a3a00 100%); }
.spin[data-kind="next"] .spin-face b, .spin[data-kind="sel"] .spin-face b, .spin[data-kind="gacha"] .spin-face b { font-size: clamp(18px, 5.6cqw, 22px); }
.spin:not(.is-busy) .spin-md { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.035); } }

.round.auto { width: auto; padding: 0 10px; border-radius: 18px; font-family: var(--num); font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.round.auto[aria-pressed="true"] { color: #052012; background: #2fdc80; border-color: #2fdc80; box-shadow: 0 0 14px rgba(47, 220, 128, .7); }

/* 演出の追加 */
.fx-coin { position: fixed; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff7c8, #ffc93c 45%, #b07400); box-shadow: 0 0 8px rgba(255, 201, 60, .9); animation: coin 1.1s cubic-bezier(.4, 0, .6, 1) forwards; }
@keyframes coin { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { opacity: 1; } 40% { transform: translate(var(--ux), var(--uy)) scale(1.1); } 100% { transform: translate(var(--tx), var(--ty)) scale(.5); opacity: .2; } }
.fx-cut { position: absolute; left: 0; right: 0; top: 30%; height: 64px; display: grid; place-items: center; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .85) 15%, rgba(0, 0, 0, .85) 85%, transparent); animation: cut 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.fx-cut span { font-family: var(--lux); font-weight: 900; font-size: 34px; letter-spacing: .1em; color: #fff; text-shadow: 0 0 16px currentColor; }
.fx-cut.green span { color: #6dffb0; }
.fx-cut.red span { color: #ff5468; }
.fx-cut.gold span { background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(255, 190, 40, .9)); }
.fx-cut.rainbow span { background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow .6s linear infinite; }
.fx-cut.blue span { color: #9fb8ff; }
@keyframes cut { 0% { transform: translateX(100%) skewX(-12deg); } 22% { transform: translateX(0) skewX(-12deg); } 78% { transform: translateX(0) skewX(-12deg); opacity: 1; } 100% { transform: translateX(-100%) skewX(-12deg); opacity: 0; } }
.phone.shake { animation: shake .45s; }
.phone.shake2 { animation: shake2 .65s; }
@keyframes shake { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, 0); } }
@keyframes shake2 { 10% { transform: translate(-9px, 4px) rotate(-.6deg); } 25% { transform: translate(9px, -4px) rotate(.6deg); } 40% { transform: translate(-7px, 3px); } 55% { transform: translate(6px, -2px); } 70% { transform: translate(-4px, 1px); } 85% { transform: translate(2px, 0); } }
.slot.freeze .cab, .slot.freeze .hdr, .slot.freeze .prog, .slot.freeze .ctl { filter: brightness(.15) grayscale(1); transition: filter .2s; }
.slot.freeze::after { content: "…"; position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; font-family: var(--lux); font-size: 60px; color: #fff; background: #000; animation: freezeIn 1.5s steps(3) forwards; }
@keyframes freezeIn { 0% { opacity: 0; } 30% { opacity: .9; } 100% { opacity: 1; } }

/* 下から出るシート */
.sheet { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgba(2, 5, 12, .6); backdrop-filter: blur(2px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet-in { width: 100%; max-width: 440px; max-height: 86dvh; display: flex; flex-direction: column; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; border: 1px solid var(--line2); border-bottom: 0; background: linear-gradient(180deg, #0f1d42, #050a18 60%); box-shadow: 0 -20px 50px rgba(0, 0, 0, .7); animation: up .35s cubic-bezier(.2, 1.2, .3, 1); }
@keyframes up { from { transform: translateY(100%); } }
.sheet-kick { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--gold-t); letter-spacing: .2em; }
.sheet-h { text-align: center; font-family: var(--min); font-weight: 800; font-size: clamp(22px, 6.6cqw, 28px); line-height: 1.35; margin: 2px 0 4px; }
.sheet-sub { text-align: center; font-size: 12px; font-weight: 700; color: #b9c4dc; margin-bottom: 12px; }
.sheet-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px; }
.sheet-body .choices + .choices, .sheet-body .res-big + .choices { margin-top: 10px; }
.sheet .choice { padding: 12px 14px; }
.sheet .choice-name { font-size: 17px; }
.entry-bar { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 0 2px; background: linear-gradient(rgba(5, 10, 24, 0), #050a18 30%); }
.entry-bar .btn { min-height: 52px; padding: 0 14px; }

/* 回すたびに高さが変わらないよう、中身が変わる部分の大きさを固定する */
.cab-msg { flex: none; height: 96px; min-height: 0; overflow: hidden; padding-top: 4px; padding-bottom: 4px; }
.cab-msg > * { flex: none; }
.cab { overflow: hidden; }
.rushbar { position: absolute; left: 10px; right: 10px; top: 6px; z-index: 5; height: 36px; margin: 0; }
.cab-title { flex: none; height: 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.is-rush .combo { top: 48px; }
.deck { flex: none; flex-wrap: nowrap; height: 22px; }
.hdr-sub, .hdr-grade { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view { overflow: hidden; }
.cab-msg small { line-height: 1.35; }
