﻿/* ===== Borneo Dream ===== */
html, body { margin: 0; height: 100%; background: #04120f; overflow-x: hidden; }
body { font-family: 'Segoe UI', Roboto, sans-serif; color: #f6e7b4; }
button { font-family: inherit; }
button:disabled { opacity: .45; cursor: not-allowed; }
.borneo-root { min-height: 100vh; }

.game-shell { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 8px 10px 14px; box-sizing: border-box; overflow: hidden; gap: 6px; }
.game-shell > * { position: relative; z-index: 2; }
.game-shell.shake { animation: shake .4s linear 2; }
@keyframes shake { 25% { transform: translate(-4px, 2px); } 50% { transform: translate(4px, -2px); } 75% { transform: translate(-2px, -3px); } }

/* ---- Background scene ---- */
.game-shell > .bg-layer, .game-shell > .bg-temple, .game-shell > .vines, .game-shell > .mist,
.game-shell > .rays, .game-shell > .fireflies, .game-shell > .fx-layer { position: absolute; z-index: 0; pointer-events: none; }
.bg-layer { inset: 0; transition: background 1.2s; background:
    radial-gradient(ellipse at 50% -10%, rgba(255,230,150,.35), transparent 45%),
    radial-gradient(ellipse at 50% 30%, rgba(80,200,170,.30), transparent 60%),
    radial-gradient(ellipse at 10% 100%, rgba(20,120,60,.7), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(10,100,90,.7), transparent 50%),
    linear-gradient(#0d3a30, #062019 60%, #030d0a); }
.free-mode .bg-layer { background:
    radial-gradient(ellipse at 50% -10%, rgba(180,160,255,.45), transparent 45%),
    radial-gradient(ellipse at 50% 30%, rgba(80,120,255,.35), transparent 60%),
    radial-gradient(ellipse at 10% 100%, rgba(90,40,160,.6), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(30,80,180,.6), transparent 50%),
    linear-gradient(#141a48, #0a0f2a 60%, #04060f); }
/* stepped temple silhouette */
.bg-temple { left: 50%; bottom: 0; width: min(900px, 120vw); height: 55vh; transform: translateX(-50%); opacity: .35;
    background:
    linear-gradient(#021310, #021310) 50% 100% / 90% 18% no-repeat,
    linear-gradient(#03201a, #03201a) 50% 82% / 70% 16% no-repeat,
    linear-gradient(#042a22, #042a22) 50% 66% / 50% 16% no-repeat,
    linear-gradient(#05332a, #05332a) 50% 50% / 32% 16% no-repeat,
    linear-gradient(#063c31, #063c31) 50% 34% / 16% 16% no-repeat; }
.vines { top: 0; width: 120px; height: 100%; opacity: .7;
    background: repeating-linear-gradient(180deg, transparent 0 18px, rgba(40,140,60,.55) 18px 30px),
                linear-gradient(90deg, rgba(10,60,30,.9), transparent);
    -webkit-mask: linear-gradient(#000, transparent 85%); mask: linear-gradient(#000, transparent 85%); }
.vines.left { left: 0; }
.vines.right { right: 0; transform: scaleX(-1); }
.mist { inset: 0; background: linear-gradient(90deg, transparent, rgba(200,255,240,.08), transparent); background-size: 200% 100%; animation: mist 18s linear infinite; }
@keyframes mist { to { background-position: -200% 0; } }
.rays { left: 50%; top: -20%; width: 140vw; height: 90vh; transform: translateX(-50%);
    background: repeating-conic-gradient(from 180deg at 50% 0%, rgba(255,240,180,.06) 0 4deg, transparent 4deg 12deg);
    -webkit-mask: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); mask: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
    animation: sway 12s ease-in-out infinite alternate; }
@keyframes sway { to { transform: translateX(-50%) rotate(4deg); } }
.fireflies { inset: 0; }
.fireflies span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffe98a; box-shadow: 0 0 10px 3px #ffd54a;
    left: calc(var(--i) * 4.2% + 1%); top: calc((var(--i) * 37 % 95) * 1%); animation: fly calc(4s + var(--i) * .35s) ease-in-out infinite alternate; }
.free-mode .fireflies span { background: #c9d4ff; box-shadow: 0 0 10px 3px #7f9bff; }
@keyframes fly { from { transform: translate(0,0); opacity: .15; } to { transform: translate(30px,-50px); opacity: 1; } }

/* ---- Header ---- */
.game-header { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; }
.logo { margin: 0; text-align: center; line-height: .9; font-family: Georgia, 'Times New Roman', serif; }
.logo span { display: block; font-size: clamp(30px, 5.5vw, 52px); letter-spacing: 3px; font-weight: 900;
    background: linear-gradient(#fff6c8, #ffd35a 45%, #b37a12 55%, #ffe58a); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 3px 0 #4a2e00) drop-shadow(0 0 14px rgba(255,200,60,.55)); }
.logo small { font-size: clamp(18px, 3.4vw, 32px); color: #4ff0cf; letter-spacing: 9px; text-shadow: 0 0 12px rgba(60,255,200,.7); }
.fs-counter { display: flex; align-items: baseline; gap: 6px; background: linear-gradient(#2a3f9a, #141f55); border: 2px solid #9fb8ff; border-radius: 14px; padding: 6px 14px; font-weight: 700; box-shadow: 0 0 20px rgba(120,150,255,.6); }
.fs-counter b { font-size: 26px; color: #fff; }
.fs-counter em { font-style: normal; opacity: .7; }
.fs-mult { margin-left: 8px; color: #ffe27a; font-size: 22px; text-shadow: 0 0 10px #ffb400; }
.demo-tag { font-size: 11px; opacity: .65; }

/* ---- Stage ---- */
.stage { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; max-width: 1150px; }
.side-panel { display: flex; flex-direction: column; gap: 10px; width: 150px; }
.info-card { background: linear-gradient(rgba(8,45,36,.92), rgba(3,20,16,.92)); border: 2px solid #b8902f; border-radius: 12px; padding: 10px; font-size: 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.info-card b { color: #ffd35a; font-size: 16px; letter-spacing: 1px; }
.info-card .ic { font-size: 34px; animation: bob 3s ease-in-out infinite; }
.info-card.lines b { font-size: 34px; }
.glow-gold { box-shadow: 0 0 14px rgba(255,200,70,.35); }
.glow-blue { border-color: #6fc8ff; box-shadow: 0 0 14px rgba(90,180,255,.45); }
@keyframes bob { 50% { transform: translateY(-4px); } }
.mult-card .mult-val { font-size: 40px; color: #fff; text-shadow: 0 0 16px #6fc8ff; animation: pop .5s ease-out; }
@keyframes pop { from { transform: scale(2); opacity: 0; } }
.ladder { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.ladder i { font-style: normal; font-size: 10px; padding: 1px 4px; border-radius: 5px; background: #0a1a3a; opacity: .5; }
.ladder i.on { background: #3d6aff; opacity: 1; color: #fff; }

/* ---- Reels ---- */
.reel-frame { position: relative; padding: 12px; border-radius: 16px; flex: 0 1 660px;
    background: linear-gradient(145deg, #fff0a8, #c8942a 20%, #6b4a0e 50%, #c8942a 80%, #fff0a8);
    box-shadow: 0 0 50px rgba(255,200,70,.35), 0 10px 30px rgba(0,0,0,.6), inset 0 0 12px #000; }
.free-mode .reel-frame { box-shadow: 0 0 60px rgba(110,140,255,.6), 0 10px 30px rgba(0,0,0,.6), inset 0 0 12px #000; }
.frame-gem { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #b6ffe8, #10b585 50%, #04473a); box-shadow: 0 0 12px #3fffc5; z-index: 6; }
.frame-gem.tl { top: -8px; left: -8px; } .frame-gem.tr { top: -8px; right: -8px; }
.frame-gem.bl { bottom: -8px; left: -8px; } .frame-gem.br { bottom: -8px; right: -8px; }
.reel-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: radial-gradient(ellipse at 50% 30%, #0b3a30, #031511); padding: 6px; border-radius: 8px; }
.reel { position: relative; display: grid; grid-template-rows: repeat(3, 1fr); gap: 6px; overflow: hidden; border-radius: 8px; aspect-ratio: 1 / 3.1; }
.reel .strip { display: flex; flex-direction: column; gap: 6px; animation: roll .22s linear infinite; }
.reel.spinning { grid-template-rows: 1fr; }
@keyframes roll { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.reel.anticipation { box-shadow: 0 0 0 3px #6fe8ff, 0 0 30px 8px #3fb8ff; animation: antic .4s ease-in-out infinite alternate; }
.reel.anticipation .strip { animation-duration: .12s; }
@keyframes antic { to { box-shadow: 0 0 0 3px #fff, 0 0 40px 14px #6fe8ff; } }
.reel.wild-reel { box-shadow: 0 0 0 3px #ffd35a, 0 0 30px 6px #ffb400; }
.reel.wild-reel .tile { background: radial-gradient(circle, #a8820f, #3a2a04); animation: wildglow 1s ease-in-out infinite alternate; }
@keyframes wildglow { to { filter: brightness(1.3); } }
.wild-reel-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-12deg); font-weight: 900; font-size: clamp(16px, 3vw, 28px); letter-spacing: 3px; color: #fff6c8; text-shadow: 0 0 12px #ffb400, 0 2px 0 #4a2e00; animation: pop .6s ease-out; z-index: 4; }
.line-overlay { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); pointer-events: none; z-index: 5; }
.line-overlay polyline { fill: none; stroke: #5ffbe0; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-width: 5px; filter: drop-shadow(0 0 6px #5ffbe0); stroke-dasharray: 2000; animation: draw .6s ease-out; }
@keyframes draw { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }

/* ---- Tiles ---- */
.tile { aspect-ratio: 1 / 1; border-radius: 10px; display: flex; align-items: center; justify-content: center; position: relative; border: 2px solid rgba(255,215,110,.35);
    background: radial-gradient(circle at 50% 35%, #15493f, #061c18); box-shadow: inset 0 -6px 12px rgba(0,0,0,.5), inset 0 3px 6px rgba(255,255,255,.08); }
.glyph { font-size: clamp(26px, 6.5vw, 54px); line-height: 1; filter: drop-shadow(0 4px 4px rgba(0,0,0,.75)); }
.tile .tag { position: absolute; bottom: 2px; font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: 1px; color: #fff3b0; background: rgba(0,0,0,.55); padding: 0 5px; border-radius: 6px; }
.k-wild { background: radial-gradient(circle, #9a7614, #2c2305); border-color: #ffd35a; }
.k-wild .glyph { animation: bob 2.4s ease-in-out infinite; }
.k-scatter { background: radial-gradient(circle, #1f7ab0, #051c30); border-color: #5fe0ff; }
.k-scatter .glyph { filter: drop-shadow(0 0 10px #5fe0ff); }
.k-high { border-color: #f0b84a; background: radial-gradient(circle at 50% 35%, #4a3410, #1a1205); }
.sym-emerald .glyph { filter: hue-rotate(-70deg) saturate(2.2) drop-shadow(0 0 8px #2fff9a); }
.sym-sapphire .glyph { filter: drop-shadow(0 0 8px #3a9bff); }
.sym-orchid .glyph { filter: drop-shadow(0 0 8px #ff5fd0); }
.sym-coin .glyph { filter: drop-shadow(0 0 8px #ffc83a); }
.sym-a .glyph, .sym-k .glyph, .sym-q .glyph, .sym-j .glyph { font-family: Georgia, serif; font-weight: 900; -webkit-text-stroke: 1px rgba(0,0,0,.4); }
.sym-a .glyph { color: #ff5252; } .sym-k .glyph { color: #ffb43a; }
.sym-q .glyph { color: #c47bff; } .sym-j .glyph { color: #4cb0ff; }
.tile.blur { filter: blur(2px) brightness(.85); }
.tile.drop { animation: drop .38s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--d)); }
@keyframes drop { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }
.tile.win { animation: winpulse .8s ease-in-out infinite; border-color: #fff1a8; box-shadow: 0 0 20px 5px #ffd35a, inset 0 0 14px #ffd35a; z-index: 3; }
.tile.win::after { content: ''; position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); background-size: 250% 100%; animation: shine 1.2s linear infinite; }
@keyframes winpulse { 50% { transform: scale(1.08); } }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* ---- Banners & win display ---- */
.feature-banner { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); z-index: 20; pointer-events: none; font-size: clamp(20px, 4vw, 40px); font-weight: 900; letter-spacing: 3px; white-space: nowrap;
    color: #fff6c8; text-shadow: 0 0 18px #ffb400, 0 3px 0 #4a2e00; animation: banner 2.2s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: translateX(-50%) scale(.4); } 15% { opacity: 1; transform: translateX(-50%) scale(1.1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-30px); } }
.line-info { min-height: 20px; font-size: 14px; color: #8ff3df; text-shadow: 0 0 6px rgba(0,0,0,.8); }
.bigwin-overlay { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(60,40,0,.55), rgba(0,0,0,.8)); cursor: pointer; animation: fadein .3s; }
.bigwin-overlay::before { content: ''; position: absolute; width: 900px; height: 900px; background: repeating-conic-gradient(rgba(255,210,80,.18) 0 10deg, transparent 10deg 20deg); border-radius: 50%; animation: spinr 14s linear infinite; -webkit-mask: radial-gradient(#000, transparent 65%); mask: radial-gradient(#000, transparent 65%); }
.bigwin-title { position: relative; font-family: Georgia, serif; font-weight: 900; font-size: clamp(44px, 10vw, 96px); letter-spacing: 4px; animation: zoom .6s cubic-bezier(.3,1.6,.5,1);
    background: linear-gradient(#fff6c8, #ffd35a 45%, #b37a12 55%, #ffe58a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #4a2e00) drop-shadow(0 0 20px #ffb400); }
.tier-mega .bigwin-title { filter: drop-shadow(0 4px 0 #4a2e00) drop-shadow(0 0 26px #ff6a00); }
.tier-epic .bigwin-title { background: linear-gradient(#ffffff, #9ff 30%, #ff7af0 60%, #ffe58a); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 4px 0 #2a004a) drop-shadow(0 0 30px #c45cff); }
.bigwin-amount { position: relative; font-size: clamp(36px, 8vw, 72px); font-weight: 900; color: #fff; text-shadow: 0 0 20px #ffb400; font-variant-numeric: tabular-nums; }
.bigwin-overlay small { position: relative; opacity: .7; margin-top: 10px; }
@keyframes zoom { from { transform: scale(.2); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }

/* coin shower */
.fx-layer { inset: 0; z-index: 45 !important; overflow: hidden; }
.fx-coin { position: absolute; top: -40px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c8, #ffd35a 40%, #a06c0a); box-shadow: 0 0 10px #ffb400; animation: coinfall linear forwards; }
@keyframes coinfall { to { transform: translate(var(--drift), 110vh) rotateY(1080deg); } }

/* ---- Controls ---- */
.controls { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; width: 100%; max-width: 1000px;
    background: linear-gradient(rgba(10,45,36,.92), rgba(3,18,14,.95)); border: 2px solid #b8902f; border-radius: 40px; padding: 8px 18px; box-sizing: border-box; box-shadow: 0 6px 24px rgba(0,0,0,.6); }
.credit { min-width: 110px; text-align: center; background: #031511; border: 1px solid #6c551c; border-radius: 12px; padding: 4px 10px; }
.credit small { display: block; font-size: 10px; letter-spacing: 2px; color: #d6b25a; }
.credit strong { font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; }
.credit.hl strong { color: #ffe27a; text-shadow: 0 0 8px #ffb400; }
.bet-box { display: flex; align-items: center; gap: 6px; }
.round { border-radius: 50%; border: 2px solid #d8aa3a; background: radial-gradient(#1a5448, #06201b); color: #ffe27a; cursor: pointer; font-size: 18px; transition: transform .1s; }
.round:not(:disabled):active, .pill:not(:disabled):active { transform: scale(.9); }
.round.sm { width: 44px; height: 44px; }
.pill { border-radius: 14px; border: 2px solid #d8aa3a; background: linear-gradient(#7a5a12, #3a2a04); color: #ffe27a; font-weight: 800; font-size: 11px; padding: 6px 10px; cursor: pointer; letter-spacing: 1px; }
.pill.auto.on { background: linear-gradient(#c33, #611); border-color: #f88; color: #fff; }
.tools { display: flex; gap: 8px; }
.spin-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: -26px; }
.spin-btn { width: 88px; height: 88px; border-radius: 50%; border: 4px solid #ffd35a; font-size: 46px; color: #fff; cursor: pointer;
    background: radial-gradient(circle at 40% 30%, #6fffc2, #14a676 45%, #065a43); box-shadow: 0 0 24px rgba(80,255,190,.55), inset 0 -6px 10px rgba(0,0,0,.4); transition: transform .1s; }
.spin-btn:not(:disabled):hover { transform: scale(1.05); }
.spin-btn:not(:disabled):active { transform: scale(.92); }
.spin-btn.free { background: radial-gradient(circle at 40% 30%, #b8c8ff, #4a62ff 45%, #1a2580); border-color: #c9d4ff; }
.spin-btn.busy span { display: inline-block; animation: spinr .8s linear infinite; }
.auto-num { font-size: 32px; font-weight: 900; }
@keyframes spinr { to { transform: rotate(360deg); } }

/* ---- Modals ---- */
.bd-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 12px; animation: fadein .25s; }
.bd-modal { position: relative; overflow: hidden auto; background: linear-gradient(#0d3a30, #051a15); border: 3px solid #d8aa3a; border-radius: 18px; padding: 20px; max-width: 560px; width: 100%; max-height: 90vh; text-align: center; color: #f6e7b4; box-shadow: 0 0 40px rgba(255,200,70,.3); animation: zoom .4s cubic-bezier(.3,1.4,.5,1); }
.bd-modal > * { position: relative; }
.bd-modal h2 { margin-top: 0; color: #ffd35a; letter-spacing: 2px; text-shadow: 0 0 12px rgba(255,180,0,.6); }
.bd-modal h3 { color: #4ff0cf; font-size: 15px; margin: 14px 0 6px; }
.bd-modal table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.bd-modal td, .bd-modal th { padding: 4px 6px; border-bottom: 1px solid rgba(255,215,110,.2); }
.pt-ic { display: inline-block; width: 26px; text-align: center; font-weight: 900; }
.note { font-size: 12px; opacity: .85; }
.feature-list { font-size: 13px; padding-left: 18px; margin: 8px auto; display: inline-block; text-align: left; }
.feature-list li { margin: 4px 0; }
.lines-list { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; justify-content: center; }
.lines-list span { background: #031511; border-radius: 6px; padding: 2px 6px; }
.row { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 8px 0; }
.row input[type=number] { width: 110px; }
.cta { margin: 8px 6px; padding: 10px 30px; border-radius: 24px; border: 2px solid #ffd35a; background: linear-gradient(#2fd59a, #0a6a50); color: #fff; font-weight: 800; cursor: pointer; letter-spacing: 2px; box-shadow: 0 4px 0 #04382a, 0 0 14px rgba(80,255,190,.4); }
.cta:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 #04382a; }
.cta.alt { background: linear-gradient(#b08a2a, #5a3b00); box-shadow: 0 4px 0 #2a1b00; }
.cta.pulse { animation: ctapulse 1.2s ease-in-out infinite; }
@keyframes ctapulse { 50% { transform: scale(1.07); box-shadow: 0 4px 0 #04382a, 0 0 26px rgba(80,255,190,.8); } }
.big { font-size: 56px; font-weight: 900; margin: 6px 0; color: #ffe27a; text-shadow: 0 0 18px #ffb400; }
.bonus-back { background: radial-gradient(circle, rgba(20,40,80,.6), rgba(0,0,0,.88)); }
.bonus.fs { background: linear-gradient(#1c2c78, #0a0f30); border-color: #9fb8ff; box-shadow: 0 0 50px #5f7cff; }
.rays-burst { position: absolute !important; left: 50%; top: 40%; width: 800px; height: 800px; margin: -400px 0 0 -400px; background: repeating-conic-gradient(rgba(160,190,255,.14) 0 10deg, transparent 10deg 20deg); animation: spinr 20s linear infinite; pointer-events: none; }
.crystals { font-size: 52px; display: flex; justify-content: center; gap: 10px; }
.crystals span { animation: bob 1.6s ease-in-out infinite; filter: drop-shadow(0 0 14px #5fe0ff); }
.crystals span:nth-child(2) { animation-delay: .2s; font-size: 66px; }
.crystals span:nth-child(3) { animation-delay: .4s; }
.bonus.treasure { background: linear-gradient(#3a2a0a, #120c02); }
.chests { display: flex; gap: 12px; justify-content: center; margin: 16px 0; }
.chest { width: 30%; aspect-ratio: 1; border-radius: 14px; border: 2px solid #d8aa3a; background: radial-gradient(circle, #1a4a3a, #062018); cursor: pointer; color: #ffe27a; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .2s, box-shadow .2s; }
.chest .chest-ic { font-size: clamp(40px, 9vw, 64px); }
.chest:not(:disabled) { animation: bob 1.8s ease-in-out infinite; }
.chest:not(:disabled):nth-child(2) { animation-delay: .3s; }
.chest:not(:disabled):nth-child(3) { animation-delay: .6s; }
.chest:not(:disabled):hover { transform: scale(1.08); box-shadow: 0 0 24px #ffd35a; }
.chest.open { animation: pop .5s ease-out; }
.chest b { font-size: 15px; }
.chest.picked { box-shadow: 0 0 30px 8px #ffd35a; opacity: 1; background: radial-gradient(circle, #6a4a0a, #2a1a02); }

/* ---- Intro ---- */
.intro { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-align: center; padding: 20px;
    background: radial-gradient(ellipse at 50% 30%, rgba(30,120,95,.95), rgba(3,15,12,.98)); }
.intro-logo { line-height: .85; font-family: Georgia, serif; animation: zoom .9s cubic-bezier(.3,1.5,.5,1); }
.intro-logo span { display: block; font-size: clamp(54px, 12vw, 110px); font-weight: 900; letter-spacing: 4px;
    background: linear-gradient(#fff6c8, #ffd35a 45%, #b37a12 55%, #ffe58a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 5px 0 #4a2e00) drop-shadow(0 0 24px rgba(255,200,60,.6)); }
.intro-logo small { font-size: clamp(30px, 7vw, 64px); color: #4ff0cf; letter-spacing: 14px; text-shadow: 0 0 18px rgba(60,255,200,.8); }
.intro ul { list-style: none; padding: 0; margin: 6px 0; font-size: 15px; }
.intro li { margin: 4px 0; }
.disclaimer { opacity: .6; }

/* ---- Responsive ---- */
@media (max-width: 960px) { .side-panel { display: none; } }
@media (max-width: 640px) {
    .reel-frame { flex: 1 1 100%; padding: 7px; }
    .controls { border-radius: 24px; gap: 8px; padding: 8px; }
    .spin-wrap { order: -1; flex: 0 0 100%; margin: -34px 0 0; }
    .spin-btn { width: 78px; height: 78px; }
    .credit { min-width: 88px; }
    .credit strong { font-size: 16px; }
    .demo-tag { display: none; }
    .vines { width: 50px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* ---- Static app startup and errors ---- */
.app-message { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; box-sizing: border-box; }
.app-message a, #blazor-error-ui a { color: #4ff0cf; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; padding: 16px 48px 16px 20px; background: #381c12; color: #fff0cc; border-top: 2px solid #d8aa3a; }
#blazor-error-ui .dismiss { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 20px; }
