/* Shared touch targets, balances and a cabinet-first slot layout. */
.easyPlay [hidden],.easyPlay #audioOpen,.easyPlay #volumeButton,.easyPlay #soundDialog{display:none!important}
body.easyPlay .unifiedFundingActions #topup[hidden],body.easyPlay .unifiedFundingActions>[hidden]{display:none!important}
.easyPlay .unifiedFunding{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:6px 10px!important;padding:7px 10px!important;border-radius:10px!important;background:#101e2c!important;border-color:#867044!important}
.easyPlay .unifiedFunding>.moneyFigure{grid-area:1/1!important}.easyPlay .unifiedFunding>.creditMain{grid-area:1/2!important;min-width:0}
.easyPlay .unifiedFunding>.easyFundingActions{grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important}
.easyPlay #easyWalletConvert{min-height:44px;padding:10px 16px;margin-top:10px;border-radius:8px;background:#e7bd69;color:#211b12;font-weight:700}
.easyPlay .unifiedFunding>.loanFigure{display:none!important}
.easyPlay .unifiedFunding .creditMain{border-left:1px solid #a98c4b55;padding-left:12px}
.easyPlay .unifiedFunding .creditMain>strong{font-size:clamp(22px,4vw,30px)!important;line-height:1.1!important;color:#ffdf99!important;font-variant-numeric:tabular-nums}
.easyPlay .unifiedFunding .creditMain>small{font:10px/1.2 system-ui;color:#b7c4cf}
.easyPlay .unifiedFunding .moneyFigure>strong{font-size:clamp(15px,2.6vw,22px)!important}
.easyPlay .easyFundingActions>button{min-height:44px!important;font:700 14px/1.3 system-ui!important;border-radius:8px!important;padding:8px!important}
.easyPlay #easyLoan{background:#e7bd69!important;color:#211b12!important;border-color:#f8d895!important}
.easyPlay #easyRedeem{background:#283649!important;color:#f2ebdf!important;border-color:#71829a!important}
.easyPlay #easyExit{min-width:88px!important;min-height:44px!important;font:700 15px/1.2 system-ui!important;padding:10px 16px!important;color:#fff0da!important;background:#603323!important;border:1px solid #c7896b!important;border-radius:8px!important;white-space:nowrap}
.easyPlay.rakuenSlot:not(.pip):not(.local-pip-host){grid-template-rows:minmax(44px,max-content) max-content 42px minmax(0,1fr) minmax(48px,max-content) 18px!important}
.easyPlay.rakuenSlot:not(.pip)>.gamebar{grid-row:1!important;padding:3px 8px;min-height:44px}
.easyPlay.rakuenSlot .gamebar nav{display:flex;align-items:center;gap:6px;min-width:0}.easyPlay.rakuenSlot .gamebar nav button{min-height:40px}
.easyPlay.rakuenSlot .gamebar #options{min-width:52px;font-size:13px}
.easyPlay.rakuenSlot:not(.pip)>.walletbar{grid-row:2!important}
.easyPlay.rakuenSlot:not(.pip)>.mobile-counterbar{grid-row:3!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));align-items:center;gap:3px;background:#101c22;text-align:center;padding:3px 7px}
.easyPlay.rakuenSlot .mobile-counterbar span{display:block;font:10px system-ui;color:#b5c3c9}.easyPlay.rakuenSlot .mobile-counterbar b{font:700 17px system-ui;color:#c6eee7}
.easyPlay.rakuenSlot:not(.pip)>.dashboard{grid-row:4!important;padding:0!important;gap:0!important;grid-template-columns:minmax(0,1fr)!important}
.easyPlay.rakuenSlot:not(.pip)>.controlbar{grid-row:5!important}
.easyPlay.rakuenSlot:not(.pip)>.statusbar{grid-row:6!important}
.easyPlay.rakuenSlot:not(.data-open) .data-left,.easyPlay.rakuenSlot:not(.data-open) .data-right{display:none!important}
.easyPlay.rakuenSlot #fit{width:100%!important;height:100%!important;border:0!important;border-radius:0!important;padding:0!important}
.easyPlay.rakuenSlot .stage-label,.easyPlay.rakuenSlot .stage-caption{display:none!important}
.easyPlay.rakuenSlot.data-open .dashboard{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;overflow:auto!important;padding:12px!important;align-content:start}
.easyPlay.rakuenSlot.data-open #fit{display:none!important}.easyPlay.rakuenSlot.data-open .data-left,.easyPlay.rakuenSlot.data-open .data-right{display:flex!important;height:auto;overflow:visible;min-width:0}
.easyPlay.rakuenSlot.pip>.mobile-counterbar{display:none!important}
.easyPlay.rakuenSlot.pip>.dashboard{padding:0!important;grid-template-columns:minmax(0,1fr)!important}
.easyPlay.rakuenSlot.pip .data-left,.easyPlay.rakuenSlot.pip .data-right{display:none!important}
.easyPlay #seatNav{height:48px!important}.easyPlay #seatNav #easyCloseAll{display:block;min-height:40px;font:600 12px system-ui;white-space:nowrap;background:#563529;color:#ffe6bd;border-color:#bc8b63}
body.easyPlay:has(#seatNav) #seats{height:calc(100% - 48px)!important}
.easyAudioNote{font-size:12px;color:#bfcbd6}
@media(max-width:620px){.easyPlay.rakuenSlot .gamebar .brand,.easyPlay.rakuenSlot #playState,.easyPlay.rakuenSlot #exportJSON,.easyPlay.rakuenSlot #fullTop{display:none!important}.easyPlay.rakuenSlot .gamebar nav{width:100%;justify-content:flex-end}.easyPlay.rakuenSlot #easyExit{margin-right:auto}.easyPlay.rakuenSlot.data-open .dashboard{grid-template-columns:minmax(0,1fr)!important}.easyPlay #seatNav{height:88px!important;flex-wrap:wrap!important;align-content:center!important}.easyPlay #seatNav #tabs{flex-basis:calc(100% - 62px)!important}.easyPlay #easyCloseAll{margin-left:auto}body.easyPlay:has(#seatNav) #seats{height:calc(100% - 88px)!important}}
@media(max-height:460px){.easyPlay.rakuenSlot:not(.pip):not(.local-pip-host){grid-template-rows:44px max-content 32px minmax(60px,1fr) 44px 0!important}.easyPlay.rakuenSlot>.statusbar{display:none!important}.easyPlay .unifiedFunding .creditMain>strong{font-size:20px!important}.easyPlay .easyFundingActions>button{min-height:36px!important}}
/* One exchange dialog for both game types, with server quoted totals. */
.easyCredit{box-sizing:border-box;width:min(540px,calc(100vw - 20px));max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:22px;border:1px solid #b79456;border-radius:16px;background:#10202e;color:#f5efdf;font:14px/1.5 system-ui;overflow:auto;box-shadow:0 24px 90px #0009}
.easyCredit::backdrop{background:#000b}.easyCredit *{box-sizing:border-box}.easyCredit [hidden]{display:none!important}
.easyCredit header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.easyCredit header small{letter-spacing:2px;color:#d8b575;font-size:10px}.easyCredit h2{font-size:23px;margin:2px 0}.easyCredit p{margin:10px 0}.easyCredit p:empty{display:none}
.easyCredit button{min-height:44px;padding:9px 12px;border:1px solid #546c80;border-radius:8px;background:#243849;color:inherit;font:600 14px/1.3 system-ui;cursor:pointer}.easyCredit button:disabled{opacity:.55;cursor:default}.easyCredit button:focus-visible,.easyCredit input:focus-visible{outline:3px solid #8ee9e9;outline-offset:2px}
.easyCredit [data-close]{min-width:44px;font-size:22px}.easyCredit [data-description]{font-size:13px;color:#b8cbd7}
.easyWallet{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#071621;border-radius:9px;margin-block:14px}.easyWallet span{color:#b8c7d1}.easyWallet strong{font-size:21px;overflow-wrap:anywhere}
.easyCredit nav{display:flex;gap:6px;margin-block:14px}.easyCredit nav button{flex:1}.easyCredit [aria-pressed=true]{background:#665132;border-color:#dfb765;color:#fff0cd}
.easyAsset{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid #7991a333}.easyAsset>div{min-width:0}.easyAsset>div:last-child{text-align:right}.easyAsset b,.easyAsset strong,.easyAsset span,.easyAsset small{display:block}.easyAsset b{overflow-wrap:anywhere}.easyAsset strong{font-size:22px;color:#ffdda0;font-variant-numeric:tabular-nums}.easyAsset small,.easyAsset span{font-size:12px;color:#b4cbd5}.easyAsset.hasError span{color:#ffc2a5}
.easyPresets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:16px 0 12px}.easyPresets button{padding:10px 5px}.easyPresets b,.easyPresets small{display:block}.easyPresets b{font-size:15px}.easyPresets small{font-size:10px;font-weight:400;margin-top:4px}
.easyCredit label{display:block;font-size:12px}.easyCredit input{width:100%;max-width:none;margin-top:5px;padding:10px 12px;background:#071621;color:#fff;border:1px solid #6c8598;border-radius:8px;font:600 20px system-ui;min-height:44px}.easyCredit details{margin-top:12px;font-size:12px;color:#bbcbd5}.easyCredit summary{cursor:pointer;min-height:32px}.easyCredit details button{font-size:12px}
.easyQuote{padding:16px 0;display:grid;grid-template-columns:1fr auto;gap:4px 12px}.easyQuote>span{align-self:center}.easyQuote>strong{font-size:26px;color:#f8d28a;text-align:right;overflow-wrap:anywhere}.easyQuote>small{grid-column:1/-1;text-align:right;color:#b8c7d1}
.easyCredit [data-state]{color:#b6cbd8;font-size:12px}.easyCredit [data-error]{color:#ffc2a5}.easyCredit [data-receipt]{color:#9becbe}.easyCredit .easyPrimary{width:100%;min-height:50px;background:#e7bd69;border-color:#f6d38e;color:#201a10;font-size:16px}.easySecondary{display:flex;gap:8px;margin-top:10px}.easySecondary button{flex:1;font-size:12px;background:transparent}
@media(max-width:420px){.easyCredit{padding:16px}.easyCredit h2{font-size:21px}.easyPresets{grid-template-columns:repeat(2,minmax(0,1fr))}.easyQuote>strong{font-size:23px}}
.easyCredit .easyPrimary{white-space:normal;overflow-wrap:anywhere}

/* UI-LANGUAGE2: detail panels own their natural height at every viewport size. */
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 grid-template-rows:none!important;grid-auto-rows:max-content!important;
 align-content:start!important;align-items:start!important;gap:12px!important;
 min-height:0!important;min-width:0!important;overflow-x:hidden!important;overflow-y:auto!important;
 padding:12px!important;overscroll-behavior:contain;touch-action:pan-y;scroll-padding-block:12px;
}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData>.data-left,
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData>.data-right{
 display:block!important;position:static!important;width:100%!important;height:auto!important;
 min-height:0!important;max-height:none!important;overflow:visible!important;contain:none!important;
}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .panel{
 display:block!important;position:static!important;flex:none!important;box-sizing:border-box;
 width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
 overflow:visible!important;contain:none!important;padding:12px!important;margin:0 0 12px!important;
}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .panel-title,
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .panel-foot{flex-wrap:wrap;line-height:1.5;letter-spacing:0}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .panel-title>*{min-width:0;overflow-wrap:anywhere}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .start-display{flex:none!important;min-height:54px!important;margin-block:10px}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .total-counter{margin-block:10px}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .start-display .led{height:54px!important}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .bonus-counters .led{height:43px!important}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .total-counter .led{height:34px!important}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .daily-labels,
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .daily-row{display:grid!important;grid-template-columns:minmax(32px,.8fr) minmax(0,.9fr) minmax(0,.9fr) minmax(0,1.4fr);gap:5px;min-height:26px}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData #dailyRows{display:block!important}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .daily-row b{font-size:clamp(11px,2.8vw,18px);white-space:normal;overflow-wrap:anywhere}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .counter-note{display:block!important;line-height:1.5;margin-top:8px;overflow-wrap:anywhere}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .run-bars{height:150px!important;min-height:0!important;flex:none!important;margin:10px 0 6px;gap:5px}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .run-bar{display:grid!important;grid-template-rows:minmax(0,1fr) auto auto;height:150px!important;min-height:0!important}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .run-bar svg{height:100%!important;min-height:0!important}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .run-bar b,
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .run-bar small{line-height:1.4;white-space:normal;overflow-wrap:anywhere}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .net-graph{height:180px!important;min-height:0!important;flex:none!important;padding-block:8px}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .net-graph svg{height:100%!important;min-height:0!important}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .return-value{font-size:clamp(26px,5vw,39px);overflow-wrap:anywhere}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .return-metrics>div{min-width:0}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .return-metrics b{white-space:normal;overflow-wrap:anywhere}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData #bonusHistory{max-height:none!important;overflow:visible!important}
body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData .history-row>*{min-width:0;overflow-wrap:anywhere}
@media(max-width:900px){body.easyPlay.rakuenSlot.data-open:not(.pip) #dashboardData{grid-template-columns:minmax(0,1fr)!important}}
/* Keep legacy handler anchors present, but remove these actions from settings. */
dialog[data-unified-settings] #audioCapture,dialog[data-unified-settings] #backupInside,
dialog[data-unified-settings] [data-rakuen-removed-action]{display:none!important}


/* RAKUEN-BOTTOM-FILL1: the host reserves the navigation's actual height once.
   Legacy rules use 36px for the nav but subtract 88px from the seat on phones.
   Keep both rows in normal flow; only the existing game iframe grows. */
body.easyPlay:has(> #seatNav):has(> #seats){
 display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:max-content minmax(0,1fr)!important;
 gap:0!important;
 height:100vh!important;height:100dvh!important;
 min-height:0!important;
 margin:0!important;padding:0!important;
 overflow:hidden!important;
}
body.easyPlay:has(> #seatNav):has(> #seats)>#seatNav{
 grid-area:1/1!important;
 min-width:0!important;
 margin:0!important;
}
body.easyPlay:has(> #seatNav):has(> #seats)>#seats{
 grid-area:2/1!important;
 height:100%!important;
 min-height:0!important;min-width:0!important;
 width:100%!important;
 align-self:stretch!important;
 margin:0!important;
}

/* RAKUEN_SLOT_COUNTER_UI1_BEGIN */
/* Keep the existing counters and their existing server updates. */
body.easyPlay.rakuenSlot:not(.pip):not(.local-pip-host) .gamebar #dataToggle:not([hidden]) {
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  flex:none;
  white-space:nowrap;
}
@media(min-width:1000px) {
  body.easyPlay.rakuenSlot:not(.pip):not(.local-pip-host):not(.data-open)>.dashboard {
    display:grid!important;
    grid-template-columns:minmax(220px,.82fr) minmax(0,1.9fr) minmax(220px,.82fr)!important;
    gap:8px!important;
    padding:6px 8px!important;
    overflow:hidden;
  }
  body.easyPlay.rakuenSlot:not(.pip):not(.local-pip-host):not(.data-open)>.dashboard>.data-left,
  body.easyPlay.rakuenSlot:not(.pip):not(.local-pip-host):not(.data-open)>.dashboard>.data-right {
    display:flex!important;
    min-width:0;
    min-height:0;
    height:100%;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }
  body.easyPlay.rakuenSlot:not(.pip):not(.local-pip-host):not(.data-open)>.dashboard>.data-left>*,
  body.easyPlay.rakuenSlot:not(.pip):not(.local-pip-host):not(.data-open)>.dashboard>.data-right>* {
    flex-shrink:0;
  }
}
/* RAKUEN_SLOT_COUNTER_UI1_END */
