/* The Lionskin Road styles (original, MIT). PayPal Bingo palette: navy, mint,
   gold, coral; Inter (SIL OFL, bundled in fonts/). No logos. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); }
:root { --navy: #0b1030; --navy2: #141a44; --navy3: #1d2560; --mint: #3ee8a4; --gold: #ffc93c; --coral: #ff4f7b; --clay: #f2a65a; --ink: #eef1ff; --cell: 84px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, sans-serif; color: var(--ink); min-height: 100vh; background: linear-gradient(180deg, #0b1030 0%, #18205a 55%, #2a1f4f 100%); overflow-x: hidden; }
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sun { position: absolute; left: 50%; bottom: 120px; width: 380px; height: 380px; margin-left: -190px; border-radius: 50%; background: radial-gradient(circle, rgba(255,201,60,.35), rgba(255,79,123,.12) 55%, transparent 70%); }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 200px; }
.machine { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 30px 12px 24px; }
.title { text-align: center; }
.kicker { margin: 4px 0 0; font-size: .74rem; letter-spacing: 2px; text-transform: uppercase; color: var(--mint); font-weight: 700; }
h1 { margin: 2px 0 0; font-size: 2.2rem; font-weight: 900; letter-spacing: 1px; color: #fff; text-shadow: 0 3px 0 #000a; }
h1 span { color: var(--gold); }
.tag { margin: 2px 0 8px; font-size: .78rem; color: #c8cff5; }
.jackpots { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.jp { border-radius: 10px; padding: 4px 6px; text-align: center; background: var(--navy2); border: 1px solid #ffffff22; }
.jp small { display: block; font-size: .62rem; font-weight: 800; letter-spacing: 1.5px; opacity: .85; }
.jp b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.jp.grand { background: linear-gradient(#ffd96b, #e3a21a); color: var(--navy); border: 0; }
.jp.grand b { font-size: 1.15rem; }
.jp.major { border-color: var(--coral); color: #ffd0dc; }
.jp.minor { border-color: var(--mint); color: #c9ffe9; }
.jp.mini { border-color: #8fb7ff; color: #dbe7ff; }
.jp.flash { animation: jflash .5s ease-in-out 6 alternate; }
@keyframes jflash { to { transform: scale(1.08); box-shadow: 0 0 22px var(--gold); } }

/* --- labour trail --- */
.road { background: linear-gradient(180deg, #1a2160, #121848); border-radius: 14px; padding: 8px 10px 10px; border: 2px solid var(--clay); box-shadow: inset 0 0 0 2px #0b1030, 0 6px 18px #0006; margin-bottom: 8px; }
.road-head { display: flex; align-items: baseline; gap: 10px; font-size: .74rem; flex-wrap: wrap; }
.road-title { font-weight: 900; letter-spacing: 2px; color: var(--clay); }
.road-now { flex: 1; font-weight: 700; color: #fff; }
.laurels { font-weight: 800; color: var(--mint); display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.laurels .lic svg { width: 18px; height: 18px; vertical-align: middle; }
.laurels.bump { animation: bump .35s; }
.road-bar { height: 6px; border-radius: 4px; background: #0b1030; margin: 6px 0 7px; overflow: hidden; }
.road-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--gold)); transition: width .35s; }
.road-fill.ready { animation: ready .6s infinite alternate; }
@keyframes ready { to { filter: brightness(1.5); } }
.stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.stations li { position: relative; aspect-ratio: 1; border-radius: 50%; background: var(--clay); color: var(--navy); display: flex; align-items: center; justify-content: center; border: 2px solid #0b1030; opacity: .45; transition: opacity .3s, transform .3s; }
.stations li svg { width: 74%; height: 74%; }
.stations li.done { opacity: .9; background: #c9a35a; }
.stations li.done::after { content: '✓'; position: absolute; right: -3px; bottom: -4px; font-size: .6rem; font-weight: 900; background: var(--mint); color: var(--navy); border-radius: 50%; width: 13px; height: 13px; display: flex; align-items: center; justify-content: center; }
.stations li.now { opacity: 1; background: var(--gold); transform: scale(1.12); box-shadow: 0 0 0 2px var(--gold), 0 0 14px var(--gold); }
.stations li.last { background: var(--coral); }
.stations li.last.now { background: var(--coral); box-shadow: 0 0 0 2px var(--coral), 0 0 14px var(--coral); }

.hud { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mult { min-width: 86px; text-align: center; background: var(--navy2); border-radius: 10px; padding: 3px 8px; border: 1px solid var(--gold); }
.mult small { display: block; font-size: .58rem; letter-spacing: 1.5px; font-weight: 800; color: var(--gold); }
.mult b { font-size: 1.35rem; font-weight: 900; }
.mult.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.18); } }
.ladder { flex: 1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.ladder span { text-align: center; font-size: .7rem; font-weight: 800; padding: 4px 0; border-radius: 6px; background: #ffffff10; color: #aab3e0; }
.ladder span.past { background: #ffc93c33; color: var(--gold); }
.ladder span.on { background: var(--gold); color: var(--navy); }
.fs-badge { background: var(--coral); color: #fff; font-weight: 900; font-size: .72rem; padding: 6px 10px; border-radius: 10px; letter-spacing: 1px; white-space: nowrap; }

/* --- board --- */
.board-wrap { position: relative; }
.board { position: relative; display: grid; grid-template-columns: repeat(6, var(--cell)); gap: 5px; justify-content: center; padding: 10px; border-radius: 16px;
  background: linear-gradient(180deg, #121848, #0b1030); border: 3px solid var(--clay); box-shadow: inset 0 0 0 3px #0b1030, inset 0 0 0 5px #f2a65a55, 0 10px 30px #000a; }
.col { position: relative; height: calc(var(--cell) * 4); overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #1a2268, #141a4e); }
.strip { will-change: transform; }
.cell { height: var(--cell); display: flex; align-items: center; justify-content: center; padding: 6px; transition: transform .2s, opacity .2s; }
.cell svg { width: 100%; height: 100%; display: block; }
.cell.hit { animation: hit .5s ease-in-out infinite alternate; }
@keyframes hit { to { transform: scale(1.1); filter: drop-shadow(0 0 8px var(--gold)); } }
.board.showing .cell:not(.hit):not(.s-P) { opacity: .35; }
.cell.pop { animation: pop .3s forwards; }
@keyframes pop { 40% { transform: scale(1.2) rotate(-6deg); filter: brightness(1.8); } 100% { transform: scale(.2) rotate(12deg); opacity: 0; } }
.cell.smash { animation: smash .45s; }
@keyframes smash { 0% { transform: scale(1.5); filter: brightness(2.2); } 60% { transform: scale(.9); } }
.cell.s-P { padding: 0; }
.cell.newl { animation: newl .7s; }
@keyframes newl { 30% { transform: scale(1.3); filter: drop-shadow(0 0 12px var(--mint)); } }
.col.pillar { box-shadow: 0 0 0 2px var(--gold), 0 0 18px var(--gold); }
.col .capital, .col .plinth { position: absolute; left: 6%; right: 6%; height: 16px; z-index: 2; background: linear-gradient(#ffe9a8, #c99a30); border: 2px solid #8a6418; border-radius: 4px; }
.col .capital { top: 0; } .col .plinth { bottom: 0; }
.col.struck { animation: struck .5s; }
@keyframes struck { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } }
.floats { position: absolute; inset: 0; pointer-events: none; }
.float { position: absolute; transform: translate(-50%, -50%); font-weight: 900; font-size: 1.1rem; color: var(--gold); text-shadow: 0 2px 0 #000, 0 0 10px #000; animation: rise 1.2s forwards; white-space: nowrap; }
.float.lau { color: var(--mint); }
@keyframes rise { to { transform: translate(-50%, -150%); opacity: 0; } }
.club-fx { position: absolute; z-index: 6; width: 120px; height: 120px; left: 50%; top: 50%; margin: -60px; pointer-events: none; animation: swing .7s ease-in forwards; }
@keyframes swing { 0% { transform: rotate(-80deg) scale(1.4); opacity: 0; } 30% { opacity: 1; } 80% { transform: rotate(30deg) scale(1); } 100% { transform: rotate(30deg) scale(1.1); opacity: 0; } }

.banner { position: absolute; inset: 0; z-index: 9; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; background: #0b1030cc; border-radius: 16px; font-size: 1.6rem; font-weight: 900; color: var(--gold); text-shadow: 0 3px 0 #000; padding: 20px; }
.banner small { display: block; font-size: .85rem; color: #fff; font-weight: 600; margin-top: 6px; text-shadow: none; }
.banner.free { color: var(--coral); }
.banner.jack { color: var(--gold); font-size: 2.1rem; background: radial-gradient(circle, #ffc93c44, #0b1030ee 70%); }
.banner.neutral { color: #fff; font-size: 1.2rem; }

/* --- oracle pick bonus --- */
.oracle, .labour { position: absolute; inset: 0; z-index: 8; border-radius: 16px; padding: 12px; overflow: auto; background: linear-gradient(180deg, #0f2f2c, #0b1030 70%); border: 3px solid var(--mint); }
.o-head h2, .l-text h2 { margin: 0; font-size: 1.25rem; color: var(--mint); }
.o-head p { margin: 2px 0 8px; font-size: .76rem; color: #cfe; }
.o-top { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 8px; }
.bstat { background: #ffffff12; border-radius: 8px; text-align: center; padding: 3px; }
.bstat small { display: block; font-size: .56rem; letter-spacing: 1px; font-weight: 800; opacity: .8; }
.bstat b { font-size: .95rem; }
.bstat.o b { color: var(--coral); }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tile { aspect-ratio: .8; border: 0; border-radius: 10px; cursor: pointer; padding: 4px; background: #123a35; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; font-size: .8rem; transition: transform .2s; }
.tile:hover:not(.open) { transform: translateY(-3px); box-shadow: 0 0 12px var(--mint); }
.tile svg { width: 100%; height: 70%; }
.tile.open { cursor: default; animation: flip .35s; }
@keyframes flip { 50% { transform: rotateY(90deg); } }
.tile.coin { background: #3a2f0b; color: var(--gold); }
.tile.double { background: #4a1630; color: #ffd0dc; }
.tile.laurel { background: #0f3a2e; color: var(--mint); }
.tile.jackpot { background: linear-gradient(#ffd96b, #e3a21a); color: var(--navy); }
.tile.omen { background: #2a0f1d; color: var(--coral); }
.tile.dim { opacity: .45; }
.tile .big { font-size: 1.15rem; }

/* --- labour panel --- */
.labour { border-color: var(--clay); background: linear-gradient(180deg, #2a1d3e, #0b1030 75%); }
.l-card { display: flex; gap: 12px; align-items: center; }
.l-art { flex: none; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(#ffd27a, var(--clay)); color: var(--navy); display: flex; align-items: center; justify-content: center; border: 3px solid var(--navy); box-shadow: 0 0 0 3px var(--clay); }
.l-art svg { width: 76%; height: 76%; }
.l-text small { font-size: .64rem; letter-spacing: 2px; font-weight: 800; color: var(--clay); }
.l-text h2 { color: #fff; }
.l-text h3 { margin: 0; font-size: .9rem; color: var(--gold); }
.l-text p { margin: 3px 0 0; font-size: .74rem; color: #d6dbff; }
.l-stage { margin: 8px 0 4px; display: flex; justify-content: center; }
.l-steps { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; max-height: 150px; overflow: auto; }
.l-steps li { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; padding: 4px 8px; border-radius: 6px; background: #ffffff10; animation: slidein .3s; }
.l-steps li b { color: var(--gold); white-space: nowrap; }
.l-steps li.miss { color: #ffb3c6; } .l-steps li.miss b { color: #ffb3c6; }
.l-steps li.big { background: #ffc93c26; }
.l-steps li.jackpot { background: linear-gradient(90deg, #ffc93c55, transparent); font-weight: 800; }
@keyframes slidein { from { transform: translateX(-12px); opacity: 0; } }
.l-total { display: flex; justify-content: space-between; align-items: center; background: var(--navy); border: 1px solid var(--gold); border-radius: 10px; padding: 6px 12px; font-weight: 900; }
.l-total span { font-size: .7rem; letter-spacing: 2px; color: var(--gold); }
.l-total b { font-size: 1.3rem; }
/* stages */
.pen { display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; padding: 6px; background: #3b2a16; border-radius: 8px; border: 2px solid var(--clay); }
.pen div { height: 44px; border-radius: 6px; background: #1d1408; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 900; color: var(--gold); }
.pen div svg { width: 30px; height: 30px; color: var(--coral); }
.pen div.fresh { animation: newl .6s; }
.drifts { display: flex; gap: 6px; }
.drifts div { width: 56px; height: 46px; border-radius: 24px 24px 6px 6px; background: linear-gradient(#ffffff, #b9c6ff); color: var(--navy); display: flex; align-items: flex-end; justify-content: center; font-size: .72rem; font-weight: 900; padding-bottom: 4px; opacity: .55; }
.drifts div.on { opacity: 1; box-shadow: 0 0 12px #fff; }
.drifts div.stop { background: linear-gradient(#ffd96b, #e3a21a); }
.wheel { width: 150px; height: 150px; position: relative; }
.wheel svg { width: 100%; height: 100%; transition: transform 2.4s cubic-bezier(.15,.8,.2,1); }
.wheel::after { content: ''; position: absolute; top: -4px; left: 50%; margin-left: -9px; border: 9px solid transparent; border-top: 16px solid var(--coral); }
.heads, .boughs { display: flex; gap: 8px; }
.heads div, .boughs div { width: 70px; height: 70px; border-radius: 50%; background: #2a0f1d; border: 2px solid var(--coral); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .72rem; text-align: center; color: var(--coral); }
.heads div.on, .boughs div.on { background: linear-gradient(#ffd96b, #e3a21a); color: var(--navy); border-color: var(--gold); animation: newl .6s; }
.boughs div { width: 52px; height: 52px; border-color: var(--mint); color: var(--mint); background: #0f3a2e; }

.msg { min-height: 2.4em; margin: 8px 2px; font-size: .84rem; text-align: center; color: #dfe4ff; }
.panel { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; }
.meter { background: var(--navy2); border-radius: 12px; padding: 6px; text-align: center; border: 1px solid #ffffff1f; }
.meter small { display: block; font-size: .62rem; letter-spacing: 1.5px; font-weight: 800; color: #aab3e0; }
.meter b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.betrow { display: flex; align-items: center; justify-content: center; gap: 10px; }
.betrow button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--mint); color: var(--navy); font-weight: 900; font-size: 1.1rem; cursor: pointer; }
.betrow button:disabled { opacity: .4; cursor: not-allowed; }
.controls { display: flex; gap: 10px; margin-top: 10px; }
button { font-family: inherit; }
.spin { flex: 1.6; padding: 16px; border: 0; border-radius: 16px; cursor: pointer; font-size: 1.25rem; font-weight: 900; letter-spacing: 3px; color: var(--navy); background: linear-gradient(#7dffc9, var(--mint) 60%, #1fb57c); box-shadow: 0 6px 0 #127a52, 0 10px 18px #0007; }
.spin:active { transform: translateY(3px); box-shadow: 0 3px 0 #127a52; }
.spin:disabled { filter: grayscale(.7) brightness(.75); cursor: not-allowed; }
.spin.small { flex: none; padding: 10px 26px; font-size: 1rem; }
.ghost { flex: 1; padding: 13px 8px; border-radius: 14px; cursor: pointer; font-weight: 800; background: var(--navy2); color: #e6eaff; border: 1px solid #ffffff38; }
.legal { margin: 14px 0 2px; text-align: center; font-weight: 800; font-size: .84rem; color: var(--gold); }
.fine { margin: 0; text-align: center; font-size: .72rem; color: #aab3e0; }
.link { background: none; border: 0; color: var(--mint); text-decoration: underline; cursor: pointer; font-size: inherit; padding: 0; }
.modal { position: fixed; inset: 0; z-index: 30; background: #050818d0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet { max-width: 600px; width: 100%; max-height: 90vh; overflow: auto; background: var(--navy2); border-radius: 18px; padding: 18px 20px; box-shadow: 0 0 0 2px var(--clay); }
.sheet h2 { margin: 0 0 6px; color: var(--gold); }
.rtp { margin: 0 0 10px; font-size: .82rem; color: var(--mint); font-weight: 700; }
.paytable { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.pt { display: flex; align-items: center; gap: 8px; background: var(--navy); border-radius: 10px; padding: 6px; font-size: .74rem; }
.pt .ico { width: 44px; height: 44px; flex: none; } .pt .ico svg { width: 100%; height: 100%; }
.rules { font-size: .8rem; color: #dfe4ff; padding-left: 18px; }
.rules li { margin-bottom: 4px; }
@media (max-width: 560px) { h1 { font-size: 1.7rem; } .o-top { grid-template-columns: repeat(3, 1fr); } .tiles { grid-template-columns: repeat(4, 1fr); } .stations { grid-template-columns: repeat(6, 1fr); } }
