* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: "Hiragino Sans", "Noto Sans JP", sans-serif; background: #141824; color: #eef; }
.hidden { display: none !important; }
button { cursor: pointer; border: 1px solid #556; background: #2a3049; color: #eef; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
button.primary { background: #b8860b; border-color: #daa520; color: #fff; font-weight: bold; width: 100%; padding: 12px; }
button.warn { background: #7a2d2d; border-color: #a44; }
button:disabled { opacity: .45; cursor: default; }
input, select { width: 100%; padding: 9px; margin: 4px 0 10px; border-radius: 6px; border: 1px solid #556; background: #1c2133; color: #eef; font-size: 15px; }
label { font-size: 13px; color: #bbc; }

#sticky-top { position: sticky; top: 0; z-index: 20; }
#topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #0c0f18; border-bottom: 2px solid #b8860b; }
#announce-banner { background: #7a1010; color: #ffe9a8; font-weight: bold; text-align: center; padding: 9px 12px; font-size: 14px; line-height: 1.5; border-bottom: 2px solid #daa520; white-space: pre-wrap; }
.brand { font-weight: bold; font-size: 17px; }
.beta { background: #b8860b; color: #000; font-size: 10px; padding: 2px 5px; border-radius: 4px; vertical-align: middle; }
#userbox { font-size: 13px; color: #cdd; }
#userbox button { margin-left: 8px; padding: 4px 8px; font-size: 12px; }

.view { padding: 12px; max-width: 980px; margin: 0 auto; }
.auth-wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.auth-card { background: #1e2438; border: 1px solid #3a4160; border-radius: 12px; padding: 18px; width: 320px; }
.auth-card h2 { margin-top: 0; font-size: 17px; }
.msg { color: #f99; font-size: 13px; min-height: 18px; }

#shift-banner { text-align: center; padding: 10px; border-radius: 8px; background: #233018; border: 1px solid #5a7d3c; margin-bottom: 10px; font-weight: bold; }
#shift-banner.closed { background: #3a1d1d; border-color: #8a4a4a; }
#playing-count { text-align: center; padding: 6px 10px; border-radius: 8px; background: #1d2739; border: 1px solid #41598a; margin-bottom: 10px; font-weight: bold; }
#login-bonus-bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; padding: 8px 10px; border-radius: 8px; background: #2e2410; border: 1px solid #b8860b; margin-bottom: 10px; font-weight: bold; }
#login-bonus-bar .lb-done { color: #9fd48a; }
.hall-actions { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.island { margin-bottom: 22px; }
.island h2 { font-size: 17px; border-left: 5px solid #daa520; padding-left: 8px; margin: 8px 0; }
.island-total { font-size: 13px; color: #ffd75e; margin-left: 6px; white-space: nowrap; }
.machine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.tile { background: linear-gradient(#2b3352, #1d2338); border: 2px solid #454e73; border-radius: 10px; padding: 6px; text-align: center; position: relative; cursor: pointer; min-height: 162px; }
.tile.occupied { opacity: .75; cursor: default; }
.tile.mine { border-color: #ffd700; box-shadow: 0 0 8px #ffd70088; }
.tile .no { font-weight: bold; font-size: 15px; }
.tile canvas { width: 100%; height: 28px; background: #10131f; border-radius: 4px; }
.tile .seat-info { font-size: 20px; height: 26px; }
.tile .seat-name { font-size: 11px; color: #bbc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .diff { font-size: 11px; color: #9db; }
.tile .tile-stats { margin-top: 3px; padding-top: 3px; border-top: 1px solid #454e7388; font-size: 10.5px; line-height: 1.5; color: #99a3c0; white-space: nowrap; }
.tile .tile-stats b { color: #eef1fa; font-size: 11px; }
.bubble { position: absolute; top: -10px; right: -4px; font-size: 11px; font-weight: bold; padding: 3px 7px; border-radius: 10px; border: 1px solid #888; z-index: 2; }
.bubble.white { background: #f5f5f5; color: #222; }
.bubble.blue { background: #2266cc; color: #fff; }
.bubble.green { background: #229944; color: #fff; }
.bubble.red { background: #cc2222; color: #fff; }
.bubble.rainbow { background: linear-gradient(90deg, #f66, #fc3, #6f6, #6cf, #c6f); color: #000; animation: rainbow 1s linear infinite; }
@keyframes rainbow { to { filter: hue-rotate(360deg); } }

/* machine tag （札）: a small paper-plate label under the machine number */
.tile-tag { display: inline-block; margin: 3px auto 4px; padding: 2px 9px; background: linear-gradient(#fdf6dd, #f3e3b3); color: #7a1d12; border: 1.5px solid #b8860b; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.45); font-size: 12.5px; font-weight: bold; letter-spacing: .06em; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.setting-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.setting-tile { cursor: default; }
.setting-tile .model-name { font-size: 11px; color: #bbc; text-align: center; margin-bottom: 2px; }
.setting-tile .seat-name { text-align: center; margin-bottom: 4px; }
.set-row { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 12px; }
.set-row > span { color: #bbc; white-space: nowrap; }
.set-row button { padding: 5px 9px; font-size: 12px; white-space: nowrap; }
/* admin tag （札） editor on each setting tile */
.morning-row { display: flex; align-items: center; gap: 10px; margin-top: 7px; padding-top: 6px; border-top: 1px dashed #454e73; font-size: 12px; }
.morning-row > span { color: #bbc; white-space: nowrap; }
.morning-row .morning-cb { display: inline-flex; align-items: center; gap: 3px; color: #ffd76a; white-space: nowrap; cursor: pointer; }
.morning-row .morning-cb input { width: auto; margin: 0; accent-color: #e8a020; }
.tag-row { display: flex; align-items: center; gap: 4px; margin-top: 7px; padding-top: 6px; border-top: 1px dashed #454e73; font-size: 12px; }
.tag-row > span { color: #bbc; white-space: nowrap; }
.tag-row .tag-input { flex: 1; min-width: 0; width: auto; margin: 0; padding: 5px 7px; font-size: 12.5px; }
.tag-row button { padding: 5px 8px; font-size: 12px; white-space: nowrap; }
.tag-presets { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tag-presets button { padding: 3px 8px; font-size: 11.5px; border-radius: 999px; background: #3a2c10; border-color: #b8860b; color: #ffd75e; }
.tag-msg { font-size: 11.5px; color: #8fd18f; min-height: 15px; margin-top: 2px; text-align: left; }

.island-bulk { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 8px; font-size: 13px; }
.island-bulk > span:first-child { color: #bbc; white-space: nowrap; }
.island-bulk button { padding: 5px 10px; font-size: 12px; white-space: nowrap; }

.toolbar { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.toolbar #play-title { font-weight: bold; flex: 1; text-align: center; }
#btn-auto.on { background: #2d7a2d; border-color: #4a4; }
.drawer { background: #1e2438; border: 1px solid #3a4160; border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.drawer h3 { margin: 6px 0; font-size: 14px; }
.drawer button { display: block; margin: 6px 0; }
#avatar-picker button { display: inline-block; font-size: 20px; }

.counter-band { display: flex; flex-wrap: wrap; gap: 4px 12px; background: #0c0f18; border: 1px solid #3a4160; border-radius: 8px; padding: 6px 10px; font-size: 13px; margin-bottom: 6px; }
.counter-band b { color: #ffd700; font-size: 15px; }
.run-chip { background: linear-gradient(90deg, #6a4a00, #b8860b); color: #fff; font-weight: bold; text-align: center; padding: 7px; border-radius: 8px; margin-bottom: 8px; font-size: 15px; }
/* active item effects on the play screen (remaining time is server-judged) */
.item-chip { background: linear-gradient(90deg, #123a6b, #1f6fb4); color: #fff; font-weight: bold; text-align: center; padding: 6px; border-radius: 8px; margin-bottom: 8px; font-size: 14px; }
.force-panel { background: #2b2108; border: 1px dashed #d4af37; color: #ffe9a8; padding: 6px 8px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.force-panel.hidden { display: none; }
.force-btn { background: #4a380f; color: #ffe9a8; border: 1px solid #d4af37; border-radius: 6px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.force-btn.armed { background: #d4af37; color: #1a1405; font-weight: bold; }
.force-status b { color: #ffd94d; }
/* transient "coins auto-refilled" note on the play screen */
.refill-note { background: #1e2438; border: 1px solid #4a7ad4; color: #bcd6ff; text-align: center; padding: 5px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; }
/* coin auto-refill toggle next to the lend buttons (client-side only) */
.refill-toggle { margin-left: 8px; }
.refill-toggle.on { background: #2d7a2d; border-color: #4a4; color: #fff; }
/* items modal */
.item-row { border: 1px solid #3a4160; border-radius: 10px; padding: 10px; margin-bottom: 10px; background: #232a44; }
.item-row-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-row-name { font-weight: bold; font-size: 16px; }
.item-row-count { color: #ffd76a; font-weight: bold; }
.item-row-active { color: #7dd87d; font-weight: bold; }
.item-row-desc { color: #aeb6cc; font-size: 13px; margin-top: 4px; }
.item-row .item-use { margin-left: auto; }
.items-footer { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.admin-note { color: #aeb6cc; font-size: 12px; margin: 0; }

.lcd { border-radius: 10px; padding: 8px; margin-bottom: 8px; text-align: center; border: 2px solid #556; min-height: 80px; transition: background .5s; }
.lcd.sky0 { background: linear-gradient(#7ec8e3, #cfeef7); color: #123; }
.lcd.sky1 { background: linear-gradient(#f7b267, #f4845f); color: #310; }
.lcd.sky2 { background: linear-gradient(#ffd700, #ff8c00); color: #310; }
.lcd.bancho-normal { background: linear-gradient(#3b4a6b, #7a4a3a); color: #ffe; }
.lcd.bancho-art { background: linear-gradient(#7a1010, #d4a017); color: #fff; }
.lcd.bancho-bonus { background: linear-gradient(#243b6b, #4a7ad4); color: #fff; }
.lcd.gg { background: linear-gradient(#2a0a3a, #7a1fa2); color: #ffe; }
#lcd-main { font-size: 20px; font-weight: bold; min-height: 28px; }
.lcd-gg-left { font-size: 15px; font-weight: bold; letter-spacing: 1px; }
#lcd-sub { font-size: 13px; min-height: 18px; }
.lcd-digits { font-size: 34px; letter-spacing: 10px; font-family: monospace; font-weight: bold; }
/* Zeus LCD digits carry a thin red outline on the glyph itself, in
   every state (user request: the gold digits washed out on the bright
   heaven background; a 2px glyph outline — not a box — keeps the
   premium look while restoring contrast on all stage backgrounds). */
.lcd-digits span { -webkit-text-stroke: 2px #e60012; }
.lcd-digits .locked { color: #ffd700; text-shadow: 0 0 6px #ff0; }
.lcd-digits .triple { color: #ffd700; text-shadow: 0 0 12px #ff0; animation: blink .3s steps(2) infinite; }
@keyframes blink { 50% { opacity: .4; } }

.cabinet { background: linear-gradient(#323a5e, #20263f); border: 3px solid #57628f; border-radius: 16px; padding: 10px; }
/* total spins pinned at the very top of the cabinet (all models) */
.cab-spins { text-align: center; font-size: 13px; letter-spacing: .14em; color: #bbc; background: rgba(0,0,0,.35); border: 1px solid #57628f; border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.cab-spins b { font-family: 'Courier New', monospace; font-size: 19px; color: #ffd700; letter-spacing: .06em; margin-left: 4px; }
.reels { display: flex; gap: 8px; justify-content: center; background: #0a0c14; border-radius: 10px; padding: 10px 6px; }
.reel { flex: 1; max-width: 150px; display: flex; flex-direction: column; gap: 4px; }
.reel-cell { background: #f4f1e6; color: #222; border-radius: 6px; text-align: center; padding: 5px 2px 3px; height: 60px; min-height: 60px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; border: 2px solid transparent; }
.reel-cell.mid { border-color: #daa520; }
.reel-cell .emo { font-size: 24px; line-height: 1.1; }
.reel-cell.seven .emo { font-size: 34px; font-weight: bold; color: #d42a2a; transform: scaleX(1.5); }
.reel-cell.god { background: #1a1a2e; }
.reel-cell.god .emo { color: #ffd700; font-weight: bold; font-size: 19px; letter-spacing: 2px; border: 1px solid #ffd700; border-radius: 3px; padding: 1px 6px; transform: scaleX(1.15); }
.reel-cell.zeus-sym { background: #3a0d0d; }
.reel-cell.zeus-sym .emo { color: #ff4444; font-size: 26px; }
/* Million Zeus real-look 7s (yellow bell / blue replay / red seven) */
.reel-cell.y7 .emo { font-size: 32px; font-weight: bold; color: #d99a00; transform: scaleX(1.4); }
.reel-cell.b7 .emo { font-size: 32px; font-weight: bold; color: #2266cc; transform: scaleX(1.4); }
.reel-cell.r7 .emo { font-size: 32px; font-weight: bold; color: #d42a2a; transform: scaleX(1.4); }
.reel-cell.wing-sym .emo { font-size: 26px; }
.reel-cell.million-sym .emo { font-size: 26px; }
/* Bancho display-only symbols */
.reel-cell.logo-sym .emo { font-size: 19px; font-weight: bold; color: #1e5eff; }
.reel-cell.mark-sym .emo { font-size: 20px; font-weight: bold; color: #fff; background: #3a7bd5; border-radius: 50%; width: 30px; height: 30px; line-height: 30px; margin: 0 auto; }
.reel-cell.osu-sym .emo { font-size: 15px; font-weight: bold; color: #555; background: #e8e8e8; border: 1px solid #bbb; border-radius: 3px; padding: 1px 3px; }
.reel-cell.win { background: #fff3b0; box-shadow: 0 0 10px #ffd700; }

.lamp-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; min-height: 30px; }
.joker-lamp { font-weight: bold; letter-spacing: 4px; font-size: 19px; color: #443; background: #22263a; border: 2px solid #555; border-radius: 8px; padding: 4px 12px; }
.joker-lamp.lit { color: #ffd700; background: #4a3800; border-color: #ffd700; text-shadow: 0 0 10px #ff0; }
.joker-lamp.blink { animation: blink .25s steps(2) infinite; }
.joker-lamp.rainbow { background: linear-gradient(90deg, #f66, #fc3, #6f6, #6cf, #c6f); color: #000; text-shadow: none; animation: rainbow 1s linear infinite; }
.joker-lamp .off { opacity: .25; text-shadow: none; }
.win-display { font-size: 17px; font-weight: bold; color: #ffd700; }

/* one-row control deck on every model: lever on the left, STOP x3 beside it */
.controls { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 10px; }
.lever { font-size: 15px; font-weight: bold; padding: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e66, #a00); border: 3px solid #700; color: #fff; width: 74px; height: 74px; flex: none; }
.stop-buttons { display: flex; gap: 9px; }
.stop-btn { position: relative; width: 62px; height: 62px; border-radius: 50%; font-weight: bold; background: radial-gradient(circle at 35% 30%, #6cf, #247); border: 3px solid #124; color: #fff; }
.stop-btn:disabled { filter: grayscale(.7); }
.navi-num { position: absolute; top: -8px; right: -8px; background: #ffd700; color: #000; border-radius: 50%; width: 26px; height: 26px; line-height: 26px; font-size: 15px; display: none; }
.navi-num.show { display: block; }
.sub-controls { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 8px; font-size: 13px; color: #bbc; }

table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 8px 0; }
th, td { border: 1px solid #3a4160; padding: 5px 7px; text-align: left; }
th { background: #232a45; }
.admin-box { background: #1e2438; border: 1px solid #3a4160; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.admin-box input { width: 110px; display: inline-block; margin: 0 4px; }
.admin-box label { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.spec { background: #0c0f18; padding: 10px; border-radius: 8px; overflow: auto; font-size: 11.5px; max-height: 400px; }
.adj-input { width: 84px !important; display: inline-block; margin: 0 4px 0 0; }

/* ---- admin tabs (big touch targets for portrait phones) ---- */
.admin-tabs { display: flex; gap: 8px; margin: 12px 0 4px; }
.admin-tab { flex: 1; min-height: 54px; font-size: 16px; font-weight: bold; border-radius: 10px; border: 2px solid #3a4160; background: #232a45; color: #bbc; padding: 12px 6px; }
.admin-tab.active { background: #b8860b; border-color: #ffd700; color: #fff; box-shadow: 0 0 10px rgba(255,215,0,.35); }
.admin-box input[type="time"] { width: 128px; }

/* ---- admin spec tables ---- */
.spec-model { margin-bottom: 18px; }
.spec-model h4 { margin: 12px 0 4px; font-size: 15px; color: #ffd700; border-left: 4px solid #b8860b; padding-left: 7px; }
.spec-table-title { font-weight: bold; margin-top: 10px; font-size: 13.5px; }
.spec-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table-wrap table { min-width: 480px; }
.spec-notes { font-size: 12px; color: #bbc; margin: 2px 0 6px; line-height: 1.5; }

/* ---- test-play tiles ---- */
.test-tile { border-style: dashed; border-color: #b8860b; }
.test-tile .no { font-size: 12.5px; }

/* ================= Million Zeus: Million God Gaisen-style theme ================= */
#view-play.zeus-mode { background: radial-gradient(ellipse 130% 55% at 50% -5%, #33270f 0%, #141008 55%, #0b0906 100%); border-radius: 14px; }
#view-play.zeus-mode .toolbar button { border-color: #8a6d1f; }
#view-play.zeus-mode .counter-band { background: #070604; border-color: #8a6d1f; }
#view-play.zeus-mode .cabinet { background: linear-gradient(#241a08, #120d04 60%, #1d1507); border: 3px solid #d4af37; box-shadow: 0 0 22px rgba(212,175,55,.35), inset 0 0 34px rgba(0,0,0,.55); }
#view-play.zeus-mode .cab-spins { background: #0a0805; border-color: #8a6d1f; color: #d4af37; }
#view-play.zeus-mode .cabinet::before { content: 'GOD'; display: block; text-align: center; font-family: 'Times New Roman', 'Hiragino Mincho ProN', serif; font-weight: bold; font-size: 25px; letter-spacing: .55em; text-indent: .55em; margin-bottom: 9px; background: linear-gradient(#fff2b0, #d4af37 55%, #8a6d1f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 7px rgba(212,175,55,.45)); }
#view-play.zeus-mode .reels { background: #050505; border: 2px solid #8a6d1f; box-shadow: inset 0 0 18px rgba(0,0,0,.9); }
#view-play.zeus-mode .lever { background: radial-gradient(circle at 35% 30%, #ffe98a, #b8860b 65%, #6e5203); border-color: #3a2c00; color: #241a00; }
#view-play.zeus-mode .stop-btn { background: radial-gradient(circle at 35% 30%, #4a4a55, #101014 70%); border-color: #d4af37; color: #ffd700; }

/* Zeus LCD: black x red frame, stage-like backgrounds (sky colour still hints the mode) */
#view-play.zeus-mode .lcd { position: relative; overflow: hidden; border: 3px solid #d4af37; box-shadow: 0 0 0 2px #3a0d0d, 0 0 20px rgba(212,175,55,.45), inset 0 0 26px rgba(0,0,0,.4); }
/* 3 stages, one per (hidden) mode: sky0=temple, sky1=ascending mid-stage, sky2=the heavens */
#view-play.zeus-mode .lcd.sky0 { background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(255,244,200,.5), rgba(255,244,200,0) 60%), linear-gradient(90deg, rgba(240,235,220,.9) 0 7%, rgba(240,235,220,0) 15%, rgba(240,235,220,0) 85%, rgba(240,235,220,.9) 93% 100%), linear-gradient(rgba(0,0,0,0) 76%, rgba(24,34,54,.4)), linear-gradient(#5ea9d4, #cfeef7); }
#view-play.zeus-mode .lcd.sky1 { background: repeating-linear-gradient(0deg, rgba(70,40,20,.16) 0 5px, rgba(70,40,20,0) 5px 13px), radial-gradient(ellipse 75% 55% at 50% -10%, rgba(255,235,190,.6), rgba(255,235,190,0) 60%), linear-gradient(#7ec3e8 0%, #f2c185 52%, #e2703a 100%); }
#view-play.zeus-mode .lcd.sky2 { background: radial-gradient(ellipse 60% 32% at 18% 108%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%), radial-gradient(ellipse 60% 32% at 82% 108%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%), radial-gradient(ellipse 85% 60% at 50% 0%, rgba(255,255,230,.85), rgba(255,255,230,0) 55%), linear-gradient(#ffe45e, #ff9d00); }
#view-play.zeus-mode .lcd.gg { background: radial-gradient(ellipse 75% 55% at 50% -10%, rgba(255,215,0,.55), rgba(255,215,0,0) 60%), linear-gradient(#1a0505, #4a0d0d 55%, #12030a); color: #ffd700; }
#view-play.zeus-mode .lcd.tenpai { animation: tenpaiPulse .5s ease-in-out infinite; }
@keyframes tenpaiPulse { 50% { box-shadow: 0 0 0 2px #ff2d2d, 0 0 32px rgba(255,45,45,.85), inset 0 0 26px rgba(0,0,0,.4); } }
#lcd-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 1; background: linear-gradient(115deg, rgba(255,255,255,0) 32%, rgba(255,255,255,.95) 47%, rgba(160,200,255,.95) 50%, rgba(255,255,255,.95) 53%, rgba(255,255,255,0) 68%), radial-gradient(ellipse 90% 90% at 50% 50%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); }
#lcd-flash.zap { animation: zapAnim .38s ease-out; }
@keyframes zapAnim { 0% { opacity: 0; } 12% { opacity: .9; } 30% { opacity: .15; } 48% { opacity: .65; } 100% { opacity: 0; } }
#lcd-main, #lcd-sub { position: relative; z-index: 0; }

/* GG win: golden doors over the LCD */
.lcd-door { position: absolute; inset: 0; display: none; z-index: 2; }
.lcd-door.show { display: block; }
.door-light { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,225,130,.95), rgba(255,180,0,.35) 55%, rgba(255,180,0,0) 78%); opacity: 0; transition: opacity .45s ease .25s; }
.lcd-door.open .door-light { opacity: 1; }
.door-panel { position: absolute; top: 0; bottom: 0; width: 50.5%; transition: transform .85s cubic-bezier(.6, 0, .3, 1); background: linear-gradient(90deg, #200808, #571616 55%, #2b0d0d); }
.door-panel.left { left: 0; border-right: 3px solid #d4af37; box-shadow: inset -14px 0 24px rgba(0,0,0,.65); }
.door-panel.right { right: 0; border-left: 3px solid #d4af37; box-shadow: inset 14px 0 24px rgba(0,0,0,.65); background: linear-gradient(270deg, #200808, #571616 55%, #2b0d0d); }
.lcd-door.open .door-panel.left { transform: translateX(-103%); }
.lcd-door.open .door-panel.right { transform: translateX(103%); }
#door-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Times New Roman', 'Hiragino Mincho ProN', serif; font-weight: bold; font-size: clamp(21px, 6.5vw, 36px); letter-spacing: .18em; color: #ffd700; text-shadow: 0 0 14px rgba(255,180,0,.9), 0 2px 3px #000; opacity: 0; transform: scale(.92); transition: opacity .3s ease, transform .3s ease; }
.lcd-door.show #door-text { opacity: 1; transform: scale(1); }
.lcd-door.open #door-text { opacity: 0; }
.lcd-door.strong #door-text { font-size: clamp(26px, 8.5vw, 46px); animation: doorStrong .5s ease-in-out infinite alternate; }
@keyframes doorStrong { from { text-shadow: 0 0 12px rgba(255,180,0,.9), 0 2px 3px #000; } to { text-shadow: 0 0 26px rgba(255,230,120,1), 0 0 8px #fff, 0 2px 3px #000; } }

/* ================= Cho Bancho 2: Bancho 2-style theme (sunset / academy) ================= */
#view-play.bancho-mode { background: radial-gradient(ellipse 130% 55% at 50% -5%, #4a2c14 0%, #1a1426 55%, #0d0a14 100%); border-radius: 14px; }
#view-play.bancho-mode .toolbar button { border-color: #8a4a1f; }
#view-play.bancho-mode .counter-band { background: #141021; border-color: #8a4a1f; }
#view-play.bancho-mode .cabinet { background: linear-gradient(#2e3d66, #16203c 55%, #0f1830); border: 3px solid #ff8c42; box-shadow: 0 0 20px rgba(255,140,66,.3), inset 0 0 30px rgba(0,0,0,.5); }
#view-play.bancho-mode .cab-spins { border-color: #8a4a1f; color: #ffd9a0; }
#view-play.bancho-mode .cabinet::before { content: '頂番長'; display: block; text-align: center; font-weight: bold; font-size: 24px; letter-spacing: .4em; text-indent: .4em; margin-bottom: 9px; background: linear-gradient(#ffe9a8, #ff8c42 60%, #d64f1e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 6px rgba(255,140,66,.4)); }
#view-play.bancho-mode .reels { background: #0d0d12; border: 2px solid #8a4a1f; box-shadow: inset 0 0 18px rgba(0,0,0,.9); }
#view-play.bancho-mode .lcd { border: 3px solid #ffb347; box-shadow: 0 0 0 2px #40260d, 0 0 16px rgba(255,160,60,.35), inset 0 0 22px rgba(0,0,0,.35); }
#view-play.bancho-mode .lcd.bancho-normal { background: linear-gradient(#2b3a67 0%, #8a4438 45%, #e2703a 78%, #ff9a3c); color: #fff7e8; }
#view-play.bancho-mode .lcd.bancho-art { background: linear-gradient(#5c0d0d, #b01e1e 55%, #d4a017); color: #fff; }
#view-play.bancho-mode .lcd.bancho-bonus { background: linear-gradient(#1d2c52, #35549e); color: #ffe9a8; }
#view-play.bancho-mode .lever { background: radial-gradient(circle at 35% 30%, #ffc98a, #e2703a 65%, #8a3c10); border-color: #40260d; color: #2b1503; }
#view-play.bancho-mode .stop-btn { background: radial-gradient(circle at 35% 30%, #3d4f7d, #141d33 70%); border-color: #ff8c42; color: #ffd9a0; }

/* ================= Tomato (Reno-style A-type): western casino cabinet =================
   Original CSS/text-art rendition evoking a flashy red/orange western
   casino cabinet: a rainbow lamp band across the top, a colorful upper
   panel, a silver control deck with red stop buttons, and a big
   western-style "トマト" logo panel at the bottom with money-bag and
   tomato motifs. No artwork from the real machine is used. And — like
   the real machine — nothing on the cabinet reveals whether the
   machine is in the bonus high-probability state. */
#view-play.rino-mode { background: radial-gradient(ellipse 130% 55% at 50% -5%, #6d1306 0%, #2a0d08 55%, #170806 100%); border-radius: 14px; }
#view-play.rino-mode .toolbar button { border-color: #a03a2a; }
#view-play.rino-mode .counter-band { background: #1d0a06; border-color: #a03a2a; }
#view-play.rino-mode .cabinet { background: linear-gradient(#f06414, #d63a0c 38%, #b3240a 72%, #8f1408); border: 3px solid #d4af37; outline: 1px solid #7a5c14; outline-offset: -6px; box-shadow: 0 0 24px rgba(255,110,30,.35), inset 0 0 34px rgba(90,10,0,.35); }
/* rainbow lamp band across the very top of the cabinet */
#view-play.rino-mode .cabinet::before { content: ''; display: block; height: 15px; border-radius: 8px; margin-bottom: 8px;
  background:
    radial-gradient(circle at 6px 50%, rgba(255,255,255,.95) 2.2px, rgba(255,255,255,0) 3.2px) 0 0 / 26px 100% repeat-x,
    linear-gradient(90deg, #ff2e2e, #ff8c1a 22%, #ffe93a 45%, #37d942 68%, #2ea8ff 86%, #b44dff);
  box-shadow: 0 0 12px rgba(255,200,60,.75), inset 0 -3px 5px rgba(0,0,0,.35); }
#view-play.rino-mode .cab-spins { background: rgba(40,4,0,.55); border-color: #d4af37; color: #ffd76a; }
#view-play.rino-mode .cab-spins b { color: #ffe93a; }
/* colorful upper panel (paytable-style board with casino motifs) */
#view-play.rino-mode .cab-deco { display: block; background: linear-gradient(#ffb03a, #f06414 55%, #d63a0c); border: 2px solid #d4af37; outline: 1px solid #7a5c14; outline-offset: -5px; border-radius: 6px; text-align: center; padding: 5px 4px 6px; margin-bottom: 6px; box-shadow: inset 0 2px 4px rgba(255,255,255,.45), inset 0 -4px 7px rgba(90,10,0,.4); }
#view-play.rino-mode .cab-deco-title { color: #fff6da; font-weight: bold; font-size: clamp(15px, 4.6vw, 20px); letter-spacing: .12em; text-shadow: 0 0 8px rgba(255,120,0,.8), 0 2px 0 #8f1408; }
#view-play.rino-mode .cab-deco-row { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 1px; }
#view-play.rino-mode .cab-seven { font-family: 'Times New Roman', serif; font-weight: bold; font-size: 26px; color: #ffe93a; transform: scaleX(1.4); text-shadow: 0 1px 0 #8f1408, 0 0 7px rgba(255,150,0,.7); }
#view-play.rino-mode .cab-card { color: #37d942; font-size: 19px; text-shadow: 0 1px 0 #14541d; }
#view-play.rino-mode .reel-frame { background: linear-gradient(#7a1408, #5c0d04); border: 2px solid #d4af37; border-radius: 10px; padding: 5px; box-shadow: inset 0 0 14px rgba(0,0,0,.5); }
#view-play.rino-mode .reels { background: #fffdf4; border: 2px solid #5c130a; box-shadow: inset 0 0 18px rgba(120,60,20,.25); }
#view-play.rino-mode .lcd { border: 3px solid #d4af37; box-shadow: 0 0 0 2px #5c130a, inset 0 0 18px rgba(0,0,0,.25); }
#view-play.rino-mode .lcd.rino-normal { background: linear-gradient(#fdf6e0, #f3dfae); color: #7a1408; }
#view-play.rino-mode .lcd.rino-bonus { background: linear-gradient(#8f1408, #c22e1c 55%, #e2543a); color: #fff3d6; }
/* silver control deck with red stop buttons, like the photo's machine */
#view-play.rino-mode .controls { background: linear-gradient(#f4f4f6, #cfd3da 55%, #a9aeb9); border: 1px solid #7d838f; border-radius: 10px; padding: 8px 6px; box-shadow: inset 0 2px 3px rgba(255,255,255,.8), inset 0 -3px 5px rgba(60,60,70,.35); }
#view-play.rino-mode .lever { background: radial-gradient(circle at 35% 30%, #ffb09a, #d63a22 65%, #8f1d0c); border-color: #5c130a; color: #fff3d6; }
#view-play.rino-mode .stop-btn { background: radial-gradient(circle at 35% 30%, #ff9a8a, #e0321e 60%, #a81e06); border-color: #6d0d02; color: #fff6da; text-shadow: 0 1px 1px rgba(90,0,0,.6); }
/* lower logo panel: big western-style トマト lettering with gold chain
   trim, a money bag and a tomato motif (generic emoji, original art) */
#view-play.rino-mode .cab-rino-bottom { display: block; margin-top: 9px; text-align: center; background: radial-gradient(ellipse 90% 120% at 50% 0%, #e2541e 0%, #c22e1c 55%, #8f1408); border: 3px solid #d4af37; outline: 1px solid #7a5c14; outline-offset: -7px; border-radius: 8px; padding: 7px 6px 8px; box-shadow: inset 0 0 22px rgba(90,10,0,.45); }
#view-play.rino-mode .crb-chain { color: #ffd700; font-size: 11px; letter-spacing: .55em; text-indent: .55em; text-shadow: 0 0 6px rgba(255,180,0,.8); }
#view-play.rino-mode .crb-main { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 1px; }
#view-play.rino-mode .crb-motif { font-size: clamp(28px, 8vw, 38px); filter: drop-shadow(0 2px 2px rgba(70,5,0,.55)); }
#view-play.rino-mode .crb-logo { font-weight: 900; font-size: clamp(40px, 12vw, 58px); letter-spacing: .06em; line-height: 1.05; color: #ff8c2e;
  text-shadow: 2px 0 0 #1e7a34, -2px 0 0 #1e7a34, 0 2px 0 #1e7a34, 0 -2px 0 #1e7a34, 2px 2px 0 #1e7a34, -2px 2px 0 #1e7a34, 2px -2px 0 #1e7a34, -2px -2px 0 #1e7a34, 0 4px 0 #6d0d02, 0 0 16px rgba(255,170,0,.55); }
#view-play.rino-mode .crb-sub { color: #ffe9a8; font-family: 'Times New Roman', serif; font-weight: bold; font-size: clamp(11px, 3.4vw, 14px); letter-spacing: .34em; text-indent: .34em; margin-top: 2px; text-shadow: 0 1px 0 #6d0d02; }

/* ================= I am JOKER: full-cabinet layout (original CSS/emoji rendition) =================
   Decorations exist in the DOM for every model but are only displayed in
   juggler-mode. No 1BET button anywhere: the game is 3-medal bet only. */
.cab-top, .cab-deco, .cab-pay, .cab-counter, .cab-bottom, .cab-rino-bottom, .line-nums, .reel-side { display: none; }
.reel-frame { position: relative; }
/* ART addition callout (Bancho): a big "+○○G" splashed over the reels when
   a battle win adds ART games. It pops in, then stays up for about two more
   games (the client counts finished games) instead of vanishing at once. */
#art-add-display { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; pointer-events: none; font-weight: 900; font-size: clamp(46px, 14vw, 88px); letter-spacing: .04em; color: #ffd700; text-shadow: 0 0 18px rgba(255,150,0,.85), 0 0 42px rgba(255,80,0,.5), 0 3px 0 #7a2d00, 0 6px 14px rgba(0,0,0,.8); background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(20,8,0,.45), rgba(20,8,0,0) 75%); animation: artAddPop .38s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes artAddPop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
#view-play.juggler-mode { background: radial-gradient(ellipse 130% 55% at 50% -5%, #33302c 0%, #17150f 60%, #100e0a 100%); border-radius: 14px; }
#view-play.juggler-mode .counter-band { background: #f3ecdd; border-color: #c9b98f; color: #333; }
#view-play.juggler-mode .counter-band span { color: #6b6250; }
#view-play.juggler-mode .counter-band b { color: #a33327; }
#view-play.juggler-mode .cabinet { background: linear-gradient(#eef0f3, #c6cad3 55%, #dde0e6); border: 3px solid #b8860b; box-shadow: 0 0 18px rgba(220,200,150,.25), inset 0 0 24px rgba(120,120,140,.18); }
/* top red panel: data display (総回転数 / ボーナス間 / ビック回数 / レギラー回数),
   replacing the old JOKER badge. The generic cab-spins bar is hidden on
   JOKER because total spins now lives in this panel. */
#view-play.juggler-mode .cab-top { display: flex; gap: 6px; align-items: stretch; background: linear-gradient(#ff7a5c, #e0321e 60%, #b01e10); border-radius: 8px; padding: 5px 6px 6px; margin-bottom: 6px; box-shadow: inset 0 2px 3px rgba(255,255,255,.5), inset 0 -3px 5px rgba(0,0,0,.3); }
#view-play.juggler-mode .cab-spins { display: none; }
#view-play.juggler-mode .cab-data { flex: 1; min-width: 0; background: #10101a; border: 2px solid #7a5c14; border-radius: 6px; text-align: center; padding: 3px 2px; box-shadow: inset 0 0 8px rgba(0,0,0,.9); }
#view-play.juggler-mode .cd-label { display: block; font-size: 9.5px; letter-spacing: .06em; color: #d4af37; white-space: nowrap; }
#view-play.juggler-mode .cd-val { display: block; font-family: 'Courier New', monospace; font-weight: bold; font-size: 18px; letter-spacing: .08em; color: #ff4d6d; text-shadow: 0 0 7px rgba(255,60,100,.75); }
/* navy x gold deco panel */
#view-play.juggler-mode .cab-deco { display: block; background: linear-gradient(#141f42, #0d1430); border: 2px solid #d4af37; outline: 1px solid #7a5c14; outline-offset: -5px; border-radius: 6px; text-align: center; padding: 5px 4px 6px; margin-bottom: 5px; }
#view-play.juggler-mode .cab-deco-title { color: #ffd700; font-weight: bold; font-size: clamp(15px, 4.6vw, 20px); letter-spacing: .12em; text-shadow: 0 0 8px rgba(255,180,0,.6); }
#view-play.juggler-mode .cab-deco-row { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 1px; }
#view-play.juggler-mode .cab-seven { font-family: 'Times New Roman', serif; font-weight: bold; font-size: 26px; color: #e0321e; transform: scaleX(1.4); text-shadow: 0 1px 0 #7a0d02; }
#view-play.juggler-mode .cab-card { color: #ffd700; font-size: 19px; }
/* paytable strip above the window */
#view-play.juggler-mode .cab-pay { display: block; background: #0d1430; color: #e8d9a0; border: 1px solid #7a5c14; border-radius: 4px; font-size: 10.5px; text-align: center; padding: 3px 6px; margin-bottom: 5px; line-height: 1.45; }
/* reel window: centered, with line numbers on the frame and status labels on the right */
#view-play.juggler-mode .reels { background: #0d1030; border: 2px solid #d4af37; box-shadow: inset 0 0 16px rgba(0,0,0,.8); padding: 8px 24px; }
#view-play.juggler-mode .reel { max-width: none; }
#view-play.juggler-mode .line-nums { display: flex; flex-direction: column; justify-content: space-evenly; position: absolute; left: 4px; top: 0; bottom: 0; width: 18px; text-align: center; font-weight: bold; font-size: 16px; z-index: 2; }
#view-play.juggler-mode .line-nums .ln3 { color: #ff8c42; }
#view-play.juggler-mode .line-nums .ln2 { color: #51cf66; }
#view-play.juggler-mode .line-nums .ln1 { color: #4dabf7; }
#view-play.juggler-mode .reel-side { display: flex; flex-direction: column; justify-content: center; gap: 5px; position: absolute; right: 3px; top: 0; bottom: 0; width: 21px; text-align: center; font-size: 9px; font-weight: bold; z-index: 2; }
#view-play.juggler-mode .reel-side .rs-start { color: #ff5c5c; }
#view-play.juggler-mode .reel-side .rs-replay { color: #38d9c0; }
#view-play.juggler-mode .reel-side .rs-wait { color: #51cf66; }
#view-play.juggler-mode .reel-side .rs-insert { color: #ffd700; }
/* one row under the window: [JOKER lamp] [CREDIT] [PAY OUT] (COUNT moved to the cabinet-top spins display) */
#view-play.juggler-mode .lamp-row { gap: 8px; }
#view-play.juggler-mode .cab-counter { display: block; flex: 1; min-width: 0; background: #10101a; border: 2px solid #7a5c14; border-radius: 6px; text-align: center; padding: 4px 2px 3px; box-shadow: inset 0 0 10px rgba(0,0,0,.9); }
#view-play.juggler-mode .cc-val { display: block; font-family: 'Courier New', monospace; font-weight: bold; font-size: 19px; letter-spacing: .12em; color: #ff4d6d; text-shadow: 0 0 7px rgba(255,60,100,.75); }
#view-play.juggler-mode .cc-label { display: block; font-size: 9.5px; letter-spacing: .22em; color: #d4af37; margin-top: 1px; }
/* the "WIN ○枚！" text is not shown on JOKER: it duplicates the PAY OUT counter */
#view-play.juggler-mode .win-display { display: none; }
#view-play.juggler-mode .joker-lamp { flex: none; border-radius: 999px; padding: 7px 15px; font-size: 20px; background: #26262c; color: #7a7261; border: 3px solid #8f8574; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
#view-play.juggler-mode .joker-lamp.lit { box-shadow: 0 0 26px rgba(255,180,40,.8), inset 0 0 10px rgba(255,220,120,.7); }
#view-play.juggler-mode .joker-lamp.lit:not(.rainbow) { background: radial-gradient(ellipse 90% 90% at 50% 40%, #fff3b0, #ffb52e); color: #6e4a00; border-color: #d4a017; text-shadow: 0 0 12px #ffdf6b; }
/* silver control panel: one row — lever on the left, STOP x3 beside it.
   (Strict under-reel alignment was relaxed by the user in favour of this
   compact one-row deck, so the stop row no longer mirrors the reel grid.) */
#view-play.juggler-mode .controls { gap: 10px; background: linear-gradient(#f7f7f9, #ccd0d8); border: 1px solid #9aa0ab; border-radius: 12px; padding: 8px 10px; box-shadow: inset 0 1px 2px #fff, 0 2px 5px rgba(0,0,0,.2); }
#view-play.juggler-mode .lever { width: 64px; height: 64px; font-size: 13px; border-color: #8a2b1d; }
#view-play.juggler-mode .stop-buttons { flex: 1; gap: 8px; }
#view-play.juggler-mode .stop-btn { flex: 1; width: auto; height: 52px; background: radial-gradient(circle at 35% 30%, #f2f2f5, #9aa0ab 72%); border: 3px solid #ff7bac; box-shadow: 0 0 0 2px #ffd3e4, 0 2px 5px rgba(0,0,0,.35); color: #333; }
#view-play.juggler-mode .sub-controls { color: #333; }
#view-play.juggler-mode .btn-lend { background: #2b3245; color: #ffe9a8; border-color: #7a5c14; }
/* bottom panel: clown + banner */
#view-play.juggler-mode .cab-bottom { display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(#141f42, #0d1430); border: 2px solid #d4af37; outline: 1px solid #7a5c14; outline-offset: -5px; border-radius: 6px; margin-top: 8px; padding: 7px 6px; }
#view-play.juggler-mode .cab-clown { font-size: 26px; }
#view-play.juggler-mode .cab-banner { font-family: 'Times New Roman', serif; font-weight: bold; font-size: clamp(19px, 6vw, 27px); letter-spacing: .1em; color: #ffd700; text-shadow: 0 0 9px rgba(255,180,0,.55), 0 2px 2px #000; }
#view-play.juggler-mode .cab-stars { color: #ffd700; font-size: 13px; letter-spacing: .2em; }

/* ================= machine detail (data screen before seating) =================
   Original layout in this hall's dark style: header with prev/next,
   business-day tabs, data-counter columns, slump graph, bonus history. */
.detail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.detail-nav { flex: none; width: 46px; height: 46px; font-size: 17px; border-radius: 10px; background: #2a3049; border: 2px solid #b8860b; color: #ffd75e; }
.detail-nav:disabled { opacity: .35; }
#detail-title { flex: 1; text-align: center; font-size: 19px; font-weight: bold; color: #ffe9a8; }
.detail-tabs { display: flex; gap: 8px; margin-bottom: 6px; }
.detail-tab { flex: 1; padding: 10px; font-size: 15px; font-weight: bold; border-radius: 9px; background: #232a45; border: 2px solid #3a4160; color: #bbc; }
.detail-tab.active { background: #b8860b; border-color: #ffd700; color: #fff; box-shadow: 0 0 8px rgba(255,215,0,.35); }
.detail-date { text-align: center; font-size: 12.5px; color: #9aa3b8; margin-bottom: 10px; }
.detail-main { display: flex; gap: 10px; align-items: stretch; }
.detail-left { flex: 0 0 42%; display: flex; flex-direction: column; gap: 8px; }
.detail-item { background: #1e2438; border: 1px solid #3a4160; border-radius: 9px; padding: 7px 10px; }
.detail-label { display: block; font-size: 12px; color: #9aa3b8; }
.detail-value { display: block; text-align: right; font-family: 'Courier New', monospace; font-weight: bold; font-size: 24px; color: #fff; }
.detail-right { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.detail-counter { border-radius: 9px; padding: 8px 10px; border: 1px solid #3a4160; background: #232038; }
.detail-counter.counter-bb { background: linear-gradient(#3d1428, #2a0f1e); border-color: #8a2d55; }
.detail-counter.counter-rb { background: linear-gradient(#12283d, #0d1c2c); border-color: #2d5a8a; }
.detail-counter.counter-at { background: linear-gradient(#3d2c10, #2a1e0a); border-color: #8a6d1f; }
.detail-counter.counter-gg { background: linear-gradient(#33300f, #242203); border-color: #8a851f; }
.dc-top { display: flex; align-items: center; justify-content: space-between; }
.dc-label { font-weight: bold; font-size: 21px; letter-spacing: .08em; color: #eef1fa; }
.dc-big { font-family: 'Courier New', monospace; font-weight: bold; font-size: 30px; color: #ffd75e; text-shadow: 0 0 8px rgba(255,180,0,.5); }
.dc-others { display: flex; gap: 14px; margin-top: 4px; }
.dc-other { display: flex; align-items: baseline; gap: 5px; }
.dc-other-label { font-size: 11px; color: #9aa3b8; }
.dc-other-num { font-family: 'Courier New', monospace; font-weight: bold; font-size: 16px; color: #c6cdde; }
.detail-h { font-size: 14px; margin: 14px 0 6px; border-left: 4px solid #b8860b; padding-left: 7px; }
#detail-slump { width: 100%; height: 130px; background: #10131f; border: 1px solid #3a4160; border-radius: 8px; }
.detail-history { display: flex; flex-wrap: wrap; gap: 4px; align-items: stretch; }
.hist-bar { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40px; padding: 3px 2px; border-radius: 5px; font-size: 11px; font-weight: bold; color: #fff; background: #3a4160; border: 1px solid #556; overflow: hidden; }
.hist-bar small { font-size: 9.5px; font-weight: normal; opacity: .85; }
.hist-bar.kind-BB { background: #7a1d45; border-color: #c24a7d; }
.hist-bar.kind-RB { background: #1d447a; border-color: #4a86c2; }
.hist-bar.kind-ART { background: #7a5210; border-color: #c2902e; }
.hist-bar.kind-GG { background: #6d6410; border-color: #b3a72e; }
.hist-bar.kind-now { background: #22263a; border-style: dashed; color: #9aa3b8; min-width: 44px; }
.detail-empty { font-size: 13px; color: #9aa3b8; }
.detail-note { font-size: 12px; color: #9aa3b8; margin-top: 8px; }
.detail-seat-area { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
#detail-seat-status { text-align: center; font-size: 14px; font-weight: bold; }
#btn-detail-seat { font-size: 17px; }
#btn-detail-back { align-self: center; }

.rank-table .rank-num { text-align: center; font-weight: bold; white-space: nowrap; }
.rank-table .rank-pts { text-align: right; white-space: nowrap; }
.rank-table tr.rank-me td { background: #4a3a10; border-color: #daa520; font-weight: bold; }
.rank-note { font-size: 12px; color: #bbc; margin: 6px 0 0; }
.rank-model { margin: 14px 0 4px; font-size: 15px; color: #ffd75e; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 12px; }
.modal-card { background: #1e2438; border: 2px solid #b8860b; border-radius: 12px; padding: 18px; max-width: 560px; width: 100%; max-height: 86vh; overflow: auto; position: relative; }
.modal-close { position: absolute; top: 8px; right: 8px; }

/* ---- Trophy splash (feature-end lottery win, display only) ---- */
#trophy-display { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse 78% 68% at 50% 50%, rgba(24,16,0,.55), rgba(24,16,0,0) 78%); animation: trophyPop .38s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes trophyPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.trophy-card { text-align: center; padding: 10px 18px 12px; }
.trophy-title { font-weight: 900; font-size: clamp(19px, 5.6vw, 27px); letter-spacing: .06em; color: #ffe97a; text-shadow: 0 0 14px rgba(255,180,0,.8), 0 2px 0 #7a2d00, 0 4px 10px rgba(0,0,0,.8); margin-bottom: 6px; }
.trophy-name { font-weight: bold; font-size: clamp(15px, 4.4vw, 20px); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 10px rgba(0,0,0,.6); margin: 8px 0 6px; }
/* cup: original CSS art — bowl / handles / stem / base, colored per tier */
.trophy-cup { position: relative; width: 118px; height: 104px; margin: 2px auto 0; --tier-bg: #ccc; --tier-edge: #999; filter: drop-shadow(0 4px 8px rgba(0,0,0,.55)); }
.trophy-bowl { position: absolute; top: 0; left: 19px; width: 80px; height: 56px; border-radius: 8px 8px 42px 42px / 8px 8px 36px 36px; background: var(--tier-bg); box-shadow: inset 0 -8px 12px rgba(0,0,0,.28), inset 0 6px 8px rgba(255,255,255,.35); }
.trophy-handle { position: absolute; top: 8px; width: 24px; height: 28px; border: 7px solid var(--tier-edge); border-radius: 50%; z-index: -1; }
.trophy-handle.left { left: 0; }
.trophy-handle.right { right: 0; }
.trophy-stem { position: absolute; top: 56px; left: 51px; width: 16px; height: 22px; background: var(--tier-bg); box-shadow: inset 0 -4px 6px rgba(0,0,0,.25); }
.trophy-base { position: absolute; top: 78px; left: 32px; width: 54px; height: 13px; border-radius: 5px; background: var(--tier-bg); box-shadow: inset 0 -4px 6px rgba(0,0,0,.3), inset 0 3px 5px rgba(255,255,255,.3); }
.trophy-cup.tier-bronze { --tier-bg: linear-gradient(160deg, #f2bc85, #cd7f32 55%, #8c5524); --tier-edge: #a9713a; }
.trophy-cup.tier-silver { --tier-bg: linear-gradient(160deg, #ffffff, #c9c9d4 55%, #8e8e99); --tier-edge: #a5a5b1; }
.trophy-cup.tier-gold { --tier-bg: linear-gradient(160deg, #ffefa0, #ffd700 50%, #c99600); --tier-edge: #d4af37; }
.trophy-cup.tier-eva { --tier-bg: repeating-linear-gradient(45deg, #6a1fb0 0 11px, #2fe07a 11px 22px); --tier-edge: #6a1fb0; }
.trophy-cup.tier-rainbow { --tier-bg: linear-gradient(125deg, #ff004c, #ff8a00 22%, #ffee00 45%, #00c853 68%, #2979ff 85%, #aa00ff); --tier-edge: #ff4081; }
/* mini trophy cup used for trophy tags （札） on machine tiles */
.cup-mini-wrap { display: inline-block; width: 32px; height: 29px; overflow: hidden; vertical-align: -9px; }
.trophy-cup.mini { display: block; transform: scale(0.27); transform-origin: top left; margin: 0; }

/* ---- area tabs + horse racing (game center) ---- */
.area-tabs { display: flex; gap: 8px; margin: 10px 0; }
.area-tab { flex: 1; padding: 10px; font-size: 15px; font-weight: bold; border-radius: 8px; border: 1px solid #555; background: #1b2030; color: #ccc; cursor: pointer; }
.area-tab.active { background: #7a5b00; border-color: #daa520; color: #ffe9a8; }
.race-head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0; }
#race-title { font-size: 19px; font-weight: bold; color: #ffd94d; }
#race-phase { font-size: 14px; color: #ffe9a8; }
#race-canvas { width: 100%; display: block; background: #14532d; border-radius: 10px; border: 2px solid #2f7a3d; }
#race-live-order { font-size: 13px; color: #cfe8ff; margin: 6px 0 2px; min-height: 18px; }
#race-commentary { background: #0c0f18; border: 1px solid #444; border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.7; height: 96px; overflow-y: auto; color: #eee; }
.race-voice { display: block; margin: 6px 0 2px; font-size: 13px; color: #ccc; }
.race-h { color: #ffd94d; border-left: 4px solid #daa520; padding-left: 8px; margin: 16px 0 8px; font-size: 16px; }
#race-count { font-size: 13px; color: #9fb4d8; margin: 2px 0 4px; }
#race-seats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.rseat { background: #1b2030; border: 1px solid #333; border-radius: 8px; padding: 5px 2px; text-align: center; font-size: 13px; color: #cfe3ff; cursor: pointer; min-height: 42px; }
.rseat .rseat-name { display: block; font-size: 9px; color: #9fb4d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rseat.occ { cursor: default; }
.rseat.me { border-color: #ffd94d; background: #3a3205; }
#race-seat-info { margin: 6px 0 2px; font-size: 13px; color: #cfe3ff; }
.rrow { display: grid; grid-template-columns: 30px 1fr auto auto auto; gap: 6px; align-items: center; background: #1b2030; border: 1px solid #333; border-radius: 8px; padding: 7px 9px; margin-bottom: 5px; cursor: pointer; font-size: 14px; }
.rrow.sel { border-color: #ffd94d; background: #3a3205; }
.rrow .rno { width: 26px; height: 26px; border-radius: 50%; text-align: center; line-height: 26px; font-weight: bold; font-size: 14px; }
.rrow .rname { font-weight: bold; color: #fff; }
.rrow .rstyle { color: #9fd0ff; font-size: 12px; }
.rrow .rodds { color: #ffd94d; font-size: 13px; text-align: right; }
.race-bet-box { background: #1b2030; border: 1px solid #333; border-radius: 10px; padding: 10px; }
.race-type-tabs { display: flex; gap: 6px; }
.rtype { flex: 1; padding: 8px; border-radius: 6px; border: 1px solid #555; background: #11141f; color: #ccc; font-weight: bold; cursor: pointer; }
.rtype.active { background: #7a5b00; color: #ffe9a8; border-color: #daa520; }
#race-sel-info { margin: 8px 0; font-size: 14px; color: #cfe8ff; }
.race-amount { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.race-amount input { width: 90px; padding: 7px; font-size: 15px; border-radius: 6px; border: 1px solid #555; background: #11141f; color: #fff; }
.ramt { padding: 7px 10px; border-radius: 6px; border: 1px solid #555; background: #11141f; color: #ccc; cursor: pointer; }
#btn-race-bet { width: 100%; padding: 11px; font-size: 16px; font-weight: bold; border-radius: 8px; border: none; background: #b8860b; color: #fff; cursor: pointer; }
#btn-race-bet:disabled { background: #555; color: #aaa; }
#race-bet-msg { margin-top: 6px; font-size: 13px; min-height: 18px; }
.bet-line { font-size: 13px; padding: 4px 0; border-bottom: 1px dashed #333; }
.bet-line .win { color: #7dff8a; font-weight: bold; }
.bet-line .lose { color: #999; }
#race-result, #race-recent, #race-my-history { font-size: 14px; line-height: 1.8; }
#race-result .res-top { color: #ffd94d; font-weight: bold; }
