/* Logged-in visual skin. Deliberately scoped: no guest, auth or game-engine rules. */
.ip-shell {
  --font: 'Nunito Sans', system-ui, sans-serif;
  --text: #f6efff; --text-dim: #c8b8de; --muted: #c8b8de;
  --bg-soft: #211338; --surface: #281941; --surface-2: #35204e;
  --border: #b28bdd38; --accent: #73efae; --accent-2: #d6adff; --gold: #ffe09a;
  --ip-card: linear-gradient(145deg,#402657eb,#201333f5);
  --ip-field: #170d29a6; --ip-tile: #ffffff08; --ip-header: #241239db;
  --ip-line: #f5ddff25; --ip-shadow: #10071f66; --ip-gold-surface: #efbb5020;
  font-family: var(--font); color:var(--text); background: #17112a;
  isolation:isolate; min-height:100svh; padding-bottom:118px; position:relative;
}
.ip-shell::before,.ip-shell::after {
  content:'';position:fixed;inset:0;z-index:-2;pointer-events:none;
  background-position:center;background-size:cover;transition:opacity .65s ease;
}
.ip-shell::before{background-image:linear-gradient(180deg,#110d2820,#150c3460),url('../images/internal-premium/village-night.webp')}
.ip-shell::after{background-image:linear-gradient(180deg,#53315708,#71466f25),url('../images/internal-premium/village-dawn.webp');opacity:0}
html[data-theme=light] .ip-shell {
  --text:#422650; --text-dim:#786184; --muted:#786184;
  --bg-soft:#faf0ff; --surface:#fff5fb; --surface-2:#f3e4f9;
  --border:#8e5bb630; --accent:#167249; --accent-2:#783dac; --gold:#885618;
  --ip-card:linear-gradient(145deg,#fff6ffeb,#eedbf5f2);
  --ip-field:#fffaffad; --ip-tile:#fff9ff70; --ip-header:#f9ebfad9;
  --ip-line:#9861b332; --ip-shadow:#4b20582b; --ip-gold-surface:#fff0c9b8;
}
html[data-theme=light] .ip-shell::after{opacity:1}
.ip-shell button,.ip-shell input,.ip-shell select{font-family:var(--font)}
.ip-shell button{touch-action:manipulation}
.ip-shell button:focus-visible,.ip-shell a:focus-visible{outline:3px solid var(--accent-2);outline-offset:4px}
.ip-shell .panel-topbar {
  width:calc(100% - 48px);max-width:1060px;margin:18px auto 0;padding:9px 18px;
  border:1px solid var(--ip-line);border-radius:22px;background:var(--ip-header);
  backdrop-filter:blur(18px);box-shadow:0 8px 28px var(--ip-shadow),inset 0 1px #ffffff20;
  top:12px;gap:14px;transition:background .4s,border-color .4s;
}
.ip-shell .panel-topbar-logo{height:65px;width:99px;max-width:99px;filter:drop-shadow(0 3px 4px #36154b26)}
.ip-shell .panel-topbar-actions{gap:10px}
.ip-shell .panel-balance{text-align:right;padding:5px 14px 5px 0;border-right:1px solid var(--ip-line)}
.ip-shell .panel-balance-label{display:block;color:var(--text-dim);font-size:9px;letter-spacing:.16em;font-weight:700;line-height:1.5}
.ip-shell .panel-balance-value{color:var(--accent);font-size:21px;line-height:1.25;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.ip-shell .panel-theme-btn,.ip-shell .panel-profile-btn {
  width:40px;height:40px;border:1px solid var(--ip-line);border-radius:14px;
  background:var(--ip-tile);color:var(--text);box-shadow:inset 0 1px #ffffff20;
  transition:background .3s,transform .18s;font-size:16px;font-weight:700;
}
.ip-shell .panel-theme-btn svg{width:19px;height:19px}
.ip-shell .panel-profile-btn{background:linear-gradient(145deg,#ce9df5,#8048bc);color:#fff;border-color:#e0b7ff80;box-shadow:0 3px 0 #502577}
.ip-shell .panel-page{width:100%;max-width:1000px;margin:30px auto 0;padding:0 24px;min-height:0;display:block}
.ip-shell .panel-page .panel-card {
  width:100%;max-width:none;padding:25px;border:1px solid var(--ip-line);border-radius:28px;
  background:var(--ip-card);backdrop-filter:blur(22px);box-shadow:0 18px 60px var(--ip-shadow),inset 0 1px #ffffff45;
  animation:ip-arrive .45s ease both;overflow:visible;
}
.ip-shell .panel-card::before{background:none;animation:none;inset:5px;border:1px solid var(--ip-line);border-radius:23px;padding:0;mask:none;-webkit-mask:none}
.ip-shell .panel-card::after{display:none}
.ip-shell .panel-page .panel-banner{margin:-25px -25px 22px;border-radius:28px 28px 0 0;background:transparent;overflow:hidden;border-bottom:1px solid var(--ip-line)}
.ip-hero{position:relative;min-height:220px;isolation:isolate;overflow:hidden;background:linear-gradient(90deg,#321850ee,#54258055),url('../images/internal-premium/village-night.webp') center 44%/cover}
html[data-theme=light] .ip-hero{background-image:linear-gradient(90deg,#512061eb,#91448b3a),url('../images/internal-premium/village-dawn.webp')}
.ip-hero-copy{position:relative;z-index:2;padding:43px 28px 34px;width:70%;color:#fff6ed}
.ip-eyebrow{display:block;font-size:9px;font-weight:800;letter-spacing:.2em;color:#f7d69c;margin-bottom:13px}
.ip-hero h1{font-family:BubbleDisplay,'Outfit',sans-serif;font-weight:400;font-size:37px;line-height:1.04;letter-spacing:.005em;text-shadow:0 3px #331443;margin:0;max-width:250px}
.ip-hero h1 em{display:block;font-style:normal;color:#ffdf6d;text-shadow:0 3px #a96420,0 5px #4b2252}
.ip-hero p{font-size:12px;color:#f3dff9;margin:15px 0 0;font-weight:500}
.ip-shell .panel-banner .ip-hero-witch{position:absolute;right:-9px;bottom:-36px;width:42%;height:100%;max-height:none;object-fit:contain;object-position:bottom;filter:drop-shadow(-10px 10px 15px #2b0a4d55);border-radius:0}
.ip-shell .panel-banner .ip-orb{position:absolute;border-radius:0;object-fit:contain;max-height:none;height:auto;filter:drop-shadow(0 6px 8px #23113a66);pointer-events:none}
.ip-shell .panel-banner .ip-orb-purple{width:35px;right:33%;bottom:22px;transform:rotate(-15deg)}
.ip-shell .panel-banner .ip-orb-green{width:28px;right:14px;top:58px}
.ip-hero-star{position:absolute;color:#ffe49e;right:39%;top:27px;font-size:23px}
.ip-shell .online-fire-pill{top:14px;right:17px;left:auto;bottom:auto;gap:4px;padding:6px 10px;border:1px solid #e4c083;border-radius:999px;background:linear-gradient(#fff9df,#ffedbf);box-shadow:0 2px 0 #8b572b55;color:#77522d;font-size:10px;animation:none;line-height:1.2}
.ip-shell .online-fire-pill::before{content:'';position:static;display:block;flex:none;width:5px;height:5px;margin-right:3px;border-radius:50%;background:#20aa64;box-shadow:0 0 0 3px #31ac6614;animation:none}
.ip-shell .online-fire-pill::after{content:none}
.ip-shell .online-fire-pill .live-count{font-size:11px;color:#77522d;font-weight:800;text-shadow:none}
.ip-shell .online-fire-pill .online-label{font-size:10px;color:#77522d;font-weight:600}
.ip-shell .panel-page .panel-card .panel-label{font-size:10px;letter-spacing:.14em;color:var(--text-dim);font-weight:800;margin:0 0 15px}
.ip-shell .panel-page .panel-card .panel-label:before,.ip-shell .panel-page .panel-card .panel-label:after{background:var(--ip-line);width:36px}
.ip-shell .panel-page .panel-card .entry-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}
.ip-shell .panel-page .panel-card .entry-chip {
  background:var(--ip-tile);color:var(--text);border:1px solid var(--ip-line);border-radius:13px;height:48px;
  padding:0 5px;font-size:15px;font-weight:700;box-shadow:0 3px 0 var(--ip-shadow),inset 0 1px #ffffff15;
  transition:background .2s,box-shadow .2s,transform .18s,color .2s;
}
.ip-shell .panel-page .panel-card .entry-chip:hover:not(.active){border-color:#b885e2;background:#b785ef25;transform:translateY(-1px)}
.ip-shell .panel-page .panel-card .entry-chip.active{color:#4f2a11;background:linear-gradient(#fff9dd,#ffe59d 49%,#fbd271 50%,#ffe6a5);border-color:#edc57e;box-shadow:0 3px 0 #ad773b,0 4px 14px #ffcd581a,inset 0 1px #fffaf2;text-shadow:0 1px #ffffff60;transform:translateY(-1px)}
.ip-shell .panel-page .panel-card .entry-chip:active{transform:translateY(2px);box-shadow:inset 0 2px 4px #30144530}
.ip-shell .money-input{border:1px solid var(--ip-line);background:var(--ip-field);border-radius:13px;gap:12px;box-shadow:inset 0 2px 5px #1d0d2d10;padding:0 14px;transition:background .3s,border-color .2s,box-shadow .2s}
.ip-shell .money-input:focus-within{border-color:#aa77d5;box-shadow:0 0 0 3px #aa77d525,inset 0 1px 4px #21102c15}
.ip-shell .money-input .prefix{font-size:12px;color:var(--text-dim);font-weight:700;flex-shrink:0}
.ip-shell .money-input input{min-width:0;font-size:16px;color:var(--text);font-weight:600;padding:14px 0}
.ip-shell .money-input input::placeholder{color:var(--text-dim);font-weight:400;opacity:.8}
.ip-shell .panel-page .panel-card .money-input{height:58px;min-height:58px;padding:0 16px;border-radius:14px;border:1px solid var(--ip-line);background:var(--ip-field);box-shadow:inset 0 2px 5px #1d0d2d15;margin-bottom:14px}
.ip-shell .panel-page .panel-card .money-input:focus-within{border-color:#b788e2;box-shadow:0 0 0 3px #aa77d525}
.ip-shell .panel-page .panel-card .money-input .prefix{font-size:13px;color:var(--text-dim)}
.ip-shell .panel-page .panel-card .money-input input{font-family:Outfit,var(--font);font-size:25px;font-weight:500;padding:0 28px 0 0;color:var(--text)}
.ip-shell .panel-page .panel-card .money-input input::placeholder{font-weight:400;color:var(--text-dim);opacity:.6}
.ip-shell .panel-page .panel-card .reward-box{align-items:center;gap:10px;padding:13px 14px;margin-bottom:16px;border:1px solid #dca55c50;border-radius:13px;background:var(--ip-gold-surface);box-shadow:inset 0 1px #ffffff20}
.ip-shell .panel-page .panel-card .reward-box .label{font-size:11px;font-weight:600;color:var(--text)}
.ip-shell .reward-box .label::before{content:'✦';color:var(--gold);font-size:15px;margin-right:7px}
.ip-shell .panel-page .panel-card .reward-box .value{color:var(--gold);font-family:Outfit,var(--font);font-weight:600;font-size:22px;text-shadow:none}
.ip-shell .panel-cta,.ip-shell .panel-page .panel-card .panel-cta,.ip-shell .sheet-cta {
  position:relative;min-height:53px;width:100%;padding:13px 22px;margin:0 0 7px;border:2px solid #bdffae;border-radius:999px;
  background:linear-gradient(#bfff9c 0%,#85f783 45%,#1bd663 50%,#0bbb55 100%);color:#104324;
  box-shadow:0 5px 0 #127242,0 8px 0 #123d2225,inset 0 2px 0 #f0ffd6b3,0 10px 24px #13ba5720;
  font-family:BubbleRound,var(--font);font-size:19px;letter-spacing:.025em;font-weight:800;text-transform:uppercase;
  text-shadow:0 1px #e2ffd87a;animation:none;transition:transform .16s,box-shadow .16s,filter .2s;
}
.ip-shell .panel-page .panel-card .panel-cta::before{content:'▶';font-family:var(--font);font-size:15px;margin-right:10px}
.ip-shell .panel-page .panel-card .panel-cta::after{content:none}
.ip-shell .panel-cta:not(:disabled):hover,.ip-shell .panel-page .panel-card .panel-cta:not(:disabled):hover,.ip-shell .sheet-cta:not(:disabled):hover{filter:brightness(1.04);transform:translateY(-1px);box-shadow:0 6px 0 #127242,0 12px 24px #13ba5720}
.ip-shell .panel-cta:not(:disabled):active,.ip-shell .panel-page .panel-card .panel-cta:not(:disabled):active,.ip-shell .sheet-cta:not(:disabled):active{transform:translateY(4px);box-shadow:0 1px 0 #127242}
.ip-shell .panel-cta:disabled,.ip-shell .panel-page .panel-card .panel-cta:disabled,.ip-shell .sheet-cta:disabled{opacity:.55;filter:saturate(.35);cursor:not-allowed;animation:none}
.ip-shell .bottom-nav{left:50%;right:auto;bottom:max(14px,env(safe-area-inset-bottom));width:min(560px,calc(100% - 28px));padding:11px 12px 8px;transform:translateX(-50%);gap:0;justify-content:space-between;background:var(--ip-header);border:1px solid var(--ip-line);border-radius:24px;box-shadow:0 10px 40px var(--ip-shadow),inset 0 1px #ffffff20;backdrop-filter:blur(20px)}
.ip-shell .nav-item{color:var(--text-dim);min-width:0;flex:1;padding:4px 2px;gap:5px;font-size:10px;font-weight:600;transition:color .2s,background .2s;border-radius:14px;min-height:45px}
.ip-shell .nav-item>svg{width:21px;height:21px;stroke-width:1.6}
.ip-shell .nav-item:hover,.ip-shell .nav-item.ip-active{color:var(--accent-2);background:#ae72dd17}
.ip-shell .nav-item.center{margin-top:-28px;align-self:flex-end;gap:4px}
.ip-shell .nav-item.center .nav-circle{width:53px;height:53px;background:radial-gradient(circle at 35% 24%,#b06af2,#68359e 55%,#382154);border:2px solid #dca6f0;box-shadow:0 4px 0 #452269,0 0 0 6px var(--ip-header),0 8px 20px #33154240}
.ip-shell .nav-item.center .nav-circle:before{display:none}
.ip-shell .nav-item.center .nav-bubble{width:31px;height:31px;filter:drop-shadow(0 2px 3px #35174b70)}
.ip-shell .nav-item.center span{color:var(--gold);font-weight:800}
/* Sheets, dialogs and all wallet states use the same local palette. */
.ip-shell .sheet-overlay,.ip-shell>.modal-overlay{background:#160b2b94;backdrop-filter:blur(9px);padding-top:18px}
.ip-shell .sheet {background:var(--ip-card);border:1px solid var(--ip-line);border-bottom:none;box-shadow:0 -8px 65px #16082650;max-width:480px;max-height:calc(100dvh - 24px);padding:8px 22px calc(26px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0;color:var(--text);animation:ip-sheet-enter .25s ease-out}
.ip-shell .sheet-hero{margin:-8px -22px 14px;border-radius:28px 28px 0 0;background:none;border-bottom:1px solid var(--ip-line)}
.ip-sheet-art{height:105px;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 100%,#d396ed55,transparent 65%),linear-gradient(120deg,#472366,#6e397b,#3c205d)}
.ip-shell .ip-sheet-art img{position:absolute;left:50%;top:0;transform:translateX(-50%);width:130px;height:110px;object-fit:contain;filter:drop-shadow(0 8px 10px #170d2860)}
.ip-art-orbit{position:absolute;width:220px;height:220px;border:1px solid #e9c28450;left:50%;top:16px;transform:translateX(-50%) rotate(-15deg);border-radius:50%;box-shadow:0 0 0 18px #ebc28708,0 0 0 42px #ebc28706}
.ip-art-star{position:absolute;left:23%;top:33px;font-size:25px;color:#ffe5a2}
.ip-shell .sheet-handle{background:var(--ip-line);width:34px;height:3px;margin:9px auto 14px}
.ip-shell .sheet-handle-overlay{display:none}
.ip-shell .sheet-close{background:#70498b26;border:1px solid var(--ip-line);color:var(--text);height:36px;width:36px;font-size:15px;box-shadow:inset 0 1px #ffffff20}
.ip-shell .sheet-close-overlay{background:#2b163780;color:#fff;top:13px;right:15px;border-color:#ffffff30}
.ip-shell .pay-head{text-align:center;margin:0 0 18px}
.ip-shell .pay-head h2,.ip-shell .sheet-header h2{font-family:Outfit,var(--font);font-size:25px;font-weight:600;letter-spacing:-.025em;color:var(--text);text-shadow:none}
.ip-shell .pay-head p{font-size:12px;font-weight:400;color:var(--text-dim);margin-top:3px}
.ip-shell .sheet-section{background:var(--ip-tile);border:1px solid var(--ip-line);padding:16px;border-radius:17px;margin-bottom:14px;box-shadow:inset 0 1px #ffffff13}
.ip-shell .sheet .panel-label{font-size:10px;letter-spacing:.09em;font-weight:700;color:var(--text-dim);margin-bottom:13px}
.ip-shell .pay-info{background:#36bb8220;border:1px solid #3bb17a30;color:var(--text);border-radius:13px;padding:11px;margin-bottom:16px;gap:10px}
.ip-shell .pay-info-icon{color:var(--accent);background:#56d89520;flex-shrink:0}
.ip-shell .pay-info-text strong{color:var(--text);font-size:12px;font-weight:700}
.ip-shell .pay-info-text small{color:var(--text-dim);font-size:11px;line-height:1.5}
.ip-shell .quick-grid{gap:15px 9px;grid-template-columns:repeat(3,minmax(0,1fr));margin:17px 0 18px}
.ip-shell .quick-value{border:1px solid var(--ip-line);border-radius:12px;background:var(--ip-tile);color:var(--text);font-size:13px;font-weight:700;padding:18px 4px 12px;min-height:49px;box-shadow:0 3px 0 var(--ip-shadow);animation:none}
.ip-shell .quick-value.active{background:var(--ip-gold-surface);border-color:#d9b270;color:var(--gold);box-shadow:0 3px #96693540,inset 0 1px #fff4b335}
.ip-shell .sheet--deposit .quick-value:hover:not(.active){background:linear-gradient(180deg,color-mix(in srgb,var(--accent-2) 14%,#ffffff40),color-mix(in srgb,var(--accent-2) 8%,var(--ip-tile)));border-color:color-mix(in srgb,var(--accent-2) 50%,var(--ip-line));color:var(--text);box-shadow:0 3px 0 var(--ip-shadow),0 6px 14px color-mix(in srgb,var(--accent-2) 20%,transparent)}
.ip-shell .quick-badge{font-size:8px;padding:2px 7px;letter-spacing:.04em}
.ip-shell .quick-value.bonus-glow{animation:none}
.ip-shell .pay-limits{font-size:10px;color:var(--text-dim);margin-top:7px}
.ip-shell .bonus-card,.ip-shell .ref-card,.ip-shell .profile-level{background:linear-gradient(135deg,#9961cb1f,#c994e40a);border:1px solid var(--ip-line);border-radius:17px;padding:16px;color:var(--text);box-shadow:inset 0 1px #ffffff16}
.ip-shell .sheet--deposit .bonus-card + .sheet-cta{margin-top:16px}
.ip-shell .bonus-card-value{font-family:Outfit,var(--font);font-size:26px;color:var(--accent);font-weight:600}
.ip-shell .bonus-card-label,.ip-shell .bonus-card-use,.ip-shell .bonus-card-total{font-size:12px;color:var(--text)}.ip-shell .input{background:var(--ip-field);color:var(--text);border:1px solid var(--ip-line);border-radius:12px;padding:12px;font-size:16px;font-weight:400}
.ip-shell .input-group label{font-size:11px;color:var(--text-dim);font-weight:600}
.ip-shell .input:focus{border-color:#aa77d5;box-shadow:0 0 0 3px #aa77d525}
.ip-shell .input-password .input{padding-right:44px}
.ip-shell .saldo-row .coin{color:var(--gold);background:var(--ip-gold-surface);border-color:#d0a76555;border-radius:13px;width:42px;height:42px}
.ip-shell .saldo-row .label{font-size:10px;letter-spacing:.06em;color:var(--text-dim)}
.ip-shell .saldo-row .value{color:var(--accent);font-family:Outfit,var(--font);font-size:26px;font-weight:600}
.ip-shell .notice-box{color:var(--text-dim);background:var(--ip-tile);border-color:var(--ip-line);font-size:11px;line-height:1.7;border-radius:13px}
.ip-shell .alert{font-size:12px;line-height:1.5;border-radius:12px;padding:12px}
.ip-shell .alert-error{background:#fb66721a;color:#ffacb4;border:1px solid #ed687f55}
.ip-shell .alert-success{background:#28b5781a;color:#8df2b6;border:1px solid #48c58b50}
html[data-theme=light] .ip-shell .alert-error{color:#a02944;background:#fff0f2}
html[data-theme=light] .ip-shell .alert-success{color:#216b43;background:#edf9ef}
.ip-shell .pix-view{gap:13px}
.ip-shell .pix-view-qr{background:#fff;border:7px solid #fff;border-radius:18px;padding:8px;width:min(220px,80%);height:auto;aspect-ratio:1;box-shadow:0 6px 24px #1b102830}
.ip-shell .pix-timer{background:var(--ip-gold-surface);border:1px solid #d0a76555;box-shadow:none;border-radius:12px;padding:10px 24px}
.ip-shell .pix-timer-label{color:var(--text-dim);font-size:9px;letter-spacing:.08em}
.ip-shell .pix-timer-digits{color:var(--gold);font-family:Outfit,var(--font);font-size:25px;font-weight:600;letter-spacing:.07em}
.ip-shell .pix-copy-box{background:var(--ip-field);color:var(--text-dim);border-color:var(--ip-line);font-size:11px;border-radius:12px;max-height:92px;overflow:auto}
.ip-shell .pix-txid{font-size:10px;color:var(--text-dim)}
.ip-shell .pix-new-btn{border-color:var(--ip-line);color:var(--text);font-size:13px}
.ip-shell .btn{font-size:12px;font-weight:700;letter-spacing:.02em;text-transform:none;min-height:40px;border-radius:12px}
.ip-shell .btn-primary{background:linear-gradient(#aa77df,#7644b0);border:1px solid #b68ada;color:#fff;box-shadow:0 3px 0 #4f2a76}
.ip-shell .btn-ghost{border-color:var(--ip-line);color:var(--text);background:var(--ip-tile)}
.ip-shell .btn-danger{background:#ba446214;border:1px solid #c56b813a;color:#ef9ab4;box-shadow:none}
html[data-theme=light] .ip-shell .btn-danger{color:#a03154}
.ip-shell .ref-card .label,.ip-shell .ref-card .small{color:var(--text-dim);font-size:11px}
.ip-shell .ref-card .big{font-family:Outfit,var(--font);font-size:29px;font-weight:600;color:var(--text)}
.ip-shell .ref-card .cta,.ip-shell .ref-copy-btn{background:linear-gradient(#b594de,#8753b4);border:1px solid #bc9ade;color:#fff;box-shadow:0 3px #4f2c7433;font-size:12px;border-radius:12px;padding:10px 14px;min-height:40px}
.ip-shell .ref-link-value{font-size:12px;font-weight:500;color:var(--text);border-color:var(--ip-line);background:var(--ip-field);padding:12px;line-height:1.65}
.ip-shell .ref-levels{gap:8px}
.ip-shell .ref-level{background:var(--ip-tile);border:1px solid var(--ip-line);padding:14px 5px;border-radius:13px;min-width:0}
.ip-shell .ref-level .tier{color:var(--accent-2);font-size:14px}
.ip-shell .ref-level .count{color:var(--text);font-size:23px;font-family:Outfit,var(--font);font-weight:500}
.ip-shell .ref-level .vol{color:var(--gold);font-size:11px;overflow-wrap:anywhere}
.ip-shell .ref-level .count-sub,.ip-shell .ref-level .tier-sub{font-size:9px;color:var(--text-dim)}
.ip-shell .ref-history-empty,.ip-shell .profile-scroll>p{background:var(--ip-tile);border:1px dashed var(--ip-line);border-radius:13px;padding:23px 15px;text-align:center;color:var(--text-dim);font-size:12px!important;line-height:1.7}
.ip-shell .ref-history-empty::before,.ip-shell .profile-scroll>p::before{content:'✧';display:block;font-size:25px;color:var(--accent-2);margin-bottom:7px}
.ip-shell .ref-history-item,.ip-shell .tx-item{background:var(--ip-tile);border:1px solid var(--ip-line);border-radius:12px;padding:12px;gap:10px}
.ip-shell .ref-history-name,.ip-shell .tx-item .d{font-size:12px;color:var(--text)}
.ip-shell .ref-history-dep,.ip-shell .tx-item .t{font-size:10px;color:var(--text-dim)}
.ip-shell .ref-history-value{font-size:13px;color:var(--accent)}
.ip-shell .profile-user{padding:16px;background:linear-gradient(120deg,#b580d626,#e2b5650f)}
.ip-shell .winner-avatar{flex-shrink:0;border:1px solid #e4c0ff99;border-radius:17px;background:linear-gradient(145deg,#c99eee,#7943b4);color:#fff;width:49px;height:49px;font-family:Outfit,var(--font);font-size:22px;font-weight:500;box-shadow:0 3px 0 #63377c}
.ip-shell .profile-user-name{font-family:Outfit,var(--font);font-weight:600;font-size:20px;color:var(--text)}
.ip-shell .profile-user-phone{font-size:11px;color:var(--text-dim)}
.ip-shell .profile-ref-row{gap:5px;flex-wrap:wrap}
.ip-shell .profile-ref-link{font-size:10px;color:var(--text-dim);overflow-wrap:anywhere}
.ip-shell .profile-ref-copy{font-size:10px;color:var(--accent-2);background:var(--ip-tile);border:1px solid var(--ip-line);padding:5px 8px;border-radius:8px}
.ip-shell .profile-level-badge{font-size:11px;font-weight:700;border-radius:8px}
.ip-shell .profile-level-meta,.ip-shell .profile-level-foot{font-size:10px;color:var(--text-dim)}
.ip-shell .profile-level-bar{height:6px;background:var(--ip-field);margin:13px 0}
.ip-shell .profile-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ip-shell .quick-stat{background:var(--ip-tile);border:1px solid var(--ip-line);border-radius:14px;padding:15px 9px;min-width:0}
.ip-shell .quick-stat .v{font-family:Outfit,var(--font);font-size:23px;font-weight:600;color:var(--text);letter-spacing:-.04em}
.ip-shell .quick-stat .l{font-size:10px;color:var(--text-dim);margin-top:4px}
.ip-shell .profile-history-toggle{font-size:10px;font-weight:600;background:var(--ip-tile);border:1px solid var(--ip-line);color:var(--accent-2);padding:7px 10px;border-radius:8px}
.ip-shell .profile-support-link{border-color:var(--ip-line);background:var(--ip-tile);color:var(--text);font-size:12px;padding:12px}
.ip-shell .sheet{font-family:var(--font)}
.ip-shell .sheet--affiliate .ref-link-value{padding:0 12px 0 37px;line-height:48px;font-size:12px}
.ip-shell .sheet--affiliate .ref-link-value::before{background:var(--accent-2);left:12px;width:14px}
.ip-shell .sheet--profile .profile-ref-row{background:var(--ip-field);border-color:var(--ip-line)}
.ip-shell .sheet--profile .profile-ref-row::before{background:var(--accent-2)}
.ip-shell .sheet--profile .quick-stat .v{color:var(--text)}
.ip-shell .sheet--profile .quick-stat:nth-child(n+3) .v{color:var(--accent)}
.ip-shell .sheet--profile>.btn-danger{background:#ba446214;color:#ef9ab4;border:1px solid #c56b8155;box-shadow:none;font-size:12px}
html[data-theme=light] .ip-shell .sheet--profile>.btn-danger{color:#a03154}
.ip-shell .sheet--profile .profile-password-card .input{color:var(--text);background:var(--ip-field);border-color:var(--ip-line);font-weight:400}
.ip-shell .sheet--profile .profile-password-card .input-group label{color:var(--text-dim);font-size:11px}
.ip-shell .sheet--profile .input-eye{color:var(--text-dim)}
.ip-shell .sheet--profile .tx-amount.pos{color:var(--accent)}
.ip-shell .sheet--profile .tx-amount.neg{color:var(--text-dim)}
.ip-shell .deposit-confirmed-modal h2{color:var(--accent)}
.ip-shell>.modal-overlay>.modal{background:var(--ip-card);border:1px solid var(--ip-line);border-radius:24px;box-shadow:0 24px 70px #13082180;color:var(--text);max-height:calc(100dvh - 40px);overflow-y:auto}
.ip-shell .modal h2{font-family:Outfit,var(--font);font-weight:600;font-size:25px;letter-spacing:-.02em}
.ip-shell .modal p{font-size:13px;line-height:1.6;color:var(--text-dim)}
.ip-shell>.site-popup-overlay>.modal{background:none;border:none;overflow:visible;box-shadow:none}
.ip-shell .site-popup-body{background:var(--ip-card);color:var(--text)}
.ip-shell .site-popup-overlay .modal:before{animation:none}
.ip-shell .install-bar{background:var(--ip-header);border-bottom:1px solid var(--ip-line);backdrop-filter:blur(16px)}
.ip-shell .install-bar-text{font-size:11px;color:var(--text);font-weight:600}
.ip-shell .install-bar-cta{font-size:11px;animation:none;padding:9px 13px}
.ip-shell.panel--has-install-bar{padding-top:58px}
.ip-shell.panel--has-install-bar .panel-topbar{top:68px}
@keyframes ip-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes ip-sheet-enter{from{opacity:0;transform:translateY(25px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:850px){
  .ip-shell .panel-page{margin-top:42px}
  .ip-shell .panel-page .panel-card{display:grid;grid-template-columns:1fr 1fr;column-gap:35px;padding:32px;max-width:930px;margin:auto}
  .ip-shell .panel-page .panel-card>*{grid-column:2;min-width:0}
  .ip-shell .panel-page .panel-card>.panel-banner{grid-column:1;grid-row:1 / span 7;margin:-32px 0 -32px -32px;border-radius:28px 0 0 28px;border-bottom:none;border-right:1px solid var(--ip-line);min-height:466px}
  .ip-hero{height:100%;min-height:466px;background-position:center}
  .ip-hero-copy{width:100%;padding:52px 32px 0}
  .ip-hero h1{font-size:43px;max-width:310px}
  .ip-hero p{font-size:13px}
  .ip-shell .panel-banner .ip-hero-witch{width:76%;height:65%;bottom:-25px;right:-12px}
  .ip-shell .panel-banner .ip-orb-purple{width:47px;left:28px;bottom:53px}
  .ip-shell .panel-banner .ip-orb-green{width:35px;right:27px;top:50%}
  .ip-hero-star{top:48%;right:auto;left:31px}
  .ip-shell .online-fire-pill{top:17px;right:20px}
  .ip-shell .panel-page .panel-card>.panel-label{margin:4px 0 18px}
  .ip-shell .sheet-overlay{align-items:center;padding:24px}
  .ip-shell .sheet{border-radius:26px;border-bottom:1px solid var(--ip-line);max-height:calc(100dvh - 48px)}
}
@media(max-width:600px){
  .ip-shell{padding-bottom:108px}
  .ip-shell::before{background-image:linear-gradient(180deg,#20113630,#160d3650),url('../images/internal-premium/village-night-mobile.webp')}
  .ip-shell::after{background-image:linear-gradient(180deg,#69386508,#71466f25),url('../images/internal-premium/village-dawn-mobile.webp')}
  .ip-shell .panel-topbar{width:calc(100% - 24px);margin:10px auto 0;padding:6px 12px;border-radius:18px;top:8px;gap:10px}
  .ip-shell .panel-topbar-logo{width:79px;max-width:79px;height:53px}
  .ip-shell .panel-topbar-actions{gap:7px}
  .ip-shell .panel-balance{padding-right:10px}
  .ip-shell .panel-balance-value{font-size:18px}
  .ip-shell .panel-balance-label{font-size:8px}
  .ip-shell .panel-theme-btn,.ip-shell .panel-profile-btn{width:34px;height:35px;border-radius:12px;font-size:14px}
  .ip-shell .panel-theme-btn svg{width:17px;height:17px}
  .ip-shell .panel-page{margin:20px auto 0;padding:0 16px;max-width:470px}
  .ip-shell .panel-page .panel-card{padding:20px;border-radius:24px}
  .ip-shell .panel-page .panel-banner{margin:-20px -20px 18px;border-radius:24px 24px 0 0}
  .ip-hero{min-height:164px}
  .ip-hero-copy{padding:38px 20px 21px;width:71%}
  .ip-eyebrow{font-size:8px;letter-spacing:.15em;margin-bottom:10px}
  .ip-hero h1{font-size:30px;max-width:200px}
  .ip-hero p{font-size:10px;margin-top:10px}
  .ip-shell .panel-banner .ip-hero-witch{bottom:-23px;right:-14px;width:44%}
  .ip-shell .panel-banner .ip-orb-purple{width:25px;right:34%;bottom:18px}
  .ip-shell .panel-banner .ip-orb-green{width:23px;top:48px;right:11px}
  .ip-hero-star{display:none}
  .ip-shell .online-fire-pill{top:11px;right:12px;padding:5px 8px}
  .ip-shell .panel-page .panel-card .panel-label{font-size:9px;margin-bottom:13px}
  .ip-shell .panel-page .panel-card .entry-grid{gap:9px;margin-bottom:16px}
  .ip-shell .panel-page .panel-card .entry-chip{height:43px;font-size:14px;border-radius:11px}
  .ip-shell .panel-page .panel-card .money-input{height:53px;min-height:53px;margin-bottom:12px}
  .ip-shell .panel-page .panel-card .money-input input{font-size:23px}
  .ip-shell .panel-page .panel-card .reward-box{padding:11px 12px;margin-bottom:15px;gap:7px}
  .ip-shell .panel-page .panel-card .reward-box .label{font-size:10px}
  .ip-shell .panel-page .panel-card .reward-box .value{font-size:20px}
  .ip-shell .panel-page .panel-card .panel-cta{min-height:51px;padding:11px 15px;font-size:18px}
  .ip-shell .bottom-nav{width:calc(100% - 24px);bottom:max(10px,env(safe-area-inset-bottom));border-radius:20px;padding:9px 7px 7px}
  .ip-shell .nav-item{font-size:9px}
  .ip-shell .sheet{padding-inline:18px}
  .ip-shell .sheet-hero{margin-inline:-18px}
  .ip-shell .sheet-section{padding:14px}
  .ip-shell .pay-head h2{font-size:23px}
  .ip-shell .sheet .sheet-cta{font-size:16px;min-height:50px}
  .ip-shell .profile-user .saldo-row{gap:10px}
  .ip-shell .profile-user-name{font-size:18px}
}
@media(max-width:370px){
  .ip-shell .panel-page{padding-inline:13px}
  .ip-shell .panel-page .panel-card{padding:18px}
  .ip-shell .panel-page .panel-banner{margin:-18px -18px 18px}
  .ip-shell .panel-topbar{padding-inline:10px}
  .ip-shell .panel-balance-value{font-size:16px}
  .ip-shell .panel-topbar-logo{width:72px}
  .ip-shell .panel-topbar-actions{gap:6px}
  .ip-shell .panel-page .panel-card .panel-cta{font-size:17px}
}
@media(prefers-reduced-motion:reduce){
  .ip-shell::before,.ip-shell::after,.ip-shell *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
/* Compact profile identity; the original avatar and horizontal card stay intact. */
.ip-shell .sheet--profile .profile-user-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px;text-align:left}
.ip-shell .sheet--profile .profile-identity-heading{display:flex;align-items:center;justify-content:flex-start;gap:5px;min-width:0}
.ip-shell .sheet--profile .profile-identity-heading .profile-user-name{min-width:0;line-height:1.2;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.ip-shell .sheet--profile .profile-user-phone{margin:0;line-height:1.4}
.ip-shell .sheet--profile .profile-user-email{margin:0;line-height:1.4;font-size:11px;color:var(--text-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ip-shell .sheet--profile .profile-edit-button{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--accent-2);cursor:pointer;transition:background .15s,border-color .15s}
.ip-shell .sheet--profile .profile-edit-button svg{width:15px;height:15px}
.ip-shell .sheet--profile .profile-edit-button:hover{background:var(--ip-tile);border-color:var(--ip-line)}
.ip-shell .sheet--profile .profile-edit-button:focus-visible{outline:2px solid var(--accent-2);outline-offset:1px}
.ip-shell .sheet--profile .profile-edit-button:disabled{opacity:.45;cursor:default}
.ip-shell .sheet--profile .profile-identity-editor{display:flex;flex-direction:column;gap:11px;min-width:0}
.ip-shell .sheet--profile .profile-identity-field{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:11px;font-weight:400;letter-spacing:.01em;text-transform:none;color:var(--text-dim)}
.ip-shell .sheet--profile .profile-identity-field:focus-within{color:var(--accent-2)}
.ip-shell .sheet--profile .profile-identity-editor .input{width:100%;min-width:0;height:36px;padding:6px 12px;font-size:12.5px;font-weight:500;letter-spacing:0;text-transform:none;text-align:left;color:var(--text);background:var(--ip-field);border:1px solid var(--ip-line);border-radius:12px;box-shadow:inset 0 1px 2px color-mix(in srgb,var(--ip-shadow) 50%,transparent);transition:border-color .18s,box-shadow .18s,background .18s}
.ip-shell .sheet--profile .profile-identity-editor .input:hover:not(:disabled){border-color:color-mix(in srgb,var(--accent-2) 45%,var(--ip-line))}
.ip-shell .sheet--profile .profile-identity-editor .input:focus{outline:none;border-color:var(--accent-2);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-2) 22%,transparent),inset 0 1px 2px var(--ip-shadow)}
.ip-shell .sheet--profile .profile-identity-editor .profile-identity-help{margin:1px 0 0;padding:8px 11px;font-size:11px;line-height:1.45;color:var(--text-dim);background:var(--ip-tile);border:1px solid var(--ip-line);border-radius:10px}
.ip-shell .sheet--profile .profile-identity-actions{display:flex;flex-direction:row-reverse;justify-content:flex-start;align-items:center;gap:6px;min-width:0;margin-top:4px}
.ip-shell .sheet--profile .profile-save-button,.ip-shell .sheet--profile .profile-cancel-button{min-height:34px;padding:6px 18px;border:1px solid var(--ip-line);border-radius:10px;font:inherit;font-size:12.5px;font-weight:600;line-height:1.2;white-space:nowrap;cursor:pointer;transition:filter .15s,border-color .15s}
.ip-shell .sheet--profile .profile-save-button{background:linear-gradient(180deg,#ffffff2e,#ffffff00) ,var(--accent-2);border-color:transparent;color:white;box-shadow:0 3px 10px color-mix(in srgb,var(--accent-2) 38%,transparent)}
.ip-shell .sheet--profile .profile-cancel-button{background:var(--ip-field);color:var(--text);font-weight:500}
.ip-shell .sheet--profile .profile-save-button:hover:not(:disabled){filter:brightness(1.08)}
.ip-shell .sheet--profile .profile-cancel-button:hover:not(:disabled){border-color:var(--accent-2)}
@media(max-width:360px){.ip-shell .sheet--profile .profile-save-button,.ip-shell .sheet--profile .profile-cancel-button{flex:1 1 0;min-width:0;padding-inline:10px}}
.ip-shell .sheet--profile .profile-identity-actions button:focus-visible{outline:2px solid var(--accent-2);outline-offset:2px}
.ip-shell .sheet--profile .profile-identity-actions button:disabled{opacity:.55;cursor:default}
.ip-shell .sheet--profile .profile-identity-help,.ip-shell .sheet--profile .profile-identity-feedback{margin:4px 0 0;font-size:11px;line-height:1.4;overflow-wrap:anywhere;color:var(--text-dim)}
.ip-shell .sheet--profile .profile-identity-feedback{color:var(--accent-2)}
.ip-shell .sheet--profile .profile-identity-error{color:var(--danger)}
.ip-shell .sheet--profile .saldo-row:has(.profile-user-info){align-items:flex-start}
.ip-shell .sheet--profile .saldo-row:has(.profile-user-info) .winner-avatar{margin-top:10px}
/* Replay presentation, with the existing platform deposit skin over the game. */
.ip-shell.ip-game-deposit{position:fixed;inset:0;z-index:110;min-height:0;padding:0;background:none}
.ip-shell.ip-game-deposit::before,.ip-shell.ip-game-deposit::after{content:none}
.bb-replay-overlay{position:fixed;inset:0;z-index:110;display:flex;align-items:center;justify-content:center;padding:18px 14px max(18px,env(safe-area-inset-bottom));background:#160b2b94;backdrop-filter:blur(9px)}
.bb-replay{position:relative;width:min(100%,420px);max-height:calc(100dvh - 36px);overflow:auto;overscroll-behavior:contain;touch-action:pan-y;border:1px solid #f5ddff35;border-radius:25px;background:linear-gradient(145deg,#402657f5,#201333fa);box-shadow:0 24px 70px #10071f70,inset 0 1px #ffffff12;color:#f6efff;font-family:'Nunito Sans',system-ui,sans-serif;animation:ip-sheet-enter .2s ease-out}
 .bb-replay-art{height:144px;position:relative;overflow:hidden;border-bottom:1px solid #f5ddff25}
.bb-replay-art .ip-hero{min-height:144px;height:144px}
.bb-replay-art .ip-hero-copy{padding:22px 20px;width:73%}
.bb-replay-art .ip-eyebrow{font-size:8px;letter-spacing:.12em;margin-bottom:9px}
.bb-replay-art .ip-hero h1{font-size:29px;line-height:1.04;max-width:200px}
.bb-replay-art .ip-hero p{font-size:10px;margin-top:10px}
.bb-replay-art .ip-hero-witch{position:absolute;right:-9px;bottom:-26px;width:46%;height:158px;object-fit:contain;object-position:bottom;filter:drop-shadow(-6px 5px 9px #2b0a4d55)}
.bb-replay-art .ip-orb{position:absolute;object-fit:contain;filter:drop-shadow(0 3px 6px #23113a66)}
.bb-replay-art .ip-orb-purple{width:26px;right:34%;bottom:14px;transform:rotate(-15deg)}
.bb-replay-art .ip-orb-green{width:22px;right:10px;top:49px}
.bb-replay-art .ip-hero-star{right:38%;top:20px;font-size:17px}
.bb-replay-close-wrap{position:sticky;top:11px;height:0;z-index:3;pointer-events:none}
.bb-replay-close{position:absolute;pointer-events:auto;top:0;right:12px;width:34px;height:34px;border-radius:50%;border:1px solid #ffffff30;background:#2b163780;color:#fff;font-size:24px;line-height:1;cursor:pointer}
.bb-replay-body{padding:18px 22px 22px}.bb-replay h2{font-family:Outfit,system-ui,sans-serif;font-size:25px;font-weight:600;text-align:center;margin:0;color:#f6efff;line-height:1.2;letter-spacing:-.025em}
.bb-replay-subtitle{text-align:center;color:#c8b8de;font-size:12px;line-height:1.5;margin:5px 0 14px}
.bb-replay-balance{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;color:#c8b8de;font-size:11px}.bb-replay-balance strong{font-size:13px;color:#73efae;font-variant-numeric:tabular-nums}
.bb-replay-section-label{display:flex;align-items:center;gap:10px;margin:0 0 10px;color:#c8b8de;font-size:9px;font-weight:700;line-height:12px;letter-spacing:.13em;text-transform:uppercase}
.bb-replay-section-label::before,.bb-replay-section-label::after{content:"";height:1px;flex:1;background:#d6adff25}
.bb-replay-section-label span{white-space:nowrap}
.bb-replay-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:16px}
.bb-replay-value{min-height:44px;border-radius:12px;border:1px solid #f5ddff25;background:#ffffff08;color:#f6efff;font:700 14px 'Nunito Sans',system-ui,sans-serif;cursor:pointer;box-shadow:inset 0 1px #ffffff09;transition:background .15s,border-color .15s}
.bb-replay-value.is-selected{background:linear-gradient(#a577d5,#72449d);border-color:#d6adff;box-shadow:0 3px #4f2a7630,inset 0 1px #ffffff35,0 3px 14px #ae72dd20}
.bb-replay-label{display:block;font-size:11px;color:#c8b8de;font-weight:600;margin-bottom:7px}.bb-replay-input{display:flex;align-items:center;gap:9px;padding:0 13px;min-height:44px;background:#170d29a6;border:1px solid #f5ddff25;border-radius:12px;color:#c8b8de}.bb-replay-input input{width:100%;min-width:0;border:0;padding:11px 0;background:none;color:#f6efff;font:400 16px 'Nunito Sans',system-ui,sans-serif;outline:none}.bb-replay-input:focus-within{border-color:#aa77d5;box-shadow:0 0 0 3px #aa77d525}
.bb-replay-reward{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 14px;margin:14px 0 17px;border:1px solid #d6adff30;border-radius:14px;background:linear-gradient(120deg,#a577d51a,#c994e409)}.bb-replay-reward span{font-size:11px;color:#c8b8de}.bb-replay-reward strong{font-family:Outfit,system-ui,sans-serif;font-size:22px;font-weight:600;color:#ffe09a;white-space:nowrap;font-variant-numeric:tabular-nums}
.bb-replay-play{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;padding:9px 16px;border:2px solid #b4ffa7;border-radius:999px;background:linear-gradient(#bdffa4,#7df47e 43%,#12cd61 46%,#0db550);box-shadow:0 4px 0 #127242,0 8px 20px #13ba5720;color:#073c24;font:900 16px 'Nunito Sans',system-ui,sans-serif;text-transform:uppercase;cursor:pointer}.bb-replay-play:hover:not(:disabled){filter:brightness(1.04)}.bb-replay-play:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px #127242}.bb-replay-play:disabled{opacity:.55;cursor:not-allowed}
.bb-replay button:focus-visible{outline:2px solid #d6adff;outline-offset:3px}.bb-replay-error{color:#ffacb4;font-size:12px;line-height:1.5;margin:0 0 12px}
html.game-active:has(.bb-replay-overlay,.ip-game-deposit),html.game-active:has(.bb-replay-overlay,.ip-game-deposit) body,html.game-active:has(.bb-replay-overlay,.ip-game-deposit) #root{touch-action:pan-y}
.ip-game-deposit .sheet{touch-action:pan-y;overscroll-behavior:contain}
@media(max-height:600px){.bb-replay-overlay{padding-top:10px;padding-bottom:10px}.bb-replay{max-height:calc(100dvh - 20px)}}
@media(prefers-reduced-motion:reduce){.bb-replay{animation:none}.bb-replay-value{transition:none}}
