.jun-catalog-tools { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-block: 16px; }
.jun-catalog-tools .jun-search { display: grid; gap: 4px; flex: 1 1 260px; max-width: 420px; }
.jun-cat-block[hidden], .jun-game-card[hidden] { display: none; }



.jun-crumbs { margin: 0; color: var(--muted); font-size: .9rem; }
.jun-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0; }
.jun-facts dt { color: var(--muted); }
.jun-facts dd { margin: 0; font-weight: 600; }
.jun-fine { font-size: .88rem; }
.jun-guest-panel { max-width: 640px; }
.jun-game-rules { margin-top: 32px; }

.jun-stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; z-index: 0; pointer-events: none; }
.jun-hilo-table > *:not(.jun-stage-bg), .jun-bj-table > *:not(.jun-stage-bg), .jun-rt-wrap > *:not(.jun-stage-bg), .jun-wheel-game > *:not(.jun-stage-bg) { position: relative; z-index: 1; }
.jun-stage-msg { min-height: 1.6em; margin: 0; font-weight: 700; }
.jun-stage-msg.jun-win { color: #7fe0d0; }
.jun-stage-msg.jun-lose { color: var(--muted); }
.jun-stage-msg.jun-error { color: #ffa08e; }
.jun-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.jun-bet { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.jun-bet-field { display: grid; gap: 4px; }
.jun-bet-field input, .jun-bet-field select { width: 150px; }
.jun-bet-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.jun-spin-btn { padding: 12px 28px; font-size: 1.05rem; }
.jun-win-total { margin: 0; font-weight: 700; color: var(--brass); min-height: 1.4em; }
.jun-segmented { display: inline-flex; gap: 6px; }
.jun-btn[aria-pressed="true"], button[aria-pressed="true"] { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.jun-dice-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin: 0; }
.jun-dice-facts dt { color: var(--muted); font-size: .85rem; }
.jun-dice-facts dd { margin: 0 0 6px; font-weight: 700; }

.jun-slot-machine { max-width: 720px; width: 100%; margin-inline: auto; background: #0e0905; border: 2px solid var(--c2, var(--brass)); border-radius: 14px; padding: 12px; }
.jun-slot-banner { margin: 0 0 8px; text-align: center; font-weight: 700; color: var(--brass); }
.jun-slot-banner[hidden] { display: none; }
.jun-reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.jun-reel { display: grid; grid-template-rows: repeat(3, 1fr); gap: 6px; overflow: hidden; border-radius: 8px; }
.jun-cell { aspect-ratio: 1; border-radius: 8px; background: #2a1d12; display: grid; place-items: center; overflow: hidden; position: relative; }
.jun-cell.jun-win { outline: 3px solid var(--brass); animation: pulse .8s ease-in-out 3; z-index: 1; }
.jun-reel.jun-spin .jun-cell { filter: blur(1.5px); transform: translateY(2px); }
.jun-reel.jun-land .jun-cell { animation: land .28s ease-out; }
.jun-sym { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 8px; font-weight: 800; text-align: center; padding: 4px; line-height: 1.05; font-size: clamp(.62rem, 2vw, .95rem); color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); background: linear-gradient(150deg, var(--s1, #5a4128), var(--s2, #29292b)); }
.jun-sym img { width: 100%; height: 100%; object-fit: contain; }
.jun-sym-1 { --s1: #d9a441; --s2: #6b4510; color: #091a26; text-shadow: none; }
.jun-sym-2 { --s1: #a8672f; --s2: #3d2412; }
.jun-sym-3 { --s1: #3f9d93; --s2: #12302d; }
.jun-sym-4 { --s1: #7d8a5a; --s2: #232a17; }
.jun-sym-5 { --s1: #8e5a4a; --s2: #2f1a15; }
.jun-sym-6 { --s1: #9a7a45; --s2: #33280f; }
.jun-sym-7 { --s1: #b0563d; --s2: #35160f; }
.jun-sym-8 { --s1: #5a8aa0; --s2: #142630; }

.jun-plinko-board { background: #0e0905; border-radius: 12px; padding: 12px 8px; }
.jun-plinko-field { position: relative; width: 100%; max-width: 640px; margin-inline: auto; }
.jun-plinko-peg { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translate(-50%, -50%); }
.jun-plinko-ball { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff, var(--brass) 55%, #6b4510); transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.jun-plinko-ball[hidden] { display: none; }
.jun-plinko-slots { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; max-width: 640px; margin: 6px auto 0; }
.jun-plinko-slot { text-align: center; padding: 6px 0; border-radius: 6px; font-size: clamp(.55rem, 1.9vw, .85rem); font-weight: 700; background: #4a3520; }
.jun-plinko-slot.jun-tier-hot { background: #8a2a2a; }
.jun-plinko-slot.jun-tier-warm { background: #8a5a1e; }
.jun-plinko-slot.jun-tier-even { background: #35524d; }
.jun-plinko-slot.jun-hit { outline: 3px solid var(--brass); transform: translateY(-3px); }
.jun-plinko-cap { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: .82rem; }

.jun-dice-track { position: relative; height: 34px; border-radius: 17px; overflow: hidden; display: flex; background: #0e0905; max-width: 720px; width: 100%; margin-inline: auto; }
.jun-dice-zone { display: block; height: 100%; }
.jun-dice-win { background: #2f7a70; }
.jun-dice-lose { background: #8a2a2a; }
.jun-dice-marker { position: absolute; top: 3px; bottom: 3px; width: 6px; margin-left: -3px; border-radius: 3px; background: #ffffff; left: 0; transition: left .5s ease-out; }
.jun-dice-marker.jun-win { box-shadow: 0 0 10px #7fe0d0; }
.jun-dice-marker.jun-lose { box-shadow: 0 0 10px #ffa08e; }
.jun-dice-roll { text-align: center; font-size: 2.6rem; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; }
input[type="range"] { padding: 0; accent-color: var(--brass); width: min(320px, 100%); }

.jun-wheel-game { position: relative; display: grid; place-items: center; padding: 8px; overflow: hidden; border-radius: 12px; }
.jun-wheel-holder { position: relative; width: min(380px, 100%); }
.jun-wheel-svg { width: 100%; height: auto; display: block; }
.jun-wheel-spinner { transform-box: fill-box; transform-origin: center; }
.jun-wheel-pointer-game { position: absolute; left: 50%; top: -6px; width: 0; height: 0; transform: translateX(-50%); border: 12px solid transparent; border-top: 24px solid var(--brass); z-index: 2; }

.jun-keno-board { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-width: 560px; }
.jun-keno-tile { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: #2a1d12; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.jun-keno-tile.jun-picked { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.jun-keno-tile.jun-drawn { background: #5a4128; }
.jun-keno-tile.jun-hit { background: #2f7a70; color: #ffffff; border-color: #7fe0d0; animation: pulse .6s ease-in-out 2; }
.jun-keno-pay { margin: 0; color: var(--muted); }

.jun-scratch-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 420px; padding: 14px; border-radius: 14px; background: linear-gradient(150deg, var(--c1, #8a5a1e), #0e0905 150%); border: 2px solid var(--c2, var(--brass)); }
.jun-scratch-tile { aspect-ratio: 1.3; border-radius: 10px; border: 0; font: inherit; font-weight: 800; font-size: 1.3rem; cursor: pointer; background: repeating-linear-gradient(135deg, #c9a463, #c9a463 6px, #b38d47 6px, #b38d47 12px); color: #0e0905; }
.jun-scratch-tile:disabled { cursor: default; }
.jun-scratch-tile.jun-open { background: #f6e7c4; animation: land .3s ease-out; }
.jun-scratch-tile.jun-match { background: #7fe0d0; outline: 3px solid var(--brass); }

.jun-mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 420px; }
.jun-mine-tile { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: #4a3520; cursor: pointer; position: relative; }
.jun-mine-tile:disabled { cursor: default; }
.jun-mine-tile:not(:disabled):hover { background: #6a4c2d; }
.jun-mine-tile.jun-safe::after { content: ""; position: absolute; inset: 24%; background: linear-gradient(135deg, #f0c874, #8f5f1c); transform: rotate(45deg); border-radius: 4px; }
.jun-mine-tile.jun-safe { background: #201810; }
.jun-mine-tile.jun-pop { animation: land .3s ease-out; }
.jun-mine-tile.jun-mine { background: #343030; }
.jun-mine-tile.jun-mine::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: #1a1a1a; box-shadow: 0 0 0 3px #9a8268; }
.jun-mine-tile.jun-boom { background: #8a2a2a; animation: pulse .5s ease-in-out 2; }
.jun-mine-tile.jun-dim { opacity: .45; }

.jun-pcard { display: inline-grid; grid-template-rows: auto 1fr; justify-items: center; width: 74px; height: 104px; border-radius: 8px; background: #f6ecd6; padding: 6px 4px; box-shadow: 0 3px 8px rgba(0, 0, 0, .5); font-weight: 800; }
.jun-pcard.jun-red { color: #b3262b; }
.jun-pcard.jun-dark { color: #19191a; }
.jun-pcard-rank { font-size: 1.3rem; line-height: 1; }
.jun-pcard-suit { font-size: 2rem; align-self: center; }
.jun-pcard.jun-down { background: repeating-linear-gradient(45deg, #5a3b1d, #5a3b1d 6px, #6e4a26 6px, #6e4a26 12px); border: 3px solid #f6ecd6; }
.jun-pcard.jun-mini { width: 40px; height: 56px; }
.jun-pcard.jun-mini .jun-pcard-rank { font-size: .85rem; }
.jun-pcard.jun-mini .jun-pcard-suit { font-size: 1.1rem; }
.jun-pcard.jun-flip, .jun-pcard.jun-deal-in { animation: deal .35s ease-out; }
.jun-hilo-table, .jun-bj-table { background: radial-gradient(ellipse at center, #3a2a1a, #150f09); border-radius: 14px; padding: 18px; display: grid; gap: 12px; justify-items: center; position: relative; overflow: hidden; min-height: 220px; }
.jun-hilo-current .jun-pcard { width: 100px; height: 140px; }
.jun-hilo-trail { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 56px; }
.jun-guess-row { display: flex; gap: 10px; flex-wrap: wrap; }
.jun-guess { background: transparent; color: var(--ink); border-color: var(--line); }
.jun-bj-label { margin: 0; font-weight: 700; color: #edeeed; }
.jun-bj-hand { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 108px; }

.jun-rt-wrap { display: grid; gap: 16px; position: relative; padding: 8px; border-radius: 12px; overflow: hidden; }
.jun-rt-wheel { display: grid; justify-items: center; gap: 6px; }
.jun-rt-wheel .jun-wheel-svg { width: min(300px, 80%); }
.jun-rt-result { margin: 0; font-weight: 800; font-size: 1.2rem; }
.jun-rt-board { display: grid; grid-template-columns: 0.9fr repeat(12, 1fr) 1.1fr; grid-template-rows: repeat(5, 40px); gap: 3px; max-width: 760px; width: 100%; margin-inline: auto; }
.jun-rt-spot { position: relative; border: 1px solid #cecdcb; border-radius: 4px; color: #ffffff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; background: #3a2a1a; padding: 0; }
.jun-rt-spot.jun-red { background: #b3262b; }
.jun-rt-spot.jun-black { background: #1a1a1b; }
.jun-rt-spot.jun-green { background: #1f6b45; }
.jun-rt-spot.jun-outside { background: #3a2a1a; }
.jun-rt-spot.jun-outside.jun-red { background: #b3262b; }
.jun-rt-spot.jun-outside.jun-black { background: #1a1a1b; }
.jun-rt-spot.jun-has-chip { outline: 2px solid var(--brass); }
.jun-rt-spot.jun-won { outline: 3px solid #7fe0d0; animation: pulse .7s ease-in-out 3; }
.jun-rt-chip { position: absolute; right: 2px; top: 2px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; background: var(--brass); color: var(--brass-ink); font-size: .68rem; display: grid; place-items: center; }
.jun-rt-chip[hidden] { display: none; }
.jun-chip-row { display: flex; gap: 6px; flex-wrap: wrap; }

@keyframes land { 0% { transform: translateY(-14px); opacity: .5; } 100% { transform: none; opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes deal { 0% { transform: translateY(-16px) rotate(-6deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

@media (max-width: 760px) {
  .jun-game-top { grid-template-columns: 1fr; }
  .jun-cover-hero { max-width: 220px; }
  .jun-keno-board { grid-template-columns: repeat(8, 1fr); gap: 4px; }
  .jun-rt-board { grid-template-rows: repeat(5, 34px); gap: 2px; }
  .jun-rt-spot { font-size: .62rem; }
  .jun-bet-field input, .jun-bet-field select { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .jun-reel.jun-land .jun-cell, .jun-cell.jun-win, .jun-pcard.jun-flip, .jun-pcard.jun-deal-in, .jun-mine-tile.jun-pop, .jun-scratch-tile.jun-open, .jun-keno-tile.jun-hit, .jun-rt-spot.jun-won { animation: none !important; }
}

.jun-catalog-tools .jun-search { max-width: 440px; }
.jun-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 8px 12px; }
.jun-tabs a { padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font: 400 1.02rem/1 var(--display); background: var(--deep); }
.jun-tabs a:hover { border-color: var(--brass); }
.jun-tabs a[aria-current="true"] { color: var(--brass-ink); background: linear-gradient(180deg, var(--brass-hi), var(--brass)); border-color: var(--brass); }
.jun-cat-block h2 { margin-top: 1.2em; }

.jun-game-top { display: grid; grid-template-columns: minmax(200px, 400px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: 28px; }
.jun-game-cover { position: relative; }
.jun-game-cover::before { content: ""; position: absolute; inset: 8% -8% -8%; background: radial-gradient(closest-side, var(--c2, var(--brass)), transparent); opacity: .3; filter: blur(30px); z-index: -1; }
.jun-cover-hero { border-radius: 26px; border: 3px solid var(--brass-lo); box-shadow: var(--shadow-card), 0 0 60px -10px rgba(217, 164, 65, .35); }
.jun-facts dd { color: var(--brass-hi); }
.jun-stage { background: linear-gradient(180deg, #2c1f13, #17100a); border: 1px solid var(--brass-lo); border-radius: 26px; padding: clamp(14px, 3vw, 28px); position: relative; display: grid; gap: 18px; overflow: hidden; box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, .08); }
.jun-stage-msg { font: 400 1.25rem/1.3 var(--display); }
.jun-stage-msg.jun-win { color: var(--brass-hi); }
.jun-win-total { font: 400 1.5rem/1.2 var(--display); }
.jun-slot-machine { background: linear-gradient(180deg, #4a3520, #1d140b); border: 4px solid var(--brass); border-radius: 22px; padding: clamp(8px, 2vw, 16px); box-shadow: 0 0 0 2px var(--brass-lo), inset 0 0 36px rgba(0, 0, 0, .5), 0 20px 50px -16px rgba(217, 164, 65, .35); }
.jun-slot-banner { font: 400 1.15rem/1.3 var(--display); color: var(--brass-hi); }
.jun-cell { background: radial-gradient(circle at 50% 35%, #4a3520, #1d140b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.jun-cell.jun-win { outline: 3px solid var(--brass-hi); box-shadow: 0 0 22px rgba(217, 164, 65, .7); }
.jun-sym { background: none; padding: 2px; }
.jun-sym-label { padding: 2px; border-radius: 8px; background: linear-gradient(150deg, var(--s1, #5a4128), var(--s2, #2a1d12)); width: 100%; height: 100%; display: grid; place-items: center; }
.jun-guest-panel { max-width: 680px; }
.jun-spin-btn { padding: 14px 40px; font-size: 1.3rem; }
.jun-stamp { position: absolute; inset: 0; margin: auto; width: clamp(130px, 26vw, 200px); height: clamp(130px, 26vw, 200px); display: grid; place-items: center; align-content: center; text-align: center; color: #24160a; font: 800 1.1rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .06em; z-index: 6; pointer-events: none; animation: stamp-in .5s var(--ease) both, stamp-out .6s ease-in 3.2s forwards; }
.jun-stamp::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/win-badge.svg") center / contain no-repeat; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .55)); animation: gear-turn 3.4s cubic-bezier(.2, .7, .2, 1) both; }
.jun-stamp b { display: block; font-size: clamp(1.4rem, 4vw, 2.2rem); line-height: 1; }
@keyframes stamp-in { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes stamp-out { to { opacity: 0; transform: scale(1.08); } }
@keyframes gear-turn { from { transform: rotate(-200deg); } to { transform: rotate(0deg); } }
.jun-confetti-layer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; }
@media (max-width: 760px) { .jun-game-top { grid-template-columns: 1fr; } .jun-cover-hero { max-width: 260px; } }
a.jun-spin-btn { text-decoration: none; }
.jun-is-guest .jun-controls, .jun-is-guest .jun-bet, .jun-is-guest .jun-guess-row, .jun-is-guest .jun-chip-row { opacity: .78; }
.jun-is-guest button:disabled, .jun-is-guest input:disabled, .jun-is-guest select:disabled { cursor: not-allowed; }
.jun-is-guest .jun-bet-field input:disabled { color: var(--brass-hi); font-weight: 700; opacity: 1; }
.jun-is-guest .jun-keno-tile, .jun-is-guest .jun-mine-tile, .jun-is-guest .jun-rt-spot, .jun-is-guest .jun-scratch-tile { cursor: not-allowed; }
.jun-game-below { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 22px; align-items: start; }
.jun-play-free { border-color: var(--brass-lo); background: radial-gradient(420px 160px at 50% 0, rgba(217, 164, 65, .18), transparent 70%), linear-gradient(180deg, var(--raise), var(--deep)); }
.jun-coin-note { margin: 16px 0 0; font: 400 1.15rem/1.35 var(--display); color: var(--brass-hi); text-align: center; }

/* slot win lines */
.jun-reels { position: relative; }
.jun-line-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.jun-line-win { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .6)); }
.jun-win-caption { margin: 10px 0 0; text-align: center; font-weight: 700; color: var(--brass-hi); }
.jun-win-caption[hidden] { display: none; }
.jun-cell.jun-win .jun-sym { filter: drop-shadow(0 0 8px var(--brass-hi)); }
