/* ================= Ludo Lights – game arena look ================= */
.ludo-app {
    --bg1: #120626; --bg2: #2a0b4a; --neon: #ffcf3f; --neon2: #ff7a18; --pink: #ff3d9a; --cyan: #29d3ff;
    --red: #ff4d4f; --green: #2ed573; --yellow: #ffc312; --blue: #1e90ff;
    --glass: rgba(255,255,255,.07); --glass-b: rgba(255,255,255,.14); --txt: #f5f0ff; --muted: rgba(245,240,255,.65);
    position: relative; color: var(--txt); min-height: calc(100vh - 70px); padding: 14px 16px 28px; overflow: hidden;
    background: radial-gradient(1200px 600px at 10% -10%, #4a1478 0%, transparent 60%), radial-gradient(900px 500px at 110% 10%, #0f3a6b 0%, transparent 55%), linear-gradient(160deg, var(--bg1), var(--bg2));
    font-family: var(--body-font, 'Poppins'), system-ui, sans-serif;
}
.ludo-app.is-embed, body.ludo-embed .ludo-app { min-height: 100vh; }
body.ludo-embed { background: #120626; }
.ludo-app:fullscreen, .ludo-app:-webkit-full-screen { min-height: 100vh; overflow-y: auto; }
.ludo-stars { position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #ffe9a8, transparent),
        radial-gradient(1.5px 1.5px at 40% 80%, #fff, transparent), radial-gradient(2px 2px at 85% 65%, #b9e7ff, transparent), radial-gradient(1px 1px at 55% 45%, #fff, transparent);
    animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .2; } }
.ludo-app > * { position: relative; }
.ludo-app a { color: var(--neon); }
.glass { background: var(--glass); border: 1px solid var(--glass-b); border-radius: 20px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 40px rgba(0,0,0,.25); }

/* top bar */
.ludo-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; max-width: 1240px; margin-inline: auto; }
.ludo-brand { font-weight: 800; letter-spacing: 1px; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.ludo-brand b { background: linear-gradient(90deg, var(--neon), var(--neon2), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ludo-logo { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--pink), var(--neon2)); box-shadow: 0 0 18px rgba(255,61,154,.6); animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 30px; font-size: .85rem; background: var(--glass); border: 1px solid var(--glass-b); color: var(--txt) !important; text-decoration: none; white-space: nowrap; }
.pill-coins { background: linear-gradient(135deg, rgba(255,207,63,.25), rgba(255,122,24,.2)); border-color: rgba(255,207,63,.5); }
.pill-coins .coin { color: var(--neon); text-shadow: 0 0 8px var(--neon); animation: coinSpin 2.5s linear infinite; display: inline-block; }
@keyframes coinSpin { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.2); } }
.pill-coins.bump { animation: bump .6s; }
@keyframes bump { 40% { transform: scale(1.25); box-shadow: 0 0 24px var(--neon); } }
.pill-login { background: linear-gradient(135deg, var(--neon), var(--neon2)); color: #2b1600 !important; font-weight: 700; border: 0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46,213,115,.7); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(46,213,115,0); } }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--glass-b); background: var(--glass); color: var(--txt); display: inline-grid; place-items: center; position: relative; transition: .2s; }
.icon-btn:hover { background: rgba(255,255,255,.16); color: var(--neon); }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 9px; }
.conn-banner { max-width: 1240px; margin: 0 auto 10px; padding: 8px 14px; border-radius: 12px; background: rgba(255,195,18,.18); border: 1px solid rgba(255,195,18,.4); font-size: .9rem; }

