:root {
  --red-25: #fef6f7;
  --red-50: #fdeff0;
  --red-100: #fadadc;
  --red-200: #faaeb3;
  --red-300: #f77a83;
  --red-400: #f34450;
  --red-500: #f11e2c;
  --red-600: #e70f1d;
  --red-700: #c20c18;
  --ink: #260d0f;
  --muted: #7b675e;
  --line: #f0d3d5;
  --soft: #f8f1f1;
  --green: #15945c;
  --red: #dc2626;
  --shadow: 0 18px 55px rgba(88, 20, 25, .10);
  --shell: min(1180px, calc(100% - 40px));
}

/* =========================================================
   Garuda99 GAME LAB — Battle, Matcher, and Swipe Discovery
   ========================================================= */
body.game-lab-open { overflow: hidden; }
.game-lab-section { padding-block: 76px 34px; }
.game-lab-heading { display: grid; align-items: end; grid-template-columns: minmax(0,1fr) minmax(300px,.7fr); gap: 44px; margin-bottom: 28px; }
.game-lab-heading h2 { max-width: 700px; margin: 0; font-family: Manrope,sans-serif; font-size: clamp(32px,4vw,52px); letter-spacing: -.055em; line-height: 1.04; }
.game-lab-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.game-lab-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.game-lab-card { position: relative; display: grid; min-height: 280px; overflow: hidden; align-content: space-between; padding: 22px; color: var(--ink); border: 1px solid var(--line); border-radius: 25px; background: linear-gradient(145deg,#fff,#fdf3f3); box-shadow: 0 16px 42px rgba(91, 19, 24,.07); text-align: left; transition: transform .28s ease,border-color .28s ease,box-shadow .28s ease; }
.game-lab-card::before { position: absolute; right: -58px; bottom: -64px; width: 180px; height: 180px; content: ""; border: 1px solid rgba(241, 30, 44,.16); border-radius: 50%; }
.game-lab-card:hover { border-color: var(--red-300); box-shadow: 0 24px 58px rgba(91, 19, 24,.13); transform: translateY(-7px); }
.game-lab-number { position: absolute; z-index: 3; top: 18px; left: 18px; display: grid; width: 37px; height: 37px; place-items: center; color: var(--red-700); border: 1px solid var(--red-200); border-radius: 11px; background: #fff; font-size: 10px; font-weight: 900; }
.game-lab-visual { position: relative; display: flex; min-height: 126px; align-items: center; justify-content: center; margin: 18px 0 8px; }
.game-lab-cover { position: relative; z-index: 2; display: block; width: min(190px,100%); height: 126px; object-fit: contain; border: 1px solid var(--red-200); border-radius: 20px; background: var(--red-50); box-shadow: 0 16px 34px rgba(91, 19, 24,.12); transition: transform .3s ease,box-shadow .3s ease; }
.game-lab-card:hover .game-lab-cover { box-shadow: 0 22px 42px rgba(91, 19, 24,.18); transform: translateY(-4px) scale(1.025); }
.game-lab-visual-fallback { position: relative; display: flex; width: 100%; min-height: 112px; align-items: center; justify-content: center; gap: 10px; }
.game-lab-visual-fallback[hidden] { display: none !important; }
.battle-visual { gap: 12px; }
.battle-avatar { position: relative; display: grid; width: 70px; height: 88px; overflow: hidden; place-items: center; color: #fff; border-radius: 18px; background: linear-gradient(145deg,var(--red-400),var(--red-700)); box-shadow: 0 15px 28px rgba(231, 15, 29,.22); transform: rotate(-6deg); }
.battle-avatar:last-child { color: var(--red-700); border: 1px solid var(--red-200); background: #fff; transform: rotate(6deg); }
.battle-avatar img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.battle-avatar i { position: relative; z-index: 1; display: grid; width: 100%; height: 100%; place-items: center; font-style: normal; font-size: 21px; font-weight: 900; }
.battle-visual .game-lab-visual-fallback > b { z-index: 2; display: grid; width: 38px; height: 38px; margin-inline: -17px; place-items: center; color: #fff; border: 4px solid #fff; border-radius: 50%; background: var(--ink); font-size: 9px; }
.matcher-visual { gap: 10px; }
.matcher-visual .game-lab-visual-fallback i { display: block; width: 18px; height: 72px; border-radius: 99px; background: var(--red-100); transform-origin: bottom; }
.matcher-visual .game-lab-visual-fallback i:nth-child(1) { height: 52px; background: var(--red-200); transform: rotate(-16deg); }
.matcher-visual .game-lab-visual-fallback i:nth-child(2) { height: 92px; background: linear-gradient(var(--red-400),var(--red-700)); }
.matcher-visual .game-lab-visual-fallback i:nth-child(3) { height: 66px; background: var(--red-300); transform: rotate(16deg); }
.swipe-visual .game-lab-visual-fallback i { position: absolute; display: block; width: 78px; height: 100px; border: 1px solid var(--red-200); border-radius: 18px; background: #fff; box-shadow: 0 14px 30px rgba(91, 19, 24,.10); }
.swipe-visual .game-lab-visual-fallback i:nth-child(1) { transform: translateX(-36px) rotate(-12deg); }
.swipe-visual .game-lab-visual-fallback i:nth-child(2) { z-index: 2; background: linear-gradient(145deg,var(--red-400),var(--red-700)); transform: translateY(-5px); }
.swipe-visual .game-lab-visual-fallback i:nth-child(3) { transform: translateX(36px) rotate(12deg); }
.game-lab-copy { position: relative; z-index: 2; display: block; }
.game-lab-copy small { display: block; margin-bottom: 8px; color: var(--red-600); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.game-lab-copy strong { display: block; font-family: Manrope,sans-serif; font-size: 22px; letter-spacing: -.035em; }
.game-lab-copy em { display: block; margin-top: 7px; color: var(--muted); font-style: normal; font-size: 11px; line-height: 1.55; }
.game-lab-arrow { position: absolute; right: 20px; bottom: 20px; display: grid; width: 36px; height: 36px; place-items: center; color: #fff; border-radius: 11px; background: var(--red-600); box-shadow: 0 9px 20px rgba(231, 15, 29,.20); font-weight: 900; transition: transform .25s ease; }
.game-lab-card:hover .game-lab-arrow { transform: translateX(4px); }

.game-lab-modal[hidden] { display: none !important; }
.game-lab-modal { position: fixed; z-index: 180; inset: 0; display: grid; overflow-y: auto; padding: 24px; place-items: center; }
.game-lab-backdrop { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(38, 13, 15,.57); backdrop-filter: blur(12px); cursor: default; animation: labFadeIn .25s both; }
.game-lab-dialog { position: relative; z-index: 1; width: min(920px,100%); max-height: calc(100vh - 48px); overflow: auto; padding: 34px; border: 1px solid var(--red-200); border-radius: 28px; background: linear-gradient(145deg,#fff,#fef4f5); box-shadow: 0 36px 100px rgba(38, 13, 15,.30); animation: labDialogIn .38s cubic-bezier(.2,.85,.25,1) both; scrollbar-width: thin; scrollbar-color: var(--red-300) transparent; }
.game-lab-close { position: absolute; z-index: 4; top: 18px; right: 18px; display: grid; width: 40px; height: 40px; place-items: center; color: var(--red-700); border: 1px solid var(--red-200); border-radius: 12px; background: #fff; font-size: 22px; transition: transform .2s ease,background .2s ease; }
.game-lab-close:hover { background: var(--red-50); transform: rotate(5deg); }
.lab-dialog-heading { padding-right: 54px; }
.lab-dialog-heading > span { color: var(--red-600); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.lab-dialog-heading h2 { margin: 8px 0 5px; font-family: Manrope,sans-serif; font-size: clamp(29px,4vw,43px); letter-spacing: -.055em; line-height: 1; }
.lab-dialog-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.lab-primary-button { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; margin-top: 20px; padding: 0 19px; color: #fff; border: 0; border-radius: 14px; background: linear-gradient(105deg,var(--red-500),var(--red-700)); box-shadow: 0 13px 28px rgba(231, 15, 29,.22); font-size: 11px; font-weight: 900; transition: transform .2s ease,box-shadow .2s ease; }
.lab-primary-button:hover { box-shadow: 0 18px 36px rgba(231, 15, 29,.30); transform: translateY(-2px); }
.lab-primary-button span { display: grid; width: 30px; height: 30px; place-items: center; color: var(--red-700); border-radius: 9px; background: #fff; }
.lab-primary-button.is-running { cursor: wait; background-size: 220% 100%; animation: battleButtonFlow 1.1s linear infinite; }
.lab-primary-button:disabled { opacity: .82; }
.lab-disclaimer { margin: 18px 0 0; padding: 12px 14px; color: #8b7367; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.65); font-size: 9px; line-height: 1.6; }

.battle-selectors { display: grid; align-items: end; grid-template-columns: 1fr auto 1fr; gap: 14px; margin-top: 25px; }
.battle-selectors label,.matcher-form > label { display: grid; gap: 7px; }
.battle-selectors label > span,.matcher-form > label > span,.matcher-form legend { color: #7f695e; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.battle-selectors select,.matcher-form select { width: 100%; min-height: 48px; padding: 0 42px 0 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; outline: none; background: #fff; font-size: 11px; font-weight: 800; }
.battle-selectors > b { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; border-radius: 50%; background: var(--ink); font-size: 10px; }
.battle-result:empty,.matcher-results:empty { display: none; }
.battle-result { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-top: 20px; }
.battle-result.is-running { min-height: 230px; align-items: center; padding: 22px; overflow: hidden; border: 1px solid var(--red-200); border-radius: 21px; background: radial-gradient(circle at 50% 50%,rgba(241, 30, 44,.16),transparent 28%),linear-gradient(145deg,#fff,#fdedee); }
.battle-result-message { grid-column: 1/-1; padding: 22px; color: var(--muted); border: 1px dashed var(--red-300); border-radius: 16px; background: var(--red-25); text-align: center; font-size: 11px; line-height: 1.6; }
.battle-result-message.is-error { color: #a5272f; border-color: #fecaca; background: #fff7f7; }
.battle-runner { display: grid; justify-items: center; gap: 10px; animation: battleRunnerLeft .85s cubic-bezier(.2,.9,.25,1) infinite alternate; }
.battle-runner:last-child { animation-name: battleRunnerRight; }
.battle-runner img { width: 108px; height: 108px; object-fit: cover; border: 5px solid #fff; border-radius: 24px; background: var(--red-50); box-shadow: 0 19px 40px rgba(91, 19, 24,.18); }
.battle-runner b { max-width: 180px; font-size: 10px; line-height: 1.35; text-align: center; }
.battle-clash { position: relative; z-index: 2; display: grid; width: 58px; height: 58px; place-items: center; color: #fff; border: 6px solid #fff; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 0 rgba(241, 30, 44,.30); font-size: 11px; animation: battleClash 1s ease infinite; }
.battle-game { position: relative; overflow: hidden; padding: 14px; border: 1px solid var(--line); border-radius: 19px; background: #fff; animation: battleResultReveal .52s cubic-bezier(.2,.85,.25,1) both; }
.battle-game:last-child { animation-delay: .12s; }
.battle-game.is-leading { border-color: var(--red-400); box-shadow: 0 14px 32px rgba(231, 15, 29,.12); }
.battle-game.is-leading::after { position: absolute; top: 10px; right: 10px; padding: 5px 8px; content: "DATA UNGGUL"; color: #fff; border-radius: 7px; background: var(--red-600); font-size: 6px; font-weight: 900; letter-spacing: .08em; }
.battle-game-head { display: grid; align-items: center; grid-template-columns: 70px 1fr; gap: 12px; }
.battle-game-head :is(img, video) { display: block; width: 70px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--red-50); }
.battle-game-head small { color: var(--red-600); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.battle-game-head h3 { margin: 5px 0 0; font-size: 13px; line-height: 1.25; }
.battle-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 13px; }
.battle-stats span { padding: 10px; border-radius: 11px; background: var(--red-25); }
.battle-stats small { display: block; color: var(--muted); font-size: 6px; font-weight: 800; text-transform: uppercase; }
.battle-stats b { display: block; margin-top: 4px; font-size: 11px; }
.battle-versus-result { display: grid; place-items: center; color: var(--red-600); font-size: 10px; font-weight: 900; }
.battle-power { position: relative; height: 7px; overflow: hidden; margin-top: 11px; border-radius: 99px; background: var(--red-100); }
.battle-power i { display: block; width: var(--battle-power); height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--red-400),var(--red-700)); transform-origin: left; animation: battlePowerGrow .9s .15s cubic-bezier(.2,.85,.25,1) both; }
.lab-open-game { display: flex; width: 100%; min-height: 36px; align-items: center; justify-content: space-between; margin-top: 10px; padding: 0 11px; color: var(--red-700); border: 1px solid var(--red-200); border-radius: 10px; background: var(--red-50); font-size: 8px; font-weight: 900; }
.lab-open-game:hover { color: #fff; border-color: var(--red-600); background: var(--red-600); }

.matcher-progress { display: flex; gap: 7px; margin-top: 22px; }
.matcher-progress i { width: 33.333%; height: 5px; border-radius: 99px; background: var(--red-200); }
.matcher-progress i:first-child,.matcher-progress i:nth-child(2) { background: var(--red-500); }
.matcher-form { display: grid; grid-template-columns: .75fr 1.25fr; gap: 18px; margin-top: 22px; }
.matcher-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; grid-column: 1/-1; }
.matcher-form legend { margin-bottom: 9px; }
.matcher-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.matcher-options label { cursor: pointer; }
.matcher-options input { position: absolute; opacity: 0; pointer-events: none; }
.matcher-options span { display: block; min-height: 70px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: border-color .2s ease,background .2s ease,transform .2s ease; }
.matcher-options input:checked + span { border-color: var(--red-500); background: var(--red-50); box-shadow: inset 0 0 0 1px var(--red-500); transform: translateY(-2px); }
.matcher-options b { display: block; font-size: 10px; }
.matcher-options small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.matcher-results { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 20px; }
.matcher-result-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; animation: labResultIn .35s both; }
.matcher-result-card:nth-child(2) { animation-delay: .07s; }.matcher-result-card:nth-child(3) { animation-delay: .14s; }
.matcher-result-card :is(img, video) { display: block; width: 100%; aspect-ratio: 1.6; object-fit: cover; background: var(--red-50); }
.matcher-result-copy { padding: 12px; }
.matcher-result-copy > small { color: var(--red-600); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.matcher-result-copy h3 { min-height: 32px; margin: 5px 0 9px; font-size: 11px; line-height: 1.35; }
.matcher-score { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
.matcher-score span { color: var(--muted); font-size: 7px; }.matcher-score b { color: var(--red-700); font-size: 13px; }

.swipe-dialog { width: min(500px,100%); }
.swipe-status { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 12px; color: var(--muted); font-size: 9px; font-weight: 800; }
.swipe-status b { color: var(--red-700); }
.swipe-stage { position: relative; min-height: 390px; }
.discovery-card { position: absolute; inset: 0; overflow: hidden; border: 1px solid var(--red-200); border-radius: 23px; background: #fff; box-shadow: 0 20px 50px rgba(91, 19, 24,.12); touch-action: pan-y; user-select: none; transition: transform .28s ease,opacity .28s ease; }
.discovery-card.is-left { opacity: 0; transform: translateX(-115%) rotate(-12deg); }.discovery-card.is-right { opacity: 0; transform: translateX(115%) rotate(12deg); }
.discovery-card :is(img, video) { display: block; width: 100%; height: 245px; object-fit: cover; background: var(--red-50); pointer-events: none; }
.discovery-card-copy { padding: 16px; }
.discovery-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.discovery-card-top small { color: var(--red-600); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.discovery-card-top b { padding: 7px 9px; color: var(--red-700); border-radius: 9px; background: var(--red-50); font-size: 14px; }
.discovery-card h3 { margin: 8px 0 10px; font-family: Manrope,sans-serif; font-size: 22px; letter-spacing: -.035em; line-height: 1.08; }
.discovery-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.discovery-meta span { padding: 6px 8px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: var(--red-25); font-size: 7px; font-weight: 800; }
.swipe-empty { display: grid; min-height: 390px; place-items: center; padding: 30px; color: var(--muted); border: 1px dashed var(--red-300); border-radius: 23px; background: var(--red-25); text-align: center; font-size: 11px; line-height: 1.6; }
.swipe-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.swipe-actions button { min-height: 45px; border-radius: 12px; font-size: 9px; font-weight: 900; }
.swipe-skip { color: #9f2e36; border: 1px solid #fecaca; background: #fff7f7; }.swipe-open { color: #fff; border: 1px solid var(--red-600); background: var(--red-600); }.swipe-save { color: var(--red-700); border: 1px solid var(--red-200); background: var(--red-50); }
.swipe-actions span { margin-right: 4px; font-size: 15px; vertical-align: -1px; }
.swipe-reset { display: block; margin: 13px auto 0; color: var(--red-700); border: 0; background: transparent; font-size: 8px; font-weight: 900; text-decoration: underline; }

@keyframes labFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes labDialogIn { from { opacity: 0; transform: translateY(25px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes labResultIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes battleButtonFlow { from { background-position: 0 0; } to { background-position: 220% 0; } }
@keyframes battleRunnerLeft { from { transform: translateX(-12px) rotate(-3deg); } to { transform: translateX(6px) rotate(2deg) scale(1.04); } }
@keyframes battleRunnerRight { from { transform: translateX(12px) rotate(3deg); } to { transform: translateX(-6px) rotate(-2deg) scale(1.04); } }
@keyframes battleClash { 0% { box-shadow: 0 0 0 0 rgba(241, 30, 44,.38); transform: scale(.92); } 70% { box-shadow: 0 0 0 22px rgba(241, 30, 44,0); transform: scale(1.05); } 100% { box-shadow: 0 0 0 0 rgba(241, 30, 44,0); transform: scale(.92); } }
@keyframes battleResultReveal { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes battlePowerGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 850px) {
  .game-lab-section { padding-top: 52px; }
  .game-lab-heading { grid-template-columns: 1fr; gap: 14px; }
  .game-lab-grid { grid-template-columns: 1fr; }
  .game-lab-card { min-height: 190px; grid-template-columns: 130px 1fr; align-items: center; align-content: center; gap: 8px; }
  .game-lab-visual { min-height: 125px; margin: 0; }
  .game-lab-cover { width: 125px; height: 125px; border-radius: 18px; }
  .game-lab-number { top: 14px; left: 14px; }
  .matcher-form { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .game-lab-section { width: 100%; padding: 42px 12px 12px; }
  .game-lab-heading h2 { font-size: 30px; }
  .game-lab-heading > p { font-size: 11px; }
  .game-lab-card { min-height: 165px; padding: 16px; grid-template-columns: 105px 1fr; border-radius: 19px; }
  .game-lab-visual { min-height: 100px; transform: none; }
  .game-lab-cover { width: 96px; height: 100px; border-radius: 15px; }
  .game-lab-visual-fallback { transform: scale(.82); }
  .game-lab-copy strong { padding-right: 31px; font-size: 18px; }
  .game-lab-copy em { padding-right: 25px; font-size: 9px; }
  .game-lab-arrow { right: 14px; bottom: 14px; width: 32px; height: 32px; }
  .game-lab-modal { align-items: end; padding: 6px; }
  .game-lab-dialog { width: 100%; max-height: calc(100dvh - 12px); padding: 25px 14px 16px; border-radius: 24px; }
  .game-lab-close { top: 12px; right: 12px; width: 37px; height: 37px; }
  .lab-dialog-heading { padding-right: 45px; }
  .lab-dialog-heading h2 { font-size: 29px; }
  .battle-selectors { grid-template-columns: 1fr; gap: 9px; }
  .battle-selectors > b { position: relative; z-index: 2; width: 34px; height: 34px; margin: -13px auto; border: 4px solid #fff; }
  .battle-result { grid-template-columns: 1fr; }
  .battle-result.is-running { grid-template-columns: 1fr auto 1fr; min-height: 190px; padding: 13px 7px; }
  .battle-runner img { width: 72px; height: 72px; border-radius: 17px; }
  .battle-runner b { max-width: 105px; font-size: 8px; }
  .battle-clash { width: 43px; height: 43px; border-width: 4px; }
  .battle-versus-result { min-height: 22px; }
  .battle-game-head { grid-template-columns: 58px 1fr; }.battle-game-head :is(img, video) { width: 58px; }
  .matcher-options { grid-template-columns: 1fr; }
  .matcher-options span { min-height: 58px; }
  .matcher-results { grid-template-columns: 1fr; }
  .matcher-result-card { display: grid; grid-template-columns: 100px 1fr; }
  .matcher-result-card :is(img, video) { width: 100px; height: 100%; aspect-ratio: auto; }
  .matcher-result-copy h3 { min-height: 0; }
  .swipe-stage { min-height: 355px; }.discovery-card :is(img, video) { height: 215px; }
  .swipe-actions { grid-template-columns: 1fr 1fr; }.swipe-open { grid-column: 1/-1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .game-lab-card,.game-lab-dialog,.game-lab-backdrop,.matcher-result-card,.discovery-card { animation: none !important; transition: none !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(231, 15, 29, .10);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
}
.nav-row { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: grid; width: 160px; height: 50px; flex: 0 0 auto; place-items: center start; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.brand-fallback { color: var(--red-600); font-family: Manrope, sans-serif; font-size: 25px; font-weight: 900; }
.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a { position: relative; color: #782a2f; font-size: 13px; font-weight: 750; }
.desktop-nav a::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; content: ""; background: var(--red-500); transform: scaleX(0); transition: transform .2s ease; }
.desktop-nav a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 7px; }
.nav-login, .nav-register { padding: 11px 16px; border-radius: 11px; font-size: 12px; font-weight: 850; }
.nav-login { color: var(--red-700); border: 1px solid var(--red-200); background: #fff; }
.nav-register { color: #fff; border: 1px solid var(--red-600); background: var(--red-600); box-shadow: 0 7px 17px rgba(231, 15, 29, .22); }

.official-mirror-notice {
  position: relative;
  z-index: 40;
  border-bottom: 1px solid rgba(231, 15, 29, .13);
  background: #fdeff0;
}
.official-mirror-inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 42px 6px 12px;
  color: #9a121b;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
}
.official-mirror-icon {
  flex: 0 0 auto;
  font-size: 13px;
}
.official-mirror-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.official-mirror-title { font-weight: 900; }
.official-mirror-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.official-mirror-links a {
  color: #c20c18;
  text-decoration: underline;
  text-decoration-color: rgba(194, 12, 24, .35);
  text-underline-offset: 2px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.official-mirror-links a:hover,
.official-mirror-links a:focus-visible {
  color: #7c1219;
  text-decoration-color: currentColor;
}
.official-mirror-separator { color: #f77a83; }
.official-mirror-close {
  position: absolute;
  top: 50%;
  right: max(12px, calc((100% - var(--shell)) / 2));
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  color: #c20c18;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.official-mirror-close:hover { color: #7c1219; background: #fadadc; transform: translateY(-50%) rotate(8deg); }
.official-mirror-close:focus-visible { outline: 3px solid rgba(241, 30, 44, .24); outline-offset: 1px; }

.hero { position: relative; overflow: hidden; padding: 88px 0 92px; background: linear-gradient(135deg, #fff 0%, #fef5f6 54%, #fce4e6 100%); }
.hero::before { position: absolute; top: -180px; right: -170px; width: 520px; height: 520px; border: 1px solid rgba(241, 30, 44, .14); border-radius: 50%; content: ""; }
.hero::after { position: absolute; bottom: -240px; left: 32%; width: 520px; height: 520px; border: 1px solid rgba(241, 30, 44, .10); border-radius: 50%; content: ""; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero-orb-a { top: 110px; right: 12%; width: 16px; height: 16px; background: var(--red-400); box-shadow: 0 0 0 10px rgba(241, 30, 44,.08); animation: float 4s ease-in-out infinite; }
.hero-orb-b { bottom: 100px; left: 8%; width: 10px; height: 10px; background: var(--red-200); animation: float 5s ease-in-out -2s infinite; }
.hero-grid { position: relative; z-index: 2; display: grid; align-items: center; grid-template-columns: 1.08fr .92fr; gap: clamp(48px, 8vw, 100px); }
.eyebrow, .section-kicker, .panel-eyebrow { margin: 0 0 12px; color: var(--red-600); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--red-200); border-radius: 999px; background: rgba(255,255,255,.72); }
.live-dot, .sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(21,148,92,.10); animation: pulse 1.8s ease infinite; }
.hero h1 { max-width: 690px; margin: 0; font-family: Manrope, sans-serif; font-size: clamp(46px, 6.2vw, 78px); font-weight: 800; letter-spacing: -.065em; line-height: .98; }
.hero h1 em { color: var(--red-600); font-style: normal; }
.hero-text { max-width: 620px; margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.primary-cta, .secondary-cta { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 18px; padding: 0 20px; border-radius: 13px; font-size: 12px; font-weight: 900; }
.primary-cta { color: #fff; border: 1px solid var(--red-600); background: linear-gradient(135deg, var(--red-500), var(--red-600)); box-shadow: 0 12px 26px rgba(231, 15, 29,.22); }
.secondary-cta { color: var(--red-700); border: 1px solid var(--red-200); background: #fff; }
.trust-row { display: flex; align-items: stretch; gap: 0; margin-top: 38px; }
.trust-row > span { display: grid; padding: 0 22px; border-left: 1px solid var(--line); }
.trust-row > span:first-child { padding-left: 0; border-left: 0; }
.trust-row b { font-family: Manrope, sans-serif; font-size: 20px; }
.trust-row small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 700; }
.hero-visual { position: relative; min-height: 380px; }
.visual-card { position: absolute; border: 1px solid rgba(241, 30, 44,.16); background: rgba(255,255,255,.92); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.visual-card-main { top: 28px; right: 20px; left: 25px; min-height: 310px; overflow: hidden; padding: 0; border-radius: 30px; transform: rotate(2deg); }
.visual-card-main::before { position: absolute; z-index: 4; inset: 0; border-radius: inherit; content: ""; background: linear-gradient(125deg, rgba(255,255,255,0) 25%, rgba(255,255,255,.68) 45%, rgba(255,255,255,0) 66%); transform: translateX(-120%); animation: shine 4s ease-in-out infinite; pointer-events: none; }
.visual-live-fallback { position: relative; z-index: 1; padding: 36px; transition: opacity .25s ease, visibility .25s ease; }
.hero-promo-banner { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: center; }
.visual-card-main.has-promo .visual-live-fallback { visibility: hidden; opacity: 0; }
.visual-card-top { display: flex; align-items: center; justify-content: space-between; }
.visual-icon { display: grid; width: 58px; height: 58px; color: #fff; border-radius: 17px; background: linear-gradient(145deg, var(--red-400), var(--red-600)); font-size: 14px; font-weight: 900; place-items: center; box-shadow: 0 10px 24px rgba(231, 15, 29,.20); }
.online-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--green); border-radius: 999px; background: #ecfdf5; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.online-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.visual-card-main strong { display: block; margin-top: 38px; color: var(--red-600); font-family: Manrope, sans-serif; font-size: clamp(50px, 7vw, 76px); letter-spacing: -.07em; }
.visual-card-main p { min-height: 24px; margin: 7px 0 20px; color: var(--muted); font-size: 14px; font-weight: 750; }
.hero-progress { height: 9px; overflow: hidden; border-radius: 999px; background: var(--red-100); }
.hero-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red-400), var(--red-600)); transition: width .7s ease; }
.visual-card-float { z-index: 3; right: 0; bottom: 12px; display: grid; min-width: 190px; padding: 19px 22px; border-radius: 18px; transform: rotate(-3deg); }
.visual-card-float span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.visual-card-float b { margin-top: 6px; color: var(--red-600); font-family: Manrope, sans-serif; font-size: 26px; }
.floating-spark { position: absolute; z-index: 4; color: var(--red-400); animation: float 3.5s ease-in-out infinite; }
.spark-one { top: 0; right: 0; font-size: 28px; }
.spark-two { bottom: 60px; left: 0; font-size: 18px; animation-delay: -1.5s; }

.provider-section, .info-section, .contact-section { padding-block: 76px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(29px, 4vw, 45px); letter-spacing: -.045em; }
.section-heading p:not(.section-kicker) { max-width: 580px; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.compact-heading { align-items: center; }
.text-button { padding: 9px 0; color: var(--red-600); border: 0; background: transparent; font-size: 11px; font-weight: 850; }
.provider-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.provider-tab { display: flex; min-height: 88px; align-items: center; gap: 15px; padding: 17px; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: left; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.provider-tab:hover { border-color: var(--red-300); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(88, 20, 25,.07); }
.provider-tab.is-active { color: #fff; border-color: var(--red-600); background: linear-gradient(135deg, var(--red-500), var(--red-600)); box-shadow: 0 14px 28px rgba(231, 15, 29,.20); }
.provider-logo { display: grid; width: 50px; height: 50px; flex: 0 0 auto; overflow: hidden; border-radius: 13px; background: #fff; place-items: center; }
.provider-logo img { width: 88%; height: 88%; object-fit: contain; }
.provider-logo span { color: var(--red-600); font-size: 11px; font-weight: 900; }
.provider-tab b, .provider-tab small { display: block; }
.provider-tab b { font-size: 13px; }
.provider-tab small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.provider-tab.is-active small { color: rgba(255,255,255,.78); }

.rtp-section { padding: 34px 0 72px; border-block: 1px solid #f2e4e5; background: var(--red-25); }
.sync-status { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 9px; font-weight: 800; }
.filter-card { display: grid; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(88, 20, 25,.05); grid-template-columns: minmax(260px, 1.5fr) .8fr .75fr auto; gap: 10px; }
.filter-card.filter-card-compact { padding: 10px; grid-template-columns: minmax(0,1fr) auto; }
.filter-card-compact .refresh-button { min-width: 118px; }
.filter-card input, .filter-card select { width: 100%; height: 46px; color: var(--ink); border: 1px solid #f0d3d5; border-radius: 11px; outline: 0; background: #fff; font-size: 12px; transition: border-color .2s, box-shadow .2s; }
.filter-card input:focus, .filter-card select:focus { border-color: var(--red-400); box-shadow: 0 0 0 4px rgba(241, 30, 44,.10); }
.search-field { position: relative; }
.search-field > span { position: absolute; z-index: 1; top: 12px; left: 15px; color: var(--red-500); font-size: 20px; }
.search-field input { padding: 0 15px 0 45px; }
.select-field { position: relative; }
.select-field > span { position: absolute; z-index: 1; top: 6px; left: 13px; color: #9c887e; font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.select-field select { padding: 13px 34px 0 12px; }
.refresh-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; color: #fff; border: 0; border-radius: 11px; background: var(--red-600); font-size: 11px; font-weight: 850; }
.refresh-button span:first-child { font-size: 17px; }
.refresh-button.is-spinning span:first-child { animation: spin .65s ease; }
.result-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px 12px; color: var(--muted); font-size: 10px; font-weight: 750; }
.result-meta b { color: var(--red-600); }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.game-card { --rtp-start: #fb7185; --rtp-mid: #f11e2c; --rtp-end: #f11e2c; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 8px 25px rgba(88, 20, 25,.05); animation: cardIn .45s both; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.game-card.rtp-tinggi { --rtp-start: #f11e2c; --rtp-mid: #e30f1d; --rtp-end: #22c55e; }
.game-card.rtp-gacor { --rtp-start: #14b8a6; --rtp-mid: #22c55e; --rtp-end: #84cc16; border-color: rgba(34,197,94,.30); box-shadow: 0 10px 30px rgba(34,197,94,.11); }
.game-card:hover { z-index: 2; border-color: var(--red-300); box-shadow: 0 18px 38px rgba(88, 20, 25,.11); transform: translateY(-4px); }
.game-cover { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--red-100), #fff); }
.game-cover::after { position: absolute; inset: auto 0 0; height: 45%; content: ""; background: linear-gradient(transparent, rgba(38, 13, 15,.54)); }
.game-cover :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-card:hover .game-cover :is(img, video) { transform: scale(1.045); }
.provider-badge { position: absolute; z-index: 2; top: 12px; right: 12px; left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; color: var(--red-700); border: 1px solid rgba(255,255,255,.7); border-radius: 9px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); font-size: 8px; font-weight: 900; }
.game-play { position: absolute; z-index: 3; right: 12px; bottom: 12px; display: grid; width: 40px; height: 40px; color: #fff; border: 0; border-radius: 12px; background: var(--red-600); font-size: 15px; place-items: center; box-shadow: 0 9px 20px rgba(231, 15, 29,.3); }
.game-body { padding: 17px; }
.game-title-row { display: flex; min-height: 42px; align-items: start; justify-content: space-between; gap: 10px; }
.game-name { margin: 0; font-size: 13px; line-height: 1.45; }
.rtp-level { flex: 0 0 auto; padding: 5px 7px; border-radius: 7px; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.rtp-level.gacor { color: #087443; background: #dcfce7; }
.rtp-level.tinggi { color: #960a13; background: #fcc9cd; }
.rtp-level.normal { color: #6b5e57; background: #f1ebeb; }
.game-info-grid { display: grid; margin-top: 14px; grid-template-columns: 1fr; gap: 8px; }
.game-info-block { min-width: 0; padding: 10px; border-radius: 11px; background: var(--soft); }
.game-info-block small { display: block; color: #a08d83; font-size: 7px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.game-info-block b { display: block; overflow: hidden; margin-top: 5px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pattern-list { display: grid; margin-top: 6px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.pattern-chip { display: grid; min-width: 0; min-height: 30px; align-content: center; padding: 5px 4px; color: var(--red-700); border: 1px solid rgba(241, 30, 44,.10); border-radius: 7px; background: var(--red-100); font-size: 7px; font-weight: 850; line-height: 1.25; overflow-wrap: anywhere; text-align: center; }
.rtp-area { margin-top: 15px; padding: 11px; border: 1px solid rgba(241, 30, 44,.10); border-radius: 13px; background: linear-gradient(135deg, #fef6f7, #fff); }
.rtp-value-row { display: flex; align-items: end; justify-content: space-between; }
.rtp-value { color: var(--red-600); background: linear-gradient(100deg, var(--rtp-start), var(--rtp-mid), var(--rtp-end)); background-clip: text; font-family: Manrope, sans-serif; font-size: 27px; font-weight: 900; letter-spacing: -.045em; -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: saturate(1.15); }
.rtp-value-row small { color: var(--muted); font-size: 8px; font-weight: 750; }
.rtp-bar { height: 8px; overflow: hidden; margin-top: 8px; border-radius: 99px; background: linear-gradient(90deg, #fadadc, #fcc9cd, #dcfce7); box-shadow: inset 0 1px 2px rgba(88, 20, 25,.08); }
.rtp-bar i { position: relative; display: block; width: 0; height: 100%; overflow: hidden; border-radius: inherit; background: linear-gradient(90deg, var(--rtp-start), var(--rtp-mid), var(--rtp-end)); box-shadow: 0 0 14px color-mix(in srgb, var(--rtp-end) 55%, transparent); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.rtp-bar i::after { position: absolute; inset: 0; content: ""; background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.78) 48%, transparent 72%); transform: translateX(-120%); animation: shine 2.8s ease-in-out infinite; }
.empty-state { grid-column: 1 / -1; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--red-300); border-radius: 18px; background: #fff; text-align: center; }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.pager button { min-height: 44px; padding: 0 18px; border-radius: 11px; font-size: 11px; font-weight: 850; }
.pager-primary { color: #fff; border: 1px solid var(--red-600); background: var(--red-600); }
.pager-secondary { color: var(--red-700); border: 1px solid var(--red-200); background: #fff; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.info-card { display: flex; min-height: 170px; align-items: start; gap: 16px; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(88, 20, 25,.05); }
.info-card-accent { color: #fff; border-color: var(--red-600); background: linear-gradient(145deg, var(--red-500), var(--red-700)); }
.info-icon { display: grid; width: 46px; height: 46px; flex: 0 0 auto; color: var(--red-700); border-radius: 13px; background: var(--red-100); font-size: 14px; font-weight: 900; place-items: center; }
.info-card-accent .info-icon { color: #fff; background: rgba(255,255,255,.16); }
.info-card small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.info-card-accent small, .info-card-accent p { color: rgba(255,255,255,.76); }
.info-card strong { display: block; margin-top: 7px; font-family: Manrope, sans-serif; font-size: 25px; }
.info-card p { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.service-section { padding: 90px 0; color: #fff; background: #2b0d0f; }
.service-grid { display: grid; align-items: center; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.service-copy h2 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.055em; line-height: 1.02; }
.service-copy > p:not(.section-kicker) { margin: 20px 0 28px; color: #dfa3a7; font-size: 13px; line-height: 1.8; }
.service-list { display: grid; gap: 10px; }
.service-list article { display: grid; align-items: center; padding: 20px; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: rgba(255,255,255,.045); grid-template-columns: 48px 1fr; gap: 16px; }
.service-list article > b { display: grid; width: 46px; height: 46px; color: #fff; border-radius: 13px; background: var(--red-600); place-items: center; }
.service-list h3 { margin: 0; font-size: 14px; }
.service-list p { margin: 5px 0 0; color: #d5878c; font-size: 10px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 35px; border: 1px solid var(--red-200); border-radius: 24px; background: linear-gradient(135deg, var(--red-50), #fff); }
.contact-card h2 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; }
.contact-actions { display: grid; min-width: min(100%, 510px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.contact-actions a { display: grid; min-width: 0; align-items: center; padding: 12px; color: var(--ink); border: 1px solid var(--red-200); border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 9px 20px rgba(88, 20, 25,.06); grid-template-columns: 38px minmax(0,1fr) auto; gap: 9px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.contact-actions a:hover { border-color: var(--red-400); box-shadow: 0 14px 30px rgba(231, 15, 29,.13); transform: translateY(-3px); }
.contact-icon { display: grid; width: 38px; height: 38px; overflow: hidden; border-radius: 11px; background: linear-gradient(145deg, var(--red-50), var(--red-100)); place-items: center; }
.contact-icon img { width: 25px; height: 25px; object-fit: contain; }
.contact-icon > b { color: var(--red-600); font-size: 9px; }
.contact-actions a > span:nth-child(2) { min-width: 0; }
.contact-actions a > span:nth-child(2) b, .contact-actions a > span:nth-child(2) small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-actions a > span:nth-child(2) b { font-size: 10px; }
.contact-actions a > span:nth-child(2) small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.contact-actions a > i { color: var(--red-500); font-size: 13px; font-style: normal; }
.site-footer { padding: 36px 0; color: #846f65; border-top: 1px solid var(--line); background: #fff; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { width: 120px; height: 44px; object-fit: contain; object-position: left; }
.footer-brand p, .footer-row > p { margin: 0; font-size: 9px; }

.withdraw-toast { position: fixed; z-index: 80; bottom: 20px; left: 20px; max-width: 330px; padding: 15px 17px; color: var(--ink); border: 1px solid var(--red-200); border-radius: 15px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); backdrop-filter: blur(14px); font-size: 11px; line-height: 1.55; animation: toastIn .4s both; }
.withdraw-toast b { color: var(--red-600); }
.withdraw-toast small { color: var(--muted); }
.welcome-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.welcome-backdrop { position: absolute; inset: 0; background: rgba(30, 11, 12,.46); backdrop-filter: blur(8px) saturate(.85); }
.welcome-card { position: relative; z-index: 2; width: min(100%, 470px); padding: 30px; overflow: hidden; border: 1px solid rgba(241, 30, 44,.22); border-radius: 24px; background: rgba(255,255,255,.98); box-shadow: 0 30px 90px rgba(38, 13, 15,.24), 0 1px 0 rgba(255,255,255,.9) inset; animation: modalIn .4s cubic-bezier(.2,.8,.2,1) both; }
.welcome-card::before { position: absolute; top: -70px; right: -65px; width: 190px; height: 190px; border: 1px solid rgba(241, 30, 44,.13); border-radius: 50%; content: ""; pointer-events: none; }
.welcome-close { position: absolute; z-index: 3; top: 16px; right: 16px; display: grid; width: 34px; height: 34px; padding: 0; color: #8b756b; border: 1px solid #f0d3d5; border-radius: 11px; background: #fff; box-shadow: 0 5px 16px rgba(38, 13, 15,.05); cursor: pointer; font-size: 18px; line-height: 1; place-items: center; transition: .2s ease; }
.welcome-close:hover { color: #fff; border-color: var(--red-500); background: var(--red-500); transform: rotate(5deg); }
.welcome-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 46px; }
.welcome-mark { display: inline-flex; width: auto; height: 34px; padding: 0 12px; align-items: center; gap: 8px; color: var(--red-600); border: 1px solid var(--red-200); border-radius: 999px; background: #fef4f5; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.welcome-mark i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 0 4px rgba(241, 30, 44,.12); }
.welcome-official { display: inline-flex; align-items: center; gap: 5px; color: #6f5e56; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.welcome-official i { display: grid; width: 18px; height: 18px; color: #fff; border-radius: 50%; background: #16a566; font-size: 10px; font-style: normal; place-items: center; }
.welcome-card h2 { position: relative; z-index: 1; margin: 24px 0 8px; color: var(--ink); font-family: Manrope, sans-serif; font-size: clamp(28px,5vw,36px); line-height: 1.08; letter-spacing: -.05em; }
.welcome-card p.welcome-intro { position: relative; z-index: 1; max-width: 350px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.welcome-link-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 22px; }
.welcome-link-grid a { display: grid; grid-template-columns: 30px 1fr auto; min-width: 0; min-height: 52px; padding: 8px 11px; align-items: center; gap: 9px; color: var(--ink); border: 1px solid #f2d9db; border-radius: 14px; background: #fff; text-decoration: none; box-shadow: 0 7px 22px rgba(38, 13, 15,.035); transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.welcome-link-grid a:hover { border-color: var(--red-300); box-shadow: 0 12px 26px rgba(241, 30, 44,.11); transform: translateY(-2px); }
.welcome-link-grid a > span { display: grid; width: 30px; height: 30px; color: var(--red-600); border-radius: 9px; background: #fcebec; font-size: 9px; font-weight: 900; place-items: center; }
.welcome-link-grid a b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.welcome-link-grid a > i { color: var(--red-500); font-size: 13px; font-style: normal; }
.welcome-actions { position: relative; z-index: 1; display: grid; gap: 9px; margin-top: 22px; }
.welcome-actions button { width: 100%; min-height: 46px; justify-content: center; cursor: pointer; }
.welcome-actions .primary-cta { display: flex; align-items: center; justify-content: space-between; padding-right: 17px; padding-left: 19px; }
.welcome-actions .primary-cta span { font-size: 17px; }
.welcome-actions .secondary-cta { min-height: 40px; color: #8a242b; border-color: transparent; background: transparent; box-shadow: none; }
.welcome-actions .secondary-cta:hover { border-color: #f1d5d7; background: #fef4f5; }

/* Admin panel */
.panel-root { min-height: 100vh; color: #2b0f11; background: #f8f3f3; }
.panel-shell { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }
.panel-login { display: grid; min-height: 100vh; place-items: center; padding: 22px; background: radial-gradient(circle at 15% 10%, #fce9ea, transparent 35%), #f8f3f3; }
.panel-login-wrap { width: min(100%, 430px); }
.panel-lang-switch { display: flex; justify-content: flex-end; gap: 5px; margin-bottom: 12px; }
.panel-lang { min-width: 42px; padding: 8px 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 10px; font-weight: 850; }
.panel-lang.is-active { color: #fff; border-color: var(--red-600); background: var(--red-600); }
.panel-login-card { padding: 38px; border: 1px solid var(--line); border-radius: 25px; background: #fff; box-shadow: var(--shadow); }
.panel-login-logo { width: 190px; height: 70px; margin-bottom: 20px; object-fit: contain; object-position: left; }
.panel-login-card h1 { margin: 0; font-family: Manrope, sans-serif; font-size: 36px; letter-spacing: -.05em; }
.panel-login-card > p:not(.panel-eyebrow) { margin: 11px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.65; }
#panelLoginForm { display: grid; gap: 14px; }
#panelLoginForm label, .panel-settings-grid label { display: grid; gap: 7px; color: #802d33; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
#panelLoginForm input, .panel-settings-grid input, .panel-game-tools input, .panel-game-tools select, .admin-game-editor input, .admin-game-editor select, .admin-game-editor textarea { width: 100%; color: var(--ink); border: 1px solid var(--line); outline: 0; background: #fff; }
#panelLoginForm input, .panel-settings-grid input { height: 47px; padding: 0 13px; border-radius: 11px; }
#panelLoginForm input:focus, .panel-settings-grid input:focus, .admin-game-editor input:focus, .admin-game-editor textarea:focus, .admin-game-editor select:focus { border-color: var(--red-400); box-shadow: 0 0 0 4px rgba(241, 30, 44,.10); }
.panel-primary { min-height: 46px; padding: 0 18px; color: #fff; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--red-500), var(--red-600)); font-size: 11px; font-weight: 900; box-shadow: 0 10px 22px rgba(231, 15, 29,.18); }
.panel-primary:disabled, .panel-outline:disabled { cursor: wait; opacity: .55; }
.panel-message { margin: 0; padding: 11px; border-radius: 9px; font-size: 10px; }
.panel-message.error { color: #9f1b1b; border: 1px solid #fecaca; background: #fff1f2; }
.panel-dashboard { min-height: 100vh; padding-bottom: 110px; }
.panel-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.panel-header-row { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 18px; }
.panel-brand { display: flex; align-items: center; gap: 12px; }
.panel-brand img { width: 135px; height: 45px; object-fit: contain; object-position: left; }
.panel-brand b, .panel-brand small { display: block; }
.panel-brand b { font-size: 13px; }
.panel-brand small { margin-top: 3px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.panel-header-actions { display: flex; align-items: center; gap: 7px; }
.panel-header-actions > span { max-width: 150px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.panel-outline { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 13px; color: var(--red-700); border: 1px solid var(--red-200); border-radius: 10px; background: var(--red-50); font-size: 9px; font-weight: 850; }
.panel-main { padding-top: 34px; }
.panel-title-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.panel-title-row h2 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.055em; }
.panel-title-row p:not(.panel-eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.panel-top-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-card { margin-bottom: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 32px rgba(88, 20, 25,.045); }
.panel-settings-card { padding: 23px; }
.panel-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-card-heading h3 { margin: 0; font-size: 17px; }
.panel-card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.panel-settings-grid { display: grid; grid-template-columns: 1.5fr .55fr .65fr; gap: 12px; }
.panel-wide { grid-column: 1 / -1; }
.toggle-label { align-content: end; grid-template-columns: 1fr auto !important; }
.toggle-label > span { grid-column: 1 / -1; }
.toggle-label input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-label i { position: relative; width: 47px; height: 27px; border-radius: 99px; background: #d9d0cc; transition: background .2s; }
.toggle-label i::after { position: absolute; top: 4px; left: 4px; width: 19px; height: 19px; border-radius: 50%; content: ""; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.15); transition: transform .2s; }
.toggle-label input:checked + i { background: var(--red-500); }
.toggle-label input:checked + i::after { transform: translateX(20px); }
.panel-games-card { overflow: hidden; }
.games-heading { padding: 22px; margin: 0; border-bottom: 1px solid var(--line); }
.panel-game-tools { display: flex; align-items: center; gap: 7px; }
.panel-game-tools input, .panel-game-tools select { height: 38px; padding: 0 10px; border-radius: 9px; font-size: 9px; }
.panel-game-tools input { min-width: 180px; }
.danger-soft { color: #a61e27; border-color: #f1b1b5; background: #fef5f6; }
.admin-game-list { display: grid; }
.admin-game-editor { display: grid; min-height: 92px; align-items: center; padding: 13px 18px; border-bottom: 1px solid #eee0e1; grid-template-columns: 44px 68px minmax(150px,1.15fr) 130px 95px 115px minmax(150px,.9fr) minmax(150px,.9fr) 62px; gap: 9px; }
.admin-game-editor:last-child { border-bottom: 0; }
.admin-game-editor:hover { background: var(--red-25); }
.admin-rank { display: grid; width: 36px; height: 36px; color: var(--red-700); border: 1px solid var(--red-200); border-radius: 10px; background: var(--red-50); font-size: 9px; font-weight: 900; place-items: center; }
.admin-thumb { width: 62px; height: 48px; overflow: hidden; border-radius: 9px; background: var(--soft); }
.admin-thumb :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.admin-game-editor label { display: grid; min-width: 0; gap: 4px; color: #947f75; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.admin-game-editor input, .admin-game-editor select { height: 35px; min-width: 0; padding: 0 8px; border-radius: 8px; font-size: 9px; }
.admin-game-editor textarea { min-height: 48px; padding: 7px 8px; resize: vertical; border-radius: 8px; font-size: 8px; line-height: 1.4; }
.admin-active { display: grid; place-items: center; }
.admin-active input { width: 18px; height: 18px; accent-color: var(--red-600); }
.panel-save-bar { position: fixed; z-index: 35; right: 0; bottom: 0; left: 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }
.panel-save-row { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 20px; }
.panel-save-row > div { display: grid; }
.panel-save-row b { font-size: 11px; }
.panel-save-row span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.panel-save-button { min-width: 180px; }
.panel-toast { position: fixed; z-index: 90; top: 96px; right: 24px; max-width: 360px; padding: 14px 17px; color: #fff; border-radius: 12px; background: #16845a; box-shadow: var(--shadow); font-size: 10px; font-weight: 850; animation: toastIn .35s both; }
.panel-toast.is-error { background: #b42318; }
.panel-loading { position: fixed; z-index: 100; inset: 0; display: grid; background: rgba(255,255,255,.65); backdrop-filter: blur(3px); place-items: center; }
.panel-loading span { padding: 13px 17px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); font-size: 10px; font-weight: 850; }

@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(5deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(21,148,92,0); } }
@keyframes shine { 0%,45% { transform: translateX(-120%); } 65%,100% { transform: translateX(120%); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .hero-grid { gap: 44px; }
  .game-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .admin-game-list { overflow-x: auto; }
  .admin-game-editor { min-width: 1080px; }
}

@media (max-width: 850px) {
  :root { --shell: min(100% - 28px, 720px); }
  .hero { padding: 62px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .provider-tabs { grid-template-columns: repeat(2,1fr); }
  .filter-card { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .info-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-card { display: grid; }
  .panel-settings-grid { grid-template-columns: 1fr 1fr; }
  .panel-wide { grid-column: 1 / -1; }
  .games-heading { display: grid; }
  .panel-game-tools { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  :root { --shell: min(100% - 20px, 520px); }
  .nav-row { min-height: 68px; }
  .brand { width: 116px; height: 42px; }
  .nav-actions { gap: 5px; }
  .nav-login, .nav-register { padding: 9px 11px; border-radius: 9px; font-size: 10px; }
  .official-mirror-inner { min-height: 34px; gap: 6px; padding: 5px 34px 5px 8px; font-size: 9.5px; }
  .official-mirror-icon { font-size: 11px; }
  .official-mirror-close { right: 5px; width: 26px; height: 26px; font-size: 18px; }
  .hero h1 { font-size: 46px; }
  .hero-text { font-size: 13px; }
  .trust-row > span { padding-inline: 14px; }
  .hero-visual { min-height: 315px; }
  .visual-card-main { right: 5px; left: 5px; min-height: 285px; }
  .visual-live-fallback { padding: 26px; }
  .visual-card-float { right: 3px; bottom: 0; }
  .provider-section, .info-section, .contact-section { padding-block: 56px; }
  .provider-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .provider-tab { min-height: 76px; padding: 12px; gap: 9px; }
  .provider-logo { width: 42px; height: 42px; }
  .section-heading { display: grid; }
  .filter-card { grid-template-columns: 1fr; }
  .rtp-section { padding-top: 22px; }
  .filter-card.filter-card-compact { grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
  .filter-card-compact .refresh-button { min-width: 48px; padding-inline: 13px; }
  .filter-card-compact .refresh-button span:last-child { display: none; }
  .search-field { grid-column: auto; }
  .game-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .game-card { display: block; border-radius: 16px; }
  .game-cover { height: auto; aspect-ratio: 1 / 1.05; }
  .game-body { min-width: 0; padding: 11px; }
  .game-title-row { min-height: 47px; display: grid; gap: 5px; }
  .game-name { display: -webkit-box; overflow: hidden; font-size: 11px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .rtp-level { width: max-content; padding: 4px 6px; }
  .game-info-grid { grid-template-columns: 1fr; gap: 6px; }
  .game-info-block { min-height: 43px; padding: 8px; }
  .game-info-block b { overflow: visible; font-size: 8px; line-height: 1.35; text-overflow: clip; white-space: normal; }
  .pattern-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .pattern-chip { min-height: 27px; padding: 4px 3px; font-size: 6.5px; }
  .provider-badge { top: 8px; right: 8px; left: auto; padding: 5px 6px; }
  .game-play { right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 10px; }
  .rtp-area { margin-top: 9px; padding: 8px; }
  .rtp-value { font-size: 21px; }
  .rtp-value-row small { font-size: 6px; }
  .contact-actions { min-width: 0; grid-template-columns: 1fr; }
  .footer-row { display: grid; }
  .welcome-card { padding: 28px 22px; }
  .welcome-actions { display: grid; }
  .withdraw-toast { right: 10px; bottom: 10px; left: 10px; max-width: none; }
  .panel-shell { width: min(100% - 20px, 560px); }
  .panel-login-card { padding: 28px 22px; }
  .panel-header-row { min-height: 68px; }
  .panel-brand img { width: 105px; }
  .panel-brand span, .panel-header-actions > span { display: none; }
  .panel-title-row { display: grid; }
  .panel-settings-grid { grid-template-columns: 1fr; }
  .panel-wide { grid-column: auto; }
  .panel-game-tools { display: grid; grid-template-columns: 1fr 1fr; }
  .panel-game-tools input { min-width: 0; grid-column: 1 / -1; }
  .danger-soft { grid-column: 1 / -1; }
  .panel-save-row > div span { display: none; }
  .panel-save-button { min-width: 145px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Compact public sections and lively interactions */
.provider-section { padding-block: 48px; }
.game-lab-section + .provider-section { padding-top: 30px; padding-bottom: 22px; }
.game-lab-section + .provider-section + .rtp-section { padding-top: 16px; }
.provider-section .section-heading { margin-bottom: 18px; }
.info-section { padding-block: 56px; }
.info-card { min-height: 138px; border-color: #f1d1d3; background: linear-gradient(145deg, #fff, #fef7f7); box-shadow: 0 12px 28px rgba(88, 20, 25,.07); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.info-card:hover { border-color: var(--red-300); box-shadow: 0 18px 34px rgba(231, 15, 29,.13); transform: translateY(-5px); }
.info-card strong { display: block; margin-top: 8px; font-family: Manrope, sans-serif; font-size: clamp(24px,3vw,34px); letter-spacing: -.04em; }
.info-card small { color: var(--red-700); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.info-card p { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.info-card .info-icon { background: linear-gradient(145deg, #fbe1e3, #faafb4); box-shadow: 0 8px 18px rgba(231, 15, 29,.12); }
.info-card-accent { border-color: transparent; background: linear-gradient(135deg, #f12633, #d30e1b); box-shadow: 0 15px 34px rgba(211, 14, 27,.22); }
.info-card-accent small, .info-card-accent p { color: rgba(255,255,255,.78); }
.primary-cta, .secondary-cta, .nav-login, .nav-register, .text-button, .refresh-button, .pager button, .contact-actions a, .game-play, .provider-tab, .panel-primary, .panel-outline, .panel-lang { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease, background .2s ease; }
.primary-cta:hover, .nav-register:hover, .refresh-button:hover, .pager-primary:hover, .panel-primary:hover { box-shadow: 0 14px 30px rgba(231, 15, 29,.30); filter: saturate(1.15) brightness(1.04); transform: translateY(-2px); }
.secondary-cta:hover, .nav-login:hover, .panel-outline:hover, .text-button:hover { color: var(--red-600); border-color: var(--red-400); transform: translateY(-2px); }
.game-play:hover { box-shadow: 0 12px 25px rgba(231, 15, 29,.42); filter: brightness(1.12); transform: scale(1.08) rotate(-4deg); }
button:active, a:active { transform: scale(.97); }

/* Dark administrator panel */
.panel-root { --panel-bg: #0d0f12; --panel-surface: #15181d; --panel-surface-2: #1b1f25; --panel-line: #2b3038; --panel-text: #f4f5f7; --panel-muted: #a4aab3; min-height: 100vh; color: var(--panel-text); background: var(--panel-bg); font-size: 14px; }
.panel-login { background: radial-gradient(circle at 15% 10%, rgba(241, 30, 44,.13), transparent 35%), radial-gradient(circle at 90% 90%, rgba(255,255,255,.04), transparent 35%), var(--panel-bg); }
.panel-login-card, .panel-card { color: var(--panel-text); border-color: var(--panel-line); background: var(--panel-surface); box-shadow: 0 20px 60px rgba(0,0,0,.28); }
.panel-login-card > p:not(.panel-eyebrow), .panel-title-row p:not(.panel-eyebrow), .panel-card-heading p, .quick-block-title p { color: var(--panel-muted); font-size: 12px; }
.panel-eyebrow { color: #f34954; font-size: 11px; }
.panel-header { border-color: var(--panel-line); background: rgba(13,15,18,.92); }
.panel-brand small, .panel-header-actions > span { color: var(--panel-muted); font-size: 10px; }
.panel-title-row { margin-bottom: 20px; }
.panel-title-row h2 { color: #fff; font-size: clamp(34px,5vw,52px); }
.panel-main { padding-top: 28px; }
.panel-card { margin-bottom: 16px; border-radius: 18px; }
.panel-settings-card, .panel-quick-card { padding: 22px; }
.panel-card-heading { margin-bottom: 16px; }
.panel-card-heading h3 { color: #fff; font-size: 20px; }
.panel-settings-grid { grid-template-columns: minmax(0,1.5fr) minmax(150px,.55fr) minmax(170px,.65fr); gap: 14px; }
#panelLoginForm label, .panel-settings-grid label, .quick-fields label, .admin-game-editor label { color: #c5cad1; font-size: 11px; line-height: 1.35; letter-spacing: .05em; }
#panelLoginForm input, .panel-settings-grid input, .panel-game-tools input, .panel-game-tools select, .quick-fields input, .quick-fields select, .admin-game-editor input, .admin-game-editor select, .admin-game-editor textarea { color: #f6f7f8; border-color: #343a44; background: #101216; }
#panelLoginForm input::placeholder, .panel-settings-grid input::placeholder, .panel-game-tools input::placeholder, .quick-fields input::placeholder, .admin-game-editor input::placeholder { color: #6f7680; }
#panelLoginForm input:focus, .panel-settings-grid input:focus, .panel-game-tools input:focus, .quick-fields input:focus, .quick-fields select:focus, .admin-game-editor input:focus, .admin-game-editor textarea:focus, .admin-game-editor select:focus { border-color: #f11e2c; box-shadow: 0 0 0 4px rgba(241, 30, 44,.13); }
.panel-primary { min-height: 44px; font-size: 12px; }
.panel-outline, .panel-lang { color: #e5e7eb; border-color: #363c45; background: #181b20; font-size: 11px; }
.panel-lang.is-active { color: #fff; border-color: #f11e2c; background: #ec0f1e; }
.panel-upload-row { display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto minmax(120px,180px); gap: 10px; }
.panel-file { display: grid; min-height: 48px; align-items: center; padding: 8px 12px; color: #c5cad1; border: 1px dashed #414852; border-radius: 11px; background: #101216; cursor: pointer; gap: 5px; }
.panel-file:hover { border-color: #f11e2c; background: #15181d; }
.panel-file > span { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.panel-file input[type="file"] { width: 100%; color: #8f969f; font-size: 10px; }
.panel-file input::file-selector-button { margin-right: 9px; padding: 6px 9px; color: #fff; border: 0; border-radius: 7px; background: #2a3038; cursor: pointer; }
.panel-banner-preview { height: 60px; overflow: hidden; border: 1px solid #353b44; border-radius: 10px; background: #0e1013; }
.panel-banner-preview img { width: 100%; height: 100%; object-fit: cover; }
.panel-quick-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.panel-quick-block { padding: 18px; border: 1px solid var(--panel-line); border-radius: 15px; background: var(--panel-surface-2); }
.quick-block-title { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.quick-block-title > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; color: #f5626c; border: 1px solid rgba(241, 30, 44,.25); border-radius: 10px; background: rgba(241, 30, 44,.09); font-size: 11px; font-weight: 900; place-items: center; }
.quick-block-title h4 { margin: 0; color: #fff; font-size: 15px; }
.quick-block-title p { margin: 4px 0 0; line-height: 1.45; }
.quick-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-fields label { display: grid; gap: 6px; font-weight: 800; text-transform: uppercase; }
.quick-fields input, .quick-fields select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #343a44; border-radius: 9px; outline: 0; }
.quick-wide { grid-column: 1 / -1; }
.quick-action { width: 100%; margin-top: 12px; }
.admin-provider-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.admin-provider-chip { display: flex; align-items: center; gap: 8px; padding: 7px 9px; color: #e6e8eb; border: 1px solid #333943; border-radius: 10px; background: #12151a; }
.admin-provider-chip-logo { display: grid; width: 28px; height: 28px; overflow: hidden; border-radius: 7px; background: #fff; place-items: center; }
.admin-provider-chip-logo img { width: 23px; height: 23px; object-fit: contain; }
.admin-provider-chip-logo b { color: #f11e2c; font-size: 7px; }
.admin-provider-chip > span:last-child b, .admin-provider-chip > span:last-child small { display: block; }
.admin-provider-chip > span:last-child b { font-size: 10px; }
.admin-provider-chip > span:last-child small { margin-top: 2px; color: var(--panel-muted); font-size: 8px; }
.games-heading { border-color: var(--panel-line); }
.panel-game-tools input, .panel-game-tools select { height: 42px; font-size: 11px; }
.admin-game-editor { min-height: 98px; border-color: #282d34; }
.admin-game-editor:hover { background: #191d22; }
.admin-rank { color: #f55e68; border-color: #3d342e; background: #260d0f; font-size: 10px; }
.admin-thumb { background: #0f1114; }
.admin-game-editor input, .admin-game-editor select { height: 39px; font-size: 12px; }
.admin-game-editor textarea { min-height: 54px; font-size: 11px; }
.panel-save-bar { border-color: #30353d; background: rgba(15,17,20,.95); }
.panel-save-row b { color: #fff; font-size: 13px; }
.panel-save-row span { color: var(--panel-muted); font-size: 10px; }
.panel-loading { background: rgba(5,6,8,.72); }
.panel-loading span { color: #fff; border-color: #343a43; background: #171a1f; font-size: 12px; }

@media (max-width: 850px) {
  .panel-quick-grid { grid-template-columns: 1fr; }
  .panel-upload-row { grid-template-columns: 1fr auto; }
  .panel-banner-preview { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .provider-section { padding-block: 28px 34px; }
  .game-lab-section + .provider-section { padding-top: 24px; padding-bottom: 16px; }
  .provider-section .section-heading { display: flex; align-items: end; margin-bottom: 14px; }
  .provider-section .section-heading h2 { font-size: 25px; }
  .provider-section .section-kicker { margin-bottom: 7px; }
  .provider-section .text-button { flex: 0 0 auto; font-size: 9px; }
  .info-section { padding-block: 34px; }
  .info-section .section-heading { margin-bottom: 17px; }
  .info-section .section-heading h2 { font-size: 28px; }
  .info-grid { gap: 10px; }
  .info-card { min-height: 104px; align-items: center; padding: 16px; border-radius: 16px; }
  .info-card strong { margin-top: 5px; font-size: 24px; }
  .info-card p { margin-top: 6px; font-size: 9px; }
  .info-card .info-icon { width: 42px; height: 42px; }
  .panel-settings-card, .panel-quick-card { padding: 16px; }
  .panel-card-heading h3 { font-size: 18px; }
  .panel-upload-row { grid-template-columns: 1fr; }
  .panel-banner-preview { grid-column: auto; }
  .quick-fields { grid-template-columns: 1fr; }
  .quick-wide { grid-column: auto; }
  .panel-quick-block { padding: 14px; }
}

/* Sidebar dashboard, administrator identity, delete actions, and login greeting */
.panel-sidebar {
  position: fixed;
  z-index: 34;
  top: 76px;
  bottom: 0;
  left: 0;
  display: flex;
  width: 240px;
  flex-direction: column;
  padding: 22px 16px 102px;
  border-right: 1px solid var(--panel-line);
  background: linear-gradient(180deg, #0b0d10, #101318);
}
.panel-main-with-sidebar {
  width: min(1180px, calc(100% - 280px));
  margin-right: 20px;
  margin-left: max(260px, calc((100vw - 1180px + 240px) / 2));
}
.panel-has-sidebar .panel-save-bar { left: 240px; }
.sidebar-profile {
  position: relative;
  display: grid;
  min-height: 76px;
  align-items: center;
  padding: 13px;
  border: 1px solid #282e36;
  border-radius: 15px;
  background: #15191e;
  grid-template-columns: 44px minmax(0,1fr) 8px;
  gap: 10px;
}
.sidebar-avatar, .panel-profile-avatar, .welcome-avatar {
  display: grid;
  color: #fff;
  background: linear-gradient(145deg, #f33f4b, #e00e1c);
  box-shadow: 0 8px 22px rgba(241, 30, 44,.24);
  font-weight: 900;
  place-items: center;
}
.sidebar-avatar { width: 44px; height: 44px; border-radius: 13px; font-size: 17px; }
.sidebar-profile b, .sidebar-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile b { color: #fff; font-size: 13px; }
.sidebar-profile small { margin-top: 4px; color: #9199a4; font-size: 10px; }
.sidebar-profile i { width: 7px; height: 7px; border-radius: 50%; background: #2ed38b; box-shadow: 0 0 0 4px rgba(46,211,139,.09); }
.panel-sidebar-nav { display: grid; margin-top: 22px; gap: 7px; }
.panel-sidebar-nav button {
  position: relative;
  display: grid;
  min-height: 52px;
  align-items: center;
  padding: 7px 11px;
  color: #aab0b9;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.panel-sidebar-nav button span { display: grid; width: 32px; height: 32px; border-radius: 9px; background: #191d22; color: #737b86; font-size: 9px; font-weight: 900; place-items: center; }
.panel-sidebar-nav button b { font-size: 12px; }
.panel-sidebar-nav button:hover { color: #fff; border-color: #313741; background: #161a1f; transform: translateX(3px); }
.panel-sidebar-nav button.is-active { color: #fff; border-color: rgba(241, 30, 44,.3); background: linear-gradient(90deg, rgba(241, 30, 44,.18), rgba(241, 30, 44,.04)); }
.panel-sidebar-nav button.is-active::before { position: absolute; top: 11px; bottom: 11px; left: -17px; width: 3px; border-radius: 99px; content: ""; background: #f11e2c; box-shadow: 0 0 16px rgba(241, 30, 44,.7); }
.panel-sidebar-nav button.is-active span { color: #fff; background: #ec0f1e; }
.sidebar-public-link { display: flex; min-height: 48px; align-items: center; justify-content: center; margin-top: auto; color: #d7dbe0; border: 1px solid #303640; border-radius: 12px; background: #171a1f; font-size: 11px; gap: 8px; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.sidebar-public-link span { color: #f3414d; font-size: 16px; }
.sidebar-public-link:hover { color: #fff; border-color: #f11e2c; transform: translateY(-2px); }
.panel-profile-chip { display: flex; min-width: 146px; align-items: center; padding: 6px 10px 6px 7px; border: 1px solid #2d333b; border-radius: 12px; background: #15191e; gap: 9px; }
.panel-profile-avatar { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; font-size: 13px; }
.panel-profile-chip > span:last-child { display: grid; min-width: 0; }
.panel-profile-chip b, .panel-profile-chip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-profile-chip b { color: #fff; font-size: 11px; }
.panel-profile-chip small { margin-top: 2px; color: #8f97a2; font-size: 9px; }
.admin-provider-chip { position: relative; padding-right: 35px; }
.admin-provider-chip-copy b, .admin-provider-chip-copy small { display: block; }
.admin-provider-chip-copy b { font-size: 10px; }
.admin-provider-chip-copy small { margin-top: 2px; color: var(--panel-muted); font-size: 8px; }
.admin-delete-provider {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  color: #f8969c;
  border: 1px solid #50312f;
  border-radius: 7px;
  background: #241718;
  cursor: pointer;
  font-size: 14px;
  transform: translateY(-50%);
  place-items: center;
}
.admin-delete-provider:hover { color: #fff; border-color: #e63f4a; background: #b9362b; }
.admin-game-editor { grid-template-columns: 44px 68px minmax(150px,1.15fr) 130px 95px 115px minmax(150px,.9fr) minmax(150px,.9fr) 62px 76px; }
.admin-delete-game { min-height: 36px; padding: 0 10px; color: #f9a6ab; border: 1px solid #55302e; border-radius: 9px; background: #241718; cursor: pointer; font-size: 9px; font-weight: 850; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.admin-delete-game:hover { color: #fff; border-color: #eb4b56; background: #bc382d; transform: translateY(-2px); }
.panel-welcome-popup { position: fixed; z-index: 120; inset: 0; display: grid; padding: 20px; background: rgba(3,5,7,.76); backdrop-filter: blur(8px); place-items: center; }
.panel-welcome-card { position: relative; width: min(100%,390px); padding: 34px; overflow: hidden; color: #fff; border: 1px solid #333a44; border-radius: 22px; background: radial-gradient(circle at 85% 5%, rgba(241, 30, 44,.2), transparent 38%), #161a1f; box-shadow: 0 30px 90px rgba(0,0,0,.55); text-align: center; animation: modalIn .32s both; }
.panel-welcome-card::after { position: absolute; right: -55px; bottom: -70px; width: 170px; height: 170px; border: 1px solid rgba(241, 30, 44,.22); border-radius: 50%; content: ""; }
.panel-welcome-card > button { position: absolute; z-index: 2; top: 13px; right: 13px; width: 32px; height: 32px; color: #b4bac3; border: 1px solid #353c45; border-radius: 9px; background: #1c2026; cursor: pointer; font-size: 18px; }
.panel-welcome-card > button:hover { color: #fff; border-color: #f11e2c; }
.welcome-avatar { position: relative; z-index: 1; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 17px; font-size: 24px; }
.panel-welcome-card p { position: relative; z-index: 1; margin: 0; color: #f55b66; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.panel-welcome-card h3 { position: relative; z-index: 1; margin: 9px 0 8px; font-family: Manrope,sans-serif; font-size: 28px; letter-spacing: -.04em; }
.panel-welcome-card small { position: relative; z-index: 1; color: #9ca3ad; font-size: 11px; }

@media (max-width: 1100px) {
  .admin-game-editor { min-width: 1180px; }
}

@media (max-width: 850px) {
  .panel-sidebar {
    position: sticky;
    z-index: 39;
    top: 76px;
    bottom: auto;
    width: 100%;
    height: auto;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--panel-line);
  }
  .sidebar-profile, .sidebar-public-link { display: none; }
  .panel-sidebar-nav { display: flex; margin: 0; overflow-x: auto; gap: 7px; scrollbar-width: none; }
  .panel-sidebar-nav::-webkit-scrollbar { display: none; }
  .panel-sidebar-nav button { min-width: 132px; min-height: 43px; padding: 5px 9px; grid-template-columns: 28px 1fr; }
  .panel-sidebar-nav button span { width: 27px; height: 27px; }
  .panel-sidebar-nav button.is-active::before { display: none; }
  .panel-main-with-sidebar { width: min(100% - 24px,720px); margin-inline: auto; }
  .panel-has-sidebar .panel-save-bar { left: 0; }
}

@media (max-width: 600px) {
  .panel-sidebar { top: 68px; }
  .panel-profile-chip { min-width: 0; padding: 5px; }
  .panel-profile-chip > span:last-child { display: none; }
  .panel-profile-avatar { width: 32px; height: 32px; }
  .panel-header-actions { gap: 5px; }
  .panel-sidebar-nav button { min-width: 118px; }
  .panel-welcome-card { padding: 30px 20px; }
}

/* Panel polish V3 — visual refinement only */
.panel-root {
  background:
    radial-gradient(circle at 78% -12%, rgba(241, 30, 44,.075), transparent 33rem),
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px),
    #0b0d10;
  background-size: auto, 42px 42px, 42px 42px, auto;
}

.panel-header {
  border-bottom-color: rgba(83,91,103,.42);
  background: rgba(11,13,16,.88);
  box-shadow: 0 14px 45px rgba(0,0,0,.2);
}

.panel-header-row { min-height: 78px; }

.panel-brand {
  gap: 14px;
}

.panel-brand img {
  width: 142px;
  filter: drop-shadow(0 8px 18px rgba(241, 30, 44,.1));
}

.panel-brand > span {
  padding-left: 13px;
  border-left: 1px solid #303640;
}

.panel-brand b { color: #f8fafc; font-size: 14px; }
.panel-brand small { color: #858e9a; font-size: 9px; letter-spacing: .055em; }

.panel-main-with-sidebar {
  width: min(1360px, calc(100% - 284px));
  margin-right: 24px;
  margin-left: max(262px, calc(240px + (100vw - 240px - 1360px) / 2));
}

.panel-title-row {
  min-height: 118px;
  align-items: center;
  margin-bottom: 18px;
  padding: 4px 2px;
}

.panel-title-row h2 {
  max-width: 760px;
  font-size: clamp(38px,4.4vw,56px);
  line-height: 1;
}

.panel-title-row p:not(.panel-eyebrow) {
  max-width: 680px;
  margin-top: 12px;
  color: #9ca4af;
  font-size: 13px;
  line-height: 1.55;
}

.panel-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: .14em;
}

.panel-eyebrow::before {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg,#f11e2c,#f77f87);
  content: "";
}

.panel-top-actions { gap: 10px; }

.panel-outline {
  min-height: 42px;
  padding-inline: 15px;
  border-radius: 11px;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.panel-card {
  overflow: hidden;
  border-color: rgba(70,78,89,.58);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.018), transparent 34%),
    #15191e;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.panel-settings-card,
.panel-quick-card { padding: 26px; }

.panel-card-heading {
  margin-bottom: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid #2b3139;
}

.panel-card-heading h3 {
  font-family: Manrope,sans-serif;
  font-size: 21px;
  letter-spacing: -.025em;
}

.panel-card-heading p {
  margin-top: 7px;
  color: #919aa6;
  font-size: 11px;
  line-height: 1.5;
}

.panel-settings-grid,
.quick-fields { gap: 14px; }

#panelLoginForm label,
.panel-settings-grid label,
.quick-fields label,
.admin-game-editor label {
  color: #cbd0d7;
  font-size: 10px;
  letter-spacing: .075em;
}

#panelLoginForm input,
.panel-settings-grid input,
.panel-game-tools input,
.panel-game-tools select,
.quick-fields input,
.quick-fields select {
  border-color: #373e48;
  background: #0e1115;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}

.quick-fields input,
.quick-fields select { height: 46px; border-radius: 11px; }

.panel-primary {
  min-height: 47px;
  border-radius: 12px;
  background: linear-gradient(135deg,#f22d3a,#e20e1c);
  box-shadow: 0 14px 30px rgba(226, 14, 28,.19);
}

.panel-quick-block {
  position: relative;
  padding: 22px;
  border-color: #343b45;
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgba(241, 30, 44,.075), transparent 23rem),
    #191d23;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.quick-block-title {
  margin-bottom: 19px;
  gap: 14px;
}

.quick-block-title > span {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: linear-gradient(145deg,rgba(241, 30, 44,.18),rgba(241, 30, 44,.055));
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.quick-block-title h4 { font-family: Manrope,sans-serif; font-size: 17px; }
.quick-block-title p { margin-top: 5px; font-size: 11px; }

.panel-file {
  position: relative;
  min-height: 70px;
  padding: 10px 12px;
  border-color: #3b434e;
  border-radius: 12px;
  background: #0f1216;
}

.panel-file > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.panel-file-control {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.panel-file-control b {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #fff;
  border: 1px solid #3b424c;
  border-radius: 8px;
  background: #242a32;
  font-size: 9px;
  font-weight: 850;
  text-transform: none;
}

.panel-file-control em {
  min-width: 0;
  overflow: hidden;
  color: #848d98;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.panel-file:hover .panel-file-control b {
  border-color: #f11e2c;
  background: #371316;
}

.admin-provider-list {
  gap: 9px;
  margin-top: 17px;
}

.admin-provider-chip {
  min-height: 48px;
  padding: 8px 38px 8px 9px;
  border-color: #353d47;
  border-radius: 12px;
  background: #101318;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.admin-provider-chip:hover {
  border-color: #525b67;
  background: #15191f;
  transform: translateY(-2px);
}

.admin-provider-chip-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.admin-provider-chip-copy b { color: #f4f6f8; font-size: 11px; }
.admin-provider-chip-copy small { color: #89929d; font-size: 9px; }

.panel-sidebar {
  top: 78px;
  padding: 24px 15px 104px;
  border-right-color: #292f37;
  background:
    radial-gradient(circle at 25% 0%,rgba(241, 30, 44,.08),transparent 19rem),
    linear-gradient(180deg,#0a0c0f,#0e1115);
  box-shadow: 18px 0 55px rgba(0,0,0,.18);
}

.sidebar-profile {
  min-height: 82px;
  padding: 14px;
  border-color: #303741;
  border-radius: 17px;
  background: linear-gradient(145deg,#181d23,#12161b);
  box-shadow: 0 16px 34px rgba(0,0,0,.19);
}

.panel-sidebar-nav { margin-top: 25px; gap: 8px; }

.panel-sidebar-nav button {
  min-height: 54px;
  border-radius: 13px;
}

.panel-sidebar-nav button.is-active {
  border-color: rgba(241, 30, 44,.37);
  background: linear-gradient(100deg,rgba(241, 30, 44,.21),rgba(241, 30, 44,.035));
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
}

.panel-profile-chip {
  min-width: 155px;
  border-color: #353c45;
  background: linear-gradient(145deg,#181d23,#13171c);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.panel-save-bar {
  border-top-color: #303740;
  background: rgba(12,14,17,.94);
  box-shadow: 0 -18px 50px rgba(0,0,0,.27);
}

.panel-has-sidebar .panel-save-row {
  width: min(1360px, calc(100vw - 284px));
  margin-right: 24px;
  margin-left: max(22px, calc((100vw - 240px - 1360px) / 2));
}

@media (max-width: 1100px) {
  .panel-main-with-sidebar { width: calc(100% - 276px); margin-left: 256px; margin-right: 20px; }
  .panel-has-sidebar .panel-save-row { width: calc(100% - 40px); margin-inline: auto; }
}

@media (max-width: 850px) {
  .panel-sidebar { top: 78px; }
  .panel-main-with-sidebar { width: min(100% - 24px,760px); margin-inline: auto; }
  .panel-title-row { min-height: 0; padding-top: 10px; }
  .panel-settings-card, .panel-quick-card { padding: 20px; }
  .panel-has-sidebar .panel-save-row { width: min(100% - 24px,760px); }
}

@media (max-width: 600px) {
  .panel-sidebar { top: 68px; }
  .panel-title-row h2 { font-size: 36px; }
  .panel-title-row p:not(.panel-eyebrow) { font-size: 12px; }
  .panel-settings-card, .panel-quick-card { padding: 15px; }
  .panel-quick-block { padding: 15px; }
  .panel-file-control { align-items: flex-start; flex-direction: column; gap: 7px; }
  .panel-file-control em { max-width: 100%; }
}

/* ================================================================
   PANEL V4 — analytics, workflow, access, and security
   ================================================================ */
body[data-panel-page="true"] { --v4-surface: #15191e; --v4-surface-2: #1a1f25; --v4-line: #2d343d; --v4-muted: #929aa6; }
body[data-panel-page="true"] .panel-dashboard { padding-bottom: 112px; }
.panel-view-section[hidden], .owner-only[hidden], .panel-preview-modal[hidden] { display: none !important; }
.panel-view-section { animation: panelV4Reveal .28s ease both; }
@keyframes panelV4Reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.panel-profile-chip small { display: flex; align-items: center; gap: 6px; }
.panel-profile-chip small i { padding: 2px 5px; border: 1px solid rgba(241, 30, 44,.35); border-radius: 4px; color: #f55c67; background: rgba(241, 30, 44,.1); font-size: 7px; font-style: normal; font-weight: 900; letter-spacing: .08em; }
.panel-profile-chip small em { overflow: hidden; max-width: 110px; text-overflow: ellipsis; font-style: normal; white-space: nowrap; }
.sidebar-nav-label { margin: 15px 10px 2px; color: #5f6873; font-size: 8px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.panel-sidebar-nav { align-content: start; }
.panel-sidebar-nav button { min-height: 43px; }
.panel-sidebar-nav button b { font-size: 11px; }

.panel-card-badge { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(241, 30, 44,.28); border-radius: 999px; color: #f55c67; background: rgba(241, 30, 44,.08); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.panel-status-grid { display: grid; margin-bottom: 16px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.panel-status-grid article { position: relative; display: grid; min-height: 106px; align-content: center; padding: 18px 18px 18px 56px; overflow: hidden; border: 1px solid var(--v4-line); border-radius: 16px; background: linear-gradient(145deg,#191d22,#13161a); box-shadow: 0 14px 34px rgba(0,0,0,.16); }
.panel-status-grid article > span:first-child { position: absolute; top: 50%; left: 19px; display: grid; width: 25px; height: 25px; border-radius: 8px; color: #f34954; background: rgba(241, 30, 44,.12); font-size: 13px; place-items: center; transform: translateY(-50%); }
.panel-status-grid article > .status-dot { width: 10px; height: 10px; left: 27px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 6px rgba(239,68,68,.1); }
.panel-status-grid article > .status-dot.is-online { background: #2ad07f; box-shadow: 0 0 0 6px rgba(42,208,127,.11),0 0 18px rgba(42,208,127,.35); }
.panel-status-grid small { color: var(--v4-muted); font-size: 9px; font-weight: 700; letter-spacing: .02em; }
.panel-status-grid b { margin-top: 7px; overflow: hidden; color: #f6f7f8; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.panel-status-grid b i { color: #fff; font-style: normal; }

.panel-workflow-card { padding: 23px; }
.panel-workflow-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.workflow-action { position: relative; display: grid; min-height: 118px; align-content: center; padding: 18px 16px 18px 58px; cursor: pointer; text-align: left; border: 1px solid var(--v4-line); border-radius: 14px; color: #fff; background: #111419; transition: border-color .2s ease,transform .2s ease,background .2s ease,box-shadow .2s ease; }
.workflow-action:hover { border-color: rgba(241, 30, 44,.48); background: #191d22; box-shadow: 0 12px 26px rgba(0,0,0,.22); transform: translateY(-2px); }
.workflow-action > span { position: absolute; top: 20px; left: 16px; display: grid; width: 30px; height: 30px; border-radius: 9px; color: #f34954; background: rgba(241, 30, 44,.12); font-size: 13px; place-items: center; }
.workflow-action b { font-size: 12px; }
.workflow-action small { margin-top: 6px; color: var(--v4-muted); font-size: 10px; line-height: 1.45; }
.workflow-action input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.analytics-heading { align-items: flex-start; }
.panel-inline-tools { display: flex; align-items: center; gap: 8px; }
.panel-inline-tools select, .bulk-toolbar select, .panel-user-form input, .panel-user-form select, .security-grid input[type="number"], .user-actions select { height: 40px; padding: 0 12px; color: #f5f6f7; border: 1px solid #343a44; border-radius: 9px; outline: 0; background: #101216; font-size: 11px; }
.analytics-kpi-grid { display: grid; margin-bottom: 14px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.analytics-kpi-grid article { display: grid; min-height: 126px; align-content: center; padding: 18px; overflow: hidden; border: 1px solid var(--v4-line); border-radius: 15px; background: radial-gradient(circle at 100% 0,rgba(241, 30, 44,.12),transparent 48%),#111419; }
.analytics-kpi-grid small { color: #aeb5bf; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.analytics-kpi-grid b { margin: 8px 0 4px; color: #fff; font-family: Manrope,Inter,sans-serif; font-size: clamp(24px,2.2vw,34px); line-height: 1; }
.analytics-kpi-grid span { color: #777f8a; font-size: 9px; }
.analytics-layout { display: grid; margin-bottom: 12px; grid-template-columns: minmax(0,1.7fr) minmax(240px,.65fr); gap: 12px; }
.analytics-chart-card, .analytics-device-card, .analytics-ranking-grid > article { padding: 18px; border: 1px solid var(--v4-line); border-radius: 15px; background: #111419; }
.mini-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.mini-heading h4 { margin: 0; color: #fff; font-size: 12px; }
.mini-heading small { color: #707985; font-size: 9px; }
.analytics-chart { display: flex; min-height: 220px; align-items: end; padding: 12px 5px 0; overflow-x: auto; border-bottom: 1px solid #303640; gap: 7px; }
.chart-day { display: grid; min-width: 28px; height: 198px; flex: 1 0 28px; grid-template-rows: 1fr 18px; gap: 5px; }
.chart-bars { display: flex; min-height: 0; align-items: end; justify-content: center; gap: 3px; }
.chart-bars i, .chart-bars b { width: min(11px,42%); min-height: 3px; border-radius: 4px 4px 1px 1px; transition: height .35s ease; }
.chart-bars i { background: linear-gradient(#f55f69,#f11e2c); }
.chart-bars b { background: linear-gradient(#5ee2a1,#16a86c); }
.chart-day > small { color: #6f7782; font-size: 7px; text-align: center; }
.device-breakdown { display: grid; gap: 17px; }
.device-breakdown > div { display: grid; gap: 7px; }
.device-breakdown span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.device-breakdown span b { color: #dfe3e7; font-size: 10px; }
.device-breakdown span small { color: #858e9a; font-size: 9px; }
.device-breakdown > div > i, .ranking-row i { display: block; height: 5px; overflow: hidden; border-radius: 99px; background: #292f37; }
.device-breakdown > div > i b, .ranking-row i em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#f11e2c,#f77a83); }
.analytics-ranking-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ranking-list { display: grid; gap: 4px; }
.ranking-row { display: grid; min-height: 47px; align-items: center; padding: 6px 0; border-bottom: 1px solid #252b32; grid-template-columns: 28px 1fr 50px; gap: 8px; }
.ranking-row:last-child { border-bottom: 0; }
.ranking-row > span { color: #f3434f; font-size: 9px; font-weight: 900; }
.ranking-row > div { display: grid; min-width: 0; gap: 6px; }
.ranking-row > div > b { overflow: hidden; color: #e8ebee; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-row > strong { color: #fff; font-size: 10px; text-align: right; }
.panel-empty { width: 100%; margin: auto; padding: 24px; color: #737c87; font-size: 10px; text-align: center; }

.bulk-toolbar { display: flex; min-height: 58px; align-items: center; padding: 9px 16px; border-top: 1px solid var(--v4-line); border-bottom: 1px solid var(--v4-line); background: #12151a; gap: 10px; }
.bulk-check { display: flex; align-items: center; color: #d5d9de; font-size: 10px; font-weight: 700; gap: 8px; }
.bulk-check input, .admin-select input { accent-color: #f11e2c; }
.bulk-toolbar strong { margin-right: auto; color: #f34954; font-size: 10px; }
.bulk-toolbar strong i { font-style: normal; }
.bulk-toolbar select { min-width: 180px; }
.bulk-toolbar .panel-primary { min-height: 40px; padding: 0 20px; }
.admin-game-editor { grid-template-columns: 28px 42px 62px minmax(145px,1.15fr) 125px 88px 105px minmax(145px,.9fr) minmax(145px,.9fr) 56px 72px; }
.admin-game-editor.is-selected { background: rgba(241, 30, 44,.07); box-shadow: inset 3px 0 #f11e2c; }
.admin-select { display: grid !important; place-items: center; }
.admin-select input { width: 16px !important; height: 16px !important; }

.activity-list { display: grid; }
.activity-list article { display: grid; min-height: 76px; align-items: center; padding: 13px 4px; border-bottom: 1px solid #292f36; grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; }
.activity-list article:last-child { border-bottom: 0; }
.activity-icon, .user-avatar { display: grid; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: linear-gradient(145deg,#f11e2c,#d20d1a); font-size: 12px; font-weight: 900; box-shadow: 0 8px 18px rgba(241, 30, 44,.18); place-items: center; }
.activity-list article > div { display: grid; min-width: 0; gap: 4px; }
.activity-list article > div b { overflow: hidden; color: #e9ecef; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.activity-list article > div small, .activity-list time { color: #7f8894; font-size: 9px; }

.panel-user-form { display: grid; align-items: end; margin-bottom: 14px; padding: 16px; border: 1px solid var(--v4-line); border-radius: 14px; background: #111419; grid-template-columns: 1fr 1fr 180px auto; gap: 10px; }
.panel-user-form label { display: grid; color: #c5cad1; font-size: 9px; font-weight: 800; text-transform: uppercase; gap: 6px; }
.panel-user-form .panel-primary { min-height: 40px; white-space: nowrap; }
.panel-info-note { display: flex; align-items: flex-start; margin: 0 0 14px; padding: 11px 13px; border: 1px solid rgba(59,130,246,.2); border-radius: 11px; color: #8e9baa; background: rgba(59,130,246,.06); font-size: 9px; line-height: 1.55; gap: 9px; }
.panel-info-note > span:first-child { display: grid; width: 17px; height: 17px; flex: 0 0 auto; border-radius: 50%; color: #9cc4ff; background: rgba(59,130,246,.16); font-size: 9px; font-weight: 900; place-items: center; }
.panel-user-list { display: grid; }
.panel-user-row { display: grid; min-height: 76px; align-items: center; padding: 12px 3px; border-bottom: 1px solid #292f36; grid-template-columns: 42px minmax(180px,1fr) 76px minmax(250px,auto); gap: 10px; }
.panel-user-row:last-child { border-bottom: 0; }
.user-copy { display: grid; min-width: 0; gap: 4px; }
.user-copy b { color: #eef0f2; font-size: 11px; }
.user-copy small { overflow: hidden; color: #7e8793; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.user-state { justify-self: start; padding: 5px 8px; border-radius: 999px; color: #9ba3ad; background: #282e35; font-size: 8px; font-weight: 800; }
.user-state.is-active { color: #62dda0; background: rgba(34,197,94,.11); }
.user-actions { display: flex; justify-content: flex-end; gap: 7px; }
.user-actions select { width: 108px; }
.user-actions .panel-outline { min-height: 38px; padding: 0 11px; font-size: 9px; }
.user-role-readonly { color: #c5cad1; font-size: 10px; text-transform: capitalize; }

.security-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.security-toggle, .retention-field { display: flex; min-height: 104px; align-items: center; justify-content: space-between; padding: 17px; border: 1px solid var(--v4-line); border-radius: 14px; background: #111419; gap: 18px; }
.security-toggle > span, .retention-field { color: #fff; }
.security-toggle > span { display: grid; gap: 5px; }
.security-toggle b, .retention-field > span { font-size: 11px; }
.security-toggle small, .retention-field small { color: #818a96; font-size: 9px; line-height: 1.45; }
.security-toggle input { position: absolute; opacity: 0; }
.security-toggle > i { position: relative; width: 42px; height: 24px; flex: 0 0 auto; cursor: pointer; border-radius: 99px; background: #343b44; transition: .2s ease; }
.security-toggle > i::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; content: ""; background: #aeb5bd; transition: .2s ease; }
.security-toggle input:checked + i { background: #f11e2c; box-shadow: 0 0 18px rgba(241, 30, 44,.22); }
.security-toggle input:checked + i::after { background: #fff; transform: translateX(18px); }
.retention-field { display: grid; align-content: center; }
.retention-field input { width: 130px; }
.security-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 14px; border-top: 1px solid var(--v4-line); gap: 20px; }
.security-footer p { display: grid; margin: 0; gap: 4px; }
.security-footer p b { color: #d9dde1; font-size: 10px; }
.security-footer p span { color: #7d8691; font-size: 9px; line-height: 1.5; }

.save-bar-actions { display: flex !important; align-items: center; gap: 8px; }
.save-bar-actions .panel-outline { min-height: 43px; }
.panel-preview-modal { position: fixed; z-index: 200; inset: 0; display: grid; padding: 24px; place-items: center; }
.panel-preview-backdrop { position: absolute; inset: 0; background: rgba(3,5,7,.82); backdrop-filter: blur(12px); }
.panel-preview-window { position: relative; width: min(900px,100%); max-height: min(820px,calc(100vh - 48px)); overflow: auto; border: 1px solid #363c45; border-radius: 22px; color: #e9ecef; background: #111419; box-shadow: 0 38px 100px rgba(0,0,0,.58); }
.panel-preview-window > header, .panel-preview-window > footer { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #2c3239; gap: 14px; }
.panel-preview-window > footer { border-top: 1px solid #2c3239; border-bottom: 0; }
.panel-preview-window > header small { color: #f3434f; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.panel-preview-window > header h3 { margin: 4px 0 0; color: #fff; font-size: 20px; }
.panel-preview-window > header > button { display: grid; width: 34px; height: 34px; cursor: pointer; border: 1px solid #343b44; border-radius: 10px; color: #fff; background: #1b2026; place-items: center; }
.preview-hero { display: grid; min-height: 250px; align-items: center; padding: 28px; background: radial-gradient(circle at 15% 20%,rgba(241, 30, 44,.22),transparent 42%),linear-gradient(145deg,#29090b,#15191e); grid-template-columns: 1fr minmax(260px,42%); gap: 24px; }
.preview-hero > div > span { color: #f55f69; font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.preview-hero h4 { margin: 12px 0; color: #fff; font-family: Manrope,Inter,sans-serif; font-size: clamp(24px,4vw,42px); line-height: 1.1; }
.preview-hero p { color: #b8bec6; font-size: 10px; }
.preview-hero img { width: 100%; max-height: 210px; object-fit: cover; border-radius: 16px; transform: rotate(1.5deg); box-shadow: 0 20px 38px rgba(0,0,0,.32); }
.preview-game-grid { display: grid; padding: 20px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.preview-game-grid article { display: grid; overflow: hidden; border: 1px solid #30363e; border-radius: 12px; background: #191d22; grid-template-columns: 68px 1fr; }
.preview-game-grid :is(img, video) { display: block; width: 68px; height: 68px; object-fit: cover; }
.preview-game-grid span { display: grid; min-width: 0; align-content: center; padding: 10px; gap: 4px; }
.preview-game-grid b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.preview-game-grid small, .panel-preview-window > footer > span { color: #818a95; font-size: 8px; }

@media (max-width: 1200px) {
  .panel-status-grid, .analytics-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .panel-workflow-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .panel-user-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .panel-user-form .panel-primary { min-height: 44px; }
  .admin-game-editor { min-width: 1240px; }
}
@media (max-width: 850px) {
  .sidebar-nav-label { display: none; }
  .panel-sidebar-nav button { min-width: 116px; }
  .panel-status-grid { margin-top: 4px; }
  .analytics-layout, .analytics-ranking-grid { grid-template-columns: 1fr; }
  .panel-user-row { grid-template-columns: 42px 1fr auto; }
  .panel-user-row .user-actions { grid-column: 2 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .panel-user-form, .security-grid { grid-template-columns: 1fr; }
  .panel-preview-modal { padding: 12px; }
  .panel-preview-window { max-height: calc(100vh - 24px); }
}
@media (max-width: 600px) {
  body[data-panel-page="true"] .panel-dashboard { padding-bottom: 94px; }
  .panel-status-grid, .analytics-kpi-grid, .panel-workflow-grid { grid-template-columns: 1fr; }
  .panel-status-grid article { min-height: 90px; }
  .panel-card-badge { display: none; }
  .panel-inline-tools { width: 100%; flex-wrap: wrap; }
  .panel-inline-tools select { width: 100%; }
  .analytics-heading { align-items: stretch; flex-direction: column; }
  .analytics-chart { min-height: 190px; }
  .chart-day { height: 168px; }
  .bulk-toolbar { align-items: stretch; flex-direction: column; }
  .bulk-toolbar strong { margin-right: 0; }
  .bulk-toolbar select { width: 100%; }
  .panel-user-form { grid-template-columns: 1fr; }
  .panel-user-row { grid-template-columns: 38px 1fr; }
  .panel-user-row .user-state { grid-column: 2; }
  .panel-user-row .user-actions { grid-column: 1 / -1; }
  .security-footer { align-items: stretch; flex-direction: column; }
  .save-bar-actions .panel-outline { display: none; }
  .preview-hero { padding: 22px; grid-template-columns: 1fr; }
  .preview-hero img { max-height: 170px; }
  .preview-game-grid { grid-template-columns: 1fr; }
  .panel-preview-window > footer { align-items: stretch; flex-direction: column; }
}

/* =========================================================
   Garuda99 WIN SIMULATOR — restored white/orange V5.3
   ========================================================= */
.win-sim-trigger { display:flex; width:100%; min-height:42px; align-items:center; justify-content:center; gap:8px; margin-top:11px; color:var(--red-700); border:1px solid var(--red-200); border-radius:11px; background:linear-gradient(135deg,#fdeff0,#fff); font-size:9px; font-weight:900; letter-spacing:.02em; transition:color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
.win-sim-trigger span { display:grid; width:21px; height:21px; place-items:center; color:#fff; border-radius:7px; background:linear-gradient(145deg,var(--red-500),var(--red-700)); box-shadow:0 5px 12px rgba(231, 15, 29,.22); }
.win-sim-trigger:hover { color:#fff; border-color:var(--red-600); background:linear-gradient(135deg,var(--red-500),var(--red-700)); box-shadow:0 10px 22px rgba(231, 15, 29,.22); transform:translateY(-2px); }
.win-sim-trigger:hover span { color:var(--red-700); background:#fff; }
body.simulator-open { overflow:hidden; }
.win-sim-modal[hidden] { display:none !important; }
.win-sim-modal { position:fixed; z-index:10000; inset:0; display:grid; align-items:center; justify-items:center; padding:18px; }
.win-sim-backdrop { position:absolute; inset:0; background:rgba(74, 14, 18,.42); backdrop-filter:blur(10px); animation:simulatorFade .24s ease both; }
.win-sim-dialog { position:relative; width:min(650px,100%); max-height:calc(100vh - 36px); overflow:auto; padding:28px; color:#3a1417; border:1px solid #f77a83; border-radius:25px; background:radial-gradient(circle at 90% 0,rgba(241, 30, 44,.13),transparent 34%),linear-gradient(155deg,#fdeff0,#fff 66%); box-shadow:0 32px 100px rgba(88, 20, 25,.27),0 0 0 1px rgba(255,255,255,.7) inset; animation:simulatorRise .34s cubic-bezier(.2,.85,.25,1) both; scrollbar-width:thin; scrollbar-color:#f77a83 transparent; }
.win-sim-close { position:absolute; z-index:2; top:17px; right:17px; display:grid; width:36px; height:36px; place-items:center; color:#c20c18; border:1px solid #faaeb3; border-radius:11px; background:#fff; box-shadow:0 7px 18px rgba(231, 15, 29,.09); font-size:22px; transition:color .2s ease,border-color .2s ease,background .2s ease,transform .2s ease; }
.win-sim-close:hover { color:#fff; border-color:var(--red-600); background:var(--red-600); transform:rotate(5deg); }
.win-sim-header { padding-right:42px; }
.win-sim-kicker { color:var(--red-600); font-size:8px; font-weight:900; letter-spacing:.16em; }
.win-sim-header h2 { margin:9px 0 5px; color:#321214; font-family:Manrope,Inter,sans-serif; font-size:clamp(25px,5vw,38px); letter-spacing:-.045em; }
.win-sim-header p { margin:0; color:#ac3d44; font-size:10px; font-weight:700; }
.win-sim-form { margin-top:23px; }
.win-sim-inputs { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.win-sim-inputs label > span { display:block; margin:0 0 7px; color:#a73b42; font-size:8px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.win-sim-money { display:grid; min-height:48px; overflow:hidden; align-items:center; border:1px solid #faaeb3; border-radius:13px; background:#fff; box-shadow:0 6px 16px rgba(88, 20, 25,.035); grid-template-columns:43px 1fr; transition:border-color .2s ease,box-shadow .2s ease; }
.win-sim-money:focus-within { border-color:var(--red-500); box-shadow:0 0 0 3px rgba(241, 30, 44,.13),0 8px 20px rgba(231, 15, 29,.07); }
.win-sim-money b { display:grid; height:100%; place-items:center; color:var(--red-600); border-right:1px solid #fadadc; background:#fef6f7; font-size:10px; }
.win-sim-money input { width:100%; min-width:0; height:46px; padding:0 13px; color:#321214; border:0; outline:0; background:transparent; font-family:Manrope,Inter,sans-serif; font-size:15px; font-weight:800; }
.win-sim-error { margin:10px 0 0; padding:9px 11px; color:#a5272f; border:1px solid #fecaca; border-radius:9px; background:#fff7f7; font-size:9px; }
.win-sim-run { display:flex; width:100%; min-height:50px; align-items:center; justify-content:space-between; margin-top:13px; padding:0 13px 0 18px; color:#fff; border:0; border-radius:13px; background:linear-gradient(110deg,var(--red-500),var(--red-700)); box-shadow:0 13px 28px rgba(231, 15, 29,.24); font-size:10px; font-weight:900; }
.win-sim-run b { display:grid; width:29px; height:29px; place-items:center; color:var(--red-700); border-radius:9px; background:#fff; font-size:14px; transition:transform .2s ease; }
.win-sim-run:hover b { transform:translateX(3px); }
.win-sim-result { margin-top:18px; padding-top:18px; border-top:1px solid #faaeb3; animation:simulatorResult .35s ease both; }
.win-sim-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.win-sim-summary article { min-width:0; padding:13px; border:1px solid #fbc7ca; border-radius:13px; background:rgba(255,255,255,.86); box-shadow:0 8px 22px rgba(88, 20, 25,.04); }
.win-sim-summary small,.win-sim-session small { display:block; color:#bc424a; font-size:7px; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.win-sim-summary strong { display:block; overflow:hidden; margin-top:7px; color:#321214; font-family:Manrope,Inter,sans-serif; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.win-sim-session { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:10px; padding:17px; border:1px solid #f34450; border-radius:14px; background:linear-gradient(110deg,#fce9ea,#fef6f7); box-shadow:0 10px 26px rgba(231, 15, 29,.08); }
.win-sim-session strong { display:block; margin-top:5px; color:#321214; font-family:Manrope,Inter,sans-serif; font-size:clamp(24px,5vw,31px); letter-spacing:-.035em; }
.win-sim-session > span { padding:8px 11px; color:#c20c18; border:1px solid #f77a83; border-radius:9px; background:#fff; box-shadow:0 6px 16px rgba(231, 15, 29,.08); font-size:12px; font-weight:900; }
.win-sim-chart { display:grid; height:176px; align-items:end; margin-top:14px; padding:20px 14px 10px; border:1px solid #faaeb3; border-radius:15px; background:repeating-linear-gradient(to top,#fff 0,#fff 32px,rgba(241, 30, 44,.09) 33px); box-shadow:inset 0 0 24px rgba(241, 30, 44,.035); grid-template-columns:repeat(3,1fr); gap:14px; }
.win-sim-chart > div { display:grid; height:100%; min-width:0; align-items:end; justify-items:center; grid-template-rows:1fr auto auto; gap:5px; }
.win-sim-chart i { display:block; width:min(54px,72%); min-height:7px; border-radius:8px 8px 3px 3px; background:linear-gradient(to top,#e70f1d,#f34450); box-shadow:0 10px 22px rgba(231, 15, 29,.22); transition:height .65s cubic-bezier(.2,.85,.25,1); }
.win-sim-chart > div:nth-child(2) i { background:linear-gradient(to top,#f11e2c,#f77a83); box-shadow:0 10px 22px rgba(241, 30, 44,.17); }
.win-sim-chart > div:nth-child(3) i { border:1px solid #f34450; background:linear-gradient(to top,#fadadc,#fff); box-shadow:inset 0 0 0 1px rgba(255,255,255,.8),0 10px 22px rgba(231, 15, 29,.12); }
.win-sim-result.is-revealing .win-sim-chart i { transform-origin:center bottom; animation:simulatorBarGrow .8s cubic-bezier(.16,1,.3,1) both; }
.win-sim-result.is-revealing .win-sim-chart > div:nth-child(2) i { animation-delay:.14s; }
.win-sim-result.is-revealing .win-sim-chart > div:nth-child(3) i { animation-delay:.28s; }
.win-sim-result.is-revealing .win-sim-session > span { animation:simulatorPercentPop .58s .34s cubic-bezier(.16,1,.3,1) both; }
.win-sim-chart span { color:#bc424a; font-size:7px; font-weight:850; text-transform:uppercase; }
.win-sim-chart b { max-width:100%; overflow:hidden; color:#4b1a1d; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.win-sim-disclaimer { display:grid; align-items:start; margin:15px 0 0; padding:11px; color:#9f383f; border-radius:11px; background:#fdeff0; font-size:8px; line-height:1.55; grid-template-columns:21px 1fr; gap:8px; }
.win-sim-disclaimer span { display:grid; width:19px; height:19px; place-items:center; color:#c20c18; border:1px solid #f77a83; border-radius:6px; background:#fff; font-size:8px; font-weight:900; }
@keyframes simulatorFade { from { opacity:0; } }
@keyframes simulatorRise { from { opacity:0; transform:translateY(22px) scale(.97); } }
@keyframes simulatorResult { from { opacity:0; transform:translateY(8px); } }
@keyframes simulatorBarGrow { 0% { opacity:0; filter:saturate(.5); transform:scaleY(0); } 55% { opacity:1; filter:saturate(1.35) brightness(1.08); } 100% { opacity:1; filter:saturate(1); transform:scaleY(1); } }
@keyframes simulatorPercentPop { 0% { opacity:0; transform:translateY(7px) scale(.82); } 70% { opacity:1; transform:translateY(0) scale(1.06); } 100% { opacity:1; transform:scale(1); } }
@media (max-width:600px) {
  .win-sim-trigger { min-height:38px; font-size:8px; }
  .win-sim-modal { align-items:end; padding:8px; }
  .win-sim-dialog { width:100%; max-height:calc(100dvh - 16px); padding:22px 17px 18px; border-radius:22px; }
  .win-sim-close { top:13px; right:13px; }
  .win-sim-inputs { grid-template-columns:1fr; gap:10px; }
  .win-sim-summary { grid-template-columns:1fr 1fr; }
  .win-sim-summary article:last-child { grid-column:1/-1; }
  .win-sim-chart { height:158px; padding-inline:7px; gap:7px; }
  .win-sim-session strong { font-size:24px; }
}
@media (prefers-reduced-motion:reduce) {
  .win-sim-result.is-revealing .win-sim-chart i,.win-sim-result.is-revealing .win-sim-session > span { animation:none; }
}
.provider-tab {
  position: relative;
  overflow: visible;
}

.provider-hot-gif {
  position: absolute;
  z-index: 8;
  top: -18px;
  left: -10px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(231, 15, 29, 0.22));
}

@media (max-width: 600px) {
  .provider-hot-gif {
    top: -15px;
    left: -7px;
    width: 42px;
    height: 42px;
  }
}

/* =========================================================
   GARUDA99 MAROON + TRUE RED V2
   Public page only: maroon backgrounds, saturated red accents,
   white controls, and a white WD notification.
   ========================================================= */
:root {
  --red-25: #fff7f7;
  --red-50: #fff0f0;
  --red-100: #ffd6d6;
  --red-200: #ffaaaa;
  --red-300: #ff4a4a;
  --red-400: #ff1717;
  --red-500: #f00014;
  --red-600: #d70011;
  --red-700: #9b000d;
}

html,
body { background: #430007; }

#publicView {
  min-height: 100vh;
  color: #fff7f8;
  background:
    radial-gradient(circle at 8% 8%, rgba(240, 0, 20, 0.30), transparent 28rem),
    radial-gradient(circle at 94% 43%, rgba(182, 0, 16, 0.26), transparent 32rem),
    #430007;
}

#publicView .site-header {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.16);
  background: rgba(72, 0, 9, 0.96);
}

#publicView .brand-fallback {
  padding: 9px 12px;
  color: #fff;
  border: 1px dashed rgba(255, 255, 255, 0.54);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#publicView .desktop-nav a { color: #fff; }
#publicView .desktop-nav a::after { background: #f00014; }

#publicView .official-mirror-notice {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.18);
  background: #d70011;
}

#publicView .official-mirror-inner,
#publicView .official-mirror-links a,
#publicView .official-mirror-close,
#publicView .official-mirror-separator { color: #fff; }

#publicView .official-mirror-links a { text-decoration-color: rgba(255, 255, 255, 0.62); }

#publicView .hero {
  color: #fff;
  background:
    radial-gradient(circle at 83% 16%, rgba(255, 255, 255, 0.16), transparent 18rem),
    radial-gradient(circle at 12% 105%, rgba(240, 0, 20, 0.42), transparent 26rem),
    linear-gradient(135deg, #520008 0%, #76000d 52%, #a5000f 100%);
}

#publicView .hero::before,
#publicView .hero::after { border-color: rgba(255, 255, 255, 0.16); }

#publicView .eyebrow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

#publicView .hero h1,
#publicView .hero h1 em,
#publicView .hero-text,
#publicView .trust-row small { color: #fff; }

#publicView .hero h1 em {
  text-shadow: 0 0 28px rgba(240, 0, 20, 0.46);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
}

#publicView .trust-row > span { border-left-color: rgba(255, 255, 255, 0.22); }

#publicView .visual-card {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(82, 0, 8, 0.94);
  box-shadow: 0 24px 62px rgba(28, 0, 4, 0.35);
}

#publicView .visual-live-fallback { background: linear-gradient(145deg, #65000b, #8e000f); }
#publicView .visual-card-main strong,
#publicView .visual-card-main p,
#publicView .visual-card-float span,
#publicView .visual-card-float b { color: #fff; }
#publicView .hero-progress { background: rgba(255, 255, 255, 0.22); }
#publicView .hero-progress i { background: linear-gradient(90deg, #ff0015, #ff3636); }

#publicView :is(.game-lab-section, .provider-section, .info-section, .contact-section) {
  color: #fff;
  background: transparent;
}

#publicView .rtp-section {
  color: #fff;
  border-block-color: rgba(255, 255, 255, 0.14);
  background: #380006;
}

#publicView .service-section {
  color: #fff;
  background: linear-gradient(130deg, #d70011, #8e000f);
}

#publicView .section-heading p:not(.section-kicker),
#publicView .game-lab-heading > p,
#publicView .game-lab-copy em,
#publicView .provider-tab small,
#publicView .result-meta,
#publicView .info-card p,
#publicView .service-copy > p,
#publicView .service-list p,
#publicView .contact-actions small { color: #f2cbd0; }

#publicView .section-kicker,
#publicView .text-button { color: #fff; }

#publicView :is(.game-lab-card, .provider-tab, .game-card, .filter-card, .info-card, .contact-card, .service-list article) {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.19);
  background: linear-gradient(145deg, #65000b, #520008);
  box-shadow: 0 15px 38px rgba(28, 0, 4, 0.22);
}

#publicView .game-lab-card:hover,
#publicView .provider-tab:hover,
#publicView .game-card:hover { border-color: #f00014; }

#publicView .provider-tab.is-active {
  color: #fff;
  border-color: #f00014;
  background: linear-gradient(135deg, #f00014, #bd000f);
}

#publicView .provider-logo,
#publicView .provider-badge,
#publicView .filter-card input,
#publicView .filter-card select,
#publicView .contact-icon { color: #71000c; background: #fff; }

#publicView .game-cover { background: #5b0009; }
#publicView .game-info-block { background: rgba(255, 255, 255, 0.09); }
#publicView .game-info-block small { color: #f2cbd0; }
#publicView .game-info-block b,
#publicView .game-name { color: #fff; }

#publicView .info-card-accent {
  border-color: #f00014;
  background: linear-gradient(135deg, #f00014, #bd000f);
}

#publicView .contact-card { background: linear-gradient(135deg, #70000d, #4e0008); }
#publicView .contact-actions a { color: #65000b; border-color: #fff; background: #fff; }
#publicView .contact-actions small { color: #87000d; }

#publicView :is(.nav-login, .nav-register, .primary-cta, .secondary-cta, .refresh-button, .pager button, .game-play, .lab-primary-button, .swipe-skip, .swipe-open, .swipe-save) {
  color: #71000c;
  border-color: #fff;
  background: #fff;
  box-shadow: 0 12px 28px rgba(30, 0, 4, 0.20);
}

#publicView :is(.nav-login, .nav-register, .primary-cta, .secondary-cta, .refresh-button, .pager button, .game-play, .lab-primary-button, .swipe-skip, .swipe-open, .swipe-save):hover {
  color: #f00014;
  border-color: #fff;
  background: #fff;
  filter: brightness(1.03);
}

#publicView .game-lab-dialog,
#publicView .win-sim-dialog,
#publicView .welcome-card {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, #65000b, #430007);
}

#publicView :is(.game-lab-dialog, .win-sim-dialog, .welcome-card) :is(h2, h3, p, small, strong, legend, label, span) { color: inherit; }
#publicView :is(.battle-selectors select, .matcher-form select, .win-sim-money, .win-sim-summary article, .win-sim-session, .win-sim-chart) { color: #510008; background: #fff; }

#publicView .welcome-link-grid a {
  color: #65000b;
  border-color: #fff;
  background: #fff;
}

#publicView .site-footer {
  color: #f2cbd0;
  border-top-color: rgba(255, 255, 255, 0.14);
  background: #320005;
}

#publicView .footer-logo-slot {
  display: grid;
  width: 142px;
  min-height: 42px;
  place-items: center start;
}

#publicView .footer-logo-fallback {
  padding: 7px 9px;
  color: #fff;
  border: 1px dashed rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Notifikasi withdraw sengaja tetap putih sesuai permintaan. */
.withdraw-toast {
  color: #3b0006 !important;
  border-color: #fff !important;
  background: #fff !important;
  box-shadow: 0 20px 54px rgba(25, 0, 3, 0.34) !important;
}

.withdraw-toast b { color: #d70011 !important; }
.withdraw-toast small { color: #6f3a40 !important; }

/* =========================================================
   GARUDA99 RTP — CINEMATIC 3D UI V3
   Visual layer only. All data bindings and feature selectors remain intact.
   ========================================================= */
:root {
  --v3-bg: #120003;
  --v3-bg-soft: #1d0005;
  --v3-surface: rgba(45, 0, 8, 0.78);
  --v3-surface-strong: #2b0008;
  --v3-line: rgba(255, 255, 255, 0.14);
  --v3-line-hot: rgba(255, 22, 52, 0.62);
  --v3-red: #ff102b;
  --v3-red-deep: #b9001d;
  --v3-white: #fffafb;
  --v3-muted: #d9bfc4;
  --v3-shadow: 0 28px 80px rgba(8, 0, 2, 0.48);
}

html,
body { background: var(--v3-bg); }

#publicView {
  overflow: clip;
  color: var(--v3-white);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 16, 43, 0.19), transparent 28rem),
    radial-gradient(circle at 86% 36%, rgba(185, 0, 29, 0.17), transparent 32rem),
    linear-gradient(180deg, #170004 0%, #0f0002 62%, #190004 100%);
}

#publicView main {
  display: flex;
  flex-direction: column;
}

#publicView .hero { order: 1; }
#publicView .provider-section { order: 2; }
#publicView .rtp-section { order: 3; }
#publicView .game-lab-section { order: 4; }
#publicView .info-section { order: 5; }
#publicView .service-section { order: 6; }
#publicView .contact-section { order: 7; }

#publicView .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(18, 0, 3, 0.76);
  box-shadow: 0 14px 42px rgba(8, 0, 2, 0.24);
  backdrop-filter: blur(24px) saturate(1.25);
}

#publicView .nav-row { min-height: 84px; }
#publicView .desktop-nav { gap: 34px; }
#publicView .desktop-nav a { color: #f7e9ec; font-size: 12px; letter-spacing: .02em; }
#publicView .desktop-nav a::after {
  height: 3px;
  bottom: -12px;
  border-radius: 99px;
  background: var(--v3-red);
  box-shadow: 0 0 16px rgba(255, 16, 43, 0.78);
}

#publicView .brand {
  width: 184px;
  height: 54px;
  transform: translateZ(0);
}

#publicView .brand-fallback {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#publicView .nav-login,
#publicView .nav-register {
  min-width: 78px;
  border-radius: 999px;
  background: #fff;
}

#publicView .nav-register {
  color: #fff;
  border-color: var(--v3-red);
  background: linear-gradient(135deg, var(--v3-red), var(--v3-red-deep));
  box-shadow: 0 12px 28px rgba(255, 16, 43, 0.24), inset 0 1px 0 rgba(255,255,255,.30);
}

#publicView .official-mirror-notice {
  border: 0;
  background: linear-gradient(90deg, #870013, #e30023 48%, #870013);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.12);
}

#publicView .official-mirror-inner { min-height: 42px; }

#publicView .hero {
  min-height: 650px;
  display: grid;
  align-items: center;
  padding: 76px 0 88px;
  isolation: isolate;
  perspective: 1400px;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 78% 40%, rgba(255, 16, 43, 0.32), transparent 25rem),
    radial-gradient(circle at 6% 30%, rgba(119, 0, 18, 0.58), transparent 33rem),
    linear-gradient(145deg, #120003 8%, #260007 54%, #120003 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

#publicView .hero::before {
  width: 560px;
  height: 560px;
  top: -220px;
  right: 4%;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 90px rgba(255, 16, 43, 0.08) inset;
}

#publicView .hero::after {
  width: 480px;
  height: 480px;
  right: -220px;
  bottom: -260px;
  border-color: rgba(255, 16, 43, 0.20);
}

#publicView .hero-grid {
  grid-template-columns: minmax(0, .94fr) minmax(420px, .82fr);
  gap: clamp(54px, 8vw, 116px);
  transform-style: preserve-3d;
}

#publicView .hero-copy {
  position: relative;
  z-index: 5;
  transform: translateZ(46px);
}

#publicView .eyebrow {
  margin-bottom: 20px;
  padding: 10px 14px;
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

#publicView .hero h1 {
  max-width: 720px;
  font-size: clamp(54px, 6.9vw, 92px);
  letter-spacing: -.075em;
  line-height: .92;
  text-wrap: balance;
}

#publicView .hero h1 em {
  display: inline-block;
  color: var(--v3-red);
  text-shadow: 0 10px 44px rgba(255, 16, 43, 0.34);
  -webkit-text-stroke: 0;
}

#publicView .hero-text {
  max-width: 580px;
  margin-top: 28px;
  color: var(--v3-muted);
  font-size: 16px;
  line-height: 1.75;
}

#publicView .hero-actions { margin-top: 32px; }
#publicView .primary-cta,
#publicView .secondary-cta {
  min-height: 54px;
  padding-inline: 24px;
  border-radius: 999px;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

#publicView .primary-cta {
  color: #fff;
  border-color: var(--v3-red);
  background: linear-gradient(135deg, var(--v3-red), #be001e);
  box-shadow: 0 16px 36px rgba(255, 16, 43, 0.26), inset 0 1px 0 rgba(255,255,255,.3);
}

#publicView .secondary-cta { color: #760012; background: #fff; }
#publicView .primary-cta:hover,
#publicView .secondary-cta:hover { transform: translateY(-3px) scale(1.015); }

#publicView .trust-row {
  width: fit-content;
  margin-top: 38px;
  padding: 14px 0;
  border-block: 1px solid rgba(255,255,255,.10);
}

#publicView .trust-row b { font-size: 22px; }

#publicView .hero-visual {
  min-height: 460px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

#publicView .hero-visual::before,
#publicView .hero-visual::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: rotateX(68deg) rotateZ(-12deg);
}

#publicView .hero-visual::before {
  inset: 8% -2% 16% 2%;
  box-shadow: 0 0 80px rgba(255, 16, 43, 0.10), inset 0 0 70px rgba(255, 16, 43, 0.08);
  animation: v3Orbit 12s linear infinite;
}

#publicView .hero-visual::after {
  inset: 21% 11% 27% 14%;
  border-color: rgba(255, 16, 43, 0.34);
  animation: v3Orbit 8s linear infinite reverse;
}

#publicView .visual-card-main {
  top: 50px;
  right: 34px;
  left: 4px;
  min-height: 340px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 4%, rgba(255,16,43,.27), transparent 38%),
    linear-gradient(145deg, rgba(76,0,13,.96), rgba(28,0,6,.96));
  box-shadow: 34px 42px 90px rgba(7,0,2,.50), -16px -12px 50px rgba(255,16,43,.08);
  transform: rotateY(-13deg) rotateX(7deg) rotateZ(1.5deg) translateZ(54px);
  transform-style: preserve-3d;
  animation: v3DeckFloat 6s ease-in-out infinite;
}

#publicView .visual-card-main::before {
  background: linear-gradient(120deg, transparent 28%, rgba(255,255,255,.22) 47%, transparent 65%);
}

#publicView .visual-live-fallback {
  min-height: 340px;
  display: grid;
  align-content: center;
  padding: 42px;
  background: transparent;
  transform: translateZ(34px);
}

#publicView .visual-card-main strong {
  color: #fff;
  font-size: clamp(62px, 7vw, 86px);
  text-shadow: 0 12px 44px rgba(0,0,0,.32);
}

#publicView .visual-icon {
  background: linear-gradient(145deg, #ff334b, #d00020);
  box-shadow: 0 16px 38px rgba(255,16,43,.34), inset 0 1px 0 rgba(255,255,255,.32);
}

#publicView .online-pill { color: #13673e; background: #fff; }

#publicView .visual-card-float {
  right: -6px;
  bottom: 22px;
  min-width: 210px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 56px rgba(6,0,1,.40);
  transform: rotateY(-10deg) rotateX(5deg) rotateZ(-4deg) translateZ(100px);
  animation: v3FloatChip 5s ease-in-out infinite;
}

#publicView .visual-card-float span { color: #720011; }
#publicView .visual-card-float b { color: #d30021; }
#publicView .floating-spark { color: var(--v3-red); text-shadow: 0 0 22px rgba(255,16,43,.72); }

#publicView .provider-section {
  width: min(1180px, calc(100% - 40px));
  margin-top: -36px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 28px;
  background: rgba(38,0,7,.74);
  box-shadow: 0 30px 80px rgba(6,0,1,.34), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(22px);
}

#publicView .section-heading h2,
#publicView .game-lab-heading h2 { color: #fff; }
#publicView .section-kicker { color: #ff6d7f; }

#publicView .provider-tabs { grid-template-columns: repeat(4, minmax(0,1fr)); }
#publicView .provider-tab {
  min-height: 82px;
  border-color: rgba(255,255,255,.12);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(72,0,12,.92), rgba(31,0,6,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transform-style: preserve-3d;
}

#publicView .provider-tab:hover {
  border-color: rgba(255,16,43,.68);
  box-shadow: 0 18px 36px rgba(7,0,2,.32), 0 0 0 1px rgba(255,16,43,.18) inset;
  transform: perspective(800px) translateY(-5px) rotateX(3deg);
}

#publicView .provider-tab.is-active {
  border-color: var(--v3-red);
  background: linear-gradient(135deg, #ff102b, #a9001a);
  box-shadow: 0 18px 42px rgba(255,16,43,.24), inset 0 1px 0 rgba(255,255,255,.30);
}

#publicView .rtp-section {
  margin-top: 30px;
  padding: 48px 0 86px;
  border: 0;
  background: transparent;
}

#publicView .filter-card {
  position: sticky;
  z-index: 20;
  top: 98px;
  padding: 12px;
  border-color: rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(41,0,8,.82);
  box-shadow: 0 20px 54px rgba(7,0,2,.30);
  backdrop-filter: blur(22px);
}

#publicView .filter-card input {
  height: 52px;
  color: #3d0009;
  border: 0;
  border-radius: 13px;
  background: #fff;
  font-size: 14px;
}

#publicView .refresh-button {
  min-height: 52px;
  color: #fff;
  border: 1px solid var(--v3-red);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--v3-red), var(--v3-red-deep));
}

#publicView .result-meta { padding: 22px 4px 16px; color: var(--v3-muted); font-size: 12px; }
#publicView .result-meta b { color: #fff; }

#publicView .game-grid { gap: 18px; perspective: 1200px; }
#publicView .game-card {
  border-color: rgba(255,255,255,.12);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(59,0,10,.98), rgba(25,0,5,.98));
  box-shadow: 0 20px 48px rgba(6,0,1,.28), inset 0 1px 0 rgba(255,255,255,.06);
  transform: perspective(900px) rotateX(.01deg) translateZ(0);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

#publicView .game-card:hover {
  border-color: rgba(255,16,43,.74);
  box-shadow: 0 32px 70px rgba(6,0,1,.46), 0 0 34px rgba(255,16,43,.10);
  transform: perspective(900px) translateY(-10px) rotateX(4deg) rotateY(-2deg) scale(1.012);
}

#publicView .game-cover { background: #240006; }
#publicView .game-cover::after { background: linear-gradient(transparent, rgba(17,0,3,.88)); }
#publicView .game-body { position: relative; z-index: 2; padding: 18px; transform: translateZ(22px); }
#publicView .game-name { color: #fff; font-size: 14px; }
#publicView .game-info-block { border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.055); }
#publicView .pattern-chip { border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.06); }
#publicView .game-play {
  color: #b0001b;
  border: 1px solid rgba(255,255,255,.82);
  background: #fff;
  box-shadow: 0 14px 30px rgba(8,0,2,.32);
  transform: translateZ(40px);
}

#publicView .provider-badge { color: #760012; }

#publicView .pager button {
  min-height: 48px;
  border-radius: 999px;
}

#publicView .game-lab-section { padding: 76px 0 54px; }
#publicView .game-lab-grid { perspective: 1200px; }
#publicView .game-lab-card {
  min-height: 310px;
  border-color: rgba(255,255,255,.13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 5%, rgba(255,16,43,.18), transparent 42%),
    linear-gradient(145deg, #340009, #190004);
  box-shadow: 0 24px 56px rgba(6,0,1,.30), inset 0 1px 0 rgba(255,255,255,.06);
  transform: perspective(900px) rotateX(1deg);
  transform-style: preserve-3d;
}

#publicView .game-lab-card:hover {
  border-color: rgba(255,16,43,.66);
  box-shadow: 0 34px 74px rgba(6,0,1,.45), 0 0 38px rgba(255,16,43,.09);
  transform: perspective(900px) translateY(-10px) rotateX(4deg) rotateY(-2deg);
}

#publicView .game-lab-number,
#publicView .game-lab-arrow { transform: translateZ(34px); }
#publicView .game-lab-copy { transform: translateZ(24px); }
#publicView .game-lab-copy strong { color: #fff; }

#publicView .info-section { padding-block: 68px; }
#publicView .info-card {
  min-height: 170px;
  border-color: rgba(255,255,255,.12);
  border-radius: 24px;
  background: linear-gradient(145deg, #360009, #1c0005);
  box-shadow: 0 22px 52px rgba(6,0,1,.27), inset 0 1px 0 rgba(255,255,255,.06);
}

#publicView .info-card-accent {
  background: linear-gradient(140deg, #ff102b, #a9001a);
  box-shadow: 0 26px 60px rgba(255,16,43,.20), inset 0 1px 0 rgba(255,255,255,.28);
}

#publicView .service-section {
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 78% 45%, rgba(255,255,255,.10), transparent 25rem),
    linear-gradient(135deg, #df0022, #720011);
  background-size: 40px 40px, 40px 40px, auto, auto;
}

#publicView .service-list article {
  border-color: rgba(255,255,255,.18);
  background: rgba(32,0,6,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}

#publicView .contact-section { padding-block: 72px; }
#publicView .contact-card {
  border-color: rgba(255,255,255,.13);
  background: linear-gradient(135deg, rgba(63,0,11,.88), rgba(25,0,5,.94));
  box-shadow: var(--v3-shadow), inset 0 1px 0 rgba(255,255,255,.06);
}

#publicView .contact-actions a {
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(7,0,2,.22);
}

#publicView .site-footer { background: #0b0002; }

#publicView .withdraw-toast {
  border: 1px solid rgba(255,16,43,.20) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 26px 70px rgba(7,0,2,.44) !important;
}

@keyframes v3DeckFloat {
  0%, 100% { transform: rotateY(-13deg) rotateX(7deg) rotateZ(1.5deg) translate3d(0, 0, 54px); }
  50% { transform: rotateY(-10deg) rotateX(4deg) rotateZ(.4deg) translate3d(0, -13px, 72px); }
}

@keyframes v3FloatChip {
  0%, 100% { transform: rotateY(-10deg) rotateX(5deg) rotateZ(-4deg) translate3d(0, 0, 100px); }
  50% { transform: rotateY(-7deg) rotateX(3deg) rotateZ(-2deg) translate3d(0, -10px, 118px); }
}

@keyframes v3Orbit {
  from { transform: rotateX(68deg) rotateZ(-12deg); }
  to { transform: rotateX(68deg) rotateZ(348deg); }
}

@media (max-width: 980px) {
  #publicView .hero { min-height: auto; padding-block: 72px; }
  #publicView .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  #publicView .hero-copy { transform: none; }
  #publicView .hero-visual { width: min(620px, 100%); margin-inline: auto; }
  #publicView .provider-section { margin-top: 0; }
}

@media (max-width: 720px) {
  #publicView .site-header { position: relative; }
  #publicView .nav-row { min-height: 72px; }
  #publicView .hero { padding: 50px 0 62px; }
  #publicView .hero h1 { font-size: clamp(48px, 15vw, 72px); }
  #publicView .hero-text { font-size: 15px; }
  #publicView .hero-visual { min-height: 360px; }
  #publicView .visual-card-main { right: 18px; left: 10px; min-height: 280px; border-radius: 26px; }
  #publicView .visual-live-fallback { min-height: 280px; padding: 28px; }
  #publicView .visual-card-main strong { font-size: 58px; }
  #publicView .visual-card-float { right: 3px; bottom: 12px; min-width: 170px; padding: 15px 18px; }
  #publicView .provider-section { width: min(100% - 20px, 680px); padding: 22px 16px; border-radius: 22px; }
  #publicView .filter-card { top: 10px; }
  #publicView .game-card:hover,
  #publicView .game-lab-card:hover { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  #publicView .visual-card-main,
  #publicView .visual-card-float,
  #publicView .hero-visual::before,
  #publicView .hero-visual::after { animation: none !important; }
}

/* =========================================================
   GARUDA99 RTP — MOBILE CLARITY & ORIGINAL FLOW V4
   Restores the original section rhythm and mobile provider grid.
   ========================================================= */

#publicView {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Keep the same sequence used before the V3 visual reorder. */
#publicView .hero { order: 1; }
#publicView .game-lab-section { order: 2; }
#publicView .provider-section { order: 3; }
#publicView .rtp-section { order: 4; }
#publicView .info-section { order: 5; }
#publicView .service-section { order: 6; }
#publicView .contact-section { order: 7; }

/* Swipe remains in the DOM only so legacy JS hooks stay safe. */
#publicView .swipe-card,
#publicView #swipeModal { display: none !important; }

#publicView .game-lab-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 100%;
}

#publicView .game-lab-card { min-height: 270px; }

/* Provider data order is untouched; visual order follows DOM row by row. */
#publicView .provider-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#publicView .provider-tab { order: initial; min-width: 0; }
#publicView .provider-tab b { overflow-wrap: anywhere; }

@media (max-width: 720px) {
  #publicView {
    -webkit-font-smoothing: auto;
    text-rendering: optimizeLegibility;
  }

  /* Remove sub-pixel 3D transforms from text-bearing mobile cards. */
  #publicView :is(.hero-copy, .visual-card-main, .visual-card-float, .provider-tab, .game-card, .game-lab-card, .game-body, .game-lab-copy) {
    transform: none !important;
    backface-visibility: visible;
  }

  #publicView .visual-card-main,
  #publicView .visual-card-float,
  #publicView .hero-visual::before,
  #publicView .hero-visual::after {
    animation: none !important;
  }

  #publicView .nav-row { gap: 10px; }
  #publicView .brand { width: min(150px, 42vw); height: 50px; }
  #publicView .brand-fallback { padding-inline: 9px; font-size: 11px; line-height: 1.35; }
  #publicView .nav-actions { gap: 7px; }
  #publicView .nav-login,
  #publicView .nav-register {
    min-width: 58px;
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1;
  }

  #publicView .official-mirror-inner {
    min-height: 46px;
    padding: 7px 9px;
    font-size: 11px;
    line-height: 1.45;
  }

  #publicView .official-mirror-title,
  #publicView .official-mirror-links a { font-size: 11px; }

  #publicView .hero { padding: 46px 0 54px; }
  #publicView .hero h1 {
    max-width: 100%;
    font-size: clamp(45px, 13.2vw, 62px);
    line-height: .98;
    letter-spacing: -.055em;
  }

  #publicView .hero h1 em { text-shadow: none; }
  #publicView .eyebrow { font-size: 12px; line-height: 1.35; }
  #publicView .hero-text { color: #f0dce0; font-size: 16px; line-height: 1.65; }
  #publicView .primary-cta,
  #publicView .secondary-cta { min-height: 48px; padding-inline: 17px; font-size: 13px; }
  #publicView .trust-row { width: 100%; }
  #publicView .trust-row b { font-size: 20px; }
  #publicView .trust-row small { font-size: 12px; line-height: 1.3; }

  #publicView .game-lab-section {
    width: min(100% - 20px, 680px);
    padding: 48px 0 30px;
  }

  #publicView .game-lab-heading { gap: 14px; }
  #publicView .game-lab-heading h2 { font-size: 31px; line-height: 1.08; letter-spacing: -.045em; }
  #publicView .game-lab-heading > p { color: #ead2d7; font-size: 15px; line-height: 1.65; }
  #publicView .section-kicker { font-size: 12px; line-height: 1.3; }
  #publicView .game-lab-grid { grid-template-columns: 1fr; gap: 12px; }
  #publicView .game-lab-card { min-height: 235px; border-radius: 22px; }
  #publicView .game-lab-copy small { font-size: 11px; }
  #publicView .game-lab-copy strong { font-size: 20px; line-height: 1.2; }
  #publicView .game-lab-copy em { font-size: 13px; line-height: 1.45; }
  #publicView .game-lab-number { font-size: 12px; }

  #publicView .provider-section {
    width: min(100% - 20px, 680px);
    margin-top: 0;
    padding: 22px 14px;
  }

  #publicView .provider-section .section-heading h2 { font-size: 27px; line-height: 1.15; }
  #publicView .provider-section .text-button { font-size: 12px; }
  #publicView .provider-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  #publicView .provider-tab {
    min-height: 82px;
    padding: 12px 10px;
    gap: 9px;
    border-radius: 14px;
  }

  #publicView .provider-logo { flex: 0 0 42px; width: 42px; height: 42px; }
  #publicView .provider-tab b { font-size: 14px; line-height: 1.25; }
  #publicView .provider-tab small { margin-top: 3px; font-size: 12px; line-height: 1.25; }

  #publicView .rtp-section { margin-top: 0; padding: 26px 0 60px; }
  #publicView .filter-card { position: relative; top: auto; backdrop-filter: none; }
  #publicView .filter-card input { font-size: 16px; }
  #publicView .refresh-button { min-width: 48px; font-size: 13px; }
  #publicView .result-meta { font-size: 13px; line-height: 1.4; }
  #publicView .game-grid { gap: 10px; }
  #publicView .game-card { border-radius: 16px; }
  #publicView .game-name { font-size: 14px; line-height: 1.38; }
  #publicView .game-body small,
  #publicView .game-info-block small { font-size: 12px; line-height: 1.35; }
  #publicView .pattern-chip { min-height: 31px; padding: 5px 4px; font-size: 11px; line-height: 1.25; }
  #publicView .game-play { font-size: 14px; }

  #publicView .info-section,
  #publicView .contact-section { width: min(100% - 20px, 680px); }
  #publicView .section-heading h2 { font-size: 28px; line-height: 1.15; }
  #publicView .info-card small,
  #publicView .service-list small,
  #publicView .contact-card p,
  #publicView .site-footer { font-size: 13px; line-height: 1.5; }

  #publicView .withdraw-toast b { font-size: 13px; line-height: 1.35; }
  #publicView .withdraw-toast small { font-size: 11px; line-height: 1.4; }
}

@media (max-width: 390px) {
  #publicView .brand { width: min(134px, 39vw); }
  #publicView .nav-login,
  #publicView .nav-register { min-width: 54px; padding-inline: 9px; font-size: 12px; }
  #publicView .hero h1 { font-size: clamp(42px, 13vw, 52px); }
  #publicView .provider-tab { padding-inline: 8px; }
}

/* =========================================================
   GARUDA99 RTP — WHITE PATTERN CHIPS & SHARP MOBILE V5
   ========================================================= */

/* Every pattern value uses a solid white rectangle for clear red text. */
#publicView .pattern-chip {
  color: #c90020 !important;
  border-color: #fff !important;
  background: #fff !important;
  box-shadow: 0 3px 10px rgba(25, 0, 4, .16) !important;
  filter: none !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

@media (max-width: 720px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  #publicView {
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: auto;
  }

  /* Avoid compositing text on transformed or blurred layers. */
  #publicView .game-grid {
    perspective: none !important;
    transform-style: flat !important;
  }

  #publicView .game-card {
    animation: none !important;
    transition: border-color .14s ease, background-color .14s ease !important;
    transform: none !important;
    transform-style: flat !important;
    backface-visibility: visible !important;
    will-change: auto !important;
  }

  #publicView .game-card:hover { transform: none !important; }

  #publicView .game-cover :is(img, video),
  #publicView .game-card:hover .game-cover :is(img, video) {
    filter: none !important;
    image-rendering: auto;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  #publicView :is(.game-body, .game-title-row, .game-info-grid, .game-info-block, .pattern-list, .rtp-area, .rtp-value-row, .win-sim-trigger) {
    filter: none !important;
    text-shadow: none !important;
    transform: none !important;
    backface-visibility: visible !important;
    will-change: auto !important;
  }

  #publicView .game-body { padding: 12px; }
  #publicView .game-title-row { min-height: 57px; gap: 7px; }

  #publicView .game-name {
    font-size: 15px !important;
    font-weight: 800;
    line-height: 1.38 !important;
    letter-spacing: -.015em;
  }

  #publicView .rtp-level {
    padding: 5px 7px;
    font-size: 11px !important;
    line-height: 1.1;
  }

  #publicView .game-info-grid { gap: 7px; }

  #publicView .game-info-block {
    min-height: 54px;
    padding: 10px;
  }

  #publicView .game-info-block small {
    color: #ffe7eb !important;
    font-size: 11px !important;
    font-weight: 900;
    line-height: 1.3 !important;
    letter-spacing: .055em;
  }

  #publicView .game-info-block b {
    margin-top: 6px;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.42 !important;
  }

  #publicView .pattern-list { margin-top: 7px; gap: 5px; }

  #publicView .pattern-chip {
    min-height: 34px !important;
    padding: 6px 4px !important;
    color: #c90020 !important;
    border-radius: 6px;
    font-size: 12px !important;
    font-weight: 900;
    line-height: 1.25 !important;
  }

  #publicView .provider-badge {
    padding: 5px 7px;
    font-size: 11px !important;
    backdrop-filter: none !important;
  }

  #publicView .game-play { font-size: 15px !important; }

  #publicView .rtp-area {
    margin-top: 10px;
    padding: 10px;
    backdrop-filter: none !important;
  }

  #publicView .rtp-value {
    color: #ff2843 !important;
    background: none !important;
    font-size: 24px !important;
    filter: none !important;
    text-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
  }

  #publicView .rtp-value-row small {
    color: #6d4a50 !important;
    font-size: 10px !important;
    font-weight: 900;
  }

  #publicView .rtp-bar i::after { animation: none !important; }

  #publicView .win-sim-trigger {
    min-height: 40px;
    font-size: 12px !important;
    font-weight: 800;
  }
}

@media (max-width: 350px) {
  #publicView .game-grid { grid-template-columns: 1fr; }
  #publicView .game-cover { aspect-ratio: 16 / 10; }
}

/* GARUDA99 RTP — NO SCROLL DARKENING V6
   Sections are fully visible immediately; no view-timeline fade remains. */
#publicView :is(.provider-section, .rtp-section, .game-lab-section, .info-section, .service-section, .contact-section) {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  animation: none !important;
  animation-timeline: none !important;
}

/* GARUDA99 RTP — HERO APP ICON SLOT V7 */
#publicView .hero-app-icon {
  display: inline-grid;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .58);
  background: #fff !important;
  place-items: center;
}

#publicView .hero-app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}

#publicView .hero-app-icon-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  color: #c90020;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  place-items: center;
}

#publicView .hero-app-icon-fallback[hidden] { display: none; }

/* =========================================================
   GARUDA99 RTP — GAME LAB TEXT CONTRAST V11
   Keeps dark text on every white Battle and Matcher surface.
   ========================================================= */

#publicView :is(.battle-dialog, .matcher-dialog) {
  --lab-text-dark: #3f0008;
  --lab-text: #5d101b;
  --lab-text-muted: #7a3a43;
  --lab-text-red: #c90020;
}

#publicView :is(.battle-dialog, .matcher-dialog) :is(select, option) {
  color: var(--lab-text-dark) !important;
  background-color: #fff !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#publicView :is(.battle-dialog, .matcher-dialog) .lab-dialog-heading h2 {
  color: #fff !important;
  text-shadow: none !important;
}

#publicView :is(.battle-dialog, .matcher-dialog) .lab-dialog-heading > span,
#publicView :is(.battle-dialog, .matcher-dialog) .lab-dialog-heading p,
#publicView :is(.battle-dialog, .matcher-dialog) :is(.battle-selectors label > span, .matcher-form > label > span, .matcher-form legend) {
  color: #ffe3e7 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#publicView .battle-dialog .battle-result-message {
  color: var(--lab-text) !important;
  border-color: #f2aab4 !important;
  background: #fff7f8 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#publicView .battle-dialog .battle-result-message b { color: var(--lab-text-dark) !important; }
#publicView .battle-dialog .battle-runner b { color: var(--lab-text-dark) !important; text-shadow: none !important; }
#publicView .battle-dialog .battle-clash { color: #fff !important; }

#publicView .battle-dialog .battle-game {
  color: var(--lab-text-dark) !important;
  background: #fff !important;
}

#publicView .battle-dialog .battle-game-head small {
  color: var(--lab-text-red) !important;
  opacity: 1 !important;
}

#publicView .battle-dialog .battle-game-head h3 {
  color: var(--lab-text-dark) !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#publicView .battle-dialog .battle-stats span {
  color: var(--lab-text-dark) !important;
  border: 1px solid #f8dde1;
  background: #fff3f5 !important;
}

#publicView .battle-dialog .battle-stats small {
  color: var(--lab-text-muted) !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#publicView .battle-dialog .battle-stats b {
  color: var(--lab-text-red) !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#publicView .battle-dialog .battle-versus-result { color: #ff2940 !important; }

#publicView .matcher-dialog .matcher-options span {
  color: var(--lab-text-dark) !important;
  border-color: #efd5d9 !important;
  background: #fff !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#publicView .matcher-dialog .matcher-options input:checked + span {
  color: var(--lab-text-dark) !important;
  border-color: #ef1731 !important;
  background: #fff0f2 !important;
  box-shadow: inset 0 0 0 1px #ef1731 !important;
}

#publicView .matcher-dialog .matcher-options input:focus-visible + span {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 2px;
}

#publicView .matcher-dialog .matcher-options b {
  color: var(--lab-text-red) !important;
  opacity: 1 !important;
}

#publicView .matcher-dialog .matcher-options small {
  color: var(--lab-text-muted) !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#publicView .matcher-dialog .matcher-result-card {
  color: var(--lab-text-dark) !important;
  background: #fff !important;
}

#publicView .matcher-dialog .matcher-result-copy > small {
  color: var(--lab-text-red) !important;
  opacity: 1 !important;
}

#publicView .matcher-dialog .matcher-result-copy h3 {
  color: var(--lab-text-dark) !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#publicView .matcher-dialog .matcher-score span {
  color: var(--lab-text-muted) !important;
  opacity: 1 !important;
}

#publicView .matcher-dialog .matcher-score b { color: var(--lab-text-red) !important; }

#publicView :is(.battle-dialog, .matcher-dialog) .lab-open-game {
  color: #a90019 !important;
  background: #fff4f5 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#publicView :is(.battle-dialog, .matcher-dialog) .lab-open-game:hover {
  color: #fff !important;
  background: #c90020 !important;
}

#publicView :is(.battle-dialog, .matcher-dialog) .lab-disclaimer {
  color: #5c2630 !important;
  border-color: #e7cdd1 !important;
  background: #eadde0 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

@media (max-width: 720px) {
  #publicView :is(.battle-dialog, .matcher-dialog) .lab-dialog-heading > span,
  #publicView :is(.battle-dialog, .matcher-dialog) :is(.battle-selectors label > span, .matcher-form > label > span, .matcher-form legend) {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  #publicView :is(.battle-dialog, .matcher-dialog) .lab-dialog-heading p,
  #publicView :is(.battle-dialog, .matcher-dialog) select,
  #publicView :is(.battle-dialog, .matcher-dialog) .lab-primary-button {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  #publicView .battle-dialog .battle-result-message,
  #publicView .battle-dialog .battle-runner b,
  #publicView :is(.battle-dialog, .matcher-dialog) .lab-open-game {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  #publicView .battle-dialog .battle-game-head small,
  #publicView .matcher-dialog .matcher-result-copy > small {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  #publicView .battle-dialog .battle-game-head h3,
  #publicView .matcher-dialog .matcher-result-copy h3 {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  #publicView .battle-dialog .battle-stats small {
    font-size: 9px !important;
    line-height: 1.3 !important;
  }

  #publicView .battle-dialog .battle-stats b,
  #publicView .matcher-dialog .matcher-options b {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  #publicView .matcher-dialog .matcher-options small,
  #publicView .matcher-dialog .matcher-score span,
  #publicView :is(.battle-dialog, .matcher-dialog) .lab-disclaimer {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  #publicView .matcher-dialog .matcher-score b { font-size: 14px !important; }
}