/* buttons */
.btn-gold-glow, .btn-neon, .btn-ghost, .btn-wa { border: 0; border-radius: 14px; padding: 10px 18px; font-weight: 700; transition: transform .15s, box-shadow .2s, filter .2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; justify-content: center; white-space: nowrap; }
.btn-gold-glow { background: linear-gradient(135deg, var(--neon), var(--neon2)); color: #2b1600 !important; box-shadow: 0 6px 22px rgba(255,122,24,.45); }
.btn-gold-glow:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,170,30,.65); }
.btn-gold-glow:disabled { filter: grayscale(.7); opacity: .6; transform: none; }
.btn-neon { background: transparent; color: var(--neon) !important; border: 2px solid var(--neon); }
.btn-neon:hover { background: rgba(255,207,63,.12); box-shadow: 0 0 18px rgba(255,207,63,.4); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--txt) !important; border: 1px solid var(--glass-b); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-wa { background: #25d366; color: #fff !important; }
.sm.btn-gold-glow, .sm.btn-neon { padding: 6px 12px; font-size: .85rem; border-radius: 11px; }

/* lobby */
.ludo-view { max-width: 1240px; margin: 0 auto; animation: viewIn .35s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.lobby-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
.lobby-main, .lobby-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero-card { padding: 26px; overflow: hidden; }
.hero-card h1 { font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin: 0 0 6px; line-height: 1.15; }
.grad { background: linear-gradient(90deg, var(--neon), var(--neon2), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-card .sub { color: var(--muted); max-width: 560px; }
.hero-dice { position: absolute; right: 18px; top: 10px; font-size: 64px; opacity: .9; display: flex; gap: 6px; pointer-events: none; }
.hero-dice span { display: inline-block; filter: drop-shadow(0 0 14px rgba(255,207,63,.6)); animation: floaty 3.5s ease-in-out infinite; color: #fff; }
.hero-dice span:last-child { animation-delay: -1.7s; color: var(--neon); }
@keyframes floaty { 50% { transform: translateY(-12px) rotate(12deg); } }
.name-row { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.25); border: 1px solid var(--glass-b); border-radius: 14px; padding: 6px 12px; max-width: 320px; margin: 12px 0; }
.name-row input, .join-row input, .chat-form input { background: transparent; border: 0; outline: 0; color: var(--txt); width: 100%; }
.name-row input::placeholder, .join-row input::placeholder, .chat-form input::placeholder { color: rgba(245,240,255,.45); }
.size-row { display: inline-flex; gap: 6px; background: rgba(0,0,0,.25); padding: 5px; border-radius: 16px; margin: 10px 0 16px; }
.size-row input { display: none; }
.size-row label { padding: 8px 16px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .9rem; transition: .2s; color: var(--muted); }
.size-row label span { font-size: .7rem; letter-spacing: -2px; margin-right: 4px; }
.size-row input:checked + label { background: linear-gradient(135deg, var(--pink), var(--neon2)); color: #fff; box-shadow: 0 4px 16px rgba(255,61,154,.45); }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mode { border: 0; border-radius: 18px; padding: 18px 12px; color: #fff; text-align: left; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; transition: transform .18s, box-shadow .2s; }
.mode i { font-size: 1.8rem; margin-bottom: 6px; }
.mode b { font-size: 1.1rem; }
.mode small { opacity: .85; font-size: .78rem; }
.mode::after { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); transform: translateX(-60%); transition: transform .6s; }
.mode:hover { transform: translateY(-4px) scale(1.02); }
.mode:hover::after { transform: translateX(60%); }
.mode-online { background: linear-gradient(135deg, #ff3d9a, #ff7a18); box-shadow: 0 10px 28px rgba(255,61,154,.4); }
.mode-bot { background: linear-gradient(135deg, #6a5cff, #29d3ff); box-shadow: 0 10px 28px rgba(41,211,255,.35); }
.mode-friends { background: linear-gradient(135deg, #12b886, #2ed573); box-shadow: 0 10px 28px rgba(46,213,115,.35); }
.join-row { display: flex; gap: 8px; margin-top: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--glass-b); border-radius: 16px; padding: 6px 6px 6px 14px; max-width: 460px; }
.join-row input { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.resume { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(46,213,115,.15); border: 1px solid rgba(46,213,115,.4); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.bonus-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--txt) !important; }
.bonus-card.ready { border-color: rgba(255,207,63,.55); box-shadow: 0 0 30px rgba(255,207,63,.18); }
.bonus-gift { font-size: 2.4rem; animation: giftShake 2.4s ease-in-out infinite; }
.bonus-card.claimed .bonus-gift { animation: none; filter: grayscale(.5); }
@keyframes giftShake { 0%,80%,100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(14deg); } 95% { transform: rotate(-8deg); } }
.bonus-title { font-weight: 700; }
.bonus-sub { font-size: .8rem; color: var(--muted); }
.streak { display: flex; gap: 5px; margin: 6px 0 4px; }
.streak-day { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.08); border: 1px solid var(--glass-b); color: var(--muted); }
.streak-day.done { background: linear-gradient(135deg, var(--neon), var(--neon2)); color: #2b1600; border: 0; box-shadow: 0 0 10px rgba(255,207,63,.6); }

.deals-card { padding: 14px 16px; }
.deals-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 10px; }
.deals-head i { color: var(--neon); }
.deals-head a { font-size: .85rem; font-weight: 600; }
.deals-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.deal { flex: 0 0 150px; scroll-snap-align: start; background: #fff; color: #2b1a12 !important; border-radius: 14px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; position: relative; transition: transform .18s, box-shadow .2s; }
.deal:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(255,207,63,.35); }
.deal-img { height: 100px; display: block; overflow: hidden; background: #1a0b2e; }
.deal-img .deal-art, .deal-img img, .deal-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.deal-name { font-size: .78rem; font-weight: 600; padding: 6px 8px 0; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.deal-price { font-weight: 800; color: #7a0f2b; padding: 2px 8px 8px; font-size: .9rem; }
.deal-tag { position: absolute; top: 6px; left: 6px; background: var(--neon); color: #2b1600; font-size: .62rem; font-weight: 800; border-radius: 8px; padding: 1px 6px; }
.deals-card.compact .deal { flex-basis: 120px; }
.deals-card.compact .deal-img { height: 76px; }
.ad-wrap:empty { display: none; }
.ad-wrap .ad-slot { margin: 0 !important; border-radius: 16px; overflow: hidden; }
.howto { padding: 12px 16px; font-size: .88rem; }
.howto summary { cursor: pointer; font-weight: 600; }
.howto ul { margin: 10px 0 0; color: var(--muted); }

.chat-card { padding: 14px; display: flex; flex-direction: column; }
.chat-head { font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.chat-head i { color: var(--cyan); }
.ludo-chat { height: 240px; overflow-y: auto; background: rgba(0,0,0,.25); border-radius: 14px; padding: 10px; font-size: .88rem; overflow-wrap: anywhere; scrollbar-width: thin; }
.chat-line { margin-bottom: 6px; animation: viewIn .25s ease; }
.chat-line .bubble { display: inline-block; background: rgba(255,255,255,.1); padding: 5px 10px; border-radius: 4px 14px 14px 14px; max-width: 100%; }
.chat-line.mine { text-align: right; }
.chat-line.mine .bubble { background: linear-gradient(135deg, var(--pink), var(--neon2)); border-radius: 14px 4px 14px 14px; }
.chat-line .who { font-size: .72rem; font-weight: 700; display: block; margin-bottom: 1px; }
.chat-line.sys { text-align: center; color: var(--muted); font-size: .76rem; font-style: italic; }
.chat-form { display: flex; gap: 6px; margin-top: 8px; background: rgba(0,0,0,.25); border: 1px solid var(--glass-b); border-radius: 14px; padding: 4px 4px 4px 12px; }
.chat-form button { border: 0; border-radius: 10px; width: 36px; height: 34px; background: linear-gradient(135deg, var(--neon), var(--neon2)); color: #2b1600; }
.safe-note { font-size: .72rem; color: var(--muted); margin-top: 6px; }
.safe-note i { color: var(--green); }
.quick-chat { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.quick-chat button { border: 1px solid var(--glass-b); background: rgba(255,255,255,.06); color: var(--txt); border-radius: 20px; font-size: .75rem; padding: 3px 10px; }
.quick-chat button:hover { border-color: var(--neon); color: var(--neon); }
.earn-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--txt); text-align: left; transition: .2s; }
.earn-card:hover { border-color: rgba(46,213,115,.6); box-shadow: 0 0 24px rgba(46,213,115,.25); }
.earn-card small { display: block; color: var(--muted); }
.earn-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #12b886, #2ed573); color: #fff; font-size: 1.1rem; flex-shrink: 0; box-shadow: 0 0 18px rgba(46,213,115,.5); }
.leader-card { padding: 14px; }
.leaders { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.leaders li { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.rank { width: 26px; text-align: center; color: var(--muted); }

/* waiting */
.wait-card { max-width: 560px; margin: 20px auto; padding: 28px; text-align: center; }
.radar { position: relative; width: 120px; height: 120px; margin: 0 auto 10px; display: grid; place-items: center; }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--neon); animation: radar 2.4s ease-out infinite; opacity: 0; }
.radar span:nth-child(2) { animation-delay: .8s; } .radar span:nth-child(3) { animation-delay: 1.6s; }
.radar b { font-size: 44px; animation: wobble 2s ease-in-out infinite; }
@keyframes radar { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
.room-code { font-size: 2.8rem; font-weight: 900; letter-spacing: .5rem; font-family: ui-monospace, monospace; color: var(--neon); text-shadow: 0 0 18px rgba(255,207,63,.6); margin: 4px 0 10px; }
.wait-count { color: var(--muted); font-size: .9rem; margin: 10px 0; min-height: 1.3em; }
.wait-players { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.wait-players li { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.25); border-radius: 12px; padding: 8px 10px; }
.wait-players li.empty { opacity: .5; border: 1px dashed var(--glass-b); }

/* game */
.game-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
/* board + dice always fit on one screen (sticky site menu ~100px + seats + controls) */
.game-main { min-width: 0; max-width: max(320px, min(640px, calc(100vh - 340px))); width: 100%; margin: 0 auto; }
.is-embed .game-main, .ludo-app:fullscreen .game-main { max-width: max(300px, min(640px, calc(100vh - 260px))); }
.game-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.seat-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 10px; }
.seat { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-b); transition: .3s; min-width: 0; }
.seat .ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; background: var(--c); box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.seat .nm { font-weight: 600; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat .tag { font-size: .7rem; color: var(--muted); }
.seat .homes { display: flex; gap: 2px; margin-top: 2px; }
.seat .homes i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.18); }
.seat .homes i.in { background: var(--c); box-shadow: 0 0 6px var(--c); }
.seat.active { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 22px color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-2px); }
.seat.active .ava { animation: pulseAva 1.2s ease-in-out infinite; }
@keyframes pulseAva { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent); } }
.seat.gone { opacity: .5; }

.board-wrap { position: relative; padding: 10px; border-radius: 24px; background: linear-gradient(135deg, rgba(255,207,63,.6), rgba(255,61,154,.6), rgba(41,211,255,.6)); box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 50px rgba(255,61,154,.25); }
.board { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #fff; }
.board.shake { animation: shake .45s; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.board-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.react-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 24px; }
.react-fly { position: absolute; bottom: 10%; font-size: 2.6rem; animation: fly 2.2s ease-out forwards; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.react-fly small { display: block; font-size: .7rem; text-align: center; color: #fff; background: rgba(0,0,0,.5); border-radius: 8px; padding: 0 4px; }
@keyframes fly { 0% { transform: translateY(0) scale(.5); opacity: 0; } 15% { opacity: 1; transform: translateY(-20px) scale(1.2); } 100% { transform: translateY(-260px) scale(1); opacity: 0; } }
.turn-toast { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; font-weight: 900; font-size: clamp(1.6rem, 6vw, 2.6rem);
    color: #fff; background: linear-gradient(135deg, var(--pink), var(--neon2)); padding: 10px 26px; border-radius: 20px; box-shadow: 0 10px 40px rgba(255,61,154,.6); transition: .3s; white-space: nowrap; }
.turn-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.token { position: absolute; width: 5.4%; height: 5.4%; border-radius: 50%; padding: 0; transform: translate(-50%, -50%) scale(var(--scale, 1));
    border: 2px solid #fff; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.85) 0 12%, transparent 14%), radial-gradient(circle at 50% 50%, var(--tc) 55%, color-mix(in srgb, var(--tc) 60%, #000) 100%);
    box-shadow: 0 3px 6px rgba(0,0,0,.5), inset 0 -3px 0 rgba(0,0,0,.2); transition: left .38s cubic-bezier(.34,1.56,.64,1), top .38s cubic-bezier(.34,1.56,.64,1), transform .2s; z-index: 2; cursor: default; }
.token-red { --tc: #ff3b3b; } .token-green { --tc: #1fbf5a; } .token-yellow { --tc: #ffbf00; } .token-blue { --tc: #1e7bff; }
.token.movable { cursor: pointer; z-index: 3; animation: tokenPulse .8s ease-in-out infinite; }
.token.mine:not(.movable) { box-shadow: 0 3px 6px rgba(0,0,0,.5), 0 0 0 2px rgba(255,255,255,.6); }
.token:disabled { opacity: 1; }
@keyframes tokenPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(var(--scale, 1)); box-shadow: 0 0 0 0 rgba(255,207,63,.95), 0 3px 6px rgba(0,0,0,.5); }
    50% { transform: translate(-50%, -66%) scale(calc(var(--scale, 1) * 1.15)); box-shadow: 0 0 0 7px rgba(255,207,63,0), 0 8px 12px rgba(0,0,0,.4); } }

.control-bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-top: 12px; }
.min-w-0 { min-width: 0; }
.turn-text { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.hint-text { font-size: .8rem; color: var(--muted); }
.timer { height: 7px; background: rgba(255,255,255,.1); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.timer-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--neon), var(--neon2)); border-radius: 6px; transition: width .2s linear; }
.timer-bar.low { background: linear-gradient(90deg, #ff4d4f, #ff7a18); }
.timer-bar.green { background: linear-gradient(90deg, #12b886, #2ed573); }
.chat-toggle { display: none; }
.unread { position: absolute; top: -6px; right: -6px; background: var(--pink); color: #fff; font-size: .65rem; font-weight: 800; border-radius: 10px; padding: 1px 5px; }
.away-box { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255,195,18,.15); border: 1px solid rgba(255,195,18,.4); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.react-bar { display: flex; justify-content: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.react-bar button { border: 1px solid var(--glass-b); background: var(--glass); border-radius: 50%; width: 42px; height: 42px; font-size: 1.3rem; transition: transform .15s; }
.react-bar button:hover { transform: scale(1.25) rotate(-8deg); }
.react-bar button:active { transform: scale(.9); }

/* dice with real dots */
.dice { width: 74px; height: 74px; border-radius: 18px; border: 0; padding: 0; flex-shrink: 0; background: linear-gradient(145deg, #ffffff, #e6e0f0);
    box-shadow: 0 6px 0 #b9b0cc, 0 10px 24px rgba(0,0,0,.45), inset 0 0 0 3px var(--dc, transparent); display: grid; place-items: center; transition: transform .15s; }
.dice:disabled { opacity: .7; cursor: default; }
.dice.ready { cursor: pointer; animation: diceReady 1.1s ease-in-out infinite; }
.dice.ready:active { transform: translateY(4px); box-shadow: 0 2px 0 #b9b0cc, 0 4px 12px rgba(0,0,0,.4); }
@keyframes diceReady { 0%,100% { box-shadow: 0 6px 0 #b9b0cc, 0 0 0 0 rgba(255,207,63,.9); } 50% { box-shadow: 0 6px 0 #b9b0cc, 0 0 0 12px rgba(255,207,63,0); } }
.dice.rolling .die { animation: diceRoll .55s cubic-bezier(.2,.8,.3,1.2); }
@keyframes diceRoll { 0% { transform: rotate(0) scale(.5); } 50% { transform: rotate(270deg) scale(1.2); } 100% { transform: rotate(360deg) scale(1); } }
.die { width: 52px; height: 52px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 4px; }
.die i { width: 11px; height: 11px; border-radius: 50%; background: #2a0b4a; place-self: center; box-shadow: inset 0 2px 2px rgba(0,0,0,.4); }
.die[data-v="0"]::before { content: "🎲"; grid-area: 1 / 1 / 4 / 4; place-self: center; font-size: 36px; }

/* overlays */
.ludo-overlay { position: fixed; inset: 0; background: rgba(10,3,24,.72); z-index: 1060; display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(3px); }
.ludo-overlay.d-none { display: none !important; }
.result-card, .ad-card { max-width: 440px; width: 100%; padding: 26px; text-align: center; animation: popIn .45s cubic-bezier(.34,1.56,.64,1); background: rgba(42,11,74,.92); }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
.result-trophy { font-size: 4.2rem; animation: floaty 2s ease-in-out infinite; }
.result-card h3 { font-weight: 900; }
.result-deal { display: block; margin-top: 16px; font-size: .85rem; padding: 8px 12px; border-radius: 12px; background: rgba(255,207,63,.12); text-decoration: none; }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ad-label { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); text-align: left; }
.ad-text { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #fff8ec, #ffe6b3); color: #2b1a12; text-align: left; }
.ludo-toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1070; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 420px); }
.ltoast { padding: 10px 16px; border-radius: 14px; background: rgba(30,10,55,.95); border: 1px solid var(--glass-b); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: popIn .3s; font-size: .9rem; text-align: center; }
.ltoast.success { border-color: #2ed573; } .ltoast.danger { border-color: #ff4d4f; } .ltoast.warning { border-color: #ffc312; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* responsive */
@media (max-width: 991px) {
    .lobby-grid, .game-grid { grid-template-columns: minmax(0, 1fr); }
    .chat-toggle { display: inline-grid; }
    .game-side { position: fixed; inset: auto 0 0 0; z-index: 1050; max-height: 78vh; overflow-y: auto; padding: 12px; background: rgba(18,6,38,.97); border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .3s; box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
    .game-side.open { transform: none; }
    .game-side .deals-card, .game-side .ad-wrap { display: none; }
}
@media (max-width: 575px) {
    .ludo-app { padding: 10px 10px 24px; }
    .mode-grid { grid-template-columns: 1fr; }
    .mode { flex-direction: row; align-items: center; gap: 12px; padding: 14px; }
    .mode i { margin: 0; }
    .mode small { margin-left: auto; text-align: right; }
    .hero-card { padding: 18px; }
    .hero-dice { font-size: 40px; opacity: .5; }
    .seat-bar { grid-template-columns: 1fr 1fr; }
    .dice { width: 62px; height: 62px; } .die { width: 44px; height: 44px; } .die i { width: 9px; height: 9px; }
    .token { border-width: 1px; }
    .wait-players { grid-template-columns: 1fr; }
    .game-main { max-width: 100%; }
    .react-bar { gap: 4px; flex-wrap: nowrap; }
    .react-bar button { width: 36px; height: 36px; font-size: 1.05rem; }
    .seat { padding: 5px 7px; } .seat .ava { width: 28px; height: 28px; font-size: .95rem; }
    .ludo-brand span:last-child { display: none; }
}

/* ---------- invite / share / follow / weekly leaderboard / board sponsor ---------- */
.invite-card, .follow-card { display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; }
.follow-card { display: block; }
.invite-ico { font-size: 2.2rem; line-height: 1; filter: drop-shadow(0 0 12px rgba(41,211,255,.5)); }
.invite-link { display: flex; gap: 6px; margin: 10px 0 8px; background: rgba(0,0,0,.25); border: 1px solid var(--glass-b); border-radius: 12px; padding: 4px 4px 4px 10px; max-width: 460px; }
.invite-link input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--neon); font-weight: 600; font-size: .85rem; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sh { width: 40px; height: 40px; border-radius: 12px; border: 0; color: #fff; font-size: 1.15rem; display: grid; place-items: center; transition: transform .15s, box-shadow .2s; }
.sh:hover { transform: translateY(-3px) scale(1.06); }
.sh-wa { background: #25d366; box-shadow: 0 4px 14px rgba(37,211,102,.4); } .sh-fb { background: #1877f2; box-shadow: 0 4px 14px rgba(24,119,242,.4); }
.sh-x { background: #000; border: 1px solid #444; } .sh-tg { background: #229ed9; } .sh-more { background: linear-gradient(135deg, var(--pink), var(--neon2)); }
.follow-row { display: flex; gap: 8px; flex-wrap: wrap; }
.follow-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; color: #fff !important; text-decoration: none; font-weight: 600; font-size: .88rem; transition: transform .15s; }
.follow-btn:hover { transform: translateY(-2px); }
.follow-btn .fb-pts { background: rgba(0,0,0,.25); border-radius: 8px; padding: 0 6px; font-size: .75rem; }
.f-facebook { background: #1877f2; } .f-instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); } .f-youtube { background: #ff0000; } .f-x { background: #111; border: 1px solid #444; }
.follow-btn.done { opacity: .6; }
.lb-tabs { display: inline-flex; background: rgba(0,0,0,.3); border-radius: 10px; padding: 3px; }
.lb-tabs button { border: 0; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.lb-tabs button.on { background: linear-gradient(135deg, var(--neon), var(--neon2)); color: #2b1600; }
.prize-line { font-size: .78rem; color: var(--neon); background: rgba(255,207,63,.1); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; }
.board-sponsor { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 10px; padding: 8px 14px; border-radius: 14px; font-size: .85rem;
    background: linear-gradient(90deg, rgba(255,207,63,.16), rgba(255,61,154,.16)); border: 1px solid rgba(255,207,63,.4); color: var(--txt) !important; text-decoration: none; }
.board-sponsor .bs-label { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; }
.board-sponsor .bs-body { color: var(--muted); }
.board-sponsor .bs-go { color: var(--neon); font-weight: 700; margin-left: 4px; }
.board-sponsor:hover { box-shadow: 0 0 20px rgba(255,207,63,.3); }
.share-win { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--glass-b); }
@media (max-width: 575px) { .invite-card { flex-direction: column; gap: 6px; } .invite-ico { font-size: 1.8rem; } }
