/* SHOCKER v262: exact original static cascade, in document order. */
/* Release dependencies: "styles/imperial-dialog.css" "styles/account.css" "styles/account-codes-v216.css" "styles/player-hub-v226.css" "styles/beta-missions-v246.css" "styles/riana-beta-effects-v248.css" "styles/credits-support-v250.css" "styles/replays-v226.css" "styles/login-event-v228.css" "styles/startup-screen-visibility.css" "styles/game-core.css" "styles/large-battle-standing-art.css" "styles/player-disposal-below-hand-fix.css" "styles/matching-screen.css" "styles/scrollable-resizable-chain-log.css" "styles/log-overlay-and-keyboard.css" "styles/character-ability-cinematic.css" "styles/repeat-shortcuts-and-log-button.css" "styles/card-motion-and-foley.css" "styles/halloween-shop.css" "styles/rank-result-v212.css" "styles/demo-access-v213.css" "styles/loading.css" "styles/background-isolation.css" "styles/background-replacement.css" "styles/imperial-transition.css" "styles/grand-assembly-start.css" "styles/audio.css" "styles/character-awaken-card-stack.css" "styles/character-fix.css" "styles/direct-actions.css" "styles/field-card-side-actions.css" "styles/layout-and-result-menu.css" "styles/midmatch-menu.css" "styles/card-art.css" "styles/battle-portrait.css" "styles/character-clash.css" "styles/home-character-redesign.css" "styles/battle-redesign.css" "styles/timed-match.css" "styles/cpu-abilities-revolution.css" "styles/cinematic-effects.css" "styles/motion.css" "styles/performance.css" "styles/riana-casino.css" "styles/multi-character-whole-hands.css" "styles/dual-character.css" "styles/log-left-alignment.css" "styles/character-encyclopedia.css" "styles/rulebook.css" "styles/player-profile.css" "styles/imperial-ranked.css" "styles/progressive-rank-insignia.css" "styles/battle-portrait-fix.css" "styles/loading-art.css" "styles/loading-visibility-fix.css" "styles/final-transition.css" "styles/prematch-final-lock.css" "styles/playing-card-mode.css" "styles/onboarding.css" "styles/home-bulletin.css" "styles/viewport-scroll-fit.css" "styles/live-field-tutorial.css" "styles/narration.css" "styles/full-motion.css" "styles/skin-shop.css" "styles/battle-stamp-catalog-v205.css" "styles/usability-trial.css" "styles/season-one-battle-pass.css" "styles/audio-dig.css" "styles/character-skin-arena.css" "styles/wardrobe-hand-preview.css" "styles/skin-zone-banners.css" "styles/animated-vfx.css" "styles/ornate-card-back.css" "styles/spade-cursor.css" "styles/touch-awaken-flip.css" "styles/prebattle-joker-fix.css" "styles/fast-hover-unified-cardback.css" "styles/prestige-profile.css" "styles/imperial-court-home.css" "styles/imperial-war-ledger-pass.css" "styles/v159-chain-guides.css" "styles/masterwork-profile-frames.css" "styles/halloween-season-pass.css" "styles/pass-polish-trial.css" "styles/novel-portal.css" "styles/luxury-pass-art.css" "styles/pass-vertical-scroll.css" "styles/matching-profiles.css" "styles/compositor-ambience.css" "styles/bulletin.css" "styles/rare-awakening-cutin.css" "styles/online-room.css" "styles/online-shared-controls-v209.css" "styles/room-mode-card.css" "styles/pass-combat-missions.css" "styles/halloween-pass-cosmetics.css" "styles/rank-mode-insignia.css" "styles/character-mastery.css" "styles/mastery-profile.css" "styles/mastery-shine.css" "styles/pass-reward-previews.css" "styles/wardrobe-cardbacks.css" "styles/paid-season-pass.css" "styles/battle-stamp-inventory.css" "styles/battle-stamps.css" "styles/ranking-leaderboard-v217.css" "styles/home-wallet-v217.css" "styles/game-preferences-v218.css" "styles/defense-picker-v218.css" "styles/ability-card-preview-v231.css" "styles/mobile-home-v252.css" "styles/mobile-battle-v252.css" "styles/mobile-controls-v252.css" */

/* SOURCE styles/imperial-dialog.css */
/* Imperial felt, engraved brass and playing-card heraldry. */
#v177-imperial-dialog[hidden] { display: none !important; }
#v177-imperial-dialog {
    position: fixed;
    inset: 0;
    z-index: 2147483647 !important;
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #f4e7cc;
    background: radial-gradient(ellipse at center, #04100db0, #020605eb);
    backdrop-filter: blur(6px);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
    line-height: 1.6;
}
html.shocker-auth-locked body > #v177-imperial-dialog:not([hidden]) { display: grid !important; }
#v177-imperial-dialog * { box-sizing: border-box; }
#v177-imperial-dialog .v177-dialog-panel {
    position: relative;
    width: min(100%, 480px);
    max-height: min(680px, calc(100dvh - 36px));
    overflow: auto;
    padding: 28px 34px 18px;
    border: 1px solid #c8a864;
    border-radius: 10px;
    background: radial-gradient(ellipse at 50% 0, #26443970, transparent 65%), repeating-linear-gradient(135deg, #ffffff02 0 1px, transparent 1px 5px), linear-gradient(155deg, #10241d, #080f0e 78%);
    box-shadow: 0 24px 85px #000b, inset 0 0 0 5px #07120e, inset 0 0 0 6px #b99a513d, inset 0 2px 12px #d1ad4e0d;
    text-align: center;
    isolation: isolate;
}
#v177-imperial-dialog .v177-dialog-panel::before,
#v177-imperial-dialog .v177-dialog-panel::after {
    content: "";
    position: absolute;
    top: 12px;
    width: 23px;
    height: 23px;
    border-top: 1px solid #c8a864;
    pointer-events: none;
}
#v177-imperial-dialog .v177-dialog-panel::before { left: 12px; border-left: 1px solid #c8a864; }
#v177-imperial-dialog .v177-dialog-panel::after { right: 12px; border-right: 1px solid #c8a864; }
#v177-imperial-dialog .v177-dialog-kicker { color: #bea575; font: 600 9px/1.4 Georgia, serif; letter-spacing: .19em; }
#v177-imperial-dialog .v177-dialog-crest { display: grid; place-items: center; width: 62px; height: 62px; margin: 16px auto 12px; border: 1px solid #ac8b4b; border-radius: 50%; box-shadow: inset 0 0 0 4px #091710, inset 0 0 0 5px #ac8b4b4d, 0 0 25px #c9a35b10; color: #ddc080; background: radial-gradient(circle, #32442a, #0b1813 76%); }
#v177-imperial-dialog .v177-dialog-crest span { font: 32px/1 Georgia, serif; text-shadow: 0 2px 3px #000; }
#v177-imperial-dialog .v177-dialog-rule { display: flex; align-items: center; justify-content: center; gap: 9px; color: #c7a86d; font-size: 8px; }
#v177-imperial-dialog .v177-dialog-rule::before,
#v177-imperial-dialog .v177-dialog-rule::after { content: ""; width: 65px; height: 1px; background: linear-gradient(90deg, transparent, #b79656); }
#v177-imperial-dialog .v177-dialog-rule::after { transform: rotate(180deg); }
#v177-imperial-dialog #v177-dialog-title { margin: 14px 0 10px; color: #f3ddaa; font: 700 clamp(20px, 5vw, 25px)/1.45 "Yu Mincho", Georgia, serif; letter-spacing: .08em; text-shadow: 0 2px 6px #000; }
#v177-imperial-dialog #v177-dialog-message { margin: 0; color: #ded7c7; font-size: 14px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; text-align: left; }
#v177-imperial-dialog .v177-dialog-actions { display: flex; justify-content: center; gap: 12px; margin: 25px 0 17px; }
#v177-imperial-dialog button { min-height: 44px; margin: 0; padding: 10px 18px; border: 1px solid #9f854f; border-radius: 5px; color: #d9c8a7; background: linear-gradient(#14291f, #0b1813); font: 700 13px/1.4 "Yu Mincho", Georgia, serif; cursor: pointer; letter-spacing: .04em; box-shadow: inset 0 0 0 2px #0002; touch-action: manipulation; }
#v177-imperial-dialog button[hidden] { display: none !important; }
#v177-imperial-dialog #v177-dialog-accept { border-color: #cfb36e; color: #19150d; background: linear-gradient(135deg, #ead39b, #bb9549); box-shadow: inset 0 0 0 2px #fff2, 0 3px 9px #0005; }
#v177-imperial-dialog[data-tone="danger"] #v177-dialog-accept { border-color: #c79f66; color: #f7e4bb; background: linear-gradient(135deg, #713c2c, #41201c); }
#v177-imperial-dialog button:hover { filter: brightness(1.18); }
#v177-imperial-dialog button:focus-visible { outline: 2px solid #f0d48e; outline-offset: 4px; }
#v177-imperial-dialog #v177-dialog-close { position: absolute; top: 18px; right: 18px; min-height: 30px; width: 30px; padding: 0; border-color: transparent; color: #bca878; background: transparent; box-shadow: none; font: 24px/1 sans-serif; }
#v177-imperial-dialog .v177-dialog-seal { display: flex; justify-content: center; gap: 10px; color: #927c55; font-size: 10px; letter-spacing: .12em; }
#v177-imperial-dialog .v177-dialog-seal span { font-size: 8px; letter-spacing: .16em; }
body.v177-dialog-open { overflow: hidden !important; }
@media (max-width: 480px) {
    #v177-imperial-dialog .v177-dialog-panel { padding: 26px 24px 17px; }
    #v177-imperial-dialog #v177-dialog-message { font-size: 13px; }
    #v177-imperial-dialog .v177-dialog-actions { gap: 9px; }
    #v177-imperial-dialog .v177-dialog-actions button { flex: 1; padding-inline: 9px; }
}
@media (max-height: 500px) {
    #v177-imperial-dialog { padding-block: 12px; }
    #v177-imperial-dialog .v177-dialog-panel { max-height: calc(100dvh - 24px); padding-block: 18px 14px; }
    #v177-imperial-dialog .v177-dialog-crest { width: 42px; height: 42px; margin-block: 9px 7px; }
    #v177-imperial-dialog .v177-dialog-crest span { font-size: 25px; }
    #v177-imperial-dialog #v177-dialog-title { margin-block: 9px 7px; }
    #v177-imperial-dialog .v177-dialog-actions { margin-block: 15px 12px; }
}


/* SOURCE styles/account.css */
html.shocker-auth-locked body > :not(#v172-account-root) { display:none !important; }
html.shocker-auth-locked.shocker-auth-checking body > #v112-login-loading.show { display:grid !important; }
html.shocker-auth-locked body { background:#080b10 !important; overflow:hidden !important; }
#v172-account-root { position:fixed; inset:0; z-index:2147483647 !important; display:grid !important; place-items:center; padding:20px; background:radial-gradient(ellipse at 20% 0%,#302735,#080b10 65%); color:#eee5d1; font:15px/1.65 system-ui,sans-serif; text-align:left; overflow:auto; box-sizing:border-box; }
#v172-account-root[hidden] { display:none !important; }
#v172-account-root * { box-sizing:border-box; }
#v172-account-root .account-card { width:min(100%,520px); margin:auto; padding:32px; border:1px solid #a38d5e; background:#0b0f16; box-shadow:0 20px 80px #0009; }
#v172-account-root h1 { color:#d8bd80; font:32px Georgia,serif; letter-spacing:6px; margin:0 0 6px; }
#v172-account-root h2 { font-size:22px; margin:16px 0; }
#v172-account-root p { margin:10px 0; }
#v172-account-root .account-kicker { color:#a19376; font-size:11px; letter-spacing:2px; }
#v172-account-root .account-note { color:#b3b5bb; font-size:13px; }
#v172-account-root .account-status { padding:10px 12px; background:#181e28; border-left:3px solid #c7af76; white-space:pre-wrap; overflow-wrap:anywhere; }
#v172-account-root .account-status:empty { display:none; }
#v172-account-root label { display:block; margin:14px 0; }
#v172-account-root input:not([type=checkbox]) { display:block; width:100%; padding:12px; margin-top:6px; background:#05080e; color:#fff; border:1px solid #576071; border-radius:4px; font:inherit; }
#v172-account-root input[type=checkbox] { margin-right:8px; width:18px; height:18px; vertical-align:middle; }
#v172-account-root button { font:inherit; cursor:pointer; border:1px solid #a38d5e; color:#e8d6ab; background:#151d29; padding:10px 14px; border-radius:4px; min-height:44px; }
#v172-account-root button.primary { color:#16120b; background:#d8bd80; font-weight:700; }
#v172-account-root button.danger { border-color:#b47b7b; color:#f2b8b8; }
#v172-account-root button:disabled { opacity:.5; cursor:wait; }
#v172-account-root a { color:#d8bd80; }
#v172-account-root .account-actions { display:flex; gap:10px; flex-wrap:wrap; margin:18px 0 8px; }
#v172-account-root .account-tabs { display:flex; gap:10px; margin:18px 0; }
#v172-account-root .account-tabs button { flex:1; }
#v172-account-root button[aria-selected=true] { background:#d8bd80; color:#16120b; }
#v172-account-root :focus-visible, #v172-account-button:focus-visible { outline:3px solid #9ecfff; outline-offset:3px; }
#v172-account-root details { border-top:1px solid #394250; padding-top:12px; margin-top:16px; }
#v172-account-root summary { cursor:pointer; }
#v172-account-button { display:none !important; position:fixed; bottom:max(10px,env(safe-area-inset-bottom)); left:12px; z-index:2147483646 !important; padding:8px 12px; max-width:calc(100vw - 24px); border:1px solid #a38d5e; border-radius:5px; background:#0b0f16eb; color:#e8d6ab; font:12px/1.5 system-ui,sans-serif; cursor:pointer; }
#v172-account-button[data-v237-home-entry="true"]:not([hidden]) { display:block !important; }
#v172-account-button[hidden],body.v45-battle-active #v172-account-button { display:none !important; }
body.v45-battle-active #v172-account-button[data-v237-home-entry],
body.v186-online-open #v172-account-button[data-v237-home-entry],
body.v226-replays-open #v172-account-button[data-v237-home-entry],
body.v101-encyclopedia-open #v172-account-button[data-v237-home-entry],
html.shocker-auth-locked #v172-account-button[data-v237-home-entry] { display:none !important; }
.v172-beta-notice { padding:9px 14px; border:1px solid #82724c; background:#161820; color:#d7c699; font:13px/1.5 system-ui,sans-serif; text-align:left; }
#home-screen .home-notice-title.v172-beta-notice { padding:0; border:0; background:none; }
@media(max-width:560px) { #v172-account-root { padding:12px; } #v172-account-root .account-card { padding:22px; } }


/* SOURCE styles/account-codes-v216.css */
/* Public codes belong to server participants, never a local character/profile. */
body.v188-shared-battle .v216-battle-account{position:absolute;z-index:119;top:47px;max-width:clamp(120px,20vw,190px);color:#ded2b5;text-align:left;line-height:1.25;pointer-events:auto;background:rgba(6,7,8,.82);border-radius:4px;padding:3px 5px}
body.v188-shared-battle .player-area .v216-battle-account{left:5px}
body.v188-shared-battle .opponent-area .v216-battle-account{right:5px}
.v216-battle-account .v216-account-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 9px/1.3 sans-serif}
.v216-account-code-copy{display:flex;align-items:center;gap:5px;flex-wrap:wrap;max-width:100%;border:0;border-radius:3px;padding:2px 0;background:transparent;color:#dbc88e;cursor:pointer;text-align:left;line-height:1.25;pointer-events:auto}
.v216-account-code-copy>span{font:500 8px/1.3 sans-serif}
.v216-account-code-copy>code{font:600 10px/1.4 ui-monospace,monospace;white-space:nowrap;user-select:all}
.v216-account-code-copy:focus-visible{outline:2px solid #e3c46f;outline-offset:2px}
.v216-account-code-status{display:block;max-width:100%;font:500 9px/1.4 sans-serif;color:#d8cdaf;overflow-wrap:anywhere}
#v216-result-account-codes{display:grid;gap:9px;margin:12px 0 18px;padding:12px;border:1px solid #665639;border-radius:7px;text-align:left;background:rgba(0,0,0,.28)}
#v216-result-account-codes .v216-account-name{display:block;font:600 12px/1.5 sans-serif;overflow-wrap:anywhere}
#v216-result-account-codes .v216-account-code-copy{gap:10px;min-height:30px}
#v216-result-account-codes .v216-account-code-copy>span{font-size:10px}
#v216-result-account-codes .v216-account-code-copy>code{font-size:13px}
#v216-result-account-codes>.v216-account-code-status{font-size:10px;margin:0}
@media(max-width:600px),(orientation:landscape) and (max-height:500px){body.v188-shared-battle .v216-battle-account{top:33px;max-width:115px;padding:2px 4px}.v216-battle-account .v216-account-name{font-size:8px}.v216-battle-account .v216-account-code-copy{gap:0}.v216-battle-account .v216-account-code-copy>span{font-size:7px}.v216-battle-account .v216-account-code-copy>code{font-size:9px}}

/* v258: participant identity belongs in clear battle furniture, away from art,
   field targets and hand controls. Body mounting avoids field paint containment. */
body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account {
  position:fixed;
  top:54px;
  left:7px;
  right:auto;
  box-sizing:border-box;
  width:clamp(160px,calc((100vw - 660px) / 2 - 20px),340px);
  max-width:none;
  padding:3px 6px;
  border:1px solid #bfa26655;
  background:#080b10e8;
  line-height:1.25;
}
body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account[data-owner="opponent"] { left:auto;right:7px; }
body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account .v216-account-name {
  font-size:10px;
  line-height:14px;
}
body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account .v216-account-code-copy {
  display:flex;
  align-items:center;
  gap:4px;
  padding:0;
  margin:0;
  min-width:0;
  width:100%;
  line-height:14px;
}
body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account .v216-account-code-copy > span { font-size:7px;line-height:12px; }
body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account .v216-account-code-copy > code { font-size:10px;line-height:14px; }
html.shocker-mobile-portrait-v252 body.v188-shared-battle.v45-battle-active.v64-shocker-battle {
  grid-template-rows:116px 36px minmax(0,1fr) minmax(0,1.45fr) !important;
}
html.shocker-mobile-portrait-v252 body.v188-shared-battle.v45-battle-active.v64-shocker-battle > h2 { height:116px !important;min-height:116px !important; }
html.shocker-mobile-portrait-v252 body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account {
  top:calc(max(4px,var(--mobile-v252-safe-top,env(safe-area-inset-top))) + 78px);
  left:max(5px,var(--mobile-v252-safe-left,env(safe-area-inset-left)));
  right:auto;
  width:calc(50% - 8px);
  min-height:34px;
  padding:2px 4px;
}
html.shocker-mobile-portrait-v252 body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account[data-owner="opponent"] {
  left:auto;
  right:max(5px,var(--mobile-v252-safe-right,env(safe-area-inset-right)));
}
html.shocker-mobile-portrait-v252 body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account .v216-account-code-copy { flex-wrap:nowrap;gap:3px; }
html.shocker-mobile-portrait-v252 body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account .v216-account-code-copy > span { font-size:6px; }
/* A rotated phone has an unused side gap beside the central field cards.
   Share the existing field row there so no extra row reduces its card space. */
html.shocker-mobile-landscape-v252 body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account {
  position:relative;
  grid-column:1;
  grid-row:4;
  align-self:start;
  justify-self:end;
  top:2px;
  left:auto;
  right:auto;
  margin:0 111px 0 0;
  width:clamp(80px,calc(50vw - 200px),220px);
  padding:2px 3px;
}
html.shocker-mobile-landscape-v252 body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account[data-owner="opponent"] { grid-row:3;left:auto;right:auto; }
html.shocker-mobile-landscape-v252 body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account .v216-account-name { font-size:9px;line-height:12px; }
html.shocker-mobile-landscape-v252 body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account .v216-account-code-copy { gap:0 3px; }
html.shocker-mobile-landscape-v252 body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account .v216-account-code-copy > code { font-size:9px;line-height:12px; }
/* Copy feedback uses the existing small code-label slot and never grows the
   identity row over a field or phase instruction. Full status stays accessible. */
body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account:has(> .v216-account-code-status) .v216-account-code-copy > span { visibility:hidden; }
body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account > .v216-account-code-status {
  position:absolute;
  top:17px;
  left:6px;
  max-width:54px;
  margin:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:7px;
  line-height:12px;
  pointer-events:none;
}
html.shocker-mobile-portrait-v252 body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account > .v216-account-code-status { left:4px; }
html.shocker-mobile-landscape-v252 body.v188-shared-battle.v45-battle-active.v64-shocker-battle > .v216-battle-account > .v216-account-code-status { top:14px;left:3px; }


/* SOURCE styles/player-hub-v226.css */
/* Header entries sit directly to the left of the existing DIG balance. */
#home-screen #v226-player-hub-controls{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-left:auto;flex:0 0 auto;min-width:0;}
#home-screen #v226-player-hub-controls + #v217-home-wallet{margin-left:0;}
#v226-player-hub-controls .v226-hub-entry{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;min-height:34px;height:34px;padding:5px 8px;border:1px solid rgba(222,185,103,.38);border-radius:5px;background:linear-gradient(145deg,#211c19,#0d1118);color:#f3e5bf;font:600 10px/1.35 sans-serif;white-space:nowrap;cursor:pointer;}
#v226-player-hub-controls .v226-hub-entry:hover,#v226-player-hub-controls .v226-hub-entry:focus-visible{border-color:#e2c17d;background:#30251e;outline:2px solid #e2c17d;outline-offset:2px;}
#v226-player-hub-controls .v226-hub-entry svg{width:18px;height:18px;flex:0 0 auto;}
#v226-player-hub-controls .v226-hub-badge{position:absolute;top:-5px;right:-4px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border:1px solid #eac77e;border-radius:12px;background:#8c2638;color:#fff9e8;font:700 10px/1 sans-serif;}
#v226-player-hub-controls [hidden],#v226-player-hub[hidden],#v226-player-hub [hidden]{display:none!important;}
#v226-player-hub{position:fixed;inset:0;z-index:12150;display:grid;place-items:center;padding:clamp(10px,3vw,34px);background:rgba(2,4,8,.87);color:#f2e6c9;text-align:left;}
#v226-player-hub .v226-hub-sheet{display:flex;flex-direction:column;width:min(760px,100%);max-height:calc(100dvh - 30px);min-height:230px;padding:clamp(17px,3vw,30px);border:1px solid #bfa066;border-radius:8px;background:linear-gradient(145deg,#1b1719,#0a1019 75%);box-shadow:0 20px 80px #000b,inset 0 0 0 4px #d7b5690b;}
#v226-player-hub .v226-hub-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;}
#v226-player-hub .v226-hub-kicker{margin:0 0 5px;color:#c7aa70;font:600 10px/1.4 sans-serif;letter-spacing:.15em;}
#v226-player-hub h2{margin:0;font:700 clamp(19px,3vw,25px)/1.4 serif;color:#ffedbd;}
#v226-player-hub h3{margin:0;font:700 16px/1.6 sans-serif;color:#f8e6ba;overflow-wrap:anywhere;}
#v226-player-hub #v226-hub-description{margin:12px 0 5px;color:#c4b9a5;font:400 13px/1.7 sans-serif;}
#v226-player-hub button{border:1px solid #a98d58;border-radius:4px;padding:8px 13px;background:#28221f;color:#f7e8c4;font:600 12px/1.5 sans-serif;cursor:pointer;}
#v226-player-hub button:hover:not(:disabled),#v226-player-hub button:focus-visible{background:#403126;outline:2px solid #e0bd77;outline-offset:2px;}
#v226-player-hub button:disabled{opacity:.5;cursor:wait;}
#v226-player-hub .v226-hub-toolbar{display:flex;align-items:center;gap:8px;min-height:48px;margin:0 0 12px;}
#v226-player-hub #v226-hub-status{flex:1;margin:0;color:#cabb9d;font:400 12px/1.6 sans-serif;overflow-wrap:anywhere;}
#v226-player-hub #v226-hub-status[data-tone="error"]{color:#ffc3bd;}
#v226-player-hub #v226-hub-items{overflow-y:auto;overscroll-behavior:contain;min-height:80px;padding:2px 4px 4px;scrollbar-color:#927c58 #11131b;}
#v226-player-hub .v226-hub-item{padding:18px;margin-bottom:12px;border:1px solid #6d604b;border-radius:5px;background:#080d15a3;}
#v226-player-hub .v226-hub-item.is-unread{border-color:#c6a05d;}
#v226-player-hub .v226-hub-item header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;}
#v226-player-hub .v226-hub-state{flex-shrink:0;padding:3px 7px;border:1px solid #79684b;border-radius:3px;color:#d4bd8c;font:600 10px/1.5 sans-serif;}
#v226-player-hub .v226-hub-date{margin:6px 0;color:#9d947f;font:400 11px/1.5 sans-serif;}
#v226-player-hub .v226-hub-body{margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere;color:#e3dac8;font:400 13px/1.9 sans-serif;}
#v226-player-hub .v226-hub-reward{padding:10px 12px;border-left:2px solid #d9b874;background:#c99b4810;color:#f4ddaa;font:600 14px/1.7 serif;}
#v226-player-hub .v226-hub-action{display:block;margin-left:auto;min-width:108px;}
#v226-player-hub .v226-hub-empty{margin:26px 0;text-align:center;color:#b9ae98;font:400 13px/1.8 sans-serif;}
/* Compact before the header wraps: viewport height belongs to the home content. */
@media(max-width:1600px){
    #v226-player-hub-controls .v226-hub-entry{width:34px;min-width:34px;padding:5px;}
    #v226-player-hub-controls .v226-hub-entry-label{display:none;}
    #v226-player-hub-controls .v226-hub-entry:hover .v226-hub-entry-label,
    #v226-player-hub-controls .v226-hub-entry:focus-visible .v226-hub-entry-label{display:block;position:absolute;top:calc(100% + 8px);right:0;z-index:1;padding:6px 8px;border:1px solid #a98d58;border-radius:4px;background:#17151b;color:#f3e5bf;font:600 11px/1.4 sans-serif;pointer-events:none;}
}
@media(max-width:1239px){
    #home-screen .home-topbar:has(> #v226-player-hub-controls) > .home-resources{display:none!important;}
}
@media(max-width:850px){
    #home-screen .home-topbar:has(> #v226-player-hub-controls) .home-brand{display:none!important;}
}
@media(max-width:620px){
    #home-screen .home-topbar:has(> #v226-player-hub-controls){column-gap:5px;}
    #home-screen .home-topbar:has(> #v226-player-hub-controls) .v105-home-identity-zone{flex:1 1 0;}
    #home-screen .home-topbar:has(> #v226-player-hub-controls) #v105-home-profile-button{width:100%!important;max-width:160px!important;min-width:0;grid-template-columns:42px minmax(0,1fr) 10px!important;gap:5px!important;padding:3px!important;}
    #home-screen .home-topbar:has(> #v226-player-hub-controls) #v105-home-profile-button > .v105-profile-emblem{width:42px!important;height:42px!important;}
    #home-screen #v226-player-hub-controls{gap:3px;}
    #v226-player-hub-controls .v226-hub-entry{width:30px;min-width:30px;height:32px;min-height:32px;padding:4px;}
    #v226-player-hub-controls .v226-hub-entry svg{width:17px;height:17px;}
    #v226-player-hub-controls .v226-hub-badge{min-width:15px;height:15px;padding:0 3px;font-size:9px;}
}
@media(max-width:760px){#v226-player-hub .v226-hub-sheet{max-height:calc(100dvh - 20px);padding:15px;}#v226-player-hub .v226-hub-item{padding:13px;}#v226-player-hub .v226-hub-toolbar{flex-wrap:wrap;}#v226-player-hub #v226-hub-status{flex-basis:100%;}}


/* SOURCE styles/beta-missions-v246.css */
/* A single icon in the existing header dock keeps the home content unchanged. */
#home-screen #v226-player-hub-controls #v246-beta-missions-open{width:34px;min-width:34px;height:34px;min-height:34px;padding:5px;flex:0 0 auto;}
#v246-beta-missions-open .v226-hub-entry-label{display:none;}
#v246-beta-missions-open:hover .v226-hub-entry-label,#v246-beta-missions-open:focus-visible .v226-hub-entry-label{display:block;position:absolute;top:calc(100% + 8px);right:0;z-index:2;padding:6px 8px;border:1px solid #a98d58;border-radius:4px;background:#17151b;color:#f3e5bf;font:600 11px/1.4 sans-serif;pointer-events:none;}
#v246-beta-missions-open.is-complete{border-color:#b7d69b;color:#d5f3bc;}
#v246-beta-missions-open.is-complete .v226-hub-badge{background:#31543c;border-color:#d3e4ab;}
#v246-beta-missions[hidden],#v246-beta-missions [hidden]{display:none!important;}
#v246-beta-missions{position:fixed;inset:0;z-index:12160;display:grid;place-items:center;padding:clamp(9px,2.5vw,30px);background:rgba(3,5,11,.9);color:#eee5d4;text-align:left;}
#v246-beta-missions *{box-sizing:border-box;}
#v246-beta-missions .v246-missions-sheet{display:flex;flex-direction:column;width:min(1080px,100%);max-height:calc(100dvh - 30px);padding:clamp(16px,2.5vw,29px);border:1px solid #bba16d;border-radius:8px;background:radial-gradient(ellipse at 95% 0,#56386338,transparent 60%),linear-gradient(140deg,#19171c,#0a111b 80%);box-shadow:0 25px 90px #000b,inset 0 0 0 4px #d2b97c0b;}
#v246-beta-missions .v246-missions-header{display:flex;align-items:center;justify-content:space-between;gap:14px;}
#v246-beta-missions .v246-missions-kicker,#v246-beta-missions .v246-reward-kicker{margin:0 0 5px;color:#c8b079;font:600 10px/1.5 sans-serif;letter-spacing:.14em;}
#v246-beta-missions h2{margin:0;color:#ffe8b5;font:700 clamp(20px,3vw,27px)/1.4 serif;}
#v246-beta-missions #v246-beta-missions-description{margin:10px 0 12px;color:#cdc2ad;font:400 13px/1.8 sans-serif;}
#v246-beta-missions button{flex:0 0 auto;padding:8px 13px;border:1px solid #a98f60;border-radius:4px;background:#2d2528;color:#f7e6c3;font:600 12px/1.4 sans-serif;cursor:pointer;}
#v246-beta-missions button:hover:not(:disabled),#v246-beta-missions button:focus-visible{background:#493642;outline:2px solid #dfc37e;outline-offset:2px;}
#v246-beta-missions button:disabled{opacity:.5;cursor:wait;}
#v246-beta-missions .v246-missions-toolbar{display:flex;align-items:center;gap:13px;margin:0 0 16px;padding:12px 0;border-top:1px solid #b99d662b;border-bottom:1px solid #b99d662b;}
#v246-beta-missions #v246-beta-missions-summary{flex:0 0 auto;color:#e7ce97;font:700 14px/1.6 sans-serif;font-variant-numeric:tabular-nums;}
#v246-beta-missions #v246-beta-missions-status{flex:1;margin:0;color:#beb39f;font:400 12px/1.7 sans-serif;overflow-wrap:anywhere;}
#v246-beta-missions #v246-beta-missions-status[data-tone="error"]{color:#ffc1ba;}
#v246-beta-missions .v246-missions-scroll{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(275px,.9fr);align-items:start;gap:18px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 4px 4px 2px;scrollbar-color:#927c58 #11131b;}
#v246-beta-missions #v246-beta-missions-list{display:grid;gap:10px;margin:0;padding:0;list-style:none;}
#v246-beta-missions .v246-mission{padding:14px 15px;border:1px solid #6c625039;border-radius:5px;background:#02081077;}
#v246-beta-missions .v246-mission-heading{display:flex;align-items:flex-start;gap:10px;}
#v246-beta-missions .v246-mission-mark{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border:1px solid #81704c;border-radius:50%;color:#d3bb85;font:700 11px/1 sans-serif;}
#v246-beta-missions .v246-mission h3{margin:1px 0 0;color:#e7dfce;font:600 13px/1.8 sans-serif;overflow-wrap:anywhere;}
#v246-beta-missions .v246-mission-progress{margin:8px 0 6px;text-align:right;color:#cbb78c;font:600 11px/1.4 sans-serif;font-variant-numeric:tabular-nums;}
#v246-beta-missions .v246-mission-meter{height:5px;overflow:hidden;border-radius:4px;background:#0009;box-shadow:inset 0 0 0 1px #e2c79518;}
#v246-beta-missions .v246-mission-meter>span{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#8066aa,#d4b9ec);}
#v246-beta-missions .v246-mission.is-complete{border-color:#a5c88b55;background:#2a42251f;}
#v246-beta-missions .v246-mission.is-complete .v246-mission-mark{border-color:#a2c58b;color:#d1efb9;background:#29442e;}
#v246-beta-missions .v246-mission.is-complete .v246-mission-progress{color:#bddda6;}
#v246-beta-missions .v246-mission.is-complete .v246-mission-meter>span{background:linear-gradient(90deg,#607c4e,#c5dfa0);}
#v246-beta-missions .v246-missions-reward{position:sticky;top:0;padding:20px 15px;border:1px solid #b290c65c;border-radius:6px;background:radial-gradient(ellipse at 50% 25%,#64457455,transparent 70%),#0a0914aa;text-align:center;}
#v246-beta-missions .v246-missions-reward h3{margin:4px 0 17px;color:#f1d8ff;font:700 19px/1.6 serif;}
#v246-beta-missions .v246-reward-cards{display:flex;justify-content:center;align-items:flex-start;gap:12px;}
#v246-beta-missions .v246-reward-cards figure{flex:1;max-width:168px;margin:0;}
#v246-beta-missions .v246-reward-cards img{display:block;width:100%;height:auto;border-radius:7px;box-shadow:0 7px 22px #0009;}
#v246-beta-missions .v246-reward-cards figcaption{margin-top:9px;color:#b6a4bd;font:500 11px/1.5 sans-serif;letter-spacing:.1em;}
#v246-beta-missions #v246-beta-missions-reward-state{display:inline-block;margin:18px 0 7px;padding:7px 12px;border:1px solid #c09dd252;border-radius:3px;color:#e1bee9;background:#b57dce0e;font:700 12px/1.5 sans-serif;}
#v246-beta-missions #v246-beta-missions-reward-description{margin:5px 0;color:#bbaeC2;font:400 12px/1.8 sans-serif;}
#v246-beta-missions #v246-beta-missions-wardrobe{margin-top:13px;border-color:#b2cf8a;background:#30422b;color:#eff7d8;}
#v246-beta-missions .v248-beta-field-preview{position:relative;isolation:isolate;overflow:hidden;margin:16px 0 8px;border:1px solid #a68e655c;border-radius:5px;background:#171421;}
#v246-beta-missions .v248-beta-field-preview>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;}
#v246-beta-missions .v248-beta-field-preview>figcaption{position:relative;margin:0;padding:5px 8px;color:#c7b9d2;background:#15111fe6;font:500 10px/1.5 sans-serif;}
#v246-beta-missions .v248-beta-effect-actions{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;}
#v246-beta-missions .v248-beta-effect-actions button{padding:6px 9px;font-size:11px;}
#v246-beta-missions #v248-beta-missions-trial{display:block;width:100%;margin-top:12px;border-color:#baa1dc;background:linear-gradient(135deg,#4b355e,#24483f);color:#fbf1ff;}
#v246-beta-missions .v248-beta-trial-note{margin:7px 0 0;color:#bbaeC2;font:400 11px/1.8 sans-serif;}
#v246-beta-missions.has-reward .v246-missions-reward{border-color:#b9d59c99;}
#v246-beta-missions.has-reward #v246-beta-missions-reward-state{border-color:#b4d49488;color:#e1f3c9;background:#74955422;}
#v246-beta-missions .v246-missions-note{grid-column:1/-1;margin:0;padding:8px 0 0;border-top:1px solid #a98d5f2b;color:#a79b86;font:400 11px/1.9 sans-serif;}
@media(max-width:760px){
  #v246-beta-missions .v246-missions-sheet{max-height:calc(100dvh - 18px);padding:15px;}
  #v246-beta-missions .v246-missions-toolbar{flex-wrap:wrap;gap:10px;}
  #v246-beta-missions #v246-beta-missions-status{flex-basis:calc(100% - 120px);}
  #v246-beta-missions .v246-missions-scroll{grid-template-columns:1fr;gap:16px;}
  #v246-beta-missions .v246-missions-reward{position:static;}
  #v246-beta-missions .v246-reward-cards figure{max-width:160px;}
  #v246-beta-missions .v246-mission{padding:12px;}
}
@media(max-width:620px){#home-screen #v226-player-hub-controls #v246-beta-missions-open{width:30px;min-width:30px;height:32px;min-height:32px;padding:4px;}}


/* SOURCE styles/riana-beta-effects-v248.css */
/* Scoped Riana beta presentation. No arena/card/zone layout selectors. */
.v248-riana-effect{position:fixed;z-index:890;pointer-events:none!important;user-select:none;contain:layout style;transform:translate(-50%,-50%) rotate(var(--v248-angle,0deg));transform-origin:center;opacity:0;isolation:isolate;}
.v248-riana-effect.is-preview{position:absolute;z-index:3;}
.v248-riana-effect *{pointer-events:none!important;}
.v248-riana-effect.is-ready{opacity:1;}
.v248-riana-summon{overflow:visible;}
.v248-riana-sigil{display:block;width:100%;height:100%;overflow:visible;fill:none;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px #71ffc9) drop-shadow(0 0 9px #9869d8);}
.v248-riana-sigil-outer{stroke:#a9ffe0;stroke-width:1.8;transform-origin:120px 120px;}
.v248-riana-sigil-inner{stroke:#c9afff;stroke-width:1.35;transform-origin:120px 120px;}
.v248-riana-sigil-gems{fill:#b9a0f0;stroke:#f0e2ff;stroke-width:1;}
.v248-riana-summon.is-ready{animation:v248RianaSummonLife 1.2s ease-out both;}
.v248-riana-summon.is-ready .v248-riana-sigil-outer{animation:v248RianaCircleTurn 1.2s ease-out both;}
.v248-riana-summon.is-ready .v248-riana-sigil-inner{animation:v248RianaCircleReverse 1.2s ease-out both;}
.v248-riana-attack{overflow:visible;}
.v248-riana-native-art{display:block;width:100%;height:100%;object-fit:contain;opacity:1;mix-blend-mode:screen;filter:brightness(1.2) saturate(1.25) drop-shadow(0 0 7px #bf8dff) drop-shadow(0 0 16px #68e9bc);}
.v248-riana-effect.is-native.is-ready{animation:v248RianaNativeLife var(--v248-life) linear both;}
.v248-riana-quiet-impact{display:block;width:100%;height:100%;fill:#c9afff;stroke:#caffea;stroke-width:1.5;filter:drop-shadow(0 0 6px #a2f4d6);}
.v248-riana-effect.is-reduced.is-ready{animation:v248RianaQuiet .38s ease-out both;}
.v248-riana-effect.is-reduced .v248-riana-sigil-outer,.v248-riana-effect.is-reduced .v248-riana-sigil-inner{animation:none;}
@keyframes v248RianaSummonLife{0%{opacity:0;scale:.55;}17%{opacity:.88;scale:1.02;}40%{opacity:.8;scale:1;}74%{opacity:.67;scale:1.04;}100%{opacity:0;scale:1.13;}}
@keyframes v248RianaCircleTurn{from{transform:rotate(-34deg);}to{transform:rotate(55deg);}}
@keyframes v248RianaCircleReverse{from{transform:rotate(33deg);}to{transform:rotate(-43deg);}}
@keyframes v248RianaNativeLife{0%,94%{opacity:1;}100%{opacity:0;}}
@keyframes v248RianaQuiet{0%{opacity:0;}20%,65%{opacity:.75;}100%{opacity:0;}}
@media(prefers-reduced-motion:reduce){.v248-riana-effect.is-ready{animation:v248RianaQuiet .38s ease-out both;}.v248-riana-sigil-outer,.v248-riana-sigil-inner{animation:none!important;}}
@media(forced-colors:active){.v248-riana-effect{display:none!important;}}

/* The native transparent animations are now the sole summon/attack artwork.
   A brief matching amethyst/emerald flare makes the large drawing read clearly. */
.v249-riana-flare{position:absolute;inset:12%;z-index:-1;opacity:0;pointer-events:none;}
.v249-riana-flare::before,.v249-riana-flare::after{content:"";position:absolute;inset:5%;border-radius:50%;border:2px solid #d8b7ff;box-shadow:0 0 22px #c28bff,inset 0 0 18px #80ffe0;opacity:.8;}
.v249-riana-flare::after{inset:18%;border-color:#b9ffe3;box-shadow:0 0 35px #7ee2bd;}
.v249-riana-flare i{position:absolute;left:50%;top:50%;width:5px;height:21px;background:linear-gradient(#fff4ff,#c9a6ff 44%,transparent);box-shadow:0 0 9px #d2a2ff;transform:rotate(var(--v249-ray-angle)) translateY(-35px);transform-origin:center;opacity:0;}
.v248-riana-effect.is-ready .v249-riana-flare{animation:v249RianaFlare 1.25s ease-out both;}
.v248-riana-effect.is-ready .v249-riana-flare::before{animation:v249RianaRing 1.1s ease-out both;}
.v248-riana-effect.is-ready .v249-riana-flare::after{animation:v249RianaRing 1.3s .1s ease-out both;}
.v248-riana-effect.is-ready .v249-riana-flare i{animation:v249RianaRay 1s var(--v249-ray-delay) ease-out both;}
.v248-riana-attack .v249-riana-flare{inset:19% 7%;}
@keyframes v249RianaFlare{0%{opacity:0}15%,40%{opacity:.9}100%{opacity:0}}
@keyframes v249RianaRing{0%{scale:.28;opacity:0}20%{opacity:.85}100%{scale:1.3;opacity:0}}
@keyframes v249RianaRay{0%{opacity:0;transform:rotate(var(--v249-ray-angle)) translateY(-26px) scale(.6)}17%,45%{opacity:.95}100%{opacity:0;transform:rotate(var(--v249-ray-angle)) translateY(-150px) scale(.4)}}
@media(prefers-reduced-motion:reduce){.v249-riana-flare{display:none!important;}.v248-riana-native-art{filter:none;}}


/* SOURCE styles/credits-support-v250.css */
/* Scoped credits/contact panels; the existing home and battlefield layouts stay unchanged. */
.v250-settings-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;grid-column:1 / -1}
#v122-system-settings .v250-settings-links .v250-support-button,
#v218-battle-preferences .v250-settings-links .v250-support-button,
#v250-credits-support .v250-support-button{position:relative!important;box-sizing:border-box;min-height:40px!important;padding:9px 12px!important;border:1px solid #aa8a46!important;border-radius:5px!important;background:linear-gradient(145deg,#352a1d,#100e0c)!important;color:#f3e3bd!important;font:600 13px/1.5 sans-serif!important;cursor:pointer;text-align:center}
#v250-credits-support{position:fixed!important;inset:0!important;z-index:2147482000!important;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#000c;color:#f0e3c3;text-align:left}
#v250-credits-support[hidden],#v250-credits-support [hidden]{display:none!important}
#v250-support-panel{box-sizing:border-box;width:min(100%,620px);max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain;padding:clamp(16px,3vw,27px);border:1px solid #bc9a50;border-radius:8px;background:radial-gradient(ellipse at top right,#671a242b,transparent 60%),linear-gradient(145deg,#201815,#080a0a);box-shadow:0 24px 80px #000b;scrollbar-color:#94763d #13100d}
.v250-support-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid #b28d434d}
#v250-support-title{margin:0;color:#f5e1af;font:600 clamp(19px,4vw,24px)/1.5 Georgia,"Yu Mincho",serif;letter-spacing:.08em}
#v250-support-close{flex-shrink:0}
#v250-credits-support .v250-support-wordmark{margin:12px 0 25px;font:500 32px/1.5 Georgia,serif;letter-spacing:.15em;text-align:center;color:#e7c577}
.v250-credit-section{margin:22px 0}.v250-credit-section h3{margin:0 0 12px;color:#ebcc8d;font:700 16px/1.5 sans-serif;border-bottom:1px solid #b28d433d;padding-bottom:7px}
.v250-credit-section dl{margin:0}.v250-credit-section dl>div{display:grid;grid-template-columns:125px 1fr;gap:12px;padding:8px 0;font:14px/1.7 sans-serif}.v250-credit-section dt{color:#c4b28f}.v250-credit-section dd{margin:0;overflow-wrap:anywhere}
.v250-credit-music{padding:12px 0;border-bottom:1px solid #b28d4326}.v250-credit-music h4{margin:0 0 5px;font:700 15px/1.6 sans-serif}.v250-credit-music p{margin:3px 0;font:13px/1.7 sans-serif;color:#d2c6a9}.v250-credit-music a{color:#e8c779;text-underline-offset:3px;font:13px/1.7 sans-serif;overflow-wrap:anywhere}
#v250-credits-support .v250-support-note{margin:8px 0 12px;color:#cabfa5;font:12px/1.8 sans-serif;overflow-wrap:anywhere}
#v250-support-battle-note{padding:8px 12px;border:1px solid #be97534d;background:#73521924;color:#edd299!important}
#v250-contact-form>label,#v250-contact-target-row>label{display:block;margin:13px 0 7px;color:#ead6ae;font:600 13px/1.7 sans-serif}
#v250-contact-form textarea,#v250-contact-form select,#v250-contact-form input{box-sizing:border-box;width:100%;max-width:100%;min-height:42px;padding:10px;border:1px solid #8d7445;border-radius:5px;background:#090a0b;color:#f3e9d5;font:14px/1.7 sans-serif}
#v250-contact-form textarea{resize:vertical;min-height:125px;max-height:45dvh}#v250-contact-form select{cursor:pointer}
.v250-contact-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.v250-contact-actions button{flex:1 1 190px}
#v250-credits-support #v250-contact-identity-note{padding:10px 12px;border:1px solid #b28d434d;border-radius:5px;background:#70531d1c;overflow-wrap:anywhere}
#v250-contact-form :disabled{opacity:.6;cursor:default!important}
#v250-credits-support .v250-support-primary{background:linear-gradient(145deg,#795523,#342416)!important;border-color:#e4bd65!important}
#v250-credits-support .v250-support-status{min-height:1.7em;margin:12px 0;color:#f2d899;font:13px/1.8 sans-serif;white-space:pre-wrap;overflow-wrap:anywhere}
#v250-credits-support :focus-visible,.v250-settings-links :focus-visible{outline:2px solid #ffe296!important;outline-offset:3px}
body.v250-support-open{overflow:hidden!important}
@media(max-width:420px){.v250-credit-section dl>div{grid-template-columns:1fr;gap:1px}.v250-support-header{gap:6px}#v250-support-close{padding:8px!important;font-size:12px!important}}
@media(max-height:480px){#v250-support-panel{max-height:calc(100dvh - 16px);padding:12px}.v250-support-header{margin-bottom:10px;padding-bottom:7px}#v250-contact-form textarea{min-height:95px}}


/* SOURCE styles/replays-v226.css */
/* Replay archive stays outside live card selectors and never changes battle layout. */
body.v226-replays-open { overflow: hidden !important; }
#v226-replays[hidden], #v226-replays [hidden] { display: none !important; }
#v226-replays { position: fixed; inset: 0; z-index: 2147482500; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5,8,13,.91); color: #e9e7de; font: 14px/1.5 "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; text-align: left; isolation: isolate; }
#v226-replays *, #v226-replays *::before, #v226-replays *::after { box-sizing: border-box; }
#v226-replays h2, #v226-replays h3, #v226-replays h4, #v226-replays p { margin: 0; }
#v226-replays .v226-r-panel { width: min(1240px, 100%); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(ellipse at top right, rgba(90,54,30,.2), transparent 50%), #10151b; border: 1px solid #8f7345; border-radius: 14px; box-shadow: 0 30px 100px #000, inset 0 0 0 5px rgba(195,158,85,.035); }
#v226-replays .v226-r-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px; border-bottom: 1px solid #58472f; background: linear-gradient(100deg, rgba(57,36,26,.85), rgba(15,20,26,.7)); flex: 0 0 auto; }
#v226-replays .v226-r-eyebrow { display: block; font: 11px/1.4 Georgia, serif; letter-spacing: .24em; color: #c8a466; margin-bottom: 3px; }
#v226-replays h2 { color: #f0dfbb; font: 700 24px/1.4 "Yu Mincho", serif; letter-spacing: .08em; }
#v226-replays .v226-r-subtitle { color: #b5aa98; font-size: 12px; margin-top: 4px; }
#v226-replays .v226-r-button { appearance: none; border: 1px solid #6b5b43; border-radius: 6px; background: #1a222b; color: #eee6d9; font: inherit; cursor: pointer; padding: 9px 14px; text-align: center; box-shadow: none; text-shadow: none; transition: border-color .15s, background .15s; }
#v226-replays .v226-r-button:hover { background: #28313a; border-color: #c7a266; }
#v226-replays .v226-r-button:focus-visible, #v226-replays input:focus-visible, #v226-replays select:focus-visible, #v226-replays summary:focus-visible { outline: 2px solid #e8c986; outline-offset: 3px; }
#v226-replays .v226-r-button:disabled { opacity: .35; cursor: default; }
#v226-replays .v226-r-layout { display: grid; grid-template-columns: 292px minmax(0,1fr); min-height: 0; overflow: hidden; }
#v226-replays .v226-r-sidebar { overflow: auto; max-height: calc(100dvh - 173px); padding: 20px 18px; border-right: 1px solid #3e3a30; background: rgba(4,9,14,.35); }
#v226-replays .v226-r-list-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 12px; }
#v226-replays h3 { color: #edddbd; font-size: 15px; line-height: 1.5; }
#v226-replays .v226-r-refresh { padding: 5px 11px; font-size: 12px; }
#v226-replays .v226-r-help { font-size: 11px; line-height: 1.75; color: #aeb4b8; }
#v226-replays .v226-r-status { min-height: 24px; font-size: 12px; color: #d7bd8d; padding: 12px 0; }
#v226-replays .v226-r-list { display: flex; flex-direction: column; gap: 9px; }
#v226-replays .v226-r-entry { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 12px; text-align: left; background: linear-gradient(130deg,#20272d,#161c23); }
#v226-replays .v226-r-entry[aria-current="true"] { border-color: #d3af70; background: #302b24; }
#v226-replays .v226-r-entry-first { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 6px; }
#v226-replays .v226-r-entry time, #v226-replays .v226-r-entry-mode { color: #a6adb1; font-size: 10px; }
#v226-replays .v226-r-versus { font-size: 12px; overflow-wrap: anywhere; margin-bottom: 4px; }
#v226-replays .v226-r-result { font-size: 12px; letter-spacing: .08em; color: #bdc6ce; }
#v226-replays .v226-r-result.is-win { color: #dfc086; }
#v226-replays .v226-r-result.is-loss { color: #c48d88; }
#v226-replays .v226-r-main { min-width: 0; overflow: auto; max-height: calc(100dvh - 173px); padding: 18px 22px 24px; }
#v226-replays .v226-r-empty { min-height: 440px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #a7adb1; text-align: center; }
#v226-replays .v226-r-empty-suit { font: 80px/.9 Georgia,serif; color: #6f5b3c; text-shadow: 0 2px 30px #a3803b24; margin-bottom: 12px; }
#v226-replays .v226-r-empty h3 { font: 20px/1.5 "Yu Mincho",serif; color: #bda982; }
#v226-replays .v226-r-empty p { font-size: 12px; }
#v226-replays .v226-r-view-head { display: flex; align-items: center; gap: 5px 12px; flex-wrap: wrap; margin-bottom: 14px; }
#v226-replays .v226-r-view-head h3 { overflow-wrap: anywhere; }
#v226-replays .v226-r-view-head p { flex-basis: 100%; }
#v226-replays .v226-r-back { padding: 4px 8px; font-size: 11px; display: none; }
#v226-replays .v226-r-board { padding: 14px; border: 1px solid #4e4432; border-radius: 9px; background: radial-gradient(ellipse at center, #233d3b, #142a2c 65%, #102022); box-shadow: inset 0 0 36px #0006; }
#v226-replays .v226-r-player { padding: 10px; border: 1px solid transparent; border-radius: 6px; }
#v226-replays .v226-r-player.is-active { border-color: #a8915b; box-shadow: inset 0 0 20px #d8b66d0c; }
#v226-replays .v226-r-player-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
#v226-replays .v226-r-portrait { width: 39px; height: 49px; object-fit: cover; object-position: 50% 20%; border: 1px solid #9c8458; border-radius: 3px; background: #191b20; }
#v226-replays .v226-r-identity { display: flex; flex-direction: column; min-width: 0; }
#v226-replays .v226-r-identity strong { font-size: 13px; overflow-wrap: anywhere; color: #f3e5c9; }
#v226-replays .v226-r-identity span { font-size: 10px; color: #b9c7c3; }
#v226-replays .v226-r-deck { margin-left: auto; flex-shrink: 0; font-size: 11px; padding: 4px 8px; background: #07171d80; border: 1px solid #49615f; border-radius: 4px; color: #d8dfd9; }
#v226-replays .v226-r-zone { margin-top: 7px; min-width: 0; }
#v226-replays h4 { color: #bfc7bc; font-size: 10px; letter-spacing: .08em; font-weight: 400; margin-bottom: 4px; }
#v226-replays .v226-r-cards { display: flex; flex-wrap: wrap; gap: 5px; min-height: 20px; align-items: center; }
#v226-replays .v226-r-card { position: relative; display: flex; width: 51px; height: 71px; flex: 0 0 auto; justify-content: center; align-items: center; overflow: hidden; border-radius: 5px; border: 1px solid #d5c8ac; background: linear-gradient(145deg,#fffef6,#e9e2ce); color: #111b21; box-shadow: 0 2px 4px #0006; font-family: Georgia,serif; user-select: none; }
#v226-replays .v226-r-card.is-red { color: #a92432; }
#v226-replays .v226-r-card.is-joker { color: #5a275e; background: linear-gradient(145deg,#fff8e7,#d6c6e4); }
#v226-replays .v226-r-card.is-hidden { background: #190e0e url('../assets/765b410601d5b96385a37a09.webp') center/cover no-repeat; border-color: #af955d; }
#v226-replays .v226-r-card-corner { position: absolute; left: 4px; top: 3px; font-size: 10px; line-height: 1.2; font-weight: 700; }
#v226-replays .v226-r-card-corner.is-bottom { left: auto; right: 4px; top: auto; bottom: 3px; transform: rotate(180deg); }
#v226-replays .v226-r-card-center { font-size: 26px; line-height: 1; }
#v226-replays .v226-r-card.is-joker .v226-r-card-corner.is-bottom { font-size: 7px; }
#v226-replays .v226-r-none { color: #82958e; font-size: 10px; }
#v226-replays .v226-r-piles { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
#v226-replays .v226-r-pile { border: 1px solid #49605b; border-radius: 4px; background: #0d202580; padding: 4px 8px; font-size: 10px; color: #c0cdc5; }
#v226-replays .v226-r-pile summary { cursor: pointer; }
#v226-replays .v226-r-pile[open] { flex-basis: 100%; }
#v226-replays .v226-r-center { padding: 12px 4px; margin: 5px 0; border-top: 1px solid #68827a66; border-bottom: 1px solid #68827a66; text-align: center; }
#v226-replays .v226-r-badges { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 5px 12px; font-size: 11px; color: #b3c8bf; }
#v226-replays .v226-r-badges strong { letter-spacing: .12em; color: #e4c787; }
#v226-replays .v226-r-revolution { background: #8b2931; padding: 1px 8px; border: 1px solid #b9575b; border-radius: 2px; color: #fff1df; }
#v226-replays .v226-r-event { color: #dfdfcc; margin-top: 5px; font-size: 12px; min-height: 18px; overflow-wrap: anywhere; }
#v226-replays .v226-r-controls { margin-top: 15px; }
#v226-replays .v226-r-timeline { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
#v226-replays .v226-r-timeline input { flex: 1 1 auto; min-width: 40px; accent-color: #d4b77a; cursor: pointer; }
#v226-replays .v226-r-progress { font-size: 10px; color: #bfc2bc; flex-shrink: 0; font-variant-numeric: tabular-nums; }
#v226-replays .v226-r-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
#v226-replays .v226-r-actions .v226-r-button { font-size: 12px; padding: 8px 11px; }
#v226-replays .v226-r-play { min-width: 108px; background: linear-gradient(120deg,#765b32,#554126); border-color: #c4a268; color: #fff1d8; }
#v226-replays .v226-r-speed { margin-left: auto; font-size: 11px; color: #c6c1b5; }
#v226-replays select { border: 1px solid #766247; border-radius: 4px; color: #e9e3d3; background: #1c242b; padding: 6px 8px; font: inherit; }
#v226-replays .v226-r-reveal { display: inline-flex; align-items: center; gap: 7px; margin: 14px 0 8px; font-size: 12px; color: #d0bd98; cursor: pointer; }
#v226-replays .v226-r-reveal input { width: 16px; height: 16px; margin: 0; accent-color: #c4a264; }
@media (max-width: 860px) {
  #v226-replays { padding: 10px; }
  #v226-replays .v226-r-panel { max-height: calc(100dvh - 20px); }
  #v226-replays .v226-r-header { padding: 14px 17px; }
  #v226-replays .v226-r-sidebar, #v226-replays .v226-r-main { max-height: calc(100dvh - 133px); }
  #v226-replays .v226-r-layout { grid-template-columns: 220px minmax(0,1fr); }
  #v226-replays .v226-r-main { padding: 14px 12px 20px; }
  #v226-replays .v226-r-board { padding: 7px; }
  #v226-replays .v226-r-player { padding: 7px; }
}
@media (max-width: 640px) {
  #v226-replays { padding: 0; }
  #v226-replays .v226-r-panel { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border-width: 0; }
  #v226-replays .v226-r-header { padding: 12px 14px; }
  #v226-replays h2 { font-size: 20px; }
  #v226-replays .v226-r-subtitle { display: none; }
  #v226-replays .v226-r-close { font-size: 12px; padding: 7px 10px; }
  #v226-replays .v226-r-layout { grid-template-columns: minmax(0,1fr); flex: 1 1 auto; }
  #v226-replays .v226-r-sidebar, #v226-replays .v226-r-main { max-height: calc(100dvh - 80px); }
  #v226-replays .v226-r-sidebar { border: none; }
  #v226-replays .v226-r-main { display: none; }
  #v226-replays.has-replay .v226-r-sidebar { display: none; }
  #v226-replays.has-replay .v226-r-main { display: block; }
  #v226-replays .v226-r-back { display: inline-block; }
  #v226-replays .v226-r-view-head h3 { font-size: 13px; }
  #v226-replays .v226-r-card { width: 43px; height: 61px; }
  #v226-replays .v226-r-card-center { font-size: 23px; }
  #v226-replays .v226-r-card-corner { font-size: 9px; }
  #v226-replays .v226-r-player-head { gap: 7px; }
  #v226-replays .v226-r-identity strong { font-size: 12px; }
  #v226-replays .v226-r-timeline { flex-wrap: wrap; gap: 3px; }
  #v226-replays .v226-r-timeline input { flex-basis: 100%; }
  #v226-replays .v226-r-progress { margin-left: auto; }
  #v226-replays .v226-r-actions { gap: 5px; }
  #v226-replays .v226-r-actions .v226-r-button { padding: 7px 9px; }
  #v226-replays .v226-r-speed { margin: 5px 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { #v226-replays .v226-r-button { transition: none; } }

/* v229: selected replays occupy a full native battle viewport. */
#v226-replays.v229-replay-native { padding: 0; }
#v226-replays.v229-replay-native .v226-r-panel { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
#v226-replays.v229-replay-native .v226-r-header { min-height: 58px; padding: 8px 18px; }
#v226-replays.v229-replay-native .v226-r-header h2 { font-size: 20px; }
#v226-replays.v229-replay-native .v226-r-header .v226-r-subtitle { display: none; }
#v226-replays.v229-replay-native .v226-r-eyebrow { font-size: 8px; margin: 0; }
#v226-replays.v229-replay-native .v226-r-layout { flex: 1 1 auto; min-height: 0; }
#v226-replays.v229-replay-native .v226-r-sidebar, #v226-replays.v229-replay-native .v226-r-main { max-height: none; }
#v226-replays.v229-replay-native.has-replay .v226-r-layout { grid-template-columns: minmax(0,1fr); }
#v226-replays.v229-replay-native.has-replay .v226-r-sidebar { display: none; }
#v226-replays.v229-replay-native.has-replay .v226-r-main { display: flex; padding: 0 12px 8px; overflow: hidden; min-height: 0; }
#v226-replays.v229-replay-native.has-replay .v226-r-viewer { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; width: 100%; }
#v226-replays.v229-replay-native .v226-r-view-head { flex: 0 0 auto; margin: 0; gap: 3px 10px; padding: 5px 0; }
#v226-replays.v229-replay-native .v226-r-view-head p { flex-basis: auto; margin-left: auto; font-size: 10px; }
#v226-replays.v229-replay-native .v226-r-back { display: inline-block; }
#v226-replays.v229-replay-native .v229-r-battle-host { position: relative; flex: 1 1 auto; min-height: 180px; width: 100%; overflow: hidden; border: 1px solid #8a7147; background: #030607; border-radius: 3px; }
#v226-replays.v229-replay-native .v229-r-native-frame { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
#v226-replays.v229-replay-native .v229-r-native-loading { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; font-size: 13px; color: #dfc88f; background: #0c1218; }
#v226-replays.v229-replay-native .v229-r-frame-caption { display: flex; flex: 0 0 auto; gap: 8px; align-items: center; margin: 0; padding: 4px 0; border: 0; text-align: left; }
#v226-replays.v229-replay-native .v229-r-frame-caption .v226-r-badges { gap: 7px; font-size: 10px; flex-shrink: 0; }
#v226-replays.v229-replay-native .v229-r-frame-caption .v226-r-event { min-height: 0; margin: 0; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#v226-replays.v229-replay-native .v226-r-controls { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 0; padding-top: 4px; border-top: 1px solid #5c4e36; }
#v226-replays.v229-replay-native .v226-r-timeline { width: 100%; margin-bottom: 0; gap: 12px; }
#v226-replays.v229-replay-native .v226-r-actions { flex: 1 1 auto; gap: 6px; }
#v226-replays.v229-replay-native .v226-r-actions .v226-r-button { padding: 6px 12px; }
#v226-replays.v229-replay-native .v226-r-speed { margin-left: 4px; }
#v226-replays.v229-replay-native .v226-r-reveal { margin: 0; white-space: nowrap; }
#v226-replays.v229-replay-native .v226-r-controls > .v226-r-help { flex-basis: 100%; font-size: 9px; }
@media(max-width:640px) {
  #v226-replays.v229-replay-native .v226-r-header { min-height: 49px; padding: 5px 10px; }
  #v226-replays.v229-replay-native .v226-r-header h2 { font-size: 17px; }
  #v226-replays.v229-replay-native.has-replay .v226-r-main { padding: 0 4px 5px; }
  #v226-replays.v229-replay-native .v226-r-view-head p { flex-basis: 100%; font-size: 9px; margin-left: 0; }
  #v226-replays.v229-replay-native .v226-r-view-head h3 { font-size: 11px; }
  #v226-replays.v229-replay-native .v226-r-timeline { flex-wrap: nowrap; gap: 6px; }
  #v226-replays.v229-replay-native .v226-r-timeline input { flex-basis: auto; }
  #v226-replays.v229-replay-native .v226-r-progress { font-size: 9px; }
  #v226-replays.v229-replay-native .v226-r-controls { gap: 4px 7px; }
  #v226-replays.v229-replay-native .v226-r-actions { gap: 4px; }
  #v226-replays.v229-replay-native .v226-r-actions .v226-r-button { padding: 5px 7px; font-size: 10px; }
  #v226-replays.v229-replay-native .v226-r-play { min-width: 86px; }
  #v226-replays.v229-replay-native .v226-r-speed { font-size: 9px; margin: 0 0 0 auto; }
  #v226-replays.v229-replay-native .v226-r-speed select { padding: 4px; }
  #v226-replays.v229-replay-native .v226-r-reveal { font-size: 10px; }
  #v226-replays.v229-replay-native .v229-r-frame-caption .v226-r-badges { font-size: 8px; }
}
@media(max-height:480px) and (orientation:landscape) {
  #v226-replays.v229-replay-native .v226-r-header { min-height: 31px; padding: 2px 10px; }
  #v226-replays.v229-replay-native .v226-r-eyebrow, #v226-replays.v229-replay-native .v229-r-frame-caption, #v226-replays.v229-replay-native .v226-r-controls > .v226-r-help { display: none; }
  #v226-replays.v229-replay-native .v226-r-header h2 { font-size: 14px; }
  #v226-replays.v229-replay-native .v226-r-close { padding: 3px 10px; }
  #v226-replays.v229-replay-native .v226-r-view-head { padding: 2px 0; }
  #v226-replays.v229-replay-native .v226-r-view-head p { flex-basis: auto; margin-left: auto; }
}

/* v237: recover vertical space around a selected replay; the native scene and
   its logical viewport/contain scale remain owned by the v236 renderer. */
@media(min-height:481px) {
  #v226-replays.v229-replay-native.has-replay .v226-r-header { min-height:44px; padding:3px 12px; gap:8px; }
  #v226-replays.v229-replay-native.has-replay .v226-r-eyebrow { display:none; }
  #v226-replays.v229-replay-native.has-replay .v226-r-header h2 { font-size:16px; line-height:1.3; }
  #v226-replays.v229-replay-native.has-replay .v226-r-close { min-height:26px; padding:3px 10px; font-size:12px; line-height:1.3; }
  #v226-replays.v229-replay-native.has-replay .v226-r-view-head { padding:2px 0; gap:3px 8px; }
  #v226-replays.v229-replay-native.has-replay .v226-r-view-head h3 { font-size:13px; line-height:1.3; }
  #v226-replays.v229-replay-native.has-replay .v226-r-view-head p { font-size:9px; line-height:1.3; }
  #v226-replays.v229-replay-native.has-replay .v226-r-back { padding:3px 8px; font-size:10px; line-height:1.3; }
  #v226-replays.v229-replay-native.has-replay .v229-r-frame-caption { padding:2px 0; }
  #v226-replays.v229-replay-native.has-replay .v226-r-controls { gap:3px 10px; padding-top:3px; }
  #v226-replays.v229-replay-native.has-replay .v226-r-actions .v226-r-button { min-height:26px; padding:3px 10px; line-height:1.3; }
  #v226-replays.v229-replay-native.has-replay .v226-r-speed { font-size:10px; line-height:1.3; }
  #v226-replays.v229-replay-native.has-replay .v226-r-speed select { padding:3px 5px; font-size:11px; line-height:1.3; }
  #v226-replays.v229-replay-native.has-replay .v226-r-reveal { min-height:26px; font-size:11px; line-height:1.3; }
  #v226-replays.v229-replay-native.has-replay .v226-r-controls > .v226-r-help { display:none; }
}
@media(min-height:481px) and (max-width:640px) {
  #v226-replays.v229-replay-native.has-replay .v226-r-view-head h3 { font-size:11px; }
  #v226-replays.v229-replay-native.has-replay .v226-r-actions .v226-r-button { padding-left:7px; padding-right:7px; }
  #v226-replays.v229-replay-native.has-replay .v226-r-reveal { font-size:10px; }
}

/* v240: fold only archive chrome. The existing flex host grows and the native
   renderer fits the same whole scene; no controls or board nodes are rebuilt. */
#v226-replays.v229-replay-native.has-replay .v226-r-header > div:first-child { min-width:0; }
#v226-replays.v229-replay-native.has-replay .v240-r-fold-toggle { flex:0 0 auto; min-height:24px; padding:2px 8px; font-size:10px; line-height:1.3; white-space:nowrap; }
#v226-replays.v229-replay-native.has-replay .v240-r-toggle-upper { margin-left:auto; }
#v226-replays.v229-replay-native.has-replay .v229-r-frame-caption { display:flex; min-height:28px; }
#v226-replays.v229-replay-native.has-replay .v229-r-frame-caption .v226-r-event { flex:1 1 auto; min-width:0; }
#v226-replays.v229-replay-native.has-replay .v240-r-toggle-lower { margin-left:auto; }
#v226-replays.v229-replay-native.has-replay.v240-r-upper-collapsed .v226-r-header { min-height:28px; padding:2px 12px; gap:6px; }
#v226-replays.v229-replay-native.has-replay.v240-r-upper-collapsed .v240-r-toggle-upper { margin-left:0; margin-right:auto; }
#v226-replays.v229-replay-native.has-replay.v240-r-lower-collapsed .v229-r-frame-caption { min-height:26px; padding:1px 0; justify-content:flex-end; }
@media(max-width:640px) {
  #v226-replays.v229-replay-native.has-replay .v226-r-header { gap:5px; }
  #v226-replays.v229-replay-native.has-replay .v240-r-fold-toggle { padding:2px 6px; font-size:9px; }
  #v226-replays.v229-replay-native.has-replay.v240-r-upper-collapsed .v226-r-header { padding-left:6px; padding-right:6px; }
}
@media(max-height:480px) and (orientation:landscape) {
  #v226-replays.v229-replay-native.has-replay .v229-r-frame-caption { min-height:24px; padding:0; }
  #v226-replays.v229-replay-native.has-replay .v229-r-frame-caption .v226-r-badges,
  #v226-replays.v229-replay-native.has-replay .v229-r-frame-caption .v226-r-event { display:none; }
  #v226-replays.v229-replay-native.has-replay .v240-r-fold-toggle { min-height:22px; padding-top:1px; padding-bottom:1px; }
}


/* SOURCE styles/login-event-v228.css */
#v228-login-event[hidden]{display:none!important;}
#v228-login-event,#v228-login-event *{box-sizing:border-box;}
#v228-login-event{position:fixed;inset:0;z-index:12300;display:grid;place-items:center;padding:18px;background:rgba(2,5,12,.88);color:#f5e8c9;text-align:left;isolation:isolate;}
#v228-login-event .v228-login-event-panel{position:relative;width:min(1060px,100%);border:1px solid #cfb06f;border-radius:8px;background:#0c1019;box-shadow:0 24px 100px #000d,0 0 0 5px #baa06a10,inset 0 0 0 5px #d9b7690b;}
#v228-login-event .v228-login-event-panel::after{content:"";position:absolute;inset:9px;z-index:2;border:1px solid #e2c78545;pointer-events:none;}
#v228-login-event .v228-login-event-scroll{position:relative;max-height:calc(100dvh - 40px);min-height:0;overflow-y:auto;overflow-x:hidden;border-radius:7px;scrollbar-color:#92784d #11141c;overscroll-behavior:contain;}
#v228-login-event .v228-login-event-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.25;filter:saturate(.7);pointer-events:none;}
#v228-login-event .v228-login-event-art{position:absolute;top:0;right:0;bottom:0;width:44%;overflow:hidden;border-radius:0 7px 7px 0;}
#v228-login-event .v228-login-event-art::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0c1019 0%,#0c101900 36%),linear-gradient(0deg,#0c1019 0%,transparent 38%);}
#v228-login-event .v228-login-event-art img{width:100%;height:100%;object-fit:cover;object-position:52% 16%;opacity:.95;}
#v228-login-event .v228-login-event-art span{position:absolute;z-index:1;bottom:25px;right:22px;color:#cbb68b;font:600 9px/1.5 sans-serif;letter-spacing:.12em;}
#v228-login-event .v228-login-event-content{position:relative;z-index:3;width:63%;min-height:560px;padding:42px 22px 34px 48px;background:linear-gradient(90deg,#0c1019e8 8%,#0c101994 78%,transparent);}
#v228-login-event .v228-login-event-kicker{margin:0 0 12px;color:#c7a968;font:700 10px/1.4 sans-serif;letter-spacing:.18em;}
#v228-login-event .v228-login-event-seal{position:absolute;top:47px;right:28px;display:grid;place-items:center;width:48px;height:48px;border:1px solid #bfa26a;border-radius:50%;box-shadow:0 0 0 4px #d7ba7520;color:#f0d49b;font:700 29px/1 Georgia,serif;transform:rotate(-9deg);}
#v228-login-event .v228-login-event-label{display:inline-block;margin:0 0 16px;padding:6px 12px;border:1px solid #b9a16a80;background:#b68c3e18;color:#f4deb0;font:600 12px/1.5 sans-serif;}
#v228-login-event h2{margin:0;color:#fff0c6;font:700 clamp(29px,4.5vw,49px)/1.27 serif;letter-spacing:.05em;text-shadow:0 3px 20px #000;}
#v228-login-event #v228-login-event-description{margin:16px 0 20px;color:#dfd5c2;font:400 13px/1.9 sans-serif;}
#v228-login-event .v228-login-event-gift{padding:16px 17px;border-top:1px solid #c5a36d77;border-bottom:1px solid #c5a36d77;background:linear-gradient(90deg,#aa733919,transparent);}
#v228-login-event .v228-login-event-gift small{display:block;color:#d5bd8b;font:600 11px/1.6 sans-serif;letter-spacing:.1em;}
#v228-login-event .v228-login-event-gift strong{display:block;margin:5px 0;color:#f3dfb6;font:600 14px/1.6 serif;}
#v228-login-event .v228-login-event-gift strong span{display:inline-block;margin:0 12px;color:#ffecad;font:700 clamp(23px,3vw,34px)/1.4 serif;letter-spacing:.14em;}
#v228-login-event .v228-login-event-gift p{margin:6px 0 0;color:#bfb6a6;font:400 11px/1.8 sans-serif;}
#v228-login-event .v228-login-event-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:23px 0 12px;}
#v228-login-event .v228-login-event-actions button{min-height:42px;padding:10px 15px;border:1px solid #d0ad69;border-radius:3px;background:linear-gradient(115deg,#6c2434,#3e1b2c);color:#ffedc7;font:700 12px/1.5 sans-serif;cursor:pointer;}
#v228-login-event #v228-login-event-dismiss{border-color:#bca36a66;background:#0a1019b3;color:#cfbf9e;font-weight:500;}
#v228-login-event #v228-login-event-gifts span{margin-left:8px;color:#e1bd73;font-size:20px;line-height:.8;}
#v228-login-event .v228-login-event-note{margin:0;color:#a99f8d;font:400 10px/1.6 sans-serif;white-space:pre-line;}
#v228-login-event #v228-login-event-close{position:absolute;z-index:8;right:14px;top:14px;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #d1b374;border-radius:50%;background:#090e18eb;color:#f6e3b9;font:400 28px/1 sans-serif;cursor:pointer;}
#v228-login-event button:hover{filter:brightness(1.16);}
#v228-login-event button:focus-visible{outline:3px solid #f1d293;outline-offset:4px;}
@media(max-width:760px){#v228-login-event{padding:10px;}#v228-login-event .v228-login-event-panel{width:min(620px,100%);}#v228-login-event .v228-login-event-content{width:100%;min-height:520px;padding:34px 25px 28px;background:linear-gradient(90deg,#0c1019f0,#0c1019b8 73%,#0c10196b);}#v228-login-event .v228-login-event-art{width:64%;opacity:.34;}#v228-login-event .v228-login-event-seal{display:none;}#v228-login-event .v228-login-event-label{margin-top:5px;padding:5px 8px;font-size:10px;}#v228-login-event .v228-login-event-kicker{font-size:8px;letter-spacing:.12em;padding-right:34px;}#v228-login-event h2{font-size:clamp(29px,6.4vw,42px);}#v228-login-event .v228-login-event-gift{padding:13px;}#v228-login-event .v228-login-event-gift strong span{margin:0 8px;}#v228-login-event #v228-login-event-description{font-size:12px;}#v228-login-event #v228-login-event-close{top:11px;right:11px;width:36px;height:36px;}}
@media(max-height:650px) and (min-width:761px){#v228-login-event .v228-login-event-content{min-height:430px;padding-top:28px;padding-bottom:25px;}#v228-login-event .v228-login-event-label{margin-bottom:10px;}#v228-login-event h2{font-size:34px;}#v228-login-event #v228-login-event-description{margin:10px 0 14px;font-size:12px;}#v228-login-event .v228-login-event-gift{padding-block:10px;}#v228-login-event .v228-login-event-actions{margin-top:15px;}#v228-login-event .v228-login-event-seal{top:33px;}}
@media(prefers-reduced-motion:reduce){#v228-login-event *{scroll-behavior:auto;}}


/* SOURCE styles/startup-screen-visibility.css */
/* The match board is rendered only after a match/tutorial activates it. */
        body:not(.v45-battle-active) > h2,
        body:not(.v45-battle-active) > #turn-info,
        body:not(.v45-battle-active) > #phase-bar,
        body:not(.v45-battle-active) > #revolution-status,
        body:not(.v45-battle-active) > #counter-menu,
        body:not(.v45-battle-active) > #player-chain-menu,
        body:not(.v45-battle-active) > .field-area {
            display:none !important;
        }
        /* Keep the title fade over an opaque background, never over the board. */
        body.shocker-start-transition {
            overflow:hidden !important;
            background:#030303 !important;
        }
        body.shocker-start-transition > *:not(#title-screen):not(#v112-login-loading) {
            display:none !important;
        }


/* SOURCE styles/game-core.css */
body { 
            background: radial-gradient(circle at center, #0a4a2a, #021a0a); 
            color: #fdf5e6; 
            font-family: 'Georgia', serif; 
            text-align: center; 
            padding: 10px; 
            margin: 0; 
            min-height: 100vh;
            transition: background 1s ease-in-out;
        }

        body.revolution-bg {
            background: radial-gradient(circle at center, #4a0a0a, #1a0202); 
        }

        #title-screen {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background-color: #0d0d0d; z-index: 300;
            display: flex; align-items: center; justify-content: center;
            flex-direction: column;
            box-shadow: inset 0 0 150px rgba(0,0,0,1); 
            overflow: hidden;
        }

        

        

        

        

        

        .start-movie-btn {
            position: relative; z-index: 10;
            background: transparent; border: 2px solid #d4c4a8; color: #d4c4a8;
            padding: 15px 40px; font-size: 24px; font-family: 'Courier New', Courier, monospace;
            cursor: pointer; letter-spacing: 5px; transition: 0.3s;
        }
        .start-movie-btn:hover { background: #d4c4a8; color: #111; box-shadow: 0 0 15px rgba(212,196,168,0.5); }

        #phase-bar { 
            background: linear-gradient(90deg, #111, #333, #111); 
            color: #d4af37; 
            padding: 12px; 
            font-size: 20px; 
            font-weight: bold; 
            border: 2px solid #d4af37; 
            border-radius: 8px;
            margin: 10px auto 20px; 
            width: 80%; 
            box-shadow: 0 4px 10px rgba(0,0,0,0.8);
            transition: 0.3s; 
        }

        .field-area { 
            background-color: rgba(0, 0, 0, 0.5); 
            border-radius: 10px; 
            padding: 15px; 
            margin-bottom: 20px; 
            position: relative; 
            box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
        }
        .opponent-area { border: 2px solid #ff4444; }
        .player-area { border: 2px solid #4488ff; }

        .card-zone { display: flex; justify-content: center; gap: 15px; margin-top: 10px; margin-bottom: 10px; min-height: 90px; }

        .card { 
            background: linear-gradient(135deg, #ffffff, #e0e0e0); 
            color: #111; 
            width: 60px; 
            height: 90px; 
            border-radius: 6px; 
            display: flex; align-items: center; justify-content: center; 
            font-size: 22px; font-weight: bold; font-family: sans-serif;
            box-shadow: 3px 3px 8px rgba(0,0,0,0.8); 
            border: 1px solid #777; 
            transition: 0.2s; user-select: none; position: relative; 
        }
        .card-back { 
            background: radial-gradient(circle, #8b0000, #4a0000); 
            background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,215,0,0.1) 5px, rgba(255,215,0,0.1) 10px); 
            border: 2px solid #d4af37;
            color: transparent !important; 
        }
        .clickable-card { cursor: pointer; }
        .clickable-card:hover { transform: translateY(-10px); border-color: #d4af37; box-shadow: 0 0 15px rgba(255,215,0,0.6); }
        .selected-card { border: 4px solid #ff4444 !important; transform: translateY(-10px) scale(1.05); box-shadow: 0 0 20px rgba(255,68,68,0.8); }

        .action-btn { 
            background: linear-gradient(to bottom, #d4af37, #aa8529); 
            color: #111; border: 1px solid #ffdf00; padding: 10px 18px; margin: 0 5px; margin-bottom: 10px; 
            font-size: 15px; font-weight: bold; border-radius: 20px; cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.5);
        }
        .action-btn:hover { background: linear-gradient(to bottom, #ffdf00, #d4af37); transform: translateY(-2px); }
        .confirm-btn { background: linear-gradient(to bottom, #ff4444, #aa0000); color: white; border: 1px solid #ffaaaa; padding: 10px 20px; font-size: 16px; font-weight: bold; border-radius: 20px; cursor: pointer; margin-bottom: 20px; }
        .cancel-btn { background: linear-gradient(to bottom, #666, #333); color: white; border: 1px solid #999; padding: 10px 15px; font-size: 16px; font-weight: bold; border-radius: 20px; cursor: pointer; }

        .counter-area { background-color: rgba(0,0,0,0.7); border: 2px dashed #d4af37; padding: 15px; margin-bottom: 20px; border-radius: 10px; box-shadow: inset 0 0 15px rgba(212,175,55,0.2); }

        .disposal-container { display: flex; justify-content: space-between; gap: 20px; margin-top: 15px; }
        .disposal-box { flex: 1; background-color: rgba(0,0,0,0.4); border-radius: 8px; padding: 10px; min-height: 60px; border: 1px solid rgba(255,255,255,0.1); }
        .disposal-title { font-size: 14px; font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed rgba(255,255,255,0.3); padding-bottom: 3px; color: #ccc; }

        .graveyard-zone, .slash-zone { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
        .grave-card { background-color: #222; color: #888; border: 1px solid #555; font-size: 12px; padding: 4px 6px; border-radius: 3px; font-weight: bold; font-family: sans-serif; }
        .slash-card { background-color: #4a2511; color: #d4af37; border: 1px solid #d4af37; font-size: 12px; padding: 4px 6px; border-radius: 3px; font-weight: bold; font-family: sans-serif; }

        #turn-info { font-size: 18px; font-weight: bold; margin-bottom: 5px; color: #d4af37; text-shadow: 1px 1px 2px #000; }

        .deck-container { position: absolute; right: 30px; top: 30px; width: 60px; height: 90px; }
        .deck-pile { width: 100%; height: 100%; background: radial-gradient(circle, #8b0000, #4a0000); background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,215,0,0.1) 5px, rgba(255,215,0,0.1) 10px); border-radius: 5px; border: 2px solid #d4af37; position: absolute; z-index: 10; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 24px; color: rgba(255,215,0,0.9); text-shadow: 2px 2px 4px black; transition: 0.3s; }
        .deck-bottom-card { width: 100%; height: 100%; background: #eee; color: #111; border-radius: 5px; border: 1px solid #777; position: absolute; z-index: 5; bottom: -15px; right: -15px; transform: rotate(10deg); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: bold; opacity: 0.8; box-shadow: 2px 2px 5px rgba(0,0,0,0.5); font-family: sans-serif; }
        .deck-label { position: absolute; top: -25px; width: 100%; text-align: center; font-size: 12px; font-weight: bold; color: #d4af37; text-shadow: 1px 1px 2px #000; }

        #startup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); z-index: 100; color: #fdf5e6; }
        .toss-cards { display: flex; gap: 50px; margin: 20px 0; }
        .toss-player-box { text-align: center; font-size: 20px; font-weight: bold; }
        .toss-card-visual { width: 100px; height: 150px; background: #fff; color: #111; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 36px; border: 4px solid #d4af37; margin-top: 10px; font-family: sans-serif; }

        .cutin-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 200; display: none; align-items: center; justify-content: center; pointer-events: none; }
        .cutin-banner { 
            width: 100%; text-align: center; font-size: 45px; font-weight: 300; 
            padding: 40px 0; letter-spacing: 15px; 
            animation: chillCutin 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; 
            opacity: 0; font-family: 'Georgia', serif; 
            box-shadow: 0 0 30px rgba(255,255,255,0.05);
            backdrop-filter: blur(8px);
        }
        @keyframes chillCutin { 
            0% { transform: translateY(30px) scale(0.95); opacity: 0; filter: blur(15px); } 
            25% { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); } 
            75% { transform: translateY(-10px) scale(1.02); opacity: 1; filter: blur(0); } 
            100% { transform: translateY(-40px) scale(1.05); opacity: 0; filter: blur(15px); } 
        }
        .bomb-bg { 
            background: linear-gradient(135deg, rgba(255, 105, 180, 0.3), rgba(75, 0, 130, 0.7), rgba(0, 0, 0, 0.6)); 
            color: #ffb6c1; text-shadow: 0 0 15px rgba(255,105,180,0.8); 
            border-top: 1px solid rgba(255,105,180,0.5); border-bottom: 1px solid rgba(255,105,180,0.5);
        }
        .revol-bg { 
            background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 0, 128, 0.7), rgba(0, 0, 0, 0.6)); 
            color: #e0ffff; text-shadow: 0 0 15px rgba(0,255,255,0.8); 
            border-top: 1px solid rgba(0,255,255,0.5); border-bottom: 1px solid rgba(0,255,255,0.5);
        }

        #attack-arrow {
            position: absolute; font-size: 60px; z-index: 250; pointer-events: none; color: #ffcc00; text-shadow: 0 0 15px #ff0000;
        }

        
        html {
            width: 100%;
            min-height: 100%;
            overflow-x: hidden;
            -webkit-text-size-adjust: 100%;
            touch-action: manipulation;
        }

        body {
            width: 100%;
            box-sizing: border-box;
            overflow-x: hidden;
            padding:
                max(8px, env(safe-area-inset-top))
                max(8px, env(safe-area-inset-right))
                max(16px, env(safe-area-inset-bottom))
                max(8px, env(safe-area-inset-left));
        }

        *, *::before, *::after {
            box-sizing: border-box;
        }

        button, .clickable-card {
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }

        @media (hover: none) {
            .clickable-card:hover,
            #player-field .card-back:hover,
            .action-btn:hover,
            .start-movie-btn:hover {
                transform: none;
                box-shadow: inherit;
            }
        }

        @media (max-width: 700px) {
            body {
                padding-left: 6px;
                padding-right: 6px;
            }

            body > h2 {
                font-size: 20px !important;
                letter-spacing: 5px !important;
            }

            

            .start-movie-btn {
                min-height: 52px;
                padding: 12px 22px;
                font-size: 18px;
                letter-spacing: 3px;
            }

            #turn-info {
                font-size: 15px;
            }

            #phase-bar {
                width: 100%;
                padding: 10px 8px;
                margin: 8px auto 12px;
                font-size: 15px;
                line-height: 1.45;
            }

            #action-buttons {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 8px;
                margin-bottom: 10px !important;
            }

            .action-btn,
            .confirm-btn,
            .cancel-btn {
                min-height: 46px;
                font-size: 14px;
                padding: 10px 14px;
                margin: 0 2px 8px;
            }

            .field-area {
                padding: 10px 6px;
                margin-bottom: 12px;
                overflow: hidden;
            }

            .field-area h3 {
                font-size: 16px;
                margin-bottom: 6px;
            }

            .card-zone {
                gap: 7px;
                min-height: 78px;
                margin-top: 7px;
                margin-bottom: 7px;
                padding: 4px 0 8px;
                overflow-x: auto;
                overflow-y: visible;
                justify-content: flex-start;
                scroll-snap-type: x proximity;
                -webkit-overflow-scrolling: touch;
            }

            #opponent-field,
            #player-field {
                justify-content: center;
                overflow-x: visible;
            }

            .card {
                flex: 0 0 49px;
                width: 49px;
                height: 73px;
                font-size: 17px;
                scroll-snap-align: center;
            }

            .selected-card {
                transform: translateY(-5px) scale(1.03);
                border-width: 3px !important;
            }

            .deck-container {
                right: 12px;
                top: 28px;
                width: 42px;
                height: 63px;
            }

            .deck-pile {
                font-size: 17px;
            }

            .deck-bottom-card {
                bottom: -8px;
                right: -8px;
                font-size: 13px;
            }

            .deck-label {
                top: -20px;
                font-size: 10px;
                white-space: nowrap;
            }

            .disposal-container {
                gap: 6px;
                margin-top: 8px;
            }

            .disposal-box {
                min-width: 0;
                padding: 6px 4px;
                min-height: 54px;
            }

            .disposal-title {
                font-size: 11px;
            }

            .grave-card,
            .slash-card {
                font-size: 10px;
                padding: 3px 4px;
            }

            .counter-area {
                padding: 10px 7px;
                margin-bottom: 12px;
            }

            .counter-area h3 {
                font-size: 16px;
            }

            .counter-area p {
                font-size: 13px;
                line-height: 1.5;
                white-space: pre-line;
            }

            #startup-overlay {
                padding:
                    max(12px, env(safe-area-inset-top))
                    10px
                    max(16px, env(safe-area-inset-bottom));
                overflow-y: auto;
            }

            #startup-overlay h1 {
                font-size: 21px;
            }

            #startup-overlay p {
                font-size: 13px;
                line-height: 1.5;
                max-width: 92vw;
            }

            .toss-cards {
                gap: 18px;
                margin: 12px 0;
            }

            .toss-player-box {
                font-size: 14px;
            }

            .toss-card-visual {
                width: 70px;
                height: 105px;
                font-size: 24px;
                border-width: 3px;
            }

            #toss-result-text {
                font-size: 17px;
                height: auto !important;
                min-height: 48px;
            }

            .cutin-banner {
                font-size: clamp(25px, 8vw, 38px);
                padding: 28px 4px;
                letter-spacing: 7px;
            }

            #attack-arrow {
                font-size: 40px;
            }
        }

        @media (max-width: 390px) {

            .action-btn {
                font-size: 13px;
                padding-left: 11px;
                padding-right: 11px;
            }

            .deck-container {
                transform: scale(0.9);
                transform-origin: top right;
            }
        }


        
        .duel-cinematic {
            position: fixed;
            inset: 0;
            z-index: 450;
            display: none;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            pointer-events: none;
            isolation: isolate;
        }

        .duel-cinematic.show {
            display: flex;
        }

        .duel-vignette {
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at center, rgba(255,255,255,.04) 0%, rgba(0,0,0,.3) 42%, rgba(0,0,0,.9) 100%),
                linear-gradient(120deg, rgba(5,8,12,.88), rgba(24,17,8,.78));
            animation: duelFade 1.75s ease both;
        }

        .duel-scanlines {
            position: absolute;
            inset: 0;
            opacity: .18;
            background: repeating-linear-gradient(
                to bottom,
                rgba(255,255,255,.08) 0,
                rgba(255,255,255,.08) 1px,
                transparent 1px,
                transparent 5px
            );
            mix-blend-mode: overlay;
            animation: scanShift .22s linear infinite;
        }

        .duel-flash {
            position: absolute;
            inset: 0;
            background: white;
            opacity: 0;
            animation: duelFlash 1.6s ease-out both;
        }

        .duel-symbol {
            position: absolute;
            font-size: min(58vw, 480px);
            line-height: 1;
            opacity: .06;
            transform: rotate(-10deg) scale(.7);
            filter: blur(2px);
            animation: symbolRise 1.7s cubic-bezier(.2,.8,.2,1) both;
        }

        .duel-panel {
            position: relative;
            width: min(92vw, 960px);
            padding: 26px 22px 30px;
            border-top: 1px solid rgba(255,255,255,.55);
            border-bottom: 1px solid rgba(255,255,255,.4);
            background:
                linear-gradient(90deg, transparent, rgba(0,0,0,.82) 10%, rgba(0,0,0,.9) 50%, rgba(0,0,0,.82) 90%, transparent);
            box-shadow: 0 0 50px rgba(0,0,0,.8);
            text-align: center;
            transform: skewX(-7deg) translateY(28px);
            opacity: 0;
            animation: panelEnter 1.7s cubic-bezier(.16,.8,.2,1) both;
        }

        .duel-panel::before,
        .duel-panel::after {
            content: "";
            position: absolute;
            left: 50%;
            width: min(70%, 560px);
            height: 1px;
            transform: translateX(-50%);
            background: linear-gradient(90deg, transparent, currentColor, transparent);
            opacity: .8;
        }

        .duel-panel::before { top: 9px; }
        .duel-panel::after { bottom: 9px; }

        .duel-kicker {
            font-family: "Courier New", monospace;
            font-size: clamp(11px, 2.6vw, 18px);
            letter-spacing: .42em;
            margin-left: .42em;
            opacity: .76;
            text-transform: uppercase;
        }

        .duel-main {
            margin-top: 7px;
            font-family: Georgia, serif;
            font-size: clamp(34px, 9vw, 82px);
            font-weight: 700;
            letter-spacing: .12em;
            margin-left: .12em;
            line-height: 1.04;
            text-shadow: 0 3px 0 rgba(0,0,0,.65), 0 0 18px currentColor;
        }

        .duel-sub {
            margin-top: 12px;
            font-size: clamp(13px, 3.2vw, 21px);
            letter-spacing: .12em;
            opacity: .9;
        }

        .duel-cinematic.type-onecard { color: #e6edf7; }
        .duel-cinematic.type-pair { color: #f3d07b; }
        .duel-cinematic.type-bomb { color: #ff9bcf; }
        .duel-cinematic.type-revolution { color: #9be8ff; }
        .duel-cinematic.type-joker { color: #d7b5ff; }
        .duel-cinematic.type-result { color: #f0dfaf; }

        .duel-cinematic.enemy .duel-vignette {
            background:
                radial-gradient(circle at center, rgba(255,60,60,.05) 0%, rgba(25,0,0,.4) 44%, rgba(0,0,0,.94) 100%),
                linear-gradient(120deg, rgba(18,0,0,.9), rgba(34,8,8,.82));
        }

        .duel-cinematic.player .duel-vignette {
            background:
                radial-gradient(circle at center, rgba(70,140,255,.07) 0%, rgba(0,10,30,.4) 44%, rgba(0,0,0,.94) 100%),
                linear-gradient(120deg, rgba(0,8,22,.92), rgba(8,24,44,.82));
        }

        @keyframes panelEnter {
            0%   { opacity:0; transform:skewX(-7deg) translateX(-14%) translateY(30px) scale(.94); filter:blur(10px); }
            18%  { opacity:1; filter:blur(0); }
            70%  { opacity:1; transform:skewX(-7deg) translateX(0) translateY(0) scale(1); }
            100% { opacity:0; transform:skewX(-7deg) translateX(8%) translateY(-10px) scale(1.02); filter:blur(4px); }
        }

        @keyframes symbolRise {
            0%   { opacity:0; transform:rotate(-18deg) scale(.45); }
            28%  { opacity:.09; }
            100% { opacity:0; transform:rotate(3deg) scale(1.25); }
        }

        @keyframes duelFlash {
            0% { opacity:.8; }
            8% { opacity:0; }
            20% { opacity:.12; }
            100% { opacity:0; }
        }

        @keyframes duelFade {
            0% { opacity:0; }
            15%, 78% { opacity:1; }
            100% { opacity:0; }
        }

        @keyframes scanShift {
            from { transform:translateY(0); }
            to   { transform:translateY(5px); }
        }

        @media (max-width: 700px) {
            .duel-panel {
                width: 100vw;
                padding: 22px 10px 26px;
            }
            .duel-kicker { letter-spacing: .28em; margin-left: .28em; }
            .duel-main { letter-spacing: .07em; margin-left: .07em; }
            .duel-sub { padding: 0 12px; }
        }


        
        #main-action-dock {
            margin-top: 10px;
            padding-top: 12px;
            border-top: 1px solid rgba(212,175,55,.28);
        }

        #main-action-dock #action-buttons {
            margin-bottom: 10px !important;
        }

        @media (max-width: 700px) {
            #main-action-dock {
                position: sticky;
                bottom: max(0px, env(safe-area-inset-bottom));
                z-index: 80;
                margin: 8px -6px -10px;
                padding:
                    10px 6px
                    max(10px, env(safe-area-inset-bottom));
                background:
                    linear-gradient(to top, rgba(2,10,5,.98), rgba(2,10,5,.9) 76%, rgba(2,10,5,.2));
                border-top: 1px solid rgba(212,175,55,.5);
                box-shadow: 0 -8px 20px rgba(0,0,0,.55);
                backdrop-filter: blur(8px);
            }

            #main-action-dock #action-buttons {
                margin-bottom: 4px !important;
            }

            #main-action-dock .action-btn,
            #main-action-dock .confirm-btn,
            #main-action-dock .cancel-btn {
                min-height: 48px;
            }
        }


        
        html, body {
            width: 100%;
            height: 100%;
            min-height: 100%;
            overflow: hidden !important;
        }

        body {
            height: 100dvh;
            min-height: 100dvh;
            display: grid;
            grid-template-rows: auto auto auto minmax(0, 1fr) minmax(0, 1fr);
            gap: 4px;
            padding:
                max(4px, env(safe-area-inset-top))
                max(5px, env(safe-area-inset-right))
                max(4px, env(safe-area-inset-bottom))
                max(5px, env(safe-area-inset-left));
        }

        body > h2,
        #turn-info,
        #revolution-status,
        #phase-bar,
        #counter-menu,
        #player-chain-menu,
        .field-area {
            margin-top: 0 !important;
            margin-bottom: 0 !important;
        }

        body > h2 {
            font-size: clamp(14px, 2.6vh, 22px) !important;
            line-height: 1;
        }

        #turn-info {
            font-size: clamp(11px, 1.9vh, 15px);
            line-height: 1.1;
        }

        #revolution-status {
            font-size: clamp(10px, 1.6vh, 13px);
            padding: 3px !important;
        }

        #phase-bar {
            width: 100%;
            padding: 5px 7px;
            font-size: clamp(11px, 1.8vh, 14px);
            line-height: 1.2;
        }

        .field-area {
            min-height: 0;
            overflow: hidden;
            padding: 6px 5px;
            display: grid;
            grid-template-rows: auto minmax(54px, 1fr) auto;
            align-content: stretch;
        }

        .player-area {
            grid-template-rows: auto minmax(48px, .8fr) auto auto minmax(50px, .9fr) auto;
        }

        .field-area h3 {
            font-size: clamp(11px, 1.8vh, 14px) !important;
            line-height: 1;
            margin: 0 0 2px !important;
        }

        .card-zone {
            min-height: 0 !important;
            height: 100%;
            margin: 0 !important;
            gap: clamp(3px, 1vw, 7px);
            padding: 2px 0;
            overflow: visible !important;
            align-items: center;
        }

        .card {
            width: min(12vw, 48px);
            height: min(17vw, 68px);
            max-height: 8.8vh;
            min-height: 42px;
            flex: 0 0 auto;
            font-size: clamp(12px, 2.3vh, 17px);
        }

        .disposal-container {
            margin-top: 2px;
            gap: 4px;
            min-height: 0;
        }

        .disposal-box {
            min-height: 0;
            height: clamp(30px, 5.8vh, 44px);
            padding: 3px;
        }

        .disposal-title {
            font-size: clamp(8px, 1.35vh, 10px);
            line-height: 1;
            margin-bottom: 2px;
            padding-bottom: 1px;
        }

        .graveyard-zone,
        .slash-zone {
            max-height: 22px;
            overflow: hidden;
        }

        .grave-card,
        .slash-card {
            font-size: 8px;
        }

        .deck-container {
            width: min(9vw, 38px);
            height: min(13vw, 54px);
            right: 8px;
            top: 19px;
        }

        .deck-label {
            top: -15px;
            font-size: 8px;
        }

        .deck-pile {
            font-size: clamp(11px, 2vh, 15px);
        }

        .deck-bottom-card {
            font-size: 10px;
            right: -5px;
            bottom: -5px;
        }

        #main-action-dock {
            position: static !important;
            margin: 2px 0 0 !important;
            padding: 4px 0 0 !important;
            background: transparent !important;
            box-shadow: none !important;
            backdrop-filter: none !important;
        }

        #main-action-dock #action-buttons {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 4px;
            margin: 0 !important;
        }

        #main-action-dock .action-btn,
        #main-action-dock .confirm-btn,
        #main-action-dock .cancel-btn {
            min-height: 32px !important;
            height: auto;
            padding: 5px 3px;
            margin: 0 !important;
            border-radius: 10px;
            font-size: clamp(9px, 1.45vh, 12px);
            line-height: 1.1;
        }

        #main-action-dock > div[style*="margin-bottom"] {
            margin: 3px 0 0 !important;
        }

        .counter-area {
            position: fixed;
            left: 5px;
            right: 5px;
            bottom: max(5px, env(safe-area-inset-bottom));
            z-index: 120;
            max-height: 32vh;
            overflow: auto;
            padding: 8px 6px;
        }

        .counter-area h3 {
            font-size: 13px;
            margin: 0 0 4px;
        }

        .counter-area p {
            font-size: 11px;
            margin: 3px 0 6px;
        }

        .counter-area .action-btn {
            min-height: 36px;
            padding: 6px 8px;
            font-size: 11px;
        }

        #startup-overlay {
            height: 100dvh;
        }

        .toss-cards {
            margin: 8px 0;
        }

        .toss-card-visual {
            width: min(18vw, 62px);
            height: min(27vw, 92px);
        }

        @media (max-height: 700px) {
            body {
                gap: 2px;
            }

            .field-area {
                padding-top: 4px;
                padding-bottom: 4px;
            }

            .card {
                max-height: 7.7vh;
                min-height: 38px;
            }

            .disposal-box {
                height: 28px;
            }

            .graveyard-zone,
            .slash-zone {
                display: none;
            }

            .player-area {
                grid-template-rows: auto minmax(42px, .75fr) auto auto minmax(44px, .8fr) auto;
            }

            #main-action-dock .action-btn,
            #main-action-dock .confirm-btn,
            #main-action-dock .cancel-btn {
                min-height: 28px !important;
                font-size: 9px;
            }
        }

        @media (orientation: landscape) and (max-height: 500px) {
            body {
                grid-template-columns: 1fr 1fr;
                grid-template-rows: auto auto minmax(0, 1fr);
            }

            body > h2,
            #turn-info,
            #revolution-status,
            #phase-bar {
                grid-column: 1 / -1;
            }

            .opponent-area {
                grid-column: 1;
            }

            .player-area {
                grid-column: 2;
            }
        }


        
        .card {
            flex: 0 0 49px !important;
            width: 49px !important;
            height: 73px !important;
            max-height: none !important;
            min-height: 73px !important;
            font-size: 17px !important;
        }

        .disposal-box {
            height: auto !important;
            min-height: 50px !important;
            padding: 4px !important;
        }

        .graveyard-zone,
        .slash-zone {
            display: flex !important;
            max-height: 26px !important;
            gap: 2px !important;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .graveyard-zone::-webkit-scrollbar,
        .slash-zone::-webkit-scrollbar {
            display: none;
        }

        .grave-card,
        .slash-card {
            display: inline-block !important;
            flex: 0 0 auto !important;
            font-size: 9px !important;
            line-height: 1 !important;
            padding: 2px 3px !important;
        }

        .field-area {
            grid-template-rows: auto minmax(76px, 1fr) auto !important;
        }

        .player-area {
            grid-template-rows:
                auto
                minmax(76px, .9fr)
                auto
                auto
                minmax(76px, 1fr)
                auto !important;
        }

        @media (max-height: 700px) {
            .card {
                flex-basis: 47px !important;
                width: 47px !important;
                height: 70px !important;
                min-height: 70px !important;
                font-size: 16px !important;
            }

            .graveyard-zone,
            .slash-zone {
                display: flex !important;
                max-height: 24px !important;
            }

            .disposal-box {
                min-height: 46px !important;
            }
        }

        @media (max-width: 390px) {
            .card {
                flex-basis: 45px !important;
                width: 45px !important;
                height: 68px !important;
                min-height: 68px !important;
                font-size: 16px !important;
            }
        }


        
        #player-chain-menu {
            position: fixed !important;
            left: 6px !important;
            right: 6px !important;
            top: max(6px, env(safe-area-inset-top)) !important;
            bottom: auto !important;
            z-index: 130 !important;
            max-height: none !important;
            overflow: visible !important;
            padding: 7px 10px 8px !important;
            margin: 0 !important;
            border-radius: 8px !important;
            background: rgba(2, 8, 18, .94) !important;
            box-shadow: 0 4px 16px rgba(0,0,0,.55) !important;
            backdrop-filter: blur(7px);
        }

        #player-chain-menu h3 {
            font-size: 12px !important;
            margin: 0 0 2px !important;
            line-height: 1.1 !important;
        }

        #player-chain-menu #chain-message {
            font-size: 10px !important;
            line-height: 1.25 !important;
            margin: 0 !important;
            white-space: pre-line;
        }

        #player-chain-menu .chain-action-group {
            position: fixed;
            right: max(8px, env(safe-area-inset-right));
            bottom: max(8px, env(safe-area-inset-bottom));
            z-index: 150;
            align-items: stretch;
            width: min(44vw, 180px);
            pointer-events: auto;
        }

        #player-chain-menu .chain-action-group .action-btn {
            width: 100%;
            min-height: 44px !important;
            margin: 0 !important;
            padding: 8px 10px !important;
            border-radius: 12px !important;
            font-size: 11px !important;
            line-height: 1.2 !important;
            box-shadow: 0 4px 12px rgba(0,0,0,.55);
        }

        #counter-menu {
            position: fixed !important;
            left: 6px !important;
            right: 6px !important;
            top: max(6px, env(safe-area-inset-top)) !important;
            bottom: auto !important;
            z-index: 130 !important;
            max-height: none !important;
            overflow: visible !important;
            padding: 7px 10px 8px !important;
            margin: 0 !important;
            border-radius: 8px !important;
            background: rgba(14, 8, 2, .94) !important;
            box-shadow: 0 4px 16px rgba(0,0,0,.55) !important;
            backdrop-filter: blur(7px);
        }

        #counter-menu h3 {
            font-size: 12px !important;
            margin: 0 0 2px !important;
        }

        #counter-menu p {
            font-size: 10px !important;
            margin: 0 !important;
            line-height: 1.25 !important;
        }

        @media (max-width: 390px) {
            #player-chain-menu .chain-action-group {
                width: min(48vw, 168px);
            }
        }



#player-chain-menu .chain-action-group{
    position:absolute !important;
    right:8px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    bottom:auto !important;
    width:112px !important;
    display:flex;
    flex-direction:column;
    gap:6px;
    z-index:5;
}
#player-chain-menu{
    padding-right:128px !important;
}
#player-chain-menu .chain-action-group .action-btn{
    min-height:36px !important;
    font-size:10px !important;
    padding:6px 6px !important;
    width:112px !important;
}
@media (max-width:390px){
 #player-chain-menu{padding-right:108px !important;}
 #player-chain-menu .chain-action-group,
 #player-chain-menu .chain-action-group .action-btn{
   width:94px !important;
   font-size:9px !important;
 }
}


        
        #player-chain-menu {
            padding-right: 10px !important;
        }

        #hand-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 6px;
        }

        #hand-row #hand-zone {
            min-width: 0;
            width: 100%;
            justify-content: center;
        }

        #chain-hand-controls {
            gap: 5px;
            width: 94px;
            flex: 0 0 94px;
            align-self: center;
            z-index: 90;
        }

        #chain-hand-controls .action-btn {
            width: 94px !important;
            min-height: 34px !important;
            padding: 5px 5px !important;
            border-radius: 10px !important;
            font-size: 10px !important;
            line-height: 1.15 !important;
            box-shadow: 0 3px 10px rgba(0,0,0,.5);
        }

        @media (max-width: 390px) {
            #hand-row {
                gap: 4px;
            }

            #chain-hand-controls {
                width: 82px;
                flex-basis: 82px;
            }

            #chain-hand-controls .action-btn {
                width: 82px !important;
                font-size: 9px !important;
                padding-left: 3px !important;
                padding-right: 3px !important;
            }

            body.chain-choice-active #hand-zone {
                justify-content: flex-start !important;
            }
        }


        
        #player-field .card-back {
            background-image: none !important;
            background: #333 !important;
            border-color: #d4af37 !important;
            color: #d4af37 !important;
            transform: translateY(-5px);
            box-shadow: 0 0 15px rgba(255,215,0,.45);
        }

        #player-field .card-back:hover {
            background-image: none !important;
            background: #333 !important;
            border-color: #d4af37 !important;
            color: #d4af37 !important;
            transform: translateY(-5px);
            box-shadow: 0 0 15px rgba(255,215,0,.45);
        }


        
        .duel-cinematic.type-clash {
            color: #f7f0d0;
        }

        .duel-cinematic.type-clash .duel-vignette {
            background:
                radial-gradient(circle at center, rgba(255,255,255,.12) 0%, rgba(30,20,0,.34) 38%, rgba(0,0,0,.94) 100%),
                linear-gradient(120deg, rgba(18,12,4,.92), rgba(32,20,6,.84));
        }

        .duel-cinematic.type-clash .duel-main {
            letter-spacing: .08em;
        }

        .duel-cinematic.type-clash .duel-symbol {
            opacity: .09;
        }


        
        .player-area {
            width: 100% !important;
            min-width: 0 !important;
            left: 0 !important;
            right: 0 !important;
        }

        #player-field,
        #hand-zone {
            width: 100% !important;
            min-width: 0 !important;
            margin-left: auto !important;
            margin-right: auto !important;
            justify-content: center !important;
            transform: none !important;
        }

        
        #hand-row {
            position: relative !important;
            display: block !important;
            width: 100% !important;
            min-width: 0 !important;
            padding: 0 !important;
        }

        #hand-row #hand-zone {
            display: flex !important;
            box-sizing: border-box !important;
        }

        #chain-hand-controls {
            position: absolute !important;
            right: 2px !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            width: 78px !important;
            display: none;
            flex-direction: column;
            gap: 4px;
            z-index: 95;
            pointer-events: auto;
        }

        body.chain-choice-active #chain-hand-controls {
            display: flex !important;
        }

        #chain-hand-controls .action-btn {
            width: 78px !important;
            min-height: 31px !important;
            padding: 4px 3px !important;
            margin: 0 !important;
            font-size: 9px !important;
            line-height: 1.05 !important;
            border-radius: 9px !important;
        }

        
        @media (max-width: 390px) {
            #chain-hand-controls {
                right: -2px !important;
                width: 70px !important;
            }

            #chain-hand-controls .action-btn {
                width: 70px !important;
                font-size: 8px !important;
            }
        }

        
        #player-field .selected-card,
        #hand-zone .selected-card {
            transform: translateY(-5px) scale(1.03) !important;
            transform-origin: center center !important;
        }


        
        #revolution-status {
            position: static !important;
            display: none;
            width: 100% !important;
            max-width: 100% !important;
            min-height: 0 !important;
            height: auto !important;
            padding: 3px 6px !important;
            border: 0 !important;
            border-radius: 0 !important;
            font-size: clamp(9px, 1.35vh, 12px) !important;
            line-height: 1.15 !important;
            box-shadow: none !important;
            text-overflow: ellipsis;
            z-index: auto !important;
            inset: auto !important;
        }

        #revolution-status[style*="display: block"] {
            display: block !important;
        }

        
        body:not(.chain-choice-active) #player-chain-menu,
        body:not(.chain-choice-active) #chain-hand-controls {
            pointer-events: none;
        }


        
        
        body > h2 {
            grid-row: 1 !important;
        }

        #turn-info {
            grid-row: 2 !important;
        }

        #phase-bar {
            grid-row: 3 !important;
            min-height: 28px !important;
            height: auto !important;
            max-height: 38px !important;
            overflow: hidden !important;
        }

        .opponent-area {
            grid-row: 4 !important;
        }

        .player-area {
            grid-row: 5 !important;
        }

        #revolution-status {
            position: fixed !important;
            left: 6px !important;
            right: 6px !important;
            top: 118px;
            width: auto !important;
            height: 22px !important;
            min-height: 22px !important;
            max-height: 22px !important;
            padding: 3px 8px !important;
            margin: 0 !important;
            z-index: 115 !important;
            border: 1px solid rgba(212,175,55,.7) !important;
            border-radius: 7px !important;
            background: linear-gradient(90deg, rgba(70,0,0,.94), rgba(130,0,0,.98), rgba(70,0,0,.94)) !important;
            color: #ffd700 !important;
            font-size: 10px !important;
            line-height: 14px !important;
            letter-spacing: 1px !important;
            white-space: nowrap !important;
            text-align: center !important;
            box-shadow: 0 3px 10px rgba(0,0,0,.55) !important;
            pointer-events: none !important;
            transform: none !important;
            overflow: hidden !important;
        }

        @media (max-width: 390px) {
            #revolution-status {
                left: 4px !important;
                right: 4px !important;
                font-size: 9px !important;
                padding-left: 4px !important;
                padding-right: 4px !important;
            }
        }


        
        body.chain-choice-active #hand-zone {
            transform: translateX(-14px) !important;
            padding-right: 72px !important;
        }

        @media (max-width: 390px) {
            body.chain-choice-active #hand-zone {
                transform: translateX(-10px) !important;
                padding-right: 64px !important;
            }
        }


        
        .graveyard-zone,
        .slash-zone {
            align-items: center;
            gap: 5px !important;
            padding: 2px 1px;
        }

        .grouped-zone-card {
            position: relative;
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            min-width: 30px;
            height: 22px;
            padding: 2px 16px 2px 6px !important;
            flex: 0 0 auto !important;
            border-radius: 5px !important;
            box-shadow:
                2px 2px 0 rgba(255,255,255,.08),
                4px 4px 0 rgba(0,0,0,.18);
        }

        .grouped-zone-number {
            font-weight: 700;
            font-size: 10px;
            line-height: 1;
        }

        .grouped-zone-count {
            position: absolute;
            right: 3px;
            bottom: 2px;
            min-width: 13px;
            height: 13px;
            padding: 1px 2px;
            border-radius: 7px;
            background: rgba(0,0,0,.75);
            color: #fff;
            font-family: sans-serif;
            font-weight: 700;
            font-size: 8px;
            line-height: 11px;
            text-align: center;
            border: 1px solid rgba(255,255,255,.25);
        }

        .grave-card.grouped-zone-card {
            color: #d0d0d0 !important;
        }

        .slash-card.grouped-zone-card {
            color: #ffd86a !important;
        }

        @media (max-width: 390px) {
            .grouped-zone-card {
                min-width: 28px;
                height: 21px;
                padding-left: 5px !important;
                padding-right: 15px !important;
            }

            .grouped-zone-number {
                font-size: 9px;
            }

            .grouped-zone-count {
                font-size: 7px;
            }
        }


        
        .graveyard-zone,
        .slash-zone {
            align-items: flex-start !important;
            gap: 8px !important;
            flex-wrap: nowrap !important;
            justify-content: flex-start !important;
            padding: 1px 2px 3px !important;
        }

        .number-stack {
            position: relative;
            flex: 0 0 34px;
            width: 34px;
            min-width: 34px;
        }

        .stacked-zone-card {
            position: absolute !important;
            width: 30px !important;
            min-width: 30px !important;
            height: 22px !important;
            padding: 0 !important;
            display: flex !important;
            align-items: center;
            justify-content: center;
            border-radius: 4px !important;
            box-sizing: border-box;
            box-shadow:
                0 1px 0 rgba(255,255,255,.18) inset,
                1px 1px 2px rgba(0,0,0,.55);
        }

        .stacked-zone-number {
            position: relative;
            z-index: 20;
            font-size: 10px;
            line-height: 1;
            font-weight: 700;
            text-shadow: 0 1px 1px rgba(0,0,0,.8);
        }

        .grave-card.stacked-zone-card {
            background: linear-gradient(180deg, #313131, #171717) !important;
            color: #d4d4d4 !important;
            border: 1px solid #666 !important;
        }

        .slash-card.stacked-zone-card {
            background: linear-gradient(180deg, #613219, #32180c) !important;
            color: #ffd86a !important;
            border: 1px solid #d4af37 !important;
        }

        
        .grouped-zone-card,
        .grouped-zone-count,
        .grouped-zone-number {
            display: none !important;
        }

        @media (max-width: 390px) {
            .graveyard-zone,
            .slash-zone {
                gap: 6px !important;
            }

            .number-stack {
                flex-basis: 31px;
                width: 31px;
                min-width: 31px;
            }

            .stacked-zone-card {
                width: 28px !important;
                min-width: 28px !important;
                height: 21px !important;
            }

            .stacked-zone-number {
                font-size: 9px;
            }
        }


        
        .player-area,
        .opponent-area,
        .disposal-container,
        .disposal-box,
        .graveyard-zone,
        .slash-zone,
        #hand-row,
        #hand-zone,
        #player-field {
            min-width: 0 !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
        }

        .player-area,
        .opponent-area {
            width: 100% !important;
            overflow: hidden !important;
            contain: layout paint;
        }

        .disposal-container {
            width: 100% !important;
            overflow: hidden !important;
        }

        .disposal-box {
            flex: 1 1 0 !important;
            width: 0 !important;
            overflow: hidden !important;
        }

        .graveyard-zone,
        .slash-zone {
            width: 100% !important;
            max-width: 100% !important;
            overflow-x: auto !important;
            overflow-y: hidden !important;
            overscroll-behavior-x: contain;
            scroll-behavior: auto;
        }

        #hand-row,
        #hand-zone,
        #player-field {
            width: 100% !important;
            left: 0 !important;
            right: 0 !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        
        body:not(.chain-choice-active) #hand-zone {
            transform: none !important;
            padding-right: 0 !important;
        }


        
        .duel-cinematic.type-result {
            color: #f5e8bd;
        }

        .duel-cinematic.type-result .duel-vignette {
            background:
                radial-gradient(circle at center, rgba(255,255,255,.12) 0%, rgba(0,0,0,.3) 35%, rgba(0,0,0,.95) 100%),
                linear-gradient(135deg, rgba(18,12,3,.94), rgba(0,0,0,.98));
            animation: resultBackdrop 2.6s ease both;
        }

        .duel-cinematic.type-result.player {
            --result-main: #f5d66f;
            --result-glow: rgba(245,214,111,.75);
            --result-deep: rgba(80,50,0,.92);
        }

        .duel-cinematic.type-result.enemy {
            --result-main: #ff5d68;
            --result-glow: rgba(255,93,104,.72);
            --result-deep: rgba(75,0,8,.94);
        }

        .duel-cinematic.type-result .duel-panel {
            width: min(96vw, 1040px);
            padding: 34px 20px 38px;
            border-top: 2px solid var(--result-main);
            border-bottom: 2px solid var(--result-main);
            background:
                linear-gradient(90deg, transparent, rgba(0,0,0,.88) 10%, rgba(0,0,0,.96) 50%, rgba(0,0,0,.88) 90%, transparent);
            box-shadow:
                0 0 35px var(--result-glow),
                0 0 100px rgba(0,0,0,.95);
            animation: resultPanel 2.7s cubic-bezier(.16,.8,.2,1) both;
        }

        .duel-cinematic.type-result .duel-kicker {
            color: var(--result-main);
            font-size: clamp(12px, 2.8vw, 19px);
            letter-spacing: .5em;
            text-shadow: 0 0 10px var(--result-glow);
        }

        .duel-cinematic.type-result .duel-main {
            color: var(--result-main);
            font-size: clamp(52px, 14vw, 126px);
            letter-spacing: .08em;
            margin-left: .08em;
            text-shadow:
                0 3px 0 #000,
                0 0 18px var(--result-glow),
                0 0 46px var(--result-glow);
            animation: resultTitle 2.7s cubic-bezier(.17,.84,.2,1) both;
        }

        .duel-cinematic.type-result .duel-sub {
            font-size: clamp(15px, 3.7vw, 24px);
            color: #fff8df;
            text-shadow: 0 0 10px rgba(255,255,255,.3);
        }

        .result-emblem {
            position: absolute;
            z-index: 2;
            font-size: min(46vw, 360px);
            line-height: 1;
            color: var(--result-main, #f5d66f);
            opacity: 0;
            filter: drop-shadow(0 0 18px var(--result-glow, rgba(245,214,111,.7)));
            animation: resultEmblem 2.7s cubic-bezier(.18,.85,.2,1) both;
        }

        .result-shockwave {
            position: absolute;
            z-index: 1;
            width: 18vmin;
            height: 18vmin;
            border: 2px solid var(--result-main, #f5d66f);
            border-radius: 50%;
            opacity: 0;
            box-shadow: 0 0 20px var(--result-glow, rgba(245,214,111,.6));
        }

        .result-shockwave-a {
            animation: resultWaveA 2.5s ease-out both;
        }

        .result-shockwave-b {
            animation: resultWaveB 2.5s .18s ease-out both;
        }

        .result-particles {
            position: absolute;
            inset: 0;
            z-index: 3;
            overflow: hidden;
        }

        .result-particle {
            position: absolute;
            width: 5px;
            height: 18px;
            border-radius: 2px;
            background: var(--result-main, #f5d66f);
            box-shadow: 0 0 10px var(--result-glow, rgba(245,214,111,.65));
            opacity: 0;
            animation: resultParticle 2.2s ease-out forwards;
        }

        .duel-cinematic.type-result.enemy .result-particle {
            width: 3px;
            height: 24px;
        }

        .duel-cinematic.type-result.enemy .duel-panel {
            transform-origin: center;
            animation-name: defeatPanel;
        }

        .duel-cinematic.type-result.enemy .duel-main {
            animation-name: defeatTitle;
        }

        @keyframes resultBackdrop {
            0% { opacity:0; filter:brightness(2.2); }
            12% { opacity:1; filter:brightness(1.5); }
            68% { opacity:1; filter:brightness(1); }
            100% { opacity:0; filter:brightness(.7); }
        }

        @keyframes resultPanel {
            0% { opacity:0; transform:scale(.55) rotateX(24deg); filter:blur(18px); }
            16% { opacity:1; transform:scale(1.08) rotateX(0); filter:blur(0); }
            34% { transform:scale(.98); }
            78% { opacity:1; transform:scale(1); }
            100% { opacity:0; transform:scale(1.06); filter:blur(6px); }
        }

        @keyframes defeatPanel {
            0% { opacity:0; transform:scale(1.35) rotate(-2deg); filter:blur(16px); }
            14% { opacity:1; transform:scale(.94) rotate(1deg); filter:blur(0); }
            30% { transform:scale(1.02) rotate(0); }
            76% { opacity:1; transform:scale(1); }
            100% { opacity:0; transform:translateY(24px) scale(.92); filter:blur(7px); }
        }

        @keyframes resultTitle {
            0% { opacity:0; transform:translateY(36px) scale(.55); letter-spacing:.35em; filter:blur(18px); }
            18% { opacity:1; transform:translateY(0) scale(1.12); letter-spacing:.08em; filter:blur(0); }
            36% { transform:scale(.96); }
            78% { opacity:1; transform:scale(1); }
            100% { opacity:0; transform:translateY(-12px) scale(1.08); filter:blur(6px); }
        }

        @keyframes defeatTitle {
            0% { opacity:0; transform:translateY(-26px) scale(1.5); filter:blur(16px); }
            15% { opacity:1; transform:translateY(0) scale(.92); filter:blur(0); }
            32% { transform:scale(1.04); }
            76% { opacity:1; }
            100% { opacity:0; transform:translateY(18px) scale(.9); filter:blur(7px); }
        }

        @keyframes resultEmblem {
            0% { opacity:0; transform:scale(.25) rotate(-18deg); }
            18% { opacity:.18; transform:scale(1.15) rotate(0); }
            55% { opacity:.1; transform:scale(1); }
            100% { opacity:0; transform:scale(1.45) rotate(8deg); }
        }

        @keyframes resultWaveA {
            0% { opacity:.85; transform:scale(.2); }
            70% { opacity:.18; }
            100% { opacity:0; transform:scale(7); }
        }

        @keyframes resultWaveB {
            0% { opacity:.65; transform:scale(.15); }
            70% { opacity:.12; }
            100% { opacity:0; transform:scale(9); }
        }

        @keyframes resultParticle {
            0% {
                opacity:0;
                transform:translate3d(0,0,0) rotate(0deg) scale(.4);
            }
            16% {
                opacity:1;
            }
            100% {
                opacity:0;
                transform:translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)) scale(1);
            }
        }

        @media (max-width: 700px) {
            .duel-cinematic.type-result .duel-panel {
                padding: 28px 8px 32px;
            }

            .duel-cinematic.type-result .duel-kicker {
                letter-spacing: .32em;
                margin-left: .32em;
            }

            .duel-cinematic.type-result .duel-main {
                font-size: clamp(48px, 16vw, 86px);
            }
        }


        
        .duel-cinematic.type-surrender {
            color: #d7d7d7;
        }

        .duel-cinematic.type-surrender .duel-vignette {
            background:
                radial-gradient(circle at center, rgba(255,255,255,.04) 0%, rgba(20,20,20,.55) 42%, rgba(0,0,0,.96) 100%),
                linear-gradient(135deg, rgba(15,15,15,.94), rgba(0,0,0,.98));
        }

        .duel-cinematic.type-surrender .duel-panel {
            border-top: 1px solid rgba(210,210,210,.55);
            border-bottom: 1px solid rgba(210,210,210,.35);
            background:
                linear-gradient(90deg, transparent, rgba(0,0,0,.84) 12%, rgba(0,0,0,.94) 50%, rgba(0,0,0,.84) 88%, transparent);
            animation: surrenderPanel 1.9s cubic-bezier(.18,.82,.2,1) both;
        }

        .duel-cinematic.type-surrender .duel-main {
            color: #ececec;
            text-shadow:
                0 3px 0 #000,
                0 0 16px rgba(255,255,255,.22);
            animation: surrenderTitle 1.9s ease both;
        }

        .duel-cinematic.type-surrender .duel-kicker {
            color: #a9a9a9;
        }

        .duel-cinematic.type-surrender .duel-sub {
            color: #cfcfcf;
        }

        @keyframes surrenderPanel {
            0% {
                opacity:0;
                transform:translateY(22px) scale(.96);
                filter:blur(10px);
            }
            20% {
                opacity:1;
                transform:translateY(0) scale(1);
                filter:blur(0);
            }
            72% {
                opacity:1;
            }
            100% {
                opacity:0;
                transform:translateY(12px) scale(.98);
                filter:blur(5px);
            }
        }

        @keyframes surrenderTitle {
            0% {
                opacity:0;
                letter-spacing:.28em;
                transform:scale(.88);
                filter:blur(10px);
            }
            22% {
                opacity:1;
                letter-spacing:.1em;
                transform:scale(1);
                filter:blur(0);
            }
            75% {
                opacity:1;
            }
            100% {
                opacity:0;
                transform:scale(.96);
                filter:blur(4px);
            }
        }



.duel-cinematic.type-revolution .duel-panel{border-top:2px solid #ff3030;border-bottom:2px solid #ff3030;box-shadow:0 0 30px #a00;}
.duel-cinematic.type-bomb .duel-panel{border-top:2px solid #b050ff;border-bottom:2px solid #b050ff;box-shadow:0 0 35px #8a2be2;}
.duel-cinematic.type-joker .duel-panel{border-top:2px solid #111;border-bottom:2px solid #555;background:linear-gradient(90deg,#000,#222,#000);box-shadow:0 0 40px #000,0 0 20px #666;}


.theme-special-fx {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.fx-warning-line,
.fx-smoke,
.fx-burst {
    position: absolute;
    opacity: 0;
}

.duel-cinematic.type-revolution .duel-vignette {
    background:
        radial-gradient(circle at center, rgba(255,50,50,.20) 0%, rgba(80,0,0,.55) 42%, rgba(0,0,0,.97) 100%),
        linear-gradient(135deg, rgba(55,0,0,.96), rgba(0,0,0,.98));
    animation: revolutionBackdrop 2.35s ease both;
}

.duel-cinematic.type-revolution .duel-panel {
    border-top: 2px solid #ff3b3b !important;
    border-bottom: 2px solid #ff3b3b !important;
    box-shadow: 0 0 34px rgba(255,0,0,.75), inset 0 0 22px rgba(255,0,0,.18) !important;
    animation: revolutionPanel 2.35s cubic-bezier(.15,.85,.2,1) both;
}

.duel-cinematic.type-revolution .duel-main {
    color: #ff4c4c !important;
    text-shadow: 0 0 16px #ff0000, 0 0 38px rgba(255,0,0,.85), 0 3px 0 #000 !important;
    animation: revolutionTitle 2.35s cubic-bezier(.17,.84,.2,1) both;
}

.duel-cinematic.type-revolution .fx-warning-line {
    left: -15%;
    width: 130%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff2424, transparent);
    box-shadow: 0 0 14px #ff0000;
}

.duel-cinematic.type-revolution .fx-warning-line-a {
    top: 27%;
    animation: warningSweepA 2.2s ease both;
}

.duel-cinematic.type-revolution .fx-warning-line-b {
    bottom: 26%;
    animation: warningSweepB 2.2s .08s ease both;
}

.duel-cinematic.type-bomb .duel-vignette {
    background:
        radial-gradient(circle at center, rgba(194,80,255,.28) 0%, rgba(70,0,95,.58) 42%, rgba(0,0,0,.97) 100%),
        linear-gradient(135deg, rgba(35,0,50,.96), rgba(0,0,0,.99));
    animation: bombBackdrop 2.35s ease both;
}

.duel-cinematic.type-bomb .duel-panel {
    border-top: 2px solid #c267ff !important;
    border-bottom: 2px solid #c267ff !important;
    box-shadow: 0 0 38px rgba(171,65,255,.82), inset 0 0 26px rgba(160,45,255,.22) !important;
    animation: bombPanel 2.35s cubic-bezier(.16,.82,.2,1) both;
}

.duel-cinematic.type-bomb .duel-main {
    color: #d394ff !important;
    text-shadow: 0 0 18px #9a2cff, 0 0 44px rgba(185,82,255,.9), 0 3px 0 #000 !important;
    animation: bombTitle 2.35s cubic-bezier(.17,.84,.2,1) both;
}

.duel-cinematic.type-bomb .fx-burst {
    left: 50%;
    top: 50%;
    width: 26vmin;
    height: 26vmin;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(220,130,255,.8) 12%, rgba(150,30,255,.42) 35%, transparent 68%);
    filter: blur(1px);
    animation: bombBurst 2.2s ease-out both;
}

.duel-cinematic.type-joker .duel-vignette {
    background:
        radial-gradient(circle at center, rgba(255,255,255,.035) 0%, rgba(8,8,8,.72) 40%, rgba(0,0,0,.99) 100%),
        linear-gradient(135deg, #050505, #000);
    animation: jokerBackdrop 2.55s ease both;
}

.duel-cinematic.type-joker .duel-panel {
    border-top: 2px solid #222 !important;
    border-bottom: 2px solid #666 !important;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.94) 12%, rgba(15,15,15,.98) 50%, rgba(0,0,0,.94) 88%, transparent) !important;
    box-shadow: 0 0 45px #000, 0 0 22px rgba(120,120,120,.35) !important;
    animation: jokerPanel 2.55s cubic-bezier(.15,.85,.2,1) both;
}

.duel-cinematic.type-joker .duel-main {
    color: #d0d0d0 !important;
    text-shadow: 0 0 10px #fff, 0 0 28px rgba(255,255,255,.28), 0 3px 0 #000 !important;
    animation: jokerTitle 2.55s cubic-bezier(.17,.84,.2,1) both;
}

.duel-cinematic.type-joker .fx-smoke {
    inset: -20%;
    background:
        radial-gradient(circle at 20% 40%, rgba(90,90,90,.18), transparent 34%),
        radial-gradient(circle at 75% 65%, rgba(120,120,120,.14), transparent 32%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,.05), transparent 40%);
    filter: blur(24px);
    animation: jokerSmoke 2.5s ease both;
}

.duel-cinematic.type-joker .fx-warning-line {
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, #111 0 14px, #6d0000 14px 28px);
    box-shadow: 0 0 10px rgba(180,0,0,.7);
}

.duel-cinematic.type-joker .fx-warning-line-a {
    top: 18%;
    animation: jokerLine 2.45s ease both;
}

.duel-cinematic.type-joker .fx-warning-line-b {
    bottom: 18%;
    animation: jokerLine 2.45s .12s ease both reverse;
}

body.fx-revolution-shake .card {
    animation: cardRevolutionShake .55s linear 3;
}

body.fx-bomb-freeze .field-area {
    filter: saturate(.7) brightness(.8);
}

body.fx-joker-dark .field-area {
    filter: brightness(.7) contrast(1.08);
}

body.fx-joker-dark #phase-bar,
body.fx-joker-dark #turn-info {
    filter: brightness(.9);
}

@keyframes revolutionBackdrop {
    0% { opacity:0; filter:brightness(2); }
    12% { opacity:1; filter:brightness(1.45); }
    65% { opacity:1; filter:brightness(1); }
    100% { opacity:0; filter:brightness(.7); }
}

@keyframes revolutionPanel {
    0% { opacity:0; transform:translateX(-18%) skewX(-8deg) scale(.92); filter:blur(14px); }
    18% { opacity:1; transform:translateX(0) skewX(-8deg) scale(1.06); filter:blur(0); }
    38% { transform:skewX(-8deg) scale(.98); }
    78% { opacity:1; }
    100% { opacity:0; transform:translateX(10%) skewX(-8deg) scale(1.03); filter:blur(5px); }
}

@keyframes revolutionTitle {
    0% { opacity:0; transform:scale(.5) rotate(-2deg); letter-spacing:.34em; filter:blur(18px); }
    18% { opacity:1; transform:scale(1.16) rotate(0); letter-spacing:.08em; filter:blur(0); }
    36% { transform:scale(.96); }
    100% { opacity:0; transform:scale(1.08); filter:blur(5px); }
}

@keyframes warningSweepA {
    0% { opacity:0; transform:translateX(-80%); }
    18% { opacity:1; }
    100% { opacity:0; transform:translateX(80%); }
}

@keyframes warningSweepB {
    0% { opacity:0; transform:translateX(80%); }
    18% { opacity:1; }
    100% { opacity:0; transform:translateX(-80%); }
}

@keyframes bombBackdrop {
    0% { opacity:0; filter:brightness(.4); }
    20% { opacity:1; filter:brightness(.75); }
    27% { filter:brightness(2.4); }
    34% { filter:brightness(.9); }
    100% { opacity:0; filter:brightness(.6); }
}

@keyframes bombPanel {
    0% { opacity:0; transform:scale(.82); filter:blur(16px); }
    18% { opacity:1; transform:scale(1.02); filter:blur(0); }
    26% { transform:scale(1.12); }
    34% { transform:scale(.96); }
    100% { opacity:0; transform:scale(1.04); filter:blur(5px); }
}

@keyframes bombTitle {
    0% { opacity:0; transform:scale(.45); filter:blur(16px); }
    20% { opacity:1; transform:scale(1.08); filter:blur(0); }
    28% { transform:scale(1.28); }
    36% { transform:scale(.94); }
    100% { opacity:0; transform:scale(1.06); filter:blur(5px); }
}

@keyframes bombBurst {
    0% { opacity:0; transform:translate(-50%,-50%) scale(.1); }
    22% { opacity:.18; }
    28% { opacity:1; transform:translate(-50%,-50%) scale(1.8); }
    38% { opacity:.35; transform:translate(-50%,-50%) scale(3.2); }
    100% { opacity:0; transform:translate(-50%,-50%) scale(5.5); }
}

@keyframes jokerBackdrop {
    0% { opacity:0; filter:brightness(.2); }
    18% { opacity:.62; filter:brightness(.5); }
    72% { opacity:.62; filter:brightness(.42); }
    100% { opacity:0; filter:brightness(.2); }
}

@keyframes jokerPanel {
    0% { opacity:0; transform:scaleY(.25) scaleX(.9); filter:blur(16px); }
    20% { opacity:1; transform:scaleY(1.04) scaleX(1); filter:blur(0); }
    34% { transform:scaleY(.96); }
    78% { opacity:1; }
    100% { opacity:0; transform:scaleY(.82) scaleX(1.03); filter:blur(6px); }
}

@keyframes jokerTitle {
    0% { opacity:0; transform:translateY(18px) scale(.72); letter-spacing:.3em; filter:blur(14px); }
    22% { opacity:1; transform:translateY(0) scale(1.06); letter-spacing:.12em; filter:blur(0); }
    40% { transform:scale(.98); }
    100% { opacity:0; transform:translateY(-10px) scale(1.03); filter:blur(5px); }
}

@keyframes jokerSmoke {
    0% { opacity:0; transform:scale(.8) rotate(0deg); }
    20% { opacity:.9; }
    100% { opacity:0; transform:scale(1.4) rotate(8deg); }
}

@keyframes jokerLine {
    0% { opacity:0; transform:translateX(-100%); }
    20% { opacity:.8; }
    100% { opacity:0; transform:translateX(100%); }
}

@keyframes cardRevolutionShake {
    0%,100% { transform:translate(0,0) rotate(0); }
    20% { transform:translate(-1px,1px) rotate(-.4deg); }
    40% { transform:translate(1px,-1px) rotate(.4deg); }
    60% { transform:translate(-1px,0) rotate(-.3deg); }
    80% { transform:translate(1px,1px) rotate(.3deg); }
}



#duel-cinematic.duel-cinematic.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
}

#duel-cinematic .theme-special-fx,
#duel-cinematic .duel-panel,
#duel-cinematic .duel-symbol,
#duel-cinematic .duel-vignette,
#duel-cinematic .duel-flash {
    pointer-events: none !important;
}

#duel-cinematic.type-revolution,
#duel-cinematic.type-bomb,
#duel-cinematic.type-joker {
    background: rgba(0,0,0,.15);
}


        
        .opponent-hand-display {
            position: absolute;
            left: 8px;
            top: 8px;
            z-index: 25;
            width: 118px;
            min-height: 54px;
            padding: 4px 5px 5px;
            border: 1px solid rgba(255,110,110,.45);
            border-radius: 8px;
            background: rgba(15,0,0,.72);
            box-shadow: 0 3px 10px rgba(0,0,0,.55);
            backdrop-filter: blur(5px);
            pointer-events: none;
        }

        .opponent-hand-label {
            color: #ffb1b1;
            font-size: 9px;
            line-height: 1;
            text-align: left;
            margin-bottom: 4px;
            letter-spacing: .04em;
            white-space: nowrap;
        }

        .opponent-hand-cards {
            position: relative;
            width: 100%;
            height: 34px;
            overflow: visible;
        }

        .opponent-mini-card {
            position: absolute;
            top: 0;
            width: 24px;
            height: 34px;
            border-radius: 4px;
            border: 1px solid #d4af37;
            background:
                repeating-linear-gradient(
                    45deg,
                    transparent,
                    transparent 3px,
                    rgba(255,215,0,.12) 3px,
                    rgba(255,215,0,.12) 6px
                ),
                radial-gradient(circle, #8b0000, #3b0000);
            box-shadow: 1px 2px 4px rgba(0,0,0,.65);
            transform-origin: bottom center;
        }

        .opponent-mini-empty {
            color: #a87979;
            font-size: 9px;
            line-height: 30px;
            text-align: left;
        }

        @media (max-width: 390px) {
            .opponent-hand-display {
                left: 5px;
                top: 5px;
                width: 104px;
                min-height: 48px;
                padding: 3px 4px 4px;
            }

            .opponent-hand-label {
                font-size: 8px;
                margin-bottom: 3px;
            }

            .opponent-hand-cards {
                height: 30px;
            }

            .opponent-mini-card {
                width: 21px;
                height: 30px;
            }
        }


.opponent-hand-display{min-height:88px!important;}
.opponent-chain-log-title{margin-top:4px;padding-top:4px;border-top:1px solid rgba(255,130,130,.24);color:#d88f8f;font-family:"Courier New",monospace;font-size:8px;line-height:1;letter-spacing:.12em;text-align:left;}
.opponent-chain-log{
    margin-top:3px;
    max-height:42px;
    overflow-y:auto;
    text-align:left;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,130,130,.62) rgba(35,0,0,.3);
    -webkit-overflow-scrolling:touch;
    padding-right:2px;
}
.opponent-chain-log::-webkit-scrollbar{width:4px;}
.opponent-chain-log::-webkit-scrollbar-track{background:rgba(35,0,0,.3);border-radius:4px;}
.opponent-chain-log::-webkit-scrollbar-thumb{background:rgba(255,130,130,.62);border-radius:4px;}
.opponent-chain-log-entry{display:grid;gap:1px;padding:2px 3px;margin-bottom:2px;border-left:2px solid rgba(255,100,100,.55);border-radius:3px;background:rgba(70,0,0,.28);font-size:8px;line-height:1.2;}
.opponent-chain-log-cards{color:#ffd3a8;font-weight:700;word-break:break-all;}
.opponent-chain-log-action{color:#ff9f9f;}
.opponent-chain-log-empty{color:#8f6d6d;font-size:8px;line-height:1.2;padding:2px 1px;}
.opponent-chain-log-entry.surrender{border-left-color:#777;background:rgba(30,30,30,.35);}
@media(max-width:390px){.opponent-hand-display{min-height:82px!important}.opponent-chain-log{max-height:36px}.opponent-chain-log-title,.opponent-chain-log-entry,.opponent-chain-log-empty{font-size:7px}}


        .duel-cinematic.type-pair { color: #ff9d2e !important; }
        .duel-cinematic.type-pair .duel-panel {
            border-top: 2px solid #ff9d2e !important;
            border-bottom: 2px solid #ff9d2e !important;
            box-shadow: 0 0 32px rgba(255,126,0,.72), inset 0 0 20px rgba(255,126,0,.16) !important;
        }
        .duel-cinematic.type-pair .duel-main {
            color: #ffad42 !important;
            text-shadow: 0 3px 0 #000, 0 0 16px rgba(255,126,0,.9), 0 0 38px rgba(255,126,0,.6) !important;
        }

        .duel-cinematic.type-allslash { color: #5dff8b; }
        .duel-cinematic.type-allslash .duel-vignette {
            background:
                radial-gradient(circle at center, rgba(70,255,130,.18) 0%, rgba(0,75,30,.54) 42%, rgba(0,0,0,.97) 100%),
                linear-gradient(135deg, rgba(0,45,18,.96), rgba(0,0,0,.99));
        }
        .duel-cinematic.type-allslash .duel-panel {
            border-top: 2px solid #4cff7d !important;
            border-bottom: 2px solid #4cff7d !important;
            box-shadow: 0 0 38px rgba(25,255,105,.72), inset 0 0 24px rgba(25,255,105,.16) !important;
            animation: allSlashPanel 2.1s cubic-bezier(.15,.85,.2,1) both;
        }
        .duel-cinematic.type-allslash .duel-main {
            color: #62ff90 !important;
            text-shadow: 0 3px 0 #000, 0 0 18px rgba(40,255,110,.95), 0 0 44px rgba(40,255,110,.62) !important;
            animation: allSlashTitle 2.1s cubic-bezier(.17,.84,.2,1) both;
        }
        @keyframes allSlashPanel {
            0% { opacity:0; transform:skewX(-8deg) translateX(-22%) scale(.9); filter:blur(14px); }
            18% { opacity:1; transform:skewX(-8deg) translateX(0) scale(1.07); filter:blur(0); }
            38% { transform:skewX(-8deg) scale(.98); }
            78% { opacity:1; }
            100% { opacity:0; transform:skewX(-8deg) translateX(16%) scale(1.04); filter:blur(6px); }
        }
        @keyframes allSlashTitle {
            0% { opacity:0; transform:translateX(-40px) scale(.62); letter-spacing:.35em; filter:blur(16px); }
            20% { opacity:1; transform:translateX(0) scale(1.14); letter-spacing:.1em; filter:blur(0); }
            38% { transform:scale(.96); }
            100% { opacity:0; transform:translateX(28px) scale(1.06); filter:blur(5px); }
        }


        
        .persistent-joker-noise {
            position: fixed;
            inset: 0;
            z-index: 4;
            display: none;
            pointer-events: none;
            overflow: hidden;
            isolation: isolate;
        }

        .persistent-joker-noise.active {
            display: block;
        }

        .persistent-joker-grain,
        .persistent-joker-scratches,
        .persistent-joker-vignette,
        .persistent-joker-flicker {
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        .persistent-joker-grain {
            opacity: .2;
            background-image:
                url('data:image/svg+xml;utf8,<svg viewBox="0 0 180 180" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.92" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.55"/></svg>');
            mix-blend-mode: screen;
            filter: grayscale(1) contrast(1.5);
            animation: persistentJokerGrain .16s steps(2) infinite;
        }

        .persistent-joker-scratches {
            opacity: .42;
            background:
                repeating-linear-gradient(
                    90deg,
                    transparent 0,
                    transparent 11%,
                    rgba(255,255,255,.08) 11.1%,
                    transparent 11.35%,
                    transparent 27%,
                    rgba(255,255,255,.04) 27.1%,
                    transparent 27.25%
                ),
                repeating-linear-gradient(
                    0deg,
                    transparent 0,
                    transparent 7px,
                    rgba(0,0,0,.28) 8px,
                    transparent 10px
                );
            animation: persistentJokerScratches .42s steps(2) infinite;
        }

        .persistent-joker-vignette {
            background:
                radial-gradient(circle at center,
                    rgba(0,0,0,.02) 0%,
                    rgba(0,0,0,.18) 48%,
                    rgba(0,0,0,.5) 100%),
                linear-gradient(180deg,
                    rgba(0,0,0,.18),
                    rgba(0,0,0,.03) 35%,
                    rgba(0,0,0,.12) 70%,
                    rgba(0,0,0,.3));
            box-shadow:
                inset 0 0 90px rgba(0,0,0,.75),
                inset 0 0 180px rgba(0,0,0,.5);
        }

        .persistent-joker-flicker {
            background: rgba(0,0,0,.12);
            animation: persistentJokerFlicker .18s infinite;
            mix-blend-mode: multiply;
        }

        body.joker-aura-active::after {
            content: "";
            position: fixed;
            inset: 0;
            z-index: 3;
            pointer-events: none;
            background:
                radial-gradient(circle at center,
                    transparent 0%,
                    rgba(0,0,0,.08) 45%,
                    rgba(0,0,0,.32) 100%);
        }

        @keyframes persistentJokerGrain {
            0%   { transform: translate(0,0) scale(1.04); }
            25%  { transform: translate(-2%,1%) scale(1.05); }
            50%  { transform: translate(1%,-2%) scale(1.03); }
            75%  { transform: translate(2%,2%) scale(1.06); }
            100% { transform: translate(-1%,-1%) scale(1.04); }
        }

        @keyframes persistentJokerScratches {
            0%   { transform: translateX(0); opacity:.34; }
            35%  { transform: translateX(-1.5%); opacity:.48; }
            70%  { transform: translateX(1%); opacity:.26; }
            100% { transform: translateX(0); opacity:.4; }
        }

        @keyframes persistentJokerFlicker {
            0%   { opacity:.18; }
            20%  { opacity:.05; }
            35%  { opacity:.24; }
            55%  { opacity:.1; }
            75%  { opacity:.28; }
            100% { opacity:.14; }
        }

        
        #duel-cinematic {
            z-index: 9999 !important;
        }

        #player-chain-menu,
        #counter-menu,
        #chain-hand-controls {
            z-index: 150 !important;
        }


        
        #startup-overlay {
            background:
                radial-gradient(circle at center, rgba(65,45,10,.16), rgba(0,0,0,.96) 62%),
                rgba(0,0,0,.97) !important;
            overflow: hidden;
        }

        #startup-overlay::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            opacity: .22;
            background:
                repeating-linear-gradient(
                    to bottom,
                    rgba(255,255,255,.05) 0,
                    rgba(255,255,255,.05) 1px,
                    transparent 1px,
                    transparent 5px
                );
            animation: tossScan 6s linear infinite;
        }

        .toss-cards {
            perspective: 1100px;
            gap: clamp(28px, 10vw, 90px) !important;
            position: relative;
            z-index: 2;
        }

        .toss-player-box {
            position: relative;
        }

        .toss-card-visual {
            position: relative;
            transform-style: preserve-3d;
            backface-visibility: hidden;
            will-change: transform, filter, opacity;
            box-shadow:
                0 10px 24px rgba(0,0,0,.62),
                0 0 0 rgba(212,175,55,0);
        }

        .toss-card-visual.card-back {
            color: transparent !important;
        }

        .toss-card-visual.card-back::after {
            content: "✦";
            position: absolute;
            inset: 7px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #d4af37;
            font-size: 32px;
            border: 1px solid rgba(212,175,55,.65);
            border-radius: 7px;
            background:
                repeating-linear-gradient(
                    45deg,
                    transparent 0 5px,
                    rgba(212,175,55,.09) 5px 10px
                );
            text-shadow: 0 0 12px rgba(212,175,55,.7);
        }

        .toss-card-visual.toss-waiting {
            animation: tossHover 1.25s ease-in-out infinite;
        }

        .toss-card-visual.toss-reveal-left {
            animation: tossRevealLeft 1.45s cubic-bezier(.16,.8,.2,1) forwards;
        }

        .toss-card-visual.toss-reveal-right {
            animation: tossRevealRight 1.45s cubic-bezier(.16,.8,.2,1) forwards;
        }

        .toss-card-visual.toss-winner {
            animation: tossWinnerPulse 1.15s ease-in-out 2;
            border-color: #ffe27a !important;
            box-shadow:
                0 12px 28px rgba(0,0,0,.7),
                0 0 20px rgba(255,226,122,.9),
                0 0 46px rgba(255,190,30,.5);
        }

        .toss-card-visual.toss-loser {
            filter: grayscale(.7) brightness(.62);
            transform: scale(.94);
        }

        .toss-card-visual.toss-draw {
            animation: tossDrawShake .45s linear 2;
        }

        #toss-result-text {
            position: relative;
            z-index: 3;
            transition: color .3s ease, text-shadow .3s ease;
        }

        #toss-result-text.toss-result-ready {
            animation: tossResultEnter .7s cubic-bezier(.2,.8,.2,1) both;
        }

        .toss-impact-flash {
            position: absolute;
            inset: 0;
            pointer-events: none;
            opacity: 0;
            z-index: 1;
            background: white;
        }

        .toss-impact-flash.active {
            animation: tossImpactFlash .6s ease-out both;
        }

        @keyframes tossHover {
            0%,100% { transform: translateY(0) rotateY(0deg); box-shadow: 0 10px 24px rgba(0,0,0,.62); }
            50% { transform: translateY(-8px) rotateY(4deg); box-shadow: 0 16px 34px rgba(0,0,0,.72); }
        }

        @keyframes tossRevealLeft {
            0% { transform: translateX(-16px) rotateY(0deg) rotateZ(-3deg) scale(.92); filter: brightness(.45) blur(1px); }
            38% { transform: translateX(0) rotateY(540deg) rotateZ(2deg) scale(1.12); filter: brightness(1.8) blur(0); }
            72% { transform: rotateY(720deg) rotateZ(-1deg) scale(.98); filter: brightness(1.08); }
            100% { transform: rotateY(720deg) rotateZ(0) scale(1); filter: brightness(1); }
        }

        @keyframes tossRevealRight {
            0% { transform: translateX(16px) rotateY(0deg) rotateZ(3deg) scale(.92); filter: brightness(.45) blur(1px); }
            38% { transform: translateX(0) rotateY(-540deg) rotateZ(-2deg) scale(1.12); filter: brightness(1.8) blur(0); }
            72% { transform: rotateY(-720deg) rotateZ(1deg) scale(.98); filter: brightness(1.08); }
            100% { transform: rotateY(-720deg) rotateZ(0) scale(1); filter: brightness(1); }
        }

        @keyframes tossWinnerPulse {
            0%,100% { transform: scale(1); }
            50% { transform: scale(1.1) translateY(-4px); }
        }

        @keyframes tossDrawShake {
            0%,100% { transform: translateX(0); }
            20% { transform: translateX(-5px) rotate(-1deg); }
            40% { transform: translateX(5px) rotate(1deg); }
            60% { transform: translateX(-3px); }
            80% { transform: translateX(3px); }
        }

        @keyframes tossResultEnter {
            0% { opacity:0; transform:translateY(18px) scale(.9); filter:blur(8px); }
            100% { opacity:1; transform:translateY(0) scale(1); filter:blur(0); }
        }

        @keyframes tossImpactFlash {
            0% { opacity:.9; }
            18% { opacity:0; }
            36% { opacity:.16; }
            100% { opacity:0; }
        }

        @keyframes tossScan {
            from { transform: translateY(0); }
            to { transform: translateY(20px); }
        }

        @media (max-width: 700px) {
            .toss-card-visual {
                width: 76px !important;
                height: 114px !important;
                font-size: 26px !important;
            }

            .toss-card-visual.card-back::after {
                font-size: 24px;
            }
        }


        
        body.revolution-active #player-field .card,
        body.revolution-active #opponent-field .card,
        body.revolution-active #hand-zone .card,
        body.revolution-active #opponent-hand-display .opponent-mini-card {
            animation: revolutionPersistentShake .34s steps(2, end) infinite !important;
            transform-origin: center center;
            will-change: transform;
        }

        body.revolution-active #player-field,
        body.revolution-active #opponent-field,
        body.revolution-active #hand-zone,
        body.revolution-active #opponent-hand-display {
            filter: saturate(1.08) contrast(1.03);
        }

        @keyframes revolutionPersistentShake {
            0%   { transform: translate(0, 0) rotate(0deg); }
            20%  { transform: translate(-0.8px, 0.5px) rotate(-0.25deg); }
            40%  { transform: translate(0.7px, -0.6px) rotate(0.22deg); }
            60%  { transform: translate(-0.5px, -0.3px) rotate(-0.18deg); }
            80%  { transform: translate(0.6px, 0.7px) rotate(0.2deg); }
            100% { transform: translate(0, 0) rotate(0deg); }
        }

        body.revolution-active #player-field .selected-card,
        body.revolution-active #hand-zone .selected-card,
        body.revolution-active #opponent-field .selected-card {
            animation: revolutionSelectedShake .34s steps(2, end) infinite !important;
        }

        @keyframes revolutionSelectedShake {
            0%   { transform: translateY(-5px) scale(1.03) rotate(0deg); }
            25%  { transform: translate(-0.8px, -4.5px) scale(1.03) rotate(-0.25deg); }
            50%  { transform: translate(0.7px, -5.6px) scale(1.03) rotate(0.22deg); }
            75%  { transform: translate(-0.4px, -4.8px) scale(1.03) rotate(-0.18deg); }
            100% { transform: translateY(-5px) scale(1.03) rotate(0deg); }
        }


        
        #hand-zone .card[data-refresh-order] {
            position: relative;
            overflow: visible !important;
        }

        #hand-zone .card[data-refresh-order]::after {
            content: attr(data-refresh-order);
            position: absolute;
            left: -6px;
            top: -8px;
            z-index: 40;
            min-width: 22px;
            height: 22px;
            padding: 0 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            border-radius: 50%;
            border: 2px solid #fff4b0;
            background:
                radial-gradient(circle at 35% 30%, #ffe994, #c58513 72%);
            color: #241300;
            font-family: sans-serif;
            font-size: 12px;
            font-weight: 900;
            line-height: 1;
            box-shadow:
                0 2px 7px rgba(0,0,0,.75),
                0 0 11px rgba(255,196,53,.65);
            pointer-events: none;
        }

        @media (max-width: 390px) {
            #hand-zone .card[data-refresh-order]::after {
                left: -5px;
                top: -7px;
                min-width: 20px;
                height: 20px;
                font-size: 11px;
            }
        }


        
        #attack-arrow {
            display: none !important;
        }

        .attack-motion-layer {
            position: fixed;
            inset: 0;
            z-index: 900;
            pointer-events: none;
            overflow: hidden;
        }

        .attack-card-clone,
        .attack-afterimage {
            position: fixed;
            margin: 0 !important;
            pointer-events: none;
            transform-origin: center;
            will-change: transform, opacity, filter;
        }

        .attack-card-clone {
            z-index: 904;
            filter:
                drop-shadow(0 0 8px rgba(255,230,150,.95))
                drop-shadow(0 0 20px rgba(255,65,15,.7));
        }

        .attack-afterimage {
            z-index: 902;
            opacity: .22;
            filter:
                saturate(1.4)
                brightness(1.25)
                drop-shadow(0 0 8px rgba(255,65,15,.55));
        }

        .attack-slash-mark {
            position: fixed;
            z-index: 908;
            width: 8px;
            height: 170px;
            opacity: 0;
            border-radius: 50%;
            transform:
                translate(-50%, -50%)
                rotate(42deg)
                scaleY(.15);
            background:
                linear-gradient(
                    to bottom,
                    transparent,
                    rgba(255,245,205,.98) 24%,
                    #ff3218 50%,
                    rgba(255,205,95,.94) 76%,
                    transparent
                );
            box-shadow:
                0 0 8px #fff,
                0 0 18px #ff3b00,
                0 0 38px rgba(255,35,0,.78);
        }

        .attack-impact-ring {
            position: fixed;
            z-index: 906;
            width: 28px;
            height: 28px;
            opacity: 0;
            border: 3px solid rgba(255,220,130,.96);
            border-radius: 50%;
            transform:
                translate(-50%, -50%)
                scale(.2);
            box-shadow:
                0 0 12px #ff4a00,
                inset 0 0 8px #fff;
        }

        .attack-motion-layer.impact .attack-slash-mark {
            animation:
                slashStrike .44s
                cubic-bezier(.2,.8,.2,1)
                both;
        }

        .attack-motion-layer.impact .attack-impact-ring {
            animation:
                slashRing .52s
                ease-out both;
        }

        body.attack-hit-shake {
            animation:
                attackHitShake .3s
                linear both;
        }

        @keyframes slashStrike {
            0% {
                opacity: 0;
                transform:
                    translate(-50%, -50%)
                    rotate(42deg)
                    scaleY(.15);
            }
            24% {
                opacity: 1;
                transform:
                    translate(-50%, -50%)
                    rotate(42deg)
                    scaleY(1.15);
            }
            100% {
                opacity: 0;
                transform:
                    translate(-50%, -50%)
                    rotate(42deg)
                    scaleY(1.6);
            }
        }

        @keyframes slashRing {
            0% {
                opacity: .95;
                transform:
                    translate(-50%, -50%)
                    scale(.2);
            }
            100% {
                opacity: 0;
                transform:
                    translate(-50%, -50%)
                    scale(5);
            }
        }

        @keyframes attackHitShake {
            0%,100% { transform: translate(0,0); }
            18% { transform: translate(-3px,2px); }
            36% { transform: translate(3px,-2px); }
            54% { transform: translate(-2px,-1px); }
            72% { transform: translate(2px,2px); }
            90% { transform: translate(-1px,1px); }
        }


        
        #startup-overlay{
            background:
              radial-gradient(ellipse at 50% 58%, rgba(104,72,22,.22), transparent 34%),
              radial-gradient(circle at center, #17130e 0%, #070706 58%, #000 100%) !important;
        }
        #startup-overlay::after{
            content:""; position:absolute; inset:-12%; pointer-events:none; opacity:.32;
            background:
              linear-gradient(112deg, transparent 32%, rgba(255,231,174,.10) 45%, transparent 56%),
              repeating-radial-gradient(circle at center, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
            animation:tossLightSweep 5s ease-in-out infinite alternate;
        }
        #startup-overlay h1{
            position:relative; z-index:4; font-family:Georgia,serif; font-weight:400 !important;
            letter-spacing:.22em; color:#e3cf9a !important; text-shadow:0 2px 0 #000,0 0 22px rgba(212,175,55,.38) !important;
        }
        .toss-cards::before{
            content:""; position:absolute; left:50%; top:54%; width:min(82vw,620px); height:44%;
            transform:translate(-50%,-50%); border-radius:50%;
            background:radial-gradient(ellipse,rgba(128,80,20,.22),rgba(0,0,0,0) 68%);
            filter:blur(10px); pointer-events:none;
        }
        .toss-player-box{ color:#cdbb91; letter-spacing:.14em; text-shadow:0 2px 5px #000; }
        .toss-card-visual{
            width:108px !important; height:164px !important; border-radius:11px !important;
            border:1px solid #9b7d38 !important; overflow:hidden;
            background:
              linear-gradient(145deg,rgba(255,255,255,.72),transparent 22%),
              repeating-linear-gradient(0deg,rgba(90,65,24,.025) 0 1px,transparent 1px 3px),
              linear-gradient(135deg,#f2ead7,#d9c9a6) !important;
            color:#21190f !important; font-family:Georgia,serif !important; font-size:30px !important;
            text-shadow:0 1px 0 rgba(255,255,255,.6);
            box-shadow:0 18px 40px rgba(0,0,0,.75), inset 0 0 0 4px #e8d9b7, inset 0 0 0 5px #9b7d38 !important;
        }
        .toss-card-visual::before{
            content:""; position:absolute; inset:9px; border:1px solid rgba(104,77,28,.65); border-radius:6px;
            box-shadow:inset 0 0 14px rgba(91,58,13,.12); pointer-events:none;
        }
        .toss-card-visual.card-back{
            background:
              radial-gradient(circle at center,#171516 0 15%,transparent 16%),
              repeating-conic-gradient(from 45deg,#171516 0 10deg,#4a151c 10deg 20deg),
              linear-gradient(135deg,#48131b,#18080b) !important;
            border-color:#b89443 !important;
            box-shadow:0 18px 40px rgba(0,0,0,.82), inset 0 0 0 5px #1a0b0d, inset 0 0 0 7px #b89443 !important;
        }
        .toss-card-visual.card-back::after{
            content:"♠" !important; inset:14px !important; color:#d4b866 !important; font-size:38px !important;
            border:1px solid rgba(212,184,102,.7) !important; border-radius:5px !important;
            background:radial-gradient(circle,rgba(212,184,102,.12),transparent 58%) !important;
            text-shadow:0 0 15px rgba(212,184,102,.55) !important;
        }
        .toss-card-visual.toss-waiting{ animation:tossArrival 1.7s cubic-bezier(.16,.8,.2,1) both,tossFloat 2.4s 1.7s ease-in-out infinite !important; }
        .toss-card-visual.toss-reveal-left{ animation:tossLuxuryRevealLeft 1.55s cubic-bezier(.16,.85,.18,1) forwards !important; }
        .toss-card-visual.toss-reveal-right{ animation:tossLuxuryRevealRight 1.55s cubic-bezier(.16,.85,.18,1) forwards !important; }
        #toss-result-text{ font-family:Georgia,serif; font-weight:400; letter-spacing:.20em !important; color:#d7c08a; }
        #toss-result-text.toss-result-ready{ animation:tossResultLuxury .9s cubic-bezier(.16,.8,.2,1) both !important; }
        @keyframes tossArrival{0%{opacity:0;transform:translateY(90px) scale(.76) rotateX(62deg);filter:blur(10px)}70%{opacity:1;transform:translateY(-7px) scale(1.04) rotateX(0);filter:blur(0)}100%{transform:translateY(0) scale(1)}}
        @keyframes tossFloat{0%,100%{transform:translateY(0) rotateZ(-.4deg)}50%{transform:translateY(-7px) rotateZ(.4deg)}}
        @keyframes tossLuxuryRevealLeft{0%{transform:translateX(-18px) rotateY(0) scale(.96)}45%{transform:translateX(0) rotateY(90deg) scale(1.08);filter:brightness(1.65)}55%{transform:rotateY(270deg) scale(1.08)}100%{transform:rotateY(360deg) scale(1);filter:brightness(1)}}
        @keyframes tossLuxuryRevealRight{0%{transform:translateX(18px) rotateY(0) scale(.96)}45%{transform:translateX(0) rotateY(-90deg) scale(1.08);filter:brightness(1.65)}55%{transform:rotateY(-270deg) scale(1.08)}100%{transform:rotateY(-360deg) scale(1);filter:brightness(1)}}
        @keyframes tossResultLuxury{0%{opacity:0;transform:scale(.86);filter:blur(12px);letter-spacing:.42em}100%{opacity:1;transform:scale(1);filter:blur(0);letter-spacing:.20em}}
        @keyframes tossLightSweep{from{transform:translateX(-5%) rotate(-2deg)}to{transform:translateX(5%) rotate(2deg)}}

        
        #hand-zone .adjust-tap-selected{
            border:3px solid #e7c96e !important;
            transform:translateY(-7px) scale(1.035) !important;
            box-shadow:0 0 0 1px rgba(255,255,255,.35),0 0 18px rgba(231,201,110,.8),0 8px 15px rgba(0,0,0,.7) !important;
        }
        #hand-zone .adjust-tap-selected::after{
            content:"もう一度タップ"; position:absolute; left:50%; bottom:-17px; transform:translateX(-50%);
            white-space:nowrap; color:#f5dfa0; background:rgba(0,0,0,.88); border:1px solid rgba(231,201,110,.65);
            border-radius:8px; padding:2px 5px; font:700 7px/1.2 sans-serif; z-index:20;
        }
        @media(max-width:700px){.toss-card-visual{width:82px !important;height:124px !important;font-size:25px !important}.toss-card-visual.card-back::after{font-size:28px !important}}


        
        #character-select-screen {
            position: fixed;
            inset: 0;
            z-index: 360;
            display: none;
            align-items: center;
            justify-content: center;
            padding: max(14px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
            color: #f5ecd7;
            background:
                radial-gradient(circle at 50% 15%, rgba(122,88,31,.20), transparent 34%),
                linear-gradient(135deg, rgba(5,7,10,.98), rgba(18,13,8,.99));
            isolation: isolate;
        }
        #character-select-screen::before {
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            opacity: .18;
            background:
                repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.025) 80px),
                repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.018) 80px);
        }
        .character-select-shell { width: min(100%, 980px); position: relative; z-index: 1; }
        .character-select-kicker { color:#bda36a; font: 11px/1.2 "Courier New", monospace; letter-spacing:.42em; margin-left:.42em; }
        .character-select-title { margin:7px 0 3px; font:700 clamp(25px,6vw,48px)/1 Georgia,serif; letter-spacing:.13em; color:#ead8aa; text-shadow:0 3px 14px #000,0 0 22px rgba(212,175,55,.25); }
        .character-select-sub { margin:0 0 14px; color:#aaa08d; font-size:12px; letter-spacing:.08em; }
        .character-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
        .character-card { padding:10px; border:1px solid rgba(207,177,111,.28); border-radius:13px;
            background:linear-gradient(160deg,rgba(255,255,255,.055),rgba(255,255,255,.015));
            box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 8px 24px rgba(0,0,0,.34); transition:.22s ease; text-align:left;
        }
        .character-card::after { content:""; position:absolute; inset:auto -30% -60% 20%; height:85%; background:radial-gradient(circle,var(--gem-glow),transparent 68%); opacity:.38; pointer-events:none; }
        .character-card:hover { transform:translateY(-4px); border-color:rgba(235,207,144,.7); }
        .character-card.selected { transform:translateY(-5px); border-color:var(--gem); box-shadow:0 0 0 2px rgba(255,255,255,.05),0 0 24px var(--gem-glow),inset 0 1px 0 rgba(255,255,255,.12); }
        .character-portrait { height:128px; border-radius:9px; display:flex; align-items:flex-end; justify-content:center; margin-bottom:9px; position:relative; overflow:hidden; background:radial-gradient(circle at 50% 34%,var(--gem-glow),transparent 35%),linear-gradient(145deg,#191919,#070707); border:1px solid rgba(255,255,255,.08); }
        .character-portrait::before { content:""; width:56px; height:56px; position:absolute; top:22px; border-radius:50%; background:linear-gradient(145deg,#2c2c2c,#0d0d0d); box-shadow:0 46px 0 26px #111,0 0 25px var(--gem-glow); }
        .character-mark { position:relative; z-index:2; margin-bottom:8px; font:700 32px/1 Georgia,serif; color:var(--gem); text-shadow:0 0 14px var(--gem-glow); }
        .character-name { color:#f5ead1; font:700 18px/1.1 Georgia,serif; letter-spacing:.06em; }
        .character-role { color:var(--gem); font-size:10px; letter-spacing:.12em; margin:3px 0 7px; }
        .character-desc { min-height:42px; color:#bdb5a5; font-size:10px; line-height:1.4; }
        .character-skill { margin-top:7px; padding-top:7px; border-top:1px solid rgba(255,255,255,.08); font-size:9px; line-height:1.45; color:#d7cbae; }
        .character-skill b { color:var(--gem); }
        .character-select-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:13px; padding:10px 12px; border-top:1px solid rgba(212,175,55,.24); }
        #character-selection-status { color:#c7b890; font-size:11px; text-align:left; }
        #confirm-character-btn { min-width:150px; min-height:44px; border-radius:10px; border:1px solid #e1c779; background:linear-gradient(#dcc276,#96742f); color:#111; font-weight:800; letter-spacing:.08em; box-shadow:0 5px 14px rgba(0,0,0,.45); opacity:.45; pointer-events:none; }
        #confirm-character-btn.ready { opacity:1; pointer-events:auto; cursor:pointer; }
        #selected-character-badge { display:inline-flex; align-items:center; gap:5px; margin-left:8px; padding:2px 7px; border:1px solid rgba(212,175,55,.42); border-radius:9px; background:rgba(0,0,0,.34); color:#ead8aa; font-size:9px; vertical-align:middle; }
        #selected-character-gem { width:7px; height:7px; border-radius:50%; background:#777; box-shadow:0 0 8px currentColor; }
        @media(max-width:700px){
            #character-select-screen{align-items:flex-start;}
            .character-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
            .character-card{padding:6px;border-radius:10px;}
            .character-portrait{height:92px;margin-bottom:6px;}
            .character-portrait::before{width:42px;height:42px;top:17px;box-shadow:0 35px 0 20px #111,0 0 18px var(--gem-glow);}
            .character-mark{font-size:23px;margin-bottom:5px;}
            .character-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
            .character-role{font-size:8px;margin-bottom:5px;}
            .character-desc{font-size:8px;min-height:44px;}
            .character-skill{font-size:7.5px;}
            .character-select-footer{padding:8px 2px;}
            #confirm-character-btn{min-width:122px;font-size:11px;}
        }


        
        .battle-character {
            --char-gem:#d4af37;
            --char-glow:rgba(212,175,55,.45);
            position:absolute;
            z-index:36;
            width:64px;
            height:92px;
            padding:0;
            border:1px solid var(--char-gem);
            border-radius:10px;
            overflow:hidden;
            cursor:pointer;
            color:#f7edd4;
            background:
                radial-gradient(circle at 50% 25%, var(--char-glow), transparent 38%),
                linear-gradient(155deg,#242424 0%,#090909 65%,#020202 100%);
            box-shadow:0 5px 15px rgba(0,0,0,.7),0 0 13px var(--char-glow),inset 0 1px 0 rgba(255,255,255,.15);
            transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;
            -webkit-tap-highlight-color:transparent;
        }
        .battle-character:active { transform:scale(.96); filter:brightness(1.2); }
        .battle-character::before {
            content:""; position:absolute; left:50%; top:14px; width:31px; height:31px;
            transform:translateX(-50%); border-radius:50%;
            background:linear-gradient(145deg,#393939,#111);
            box-shadow:0 28px 0 15px #111,0 0 16px var(--char-glow);
        }
        .battle-character-mark { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding-bottom:12px; z-index:2; color:var(--char-gem); font:700 26px/1 Georgia,serif; text-shadow:0 0 10px var(--char-glow); }
        .battle-character-name { position:absolute; left:2px; right:2px; bottom:3px; z-index:3; font:700 7px/1.1 Georgia,serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-shadow:0 1px 3px #000; }
        .battle-character-used::after { content:"発動済"; position:absolute; inset:0; z-index:5; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.72); color:#aaa; font-size:9px; letter-spacing:.1em; }
        #player-battle-character { left:7px; top:50%; transform:translateY(calc(-62% - 82px)); }
        #player-battle-character:active { transform:translateY(calc(-62% - 82px)) scale(.96); }
        #opponent-battle-character { right:7px; top:91px; width:54px; height:78px; }
        .player-area #player-field { padding-right:4px !important; }

        #character-ability-overlay {
            position:fixed; inset:0; z-index:620; display:none; align-items:center; justify-content:center;
            padding:14px; background:radial-gradient(circle at center,rgba(30,25,15,.55),rgba(0,0,0,.94));
            backdrop-filter:blur(7px);
        }
        #character-ability-overlay.show { display:flex; }
        .ability-panel {
            --ability-gem:#d4af37; --ability-glow:rgba(212,175,55,.5);
            width:min(92vw,440px); border:1px solid var(--ability-gem); border-radius:14px; padding:17px;
            background:linear-gradient(155deg,rgba(31,28,23,.98),rgba(5,5,5,.99));
            box-shadow:0 0 30px var(--ability-glow),0 18px 55px rgba(0,0,0,.75); color:#eee2c5;
        }
        .ability-panel-head { display:flex; align-items:center; gap:12px; padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,.12); }
        .ability-mini-portrait { width:58px; height:74px; flex:0 0 58px; border:1px solid var(--ability-gem); border-radius:9px; display:flex; align-items:center; justify-content:center; color:var(--ability-gem); font:700 30px/1 Georgia,serif; background:radial-gradient(circle,var(--ability-glow),#090909 62%); }
        #ability-character-name { margin:0; font:700 22px/1.1 Georgia,serif; color:#fff4d8; }
        #ability-character-role { margin-top:4px; color:var(--ability-gem); font-size:10px; letter-spacing:.12em; }
        #ability-stage-title { margin:14px 0 8px; color:var(--ability-gem); font:700 18px/1.2 Georgia,serif; }
        #ability-stage-description { min-height:62px; margin:0 0 14px; padding:12px; border:1px solid rgba(255,255,255,.1); border-radius:9px; background:rgba(255,255,255,.035); color:#cfc5b3; font-size:12px; line-height:1.6; text-align:left; white-space:pre-line; }
        .ability-buttons { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
        .ability-buttons.three { grid-template-columns:1fr 1fr 1fr; }
        .ability-btn { min-height:45px; border-radius:10px; border:1px solid rgba(255,255,255,.22); color:#f8edd2; background:linear-gradient(#39342b,#171513); font-weight:800; cursor:pointer; }
        .ability-btn.primary { border-color:var(--ability-gem); background:linear-gradient(var(--ability-gem),#6b5325); color:#090909; }
        .ability-btn[disabled] { opacity:.38; cursor:not-allowed; filter:grayscale(.8); }
        #ability-owner-note { margin:8px 0 0; color:#928a7c; font-size:9px; }
        @media(max-width:390px){
            .battle-character{width:55px;height:80px}.battle-character-mark{font-size:22px}.battle-character-name{font-size:6px}
            #player-battle-character{left:4px}.player-area #player-field{padding-left:52px !important}
            #opponent-battle-character{right:4px;top:82px;width:47px;height:68px}
        }


        
        .character-portrait.has-character-image {
            background-size: cover !important;
            background-position: center 22% !important;
            background-repeat: no-repeat !important;
        }
        .character-portrait.has-character-image::before { display:none !important; }
        .character-portrait.has-character-image .character-mark {
            align-self:flex-end; width:100%; margin:0; padding:20px 5px 6px;
            font-size:15px; color:#fff; text-align:center;
            background:linear-gradient(transparent,rgba(0,0,0,.84));
            text-shadow:0 1px 4px #000;
        }
        .battle-character.has-character-image {
            background-size:cover !important;
            background-position:center 18% !important;
            background-repeat:no-repeat !important;
        }
        .battle-character.has-character-image::before { display:none !important; }
        .battle-character.has-character-image .battle-character-mark { display:none !important; }
        .battle-character.has-character-image .battle-character-name {
            bottom:0; padding:9px 2px 3px; background:linear-gradient(transparent,rgba(0,0,0,.9));
        }
        .ability-mini-portrait.has-character-image {
            background-size:cover !important;
            background-position:center 18% !important;
            background-repeat:no-repeat !important;
            color:transparent !important;
        }


        
        .character-card[data-character-id="zaraku-maburoi"] .character-portrait,
        #player-battle-character[data-character-id="zaraku-maburoi"],
        #opponent-battle-character[data-character-id="zaraku-maburoi"] { background-position:center 18%; }


        
        .character-card[data-character-id="mirano-misha"] .character-portrait,
        #player-battle-character[data-character-id="mirano-misha"],
        #opponent-battle-character[data-character-id="mirano-misha"] { background-position:center 18%; }

        
        .character-card[data-character-id="nol-leonard"] .character-portrait {
            background-position:center 22%;
        }

        .character-card[data-character-id="milia"] .character-portrait,
        #player-battle-character[data-character-id="milia"],
        #opponent-battle-character[data-character-id="milia"] { background-position:center 20%; }

        .character-card[data-character-id="ordivo"] .character-portrait,
        #player-battle-character[data-character-id="ordivo"],
        #opponent-battle-character[data-character-id="ordivo"] { background-position:center 18%; }

        .character-card[data-character-id="benito-sarief"] .character-portrait,
        #player-battle-character[data-character-id="benito-sarief"],
        #opponent-battle-character[data-character-id="benito-sarief"] { background-position:center 15%; }

        .character-card[data-character-id="luka"] .character-portrait,
        #player-battle-character[data-character-id="luka"],
        #opponent-battle-character[data-character-id="luka"] { background-position:center 18%; }

        .character-card[data-character-id="sister-lily"] .character-portrait,
        #player-battle-character[data-character-id="sister-lily"],
        #opponent-battle-character[data-character-id="sister-lily"] { background-position:center 18%; }


        
        body.ability-field-swap-active #player-field .card {
            cursor: pointer !important;
            animation: abilitySwapPulse .85s ease-in-out infinite alternate;
            border-color: #ffe36a !important;
            box-shadow: 0 0 14px rgba(255,227,106,.82) !important;
            pointer-events: auto !important;
        }

        body.ability-field-swap-active #player-field .card:hover {
            transform: translateY(-7px) scale(1.04) !important;
        }

        body.ability-field-swap-active #player-field .card.ability-swap-selected {
            transform: translateY(-10px) scale(1.06) !important;
            outline: 3px solid #fff3a0 !important;
            box-shadow: 0 0 22px rgba(255,239,128,.95) !important;
            filter: brightness(1.35) !important;
        }

        #ability-field-swap-confirm {
            position: fixed;
            left: 50%;
            bottom: max(18px, env(safe-area-inset-bottom));
            transform: translateX(-50%);
            z-index: 530;
            display: none;
            min-width: 132px;
            padding: 12px 24px;
            border: 1px solid rgba(255,227,106,.95);
            border-radius: 12px;
            background: linear-gradient(180deg, #594516, #241a07);
            color: #fff4b8;
            font-weight: 800;
            letter-spacing: .12em;
            box-shadow: 0 6px 20px rgba(0,0,0,.75);
        }

        #ability-field-swap-confirm:disabled {
            opacity: .45;
        }

        #ability-field-swap-guide {
            position: fixed;
            left: 8px;
            right: 8px;
            top: max(8px, env(safe-area-inset-top));
            z-index: 520;
            display: none;
            padding: 10px 12px;
            border: 1px solid rgba(255,227,106,.88);
            border-radius: 10px;
            background: rgba(8,8,8,.95);
            color: #fff3b0;
            font-size: 12px;
            line-height: 1.45;
            font-weight: 700;
            letter-spacing: .04em;
            box-shadow: 0 5px 18px rgba(0,0,0,.7), 0 0 16px rgba(255,227,106,.2);
            pointer-events: none;
        }

        body.ability-field-swap-active #ability-field-swap-guide {
            display: block;
        }

        @keyframes abilitySwapPulse {
            from { filter: brightness(1); }
            to { filter: brightness(1.28); }
        }

    
        
        #home-screen {
            position: fixed;
            inset: 0;
            z-index: 290;
            display: none;
            overflow: hidden;
            color: #f3e7ca;
            background:
                radial-gradient(ellipse at 50% 18%, rgba(255,220,135,.22), transparent 28%),
                linear-gradient(to bottom, rgba(13,9,10,.12), rgba(3,4,4,.76)),
                linear-gradient(90deg, #090708 0%, #201710 17%, #4b351d 50%, #201710 83%, #090708 100%);
            font-family: Georgia, "Yu Mincho", serif;
        }

        #home-screen.show { display: flex; }

        
        #home-screen::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background:
                
                radial-gradient(ellipse at 50% 35%, rgba(255,226,151,.24), transparent 24%),
                
                linear-gradient(90deg,
                    transparent 0 9%,
                    rgba(231,207,156,.12) 9% 15%,
                    transparent 15% 25%,
                    rgba(231,207,156,.09) 25% 31%,
                    transparent 31% 69%,
                    rgba(231,207,156,.09) 69% 75%,
                    transparent 75% 85%,
                    rgba(231,207,156,.12) 85% 91%,
                    transparent 91% 100%),
                
                linear-gradient(to bottom, rgba(116,83,45,.15), rgba(20,13,10,.18) 58%, rgba(2,3,3,.78));
            box-shadow: inset 0 0 120px rgba(0,0,0,.72);
        }

        #home-screen::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -10%;
            width: 74%;
            height: 58%;
            transform: translateX(-50%);
            pointer-events: none;
            background:
                linear-gradient(90deg, transparent, rgba(214,175,87,.15), transparent),
                repeating-linear-gradient(
                    90deg,
                    rgba(255,255,255,.025) 0 1px,
                    transparent 1px 80px
                ),
                repeating-linear-gradient(
                    0deg,
                    rgba(255,255,255,.02) 0 1px,
                    transparent 1px 55px
                );
            border-top: 1px solid rgba(212,175,55,.18);
            transform-origin: center top;
            clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
            opacity: .65;
        }

        

        

        
        

        

        

        

        

        

        

        .home-hero {
            background:
                linear-gradient(90deg, rgba(5,5,5,.84), rgba(12,8,7,.4) 52%, rgba(0,0,0,.2)),
                radial-gradient(circle at 68% 35%, rgba(255,221,139,.14), transparent 28%),
                linear-gradient(145deg, rgba(47,30,22,.6), rgba(9,8,8,.72) 62%) !important;
            backdrop-filter: blur(1.5px);
        }

        .home-hero::before {
            content: "♛" !important;
            color: rgba(212,175,55,.12) !important;
        }

        @media (max-width: 700px) {
            

            

            
        }


        .home-fog,
        .home-grain {
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        .home-fog {
            background:
                linear-gradient(110deg, transparent 0 30%, rgba(255,255,255,.025) 43%, transparent 58%),
                radial-gradient(ellipse at center bottom, rgba(212,175,55,.1), transparent 55%);
            animation: homeFogMove 12s ease-in-out infinite alternate;
        }

        .home-grain {
            opacity: .09;
            mix-blend-mode: screen;
            background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 180 180" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency=".72" numOctaves="3"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity=".5"/></svg>');
        }

        @keyframes homeFogMove {
            from { transform: translateX(-2%) scale(1.02); opacity:.6; }
            to   { transform: translateX(2%) scale(1.06); opacity:1; }
        }

        .home-shell {
            position: relative;
            z-index: 2;
            width: 100%;
            height: 100%;
            display: grid;
            grid-template-rows: auto minmax(0,1fr) auto;
            padding:
                max(12px, env(safe-area-inset-top))
                max(14px, env(safe-area-inset-right))
                max(12px, env(safe-area-inset-bottom))
                max(14px, env(safe-area-inset-left));
        }

        .home-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(212,175,55,.28);
        }

        .home-brand {
            text-align: left;
        }

        .home-brand-small {
            color: #a99365;
            font: 9px/1.2 "Courier New", monospace;
            letter-spacing: .34em;
        }

        .home-brand-title {
            margin-top: 2px;
            color: #e8d39b;
            font: 700 clamp(24px, 6vw, 42px)/1 Georgia, serif;
            letter-spacing: .17em;
            text-shadow: 0 2px 12px #000, 0 0 20px rgba(212,175,55,.2);
        }

        .home-resources {
            display: flex;
            gap: 7px;
            font-family: sans-serif;
        }

        .home-resource {
            min-width: 72px;
            padding: 6px 9px;
            border: 1px solid rgba(212,175,55,.38);
            border-radius: 8px;
            background: rgba(0,0,0,.46);
            color: #d8c79e;
            font-size: 10px;
            white-space: nowrap;
        }

        .home-resource b {
            color: #fff0be;
            font-size: 12px;
            margin-left: 4px;
        }

        .home-main {
            min-height: 0;
            display: grid;
            grid-template-columns: minmax(0,1.5fr) minmax(230px,.72fr);
            gap: 14px;
            padding: 14px 0 12px;
        }

        .home-hero {
            position: relative;
            min-height: 0;
            overflow: hidden;
            border: 1px solid rgba(212,175,55,.34);
            border-radius: 14px;
            background:
                linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.18)),
                radial-gradient(circle at 76% 42%, rgba(191,151,69,.2), transparent 32%),
                linear-gradient(145deg, #152019, #080b09 62%);
            box-shadow: inset 0 0 40px rgba(0,0,0,.62), 0 12px 35px rgba(0,0,0,.45);
        }

        .home-hero::before {
            content: "♛";
            position: absolute;
            right: 7%;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(212,175,55,.15);
            font-size: min(45vw, 390px);
            line-height: 1;
            text-shadow: 0 0 38px rgba(212,175,55,.15);
        }

        .home-hero-copy {
            position: absolute;
            left: clamp(18px,4vw,48px);
            bottom: clamp(22px,5vh,52px);
            max-width: 65%;
            text-align: left;
        }

        .home-season {
            display: inline-block;
            padding: 5px 9px;
            border: 1px solid rgba(212,175,55,.45);
            background: rgba(0,0,0,.42);
            color: #c9ad6b;
            font: 9px/1 "Courier New", monospace;
            letter-spacing: .22em;
        }

        .home-hero-title {
            margin: 12px 0 7px;
            color: #f4e4b8;
            font: 700 clamp(28px,7vw,66px)/.96 Georgia, serif;
            letter-spacing: .07em;
            text-shadow: 0 4px 18px #000;
        }

        .home-hero-text {
            color: #bdb39e;
            font-size: clamp(10px,1.8vw,14px);
            line-height: 1.65;
        }

        .home-side {
            display: grid;
            grid-template-rows: auto minmax(0,1fr);
            gap: 10px;
            min-height: 0;
        }

        .home-notice {
            padding: 11px 12px;
            border: 1px solid rgba(212,175,55,.3);
            border-radius: 11px;
            background: rgba(0,0,0,.42);
            text-align: left;
        }

        .home-notice-label {
            color: #b99a55;
            font: 9px/1 "Courier New", monospace;
            letter-spacing: .22em;
        }

        .home-notice-title {
            margin-top: 6px;
            color: #eee0be;
            font-size: 13px;
        }

        .home-menu-grid {
            min-height: 0;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 9px;
        }

        .home-menu-btn {
            position: relative;
            min-height: 84px;
            border: 1px solid rgba(212,175,55,.34);
            border-radius: 12px;
            background:
                linear-gradient(145deg, rgba(36,38,29,.92), rgba(8,10,9,.96));
            color: #eadbb6;
            cursor: pointer;
            overflow: hidden;
            box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
        }

        .home-menu-btn::after {
            content: "";
            position: absolute;
            inset: auto -20% -55% 25%;
            height: 100%;
            background: radial-gradient(circle, rgba(212,175,55,.2), transparent 66%);
            pointer-events: none;
        }

        .home-menu-btn:active { transform: scale(.97); }
        .home-menu-icon { display:block; font-size:24px; margin-bottom:5px; }
        .home-menu-name { display:block; font:700 13px/1.1 Georgia,serif; letter-spacing:.08em; }
        .home-menu-sub { display:block; margin-top:4px; color:#8f8775; font:8px/1 "Courier New",monospace; letter-spacing:.14em; }

        .home-menu-btn.primary {
            grid-column: 1 / -1;
            min-height: 96px;
            border-color: #d9b75f;
            background:
                linear-gradient(135deg, rgba(111,78,25,.94), rgba(35,25,12,.96));
            box-shadow: 0 0 22px rgba(212,175,55,.13), inset 0 1px 0 rgba(255,255,255,.12);
        }

        .home-menu-btn.primary .home-menu-name { font-size:18px; color:#fff0bd; }
        .home-menu-btn.primary .home-menu-icon { font-size:29px; }

        .home-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            padding-top: 9px;
            border-top: 1px solid rgba(212,175,55,.23);
            color: #857d6c;
            font-size: 9px;
            letter-spacing: .1em;
        }

        #home-toast {
            position: fixed;
            left: 50%;
            bottom: max(26px, env(safe-area-inset-bottom));
            transform: translateX(-50%) translateY(18px);
            z-index: 310;
            opacity: 0;
            pointer-events: none;
            padding: 10px 18px;
            border: 1px solid rgba(212,175,55,.5);
            border-radius: 9px;
            background: rgba(3,5,4,.94);
            color: #eadbb6;
            font-size: 11px;
            box-shadow: 0 5px 20px #000;
            transition: .25s;
        }

        #home-toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        @media (max-width: 700px) {
            .home-shell { padding-left:8px; padding-right:8px; }
            .home-main {
                grid-template-columns: 1fr;
                grid-template-rows: minmax(180px,.9fr) minmax(240px,1.1fr);
                gap: 8px;
                padding: 8px 0;
            }
            .home-resources { gap:4px; }
            .home-resource { min-width:55px; padding:5px 6px; font-size:8px; }
            .home-resource b { font-size:10px; }
            .home-hero-copy { max-width:76%; left:17px; bottom:16px; }
            .home-hero-title { font-size:clamp(27px,10vw,43px); }
            .home-hero-text { font-size:9px; line-height:1.45; }
            .home-side { grid-template-rows:auto minmax(0,1fr); gap:7px; }
            .home-notice { padding:8px 10px; }
            .home-notice-title { font-size:11px; }
            .home-menu-grid { gap:6px; }
            .home-menu-btn { min-height:62px; border-radius:9px; }
            .home-menu-btn.primary { min-height:70px; }
            .home-menu-icon { font-size:19px; margin-bottom:2px; }
            .home-menu-name { font-size:11px; }
            .home-menu-btn.primary .home-menu-name { font-size:15px; }
            .home-menu-sub { font-size:7px; }
            .home-bottom { font-size:7px; padding-top:6px; }
        }

        @media (max-height: 650px) {
            .home-main { padding-top:6px; padding-bottom:6px; }
            .home-hero-title { margin-top:7px; }
            .home-menu-btn { min-height:54px; }
            .home-menu-btn.primary { min-height:61px; }
            .home-menu-icon { font-size:17px; }
        }

    
        
        .character-select-footer-buttons {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        #character-back-home-btn {
            min-height: 44px;
            padding: 10px 20px;
            border: 1px solid rgba(212,175,55,.48);
            border-radius: 8px;
            background: linear-gradient(to bottom, rgba(55,52,45,.96), rgba(18,18,17,.98));
            color: #d8c9a6;
            font-family: Georgia, "Yu Mincho", serif;
            font-size: 13px;
            font-weight: bold;
            letter-spacing: .08em;
            cursor: pointer;
            box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 12px rgba(0,0,0,.45);
        }

        #character-back-home-btn:hover {
            border-color: #d4af37;
            color: #fff0bd;
            background: linear-gradient(to bottom, rgba(78,67,43,.98), rgba(25,22,17,.98));
        }

        #character-back-home-btn:active {
            transform: scale(.97);
        }

        @media (max-width: 700px) {
            .character-select-footer-buttons {
                width: 100%;
                gap: 7px;
            }

            #character-back-home-btn,
            #confirm-character-btn {
                flex: 1 1 140px;
                min-height: 46px;
            }
        }


#character-select-screen {
    overflow: hidden;
}

.character-select-content {
    display: flex !important;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.character-grid,
#character-grid {
    gap: 14px !important;
    scroll-behavior: smooth;
    padding: 14px max(18px, 8vw) 22px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,175,55,.45) rgba(0,0,0,.2);
}

.character-grid::-webkit-scrollbar,
#character-grid::-webkit-scrollbar {
    height: 7px;
}

.character-grid::-webkit-scrollbar-thumb,
#character-grid::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,.45);
    border-radius: 999px;
}

.character-card {
    flex: 0 0 clamp(180px, 36vw, 260px) !important;
    min-width: clamp(180px, 36vw, 260px) !important;
    height: min(58vh, 430px);
    position: relative;
    border: 1px solid rgba(212,175,55,.38);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(23,21,17,.98), rgba(5,6,5,.98));
    box-shadow: 0 10px 24px rgba(0,0,0,.52);
    cursor: pointer;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.character-card:hover,
.character-card:focus-visible {
    transform: translateY(-4px);
    border-color: #e0bd63;
    box-shadow: 0 14px 32px rgba(0,0,0,.65), 0 0 18px rgba(212,175,55,.12);
}

.character-card.selected {
    border-color: #f1d07a !important;
    box-shadow: 0 0 0 2px rgba(212,175,55,.2), 0 14px 32px rgba(0,0,0,.65);
}

.character-card img,
.character-card .character-image,
.character-card .portrait {
    width: 100% !important;
    height: calc(100% - 72px) !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block;
}

.character-card-name,
.character-name {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 72px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 12px !important;
    background: linear-gradient(to top, rgba(0,0,0,.98), rgba(10,9,7,.88), rgba(0,0,0,.18));
    color: #f2dfaa !important;
    font-family: Georgia, "Yu Mincho", serif;
    font-size: 17px !important;
    letter-spacing: .08em;
    text-shadow: 0 2px 8px #000;
    z-index: 2;
}

.character-carousel-hint {
    color: #a99978;
    font-size: 10px;
    letter-spacing: .12em;
    text-align: center;
    padding: 3px 8px 0;
}


#character-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 520;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(0,0,0,.84);
    backdrop-filter: blur(5px);
}

#character-detail-modal.show {
    display: flex;
}

.character-detail-panel {
    position: relative;
    width: min(940px, 96vw);
    height: min(720px, 92vh);
    display: grid;
    grid-template-columns: minmax(250px, .9fr) minmax(310px, 1.1fr);
    overflow: hidden;
    border: 1px solid rgba(222,185,92,.55);
    border-radius: 18px;
    background:
        radial-gradient(circle at 75% 20%, rgba(212,175,55,.12), transparent 28%),
        linear-gradient(145deg, rgba(35,26,18,.99), rgba(7,8,7,.99) 66%);
    box-shadow: 0 22px 60px rgba(0,0,0,.78), inset 0 0 40px rgba(0,0,0,.42);
}

.character-detail-portrait-wrap {
    position: relative;
    background:
        radial-gradient(circle at 50% 30%, rgba(222,188,106,.13), transparent 34%),
        linear-gradient(to bottom, #21180f, #070807);
    border-right: 1px solid rgba(212,175,55,.28);
}

#character-detail-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.character-detail-portrait-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.72), transparent 40%);
}

.character-detail-info {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 3vw, 34px);
    text-align: left;
}

.character-detail-kicker {
    color: #b89b5c;
    font: 10px/1 "Courier New", monospace;
    letter-spacing: .24em;
}

#character-detail-name {
    margin: 10px 0 4px;
    color: #f4e3b4;
    font: 700 clamp(28px, 5vw, 52px)/1 Georgia, "Yu Mincho", serif;
    letter-spacing: .08em;
    text-shadow: 0 3px 14px #000;
}

#character-detail-type {
    color: #a99d84;
    font-size: 12px;
    letter-spacing: .12em;
    margin-bottom: 18px;
}

.character-detail-scroll {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}

.character-detail-ability {
    margin-bottom: 14px;
    padding: 14px 15px;
    border: 1px solid rgba(212,175,55,.28);
    border-radius: 10px;
    background: rgba(0,0,0,.3);
}

.character-detail-ability-title {
    color: #e6bd58;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: .08em;
    margin-bottom: 7px;
}

.character-detail-ability-text {
    color: #e7dcc0;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.character-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.character-detail-actions button {
    flex: 1;
    min-height: 48px;
    border-radius: 9px;
    font-family: Georgia, "Yu Mincho", serif;
    font-weight: bold;
    letter-spacing: .07em;
    cursor: pointer;
}

#character-detail-select {
    border: 1px solid #e0bd63;
    background: linear-gradient(135deg, #77531f, #2a1c0d);
    color: #fff0bd;
}

#character-detail-close {
    border: 1px solid rgba(212,175,55,.4);
    background: linear-gradient(to bottom, #343029, #151513);
    color: #ded0ad;
}

@media (max-width: 720px) {
    .character-card {
        flex-basis: 68vw !important;
        min-width: 68vw !important;
        height: min(55vh, 410px);
    }

    .character-detail-panel {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(210px, 42%) minmax(0, 58%);
        height: 94vh;
    }

    .character-detail-portrait-wrap {
        border-right: 0;
        border-bottom: 1px solid rgba(212,175,55,.28);
    }

    .character-detail-info {
        padding: 16px;
    }

    #character-detail-name {
        font-size: 30px;
    }

    .character-detail-actions {
        margin-top: 10px;
    }
}

.character-card {
    aspect-ratio: 925 / 1130;
    border-radius: 8px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.58) !important;
}

.character-card::after {
    display: none !important;
}

.character-card .character-card-image {
    background: #fff;
    border-radius: 8px;
    pointer-events: none;
}

.character-card.selected {
    transform: translateY(-7px) scale(1.025) !important;
    box-shadow:
        0 0 0 3px rgba(242,207,116,.9),
        0 0 26px rgba(212,175,55,.42),
        0 16px 34px rgba(0,0,0,.68) !important;
}

.character-card:hover,
.character-card:focus-visible {
    transform: translateY(-5px) scale(1.015);
}

.character-card .character-card-name,
.character-card .character-name,
.character-card .character-portrait,
.character-card .character-role,
.character-card .character-desc {
    display: none !important;
}

.character-card.card-image-unavailable {
    border: 1px solid rgba(212,175,55,.38) !important;
    background: linear-gradient(145deg,#251d13,#090a09) !important;
}

.character-card.card-image-unavailable .character-portrait,
.character-card.card-image-unavailable .character-card-name,
.character-card.card-image-unavailable .character-name {
    display: flex !important;
}

.character-card-tap-label {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 3;
    padding: 5px 11px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 999px;
    background: rgba(0,0,0,.72);
    color: #fff3cd;
    font-size: 9px;
    letter-spacing: .08em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.character-card:hover .character-card-tap-label,
.character-card:focus-visible .character-card-tap-label {
    opacity: 1;
}

#character-detail-portrait {
    background: #f4f1e9;
}

.character-detail-portrait-wrap {
    background: #ece9e1 !important;
}

@media (max-width: 720px) {
    .character-card {
        flex-basis: 72vw !important;
        min-width: 72vw !important;
        max-width: 340px;
    }

    .character-grid,
    #character-grid {
        padding-left: 14vw !important;
        padding-right: 14vw !important;
    }
}



.character-card {
    flex: 0 0 clamp(235px, 42vw, 330px) !important;
    min-width: clamp(235px, 42vw, 330px) !important;
    width: clamp(235px, 42vw, 330px) !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
}

.character-card .character-card-image {
    aspect-ratio: 925 / 1133 !important;
    object-position: center !important;
    overflow: visible !important;
    border-radius: 4px !important;
}

.character-card-tap-label {
    bottom: 14px !important;
}

#character-detail-portrait {
    max-height: 72vh !important;
    object-position: center !important;
}

@media (max-width: 720px) {
    .character-card {
        flex-basis: min(76vw, 340px) !important;
        min-width: min(76vw, 340px) !important;
        width: min(76vw, 340px) !important;
    }
}

.character-select-shell {
    padding-bottom: max(34px, env(safe-area-inset-bottom)) !important;
}

.character-grid,
#character-grid {
    padding-top: 18px !important;
    padding-bottom: 54px !important;
    scroll-padding-left: max(18px, 8vw);
    scroll-padding-right: max(18px, 8vw);
}

.character-card {
    box-sizing: border-box !important;
    border: 2px solid rgba(255,255,255,.82) !important;
    border-radius: 18px !important;
    box-shadow:
        0 2px 0 rgba(255,255,255,.55) inset,
        0 13px 28px rgba(0,0,0,.62) !important;
}

.character-card .character-card-image {
    position: relative !important;
    border-radius: 15px !important;
}

.character-card:hover,
.character-card:focus-visible,
.character-card.selected {
    overflow: hidden !important;
}

.character-card-tap-label {
    line-height: 1.2 !important;
    bottom: 12px !important;
}


.character-detail-panel {
    overflow: auto !important;
}

.character-detail-portrait-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
}

#character-detail-portrait {
    max-height: calc(92vh - 24px) !important;
    border-radius: 18px !important;
}

@media (max-width: 720px) {
    .character-grid,
    #character-grid {
        padding-top: 14px !important;
        padding-bottom: 62px !important;
    }

    .character-card {
        border-radius: 16px !important;
    }

    .character-card .character-card-image {
        border-radius: 13px !important;
    }

    .character-detail-portrait-wrap {
        padding: 10px !important;
    }

    #character-detail-portrait {
        max-height: 46vh !important;
        border-radius: 15px !important;
    }
}



#character-select-screen {
    align-items: flex-start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-top: max(10px, env(safe-area-inset-top)) !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
}

.character-select-shell {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.character-grid,
#character-grid {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    align-items: center !important;
    overflow-y: hidden !important;
    padding: 10px max(18px, 10vw) 18px !important;
}


.character-card {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: min(62dvh, 600px) !important;
    max-height: calc(100dvh - 210px) !important;
    aspect-ratio: 925 / 1133 !important;
    border: 2px solid rgba(255,255,255,.9) !important;
}

.character-card .character-card-image {
    height: 100% !important;
    max-width: none !important;
}

.character-select-footer {
    flex: 0 0 auto !important;
    margin-top: 4px !important;
}


.character-detail-portrait-wrap {
    overflow: hidden !important;
}

#character-detail-portrait {
    max-height: 74dvh !important;
}

@media (max-width: 720px) {
    .character-select-title {
        margin-top: 3px !important;
        font-size: clamp(24px, 8vw, 38px) !important;
    }

    .character-select-sub {
        margin-bottom: 4px !important;
    }

    .character-card {
        height: min(57dvh, 500px) !important;
        max-height: calc(100dvh - 220px) !important;
        border-radius: 17px !important;
    }

    .character-card .character-card-image {
        border-radius: 14px !important;
    }

    .character-grid,
    #character-grid {
        padding-top: 6px !important;
        padding-bottom: 10px !important;
    }

    .character-select-footer {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
}

@media (max-height: 700px) {
    .character-card {
        height: calc(100dvh - 205px) !important;
    }
}


.character-select-shell {
    min-height: 100% !important;
    height: auto !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
}

.character-grid,
#character-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 14px max(12vw, 28px) 34px !important;
    gap: 18px !important;
    scroll-snap-type: x mandatory !important;
}


.character-card {
    flex: 0 0 min(78vw, 390px) !important;
    width: min(78vw, 390px) !important;
    min-width: min(78vw, 390px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 2px solid rgba(255,255,255,.92) !important;
    border-radius: 20px !important;
    background: #fff !important;
    line-height: 0 !important;
    scroll-snap-align: center !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.62) !important;
}

.character-card .character-card-image {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 17px !important;
    transform: none !important;
    clip-path: none !important;
}


.character-detail-portrait-wrap {
    height: auto !important;
    min-height: 0 !important;
    overflow: auto !important;
    padding: 10px !important;
}

#character-detail-portrait {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 76vh !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: auto !important;
    border-radius: 20px !important;
    clip-path: none !important;
}

@media (max-width: 720px) {
    .character-grid,
    #character-grid {
        padding-left: 11vw !important;
        padding-right: 11vw !important;
        padding-bottom: 42px !important;
    }

    .character-card {
        flex-basis: 78vw !important;
        width: 78vw !important;
        min-width: 78vw !important;
        border-radius: 18px !important;
    }

    .character-card .character-card-image {
        border-radius: 15px !important;
    }
}


/* SOURCE styles/large-battle-standing-art.css */
/* ===== バトル画面：大型立ち絵・UI前面固定版 ===== */

/* 立ち絵はカードUIより前面に置き、入力は背後のカードへ通す */
.battle-character.has-large-battle-art {
    overflow: visible !important;
    background-size: contain !important;
    filter:
        drop-shadow(0 12px 16px rgba(0,0,0,.72))
        drop-shadow(0 0 8px var(--char-glow)) !important;
    transition: filter .16s ease, transform .16s ease !important;
}

.battle-character.has-large-battle-art::before,
.battle-character.has-large-battle-art .battle-character-mark {
    display: none !important;
}

.battle-character.has-large-battle-art .battle-character-name {
    display: none !important;
}

/* 自分側：顔が画面内に残るよう、上寄せではなく人物全体を左下へ配置 */
#player-battle-character.has-large-battle-art {
    left: -5vw !important;
    right: auto !important;
    top: 4vh !important;
    bottom: auto !important;
    width: min(39vw, 500px) !important;
    height: min(68vh, 720px) !important;
    transform: none !important;
    background-position: left 8% top 0% !important;
}

/* 相手側：顔を見切れさせず、右上から中央寄りに表示 */
#opponent-battle-character.has-large-battle-art {
    right: -4vw !important;
    left: auto !important;
    top: 8vh !important;
    bottom: auto !important;
    width: min(38vw, 490px) !important;
    height: min(66vh, 700px) !important;
    transform: none !important;
    background-position: right 7% top 0% !important;
}

#player-battle-character.has-large-battle-art:active,
#opponent-battle-character.has-large-battle-art:active {
    transform: scale(.985) !important;
}

/* ===== すべてのUIを立ち絵より前面へ ===== */
#phase-bar,
#revolution-status,
#turn-indicator,
#battle-log,
#game-log,
#player-field,
#opponent-field,
#hand-zone,
#player-graveyard,
#opp-graveyard,
#player-slash-zone,
#opp-slash-zone,
#player-deck,
#opp-deck,
#player-life,
#opponent-life,
#player-chain-menu,
#counter-menu,
#chain-hand-controls,
.action-buttons,
.field-area,
.player-area,
.opponent-area,
.card,
button,
.menu-button,
.log-button {
    position: relative;
    z-index: 40 !important;
}

/* 能力画面・モーダル・メニューは最前面 */
#character-ability-overlay,
#character-detail-modal,
#title-screen,
#home-screen,
#character-select-screen,
.modal,
.overlay {
    z-index: 600 !important;
}

/* 中央の場と手札には薄い背景を置き、立ち絵と重なっても読めるようにする */
#player-field,
#opponent-field,
#hand-zone,
.action-buttons {
    isolation: isolate;
}

#player-field::before,
#opponent-field::before,
#hand-zone::before {
    content: "";
    position: absolute;
    inset: -4px;
    z-index: -1;
    border-radius: 10px;
    background: rgba(0,0,0,.16);
    pointer-events: none;
}

/* スマホ */
@media (max-width: 700px) {
    #player-battle-character.has-large-battle-art {
        left: -15vw !important;
        top: 11vh !important;
        width: 62vw !important;
        height: 53vh !important;
        background-position: left top !important;
        opacity: .92;
    }

    #opponent-battle-character.has-large-battle-art {
        right: -15vw !important;
        top: 8vh !important;
        width: 60vw !important;
        height: 48vh !important;
        background-position: right top !important;
        opacity: .92;
    }
}

/* 狭いスマホ */
@media (max-width: 390px) {
    #player-battle-character.has-large-battle-art {
        left: -18vw !important;
        top: 13vh !important;
        width: 64vw !important;
        height: 49vh !important;
    }

    #opponent-battle-character.has-large-battle-art {
        right: -18vw !important;
        top: 9vh !important;
        width: 62vw !important;
        height: 45vh !important;
    }
}


/* SOURCE styles/player-disposal-below-hand-fix.css */
/* 自分の墓地・スラッシュゾーンを手札の直下に通常配置 */
.player-area > .player-disposal-below-hand {
    position: relative !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    margin: 10px auto 8px !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
    gap: 10px !important;
    z-index: 45 !important;
    overflow: visible !important;
}

.player-area > .player-disposal-below-hand .disposal-box {
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    z-index: 46 !important;
}

#player-graveyard,
#player-slash-zone {
    position: relative !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    min-height: 58px !important;
    z-index: 47 !important;
    overflow: visible !important;
}

@media (max-width: 700px) {
    .player-area > .player-disposal-below-hand {
        margin-top: 8px !important;
        gap: 6px !important;
        padding: 0 2px !important;
    }

    #player-graveyard,
    #player-slash-zone {
        min-height: 50px !important;
    }
}


/* SOURCE styles/matching-screen.css */
#matching-screen{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    box-sizing:border-box;
    padding:28px 20px;
    overflow:hidden;
    background:
        radial-gradient(circle at 50% 38%,rgba(108,76,128,.32),transparent 34%),
        linear-gradient(180deg,#171120 0%,#09070d 58%,#030205 100%);
    z-index:99999;
    color:#f1dfaa;
    text-align:center;
    font-family:"Times New Roman","Yu Mincho","Hiragino Mincho ProN",serif;
    opacity:0;
    pointer-events:none;
}
#matching-screen::before,
#matching-screen::after{
    content:"";
    position:absolute;
    inset:18px;
    border:1px solid rgba(225,190,101,.55);
    pointer-events:none;
}
#matching-screen::after{
    inset:25px;
    border-color:rgba(225,190,101,.18);
}
#matching-screen.show{
    display:flex !important;
    opacity:1 !important;
    pointer-events:auto !important;
    animation:matchingFadeIn .45s ease both;
}
.matching-crest{
    font-size:62px;
    line-height:1;
    color:#e6c66f;
    text-shadow:0 0 20px rgba(230,198,111,.38);
    margin-bottom:9px;
}
.matching-kicker{
    font-size:11px;
    letter-spacing:4px;
    color:rgba(241,223,170,.66);
    margin-bottom:12px;
}
#matching-screen h1{
    margin:0 0 12px;
    font-size:clamp(30px,6vw,48px);
    letter-spacing:.18em;
    font-weight:500;
}
#matching-opponent-name{
    min-height:26px;
    font-size:18px;
    letter-spacing:.12em;
    color:#fff3c8;
}
#matching-spinner{
    position:relative;
    width:104px;
    height:104px;
    margin:25px 0 22px;
    border:1px solid rgba(230,198,111,.24);
    border-radius:50%;
}
#matching-spinner::before,
#matching-spinner::after,
#matching-spinner span{
    content:"";
    position:absolute;
    border-radius:50%;
}
#matching-spinner::before{
    inset:8px;
    border:3px solid rgba(230,198,111,.15);
    border-top-color:#e6c66f;
    border-right-color:#9d7430;
    animation:matchingSpin 1.25s linear infinite;
}
#matching-spinner::after{
    inset:28px;
    border:1px solid rgba(230,198,111,.7);
    box-shadow:0 0 18px rgba(230,198,111,.25);
}
#matching-spinner span{
    inset:43px;
    background:#e6c66f;
    box-shadow:0 0 16px rgba(230,198,111,.75);
}
#matching-message{
    min-height:25px;
    font-size:15px;
    letter-spacing:.08em;
    color:rgba(255,244,209,.82);
}
.matching-progress-frame{
    width:min(430px,78vw);
    height:7px;
    padding:2px;
    margin-top:19px;
    border:1px solid rgba(230,198,111,.55);
    background:rgba(0,0,0,.42);
}
#matching-progress{
    width:0%;
    height:100%;
    background:linear-gradient(90deg,#8d6427,#f0d88b);
    box-shadow:0 0 12px rgba(230,198,111,.44);
    transition:width .8s ease;
}
.matching-seal{
    margin-top:21px;
    padding:7px 17px;
    border:1px solid rgba(230,198,111,.3);
    font-size:11px;
    letter-spacing:.25em;
    color:rgba(241,223,170,.52);
}
@keyframes matchingSpin{
    from{transform:rotate(0deg)}
    to{transform:rotate(360deg)}
}
@keyframes matchingFadeIn{
    from{opacity:0}
    to{opacity:1}
}


/* SOURCE styles/scrollable-resizable-chain-log.css */
/* SHOCKER_V55_SCROLLABLE_RESIZABLE_CHAIN_LOG */

.opponent-chain-log-title {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

#v55-chain-log-toggle {
    min-width: 38px;
    min-height: 18px;
    margin: -2px 0 -2px auto;
    padding: 2px 5px;
    border: 1px solid rgba(255, 150, 150, .65);
    border-radius: 5px;
    background: linear-gradient(180deg, rgba(105, 25, 25, .95), rgba(45, 5, 5, .96));
    color: #ffd0d0;
    font-family: "Courier New", monospace;
    font-size: 8px;
    line-height: 1;
    letter-spacing: .04em;
    cursor: pointer;
    touch-action: manipulation;
}

#v55-chain-log-toggle:focus-visible {
    outline: 2px solid #ffe39a;
    outline-offset: 1px;
}

.opponent-chain-log {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    min-height: 36px;
    max-height: min(32vh, 260px) !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    resize: vertical;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.opponent-chain-log:focus-visible {
    outline: 1px solid rgba(255, 210, 160, .8);
    outline-offset: 1px;
}

.opponent-hand-display.v55-chain-log-expanded .opponent-chain-log {
    height: min(24vh, 180px);
}

body.v55-chain-log-expanded .opponent-area {
    overflow: visible !important;
    contain: layout !important;
    z-index: 55 !important;
}

body.v55-chain-log-expanded #opponent-hand-display {
    z-index: 560 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .88), 0 0 14px rgba(255, 80, 80, .28);
}

@media (max-width: 390px) {
    .opponent-chain-log {
        height: 38px;
        min-height: 32px;
        max-height: min(27vh, 180px) !important;
    }

    .opponent-hand-display.v55-chain-log-expanded .opponent-chain-log {
        height: min(21vh, 138px);
    }

    #v55-chain-log-toggle {
        min-width: 34px;
        min-height: 17px;
        padding: 2px 4px;
        font-size: 7px;
    }
}


/* SOURCE styles/log-overlay-and-keyboard.css */
/* SHOCKER_V56_LOG_OVERLAY_AND_KEYBOARD_EXTENSION */

/* 盤面内ログは小型プレビューとして残し、操作は独立した大型ログで行う。 */
.opponent-chain-log-title {
    position: relative !important;
    z-index: 8 !important;
    pointer-events: auto !important;
}

#v56-chain-log-open {
    min-width: 58px;
    min-height: 22px;
    margin: -3px 0 -3px auto;
    padding: 3px 7px;
    border: 1px solid rgba(255, 188, 132, .88);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(138, 43, 31, .98), rgba(58, 8, 8, .98));
    box-shadow: 0 0 8px rgba(255, 88, 64, .3);
    color: #fff0d3;
    font-family: "Courier New", monospace;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .03em;
    cursor: pointer;
    touch-action: manipulation;
    pointer-events: auto !important;
}

#v56-chain-log-open:focus-visible,
#v56-chain-log-close:focus-visible,
#v56-chain-log-scroll:focus-visible {
    outline: 3px solid #ffe59b;
    outline-offset: 2px;
}

#opponent-chain-log {
    height: 44px !important;
    min-height: 36px !important;
    max-height: 44px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    resize: none !important;
    pointer-events: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

#v56-chain-log-overlay[hidden] {
    display: none !important;
}

#v56-chain-log-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: clamp(10px, 3vw, 34px);
    pointer-events: auto;
}

.v56-chain-log-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 2, 8, .9);
    backdrop-filter: blur(5px);
    cursor: zoom-out;
}

.v56-chain-log-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(920px, 96vw);
    height: min(760px, 90dvh);
    min-height: min(420px, 88dvh);
    overflow: hidden;
    border: 2px solid rgba(234, 103, 86, .78);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(38, 8, 12, .99), rgba(6, 7, 14, .99));
    box-shadow:
        0 24px 90px rgba(0, 0, 0, .92),
        0 0 34px rgba(208, 49, 49, .24),
        inset 0 0 36px rgba(255, 111, 75, .05);
    color: #f8e9d3;
}

.v56-chain-log-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding: 11px 15px 10px 19px;
    border-bottom: 1px solid rgba(255, 137, 106, .34);
    background: rgba(70, 14, 17, .76);
}

.v56-chain-log-heading {
    min-width: 0;
}

.v56-chain-log-heading strong {
    display: block;
    color: #ffd5ad;
    font-family: "Courier New", monospace;
    font-size: clamp(15px, 2.5vw, 22px);
    letter-spacing: .12em;
}

.v56-chain-log-heading span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 225, 199, .68);
    font-size: 10px;
    letter-spacing: .04em;
}

#v56-chain-log-close {
    flex: 0 0 auto;
    min-width: 88px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 216, 158, .76);
    border-radius: 9px;
    background: linear-gradient(180deg, #7f3a28, #40110f);
    color: #fff2d8;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

#v56-chain-log-scroll {
    box-sizing: border-box;
    min-height: 0;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    padding: 16px 18px 28px;
    scrollbar-gutter: stable both-edges;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}

#v56-chain-log-scroll.v56-dragging {
    cursor: grabbing;
    touch-action: none;
}

#v56-chain-log-scroll .opponent-chain-log-entry,
#v56-chain-log-scroll .opponent-chain-log-empty {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    margin: 0 0 9px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 147, 117, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
    font-size: clamp(12px, 2vw, 16px);
    line-height: 1.45;
    user-select: text;
}

.v56-chain-log-foot {
    padding: 8px 16px 10px;
    border-top: 1px solid rgba(255, 137, 106, .22);
    background: rgba(34, 6, 10, .88);
    color: rgba(255, 225, 199, .72);
    font-size: 10px;
    text-align: center;
}

body.v56-chain-log-open {
    overflow: hidden !important;
}

/* 能力画面でキーボード選択中の項目を明示する。 */
#character-ability-overlay .ability-btn.v56-keyboard-selected {
    position: relative;
    outline: 4px solid #ffe06b !important;
    outline-offset: 3px;
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, .82),
        0 0 22px rgba(255, 220, 86, .86) !important;
    transform: translateY(-2px);
}

#character-ability-overlay .ability-btn.v56-keyboard-selected::after {
    content: attr(data-v56-keyboard-label);
    position: absolute;
    top: -11px;
    right: -9px;
    min-width: 20px;
    padding: 3px 5px;
    border: 1px solid #241300;
    border-radius: 999px;
    background: #ffe06b;
    color: #281600;
    font: 700 10px/1 "Courier New", monospace;
}

@media (max-width: 520px) {
    #v56-chain-log-overlay {
        padding: 7px;
    }

    .v56-chain-log-dialog {
        width: 98vw;
        height: 94dvh;
        min-height: 0;
        border-radius: 12px;
    }

    .v56-chain-log-head {
        min-height: 52px;
        padding: 8px 9px 8px 13px;
    }

    #v56-chain-log-close {
        min-width: 76px;
        min-height: 38px;
    }

    #v56-chain-log-scroll {
        padding: 12px 10px 22px;
    }
}

/* v259: keep the native cards in place and identify the two public battle cards. */
body.v45-battle-active.v64-shocker-battle :is(#player-field,#opponent-field) > .card[data-v259-battle-role]:not(.card-back) {
  outline:3px solid #ffe092 !important;
  outline-offset:1px;
  box-shadow:0 0 0 2px #2b170b,0 0 14px #e5b84988 !important;
  font-size:22px !important;
  font-weight:800 !important;
}
body.v45-battle-active.v64-shocker-battle :is(#player-field,#opponent-field) > .card[data-v259-battle-role="防衛中"]:not(.card-back) {
  outline-color:#a6edff !important;
  box-shadow:0 0 0 2px #102028,0 0 14px #62d4ed88 !important;
}
body.v45-battle-active.v64-shocker-battle :is(#player-field,#opponent-field) > .card[data-v259-joker="true"]:not(.card-back) { font-size:13px !important; }
body.v45-battle-active.v64-shocker-battle :is(#player-field,#opponent-field) > .card[data-v259-battle-role]:not(.card-back)::after {
  content:attr(data-v259-battle-role);
  position:absolute;
  inset:2px 2px auto;
  padding:1px 0;
  border-radius:2px;
  background:#29210be8;
  color:#ffedaf;
  font:700 8px/11px sans-serif;
  text-align:center;
  letter-spacing:0;
  pointer-events:none;
}
body.v45-battle-active.v64-shocker-battle :is(#player-field,#opponent-field) > .card[data-v259-battle-role="防衛中"]:not(.card-back)::after { background:#102832e8;color:#c9f4ff; }
.v259-log-heading { display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:4px;font:9px/1.5 sans-serif; }
.v259-log-heading strong { color:#ffbfc3; }
.v259-battle-log-entry[data-owner="player"] .v259-log-heading strong { color:#a5e4ff; }
.v259-log-heading small { color:#b8a886;white-space:nowrap;font-size:7px; }
.v259-log-cards { display:flex;flex-wrap:wrap;gap:4px;margin-top:5px; }
.card.v259-log-card {
  position:relative !important;
  box-sizing:border-box;
  display:grid !important;
  place-items:center;
  flex:0 0 26px !important;
  width:26px !important;
  min-width:26px !important;
  max-width:26px !important;
  height:38px !important;
  min-height:38px !important;
  margin:0 !important;
  padding:1px !important;
  border:1px solid #c9bb9b !important;
  border-radius:4px !important;
  background:linear-gradient(145deg,#fffdf3,#e6dbc0) !important;
  color:#211e18 !important;
  font:700 12px/1 Georgia,serif !important;
  box-shadow:0 2px 4px #0006 !important;
  transform:none !important;
  rotate:none !important;
  translate:none !important;
  scale:none !important;
  filter:none !important;
  animation:none !important;
  pointer-events:none !important;
  white-space:nowrap;
  text-shadow:none !important;
}
.card.v259-log-card.v259-red-card { color:#b92434 !important; }
.card.v259-log-card.v259-joker-card { color:#6c2882 !important;font-size:8px !important; }
#v56-chain-log-scroll .v259-log-heading { gap:6px;font-size:12px; }
#v56-chain-log-scroll .v259-log-heading .opponent-chain-log-action { color:#f0d6b7;font-size:13px; }
#v56-chain-log-scroll .v259-log-heading small { font-size:10px; }
#v56-chain-log-scroll .v259-log-cards { gap:7px;margin-top:9px; }
#v56-chain-log-scroll .card.v259-log-card {
  flex-basis:54px !important;
  width:54px !important;
  min-width:54px !important;
  max-width:54px !important;
  height:78px !important;
  min-height:78px !important;
  font-size:22px !important;
  border-radius:6px !important;
}
#v56-chain-log-scroll .card.v259-log-card.v259-joker-card { font-size:14px !important; }
/* Short portrait defense uses the existing hand-label row for its controls.
   Card and character sizes stay intact; dense own pile stacks can scroll both ways. */
@media (max-height:620px) {
  html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle.chain-choice-active .player-area {
    --mb-v252-pile-h:46px;
    grid-template-rows:12px minmax(0,1fr) 44px minmax(62px,.83fr) var(--mb-v252-pile-h) !important;
  }
  html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle.chain-choice-active .player-area > h3:nth-of-type(2) { display:none !important; }
  html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle.chain-choice-active .player-area > #player-field { padding-top:0 !important; }
  html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle.chain-choice-active #player-field > .card { transform:none !important; }
  html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle.chain-choice-active #hand-row #hand-zone.card-zone { padding-block:0 !important; }
  html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle.chain-choice-active #hand-zone > .card.selected-card { transform:none !important; }
  html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle.chain-choice-active .player-area > #v42-field-card-side-actions:not([hidden]) {
    position:relative !important; grid-column:1 !important; grid-row:3 !important;
    top:auto !important; right:auto !important; bottom:auto !important; left:auto !important;
    width:calc(100% - var(--mb-v255-art-w) - 10px) !important; max-width:none !important;
    height:44px !important; min-height:44px !important; margin:0 !important;
    padding:0 3px 0 0 !important; border:0 !important; box-sizing:border-box !important;
    justify-self:end !important; align-self:center !important;
  }
  html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle.chain-choice-active :is(#player-graveyard,#player-slash-zone) {
    overflow-x:auto !important; overflow-y:auto !important;
    touch-action:pan-x pan-y !important; overscroll-behavior:contain;
  }
}


/* SOURCE styles/character-ability-cinematic.css */
/* SHOCKER_V265_CHARACTER_CARD_CINEMATIC — shared verbatim with the review file. */
#duel-cinematic.v265-ability-card {
    position: fixed !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    isolation: isolate;
    z-index: 2147483400 !important;
    color: var(--ability-cinematic-gem, #d8c086) !important;
    pointer-events: auto;
}
#duel-cinematic.v265-ability-card > :not(.v265-ability-stage) {
    display: none !important;
}
body.v265-ability-card-active #cutin-container {
    visibility: hidden !important;
}
#duel-cinematic .v265-ability-stage,
#duel-cinematic .v265-ability-stage * {
    box-sizing: border-box;
}
#duel-cinematic .v265-ability-stage {
    --v265-card-height: min(80vh, 720px, 132vw);
    --v265-card-height: min(80dvh, 720px, 132vw);
    --v265-flight: min(48vw, 50vh, 440px);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    color: var(--v265-gem);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
    animation: v265Stage var(--v265-duration) linear both;
}
#duel-cinematic .v265-night-veil {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(7,10,13,.16) 10%, rgba(5,6,11,.55) 70%, rgba(5,6,11,.75));
}
#duel-cinematic .v265-gem-aura {
    position: absolute;
    width: min(130vw, 105vh);
    height: min(130vw, 105vh);
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--v265-gem) 23%, transparent), transparent 66%);
    animation: v265Aura var(--v265-duration) ease-out both;
}
#duel-cinematic .v265-seal {
    position: absolute;
    width: min(135vw, 116vh, 1060px);
    height: min(135vw, 116vh, 1060px);
    fill: none;
    stroke: var(--v265-gem);
    stroke-width: 1.25;
    opacity: .62;
    overflow: visible;
    animation: v265SealReveal var(--v265-duration) cubic-bezier(.2,.75,.25,1) both;
}
#duel-cinematic .v265-seal-outer,
#duel-cinematic .v265-seal-inner {
    transform-origin: 500px 500px;
    animation: v265SealTurn var(--v265-duration) ease-out both;
}
#duel-cinematic .v265-seal-inner {
    animation-direction: reverse;
    opacity: .55;
}
#duel-cinematic .v265-seal-outer path {
    fill: color-mix(in srgb, var(--v265-gem) 32%, transparent);
}
#duel-cinematic .v265-seal-dashes {
    stroke-dasharray: 2 19;
    stroke-width: 5;
}
#duel-cinematic .v265-seal-gold {
    stroke: #dcc58b;
    stroke-width: 1.8;
    opacity: .9;
}
#duel-cinematic .v265-card-flight {
    position: relative;
    z-index: 2;
    height: var(--v265-card-height);
    aspect-ratio: 925 / 1281;
    animation: v265CardArrival var(--v265-duration) cubic-bezier(.2,.75,.25,1) both;
}
#duel-cinematic .v265-card-perspective {
    position: absolute;
    inset: 0;
    perspective: 1500px;
}
#duel-cinematic .v265-card-faces {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: v265CardAwaken var(--v265-duration) cubic-bezier(.2,.75,.25,1) both;
}
#duel-cinematic .v265-card-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 3.6%;
    background: #0b0c0f;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 0 0 1px rgba(242,220,167,.68), 0 10px 40px rgba(0,0,0,.64), 0 0 30px color-mix(in srgb, var(--v265-gem) 35%, transparent);
}
#duel-cinematic .v265-face-awaken {
    transform: rotateY(180deg);
}
#duel-cinematic .v265-card-art {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: inherit;
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-select: none;
}
#duel-cinematic .v265-card-face::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 38%, rgba(255,248,216,.36) 48%, rgba(255,255,245,.62) 50%, transparent 60%);
    transform: translateX(-130%);
    animation: v265CardGleam var(--v265-duration) ease-out both;
}
#duel-cinematic .v265-card-edge-light {
    position: absolute;
    top: -3%;
    bottom: -3%;
    left: 50%;
    width: 2px;
    opacity: 0;
    background: #fff4cf;
    box-shadow: 0 0 14px 3px var(--v265-gem), 0 0 38px 5px var(--v265-gem);
    animation: v265FlipLight var(--v265-duration) linear both;
}
#duel-cinematic .v265-jewel-crown {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: calc(50% - var(--v265-card-height) / 2 - 28px);
    width: 120px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
    animation: v265Crown var(--v265-duration) ease-out both;
}
#duel-cinematic .v265-jewel-crown b {
    display: block;
    width: 18px;
    height: 24px;
    clip-path: polygon(50% 0,88% 24%,100% 57%,50% 100%,0 57%,12% 24%);
    background: conic-gradient(from 15deg, #fff4d7, var(--v265-gem) 20%, #fff 34%, var(--v265-gem) 45%, #17251d 64%, var(--v265-gem) 80%, #fff4d7);
}
#duel-cinematic .v265-jewel-crown i {
    width: 27px;
    height: 7px;
    border-top: 1px solid #d8c086;
    border-bottom: 1px solid color-mix(in srgb, var(--v265-gem) 70%, transparent);
    transform: skewY(-12deg);
}
#duel-cinematic .v265-jewel-crown i:last-child { transform: skewY(12deg); }
#duel-cinematic .v265-gem-shards { position: absolute; inset: 0; z-index: 1; }
#duel-cinematic .v265-gem-shard {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--v265-shard-size);
    height: calc(var(--v265-shard-size) * 1.7);
    background: linear-gradient(125deg, #fff4d7, var(--v265-gem) 45%, #0e171b 100%);
    clip-path: polygon(50% 0,100% 30%,75% 100%,0 65%);
    opacity: 0;
    animation: v265GemShards var(--v265-duration) cubic-bezier(.15,.65,.2,1) both;
}
#duel-cinematic .v265-gem-shard.is-glint {
    background: #ffefc5;
    clip-path: polygon(50% 0,59% 40%,100% 50%,59% 60%,50% 100%,41% 60%,0 50%,41% 40%);
}
#duel-cinematic .v265-card-caption {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: calc(50% + var(--v265-card-height) / 2 + 14px);
    width: max-content;
    max-width: 94%;
    display: flex;
    align-items: center;
    gap: 13px;
    transform: translateX(-50%);
    color: #f3e6c7;
    font-size: clamp(11px, 1.4vw, 16px);
    line-height: 1.5;
    text-shadow: 0 2px 6px #000, 0 0 12px #000;
    animation: v265Caption var(--v265-duration) ease-out both;
}
#duel-cinematic .v265-card-kind {
    color: var(--v265-gem);
    font-weight: 700;
    letter-spacing: .2em;
    white-space: nowrap;
}
#duel-cinematic .v265-card-name { letter-spacing: .08em; white-space: nowrap; }
#duel-cinematic .v265-caption-rule {
    display: block;
    flex: 0 0 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d8c086);
}
#duel-cinematic .v265-caption-rule:last-child { transform: rotate(180deg); }
#duel-cinematic .v265-trump .v265-card-flight { animation-name: v265TrumpArrival; }
#duel-cinematic .v265-trump .v265-card-faces { animation: none; transform: rotateY(0); }
#duel-cinematic .v265-trump .v265-face-awaken,
#duel-cinematic .v265-trump .v265-card-edge-light { display: none; }
#duel-cinematic .v265-trump .v265-card-face::after { animation-name: v265TrumpGleam; }
#duel-cinematic .v265-trump .v265-gem-shard { animation-name: v265TrumpShards; }

.v265-maburoi-seat-normal {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    background: center / cover no-repeat;
    pointer-events: none;
}
.v265-maburoi-seat-hidden { opacity: 0 !important; }
.v265-maburoi-landing-light {
    position: fixed;
    z-index: 94;
    box-sizing: border-box;
    border-radius: 14px;
    box-shadow:
        0 0 9px 2px rgba(255,185,108,.35),
        0 0 22px 5px rgba(231,141,65,.23),
        0 0 36px 8px rgba(216,120,46,.11);
    opacity: 0;
    pointer-events: none;
    animation: v265MaburoiLandingLight 740ms ease-out both;
}
.v265-maburoi-landing-light::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(247,182,107,.53);
    border-top-color: rgba(255,215,156,.77);
    box-shadow: inset 0 0 5px rgba(252,174,91,.14);
}
@keyframes v265MaburoiLandingLight {
    0% { opacity: .48; }
    18% { opacity: .9; }
    38% { opacity: .68; }
    100% { opacity: 0; }
}
#duel-cinematic .v265-maburoi-splice {
    position: absolute;
    inset: 0;
    z-index: 4;
    background:
        linear-gradient(90deg, transparent 6%, rgba(224,164,108,.48) 24%, rgba(208,131,68,.26) 69%, transparent 94%) center 43% / 100% 1px no-repeat,
        linear-gradient(90deg, rgba(113,69,37,.21), transparent 6% 94%, rgba(88,51,30,.18));
    opacity: 0;
    pointer-events: none;
    animation: v265MaburoiSpliceFade 118ms ease-out both;
}
@keyframes v265MaburoiSpliceFade {
    from { opacity: .82; }
    to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .v265-maburoi-landing-light,
    #duel-cinematic .v265-maburoi-splice { display: none; animation: none; }
}
.v265-maburoi-silent-frame {
    position: fixed;
    inset: 0;
    z-index: 2147483410;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
}
.v265-maburoi-silent-frame::backdrop { background: transparent; pointer-events: none; }
.v265-maburoi-film-grain {
    position: absolute;
    inset: 0;
    background-size: 64px 64px;
    opacity: .12;
}
.v265-maburoi-film-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 11.5vh;
    height: 11.5dvh;
    box-sizing: border-box;
    background: #000;
}
.v265-maburoi-film-bar.is-top {
    top: 0;
    transform-origin: top;
    background: linear-gradient(to bottom, #000 83%, #17130e);
    border-bottom: 2px solid #82735e;
}
.v265-maburoi-film-bar.is-bottom {
    bottom: 0;
    transform-origin: bottom;
    background: linear-gradient(to top, #000 83%, #17130e);
    border-top: 2px solid #82735e;
}
#duel-cinematic .v265-maburoi-film-noise-marker,
#duel-cinematic .v265-maburoi-flip-marker {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    animation: v265MaburoiFlipMarker 1ms var(--v265-mark-delay) linear both;
}
@media (prefers-reduced-motion: reduce) {
    #duel-cinematic .v265-maburoi-flip-marker { animation-delay: var(--v265-reduced-mark-delay); }
}
@keyframes v265MaburoiFlipMarker { from {opacity:0} to {opacity:1} }
#duel-cinematic .v265-ability-stage.v265-maburoi-opening {
    --v265-card-height: min(74vh, 720px, 132vw);
    --v265-card-height: min(74dvh, 720px, 132vw);
    animation: none;
}
@media (prefers-reduced-motion: no-preference) {
    .v265-maburoi-film-bar { animation: v265MaburoiBars 340ms ease-out both; }
    #duel-cinematic .v265-maburoi-opening .v265-card-flight { animation-name: v265MaburoiCardArrival; }
    #duel-cinematic .v265-maburoi-seat-flight .v265-card-flight { animation-name: v265MaburoiSeatFlight; }
    #duel-cinematic .v265-maburoi-opening .v265-card-faces {
        animation-name: v265MaburoiAwaken;
        animation-duration: calc(var(--v265-duration) * .58);
    }
    #duel-cinematic .v265-maburoi-opening .v265-night-veil {
        animation: v265MaburoiVeil var(--v265-duration) linear both;
    }
    #duel-cinematic .v265-maburoi-opening .v265-gem-aura { animation-name: v265MaburoiAura; }
    #duel-cinematic .v265-maburoi-opening .v265-card-edge-light { animation-name: v265MaburoiEdgeLight; }
}
@keyframes v265MaburoiBars { from {transform:scaleY(.28)} to {transform:scaleY(1)} }
@keyframes v265MaburoiVeil { 0%,100% {opacity:0} 14.5%,78% {opacity:1} }
@keyframes v265MaburoiAura {
    0%,100% {opacity:0;transform:scale(.8)}
    14.5%,38.5% {opacity:.34;transform:scale(.93)}
    47% {opacity:1;transform:scale(1.18)}
    74% {opacity:.55;transform:scale(1.1)}
}
@keyframes v265MaburoiEdgeLight { 0%,38.5%,54%,100% {opacity:0} 46% {opacity:.85} }
@keyframes v265MaburoiCardArrival {
    0% {transform:translateY(18px) scale(.8);animation-timing-function:cubic-bezier(.42,0,.24,1)}
    27%,38.5% {transform:translateY(0) scale(1)}
    53% {transform:translateY(-4px) scale(1.035)}
    63%,82% {transform:translateY(0) scale(1)}
    100% {transform:translateY(-8px) scale(1.04);opacity:0}
}
@keyframes v265MaburoiSeatFlight {
    0%,98.7%,100% {transform:translate3d(var(--v265-seat-x),var(--v265-seat-y),0) scale(var(--v265-seat-scale-x),var(--v265-seat-scale-y))}
    0% {animation-timing-function:cubic-bezier(.43,0,.72,.56)}
    13.5% {
        transform:translate3d(calc(var(--v265-seat-x) * .5),calc(var(--v265-seat-y) * .5),0)
            scale(calc((var(--v265-seat-scale-x) + 1) * .5),calc((var(--v265-seat-scale-y) + 1) * .5))
            rotateZ(var(--v265-seat-tilt));
        animation-timing-function:cubic-bezier(.28,.44,.48,1);
    }
    27%,38.5% {transform:translate3d(0,0,0) scale(1)}
    53% {transform:translate3d(0,-4px,0) scale(1.035)}
    63%,82% {transform:translate3d(0,0,0) scale(1)}
    82% {animation-timing-function:cubic-bezier(.45,0,.35,1)}
    93% {transform:translate3d(calc(var(--v265-seat-x) * .72),calc(var(--v265-seat-y) * .72),0) scale(calc(var(--v265-seat-scale-x) + .12),calc(var(--v265-seat-scale-y) + .12)) rotateZ(calc(var(--v265-seat-tilt) * -.5))}
}
@keyframes v265MaburoiAwaken {
    0%,66.37931% {transform:rotateY(0deg)}
    100% {transform:rotateY(180deg)}
}

@keyframes v265Stage { 0% {opacity:0} 7%,87% {opacity:1} 100% {opacity:0} }
@keyframes v265CardArrival {
    0% {transform:translateY(18px) scale(.8)}
    16%,28% {transform:translateY(0) scale(1)}
    55% {transform:translateY(-4px) scale(1.025)}
    64%,87% {transform:translateY(0) scale(1)}
    100% {transform:translateY(-8px) scale(1.04)}
}
@keyframes v265CardAwaken {
    0%,27.65% {transform:rotateY(0deg)}
    54.9%,100% {transform:rotateY(180deg)}
}
@keyframes v265CardGleam { 0%,48% {transform:translateX(-130%)} 75%,100% {transform:translateX(130%)} }
@keyframes v265FlipLight { 0%,36% {opacity:0} 40% {opacity:.75} 46%,100% {opacity:0} }
@keyframes v265Aura { 0% {opacity:0;transform:scale(.7)} 25% {opacity:.55;transform:scale(.95)} 48% {opacity:1;transform:scale(1.15)} 88% {opacity:.7;transform:scale(1)} 100% {opacity:0;transform:scale(1.12)} }
@keyframes v265SealReveal { 0% {opacity:0;transform:scale(.85)} 20% {opacity:.45;transform:scale(1)} 49%,82% {opacity:.7;transform:scale(1.025)} 100% {opacity:0;transform:scale(1.08)} }
@keyframes v265SealTurn { from {transform:rotate(-10deg)} to {transform:rotate(9deg)} }
@keyframes v265Crown { 0% {opacity:0;transform:translate(-50%,10px)} 22%,86% {opacity:1;transform:translate(-50%,0)} 100% {opacity:0;transform:translate(-50%,-8px)} }
@keyframes v265Caption { 0%,16% {opacity:0} 28%,86% {opacity:1} 100% {opacity:0} }
@keyframes v265GemShards {
    0%,36% {opacity:0;transform:rotate(var(--v265-angle)) translateX(calc(var(--v265-flight) * .42)) rotate(0) scale(.6)}
    46% {opacity:.95}
    84%,100% {opacity:0;transform:rotate(var(--v265-angle)) translateX(var(--v265-flight)) rotate(var(--v265-shard-spin)) scale(.8)}
}
@keyframes v265TrumpArrival {
    0% {transform:translate(40vw,12vh) rotate(-24deg) scale(1.08)}
    19% {transform:translate(-1vw,0) rotate(3deg) scale(1.025)}
    29%,85% {transform:translate(0,0) rotate(-2deg) scale(1)}
    100% {transform:translate(-1vw,-2vh) rotate(-3deg) scale(1.06)}
}
@keyframes v265TrumpGleam { 0%,16% {transform:translateX(-130%)} 48%,100% {transform:translateX(130%)} }
@keyframes v265TrumpShards {
    0%,12% {opacity:0;transform:rotate(var(--v265-angle)) translateX(calc(var(--v265-flight) * .45)) rotate(0) scale(.6)}
    24% {opacity:.9}
    76%,100% {opacity:0;transform:rotate(var(--v265-angle)) translateX(var(--v265-flight)) rotate(var(--v265-shard-spin)) scale(.75)}
}
@media (max-width: 767px) {
    #duel-cinematic .v265-ability-stage {
        --v265-card-height: min(76vh, 590px, 132vw);
        --v265-card-height: min(76dvh, 590px, 132vw);
    }
    #duel-cinematic .v265-card-caption {gap:8px;font-size:12px}
    #duel-cinematic .v265-caption-rule {flex-basis:15px}
    #duel-cinematic .v265-seal {opacity:.55;stroke-width:1.6}
}
@media (orientation: landscape) and (max-height: 520px) {
    #duel-cinematic .v265-ability-stage {--v265-card-height:72vh;--v265-card-height:72dvh}
    #duel-cinematic .v265-jewel-crown {top:calc(50% - var(--v265-card-height) / 2 - 25px);height:27px}
    #duel-cinematic .v265-card-caption {top:calc(50% + var(--v265-card-height) / 2 + 7px);font-size:11px}
}
@media (prefers-reduced-motion: reduce) {
    #duel-cinematic .v265-ability-stage,
    #duel-cinematic .v265-card-flight,
    #duel-cinematic .v265-seal,
    #duel-cinematic .v265-seal-outer,
    #duel-cinematic .v265-seal-inner,
    #duel-cinematic .v265-jewel-crown,
    #duel-cinematic .v265-card-caption,
    #duel-cinematic .v265-gem-aura {animation:none;opacity:1;transform:none}
    #duel-cinematic .v265-jewel-crown,
    #duel-cinematic .v265-card-caption {transform:translateX(-50%)}
    #duel-cinematic .v265-card-faces {animation:v265ReducedFlip var(--v265-duration) steps(1,end) both}
    #duel-cinematic .v265-card-face::after,
    #duel-cinematic .v265-gem-shard,
    #duel-cinematic .v265-card-edge-light {animation:none;display:none}
    #duel-cinematic .v265-trump .v265-card-faces {animation:none;transform:none}
}
@keyframes v265ReducedFlip { 0%,42% {transform:rotateY(0deg)} 43%,100% {transform:rotateY(180deg)} }

/* V270: the silent rare film uses the same entry, flip and 2350 ms exit as normal cards. */
#duel-cinematic .v269-ability-film {
    position:absolute;inset:0;width:100%;height:100%;object-fit:contain;
    border-radius:inherit;pointer-events:none;opacity:0;
}
#duel-cinematic .v269-ability-film.is-playing {opacity:1}


/* SOURCE styles/repeat-shortcuts-and-log-button.css */
/* SHOCKER_V58_REPEATABLE_CHARACTER_SHORTCUT_AND_LOG_BUTTON */

#v56-chain-log-open.v58-floating-log-button {
    position: fixed !important;
    left: 10px;
    top: 70px;
    right: auto !important;
    bottom: auto !important;
    z-index: 2147482400 !important;
    display: none;
    box-sizing: border-box;
    width: auto !important;
    min-width: 104px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 8px 13px !important;
    border: 2px solid rgba(255, 204, 139, .92) !important;
    border-radius: 10px !important;
    background:
        linear-gradient(180deg, rgba(139, 42, 31, .99), rgba(55, 7, 9, .99)) !important;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, .78),
        0 0 14px rgba(255, 103, 74, .38) !important;
    color: #fff1d2 !important;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: .04em !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    user-select: none;
    isolation: isolate;
    -webkit-tap-highlight-color: rgba(255, 220, 150, .24);
}

body.v45-battle-active #v56-chain-log-open.v58-floating-log-button {
    display: block !important;
}

body.v56-chain-log-open #v56-chain-log-open.v58-floating-log-button,
body:not(.v45-battle-active) #v56-chain-log-open.v58-floating-log-button {
    display: none !important;
}

#v56-chain-log-open.v58-floating-log-button:hover {
    filter: brightness(1.14);
}

#v56-chain-log-open.v58-floating-log-button:active {
    transform: translateY(1px) scale(.97);
}

#v56-chain-log-open.v58-floating-log-button:focus-visible {
    outline: 4px solid #ffe476 !important;
    outline-offset: 3px !important;
}

@media (max-width: 520px) {
    #v56-chain-log-open.v58-floating-log-button {
        min-width: 94px !important;
        min-height: 36px !important;
        padding: 7px 10px !important;
        font-size: 11px !important;
    }
}


/* SOURCE styles/card-motion-and-foley.css */
/* SHOCKER v60: 試合中カードモーション */
body.v45-battle-active {
    --v60-card-gold: #ffd968;
    --v60-card-fire: #ff5a22;
    --v60-card-blue: #69c8ff;
}

body.v45-battle-active #hand-zone > .card,
body.v45-battle-active #player-field > .card,
body.v45-battle-active #opponent-field > .card {
    will-change: transform, filter, opacity;
    transition:
        transform .22s cubic-bezier(.18,.82,.26,1.28),
        filter .2s ease,
        box-shadow .2s ease;
    transform-origin: 50% 72%;
    backface-visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
    body.v45-battle-active #hand-zone > .card:hover:not(.selected-card),
    body.v45-battle-active #player-field > .card:hover:not(.selected-card),
    body.v45-battle-active #opponent-field > .card:hover:not(.selected-card) {
        transform: translateY(-7px) rotateZ(-1.2deg) scale(1.055);
        filter: brightness(1.12) saturate(1.1);
        box-shadow:
            0 12px 18px rgba(0,0,0,.48),
            0 0 18px rgba(255,217,104,.5);
        z-index: 70 !important;
    }
}

body.v45-battle-active .card.v60-card-pressing,
body.v45-battle-active .opponent-mini-card.v60-card-pressing {
    animation: v60CardTap .34s cubic-bezier(.16,.86,.24,1.35) both !important;
}

body.v45-battle-active .card.v60-enter-hand {
    animation: v60DealToHand .72s cubic-bezier(.12,.82,.2,1.12) both !important;
}

body.v45-battle-active .card.v60-enter-player-field {
    animation: v60DealToPlayerField .74s cubic-bezier(.12,.82,.2,1.12) both !important;
}

body.v45-battle-active .card.v60-enter-opponent-field {
    animation: v60DealToOpponentField .74s cubic-bezier(.12,.82,.2,1.12) both !important;
}

body.v45-battle-active .opponent-mini-card.v60-enter-opponent-hand {
    animation: v60DealToOpponentHand .62s cubic-bezier(.12,.82,.2,1.12) both !important;
}

body.v45-battle-active .card.v60-card-flip {
    animation: v60CardFlip .58s cubic-bezier(.18,.78,.22,1.15) both !important;
}

body.v45-battle-active .card.v60-selection-pulse {
    animation: v60SelectionPulse .52s cubic-bezier(.16,.84,.22,1.18) both !important;
}

.v60-card-arrival-flash,
.v60-selection-burst,
.v60-impact-burst,
.v60-impact-rays,
.v60-card-spark {
    position: fixed;
    z-index: 2147481000;
    pointer-events: none;
    will-change: transform, opacity, filter;
}

.v60-card-arrival-flash {
    border: 2px solid rgba(255,224,125,.88);
    border-radius: 10px;
    background:
        linear-gradient(115deg, transparent 20%, rgba(255,255,255,.58) 48%, transparent 72%);
    box-shadow:
        0 0 12px rgba(255,235,168,.9),
        0 0 30px rgba(255,126,31,.52);
    mix-blend-mode: screen;
    animation: v60ArrivalFlash .66s ease-out both;
}

.v60-selection-burst {
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid rgba(255,229,139,.98);
    border-radius: 50%;
    box-shadow:
        0 0 8px #fff6c8,
        0 0 24px rgba(255,176,47,.92);
    animation: v60SelectionRing .56s ease-out both;
}

.v60-card-spark {
    width: 5px;
    height: 28px;
    margin: -14px 0 0 -2px;
    border-radius: 999px;
    background: linear-gradient(to top, transparent, #fff9cf 42%, #ff9b26);
    box-shadow: 0 0 7px #ffcf5b;
    transform-origin: 50% 14px;
    animation: v60SparkFlight .58s cubic-bezier(.1,.72,.2,1) both;
}

.v60-impact-burst {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 8%, #ffe66f 10% 20%, #ff5a1e 33%, transparent 67%);
    box-shadow:
        0 0 26px #fff0a0,
        0 0 58px #ff3a00;
    mix-blend-mode: screen;
    animation: v60ImpactBurst .5s ease-out both;
}

.v60-impact-rays {
    width: 210px;
    height: 210px;
    margin: -105px 0 0 -105px;
    border-radius: 50%;
    background:
        repeating-conic-gradient(
            from 4deg,
            rgba(255,245,190,.92) 0 2deg,
            transparent 2deg 15deg
        );
    -webkit-mask-image: radial-gradient(circle, transparent 0 16%, #000 28% 58%, transparent 78%);
    mask-image: radial-gradient(circle, transparent 0 16%, #000 28% 58%, transparent 78%);
    mix-blend-mode: screen;
    animation: v60ImpactRays .58s cubic-bezier(.1,.7,.18,1) both;
}

body.v60-impact-screen-flash::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2147480000;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--v60-impact-x, 50%) var(--v60-impact-y, 50%),
            rgba(255,249,211,.55), rgba(255,73,18,.18) 22%, transparent 52%);
    animation: v60ScreenFlash .34s ease-out both;
}

@keyframes v60CardTap {
    0%   { transform: translateY(0) rotateZ(0) scale(1); filter: brightness(1); }
    28%  { transform: translateY(4px) rotateZ(-1.5deg) scale(.91); filter: brightness(.86); }
    66%  { transform: translateY(-8px) rotateZ(1.4deg) scale(1.09); filter: brightness(1.28) saturate(1.16); }
    100% { transform: translateY(0) rotateZ(0) scale(1); filter: brightness(1); }
}

@keyframes v60DealToHand {
    0%   { opacity: 0; transform: perspective(680px) translate3d(118px,78px,0) rotateY(88deg) rotateZ(18deg) scale(.58); filter: blur(3px) brightness(1.8); }
    58%  { opacity: 1; transform: perspective(680px) translate3d(-8px,-15px,0) rotateY(-9deg) rotateZ(-5deg) scale(1.13); filter: blur(0) brightness(1.28); }
    78%  { transform: perspective(680px) translate3d(4px,4px,0) rotateY(3deg) rotateZ(2deg) scale(.98); }
    100% { opacity: 1; transform: perspective(680px) translate3d(0,0,0) rotateY(0) rotateZ(0) scale(1); filter: none; }
}

@keyframes v60DealToPlayerField {
    0%   { opacity: 0; transform: perspective(720px) translate3d(-145px,88px,0) rotateX(42deg) rotateY(-82deg) rotateZ(-18deg) scale(.54); filter: blur(3px) brightness(1.8); }
    60%  { opacity: 1; transform: perspective(720px) translate3d(10px,-9px,0) rotateX(-5deg) rotateY(8deg) rotateZ(4deg) scale(1.14); filter: blur(0) brightness(1.3); }
    80%  { transform: perspective(720px) translate3d(-3px,3px,0) rotateX(2deg) rotateY(-3deg) rotateZ(-1deg) scale(.98); }
    100% { opacity: 1; transform: perspective(720px) translate3d(0,0,0) rotateX(0) rotateY(0) rotateZ(0) scale(1); filter: none; }
}

@keyframes v60DealToOpponentField {
    0%   { opacity: 0; transform: perspective(720px) translate3d(145px,-88px,0) rotateX(-42deg) rotateY(82deg) rotateZ(18deg) scale(.54); filter: blur(3px) brightness(1.8); }
    60%  { opacity: 1; transform: perspective(720px) translate3d(-10px,9px,0) rotateX(5deg) rotateY(-8deg) rotateZ(-4deg) scale(1.14); filter: blur(0) brightness(1.3); }
    80%  { transform: perspective(720px) translate3d(3px,-3px,0) rotateX(-2deg) rotateY(3deg) rotateZ(1deg) scale(.98); }
    100% { opacity: 1; transform: perspective(720px) translate3d(0,0,0) rotateX(0) rotateY(0) rotateZ(0) scale(1); filter: none; }
}

@keyframes v60DealToOpponentHand {
    0%   { opacity: 0; transform: translate3d(0,-54px,0) rotate(-16deg) scale(.62); filter: blur(2px) brightness(1.6); }
    64%  { opacity: 1; transform: translate3d(0,7px,0) rotate(4deg) scale(1.12); filter: blur(0) brightness(1.2); }
    100% { opacity: 1; filter: none; }
}

@keyframes v60CardFlip {
    0%   { transform: perspective(720px) rotateY(0) translateY(0) scale(1); filter: brightness(1); }
    46%  { transform: perspective(720px) rotateY(94deg) translateY(-9px) scale(1.12); filter: brightness(2.15) drop-shadow(0 0 15px #ffe187); }
    54%  { transform: perspective(720px) rotateY(266deg) translateY(-9px) scale(1.12); filter: brightness(2.15) drop-shadow(0 0 15px #ffe187); }
    100% { transform: perspective(720px) rotateY(360deg) translateY(0) scale(1); filter: brightness(1); }
}

@keyframes v60SelectionPulse {
    0%   { transform: translateY(0) scale(1); filter: brightness(1); }
    42%  { transform: translateY(-11px) rotateZ(-2deg) scale(1.13); filter: brightness(1.45) drop-shadow(0 0 14px #ffd85f); }
    72%  { transform: translateY(-5px) rotateZ(1deg) scale(1.04); }
    100% { transform: translateY(0) scale(1); filter: brightness(1); }
}

@keyframes v60ArrivalFlash {
    0%   { opacity: 0; transform: scale(.58) rotate(-8deg); filter: blur(4px); }
    35%  { opacity: .95; transform: scale(1.12) rotate(2deg); filter: blur(0); }
    100% { opacity: 0; transform: scale(1.34) rotate(5deg); }
}

@keyframes v60SelectionRing {
    0%   { opacity: 1; transform: scale(.35); }
    100% { opacity: 0; transform: scale(5.2); }
}

@keyframes v60SparkFlight {
    0%   { opacity: 1; transform: rotate(var(--v60-angle)) translateY(0) scaleY(.35); }
    100% { opacity: 0; transform: rotate(var(--v60-angle)) translateY(-72px) scaleY(1.25); }
}

@keyframes v60ImpactBurst {
    0%   { opacity: 0; transform: scale(.18) rotate(0deg); }
    22%  { opacity: 1; transform: scale(1.35) rotate(24deg); }
    100% { opacity: 0; transform: scale(4.8) rotate(78deg); }
}

@keyframes v60ImpactRays {
    0%   { opacity: 0; transform: scale(.18) rotate(-18deg); }
    28%  { opacity: .95; transform: scale(.72) rotate(5deg); }
    100% { opacity: 0; transform: scale(1.62) rotate(32deg); }
}

@keyframes v60ScreenFlash {
    0%   { opacity: .95; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    body.v45-battle-active .card,
    body.v45-battle-active .opponent-mini-card,
    .v60-card-arrival-flash,
    .v60-selection-burst,
    .v60-impact-burst,
    .v60-impact-rays,
    .v60-card-spark,
    body.v60-impact-screen-flash::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* SOURCE styles/halloween-shop.css */
#v134-skin-shop{ --v134-wine:#572641; background:radial-gradient(ellipse at 78% 15%,rgba(148,82,204,.24),transparent 30%),radial-gradient(ellipse at 12% 88%,rgba(217,123,49,.16),transparent 35%),linear-gradient(125deg,#08050d,#251020 55%,#08080c); }
#v134-skin-shop::after{content:"☾";right:3vw;bottom:-6vh;color:rgba(212,182,239,.035);}
#v134-skin-shop .v134-feature::before{content:"HALLOWEEN";font-size:clamp(46px,7vw,100px);color:rgba(220,185,243,.06);}
#v134-skin-shop .v134-shop-header{background:linear-gradient(90deg,rgba(131,62,123,.32),transparent 55%,rgba(206,120,46,.08));}
#v134-skin-shop .v134-shop-kicker{color:#e0ad76;}
#v134-skin-shop .v134-product-badge{border-color:rgba(224,156,88,.56);color:#f5c891;background:rgba(28,10,25,.86);}
#v134-skin-shop .v134-market-heading small{color:#caa8de;}
#v134-skin-shop .v134-shop-title h2{font-size:clamp(21px,2.8vw,37px);}
body[data-v142-field-skin="leonard-halloween-vampire"]{ --v150-accent:#db5966; --v150-secondary:#eac5aa; --v150-deep:#180c20; }
#v142-player-skin-decor[data-skin-id="leonard-halloween-vampire"]{ --v142-decor-opacity:.70; --v142-prop-accent:#db5966; --v142-prop-deep:#180c20; }
body[data-v142-field-skin="leonard-halloween-vampire"] .field-area.player-area{ --v64-bg:radial-gradient(ellipse at 50% 85%,color-mix(in srgb,#db5966 18%,transparent),transparent 60%),linear-gradient(140deg,#15121b,#09090f 70%); --v64-line:color-mix(in srgb,#db5966 48%,transparent); }
body[data-v142-field-skin="larasa-halloween-witch"]{ --v150-accent:#b39ae9; --v150-secondary:#e9c66e; --v150-deep:#180c20; }
#v142-player-skin-decor[data-skin-id="larasa-halloween-witch"]{ --v142-decor-opacity:.70; --v142-prop-accent:#b39ae9; --v142-prop-deep:#180c20; }
body[data-v142-field-skin="larasa-halloween-witch"] .field-area.player-area{ --v64-bg:radial-gradient(ellipse at 50% 85%,color-mix(in srgb,#b39ae9 18%,transparent),transparent 60%),linear-gradient(140deg,#15121b,#09090f 70%); --v64-line:color-mix(in srgb,#b39ae9 48%,transparent); }
body[data-v142-field-skin="maburoi-halloween-banquet"]{ --v150-accent:#ed9956; --v150-secondary:#ead7ad; --v150-deep:#180c20; }
#v142-player-skin-decor[data-skin-id="maburoi-halloween-banquet"]{ --v142-decor-opacity:.70; --v142-prop-accent:#ed9956; --v142-prop-deep:#180c20; }
body[data-v142-field-skin="maburoi-halloween-banquet"] .field-area.player-area{ --v64-bg:radial-gradient(ellipse at 50% 85%,color-mix(in srgb,#ed9956 18%,transparent),transparent 60%),linear-gradient(140deg,#15121b,#09090f 70%); --v64-line:color-mix(in srgb,#ed9956 48%,transparent); }
body[data-v142-field-skin="ordivo-halloween-wolf"]{ --v150-accent:#8fc4e4; --v150-secondary:#e7d7b3; --v150-deep:#180c20; }
#v142-player-skin-decor[data-skin-id="ordivo-halloween-wolf"]{ --v142-decor-opacity:.70; --v142-prop-accent:#8fc4e4; --v142-prop-deep:#180c20; }
body[data-v142-field-skin="ordivo-halloween-wolf"] .field-area.player-area{ --v64-bg:radial-gradient(ellipse at 50% 85%,color-mix(in srgb,#8fc4e4 18%,transparent),transparent 60%),linear-gradient(140deg,#15121b,#09090f 70%); --v64-line:color-mix(in srgb,#8fc4e4 48%,transparent); }
/* SHOCKER_V171_SHOP_LAYOUT_QA_START */
#v134-skin-shop .v134-feature-name {
    font-size:clamp(25px,2.4vw,36px);
    line-height:1.2;
    text-wrap:balance;
}
#v134-skin-shop .v134-product-name {
    display:block;
    margin-top:8px;
    line-height:1.25;
}
#v134-skin-shop .v134-product-badge {
    box-sizing:border-box;
    max-width:100%;
}
@media(max-width:740px) {
    #v134-skin-shop .v134-shop-header {
        display:grid;
        grid-template-columns:minmax(0,1fr) 118px;
        grid-template-rows:auto 42px;
        align-items:center;
        gap:8px;
        min-height:0;
        padding:10px;
    }
    #v134-skin-shop .v134-shop-title {
        grid-column:1/-1;
        grid-row:1;
        min-width:0;
        padding-right:44px;
    }
    #v134-skin-shop .v134-shop-title h2 {
        font-size:21px;
        line-height:1.2;
        letter-spacing:.08em;
        text-wrap:balance;
    }
    #v134-skin-shop .v134-shop-kicker {
        font-size:6px;
        line-height:1.25;
        letter-spacing:.14em;
    }
    #v134-skin-shop .v134-header-actions {
        display:contents;
    }
    #v134-skin-shop #v134-shop-close {
        grid-column:2;
        grid-row:1;
        justify-self:end;
        align-self:start;
        width:34px;
        height:34px;
        margin:0;
    }
    #v134-skin-shop .v134-wallet {
        grid-column:1;
        grid-row:2;
        box-sizing:border-box;
        min-width:0;
        width:100%;
        height:42px;
        padding:6px 9px;
    }
    #v134-skin-shop .v134-wallet strong {
        margin-top:3px;
        font-size:13px;
        line-height:1;
    }
    #v134-skin-shop #v138-mint-entry {
        grid-column:2;
        grid-row:2;
        box-sizing:border-box;
        align-self:stretch;
        min-width:0;
        width:100%;
        height:42px;
        margin:0;
        padding:5px 7px;
        gap:3px;
        font-size:9px;
        line-height:1.15;
        letter-spacing:.04em;
    }
    #v134-skin-shop #v138-mint-entry span {
        font-size:6px;
        line-height:1;
        letter-spacing:.08em;
    }
    #v134-skin-shop .v134-feature {
        display:flex;
        flex-direction:column;
        height:auto;
        min-height:0;
    }
    #v134-skin-shop .v134-card-stage {
        position:relative;
        inset:auto;
        flex:0 0 auto;
        box-sizing:border-box;
        width:100%;
        height:clamp(280px,82vw,320px);
        margin:0;
    }
    #v134-skin-shop .v134-stage-card {
        height:82%;
    }
    #v134-skin-shop .v134-stage-card.normal {
        transform:translateX(-28%) rotate(-6deg);
    }
    #v134-skin-shop .v134-stage-card.awaken {
        transform:translateX(28%) translateY(2%) rotate(6deg);
    }
    #v134-skin-shop .v134-card-stage.is-awaken .v134-stage-card.normal {
        transform:translateX(-28%) translateY(2%) rotate(-6deg);
    }
    #v134-skin-shop .v134-card-stage.is-awaken .v134-stage-card.awaken {
        transform:translateX(28%) rotate(6deg);
    }
    #v134-skin-shop .v134-feature-copy {
        position:relative;
        inset:auto;
        box-sizing:border-box;
        width:100%;
        min-width:0;
        margin:0;
        padding:0 16px 16px;
        text-align:left;
    }
    #v134-skin-shop .v134-feature-series {
        padding:4px 6px;
        font-size:7.5px;
        line-height:1.15;
        letter-spacing:.1em;
    }
    #v134-skin-shop .v134-feature-name {
        margin:8px 0 4px;
        font-size:24px;
    }
    #v134-skin-shop .v134-feature-character {
        font-size:9.5px;
        line-height:1.45;
        letter-spacing:.08em;
    }
    #v134-skin-shop .v134-feature-description {
        margin-top:9px;
        font-size:10.5px;
        line-height:1.6;
    }
    #v134-skin-shop .v134-feature-hint {
        display:flex;
        flex-direction:row;
        align-items:stretch;
        gap:8px;
        margin-top:12px;
    }
    #v134-skin-shop .v134-preview-toggle {
        flex:1;
        min-width:0;
        min-height:34px;
        padding:7px 6px;
        font-size:9px;
        line-height:1.2;
        letter-spacing:.04em;
    }
    #v134-skin-shop .v142-skin-perk {
        box-sizing:border-box;
        max-width:100%;
        margin-top:8px;
        padding:6px 8px;
        font-size:7.5px;
        line-height:1.3;
        letter-spacing:.03em;
    }
    #v134-skin-shop .v134-product-badge {
        padding:4px 5px;
        font-size:6px;
        letter-spacing:.04em;
    }
}
/* SHOCKER_V171_SHOP_LAYOUT_QA_END */


/* SOURCE inline-20 */
.home-notice-links{font-size:12px;margin-top:8px}.home-notice-links a{color:#e8c978}

/* SOURCE styles/rank-result-v212.css */
/* The ranked receipt extends the established result card; its return button stays available. */
.v43-result-card.v212-has-rank-result {
  max-height: calc(100vh - 60px);
  max-height: calc(100svh - 60px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #8f7335 #12100c;
}
.v212-rank-result {
  --v212-rank-accent: #eed486;
  position: relative;
  isolation: isolate;
  margin: 0 0 22px;
  padding: 16px 19px 13px;
  border: 1px solid #997b3a70;
  border-radius: 8px;
  background: radial-gradient(ellipse at 50% 30%, #80642025, transparent 68%), linear-gradient(140deg, #17150f, #090a0b);
  box-shadow: inset 0 1px #ecd48815;
  color: #f2deb2;
  overflow: hidden;
  text-align: center;
}
.v212-rank-result::before, .v212-rank-result::after {
  content: '◆'; position: absolute; top: -7px; color: #a68a48; font-size: 13px;
}
.v212-rank-result::before { left: 13px; }
.v212-rank-result::after { right: 13px; }
.v212-rank-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v212-rank-kicker { color: #ba9d64; font: 600 9px/1.4 Georgia, serif; letter-spacing: .2em; }
.v212-rank-delta { color: var(--v212-rank-accent); font: 700 19px/1.3 Georgia, serif; font-variant-numeric: tabular-nums; text-shadow: 0 0 16px #c9a34540; }
.v212-rank-crest { position: relative; width: 156px; height: 102px; margin: -4px auto 0; }
.v212-rank-emblem { position: absolute; inset: 0; display: grid; place-items: center; }
.v212-rank-emblem .v107-rank-insignia { width: 82px; height: 90px; display: block; filter: drop-shadow(0 0 12px #d4af3740); }
.v212-rank-emblem .v107-crest-svg { width: 100%; height: 100%; }
.v212-rank-fallback { font: 64px/1.2 Georgia, serif; color: #e1c778; }
.v212-rank-rays { position: absolute; inset: -25px -20px; border-radius: 50%; opacity: .25; background: repeating-conic-gradient(from 8deg, transparent 0deg 13deg, #d7b75b26 14deg 16deg, transparent 17deg 30deg); mask-image: radial-gradient(circle, #000 12%, transparent 69%); }
.v212-rank-suits { position: absolute; bottom: 2px; inset-inline: 0; color: #997b40; font: 10px/1 Georgia, serif; letter-spacing: 15px; padding-left: 15px; }
.v212-rank-announcement { margin: 0 0 3px; color: #b8a47c; font: 700 11px/1.5 "Yu Mincho", Georgia, serif; letter-spacing: .24em; padding-left: .24em; min-height: 17px; }
.v212-rank-name { margin: 0 0 13px; color: #f2dfb1; font: 700 26px/1.25 "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; letter-spacing: .08em; text-shadow: 0 2px 8px #000; }
.v212-rank-gauge { position: relative; height: 12px; border: 1px solid #8d733e; border-radius: 2px; background: #020303; box-shadow: inset 0 2px 6px #000, 0 0 0 3px #2d241b; overflow: hidden; }
.v212-rank-fill { position: absolute; inset: 1px auto 1px 1px; max-width: calc(100% - 2px); width: 0; background: linear-gradient(0deg, #9d7026, #f0d17a 44%, #ffecc0 53%, #c89d42); box-shadow: 0 0 10px #edc86450; }
.v212-rank-gauge-shine { position: absolute; inset: 0; opacity: .28; background: linear-gradient(90deg, transparent 20%, #ffefa820 50%, transparent 80%); pointer-events: none; }
.v212-rank-detail { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 9px; font-variant-numeric: tabular-nums; }
.v212-rank-points { font: 700 13px/1.4 Georgia, serif; }
.v212-rank-next { color: #b4a184; font: 10px/1.5 "Yu Gothic", sans-serif; text-align: right; }
.v212-rank-transition { margin: 11px 0 0; color: #9b8b6f; font: 11px/1.4 "Yu Mincho", serif; letter-spacing: .05em; }
.v212-rank-result.is-loss { --v212-rank-accent: #e39196; border-color: #8f424a70; background: radial-gradient(ellipse at 50% 30%, #78263022, transparent 68%), linear-gradient(140deg, #171012, #090a0b); }
.v212-rank-result.is-loss .v212-rank-fill { background: linear-gradient(0deg, #7c2633, #ce6372 44%, #f0a5aa 53%, #a94051); box-shadow: 0 0 8px #df627245; }
.v212-rank-result.is-loss .v212-rank-gauge { border-color: #8f535b; }
.v212-rank-result.is-demoted .v212-rank-announcement { color: #e39196; }
.v212-rank-result.is-draw .v212-rank-fill { background: linear-gradient(0deg, #625a42, #b9ae8b 44%, #d3cab2 53%, #8f8466); }
.v212-rank-result.is-promoted { border-color: #d5ac58; }
.v212-rank-result.is-promoted .v212-rank-announcement { color: #f5d585; font-size: 14px; text-shadow: 0 0 18px #dda24d55; }
.v212-rank-result.is-promoted .v212-rank-name { color: #ffe9b3; }
.v212-rank-result.is-major-promotion { background: radial-gradient(ellipse at 50% 24%, #b8862338, transparent 67%), linear-gradient(140deg, #241c0f, #0c0a09); box-shadow: inset 0 0 30px #d8a43810, 0 0 20px #d0a94c25; }
.v212-rank-result.is-celebrating .v212-rank-emblem { animation: v212-rank-seal 1.2s cubic-bezier(.17,.7,.22,1) both; }
.v212-rank-result.is-celebrating .v212-rank-rays { animation: v212-rank-coronation 1.7s ease-out both; }
.v212-rank-result.is-celebrating .v212-rank-announcement { animation: v212-rank-proclaim .7s .12s ease-out both; }
.v212-rank-result.is-major-promotion.is-celebrating .v212-rank-name { animation: v212-rank-proclaim .85s .15s ease-out both; }
.v212-rank-result.is-waiting { padding: 15px 10px; }
.v212-rank-result.is-waiting p { margin: 0; color: #bba987; font: 12px/1.5 "Yu Gothic", sans-serif; }
@keyframes v212-rank-seal { from { opacity: .45; transform: scale(1.22); filter: drop-shadow(0 0 24px #ffdc7c); } 38% { opacity: 1; transform: scale(.97); } to { opacity: 1; transform: scale(1); filter: none; } }
@keyframes v212-rank-coronation { from { opacity: 0; transform: rotate(-14deg) scale(.7); } 40% { opacity: .85; } to { opacity: .4; transform: rotate(8deg) scale(1.08); } }
@keyframes v212-rank-proclaim { from { opacity: 0; transform: translateY(6px); letter-spacing: .35em; } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 420px) {
  .v212-rank-result { padding-inline: 13px; margin-bottom: 17px; }
  .v212-rank-detail { gap: 6px; }
  .v212-rank-next { font-size: 9px; }
  .v212-rank-name { font-size: 24px; }
}
@media (max-height: 660px) {
  .v43-result-card.v212-has-rank-result { padding-block: 17px; }
  .v43-result-card.v212-has-rank-result #v43-match-result-title { font-size: 48px; }
  .v43-result-card.v212-has-rank-result #v43-match-result-reason { margin-bottom: 12px; }
  .v212-rank-crest { height: 80px; }
  .v212-rank-emblem .v107-rank-insignia { width: 66px; height: 73px; }
  .v212-rank-name { margin-bottom: 10px; font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .v212-rank-result *, .v212-rank-result *::before, .v212-rank-result *::after { animation: none !important; transition: none !important; }
}


/* SOURCE styles/demo-access-v213.css */
/* Scoped overlays leave the original menu and banner layouts intact. */
[data-shocker-release-feature].shocker-demo-locked {
  position: relative !important;
  isolation: isolate;
  cursor: not-allowed !important;
  opacity: 1 !important;
}
[data-shocker-release-feature].shocker-demo-locked::after,
html body #home-screen.v62-shocker-home [data-shocker-release-feature].shocker-demo-locked::after {
  content: "🔒\A本公開まで準備中" !important;
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  z-index: 30 !important;
  display: grid !important;
  box-sizing: border-box;
  align-content: center;
  justify-items: center;
  padding: .4rem;
  border-radius: inherit;
  background: rgb(5 6 12 / 66%) !important;
  color: #eadfc7;
  font: 600 clamp(11px, 1.1vw, 15px)/1.8 sans-serif;
  letter-spacing: .05em;
  text-align: center;
  text-shadow: 0 1px 5px #000;
  white-space: pre-line;
  pointer-events: none;
  transform: none !important;
  opacity: 1 !important;
}
#v134-home-wallet.shocker-demo-locked::after,
html body #home-screen.v62-shocker-home #v134-home-wallet.shocker-demo-locked::after {
  content: "🔒" !important;
  justify-items: end;
  padding-right: .5rem;
  background: rgb(5 6 12 / 58%) !important;
  font-size: 15px;
}


/* SOURCE styles/loading.css */
#v112-login-loading{position:fixed;inset:0;z-index:2147483000;display:none;overflow:hidden;color:#f5e8c7;background:#050504;isolation:isolate;font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif}
#v112-login-loading.show{place-items:center}
#v112-login-loading::before{content:"";position:absolute;inset:-12%;background:radial-gradient(circle at 72% 38%,var(--v112-glow,rgba(179,42,35,.32)),transparent 25%),radial-gradient(circle at 24% 82%,rgba(218,178,83,.12),transparent 29%),linear-gradient(125deg,#080706 0%,#17100e 48%,#050504 100%);animation:v112Atmosphere 7s ease-in-out infinite alternate}
#v112-login-loading::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(116deg,transparent 0 28px,rgba(255,231,172,.018) 29px 30px),radial-gradient(ellipse at center,transparent 34%,rgba(0,0,0,.82) 100%);mix-blend-mode:screen}
.v112-load-sigil{position:absolute;left:50%;top:46%;width:min(76vw,760px);aspect-ratio:1;translate:-50% -50%;border:1px solid rgba(223,192,114,.1);border-radius:50%;opacity:.72;animation:v112Sigil 32s linear infinite}
.v112-load-sigil::before,.v112-load-sigil::after{content:"";position:absolute;border-radius:50%;border:1px dashed rgba(223,192,114,.1)}
.v112-load-sigil::before{inset:11%}.v112-load-sigil::after{inset:28%;border-style:solid}
.v112-load-shell{position:relative;z-index:2;width:min(1120px,calc(100% - 34px));min-height:min(680px,calc(100dvh - 34px));display:grid;grid-template-columns:minmax(310px,.9fr) minmax(390px,1.1fr);border:1px solid rgba(223,192,114,.42);background:linear-gradient(135deg,rgba(11,10,9,.9),rgba(29,17,15,.72));box-shadow:0 24px 90px #000,0 0 80px var(--v112-glow,rgba(179,42,35,.2));clip-path:polygon(0 0,calc(100% - 28px) 0,100% 28px,100% 100%,28px 100%,0 calc(100% - 28px))}
.v112-load-portrait{position:relative;min-height:560px;overflow:hidden;border-right:1px solid rgba(223,192,114,.27);background-position:center 18%;background-size:cover;background-repeat:no-repeat;transition:background-image .25s ease}
.v112-load-portrait::before{content:"";position:absolute;inset:0;background:linear-gradient(to top,#090706 0%,rgba(9,7,6,.08) 46%,rgba(9,7,6,.34) 100%),linear-gradient(90deg,transparent 58%,rgba(8,7,6,.86) 100%)}
.v112-load-portrait::after{content:"CHARACTER ARCHIVE";position:absolute;left:22px;top:23px;padding:6px 9px;border:1px solid rgba(232,204,132,.48);color:#dec487;background:rgba(0,0,0,.48);font:700 9px/1 "Courier New",monospace;letter-spacing:.28em}
.v112-load-copy{position:relative;display:flex;flex-direction:column;min-width:0;padding:clamp(27px,4vw,62px)}
.v112-load-system{display:flex;justify-content:space-between;gap:14px;color:#bda66e;font:700 9px/1.3 "Courier New",monospace;letter-spacing:.19em}
.v112-load-auth{color:#79d89a}.v112-load-auth::before{content:"●";margin-right:7px;animation:v112Pulse 1.1s ease-in-out infinite}
.v112-load-rule{height:1px;margin:16px 0 30px;background:linear-gradient(90deg,#d7b96c,rgba(215,185,108,.06))}
.v112-load-kicker{color:var(--v112-gem,#d4af37);font:700 10px/1.4 "Courier New",monospace;letter-spacing:.34em}
#v112-load-name{margin:12px 0 5px;color:#fff5d7;font-size:clamp(33px,5vw,62px);line-height:1.02;letter-spacing:.08em;text-shadow:0 5px 24px #000,0 0 28px var(--v112-glow)}
#v112-load-role{color:var(--v112-gem,#d4af37);font-size:12px;letter-spacing:.18em}
#v112-load-copytext{min-height:76px;margin:29px 0 19px;color:#d5c9ae;font-size:13px;line-height:1.9;text-align:left}
.v112-tactical-file{display:grid;grid-template-columns:auto 1fr;gap:7px 15px;padding:17px 18px;border-left:3px solid var(--v112-gem,#d4af37);background:linear-gradient(90deg,var(--v112-soft,rgba(212,175,55,.12)),rgba(255,255,255,.015));box-shadow:inset 0 1px rgba(255,255,255,.05)}
.v112-tactical-file span{color:#9d8e6d;font:700 9px/1.5 "Courier New",monospace;letter-spacing:.13em}.v112-tactical-file b{color:#f0e0b8;font-size:11px;line-height:1.5;font-weight:normal;text-align:left}
.v112-load-bottom{margin-top:auto;padding-top:28px}
.v112-load-status{display:flex;justify-content:space-between;gap:16px;margin-bottom:9px;color:#c8b98f;font:700 10px/1.3 "Courier New",monospace;letter-spacing:.1em}
.v112-progress-track{height:5px;overflow:hidden;background:rgba(255,255,255,.08);box-shadow:inset 0 1px 3px #000}
#v112-progress{width:0;height:100%;background:linear-gradient(90deg,#805a23,var(--v112-gem,#d4af37),#fff0b0);box-shadow:0 0 16px var(--v112-gem,#d4af37);transition:width .55s cubic-bezier(.2,.8,.2,1)}
.v112-load-tip{margin-top:12px;color:#877b63;font:9px/1.5 "Courier New",monospace;letter-spacing:.06em;text-align:left}
#v112-load-skip{align-self:flex-end;margin-top:18px;padding:9px 14px;border:1px solid rgba(224,198,128,.38);background:rgba(0,0,0,.28);color:#cdbc91;font:700 9px/1 "Courier New",monospace;letter-spacing:.13em;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .3s,border-color .2s,color .2s}
#v112-load-skip.ready{opacity:1;pointer-events:auto}#v112-load-skip:hover{border-color:#ead28e;color:#fff0bf}
@keyframes v112Atmosphere{to{transform:scale(1.05) translate3d(-1.5%,1%,0)}}@keyframes v112Sigil{to{transform:rotate(360deg)}}@keyframes v112Pulse{50%{opacity:.32}}
@media(max-width:760px){.v112-load-shell{width:calc(100% - 16px);min-height:calc(100dvh - 16px);grid-template-columns:42% 58%}.v112-load-portrait{min-height:calc(100dvh - 16px);background-position:center top}.v112-load-copy{padding:24px 16px}.v112-load-system{display:grid;gap:6px}.v112-load-rule{margin:12px 0 20px}#v112-load-name{font-size:clamp(24px,7vw,40px)}#v112-load-copytext{font-size:10px;line-height:1.7;margin:18px 0 14px}.v112-tactical-file{grid-template-columns:1fr;padding:12px;gap:3px}.v112-tactical-file b{font-size:9px}.v112-load-bottom{padding-top:15px}}
@media(max-width:470px){.v112-load-shell{display:block;overflow:hidden}.v112-load-portrait{position:absolute;inset:0;min-height:0;opacity:.48;border:0;background-position:center 10%}.v112-load-portrait::before{background:linear-gradient(90deg,rgba(5,5,4,.2),rgba(5,5,4,.93) 62%),linear-gradient(to top,#050504,transparent 52%)}.v112-load-copy{min-height:calc(100dvh - 16px);padding:20px 18px 17px 38%}.v112-load-portrait::after{left:12px;top:16px;font-size:7px}.v112-load-tip{font-size:7px}}
@media(prefers-reduced-motion:reduce){#v112-login-loading::before,.v112-load-sigil,.v112-load-auth::before{animation:none!important}#v112-progress{transition:none!important}}

/* v256: the wrapper keeps the original PC flex items in the same flow. */
.v256-load-details { display:contents; }
/* Touch phones have one bounded details pane and a separate progress area. */
html.shocker-mobile-v252 body #v112-login-loading .v112-load-shell {
  display:grid !important;
  box-sizing:border-box;
  min-height:0 !important;
  max-height:calc(var(--mobile-v252-height,100dvh) - 18px) !important;
  grid-template-columns:minmax(140px,.65fr) minmax(0,1.35fr) !important;
  grid-template-rows:minmax(0,1fr) !important;
  overflow:hidden !important;
}
html.shocker-mobile-v252 body #v112-login-loading .v112-load-portrait {
  position:relative !important;
  inset:auto !important;
  min-width:0;
  min-height:0 !important;
  width:100%;
  height:100%;
  opacity:1;
  clip-path:none;
  background-position:center 20%;
}
html.shocker-mobile-v252 body #v112-login-loading .v112-load-copy {
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
  min-width:0;
  min-height:0 !important;
  height:100%;
  padding:12px 16px !important;
  overflow:hidden !important;
}
html.shocker-mobile-v252 body #v112-login-loading .v112-load-system {
  flex:0 0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:4px 10px;
  padding-left:10px;
  font-size:10px;
  line-height:1.5;
  letter-spacing:.08em;
}
html.shocker-mobile-v252 body #v112-login-loading .v256-load-details {
  display:block;
  flex:1 1 auto;
  min-height:0;
  margin:8px 0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  touch-action:pan-y;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:#8b713e #110b08;
  scroll-padding:8px;
}
html.shocker-mobile-v252 body #v112-login-loading .v112-load-rule { margin:8px 0 12px; }
html.shocker-mobile-v252 body #v112-login-loading #v112-load-name {
  margin:7px 0 4px;
  font-size:28px;
  line-height:1.3;
  overflow-wrap:anywhere;
}
html.shocker-mobile-v252 body #v112-login-loading #v112-load-role {
  box-sizing:border-box;
  max-width:100%;
  font-size:12px;
  line-height:1.6;
  overflow-wrap:anywhere;
}
html.shocker-mobile-v252 body #v112-login-loading #v112-load-copytext {
  min-height:0;
  margin:12px 0;
  font-size:13px;
  line-height:1.8;
  overflow-wrap:anywhere;
}
html.shocker-mobile-v252 body #v112-login-loading .v112-tactical-file {
  grid-template-columns:minmax(0,1fr);
  gap:4px;
  padding:12px;
}
html.shocker-mobile-v252 body #v112-login-loading .v112-tactical-file span { font-size:10px; }
html.shocker-mobile-v252 body #v112-login-loading .v112-tactical-file b {
  font-size:12px;
  line-height:1.7;
  overflow-wrap:anywhere;
}
html.shocker-mobile-v252 body #v112-login-loading .v112-load-bottom {
  flex:0 0 auto;
  min-width:0;
  margin-top:0;
  padding-top:8px;
  border-top:1px solid #b9944b55;
}
html.shocker-mobile-v252 body #v112-login-loading .v112-load-status {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:8px;
  font-size:12px;
  line-height:1.5;
  letter-spacing:0;
}
html.shocker-mobile-v252 body #v112-login-loading #v112-load-message { overflow-wrap:anywhere; }
html.shocker-mobile-v252 body #v112-login-loading #v112-load-percent { white-space:nowrap;font-variant-numeric:tabular-nums; }
html.shocker-mobile-v252 body #v112-login-loading .v112-load-tip { margin-top:8px;font-size:10px;line-height:1.5;letter-spacing:0; }
html.shocker-mobile-v252 body #v112-login-loading #v112-load-skip { min-height:44px;margin-top:8px;font-size:12px; }
html.shocker-mobile-v252 body #v112-login-loading #v112-load-skip:not(.ready) { display:none; }
html.shocker-mobile-v252 body #v112-login-loading .v113-wax-seal,
html.shocker-mobile-v252 body #v112-login-loading .v113-suit-rail,
html.shocker-mobile-v252 body #v112-login-loading .v113-classified-stamp { display:none; }
html.shocker-mobile-v252 body #v112-login-loading .v113-file-index { left:12px;bottom:12px;font-size:9px; }
html.shocker-mobile-v252 body #v112-login-loading .v113-file-index strong { font-size:23px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 body #v112-login-loading .v112-load-shell {
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-rows:minmax(90px,22%) minmax(0,1fr) !important;
}
html.shocker-mobile-v252.shocker-mobile-keyboard-v252 body #v112-login-loading .v112-load-shell {
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-rows:minmax(0,1fr) !important;
}
html.shocker-mobile-v252.shocker-mobile-keyboard-v252 body #v112-login-loading .v112-load-portrait { display:none; }
html.shocker-mobile-v252.shocker-mobile-keyboard-v252 body #v112-login-loading {
  height:var(--mobile-v252-visual-height,100dvh) !important;
  max-height:var(--mobile-v252-visual-height,100dvh) !important;
}
html.shocker-mobile-v252.shocker-mobile-keyboard-v252 body #v112-login-loading .v112-load-shell {
  height:calc(var(--mobile-v252-visual-height,100dvh) - 18px) !important;
  max-height:calc(var(--mobile-v252-visual-height,100dvh) - 18px) !important;
}

/* v262: keep the progress/footer in the phone's visible area, even during
   Safari toolbar/keyboard changes; text enlargement must not reflow the dossier. */
html.shocker-mobile-v252 body #v112-login-loading {
  box-sizing:border-box;
  padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
html.shocker-mobile-v252 body #v112-login-loading .v112-load-shell {
  width:100% !important;
  height:100% !important;
  max-height:100% !important;
  margin:0;
}
html.shocker-mobile-v252 body #v112-login-loading .v112-load-system > span,
html.shocker-mobile-v252 body #v112-login-loading .v112-load-kicker {
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
}
html.shocker-mobile-v252 body #v112-login-loading::before,
html.shocker-mobile-v252 body #v112-login-loading .v112-load-sigil,
html.shocker-mobile-v252 body #v112-login-loading .v112-load-auth::before {
  animation:none;
  filter:none;
}
html.shocker-mobile-v252 body #v112-login-loading::after {
  mix-blend-mode:normal;
}
html.shocker-mobile-v252 body #v112-login-loading .v112-load-portrait {
  filter:none;
  transition:none;
}
html.shocker-mobile-v252 body #v112-login-loading #v112-progress {
  transition:width .18s linear;
}


/* SOURCE styles/background-isolation.css */
/* ロード中はロード画面以外の旧UI・背景・疑似要素を描画しない。 */
body.v115-loading-active{overflow:hidden!important;background:#030202!important}
body.v115-loading-active>*:not(#v112-login-loading){display:none!important}
body.v115-loading-active::before,body.v115-loading-active::after{content:none!important;display:none!important;background:none!important}
body.v115-loading-active #v112-login-loading{display:grid!important;visibility:visible!important;opacity:1!important;position:fixed!important;inset:0!important;z-index:2147483646!important;isolation:isolate!important;background:#030303!important}
body.v115-loading-active #v112-login-loading::before,body.v115-loading-active #v112-login-loading::after{display:block!important}
body.v115-loading-active #v112-login-loading *{visibility:visible}


/* SOURCE styles/background-replacement.css */
/* 旧ホーム／旧試合背景を廃止。背景は機密施設の暗色基盤に統一する。 */
html, body { background-color:#030405 !important; }
body {
  background-image:
    radial-gradient(ellipse at 50% 8%, rgba(117,18,19,.20), transparent 43%),
    linear-gradient(135deg, rgba(212,175,55,.035) 0 1px, transparent 1px 72px),
    linear-gradient(45deg, rgba(212,175,55,.022) 0 1px, transparent 1px 72px) !important;
  background-size:auto,72px 72px,72px 72px !important;
  background-attachment:fixed !important;
}
body.revolution-bg {
  background-image:
    radial-gradient(ellipse at 50% 10%, rgba(155,16,20,.34), transparent 48%),
    linear-gradient(135deg, rgba(212,175,55,.035) 0 1px, transparent 1px 72px),
    linear-gradient(45deg, rgba(212,175,55,.022) 0 1px, transparent 1px 72px) !important;
}
#home-screen { background:#030405 !important; }
#home-screen::before, #home-screen::after { content:none !important; display:none !important; background:none !important; }


/* SOURCE styles/imperial-transition.css */
/* ロード画面：帝国戦略局の極秘作戦書として再構成 */
#v112-login-loading{--v117-red:#7f1118;--v117-gold:#d7b968;background:#020303!important}
#v112-login-loading::before{background:radial-gradient(circle at 72% 38%,var(--v112-glow,rgba(127,17,24,.34)),transparent 25%),linear-gradient(115deg,transparent 0 49.8%,rgba(215,185,104,.05) 50%,transparent 50.2%),radial-gradient(ellipse at 24% 82%,rgba(215,185,104,.10),transparent 30%),linear-gradient(125deg,#030404,#160d0e 52%,#020303)!important}
.v112-load-shell{border-color:rgba(215,185,104,.58)!important;background:linear-gradient(135deg,rgba(5,6,6,.96),rgba(27,12,13,.88))!important;box-shadow:0 28px 100px #000,0 0 0 1px rgba(127,17,24,.58),0 0 90px var(--v112-glow)!important}
.v112-load-shell::before{z-index:5;right:20px;top:17px;color:rgba(235,91,91,.72);border:1px solid rgba(190,42,45,.48);padding:5px 8px;transform:rotate(2deg);font:800 8px/1 Courier New,monospace;letter-spacing:.16em}
.v112-load-shell::after{content:"♛";z-index:5;right:28px;bottom:24px;width:66px;height:66px;display:grid;place-items:center;border:2px solid rgba(142,28,31,.55);border-radius:50%;color:rgba(190,48,51,.64);font-size:30px;transform:rotate(-11deg);box-shadow:inset 0 0 0 4px rgba(142,28,31,.16)}
.v112-load-kicker{color:#d05a5e!important}.v112-load-auth{color:#d7b968!important}.v112-load-auth::before{color:#b9252d}
#v112-progress{background:linear-gradient(90deg,#641016,#b52a31,#d7b968,#fff1b0)!important}
.v112-tactical-file{background:linear-gradient(90deg,rgba(116,18,23,.18),rgba(215,185,104,.035))!important}

/* 先攻後攻：カード抽選ではなく、正式な開戦命令として演出 */
#startup-overlay{inset:0!important;z-index:1000!important;box-sizing:border-box!important;display:none;align-items:center!important;justify-content:center!important;flex-direction:column!important;padding:clamp(22px,5vh,60px) 16px!important;color:#e8dcc0!important;background:radial-gradient(ellipse at 50% 55%,rgba(115,19,24,.22),transparent 34%),linear-gradient(90deg,rgba(0,0,0,.96),rgba(17,8,9,.97),rgba(0,0,0,.96))!important;isolation:isolate}
#startup-overlay::before{opacity:.18!important;background:repeating-linear-gradient(0deg,rgba(255,255,255,.028) 0 1px,transparent 1px 5px),linear-gradient(90deg,transparent 49.9%,rgba(215,185,104,.12) 50%,transparent 50.1%)!important}
#startup-overlay::after{inset:0!important;opacity:.55!important;background:radial-gradient(ellipse at center,transparent 28%,rgba(0,0,0,.88) 100%),repeating-linear-gradient(90deg,transparent 0 89px,rgba(215,185,104,.025) 90px)!important;animation:none!important}
.v117-toss-curtain{position:absolute;z-index:0;top:0;bottom:0;width:32%;background:linear-gradient(90deg,#100304,#4f0c11 52%,#160405);box-shadow:inset 0 0 50px #000,0 0 55px #000;opacity:.48}.v117-toss-curtain.left{left:0;clip-path:polygon(0 0,100% 0,74% 100%,0 100%)}.v117-toss-curtain.right{right:0;clip-path:polygon(0 0,100% 0,100% 100%,26% 100%)}
.v117-toss-crest{position:absolute;z-index:1;left:50%;top:48%;translate:-50% -50%;font-size:min(54vw,560px);color:rgba(215,185,104,.026);text-shadow:0 0 70px rgba(215,185,104,.08)}
.v117-order-no,#startup-overlay h1,.v117-toss-rule,.toss-cards,#toss-result-text,.v117-order-foot{position:relative;z-index:5}
.v117-order-no{color:#a8915c;font:800 clamp(8px,1.1vw,11px)/1.2 Courier New,monospace;letter-spacing:.28em;border-bottom:1px solid rgba(215,185,104,.32);padding:0 18px 9px}
#startup-overlay h1{margin:13px 0 4px!important;color:#f4e6bc!important;font:500 clamp(32px,6vw,68px)/1.05 Georgia,Yu Mincho,serif!important;letter-spacing:.34em!important;text-indent:.34em;text-shadow:0 4px 2px #000,0 0 24px rgba(181,42,49,.55)!important}
.v117-toss-rule{max-width:660px;margin:8px 0 22px;color:#bcae8e;font-size:clamp(9px,1.5vw,12px);letter-spacing:.12em}
.toss-cards{align-items:center!important;gap:clamp(20px,5vw,64px)!important;margin:0!important}
.toss-player-box{min-width:120px;color:#cabb98!important}.toss-player-box>span{display:grid;gap:4px;font-size:9px;letter-spacing:.18em}.toss-player-box>span b{color:#d7b968;font:800 11px/1 Courier New,monospace}.toss-player-box.enemy>span b{color:#d15b60}
.v117-toss-divider{display:flex;align-items:center;gap:10px;color:#d7b968}.v117-toss-divider i{display:block;width:clamp(12px,3vw,42px);height:1px;background:linear-gradient(90deg,transparent,#d7b968)}.v117-toss-divider i:last-child{transform:scaleX(-1)}.v117-toss-divider strong{font:400 20px/1 Georgia,serif}
.toss-card-visual{margin-top:12px!important;border-color:#a98c47!important;background:linear-gradient(145deg,rgba(255,255,255,.75),transparent 21%),linear-gradient(135deg,#efe4c9,#cdb98c)!important;box-shadow:0 20px 46px #000,inset 0 0 0 4px #e5d5b0,inset 0 0 0 5px #7e632e!important}
.toss-card-visual.card-back::after{color:#d7b968!important}
#toss-result-text{box-sizing:border-box;min-width:min(680px,92vw);height:auto!important;min-height:52px!important;margin:20px 0 0;padding:12px 18px;border-top:1px solid rgba(215,185,104,.30);border-bottom:1px solid rgba(215,185,104,.30);background:linear-gradient(90deg,transparent,rgba(0,0,0,.54),transparent);font:500 clamp(13px,2.4vw,21px)/1.35 Georgia,Yu Mincho,serif!important;letter-spacing:.12em!important;text-shadow:0 2px 8px #000!important}
.v117-order-foot{margin-top:11px;color:#71674f;font:700 7px/1 Courier New,monospace;letter-spacing:.22em}
.toss-card-visual.toss-winner{border-color:#f2d57e!important;box-shadow:0 18px 45px #000,0 0 24px rgba(242,213,126,.78),0 0 80px rgba(163,25,31,.46)!important}
@media(max-width:560px){#startup-overlay{padding:18px 8px!important}.v117-toss-rule{margin-bottom:15px}.toss-cards{gap:10px!important}.v117-toss-divider{gap:4px}.v117-toss-divider i{width:8px}.toss-player-box{min-width:88px}.toss-player-box>span{font-size:7px}.toss-player-box>span b{font-size:9px}#startup-overlay h1{font-size:34px!important}.v117-order-foot{font-size:6px}.v112-load-shell::before{font-size:6px;right:9px}.v112-load-shell::after{width:44px;height:44px;font-size:20px;right:12px;bottom:15px}}


/* SOURCE styles/grand-assembly-start.css */
#title-screen.v153-grand-assembly {
    --v153-ink:#030405;
    --v153-crimson:#7d1119;
    --v153-crimson-bright:#bd2932;
    --v153-gold:#d9bd70;
    --v153-gold-bright:#fff0b0;
    position:fixed !important;
    inset:0 !important;
    z-index:1200 !important;
    display:block !important;
    width:100% !important;
    height:100% !important;
    min-height:100dvh !important;
    padding:0 !important;
    overflow:hidden !important;
    color:#f8edcf !important;
    background:
        radial-gradient(ellipse at 50% 22%,rgba(150,25,31,.24),transparent 38%),
        radial-gradient(ellipse at 8% 58%,rgba(18,96,75,.17),transparent 30%),
        radial-gradient(ellipse at 92% 58%,rgba(28,73,109,.16),transparent 30%),
        linear-gradient(132deg,#020303 0%,#13080a 46%,#050405 72%,#020303 100%) !important;
    box-shadow:inset 0 0 180px #000 !important;
    isolation:isolate;
    font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif;
    text-align:center;
}

#title-screen.v153-grand-assembly.v153-leaving {
    opacity:0;
    transform:scale(1.018);
    transition:opacity .34s ease,transform .34s ease;
    pointer-events:none;
}

#title-screen.v153-grand-assembly.v153-retired {
    display:none !important;
}



.v153-start-backdrop,
.v153-start-backdrop::before,
.v153-start-backdrop::after,
.v153-start-frame,
.v153-start-frame::before,
.v153-start-frame::after,
.v153-start-crest,
.v153-start-curtain,
.v153-start-shade,
.v153-start-rule,
.v153-start-footer {
    position:absolute;
    pointer-events:none;
}

.v153-start-backdrop { inset:0;z-index:0; }
.v153-start-backdrop::before {
    content:"";
    inset:-15%;
    background:
        repeating-linear-gradient(112deg,transparent 0 54px,rgba(238,207,126,.018) 55px 56px),
        radial-gradient(circle at 50% 46%,transparent 0 15%,rgba(216,185,103,.055) 15.2% 15.5%,transparent 15.7% 27%,rgba(216,185,103,.035) 27.2% 27.5%,transparent 27.7%);
    transform:rotate(-4deg);
}
.v153-start-backdrop::after {
    content:"";
    inset:0;
    background:
        linear-gradient(90deg,rgba(0,0,0,.7),transparent 17% 83%,rgba(0,0,0,.7)),
        linear-gradient(180deg,rgba(0,0,0,.38),transparent 24% 66%,rgba(0,0,0,.82)),
        radial-gradient(ellipse at center,transparent 30%,rgba(0,0,0,.62) 100%);
}

.v153-start-curtain { top:0;bottom:0;width:20%;z-index:1;opacity:.65; }
.v153-start-curtain.left {
    left:0;
    clip-path:polygon(0 0,100% 0,58% 100%,0 100%);
    background:linear-gradient(96deg,#090102 0%,#4d0910 42%,#150306 73%,transparent 100%);
    box-shadow:inset -28px 0 48px rgba(0,0,0,.7);
}
.v153-start-curtain.right {
    right:0;
    clip-path:polygon(0 0,100% 0,100% 100%,42% 100%);
    background:linear-gradient(264deg,#090102 0%,#4d0910 42%,#150306 73%,transparent 100%);
    box-shadow:inset 28px 0 48px rgba(0,0,0,.7);
}

.v153-start-frame { inset:clamp(8px,1.3vw,24px);z-index:80;border:1px solid rgba(217,189,112,.48); }
.v153-start-frame::before {
    content:"";
    inset:5px;
    border:1px solid rgba(217,189,112,.16);
    clip-path:polygon(0 0,18% 0,18% 1px,82% 1px,82% 0,100% 0,100% 100%,82% 100%,82% calc(100% - 1px),18% calc(100% - 1px),18% 100%,0 100%);
}
.v153-start-frame::after {
    content:"♠";
    left:50%;top:-9px;
    width:52px;height:20px;
    display:grid;place-items:center;
    translate:-50% 0;
    color:var(--v153-gold);
    background:#080405;
    border-inline:1px solid rgba(217,189,112,.48);
    font:700 14px/1 Georgia,serif;
}

.v153-start-crest {
    left:50%;top:40%;z-index:2;
    width:min(61vw,680px);aspect-ratio:1;
    translate:-50% -50%;
    border:1px solid rgba(219,189,110,.075);
    border-radius:50%;
    box-shadow:0 0 0 34px rgba(219,189,110,.018),0 0 0 35px rgba(219,189,110,.05);
}
.v153-start-crest::before,
.v153-start-crest::after { content:"";position:absolute;border-radius:50%; }
.v153-start-crest::before { inset:12%;border:1px dashed rgba(219,189,110,.095); }
.v153-start-crest::after { inset:31%;border:1px solid rgba(219,189,110,.11); }
.v153-start-crest > span {
    position:absolute;inset:0;display:grid;place-items:center;
    color:rgba(219,189,110,.035);
    font:900 min(35vw,390px)/1 Georgia,serif;
}

.v153-start-rail {
    position:absolute;left:50%;top:max(20px,3.4vh);z-index:55;
    display:flex;align-items:center;justify-content:center;gap:14px;
    width:min(860px,calc(100% - 72px));
    translate:-50% 0;
    color:#bfa76c;
    font:700 clamp(7px,.75vw,10px)/1 "Courier New",monospace;
    letter-spacing:.28em;
    white-space:nowrap;
}
.v153-start-rail::before,.v153-start-rail::after {
    content:"";height:1px;flex:1;
    background:linear-gradient(90deg,transparent,rgba(217,189,112,.68));
}
.v153-start-rail::after { transform:scaleX(-1); }
.v153-start-rail b { color:#e6cc87;font:400 17px/1 Georgia,serif;letter-spacing:.24em; }

.v153-roster { position:absolute;inset:0;z-index:10;pointer-events:none;perspective:1200px; }
.v153-character {
    position:absolute;
    left:var(--x);top:var(--y);
    z-index:var(--z);
    width:clamp(92px,10.7vw,192px);
    aspect-ratio:920 / 1278;
    margin:0;
    transform:translateX(-50%) rotate(var(--r)) scale(var(--s));
    transform-origin:50% 100%;
    animation:v153Assemble .9s cubic-bezier(.16,.78,.18,1) var(--delay) both;
    contain:layout paint;
}
.v153-character-card {
    position:absolute;inset:0;
    display:block;
    overflow:hidden;
    padding:clamp(2px,.22vw,4px);
    border:1px solid rgba(246,220,150,.84);
    border-radius:clamp(7px,.85vw,15px);
    background:
        radial-gradient(circle at 50% 38%,rgba(185,38,45,.28),transparent 34%),
        linear-gradient(145deg,#281116,#070708 68%);
    box-shadow:
        0 22px 42px rgba(0,0,0,.76),
        0 0 0 1px rgba(71,12,17,.95),
        0 0 22px rgba(156,29,36,.17);
}
.v153-character-card::before {
    content:"";position:absolute;inset:3px;z-index:2;
    border:1px solid rgba(64,43,19,.62);
    border-radius:inherit;
    pointer-events:none;
}
.v153-character-card::after {
    content:"";position:absolute;left:13%;right:13%;bottom:-10px;height:18px;z-index:-1;
    background:rgba(190,39,48,.24);filter:blur(12px);pointer-events:none;
}
.v153-character img {
    position:relative;z-index:1;
    display:block;width:100%;height:100%;
    object-fit:contain;object-position:50% 50%;
    border-radius:clamp(5px,.66vw,12px);
    background:#f8f5ec;
    color:transparent;
    opacity:0;
    filter:none !important;
    mix-blend-mode:normal !important;
    transform:none !important;
    transition:opacity .46s ease;
    user-select:none;
    -webkit-user-drag:none;
}
.v153-character.is-ready img { opacity:1; }
.v153-character.is-missing .v153-character-card::before {
    content:"♠";inset:0;display:grid;place-items:center;
    color:rgba(231,202,126,.72);font:700 clamp(24px,4vw,54px)/1 Georgia,serif;
    border:0;
}

.v153-start-shade {
    inset:44% 0 0;z-index:36;
    background:linear-gradient(180deg,transparent 0%,rgba(3,3,4,.66) 34%,rgba(3,3,4,.93) 76%,#030304 100%);
}

.v153-command {
    position:absolute;left:50%;bottom:clamp(36px,5.3vh,76px);z-index:60;
    width:min(820px,calc(100% - 42px));
    translate:-50% 0;
    display:flex;flex-direction:column;align-items:center;
    text-align:center;
    pointer-events:none;
}
.v153-command-kicker {
    display:flex;align-items:center;justify-content:center;gap:13px;
    color:#c3ab70;
    font:700 clamp(7px,.8vw,10px)/1.25 "Courier New",monospace;
    letter-spacing:.34em;
    text-indent:.34em;
}
.v153-command-kicker::before,.v153-command-kicker::after {
    content:"";width:clamp(28px,5vw,72px);height:1px;
    background:linear-gradient(90deg,transparent,var(--v153-gold));
}
.v153-command-kicker::after { transform:scaleX(-1); }
.v153-logo {
    position:relative;
    margin:clamp(5px,1vh,11px) 0 0;
    color:#f5e4b2;
    font:600 clamp(56px,8.4vw,128px)/.82 Georgia,"Times New Roman",serif;
    letter-spacing:.11em;
    text-indent:.11em;
    text-shadow:0 5px 2px #000,0 0 22px rgba(189,41,50,.64),0 0 52px rgba(217,189,112,.16);
}
.v153-logo::before {
    content:"";position:absolute;left:3%;right:3%;bottom:-11px;height:2px;
    background:linear-gradient(90deg,transparent,var(--v153-gold) 20% 80%,transparent);
    box-shadow:0 0 12px rgba(217,189,112,.48);
}
.v153-logo-jp {
    margin-top:clamp(16px,2.2vh,24px);
    color:#efe2c1;
    font-size:clamp(12px,1.4vw,19px);
    font-weight:500;
    letter-spacing:.28em;
    text-indent:.28em;
    text-shadow:0 2px 8px #000;
}
.v153-command .start-movie-btn {
    position:relative !important;z-index:2 !important;
    display:grid !important;place-items:center !important;gap:5px !important;
    min-width:clamp(250px,24vw,360px) !important;
    min-height:clamp(62px,8vh,82px) !important;
    margin:clamp(17px,2.7vh,29px) 0 0 !important;
    padding:11px 34px 10px !important;
    overflow:hidden !important;
    border:1px solid var(--v153-gold) !important;
    border-radius:2px !important;
    color:#fff0c3 !important;
    background:
        linear-gradient(100deg,rgba(255,255,255,.075),transparent 23% 77%,rgba(255,255,255,.04)),
        linear-gradient(180deg,#711018,#39080d) !important;
    box-shadow:0 13px 38px rgba(0,0,0,.72),inset 0 0 0 3px rgba(0,0,0,.34),0 0 26px rgba(164,27,34,.24) !important;
    font-family:Georgia,"Yu Mincho",serif !important;
    letter-spacing:normal !important;
    pointer-events:auto !important;
    transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease !important;
}
.v153-command .start-movie-btn::before {
    content:"♠";position:absolute;left:18px;top:50%;translate:0 -50%;
    color:rgba(255,239,190,.62);font-size:23px;
}
.v153-command .start-movie-btn::after {
    content:"♠";position:absolute;right:18px;top:50%;translate:0 -50%;
    color:rgba(255,239,190,.62);font-size:23px;transform:scaleX(-1);
}
.v153-command .start-movie-btn:hover,
.v153-command .start-movie-btn:focus-visible {
    transform:translateY(-2px) !important;
    border-color:#fff0b0 !important;
    color:#fff8dc !important;
    background:linear-gradient(180deg,#98202a,#4e0b12) !important;
    box-shadow:0 16px 43px rgba(0,0,0,.76),inset 0 0 0 3px rgba(0,0,0,.3),0 0 32px rgba(200,45,54,.42) !important;
    outline:2px solid rgba(255,240,176,.76) !important;
    outline-offset:4px !important;
}
.v153-command .start-movie-btn:disabled {
    opacity:.78 !important;
    transform:none !important;
}
.v153-start-label { display:block;font-size:clamp(17px,1.8vw,25px);font-weight:600;letter-spacing:.28em;text-indent:.28em;line-height:1; }
.v153-start-sub { display:block;color:#d4bd84;font:700 clamp(7px,.7vw,9px)/1 "Courier New",monospace;letter-spacing:.2em;text-indent:.2em; }

.v153-start-footer {
    left:50%;bottom:max(10px,env(safe-area-inset-bottom));z-index:65;
    translate:-50% 0;
    width:calc(100% - 64px);
    display:flex;justify-content:space-between;gap:18px;
    color:#74684e;
    font:700 7px/1 "Courier New",monospace;
    letter-spacing:.18em;
}

@keyframes v153Assemble {
    0% { opacity:0;transform:translate(-50%,38px) rotate(var(--r)) scale(.82); }
    100% { opacity:1;transform:translateX(-50%) rotate(var(--r)) scale(var(--s)); }
}

@media (max-width:820px) and (orientation:portrait) {
    .v153-start-curtain { width:27%;opacity:.48; }
    .v153-start-rail { top:max(17px,2.5vh);width:calc(100% - 44px);font-size:6px;letter-spacing:.13em;gap:6px; }
    .v153-start-rail b { font-size:12px;letter-spacing:.12em; }
    .v153-start-crest { top:31%;width:min(112vw,610px); }
    .v153-roster {
        inset:max(48px,6.2vh) 12px auto;
        display:grid;
        grid-template-columns:repeat(5,minmax(0,1fr));
        align-content:start;
        gap:clamp(3px,1vw,7px);
        perspective:none;
    }
    .v153-character {
        position:relative;left:auto;top:auto;z-index:auto;
        width:100%;aspect-ratio:920 / 1278;
        transform:rotate(var(--mr,0deg));transform-origin:50% 100%;
        animation:v153AssembleMobile .72s cubic-bezier(.16,.78,.18,1) var(--delay) both;
    }
    .v153-character-card { border-radius:7px;padding:2px;box-shadow:0 10px 20px rgba(0,0,0,.7),0 0 0 1px rgba(88,15,21,.82); }
    .v153-character img { border-radius:5px; }
    .v153-start-shade { inset:40% 0 0; }
    .v153-command { bottom:clamp(37px,5.2vh,58px);width:calc(100% - 28px); }
    .v153-command-kicker { font-size:6px;letter-spacing:.16em;text-indent:.16em;gap:6px; }
    .v153-command-kicker::before,.v153-command-kicker::after { width:20px; }
    .v153-logo { font-size:clamp(49px,17vw,82px);letter-spacing:.07em;text-indent:.07em; }
    .v153-logo-jp { margin-top:15px;font-size:clamp(10px,3.1vw,14px);letter-spacing:.14em;text-indent:.14em; }
    .v153-command .start-movie-btn { min-width:min(310px,86vw) !important;min-height:62px !important;margin-top:18px !important; }
    .v153-start-label { font-size:18px; }
    .v153-start-footer { width:calc(100% - 42px);font-size:5px;letter-spacing:.08em; }
}

@keyframes v153AssembleMobile {
    0% { opacity:0;transform:translateY(22px) rotate(var(--mr,0deg)) scale(.9); }
    100% { opacity:1;transform:translateY(0) rotate(var(--mr,0deg)) scale(1); }
}

@media (max-height:560px) and (orientation:landscape) {
    .v153-start-frame { inset:6px; }
    .v153-start-rail { top:10px;width:calc(100% - 46px);font-size:6px; }
    .v153-start-crest { top:38%;width:min(48vw,280px); }
    .v153-roster {
        inset:32px 10px auto;
        display:grid;
        grid-template-columns:repeat(15,minmax(0,1fr));
        align-items:start;
        gap:2px;
        perspective:none;
    }
    .v153-character {
        position:relative;left:auto;top:auto;z-index:auto;
        width:100%;aspect-ratio:920 / 1278;
        transform:rotate(var(--mr,0deg));transform-origin:50% 100%;
        animation:v153AssembleMobile .58s cubic-bezier(.16,.78,.18,1) var(--delay) both;
    }
    .v153-character-card { padding:1px;border-radius:4px;box-shadow:0 7px 13px rgba(0,0,0,.76); }
    .v153-character img { border-radius:3px; }
    .v153-start-shade { inset:25% 0 0; }
    .v153-command { bottom:20px;width:min(610px,82vw); }
    .v153-command-kicker { display:none; }
    .v153-logo { font-size:clamp(44px,9vw,72px);margin:0; }
    .v153-logo-jp { margin-top:12px;font-size:10px; }
    .v153-command .start-movie-btn { min-width:250px !important;min-height:51px !important;margin-top:12px !important;padding-block:7px !important; }
    .v153-start-label { font-size:16px; }
    .v153-start-footer { bottom:8px;font-size:5px; }
}

@media (prefers-reduced-motion:reduce) {
    #title-screen.v153-grand-assembly,
    #title-screen.v153-grand-assembly *,
    #title-screen.v153-grand-assembly *::before,
    #title-screen.v153-grand-assembly *::after {
        animation:none !important;
        transition:none !important;
        scroll-behavior:auto !important;
    }
    .v153-character { opacity:1 !important; }
}

@media (forced-colors:active) {
    #title-screen.v153-grand-assembly { color:CanvasText !important;background:Canvas !important;box-shadow:none !important; }
    .v153-start-frame,.v153-character-card,.v153-command .start-movie-btn { border:1px solid CanvasText !important;box-shadow:none !important; }
    .v153-command .start-movie-btn { color:ButtonText !important;background:ButtonFace !important;forced-color-adjust:auto; }
    .v153-logo,.v153-logo-jp,.v153-command-kicker,.v153-start-rail { color:CanvasText !important;text-shadow:none !important; }
}


/* SOURCE styles/audio.css */
#shocker-audio-panel {
        visibility: hidden;
        position: fixed;
        right: max(6px, env(safe-area-inset-right));
        top: max(6px, env(safe-area-inset-top));
        z-index: 10020;
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 4px 6px;
        border: 1px solid rgba(212,175,55,.68);
        border-radius: 9px;
        background: rgba(0,0,0,.72);
        box-shadow: 0 3px 12px rgba(0,0,0,.55);
        backdrop-filter: blur(7px);
        font-family: sans-serif;
        pointer-events: auto;
    }

    #shocker-audio-toggle {
        min-width: 42px;
        height: 30px;
        padding: 0 8px;
        border: 1px solid rgba(255,230,150,.65);
        border-radius: 7px;
        background: linear-gradient(#38301e,#15110a);
        color: #ffe29a;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
    }

    #shocker-audio-volume {
        width: 66px;
        height: 22px;
        accent-color: #d4af37;
    }

    #shocker-audio-hint {
        position: fixed;
        left: 50%;
        bottom: max(8px, env(safe-area-inset-bottom));
        z-index: 10019;
        transform: translateX(-50%);
        max-width: 90vw;
        padding: 7px 12px;
        border-radius: 9px;
        background: rgba(0,0,0,.82);
        color: #f3dfaa;
        border: 1px solid rgba(212,175,55,.5);
        font-size: 11px;
        font-family: sans-serif;
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
    }

    #shocker-audio-hint.show {
        opacity: 1;
    }

    @media (max-width: 390px) {
        #shocker-audio-panel {
            right: 4px;
            top: 4px;
            padding: 3px 4px;
        }

        #shocker-audio-toggle {
            min-width: 38px;
            height: 28px;
            font-size: 11px;
        }

        #shocker-audio-volume {
            width: 52px;
        }
    }


/* SOURCE styles/character-awaken-card-stack.css */
.character-detail-portrait-wrap.has-awaken-card {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    padding: 0 !important;
    cursor: pointer !important;
    isolation: isolate;
    outline: none;
    background: #0b0907 !important;
    perspective: 1200px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    --front-card-x: -36px;
    --front-card-y: -10px;
    --back-card-x: 36px;
    --back-card-y: 18px;
}
.character-detail-portrait-wrap.has-awaken-card::after {
    display: none !important;
}
.character-detail-portrait-wrap.has-awaken-card:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(244,211,126,.9);
}
.character-detail-portrait-wrap.has-awaken-card.card-switching {
    pointer-events: none;
}
.character-detail-portrait-wrap.has-awaken-card #character-detail-portrait,
.character-detail-portrait-wrap.has-awaken-card #character-detail-awaken-card {
    position: absolute !important;
    inset: 50% auto auto 50% !important;
    display: block !important;
    width: calc(100% - 60px) !important;
    height: calc(100% - 40px) !important;
    aspect-ratio: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: fill !important;
    object-position: center !important;
    border: 0 !important;
    border-radius: 8px !important;
    clip-path: inset(0 round 8px) !important;
    background: transparent !important;
    box-shadow: 0 13px 28px rgba(0,0,0,.62) !important;
    transform-origin: center;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
    transition:
        transform .5s cubic-bezier(.22,1,.36,1),
        opacity .4s cubic-bezier(.22,1,.36,1),
        filter .5s cubic-bezier(.22,1,.36,1);
}
.character-detail-portrait-wrap.has-awaken-card #character-detail-portrait {
    z-index: 2 !important;
    transform:
        translate(-50%,-50%)
        translate(var(--front-card-x),var(--front-card-y))
        scale(1) !important;
    opacity: 1 !important;
    filter: none !important;
}
.character-detail-portrait-wrap.has-awaken-card #character-detail-awaken-card {
    z-index: 1 !important;
    transform:
        translate(-50%,-50%)
        translate(var(--back-card-x),var(--back-card-y))
        scale(.98) !important;
    opacity: 1 !important;
    filter: brightness(.68) saturate(.86) !important;
}
.character-detail-portrait-wrap.has-awaken-card.awaken-card-front #character-detail-portrait {
    z-index: 1 !important;
    transform:
        translate(-50%,-50%)
        translate(var(--back-card-x),var(--back-card-y))
        scale(.98) !important;
    opacity: 1 !important;
    filter: brightness(.68) saturate(.86) !important;
}
.character-detail-portrait-wrap.has-awaken-card.awaken-card-front #character-detail-awaken-card {
    z-index: 2 !important;
    transform:
        translate(-50%,-50%)
        translate(var(--front-card-x),var(--front-card-y))
        scale(1) !important;
    opacity: 1 !important;
    filter: none !important;
}

/* キャラ選択画面：選択した通常カードと覚醒カードを実際に重ねる */
.character-card.has-awaken-preview {
    overflow: hidden !important;
    isolation: isolate;
}
.character-card.has-awaken-preview > .character-card-image,
.character-card.has-awaken-preview > .character-card-awaken-image {
    position: absolute !important;
    inset: 50% auto auto 50% !important;
    display: block !important;
    width: calc(100% - 42px) !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 925 / 1130 !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    clip-path: inset(0 round 8px) !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.68) !important;
    transition:
        transform .5s cubic-bezier(.22,1,.36,1),
        filter .5s cubic-bezier(.22,1,.36,1) !important;
}
.character-card.has-awaken-preview > .character-card-image {
    z-index: 2;
    transform: translate(-50%,-50%) translate(-22px,-8px) scale(1) !important;
    filter: none !important;
}
.character-card.has-awaken-preview > .character-card-awaken-image {
    z-index: 1;
    transform: translate(-50%,-50%) translate(22px,13px) scale(.98) !important;
    filter: brightness(.68) saturate(.86) !important;
}
.character-card.has-awaken-preview.selection-awaken-front > .character-card-image {
    z-index: 1;
    transform: translate(-50%,-50%) translate(22px,13px) scale(.98) !important;
    filter: brightness(.68) saturate(.86) !important;
}
.character-card.has-awaken-preview.selection-awaken-front > .character-card-awaken-image {
    z-index: 2;
    transform: translate(-50%,-50%) translate(-22px,-8px) scale(1) !important;
    filter: none !important;
}
.character-card.has-awaken-preview .character-card-tap-label {
    z-index: 5 !important;
}

.character-card-toggle-hint {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 9px;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 5px 11px;
    border: 1px solid rgba(232,199,116,.55);
    border-radius: 999px;
    background: rgba(8,7,5,.86);
    color: #f0db9e;
    font: 700 11px/1.2 Georgia, "Yu Mincho", serif;
    letter-spacing: .08em;
    pointer-events: none;
}
@media (max-width:720px) {
    .character-detail-portrait-wrap.has-awaken-card {
        --front-card-x: -25px;
        --front-card-y: -8px;
        --back-card-x: 25px;
        --back-card-y: 14px;
    }
    .character-detail-portrait-wrap.has-awaken-card #character-detail-portrait,
    .character-detail-portrait-wrap.has-awaken-card #character-detail-awaken-card {
        width: calc(100% - 44px) !important;
        height: calc(100% - 28px) !important;
        aspect-ratio: auto !important;
        border-radius: 8px !important;
        clip-path: inset(0 round 8px) !important;
    }
    .character-card-toggle-hint {
        bottom: 5px;
        font-size: 10px;
    }
}
@media (prefers-reduced-motion:reduce) {
    .character-detail-portrait-wrap.has-awaken-card #character-detail-portrait,
    .character-detail-portrait-wrap.has-awaken-card #character-detail-awaken-card {
        transition-duration: .01ms !important;
    }
}


/* SOURCE styles/character-fix.css */


.battle-character.has-large-battle-art {
    position: absolute !important;
    z-index: 90 !important;
    pointer-events: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter:
        drop-shadow(0 12px 16px rgba(0, 0, 0, .72))
        drop-shadow(0 0 8px var(--char-glow)) !important;
}

.battle-character.has-large-battle-art::before,
.battle-character.has-large-battle-art .battle-character-mark,
.battle-character.has-large-battle-art .battle-character-name {
    display: none !important;
}

#player-battle-character.has-large-battle-art,
#opponent-battle-character.has-large-battle-art {
    right: auto !important;
    bottom: auto !important;
}

#v37-ability-choice {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(3px);
}

#v37-ability-choice.show {
    display: flex;
}

.v37-choice-panel {
    width: min(94vw, 620px);
    max-height: min(86vh, 760px);
    overflow: auto;
    padding: 18px;
    border: 1px solid #d4af37;
    border-radius: 15px;
    color: #f5ecd4;
    background:
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, .16), transparent 40%),
        linear-gradient(155deg, #242019, #0d0c0a 72%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .8), 0 0 24px rgba(212, 175, 55, .22);
}

.v37-choice-kicker {
    color: #bca86f;
    font: 700 9px/1.2 "Courier New", monospace;
    letter-spacing: .22em;
}

#v37-choice-title {
    margin: 5px 0 7px;
    color: #fff3cf;
    font: 700 22px/1.25 Georgia, serif;
}

#v37-choice-message {
    margin: 0 0 13px;
    color: #cfc5af;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-line;
}

.v37-choice-group {
    margin-top: 12px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px;
    background: rgba(255, 255, 255, .035);
}

.v37-choice-group-title {
    margin-bottom: 8px;
    color: #d9c68f;
    font-size: 11px;
    font-weight: 800;
}

.v37-choice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 8px;
}

.v37-card-choice {
    min-height: 54px;
    padding: 7px 6px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    color: #f4ead0;
    background: linear-gradient(#363129, #171512);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.v37-card-choice small {
    display: block;
    margin-top: 3px;
    color: #a99f89;
    font-size: 8px;
    font-weight: 500;
}

.v37-card-choice.is-selected {
    border-color: #ffe18a;
    color: #171006;
    background: linear-gradient(#ffe18a, #b98b28);
    box-shadow: 0 0 0 2px rgba(255, 225, 138, .18), 0 0 18px rgba(255, 211, 89, .3);
}

.v37-choice-empty {
    color: #8f8778;
    font-size: 11px;
}

.v37-choice-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 15px;
}

.v37-choice-actions.single {
    grid-template-columns: 1fr;
}

.v37-choice-actions button {
    min-height: 45px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    color: #f6ecd1;
    background: linear-gradient(#39342c, #171512);
    font-weight: 800;
    cursor: pointer;
}

#v37-choice-confirm {
    border-color: #e4c35f;
    color: #171006;
    background: linear-gradient(#f2d477, #a87d22);
}

#v37-choice-confirm:disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: .42;
}


#opponent-field .card.card-back.inspection-inspected-card {
    color: #18130a !important;
    border-color: #63baff !important;
    background:
        linear-gradient(rgba(255, 255, 255, .86), rgba(214, 232, 246, .9)),
        repeating-linear-gradient(135deg, #295f85 0 8px, #17364d 8px 16px) !important;
    box-shadow: 0 0 0 2px rgba(58, 167, 255, .22), 0 0 14px rgba(58, 167, 255, .38) !important;
}

#opponent-field .card.card-back.inspection-inspected-card::after {
    content: "確認中";
    position: absolute;
    right: 2px;
    bottom: 2px;
    padding: 1px 3px;
    border-radius: 3px;
    color: #eaf7ff;
    background: rgba(12, 66, 102, .82);
    font-size: 6px;
    line-height: 1.2;
}

@media (max-width: 700px) {
    .v37-choice-panel {
        padding: 14px;
    }

    #v37-choice-title {
        font-size: 18px;
    }

    .v37-choice-cards {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 6px;
    }

    .v37-card-choice {
        min-height: 48px;
        font-size: 10px;
    }
}


body #player-battle-character.battle-character-used::after,
body #opponent-battle-character.battle-character-used::after,
body #opponent-battle-character.battle-character-used[data-v66-ai-ability="active"]::after {
    content: "発動済" !important;
    inset: auto 5px 5px auto !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 3px 5px !important;
    border: 1px solid rgba(230, 204, 145, .5) !important;
    border-radius: 4px !important;
    color: #f1dfb4 !important;
    background: rgba(8, 9, 10, .76) !important;
    box-shadow: none !important;
    font: 700 clamp(7px, .65vw, 10px)/1.2 "Yu Gothic", sans-serif !important;
    letter-spacing: .04em !important;
    text-shadow: none !important;
    pointer-events: none !important;
}


/* SOURCE styles/direct-actions.css */
/* SHOCKER_V38_CARD_DIRECT_ACTION_SYSTEM */

/* 旧4択ボタンは内部参照用の空コンテナだけ残し、画面から完全に撤去する。 */
#main-action-dock,
#action-buttons,
#refresh-confirm-btn,
#cancel-action-btn {
    display: none !important;
}

#player-field .card.v38-origin-selected {
    z-index: 116 !important;
    border-color: #79d8ff !important;
    outline: 3px solid rgba(121, 216, 255, .94) !important;
    transform: translateY(-9px) scale(1.055) !important;
    box-shadow:
        0 0 0 2px rgba(14, 60, 83, .7),
        0 0 23px rgba(80, 201, 255, .92) !important;
    filter: brightness(1.22) !important;
}

.card.v38-double-tap-target {
    z-index: 117 !important;
    border-color: #ffe070 !important;
    outline: 3px solid rgba(255, 224, 112, .96) !important;
    transform: translateY(-9px) scale(1.055) !important;
    box-shadow:
        0 0 0 2px rgba(83, 57, 8, .74),
        0 0 24px rgba(255, 207, 63, .96) !important;
    animation: v38TargetPulse .72s ease-in-out infinite alternate;
}

#hand-zone .card.selected-card[data-refresh-order] {
    border-color: #6ef3ac !important;
    outline: 2px solid rgba(110, 243, 172, .92) !important;
    box-shadow:
        0 0 0 2px rgba(7, 67, 39, .72),
        0 0 18px rgba(69, 239, 145, .78) !important;
}

@keyframes v38TargetPulse {
    from { filter: brightness(1.08); }
    to { filter: brightness(1.42); }
}

#v38-hand-action-controls {
    position: absolute;
    right: 54px;
    top: 54px;
    z-index: 118;
    width: clamp(88px, 24vw, 128px);
    display: grid;
    gap: 6px;
    pointer-events: auto;
}

.player-area.v38-hand-actions-visible #player-field {
    padding-right: calc(clamp(88px, 24vw, 128px) + 54px) !important;
}

#v38-hand-action-controls[hidden] {
    display: none !important;
}

#v38-hand-action-controls button {
    width: 100%;
    min-height: 37px;
    margin: 0;
    padding: 6px 5px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    color: #fff8df;
    font-size: clamp(9px, 1.5vh, 12px);
    font-weight: 900;
    line-height: 1.15;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .72);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .62);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#v38-refresh-action {
    border-color: #70efad !important;
    background: linear-gradient(180deg, #238a59, #0a422a) !important;
}

#v38-all-slash-action {
    border-color: #ff9b72 !important;
    background: linear-gradient(180deg, #b73d2e, #59160f) !important;
}

#v38-hand-action-controls button:active:not(:disabled) {
    transform: scale(.96);
    filter: brightness(1.18);
}

#v38-hand-action-controls button:disabled {
    color: #aaa59b;
    border-color: #666 !important;
    background: linear-gradient(180deg, #454545, #232323) !important;
    box-shadow: none;
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: .5;
}

@media (max-width: 700px) {
    #v38-hand-action-controls {
        right: 50px;
        width: clamp(80px, 23vw, 94px);
        gap: 4px;
    }

    .player-area.v38-hand-actions-visible #player-field {
        padding-right: calc(clamp(80px, 23vw, 94px) + 50px) !important;
    }

    #v38-hand-action-controls button {
        min-height: 32px;
        padding: 4px 3px;
        border-radius: 8px;
        font-size: clamp(8px, 1.35vh, 10px);
    }
}

/* 能力後に合法なメイン行動が無い場合だけ表示する。 */
#v38-hand-action-controls button[hidden] { display: none !important; }
#v199-empty-turn-end { border-color: #d2b86c; background: linear-gradient(180deg, #69552b, #332911); }


/* SOURCE styles/field-card-side-actions.css */
/* SHOCKER_V42_CHAIN_CONTROLS_BESIDE_FIELD_CARD */

/*
 * 防衛・放棄は山札位置を基準にしない。
 * JSが「自分の場で一番右にあるカード」の右端を取得し、
 * このアンカーをカードのすぐ隣へ配置する。
 */
#v42-field-card-side-actions {
    position: absolute;
    left: 0;
    top: 0;
    right: auto !important;
    bottom: auto !important;
    z-index: 540;
    width: clamp(78px, 20vw, 106px);
    display: grid;
    gap: 6px;
    box-sizing: border-box;
    pointer-events: auto;
}

#v42-field-card-side-actions[hidden] {
    display: none !important;
}

#v42-field-card-side-actions > #chain-hand-controls,
#v42-field-card-side-actions > #ability-field-swap-confirm {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

#v42-field-card-side-actions > #chain-hand-controls {
    flex: none !important;
    align-self: auto !important;
    flex-direction: column !important;
    gap: 6px !important;
}

#v42-field-card-side-actions #chain-hand-controls .action-btn {
    width: 100% !important;
    height: 40px !important;
    min-width: 0 !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 5px 3px !important;
    border-radius: 10px !important;
    font-size: clamp(9px, 1.45vh, 11px) !important;
    line-height: 1.1 !important;
    box-sizing: border-box !important;
}

#v42-field-card-side-actions > #ability-field-swap-confirm {
    min-height: 40px !important;
    padding: 5px 3px !important;
    border-radius: 10px !important;
    font-size: clamp(9px, 1.45vh, 11px) !important;
    line-height: 1.1 !important;
    letter-spacing: .06em !important;
}

/* ボタン分の空間を作り、場札列を少し左へ寄せる。 */
.player-area.v42-field-card-actions-visible #player-field {
    padding-right: calc(clamp(78px, 20vw, 106px) + 54px) !important;
}

/* 防衛ボタンは手札列から移動するため、旧横ずらしを解除。 */
body.chain-choice-active #hand-zone {
    transform: none !important;
    padding-right: 0 !important;
    justify-content: center !important;
}

@media (max-width: 700px) {
    #v42-field-card-side-actions {
        width: clamp(72px, 20vw, 82px);
        gap: 4px;
    }

    #v42-field-card-side-actions > #chain-hand-controls {
        gap: 4px !important;
    }

    #v42-field-card-side-actions #chain-hand-controls .action-btn,
    #v42-field-card-side-actions > #ability-field-swap-confirm {
        height: 34px !important;
        min-height: 34px !important;
        padding: 3px 2px !important;
        border-radius: 8px !important;
        font-size: clamp(8px, 1.3vh, 9px) !important;
    }

    .player-area.v42-field-card-actions-visible #player-field {
        padding-right: calc(clamp(72px, 20vw, 82px) + 48px) !important;
    }
}


/* SOURCE styles/layout-and-result-menu.css */
/* SHOCKER_V43_OPPONENT_DECK_FIELD_ALIGNMENT_AND_RESULT_MENU */

/* 相手山札は画面右端ではなく、相手の手札・チェーンログ枠の右横へ置く。 */
.opponent-area > .deck-container {
    right: auto !important;
    transform-origin: top left !important;
}

/*
 * 自分側だけ左62px・右4pxだった余白を左右同値にする。
 * flexの中心軸が相手の場と一致し、三枚の場札が同じ横位置へ揃う。
 */
.player-area #player-field {
    padding-left: 62px !important;
    padding-right: 62px !important;
}

/* 勝敗確定後のメニュー復帰画面。 */
#v43-match-result-menu {
    position: fixed;
    inset: 0;
    z-index: 13050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(18px, env(safe-area-inset-top))
        max(14px, env(safe-area-inset-right))
        max(20px, env(safe-area-inset-bottom))
        max(14px, env(safe-area-inset-left));
    background:
        radial-gradient(circle at 50% 35%, rgba(212,175,55,.16), transparent 35%),
        rgba(0,0,0,.91);
    backdrop-filter: blur(9px);
    isolation: isolate;
}

#v43-match-result-menu[hidden] {
    display: none !important;
}

.v43-result-card {
    width: min(92vw, 520px);
    padding: 28px 20px 22px;
    border: 1px solid var(--v43-result-color, #d4af37);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(35,29,20,.98), rgba(5,6,6,.99));
    box-shadow:
        0 0 35px var(--v43-result-glow, rgba(212,175,55,.36)),
        0 24px 70px rgba(0,0,0,.82),
        inset 0 1px 0 rgba(255,255,255,.09);
    color: #f3e7c7;
    text-align: center;
}

.v43-result-card.win {
    --v43-result-color: #e7c75f;
    --v43-result-glow: rgba(231,199,95,.42);
}

.v43-result-card.loss {
    --v43-result-color: #d75c68;
    --v43-result-glow: rgba(215,92,104,.38);
}

.v43-result-kicker {
    color: var(--v43-result-color);
    font: 700 10px/1.2 "Courier New", monospace;
    letter-spacing: .38em;
    margin-left: .38em;
}

#v43-match-result-title {
    margin: 10px 0 8px;
    color: var(--v43-result-color);
    font: 700 clamp(42px, 12vw, 76px)/1 Georgia, serif;
    letter-spacing: .08em;
    margin-left: .08em;
    text-shadow: 0 0 20px var(--v43-result-glow), 0 3px 0 #000;
}

#v43-match-result-reason {
    min-height: 1.6em;
    margin: 0 0 20px;
    color: #cfc4aa;
    font-size: 13px;
    line-height: 1.6;
}

#v43-return-menu-btn {
    width: min(100%, 300px);
    min-height: 50px;
    border: 1px solid #e1c779;
    border-radius: 11px;
    background: linear-gradient(#dcc276, #8c6a27);
    color: #111;
    font: 800 15px/1.2 Georgia, "Yu Mincho", serif;
    letter-spacing: .1em;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.35);
}

#v43-return-menu-btn:active {
    transform: scale(.97);
}

@media (max-width: 390px) {
    .player-area #player-field {
        padding-left: 52px !important;
        padding-right: 52px !important;
    }

    .v43-result-card {
        padding: 23px 14px 18px;
        border-radius: 13px;
    }

    #v43-match-result-reason {
        font-size: 11px;
        margin-bottom: 16px;
    }

    #v43-return-menu-btn {
        min-height: 48px;
        font-size: 13px;
    }
}


/* SOURCE styles/midmatch-menu.css */
/* SHOCKER_V45_MIDMATCH_MENU_AND_PORTRAIT_SWAP */

#v45-battle-menu-button {
    /* v37の全button向け強制指定より優先し、対戦UI上で常に固定する。 */
    position: fixed !important;
    left: max(6px, env(safe-area-inset-left));
    top: max(6px, env(safe-area-inset-top));
    /* 能力・演出より前、勝敗画面（13050）より後ろ。 */
    z-index: 13000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 78px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(212,175,55,.72);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(51,43,28,.96), rgba(10,10,9,.96));
    color: #f0deb0;
    font: 700 11px/1 "Courier New", monospace;
    letter-spacing: .08em;
    cursor: pointer;
    box-shadow: 0 4px 13px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(6px);
    -webkit-tap-highlight-color: transparent;
}

body.v45-battle-active #v45-battle-menu-button {
    display: inline-flex;
}

#v45-battle-menu-button:active {
    transform: scale(.96);
}

.v45-menu-icon {
    color: #d4af37;
    font-size: 13px;
    line-height: 1;
}

@media (max-width: 390px) {
    #v45-battle-menu-button {
        left: 4px;
        top: 4px;
        min-width: 68px;
        height: 29px;
        padding: 0 7px;
        font-size: 9px;
        border-radius: 7px;
    }

    .v45-menu-icon {
        font-size: 11px;
    }
}


/* SOURCE styles/card-art.css */
/* 添付スクリーンショットからカード外周だけを切り抜いた画像に限定して適用 */
.character-card.v47-card-crop {
    border-radius: 22px !important;
    clip-path: inset(0 round 22px) !important;
}
.character-card.v47-card-crop > .character-card-image {
    border-radius: 19px !important;
    clip-path: inset(0 round 19px) !important;
}
.character-card.v47-card-crop.has-awaken-preview {
    aspect-ratio: 925 / 1281 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
.character-card.v47-card-crop.has-awaken-preview > .character-card-image,
.character-card.v47-card-crop.has-awaken-preview > .character-card-awaken-image {
    aspect-ratio: 925 / 1281 !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    clip-path: inset(0 round 16px) !important;
}
.character-detail-portrait-wrap.v47-card-crop,
.character-detail-portrait-wrap.v47-card-crop canvas {
    border-radius: 20px !important;
    clip-path: inset(0 round 20px) !important;
}
.battle-character.has-large-battle-art.v47-card-battle-art {
    border: 2px solid rgba(246, 226, 164, .88) !important;
    border-radius: 18px !important;
    background-color: #f7f3e8 !important;
    background-repeat: no-repeat !important;
    box-shadow:
        0 15px 30px rgba(0, 0, 0, .72),
        0 0 12px var(--char-glow) !important;
    filter: none !important;
}
.ability-mini-portrait.v47-card-crop {
    border-radius: 14px !important;
    clip-path: inset(0 round 14px) !important;
    background-size: cover !important;
    background-position: center !important;
}
@media (max-width: 720px) {
    .character-card.v47-card-crop {
        border-radius: 19px !important;
        clip-path: inset(0 round 19px) !important;
    }
    .battle-character.has-large-battle-art.v47-card-battle-art {
        border-radius: 14px !important;
    }
}


/* SOURCE styles/battle-portrait.css */
.battle-character.has-large-battle-art.v49-card-battle-art {
    border: 2px solid rgba(246, 226, 164, .92) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #f7f3e8 !important;
    box-shadow:
        0 15px 30px rgba(0, 0, 0, .72),
        0 0 12px var(--char-glow) !important;
    filter: none !important;
}
.battle-character.has-large-battle-art.v49-card-battle-art.is-awakened-portrait {
    box-shadow:
        0 15px 30px rgba(0, 0, 0, .76),
        0 0 18px var(--char-glow) !important;
}
/* Printed card artwork is the visible label, including read-only replays. */
.battle-character.v49-card-battle-art :is(.battle-character-mark,.battle-character-name,.v197-mastery-badge) {
    display: none !important;
}
@media (max-width: 720px) {
    .battle-character.has-large-battle-art.v49-card-battle-art {
        border-radius: 14px !important;
    }
}

/* Compact portrait geometry is provided by the battle portrait layout routine. */
@media (max-width:700px), (orientation:landscape) and (max-height:500px) {
    body.v45-battle-active.v64-shocker-battle :is(#player-battle-character,#opponent-battle-character).has-large-battle-art {
        border:1px solid rgba(246,226,164,.76) !important;
        border-radius:6px !important;
        opacity:1 !important;
        filter:none !important;
        box-shadow:0 2px 5px rgba(0,0,0,.62) !important;
    }
}

/* The awakened portrait keeps its gem color after the cut-in is over. */
body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo)
    :is(#player-battle-character,#opponent-battle-character,#player-sub-battle-character,#opponent-sub-battle-character).battle-character:not([hidden]):is([data-character-id="benito-riana"],[data-character-id="mirano-misha"],[data-character-id="zaraku-maburoi"],[data-character-id="potraf-alish"])[data-portrait-state="awaken"] {
    outline: 2px solid var(--char-gem, #d4af37) !important;
    outline-offset: -2px !important;
    box-shadow:
        inset 0 0 15px var(--char-glow, rgba(212,175,55,.55)),
        0 12px 27px rgba(0,0,0,.72),
        0 0 8px var(--char-gem, #d4af37),
        0 0 24px var(--char-glow, rgba(212,175,55,.55)) !important;
}
body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo)
    :is(#player-battle-character,#opponent-battle-character).battle-character[data-v37-portrait-placed]:is([data-character-id="benito-riana"],[data-character-id="mirano-misha"],[data-character-id="zaraku-maburoi"],[data-character-id="potraf-alish"])[data-portrait-state="awaken"] {
    --shocker-portrait-clip: none;
    border-radius: var(--shocker-portrait-radius) !important;
}


/* SOURCE styles/character-clash.css */
#v61-character-clash{--p-gem:#4ea7ff;--p-glow:rgba(78,167,255,.68);--e-gem:#ff5959;--e-glow:rgba(255,89,89,.68);position:fixed;inset:0;z-index:2147483100;display:block;overflow:hidden;visibility:hidden;opacity:0;pointer-events:none;isolation:isolate;color:#fff4d5;background:radial-gradient(circle at 50% 48%,rgba(212,175,55,.18),transparent 19%),linear-gradient(118deg,#07111e 0 49.7%,#1b0708 50.3% 100%);font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif}
#v61-character-clash.show{visibility:visible;pointer-events:auto;animation:v61-overlay-life 4.35s linear both}
#v61-character-clash:before{content:"";position:absolute;inset:-12%;z-index:12;pointer-events:none;opacity:.34;background:repeating-linear-gradient(0deg,transparent 0 5px,rgba(255,255,255,.055) 6px),repeating-radial-gradient(circle at center,rgba(255,255,255,.045) 0 1px,transparent 1px 5px);mix-blend-mode:overlay;animation:v61-scan-drift 1.1s linear infinite}
#v61-character-clash:after{content:"";position:absolute;inset:0;z-index:13;pointer-events:none;box-shadow:inset 0 0 10vw rgba(0,0,0,.95),inset 0 0 28vw rgba(0,0,0,.44)}
.v61-clash-backlight,.v61-clash-speedlines,.v61-clash-flash,.v61-clash-ring,.v61-clash-slash{position:absolute;inset:0;pointer-events:none}
.v61-clash-backlight{z-index:1;background:radial-gradient(circle at 16% 48%,var(--p-glow),transparent 30%),radial-gradient(circle at 84% 48%,var(--e-glow),transparent 30%),linear-gradient(108deg,transparent 0 46.8%,rgba(255,224,146,.34) 49.7%,transparent 53%);}
.v61-clash-speedlines{z-index:2;inset:-20%;opacity:.34;background:repeating-conic-gradient(from 90deg at 50% 50%,transparent 0 3deg,rgba(255,255,255,.16) 3.2deg 3.5deg,transparent 3.8deg 8deg);transform:scaleX(1.4);animation:v61-speedline-pulse .36s steps(2,end) infinite}
.v61-clash-stage{position:absolute;inset:0;z-index:4}
.v61-fighter{position:absolute;top:-4%;bottom:-4%;width:59%;overflow:hidden;will-change:transform,filter,opacity;filter:saturate(.92) contrast(1.08) brightness(.82)}
.v61-fighter-player{left:-4%;clip-path:polygon(0 0,100% 0,82% 100%,0 100%);transform:translate3d(-112%,0,0) skewX(-3deg);background:#07111e}
.v61-fighter-enemy{right:-4%;clip-path:polygon(18% 0,100% 0,100% 100%,0 100%);transform:translate3d(112%,0,0) skewX(3deg);background:#180607}
#v61-character-clash.show .v61-fighter-player{animation:v61-player-collision 4.05s cubic-bezier(.18,.78,.18,1) both}
#v61-character-clash.show .v61-fighter-enemy{animation:v61-enemy-collision 4.05s cubic-bezier(.18,.78,.18,1) both}
.v61-fighter-art{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:center 20%;user-select:none;-webkit-user-drag:none;transform:scale(1.045);filter:drop-shadow(0 18px 24px rgba(0,0,0,.72))}
.v61-fighter-tint,.v61-fighter-shade{position:absolute;inset:0;pointer-events:none}
.v61-fighter-tint{opacity:.46}
.v61-fighter-player .v61-fighter-tint{background:linear-gradient(90deg,var(--p-gem),transparent 66%)}
.v61-fighter-enemy .v61-fighter-tint{background:linear-gradient(270deg,var(--e-gem),transparent 66%)}
.v61-fighter-shade{background:linear-gradient(180deg,rgba(0,0,0,.05),transparent 35%,rgba(0,0,0,.72)),linear-gradient(90deg,transparent 58%,rgba(0,0,0,.64))}
.v61-fighter-enemy .v61-fighter-shade{background:linear-gradient(180deg,rgba(0,0,0,.05),transparent 35%,rgba(0,0,0,.72)),linear-gradient(270deg,transparent 58%,rgba(0,0,0,.64))}
.v61-fighter-fallback{position:absolute;inset:0;display:none;align-items:center;justify-content:center;color:var(--p-gem);font:900 clamp(72px,16vw,220px)/1 Georgia,serif;text-shadow:0 0 36px currentColor}.v61-fighter-enemy .v61-fighter-fallback{color:var(--e-gem)}
.v61-fighter-meta{position:absolute;left:clamp(18px,4vw,68px);right:clamp(58px,8vw,130px);bottom:clamp(54px,10vh,110px);z-index:3;opacity:0;transform:translateY(30px)}
.v61-fighter-enemy .v61-fighter-meta{left:clamp(58px,8vw,130px);right:clamp(18px,4vw,68px);text-align:right}
#v61-character-clash.show .v61-fighter-meta{animation:v61-name-in .58s 1.12s cubic-bezier(.18,.8,.2,1) both}
.v61-fighter-side{display:inline-flex;align-items:center;gap:8px;padding:5px 11px;border:1px solid currentColor;color:var(--p-gem);background:rgba(0,0,0,.74);font:700 clamp(9px,1.1vw,13px)/1.1 "Courier New",monospace;letter-spacing:.25em;text-shadow:0 0 12px currentColor}.v61-fighter-enemy .v61-fighter-side{color:var(--e-gem)}
.v61-fighter-name{margin-top:10px;font:900 clamp(25px,4.3vw,64px)/1.02 Georgia,"Yu Mincho",serif;letter-spacing:.08em;color:#fff3cf;text-shadow:0 4px 0 #000,0 8px 24px #000,0 0 20px currentColor;white-space:nowrap}
.v61-fighter-role{margin-top:8px;color:#d4c6a5;font:700 clamp(9px,1.2vw,14px)/1.2 sans-serif;letter-spacing:.15em;text-shadow:0 2px 5px #000}
.v61-turn-order-badge{display:inline-block;margin-top:11px;padding:6px 15px;border-left:4px solid var(--p-gem);color:#fff;background:rgba(0,0,0,.8);font:900 clamp(11px,1.35vw,16px)/1 sans-serif;letter-spacing:.16em;box-shadow:0 0 17px var(--p-glow)}
.v61-fighter-enemy .v61-turn-order-badge{border-left:0;border-right:4px solid var(--e-gem);box-shadow:0 0 17px var(--e-glow)}
.v61-clash-flash{z-index:18;opacity:0;background:#fff8dc}#v61-character-clash.show .v61-clash-flash{animation:v61-impact-flash .58s .88s ease-out both}
.v61-clash-ring{z-index:17;left:50%;top:50%;width:16px;height:16px;inset:auto;border:5px solid #fff2bd;border-radius:50%;opacity:0;transform:translate(-50%,-50%) scale(.15);box-shadow:0 0 28px #fff,0 0 60px #e1ae42}#v61-character-clash.show .v61-clash-ring{animation:v61-impact-ring .82s .9s ease-out both}
.v61-clash-slash{z-index:16;left:50%;top:50%;width:7px;height:145%;inset:auto;opacity:0;transform:translate(-50%,-50%) rotate(17deg) scaleY(.1);background:linear-gradient(180deg,transparent,#fff 18% 82%,transparent);box-shadow:0 0 16px #fff,0 0 38px #e1ae42}#v61-character-clash.show .v61-clash-slash{animation:v61-slash-cut .68s .92s ease-out both}
.v61-clash-core{position:absolute;left:50%;top:50%;z-index:20;display:flex;width:clamp(100px,15vw,210px);aspect-ratio:1;align-items:center;justify-content:center;opacity:0;transform:translate(-50%,-50%) scale(3.4) rotate(-16deg);color:#fff4cf;background:radial-gradient(circle,rgba(0,0,0,.96) 0 43%,rgba(141,89,20,.9) 45% 47%,rgba(0,0,0,.92) 49% 65%,transparent 67%);font:italic 900 clamp(52px,8vw,104px)/1 Georgia,serif;letter-spacing:-.11em;text-indent:-.11em;text-shadow:0 3px 0 #000,0 0 18px #fff,0 0 38px #d79b2d;filter:drop-shadow(0 0 16px #000)}#v61-character-clash.show .v61-clash-core{animation:v61-vs-strike .78s 1.02s cubic-bezier(.15,.88,.18,1.25) both}
.v61-clash-kicker{position:absolute;top:clamp(18px,5vh,54px);left:50%;z-index:21;opacity:0;transform:translate(-50%,-18px);color:#d9c18b;font:700 clamp(9px,1vw,13px)/1 "Courier New",monospace;letter-spacing:.52em;white-space:nowrap;text-shadow:0 2px 6px #000,0 0 14px #d4af37}#v61-character-clash.show .v61-clash-kicker{animation:v61-kicker-in .45s 1.32s ease-out both}
.v61-battle-start{position:absolute;left:50%;bottom:clamp(18px,4.5vh,48px);z-index:22;min-width:min(82vw,620px);padding:11px 28px 9px;border-top:1px solid rgba(255,226,152,.78);border-bottom:1px solid rgba(255,226,152,.78);opacity:0;transform:translate(-50%,34px) scaleX(1.35);text-align:center;color:#fff1c6;background:linear-gradient(90deg,transparent,rgba(0,0,0,.88) 18% 82%,transparent);font:900 clamp(22px,4vw,50px)/1 Georgia,serif;letter-spacing:.3em;text-indent:.3em;text-shadow:0 3px 0 #000,0 0 20px #d4af37}
.v61-battle-start small{display:block;margin-top:8px;color:#d4c7aa;font:700 clamp(9px,1vw,13px)/1.1 sans-serif;letter-spacing:.2em;text-indent:.2em}#v61-character-clash.show .v61-battle-start{animation:v61-battle-start-in .72s 2.56s cubic-bezier(.15,.85,.18,1.16) both}
.v61-impact-spark{position:absolute;left:50%;top:50%;z-index:19;width:4px;height:42%;border-radius:50%;opacity:0;transform-origin:center top;background:linear-gradient(#fff,#f2b640 24%,transparent 76%);box-shadow:0 0 9px #fff0b0}#v61-character-clash.show .v61-impact-spark{animation:v61-spark-flight .66s var(--delay,.94s) ease-out both}
@keyframes v61-overlay-life{0%{opacity:0}4%,88%{opacity:1}100%{opacity:0}}
@keyframes v61-player-collision{0%,7%{opacity:0;transform:translate3d(-112%,0,0) skewX(-4deg);filter:blur(13px) brightness(.5)}25%{opacity:1;transform:translate3d(-4%,0,0) skewX(-3deg);filter:blur(0) brightness(.9)}29%{transform:translate3d(2.5%,0,0) skewX(-2deg) scale(1.025);filter:brightness(1.35)}34%,87%{opacity:1;transform:translate3d(0,0,0) skewX(-3deg);filter:brightness(.9)}100%{opacity:0;transform:translate3d(-9%,0,0) skewX(-3deg) scale(1.04);filter:blur(4px) brightness(.55)}}
@keyframes v61-enemy-collision{0%,7%{opacity:0;transform:translate3d(112%,0,0) skewX(4deg);filter:blur(13px) brightness(.5)}25%{opacity:1;transform:translate3d(4%,0,0) skewX(3deg);filter:blur(0) brightness(.9)}29%{transform:translate3d(-2.5%,0,0) skewX(2deg) scale(1.025);filter:brightness(1.35)}34%,87%{opacity:1;transform:translate3d(0,0,0) skewX(3deg);filter:brightness(.9)}100%{opacity:0;transform:translate3d(9%,0,0) skewX(3deg) scale(1.04);filter:blur(4px) brightness(.55)}}
@keyframes v61-name-in{from{opacity:0;transform:translateY(30px);filter:blur(8px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@keyframes v61-impact-flash{0%{opacity:0}12%{opacity:.96}24%{opacity:.12}38%{opacity:.72}100%{opacity:0}}
@keyframes v61-impact-ring{0%{opacity:1;transform:translate(-50%,-50%) scale(.1)}100%{opacity:0;transform:translate(-50%,-50%) scale(42)}}
@keyframes v61-slash-cut{0%{opacity:0;transform:translate(-50%,-50%) rotate(17deg) scaleY(.05)}18%{opacity:1;transform:translate(-50%,-50%) rotate(17deg) scaleY(1)}100%{opacity:0;transform:translate(-50%,-50%) rotate(17deg) scaleY(1.28)}}
@keyframes v61-vs-strike{0%{opacity:0;transform:translate(-50%,-50%) scale(3.4) rotate(-16deg);filter:blur(12px) drop-shadow(0 0 16px #000)}55%{opacity:1;transform:translate(-50%,-50%) scale(.88) rotate(4deg);filter:blur(0) drop-shadow(0 0 16px #000)}74%{transform:translate(-50%,-50%) scale(1.13) rotate(-2deg)}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes v61-kicker-in{from{opacity:0;transform:translate(-50%,-18px);letter-spacing:.8em}to{opacity:1;transform:translate(-50%,0);letter-spacing:.52em}}
@keyframes v61-battle-start-in{0%{opacity:0;transform:translate(-50%,34px) scaleX(1.35);filter:blur(10px)}70%{opacity:1;transform:translate(-50%,-4px) scaleX(.98);filter:blur(0)}100%{opacity:1;transform:translate(-50%,0) scaleX(1)}}
@keyframes v61-spark-flight{0%{opacity:1;transform:translate(-50%,-6px) rotate(var(--angle)) scaleY(.16)}100%{opacity:0;transform:translate(-50%,-6px) rotate(var(--angle)) scaleY(1.55)}}
@keyframes v61-speedline-pulse{0%{opacity:.2;transform:scaleX(1.35) rotate(-.5deg)}100%{opacity:.43;transform:scaleX(1.48) rotate(.5deg)}}@keyframes v61-scan-drift{from{transform:translateY(-2%)}to{transform:translateY(2%)}}
@media(max-width:700px){.v61-fighter{width:68%}.v61-fighter-player{left:-12%;clip-path:polygon(0 0,100% 0,78% 100%,0 100%)}.v61-fighter-enemy{right:-12%;clip-path:polygon(22% 0,100% 0,100% 100%,0 100%)}.v61-fighter-art{object-position:center 22%;transform:scale(1.08)}.v61-fighter-meta{left:12px;right:32%;bottom:15vh}.v61-fighter-enemy .v61-fighter-meta{left:32%;right:12px}.v61-fighter-name{font-size:clamp(18px,6.2vw,34px);letter-spacing:.01em;white-space:normal}.v61-fighter-role{display:none}.v61-turn-order-badge{margin-top:7px;padding:5px 9px;font-size:9px}.v61-fighter-side{padding:4px 7px;font-size:8px;letter-spacing:.12em}.v61-clash-core{top:43%;width:clamp(86px,26vw,130px);font-size:clamp(44px,15vw,72px)}.v61-clash-kicker{top:24px;max-width:92vw;overflow:hidden;font-size:8px;letter-spacing:.3em}.v61-battle-start{bottom:24px;min-width:92vw;padding-inline:10px;font-size:clamp(20px,8vw,34px);letter-spacing:.16em;text-indent:.16em}}
@media(prefers-reduced-motion:reduce){.v61-clash-speedlines{animation:none}}
/* v192: compact rank rows follow the character caption during the native faceoff. */
#v61-character-clash {--v192-start-bottom:clamp(18px,4.5vh,48px);--v192-start-reserve:96px;--v192-caption-gap:24px;}
/* Fighters extend 4% below the viewport. Reserve the banner's full height,
   including its subtitle, so the last caption row always ends above it. */
#v61-character-clash .v61-fighter-meta {bottom:calc(4vh + var(--v192-start-bottom) + var(--v192-start-reserve) + var(--v192-caption-gap)) !important;}
#v61-character-clash .v61-fighter-player .v61-fighter-meta {left:calc(4vw + clamp(18px,2vw,36px));}
#v61-character-clash .v61-fighter-enemy .v61-fighter-meta {right:calc(4vw + clamp(18px,2vw,36px));}
#v61-character-clash .v61-battle-start {bottom:var(--v192-start-bottom) !important;}
#v61-character-clash .v192-clash-rank {display:flex;width:max-content;max-width:100%;margin-top:10px;padding:6px 12px 6px 8px;gap:9px;border:1px solid #d9b76666;background:linear-gradient(100deg,#07080bee,#11100ce0);box-shadow:0 4px 14px #0008;text-shadow:0 2px 4px #000;}
#v61-character-clash .v192-clash-rank > .v107-rank-insignia.is-match {width:36px;}
#v61-character-clash .v192-clash-rank .v192-rank-name {font-size:clamp(12px,1.6vw,22px);}
#v61-character-clash .v192-clash-rank .v192-rank-kicker {font-size:7px;}
#v61-character-clash .v192-clash-rank .v192-rank-points {font-size:9px;}
#v61-character-clash .v61-fighter-enemy .v192-clash-rank {margin-left:auto;flex-direction:row-reverse;padding:6px 8px 6px 12px;text-align:right;}
@media(max-width:700px){
  #v61-character-clash {--v192-start-bottom:24px;--v192-start-reserve:82px;}
  #v61-character-clash .v61-fighter-player .v61-fighter-meta {left:calc(12vw + 12px);}
  #v61-character-clash .v61-fighter-enemy .v61-fighter-meta {right:calc(12vw + 12px);}
  #v61-character-clash .v192-clash-rank {margin-top:7px;padding:5px 7px;gap:6px;}
  #v61-character-clash .v61-fighter-enemy .v192-clash-rank {padding:5px 7px;}
  #v61-character-clash .v192-clash-rank > .v107-rank-insignia.is-match {width:26px;}
  #v61-character-clash .v192-clash-rank .v192-rank-name {font-size:11px;}
  #v61-character-clash .v192-clash-rank .v192-rank-kicker {font-size:5px;letter-spacing:.05em;}
  #v61-character-clash .v192-clash-rank .v192-rank-points {font-size:7px;}
}
@media(orientation:landscape) and (max-height:520px){
  #v61-character-clash {--v192-start-bottom:5px;--v192-start-reserve:56px;--v192-caption-gap:16px;}
  #v61-character-clash .v61-fighter-name {margin-top:4px !important;font-size:clamp(14px,6.5dvh,25px) !important;white-space:normal;overflow-wrap:anywhere;}
  #v61-character-clash .v61-fighter-role {display:none !important;}
  #v61-character-clash .v61-fighter-side {padding:3px 6px !important;font-size:6px !important;}
  #v61-character-clash .v61-turn-order-badge {margin-top:4px !important;padding:3px 7px !important;font-size:7px !important;}
  #v61-character-clash .v61-battle-start {padding:5px 10px 4px !important;font-size:clamp(16px,7dvh,28px) !important;line-height:1;}
  #v61-character-clash .v61-battle-start small {margin-top:3px !important;font-size:6px !important;line-height:1.1;}
  #v61-character-clash .v192-clash-rank {margin-top:6px;padding:4px 7px;gap:6px;}
  #v61-character-clash .v192-clash-rank > .v107-rank-insignia.is-match {width:26px;}
  #v61-character-clash .v192-clash-rank .v192-rank-name {font-size:12px;}
  #v61-character-clash .v192-clash-rank .v192-rank-kicker {font-size:5px;}
  #v61-character-clash .v192-clash-rank .v192-rank-points {font-size:7px;}
}
@media(forced-colors:active){#v61-character-clash .v192-clash-rank,.v192-match-rank{border-color:CanvasText;background:Canvas;color:CanvasText;}}
/* v249: keep the native collision and portraits; identify each player with
   just their username and existing public account code. */
#v61-character-clash .v61-fighter-side,
#v61-character-clash .v61-turn-order-badge,
#v61-character-clash .v192-clash-rank,
#v61-character-clash .v61-clash-kicker,
#v61-character-clash #v61-first-move-text,
#v61-character-clash .v142-clash-badge {display:none !important;}
#v61-character-clash .v61-fighter-name {margin-top:0;white-space:normal;overflow-wrap:anywhere;}
#v61-character-clash .v249-clash-public-code:not([hidden]) {display:block !important;color:#f5e7c7;font:700 clamp(10px,1.35vw,17px)/1.4 "Courier New",monospace;letter-spacing:.06em;overflow-wrap:anywhere;}
#v61-character-clash .v249-clash-public-code[hidden] {display:none !important;}


/* SOURCE styles/home-character-redesign.css */
/* =========================================================
   SHOCKER v62 — 商品版ホーム / キャラクター名鑑
   実在のキャラクター、トランプ、宝石の型をUIの中心に置く。
   ========================================================= */

/* ---------- HOME : SHOCKERの世界観を直接見せる ---------- */
#home-screen.v62-shocker-home {
    --v62-gold:#d9b766;
    --v62-gold-bright:#ffe6a1;
    --v62-ink:#050608;
    --v62-wine:#4c1018;
    --v62-teal:#0b2930;
    overflow:auto !important;
    color:#f3e5bd !important;
    background:
        radial-gradient(ellipse at 73% 31%, rgba(43,107,119,.28), transparent 29%),
        radial-gradient(ellipse at 24% 35%, rgba(128,25,36,.28), transparent 32%),
        linear-gradient(118deg,#030406 0 47%,#11070a 47.2% 63%,#051316 100%) !important;
    font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif !important;
}
#home-screen.v62-shocker-home::before {
    content:"" !important;
    position:fixed !important;
    inset:-18% !important;
    opacity:.24 !important;
    pointer-events:none !important;
    background:
        repeating-conic-gradient(from 45deg at 50% 50%,transparent 0 10deg,rgba(255,255,255,.035) 10.2deg 10.6deg,transparent 10.8deg 22deg),
        repeating-linear-gradient(0deg,transparent 0 5px,rgba(255,255,255,.022) 6px) !important;
    box-shadow:none !important;
    animation:v62-home-texture-drift 18s linear infinite !important;
}
#home-screen.v62-shocker-home::after {
    content:"♠   ♥   ♦   ♣" !important;
    position:fixed !important;
    left:50% !important;
    top:50% !important;
    bottom:auto !important;
    width:auto !important;
    height:auto !important;
    transform:translate(-50%,-50%) rotate(-8deg) !important;
    border:0 !important;
    clip-path:none !important;
    opacity:.035 !important;
    color:#fff !important;
    background:none !important;
    font:900 clamp(80px,17vw,250px)/1 Georgia,serif !important;
    letter-spacing:.18em !important;
    white-space:nowrap !important;
    pointer-events:none !important;
}

#home-screen.v62-shocker-home .home-fog {
    position:fixed !important;
    background:
        linear-gradient(104deg,transparent 0 34%,rgba(255,235,185,.035) 47%,transparent 58%),
        radial-gradient(ellipse at 52% 100%,rgba(217,183,102,.11),transparent 55%) !important;
    mix-blend-mode:screen;
}
#home-screen.v62-shocker-home .home-grain {
    position:fixed !important;
    opacity:.055 !important;
}
#home-screen.v62-shocker-home .home-shell {
    width:min(100%,1600px) !important;
    min-height:100% !important;
    height:auto !important;
    margin:0 auto !important;
    padding:max(14px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)) !important;
}
#home-screen.v62-shocker-home .home-topbar {
    position:relative;
    z-index:20;
    min-height:72px;
    padding:0 0 11px !important;
    border-bottom:1px solid rgba(217,183,102,.43) !important;
}
#home-screen.v62-shocker-home .home-topbar::after {
    content:"";
    position:absolute;
    left:0;
    bottom:-2px;
    width:min(36vw,430px);
    height:3px;
    background:linear-gradient(90deg,var(--v62-gold-bright),var(--v62-gold),transparent);
    box-shadow:0 0 13px rgba(217,183,102,.48);
}
#home-screen.v62-shocker-home .home-brand-small {
    color:#a99a76 !important;
    font:700 9px/1.2 "Courier New",monospace !important;
    letter-spacing:.42em !important;
}
#home-screen.v62-shocker-home .home-brand-title {
    position:relative;
    display:inline-block;
    margin-top:4px !important;
    color:#f5df9f !important;
    font:900 clamp(29px,4vw,48px)/.9 Georgia,serif !important;
    letter-spacing:.2em !important;
    text-shadow:0 3px 0 #000,0 0 22px rgba(217,183,102,.34) !important;
}
#home-screen.v62-shocker-home .home-brand-title::after {
    content:"♠";
    position:absolute;
    right:-27px;
    top:2px;
    color:#971d2a;
    font-size:.52em;
    text-shadow:0 0 12px rgba(198,36,52,.6);
}
#home-screen.v62-shocker-home .home-resources {
    gap:7px !important;
    align-items:stretch;
}
#home-screen.v62-shocker-home .home-resource {
    min-width:112px !important;
    padding:8px 12px !important;
    border:1px solid rgba(217,183,102,.32) !important;
    border-radius:2px !important;
    background:linear-gradient(135deg,rgba(0,0,0,.74),rgba(35,21,15,.66)) !important;
    color:#9f9275 !important;
    font:700 8px/1.15 "Courier New",monospace !important;
    letter-spacing:.15em;
    text-align:left;
}
#home-screen.v62-shocker-home .home-resource b {
    display:block;
    margin:4px 0 0 !important;
    color:#f2d991 !important;
    font:900 12px/1 Georgia,serif !important;
    letter-spacing:.1em;
}
#home-screen.v62-shocker-home .home-main {
    position:relative;
    z-index:10;
    grid-template-columns:minmax(0,1.55fr) minmax(280px,.62fr) !important;
    gap:14px !important;
    min-height:620px;
    height:calc(100dvh - 132px);
    padding:14px 0 12px !important;
}
#home-screen.v62-shocker-home .home-hero {
    position:relative !important;
    min-height:0 !important;
    overflow:hidden !important;
    isolation:isolate;
    border:1px solid rgba(217,183,102,.56) !important;
    border-radius:2px !important;
    clip-path:polygon(0 0,calc(100% - 25px) 0,100% 25px,100% 100%,25px 100%,0 calc(100% - 25px)) !important;
    background:
        linear-gradient(90deg,rgba(3,4,7,.97) 0 32%,rgba(17,7,10,.84) 55%,rgba(4,24,28,.72) 100%),
        radial-gradient(circle at 82% 39%,rgba(72,154,165,.25),transparent 32%),
        radial-gradient(circle at 57% 64%,rgba(153,28,43,.25),transparent 34%) !important;
    box-shadow:inset 0 0 70px rgba(0,0,0,.7),0 18px 44px rgba(0,0,0,.48) !important;
}
#home-screen.v62-shocker-home .home-hero::before {
    content:"SHOCKER" !important;
    position:absolute !important;
    left:auto !important;
    right:-1.5% !important;
    top:3% !important;
    transform:none !important;
    color:rgba(255,239,195,.055) !important;
    font:900 clamp(76px,12vw,190px)/1 Georgia,serif !important;
    letter-spacing:-.05em;
    text-shadow:none !important;
    z-index:0;
}
#home-screen.v62-shocker-home .home-hero::after {
    content:"";
    position:absolute;
    inset:9px;
    z-index:12;
    pointer-events:none;
    border:1px solid rgba(217,183,102,.16);
    clip-path:polygon(0 0,calc(100% - 20px) 0,100% 20px,100% 100%,20px 100%,0 calc(100% - 20px));
}
#home-screen.v62-shocker-home .home-hero-copy {
    left:clamp(20px,3.2vw,48px) !important;
    bottom:clamp(24px,6vh,64px) !important;
    z-index:10 !important;
    width:47%;
    max-width:520px !important;
}
#home-screen.v62-shocker-home .home-season {
    padding:6px 10px !important;
    border:0 !important;
    border-left:3px solid #a42130 !important;
    border-radius:0 !important;
    color:#d6be80 !important;
    background:linear-gradient(90deg,rgba(0,0,0,.82),transparent) !important;
    font:700 9px/1 "Courier New",monospace !important;
    letter-spacing:.2em !important;
}
#home-screen.v62-shocker-home .home-hero-title {
    margin:13px 0 10px !important;
    color:#fff0c1 !important;
    font:900 clamp(38px,5.9vw,82px)/.92 Georgia,"Yu Mincho",serif !important;
    letter-spacing:.03em !important;
    text-shadow:0 5px 0 #000,0 10px 30px rgba(0,0,0,.88) !important;
}
#home-screen.v62-shocker-home .home-hero-title em {
    color:#d9b766;
    font-style:normal;
}
#home-screen.v62-shocker-home .home-hero-text {
    color:#c6b995 !important;
    font-size:clamp(10px,1.15vw,14px) !important;
    line-height:1.7 !important;
    letter-spacing:.05em;
    text-shadow:0 2px 5px #000;
}
.v62-mechanics {
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    margin-top:14px;
}
.v62-mechanic {
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 8px;
    border:1px solid rgba(217,183,102,.3);
    background:rgba(0,0,0,.62);
    color:#cab98b;
    font:700 8px/1 "Courier New",monospace;
    letter-spacing:.08em;
}
.v62-mechanic strong { color:#f5de9b;font-size:11px; }
.v62-home-showcase {
    position:absolute;
    inset:3% 0 0 44%;
    z-index:5;
    pointer-events:none;
}
.v62-home-character {
    position:absolute;
    bottom:-4%;
    width:48%;
    height:96%;
    margin:0;
    filter:drop-shadow(0 18px 17px rgba(0,0,0,.78));
    transform-origin:center bottom;
}
.v62-home-character img {
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center bottom;
    -webkit-user-drag:none;
    user-select:none;
}
.v62-home-character figcaption {
    position:absolute;
    bottom:7%;
    left:50%;
    transform:translateX(-50%);
    padding:5px 10px;
    border-left:2px solid var(--v62-char-gem,#d9b766);
    color:#ead9aa;
    background:linear-gradient(90deg,rgba(0,0,0,.86),rgba(0,0,0,.42));
    font:700 9px/1 Georgia,"Yu Mincho",serif;
    letter-spacing:.09em;
    white-space:nowrap;
    opacity:.86;
}
.v62-home-character.is-left { left:-8%;z-index:1;transform:translateX(-3%) scale(.88) rotate(-3deg);filter:brightness(.72) saturate(.8) drop-shadow(0 18px 17px rgba(0,0,0,.8));animation:v62-character-left 6.5s ease-in-out infinite; }
.v62-home-character.is-center { left:25%;z-index:3;transform:scale(1.08);animation:v62-character-center 5.8s ease-in-out infinite; }
.v62-home-character.is-right { right:-11%;z-index:2;transform:translateX(2%) scale(.9) rotate(3deg);filter:brightness(.77) saturate(.86) drop-shadow(0 18px 17px rgba(0,0,0,.8));animation:v62-character-right 7s ease-in-out infinite; }
.v62-home-showcase::before {
    content:"";
    position:absolute;
    left:12%;
    right:4%;
    bottom:1%;
    height:36%;
    z-index:0;
    background:radial-gradient(ellipse,rgba(217,183,102,.18),transparent 65%);
    filter:blur(12px);
}
#home-screen.v62-shocker-home .home-side {
    grid-template-rows:auto minmax(0,1fr) !important;
    gap:9px !important;
}
#home-screen.v62-shocker-home .home-notice {
    position:relative;
    overflow:hidden;
    padding:12px 14px 13px !important;
    border:1px solid rgba(217,183,102,.34) !important;
    border-radius:1px !important;
    background:linear-gradient(125deg,rgba(47,12,18,.88),rgba(5,8,9,.9)) !important;
}
#home-screen.v62-shocker-home .home-notice::after {
    content:"♠";
    position:absolute;
    right:-7px;
    top:-18px;
    color:rgba(217,183,102,.09);
    font-size:86px;
}
#home-screen.v62-shocker-home .home-notice-label {
    color:#d1af5e !important;
    font:700 8px/1 "Courier New",monospace !important;
    letter-spacing:.28em !important;
}
#home-screen.v62-shocker-home .home-notice-title {
    position:relative;
    z-index:2;
    margin-top:7px !important;
    color:#dfd1aa !important;
    font-size:11px !important;
    line-height:1.55;
}
#home-screen.v62-shocker-home .home-menu-grid {
    grid-template-columns:1fr 1fr !important;
    gap:7px !important;
}
#home-screen.v62-shocker-home .home-menu-btn {
    position:relative !important;
    min-height:84px !important;
    padding:11px 10px 10px 53px !important;
    overflow:hidden !important;
    border:1px solid rgba(217,183,102,.28) !important;
    border-radius:1px !important;
    color:#d8c99f !important;
    background:linear-gradient(115deg,rgba(27,24,20,.96),rgba(4,7,8,.98)) !important;
    text-align:left !important;
    transition:transform .18s ease,border-color .18s ease,filter .18s ease !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 8px 18px rgba(0,0,0,.3) !important;
}
#home-screen.v62-shocker-home .home-menu-btn::before {
    content:attr(data-v62-number);
    position:absolute;
    right:7px;
    top:7px;
    color:rgba(217,183,102,.3);
    font:700 8px/1 "Courier New",monospace;
    letter-spacing:.15em;
}
#home-screen.v62-shocker-home .home-menu-btn::after {
    content:"" !important;
    position:absolute !important;
    inset:auto -28% -75% 22% !important;
    height:145% !important;
    opacity:.72;
    background:radial-gradient(circle,rgba(217,183,102,.16),transparent 65%) !important;
}
#home-screen.v62-shocker-home .home-menu-btn:hover,
#home-screen.v62-shocker-home .home-menu-btn:focus-visible {
    transform:translateY(-2px) !important;
    border-color:rgba(255,226,150,.7) !important;
    filter:brightness(1.12);
}
#home-screen.v62-shocker-home .home-menu-icon {
    position:absolute !important;
    left:13px;
    top:50%;
    transform:translateY(-50%);
    display:flex !important;
    width:31px;
    height:42px;
    margin:0 !important;
    align-items:center;
    justify-content:center;
    border-right:1px solid rgba(217,183,102,.3);
    color:#c7a650;
    font-size:22px !important;
    text-shadow:0 0 13px rgba(217,183,102,.38);
}
#home-screen.v62-shocker-home .home-menu-name {
    display:block !important;
    color:#e8d8af !important;
    font:800 13px/1.1 Georgia,"Yu Mincho",serif !important;
    letter-spacing:.08em !important;
}
#home-screen.v62-shocker-home .home-menu-sub {
    display:block !important;
    margin-top:6px !important;
    color:#827a68 !important;
    font:700 7px/1 "Courier New",monospace !important;
    letter-spacing:.13em !important;
}
#home-screen.v62-shocker-home .home-menu-btn.primary {
    grid-column:1/-1 !important;
    min-height:104px !important;
    padding-left:72px !important;
    border-color:rgba(246,209,113,.74) !important;
    background:
        linear-gradient(105deg,rgba(106,18,29,.96),rgba(40,8,13,.98) 54%,rgba(7,17,19,.98)) !important;
    box-shadow:0 0 23px rgba(169,29,43,.18),inset 0 1px 0 rgba(255,241,190,.14),0 11px 24px rgba(0,0,0,.45) !important;
}
#home-screen.v62-shocker-home .home-menu-btn.primary .home-menu-icon {
    left:18px;
    width:42px;
    height:55px;
    color:#ffe09a;
    font-size:31px !important;
}
#home-screen.v62-shocker-home .home-menu-btn.primary .home-menu-name {
    color:#fff0c2 !important;
    font-size:20px !important;
}
#home-screen.v62-shocker-home .home-bottom {
    position:relative;
    z-index:20;
    min-height:30px;
    padding-top:8px !important;
    border-top:1px solid rgba(217,183,102,.24) !important;
    color:#756d5c !important;
    font:700 8px/1 "Courier New",monospace !important;
    letter-spacing:.13em !important;
}

/* ---------- CHARACTER SELECT : 宝石の型で選ぶ名鑑 ---------- */
#character-select-screen.v62-roster-screen {
    --v62-select-gold:#d9b766;
    align-items:flex-start !important;
    padding:max(12px,env(safe-area-inset-top)) 0 max(10px,env(safe-area-inset-bottom)) !important;
    color:#f0dfb4 !important;
    background:
        radial-gradient(ellipse at 18% 38%,rgba(102,17,29,.28),transparent 31%),
        radial-gradient(ellipse at 82% 42%,rgba(16,70,79,.25),transparent 32%),
        linear-gradient(112deg,#030507 0 48%,#15090c 48.2% 63%,#041216 100%) !important;
}
#character-select-screen.v62-roster-screen::before {
    content:"" !important;
    position:fixed !important;
    inset:0 !important;
    opacity:.2 !important;
    pointer-events:none !important;
    background:
        linear-gradient(90deg,transparent 49.85%,rgba(217,183,102,.42) 50%,transparent 50.15%),
        repeating-linear-gradient(0deg,transparent 0 6px,rgba(255,255,255,.025) 7px),
        repeating-linear-gradient(90deg,transparent 0 89px,rgba(255,255,255,.018) 90px) !important;
}
#character-select-screen.v62-roster-screen::after {
    content:"♠  ♥  ♦  ♣";
    position:fixed;
    left:50%;
    top:47%;
    transform:translate(-50%,-50%) rotate(-7deg);
    color:rgba(255,255,255,.035);
    font:900 clamp(80px,20vw,270px)/1 Georgia,serif;
    letter-spacing:.08em;
    white-space:nowrap;
    pointer-events:none;
}
#character-select-screen.v62-roster-screen .character-select-shell {
    position:relative !important;
    z-index:2 !important;
    width:min(100%,1540px) !important;
    min-height:100% !important;
    margin:0 auto !important;
    padding:0 max(16px,2vw) max(8px,env(safe-area-inset-bottom)) !important;
    display:flex !important;
    flex-direction:column !important;
}
#character-select-screen.v62-roster-screen .character-select-kicker {
    margin:0 !important;
    color:#aa9565 !important;
    font:700 9px/1.15 "Courier New",monospace !important;
    letter-spacing:.42em !important;
    text-align:center;
}
#character-select-screen.v62-roster-screen .character-select-title {
    margin:5px 0 3px !important;
    color:#f4dda0 !important;
    font:900 clamp(27px,4.1vw,52px)/1 Georgia,"Yu Mincho",serif !important;
    letter-spacing:.1em !important;
    text-align:center;
    text-shadow:0 3px 0 #000,0 0 21px rgba(217,183,102,.27) !important;
}
#character-select-screen.v62-roster-screen .character-select-title::before,
#character-select-screen.v62-roster-screen .character-select-title::after {
    content:"◆";
    display:inline-block;
    margin:0 .65em;
    color:#9b1f2d;
    font-size:.3em;
    vertical-align:middle;
    text-shadow:0 0 10px rgba(193,35,51,.62);
}
#character-select-screen.v62-roster-screen .character-select-sub {
    margin:0 0 8px !important;
    color:#a99c7f !important;
    font-size:10px !important;
    line-height:1.45;
    letter-spacing:.08em !important;
    text-align:center;
}
.v62-archetype-bar {
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-height:42px;
    padding:6px 8px;
    border-top:1px solid rgba(217,183,102,.18);
    border-bottom:1px solid rgba(217,183,102,.24);
    background:linear-gradient(90deg,transparent,rgba(0,0,0,.58) 12% 88%,transparent);
    overflow-x:auto;
    scrollbar-width:none;
}
.v62-archetype-bar::-webkit-scrollbar { display:none; }
.v62-filter-button {
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    gap:5px;
    min-height:28px;
    padding:6px 9px;
    border:1px solid rgba(217,183,102,.22);
    border-radius:2px;
    color:#908774;
    background:rgba(4,6,7,.74);
    font:700 9px/1 sans-serif;
    letter-spacing:.05em;
    cursor:pointer;
    transition:.18s ease;
}
.v62-filter-button:hover,
.v62-filter-button:focus-visible { color:#e9d8aa;border-color:rgba(217,183,102,.65);transform:translateY(-1px); }
.v62-filter-button.active {
    color:#fff0c1;
    border-color:var(--filter-color,#d9b766);
    background:linear-gradient(180deg,color-mix(in srgb,var(--filter-color,#d9b766) 22%,#08090a),#08090a);
    box-shadow:0 0 12px color-mix(in srgb,var(--filter-color,#d9b766) 36%,transparent),inset 0 1px rgba(255,255,255,.08);
}
.v62-filter-gem {
    width:8px;
    height:8px;
    transform:rotate(45deg);
    border:1px solid rgba(255,255,255,.72);
    background:var(--filter-color,#d9b766);
    box-shadow:0 0 7px var(--filter-color,#d9b766);
}
.v62-filter-count {
    flex:0 0 auto;
    margin-left:5px;
    padding-left:10px;
    border-left:1px solid rgba(217,183,102,.24);
    color:#746d5f;
    font:700 8px/1 "Courier New",monospace;
    letter-spacing:.1em;
    white-space:nowrap;
}
#character-select-screen.v62-roster-screen .character-grid,
#character-select-screen.v62-roster-screen #character-grid {
    flex:1 1 auto !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    gap:clamp(12px,1.8vw,24px) !important;
    padding:15px max(8vw,42px) 18px !important;
    scroll-padding-inline:max(8vw,42px) !important;
    scroll-snap-type:x mandatory !important;
    scrollbar-color:rgba(217,183,102,.42) rgba(0,0,0,.28) !important;
}
#character-select-screen.v62-roster-screen .character-card {
    --v62-card-gem:#d9b766;
    --v62-card-glow:rgba(217,183,102,.5);
    position:relative !important;
    flex:0 0 clamp(226px,20vw,292px) !important;
    width:clamp(226px,20vw,292px) !important;
    min-width:clamp(226px,20vw,292px) !important;
    height:min(59dvh,548px) !important;
    min-height:360px !important;
    max-height:calc(100dvh - 222px) !important;
    aspect-ratio:auto !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    isolation:isolate;
    border:1px solid rgba(217,183,102,.42) !important;
    border-radius:8px !important;
    clip-path:polygon(0 0,calc(100% - 13px) 0,100% 13px,100% 100%,13px 100%,0 calc(100% - 13px)) !important;
    color:#edddb4 !important;
    background:
        radial-gradient(circle at 50% 25%,color-mix(in srgb,var(--v62-card-gem) 18%,transparent),transparent 43%),
        linear-gradient(155deg,#161618,#050607 72%) !important;
    box-shadow:0 15px 30px rgba(0,0,0,.58),inset 0 0 0 1px rgba(255,255,255,.025) !important;
    line-height:normal !important;
    scroll-snap-align:center !important;
    transition:transform .25s cubic-bezier(.2,.75,.2,1),filter .25s ease,box-shadow .25s ease,border-color .25s ease !important;
    animation:v62-roster-card-in .52s cubic-bezier(.16,.8,.2,1) both;
    animation-delay:var(--v62-card-delay,0ms);
}
#character-select-screen.v62-roster-screen .character-card[hidden] { display:none !important; }
#character-select-screen.v62-roster-screen .character-card::before {
    content:"";
    position:absolute;
    inset:7px;
    z-index:5;
    pointer-events:none;
    border:1px solid color-mix(in srgb,var(--v62-card-gem) 34%,rgba(255,255,255,.08));
    clip-path:polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,9px 100%,0 calc(100% - 9px));
}
#character-select-screen.v62-roster-screen .character-card::after {
    content:"" !important;
    display:block !important;
    position:absolute !important;
    left:12%;
    right:12%;
    bottom:47px;
    height:34%;
    z-index:0;
    opacity:.38;
    pointer-events:none;
    background:radial-gradient(ellipse,var(--v62-card-glow),transparent 70%) !important;
    filter:blur(8px);
}
#character-select-screen.v62-roster-screen .character-card:hover,
#character-select-screen.v62-roster-screen .character-card:focus-visible {
    transform:translateY(-7px) scale(1.018) !important;
    filter:brightness(1.08) !important;
    border-color:rgba(255,226,148,.75) !important;
    box-shadow:0 19px 38px rgba(0,0,0,.72),0 0 17px var(--v62-card-glow) !important;
}
#character-select-screen.v62-roster-screen .character-card.selected {
    transform:translateY(-9px) scale(1.025) !important;
    border-color:var(--v62-card-gem) !important;
    box-shadow:0 0 0 2px rgba(255,255,255,.11),0 0 26px var(--v62-card-glow),0 22px 40px rgba(0,0,0,.75) !important;
}
#character-select-screen.v62-roster-screen .character-card.selected::before {
    border-color:var(--v62-card-gem);
    box-shadow:inset 0 0 15px color-mix(in srgb,var(--v62-card-gem) 18%,transparent);
}
#character-select-screen.v62-roster-screen .character-card > .character-card-image {
    position:absolute !important;
    inset:10px 10px 62px !important;
    display:block !important;
    width:calc(100% - 20px) !important;
    height:calc(100% - 72px) !important;
    min-width:0 !important;
    min-height:0 !important;
    max-width:none !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:4px !important;
    clip-path:none !important;
    object-fit:contain !important;
    object-position:center bottom !important;
    background:transparent !important;
    transform:none !important;
    filter:drop-shadow(0 10px 9px rgba(0,0,0,.6));
    z-index:2;
}
#character-select-screen.v62-roster-screen .character-card.has-awaken-preview {
    aspect-ratio:925/1133 !important;
}
#character-select-screen.v62-roster-screen .character-card.v47-card-crop.has-awaken-preview {
    aspect-ratio:925/1281 !important;
}
#character-select-screen.v62-roster-screen .character-card.has-awaken-preview > .character-card-image,
#character-select-screen.v62-roster-screen .character-card.has-awaken-preview > .character-card-awaken-image {
    position:absolute !important;
    inset:46% auto auto 50% !important;
    display:block !important;
    width:76% !important;
    height:75% !important;
    max-width:none !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:6px !important;
    clip-path:inset(0 round 6px) !important;
    object-fit:contain !important;
    object-position:center !important;
    box-shadow:0 10px 20px rgba(0,0,0,.72) !important;
}
#character-select-screen.v62-roster-screen .character-card.has-awaken-preview > .character-card-image {
    z-index:3 !important;
    transform:translate(-50%,-50%) translate(-19px,-8px) rotate(-2deg) !important;
    filter:none !important;
}
#character-select-screen.v62-roster-screen .character-card.has-awaken-preview > .character-card-awaken-image {
    z-index:2 !important;
    transform:translate(-50%,-50%) translate(20px,11px) rotate(2deg) scale(.98) !important;
    filter:brightness(.58) saturate(.8) !important;
}
#character-select-screen.v62-roster-screen .character-card.has-awaken-preview.selection-awaken-front > .character-card-image {
    z-index:2 !important;
    transform:translate(-50%,-50%) translate(20px,11px) rotate(2deg) scale(.98) !important;
    filter:brightness(.58) saturate(.8) !important;
}
#character-select-screen.v62-roster-screen .character-card.has-awaken-preview.selection-awaken-front > .character-card-awaken-image {
    z-index:3 !important;
    transform:translate(-50%,-50%) translate(-19px,-8px) rotate(-2deg) !important;
    filter:none !important;
}
.v62-card-index {
    position:absolute;
    left:13px;
    top:13px;
    z-index:8;
    display:flex;
    align-items:center;
    gap:5px;
    padding:5px 7px;
    border:1px solid color-mix(in srgb,var(--v62-card-gem) 58%,#fff);
    color:#fff0c8;
    background:rgba(0,0,0,.78);
    font:900 11px/1 Georgia,serif;
    text-shadow:0 0 8px var(--v62-card-glow);
    pointer-events:none;
}
.v62-card-index-gem {
    width:7px;
    height:7px;
    transform:rotate(45deg);
    border:1px solid rgba(255,255,255,.75);
    background:var(--v62-card-gem);
    box-shadow:0 0 7px var(--v62-card-gem);
}
.v62-card-meta {
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    z-index:7;
    min-height:58px;
    padding:10px 14px 8px;
    border-top:1px solid color-mix(in srgb,var(--v62-card-gem) 48%,rgba(217,183,102,.2));
    color:#f1dfb4;
    background:linear-gradient(90deg,rgba(3,4,5,.98),rgba(18,13,12,.96) 64%,color-mix(in srgb,var(--v62-card-gem) 12%,#060708));
    text-align:left;
    pointer-events:none;
}
.v62-card-name {
    display:block;
    overflow:hidden;
    color:#f6e5b8;
    font:800 13px/1.15 Georgia,"Yu Mincho",serif;
    letter-spacing:.05em;
    white-space:nowrap;
    text-overflow:ellipsis;
    text-shadow:0 2px 5px #000;
}
.v62-card-role {
    display:block;
    margin-top:5px;
    overflow:hidden;
    color:#8f8672;
    font:700 8px/1.1 "Courier New",monospace;
    letter-spacing:.08em;
    white-space:nowrap;
    text-overflow:ellipsis;
}
#character-select-screen.v62-roster-screen .character-card-tap-label,
#character-select-screen.v62-roster-screen .character-card-toggle-hint {
    left:auto !important;
    right:12px !important;
    top:13px !important;
    bottom:auto !important;
    transform:none !important;
    z-index:9 !important;
    padding:5px 7px !important;
    border:1px solid rgba(217,183,102,.44) !important;
    border-radius:1px !important;
    color:#d7c28b !important;
    background:rgba(0,0,0,.78) !important;
    font:700 7px/1 sans-serif !important;
    letter-spacing:.04em !important;
    opacity:.72 !important;
}
#character-select-screen.v62-roster-screen .character-select-footer {
    display:grid !important;
    grid-template-columns:minmax(180px,1fr) auto !important;
    align-items:center !important;
    gap:12px !important;
    margin:0 !important;
    padding:9px 0 0 !important;
    border-top:1px solid rgba(217,183,102,.28);
    background:linear-gradient(90deg,rgba(0,0,0,.44),transparent);
}
#character-select-screen.v62-roster-screen #character-selection-status {
    min-width:0;
    color:#9f947b !important;
    font:700 10px/1.3 Georgia,"Yu Mincho",serif;
    letter-spacing:.07em;
    text-align:left;
}
#character-select-screen.v62-roster-screen .character-select-footer-buttons {
    flex-wrap:nowrap !important;
    gap:7px !important;
}
#character-select-screen.v62-roster-screen #character-back-home-btn,
#character-select-screen.v62-roster-screen #confirm-character-btn {
    min-height:44px !important;
    padding:10px 17px !important;
    border-radius:1px !important;
    font:800 11px/1 Georgia,"Yu Mincho",serif !important;
    letter-spacing:.08em !important;
    cursor:pointer;
}
#character-select-screen.v62-roster-screen #character-back-home-btn {
    border:1px solid rgba(217,183,102,.3) !important;
    color:#b8aa88 !important;
    background:linear-gradient(180deg,#27241f,#0b0c0c) !important;
}
#character-select-screen.v62-roster-screen #confirm-character-btn {
    min-width:178px;
    border:1px solid rgba(217,183,102,.55) !important;
    color:#8d8066 !important;
    background:linear-gradient(110deg,#2d2820,#0c0d0d) !important;
    box-shadow:none !important;
}
#character-select-screen.v62-roster-screen #confirm-character-btn.ready {
    border-color:#f1d17a !important;
    color:#fff0bf !important;
    background:linear-gradient(110deg,#7d1826,#390a12 58%,#10191a) !important;
    box-shadow:0 0 18px rgba(157,28,43,.3),inset 0 1px rgba(255,239,187,.12) !important;
}

/* 詳細モーダルも名鑑と同じ意匠へ統一 */
#character-detail-modal.v62-detail-modal { background:rgba(0,0,0,.9) !important;backdrop-filter:blur(8px) !important; }
#character-detail-modal.v62-detail-modal .character-detail-panel {
    --v62-detail-gem:#d9b766;
    border:1px solid color-mix(in srgb,var(--v62-detail-gem) 54%,#a9915b) !important;
    border-radius:3px !important;
    clip-path:polygon(0 0,calc(100% - 20px) 0,100% 20px,100% 100%,20px 100%,0 calc(100% - 20px));
    background:
        radial-gradient(circle at 77% 18%,color-mix(in srgb,var(--v62-detail-gem) 13%,transparent),transparent 32%),
        linear-gradient(145deg,#181516,#050708 68%) !important;
    box-shadow:0 25px 70px rgba(0,0,0,.86),inset 0 0 45px rgba(0,0,0,.5) !important;
}
#character-detail-modal.v62-detail-modal .character-detail-portrait-wrap { background:radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--v62-detail-gem) 18%,transparent),transparent 42%),#070809 !important;border-right:1px solid rgba(217,183,102,.25) !important; }
#character-detail-modal.v62-detail-modal .character-detail-kicker { color:#ad9968 !important;letter-spacing:.34em !important; }
#character-detail-modal.v62-detail-modal #character-detail-name { color:#f4dfa6 !important;text-shadow:0 3px 0 #000,0 0 17px color-mix(in srgb,var(--v62-detail-gem) 35%,transparent) !important; }
#character-detail-modal.v62-detail-modal #character-detail-type { color:var(--v62-detail-gem) !important; }
#character-detail-modal.v62-detail-modal .character-detail-ability { border:1px solid rgba(217,183,102,.24) !important;border-radius:2px !important;background:rgba(0,0,0,.38) !important; }
#character-detail-modal.v62-detail-modal .character-detail-ability-title { color:#e0bd67 !important; }
#character-detail-modal.v62-detail-modal #character-detail-select { border-radius:1px !important;background:linear-gradient(110deg,#7d1826,#390a12 62%,#10191a) !important; }
#character-detail-modal.v62-detail-modal #character-detail-close { border-radius:1px !important;background:linear-gradient(180deg,#2b2925,#0d0e0e) !important; }

@keyframes v62-home-texture-drift { from{transform:translate3d(-1%,-1%,0) rotate(-.25deg)}to{transform:translate3d(1%,1%,0) rotate(.25deg)} }
@keyframes v62-character-left { 0%,100%{transform:translateX(-3%) scale(.88) rotate(-3deg)}50%{transform:translateX(-1%) translateY(-8px) scale(.9) rotate(-2.4deg)} }
@keyframes v62-character-center { 0%,100%{transform:scale(1.08) translateY(0)}50%{transform:scale(1.095) translateY(-9px)} }
@keyframes v62-character-right { 0%,100%{transform:translateX(2%) scale(.9) rotate(3deg)}50%{transform:translateX(0) translateY(-6px) scale(.92) rotate(2.2deg)} }
@keyframes v62-roster-card-in { from{opacity:0;transform:translateY(30px) rotateX(10deg);filter:blur(7px)}to{opacity:1;transform:translateY(0) rotateX(0);filter:blur(0)} }

@media(max-width:900px) {
    #home-screen.v62-shocker-home .home-main { grid-template-columns:1fr !important;grid-template-rows:minmax(390px,58dvh) auto !important;height:auto !important;min-height:0 !important; }
    #home-screen.v62-shocker-home .home-hero-copy { width:52%; }
    #home-screen.v62-shocker-home .home-side { grid-template-rows:auto auto !important; }
    #home-screen.v62-shocker-home .home-menu-btn { min-height:72px !important; }
    #home-screen.v62-shocker-home .home-menu-btn.primary { min-height:86px !important; }
    #character-select-screen.v62-roster-screen .character-card { flex-basis:clamp(220px,32vw,276px) !important;width:clamp(220px,32vw,276px) !important;min-width:clamp(220px,32vw,276px) !important; }
}

@media(max-width:700px) {
    #home-screen.v62-shocker-home .home-shell { padding-inline:9px !important; }
    #home-screen.v62-shocker-home .home-topbar { min-height:61px; }
    #home-screen.v62-shocker-home .home-brand-small { font-size:7px !important;letter-spacing:.25em !important; }
    #home-screen.v62-shocker-home .home-brand-title { font-size:29px !important; }
    #home-screen.v62-shocker-home .home-brand-title::after { right:-18px; }
    #home-screen.v62-shocker-home .home-resources { gap:3px !important; }
    #home-screen.v62-shocker-home .home-resource { min-width:70px !important;padding:6px !important;font-size:6px !important; }
    #home-screen.v62-shocker-home .home-resource b { font-size:9px !important; }
    #home-screen.v62-shocker-home .home-main { grid-template-rows:minmax(335px,52dvh) auto !important;gap:8px !important;padding:8px 0 !important; }
    #home-screen.v62-shocker-home .home-hero { clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,16px 100%,0 calc(100% - 16px)) !important; }
    #home-screen.v62-shocker-home .home-hero-copy { left:15px !important;bottom:17px !important;width:57%;max-width:none !important; }
    #home-screen.v62-shocker-home .home-season { padding:4px 6px !important;font-size:6px !important;letter-spacing:.1em !important; }
    #home-screen.v62-shocker-home .home-hero-title { margin:8px 0 7px !important;font-size:clamp(29px,9.4vw,45px) !important; }
    #home-screen.v62-shocker-home .home-hero-text { font-size:8px !important;line-height:1.5 !important; }
    .v62-mechanics { gap:3px;margin-top:8px; }
    .v62-mechanic { padding:4px 5px;font-size:6px;gap:3px; }
    .v62-mechanic strong { font-size:8px; }
    .v62-home-showcase { inset:2% -4% 0 48%; }
    .v62-home-character { width:62%;height:95%; }
    .v62-home-character.is-left { left:-22%;opacity:.56; }
    .v62-home-character.is-center { left:12%; }
    .v62-home-character.is-right { right:-35%;opacity:.45; }
    .v62-home-character figcaption { display:none; }
    #home-screen.v62-shocker-home .home-notice { padding:9px 10px !important; }
    #home-screen.v62-shocker-home .home-menu-grid { gap:5px !important; }
    #home-screen.v62-shocker-home .home-menu-btn { min-height:64px !important;padding:8px 7px 8px 42px !important; }
    #home-screen.v62-shocker-home .home-menu-btn.primary { min-height:76px !important;padding-left:57px !important; }
    #home-screen.v62-shocker-home .home-menu-icon { left:8px;width:27px;height:35px;font-size:17px !important; }
    #home-screen.v62-shocker-home .home-menu-btn.primary .home-menu-icon { left:11px;width:34px;height:43px;font-size:24px !important; }
    #home-screen.v62-shocker-home .home-menu-name { font-size:10px !important; }
    #home-screen.v62-shocker-home .home-menu-btn.primary .home-menu-name { font-size:15px !important; }
    #home-screen.v62-shocker-home .home-menu-sub { margin-top:4px !important;font-size:5.5px !important; }
    #home-screen.v62-shocker-home .home-bottom { font-size:6px !important; }

    #character-select-screen.v62-roster-screen { overflow-y:auto !important;padding-top:8px !important; }
    #character-select-screen.v62-roster-screen .character-select-shell { height:auto !important;min-height:100% !important;padding-inline:8px !important; }
    #character-select-screen.v62-roster-screen .character-select-kicker { font-size:6.5px !important;letter-spacing:.24em !important; }
    #character-select-screen.v62-roster-screen .character-select-title { font-size:clamp(24px,7vw,34px) !important;letter-spacing:.04em !important; }
    #character-select-screen.v62-roster-screen .character-select-title::before,
    #character-select-screen.v62-roster-screen .character-select-title::after { margin:0 .35em; }
    #character-select-screen.v62-roster-screen .character-select-sub { margin-bottom:5px !important;font-size:8px !important; }
    .v62-archetype-bar { justify-content:flex-start;min-height:37px;padding-inline:4px; }
    .v62-filter-button { padding:5px 7px;font-size:8px; }
    .v62-filter-count { font-size:7px; }
    #character-select-screen.v62-roster-screen .character-grid,
    #character-select-screen.v62-roster-screen #character-grid { min-height:440px !important;padding:12px 12vw 15px !important;gap:13px !important; }
    #character-select-screen.v62-roster-screen .character-card { flex:0 0 min(72vw,285px) !important;width:min(72vw,285px) !important;min-width:min(72vw,285px) !important;height:min(55dvh,510px) !important;min-height:410px !important;max-height:none !important; }
    #character-select-screen.v62-roster-screen .character-select-footer { position:sticky;bottom:0;z-index:20;grid-template-columns:1fr !important;gap:6px !important;padding:7px 4px max(6px,env(safe-area-inset-bottom)) !important;background:rgba(4,6,7,.95) !important;backdrop-filter:blur(8px); }
    #character-select-screen.v62-roster-screen #character-selection-status { min-height:17px;text-align:center;font-size:8px !important; }
    #character-select-screen.v62-roster-screen .character-select-footer-buttons { width:100%; }
    #character-select-screen.v62-roster-screen #character-back-home-btn,
    #character-select-screen.v62-roster-screen #confirm-character-btn { flex:1 1 0 !important;min-width:0 !important;min-height:41px !important;padding:8px !important;font-size:9px !important; }
}

@media(max-height:650px) and (min-width:701px) {
    #home-screen.v62-shocker-home .home-main { min-height:490px;height:calc(100dvh - 120px); }
    #character-select-screen.v62-roster-screen .character-card { height:calc(100dvh - 205px) !important;min-height:320px !important; }
}

@media(prefers-reduced-motion:reduce) {
    #home-screen.v62-shocker-home::before,
    .v62-home-character,
    #character-select-screen.v62-roster-screen .character-card { animation-duration:.01ms !important;animation-iteration-count:1 !important; }
}

/* V270: round the contained card picture, including its internal letterbox. */
#character-select-screen.v62-roster-screen #character-grid .character-card { container-type:size; }
#character-select-screen.v62-roster-screen #character-grid .character-card > :is(.character-card-image,.character-card-awaken-image) {
    --v270-box-w:calc(100cqw - 20px);
    --v270-box-h:calc(100cqh - 72px);
    --v270-object-y:1;
    --v270-picture-w:min(var(--v270-box-w),calc(var(--v270-box-h) * var(--v270-art-w,925) / var(--v270-art-h,1281)));
    --v270-picture-h:min(var(--v270-box-h),calc(var(--v270-box-w) * var(--v270-art-h,1281) / var(--v270-art-w,925)));
    clip-path:inset(
        max(0px,calc((var(--v270-box-h) - var(--v270-picture-h)) * var(--v270-object-y)))
        max(0px,calc((var(--v270-box-w) - var(--v270-picture-w)) / 2))
        max(0px,calc((var(--v270-box-h) - var(--v270-picture-h)) * (1 - var(--v270-object-y))))
        max(0px,calc((var(--v270-box-w) - var(--v270-picture-w)) / 2))
        round min(16px,calc(var(--v270-picture-w) * .06))) !important;
}
#character-select-screen.v62-roster-screen #character-grid .character-card.has-awaken-preview > :is(.character-card-image,.character-card-awaken-image) {
    --v270-box-w:76cqw;
    --v270-box-h:75cqh;
    --v270-object-y:.5;
}
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen #character-grid .character-card > :is(.character-card-image,.character-card-awaken-image) {
    --v270-box-w:94cqw;
    --v270-box-h:94cqh;
}


/* SOURCE styles/battle-redesign.css */
/* =========================================================
   SHOCKER v64 — IMPERIAL TRUMP BATTLE TABLE
   トランプ、宝石能力、小説キャラクターの世界観を盤面へ統合。
   既存の対戦DOM・当たり判定・操作位置は変更しない。
   ========================================================= */

body.v45-battle-active.v64-shocker-battle {
    --v64-gold:#d9b766;
    --v64-gold-bright:#ffe7a0;
    --v64-ivory:#f3e7c5;
    --v64-ink:#040608;
    --v64-enemy:#6b1621;
    --v64-enemy-bright:#b7434c;
    --v64-player:#0b4650;
    --v64-player-bright:#2b8d93;
    --v64-line:rgba(217,183,102,.58);
    color:var(--v64-ivory) !important;
    font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif !important;
    background:#030507 !important;
    isolation:isolate;
}

#v64-battle-backdrop {
    display:none;
    position:fixed;
    inset:0;
    z-index:0;
    overflow:hidden;
    pointer-events:none;
    background:
        radial-gradient(ellipse at 18% 18%,rgba(121,25,36,.34),transparent 31%),
        radial-gradient(ellipse at 82% 82%,rgba(14,91,99,.31),transparent 34%),
        linear-gradient(118deg,#020305 0 45%,#16070b 45.2% 49.7%,#d4b45f 49.85% 50.15%,#061419 50.3% 100%);
}
body.v45-battle-active.v64-shocker-battle #v64-battle-backdrop { display:block; }
#v64-battle-backdrop::before {
    content:"";
    position:absolute;
    inset:-20%;
    opacity:.3;
    background:
        repeating-conic-gradient(from 45deg at 50% 50%,transparent 0 12deg,rgba(255,255,255,.035) 12.2deg 12.7deg,transparent 12.9deg 24deg),
        repeating-linear-gradient(0deg,transparent 0 4px,rgba(255,255,255,.018) 5px);
    transform:rotate(-2deg);
    animation:v64-table-drift 22s linear infinite;
}
#v64-battle-backdrop::after {
    content:"♠       ♥       ♦       ♣";
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%) rotate(-7deg);
    color:#fff;
    opacity:.035;
    white-space:nowrap;
    font:900 clamp(92px,19vw,270px)/1 Georgia,serif;
    letter-spacing:.16em;
    text-shadow:0 0 80px rgba(255,255,255,.25);
}

/* ---------- 上部：紋章、ラウンド、戦術指令 ---------- */
body.v45-battle-active.v64-shocker-battle > h2 {
    position:relative !important;
    z-index:70 !important;
    width:100% !important;
    min-height:24px !important;
    margin:0 !important;
    padding:3px 118px 2px !important;
    overflow:hidden !important;
    border:0 !important;
    border-top:1px solid rgba(255,231,160,.28) !important;
    border-bottom:1px solid var(--v64-line) !important;
    color:var(--v64-gold-bright) !important;
    background:
        linear-gradient(90deg,rgba(0,0,0,.2),rgba(21,15,11,.9) 30% 70%,rgba(0,0,0,.2)) !important;
    font:900 clamp(14px,2.2vh,20px)/1 Georgia,serif !important;
    letter-spacing:.32em !important;
    text-indent:.32em !important;
    text-shadow:0 2px 0 #000,0 0 14px rgba(217,183,102,.52) !important;
}
body.v45-battle-active.v64-shocker-battle > h2::before {
    content:"♠  IMPERIAL";
    position:absolute;
    left:92px;
    top:50%;
    transform:translateY(-50%);
    color:rgba(243,231,197,.58);
    font:700 8px/1 "Courier New",monospace;
    letter-spacing:.18em;
    text-indent:0;
}
body.v45-battle-active.v64-shocker-battle > h2::after {
    content:"TRUMP DUEL  ♦";
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    color:rgba(243,231,197,.58);
    font:700 8px/1 "Courier New",monospace;
    letter-spacing:.18em;
    text-indent:0;
}

body.v45-battle-active.v64-shocker-battle #turn-info {
    position:relative !important;
    z-index:70 !important;
    justify-self:center !important;
    width:auto !important;
    min-width:min(52vw,280px) !important;
    margin:0 !important;
    padding:2px 24px 3px !important;
    border-inline:1px solid rgba(217,183,102,.45) !important;
    color:#d8c99e !important;
    background:linear-gradient(90deg,transparent,rgba(0,0,0,.72) 15% 85%,transparent) !important;
    font:700 clamp(9px,1.55vh,12px)/1.1 "Courier New",monospace !important;
    letter-spacing:.18em !important;
    text-shadow:0 2px 4px #000 !important;
    clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 50%,calc(100% - 8px) 100%,8px 100%,0 50%);
}
body.v45-battle-active.v64-shocker-battle #turn-count {
    color:var(--v64-gold-bright) !important;
    font-size:1.15em;
}

body.v45-battle-active.v64-shocker-battle #phase-bar {
    position:relative !important;
    z-index:72 !important;
    width:100% !important;
    min-height:29px !important;
    max-height:38px !important;
    margin:0 !important;
    padding:6px 12px 5px 150px !important;
    overflow:hidden !important;
    border:1px solid rgba(217,183,102,.7) !important;
    border-left:4px solid var(--v64-gold-bright) !important;
    border-right:4px solid var(--v64-gold) !important;
    border-radius:0 !important;
    color:#fff0c2 !important;
    background:linear-gradient(90deg,rgba(26,20,15,.98),rgba(7,11,12,.96),rgba(26,20,15,.98));
    box-shadow:0 4px 16px rgba(0,0,0,.64),inset 0 1px rgba(255,255,255,.07) !important;
    font:800 clamp(10px,1.65vh,13px)/1.2 "Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif !important;
    letter-spacing:.045em !important;
    text-align:left !important;
    text-shadow:0 1px 3px #000 !important;
    clip-path:polygon(0 0,calc(100% - 9px) 0,100% 50%,calc(100% - 9px) 100%,0 100%);
}
body.v45-battle-active.v64-shocker-battle #phase-bar::before {
    content:"TACTICAL ORDER";
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    width:122px;
    padding-right:10px;
    border-right:1px solid rgba(217,183,102,.5);
    color:var(--v64-gold);
    font:700 9px/1 "Courier New",monospace;
    letter-spacing:.16em;
}
body.v45-battle-active.v64-shocker-battle #revolution-status {
    border:1px solid #e7bd62 !important;
    border-radius:0 !important;
    color:#ffe29a !important;
    background:linear-gradient(90deg,#260408,#841722 28% 72%,#260408) !important;
    box-shadow:0 0 20px rgba(201,38,50,.55),inset 0 1px rgba(255,255,255,.1) !important;
    font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif !important;
}

/* ---------- 上下の領域：敵はガーネット、自分は青緑の宝石陣営 ---------- */
body.v45-battle-active.v64-shocker-battle .field-area {
    position:relative !important;
    z-index:40 !important;
    isolation:isolate;
    border-radius:0 !important;
    background-color:rgba(3,5,7,.76) !important;
    background-image:
        linear-gradient(100deg,rgba(255,255,255,.025),transparent 31%),
        repeating-linear-gradient(135deg,transparent 0 22px,rgba(255,255,255,.012) 23px 24px) !important;
    box-shadow:
        0 10px 26px rgba(0,0,0,.46),
        inset 0 1px rgba(255,255,255,.06),
        inset 0 0 34px rgba(0,0,0,.46) !important;
}
body.v45-battle-active.v64-shocker-battle .opponent-area {
    border:1px solid rgba(183,67,76,.76) !important;
    border-left:4px solid var(--v64-enemy-bright) !important;
    background-image:
        radial-gradient(ellipse at 84% 28%,rgba(141,32,45,.22),transparent 31%),
        linear-gradient(100deg,rgba(63,8,16,.7),rgba(3,5,7,.66) 46%),
        repeating-linear-gradient(135deg,transparent 0 22px,rgba(255,255,255,.012) 23px 24px) !important;
}
body.v45-battle-active.v64-shocker-battle .player-area {
    border:1px solid rgba(43,141,147,.76) !important;
    border-right:4px solid var(--v64-player-bright) !important;
    background-image:
        radial-gradient(ellipse at 16% 72%,rgba(24,119,128,.22),transparent 34%),
        linear-gradient(280deg,rgba(4,56,63,.7),rgba(3,5,7,.66) 48%),
        repeating-linear-gradient(135deg,transparent 0 22px,rgba(255,255,255,.012) 23px 24px) !important;
}
body.v45-battle-active.v64-shocker-battle .field-area::before {
    content:"";
    position:absolute;
    z-index:1;
    left:0;
    right:0;
    top:0;
    height:2px;
    opacity:.9;
    background:linear-gradient(90deg,currentColor,transparent 42%,rgba(217,183,102,.8),transparent 75%);
    pointer-events:none;
}
body.v45-battle-active.v64-shocker-battle .field-area::after {
    position:absolute;
    z-index:0;
    top:50%;
    transform:translateY(-50%);
    opacity:.035;
    pointer-events:none;
    color:#fff;
    font:900 clamp(70px,15vh,150px)/1 Georgia,serif;
}
body.v45-battle-active.v64-shocker-battle .opponent-area::after { content:"♦"; right:8%; }
body.v45-battle-active.v64-shocker-battle .player-area::after { content:"♠"; left:8%; }

body.v45-battle-active.v64-shocker-battle .field-area > h3 {
    position:relative !important;
    z-index:65 !important;
    width:max-content;
    max-width:58%;
    margin:0 auto 2px !important;
    padding:2px 16px 3px !important;
    border:0 !important;
    border-bottom:1px solid rgba(217,183,102,.42) !important;
    color:#ead8ab !important;
    background:linear-gradient(90deg,transparent,rgba(0,0,0,.6),transparent) !important;
    font:800 clamp(9px,1.45vh,12px)/1 "Courier New",monospace !important;
    letter-spacing:.12em !important;
    text-shadow:0 2px 4px #000 !important;
}
body.v45-battle-active.v64-shocker-battle .opponent-area > h3 { color:#efb0b3 !important; }
body.v45-battle-active.v64-shocker-battle .player-area > h3:first-of-type { color:#a9e1df !important; }
body.v45-battle-active.v64-shocker-battle .player-area > h3:nth-of-type(2) { color:#edd49a !important; }

body.v45-battle-active.v64-shocker-battle #opponent-field,
body.v45-battle-active.v64-shocker-battle #player-field,
body.v45-battle-active.v64-shocker-battle #hand-zone {
    position:relative !important;
    border-top:1px solid rgba(255,255,255,.025);
    border-bottom:1px solid rgba(217,183,102,.1);
    border-radius:0 !important;
    background:
        radial-gradient(ellipse at center,rgba(217,183,102,.065),transparent 62%),
        linear-gradient(90deg,transparent,rgba(0,0,0,.18),transparent) !important;
}
body.v45-battle-active.v64-shocker-battle #opponent-field::before,
body.v45-battle-active.v64-shocker-battle #player-field::before,
body.v45-battle-active.v64-shocker-battle #hand-zone::before {
    inset:4px 12% !important;
    z-index:0 !important;
    border:1px dashed rgba(217,183,102,.13) !important;
    border-radius:50% !important;
    background:transparent !important;
    pointer-events:none !important;
}

/* ---------- トランプ：象牙紙とSHOCKER専用カードバック ---------- */
body.v45-battle-active.v64-shocker-battle .card {
    border:1px solid rgba(229,209,158,.82) !important;
    border-radius:5px !important;
    box-shadow:
        0 6px 12px rgba(0,0,0,.6),
        inset 0 0 0 2px rgba(255,255,255,.33),
        inset 0 0 0 3px rgba(96,68,25,.18) !important;
    font-family:Georgia,"Times New Roman",serif !important;
}
body.v45-battle-active.v64-shocker-battle .card:not(.card-back) {
    background-color:#eee5d1;
    background-image:
        repeating-linear-gradient(0deg,rgba(86,63,31,.025) 0 1px,transparent 1px 3px),
        linear-gradient(135deg,#fffdf4,#ded1b6) !important;
}
body.v45-battle-active.v64-shocker-battle .card-back,
body.v45-battle-active.v64-shocker-battle .deck-pile,
body.v45-battle-active.v64-shocker-battle .opponent-mini-card {
    border-color:#d8b85f !important;
    background-color:#23090e !important;
    background-image:
        radial-gradient(circle at 50% 50%,rgba(217,183,102,.19) 0 7%,transparent 8% 21%,rgba(217,183,102,.14) 22% 24%,transparent 25%),
        repeating-conic-gradient(from 45deg at 50% 50%,#14070a 0 9deg,#52131c 9deg 18deg,#221016 18deg 27deg) !important;
    box-shadow:
        0 6px 12px rgba(0,0,0,.65),
        inset 0 0 0 3px #17070a,
        inset 0 0 0 4px rgba(217,183,102,.72),
        inset 0 0 15px rgba(0,0,0,.72) !important;
}
body.v45-battle-active.v64-shocker-battle .deck-container {
    filter:drop-shadow(0 8px 10px rgba(0,0,0,.48));
}
body.v45-battle-active.v64-shocker-battle .deck-label {
    color:#d9c38c !important;
    font:700 7px/1 "Courier New",monospace !important;
    letter-spacing:.08em;
    text-shadow:0 2px 4px #000 !important;
}
body.v45-battle-active.v64-shocker-battle .deck-pile {
    border-radius:4px !important;
    color:#f4d987 !important;
    font-family:Georgia,serif !important;
}
body.v45-battle-active.v64-shocker-battle .deck-bottom-card {
    border-color:#ae9454 !important;
    border-radius:4px !important;
    color:#21180d !important;
    background:linear-gradient(135deg,#fff9e9,#d9c9a8) !important;
    box-shadow:0 5px 9px rgba(0,0,0,.5),inset 0 0 0 2px rgba(118,83,28,.18) !important;
}

/* ---------- 相手手札と防衛履歴 ---------- */
body.v45-battle-active.v64-shocker-battle .opponent-hand-display {
    border:1px solid rgba(202,101,105,.6) !important;
    border-left:3px solid var(--v64-enemy-bright) !important;
    border-radius:0 !important;
    color:#e9c4bd !important;
    background:
        linear-gradient(135deg,rgba(75,12,22,.94),rgba(7,7,9,.94)) !important;
    box-shadow:0 8px 18px rgba(0,0,0,.62),inset 0 1px rgba(255,255,255,.06) !important;
    backdrop-filter:blur(8px) !important;
    clip-path:polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,0 100%);
}
body.v45-battle-active.v64-shocker-battle .opponent-hand-label {
    color:#f1b7b5 !important;
    font:700 8px/1 "Courier New",monospace !important;
    letter-spacing:.08em !important;
}
body.v45-battle-active.v64-shocker-battle .opponent-chain-log-title {
    border-top:1px solid rgba(217,183,102,.27) !important;
    color:#caaa73 !important;
    font-family:"Courier New",monospace !important;
}
body.v45-battle-active.v64-shocker-battle .opponent-chain-log {
    border-left:1px solid rgba(183,67,76,.24);
    background:linear-gradient(90deg,rgba(0,0,0,.3),transparent) !important;
    scrollbar-color:rgba(203,132,113,.62) rgba(24,4,8,.55) !important;
}
body.v45-battle-active.v64-shocker-battle .opponent-chain-log-entry {
    border-left-color:#b7434c !important;
    border-radius:0 !important;
    background:rgba(82,16,25,.36) !important;
}

/* ---------- 墓地 / スラッシュ：軍事記録のような帯 ---------- */
body.v45-battle-active.v64-shocker-battle .disposal-container {
    position:relative;
    z-index:62 !important;
}
body.v45-battle-active.v64-shocker-battle .disposal-box {
    border:1px solid rgba(217,183,102,.2) !important;
    border-radius:0 !important;
    background:linear-gradient(110deg,rgba(0,0,0,.55),rgba(255,255,255,.025)) !important;
    box-shadow:inset 0 1px rgba(255,255,255,.035) !important;
}
body.v45-battle-active.v64-shocker-battle .opponent-area .disposal-box:first-child { border-left:3px solid var(--v64-enemy-bright) !important; }
body.v45-battle-active.v64-shocker-battle .player-area .disposal-box:first-child { border-left:3px solid var(--v64-player-bright) !important; }
body.v45-battle-active.v64-shocker-battle .disposal-box:last-child { border-right:3px solid var(--v64-gold) !important; }
body.v45-battle-active.v64-shocker-battle .disposal-title {
    border-bottom:1px solid rgba(217,183,102,.22) !important;
    color:#bfb18f !important;
    font:700 clamp(7px,1.15vh,9px)/1 "Courier New",monospace !important;
    letter-spacing:.06em !important;
    text-align:left !important;
}
body.v45-battle-active.v64-shocker-battle .grave-card.stacked-zone-card {
    border-color:#5e5c57 !important;
    border-radius:2px !important;
    background:linear-gradient(180deg,#262522,#0e0f10) !important;
}
body.v45-battle-active.v64-shocker-battle .slash-card.stacked-zone-card {
    border-color:#c89c44 !important;
    border-radius:2px !important;
    background:linear-gradient(180deg,#61251c,#260a0d) !important;
}

/* ---------- 使用キャラクター名札（立ち絵は既存の大型表示を活かす） ---------- */
.v64-duelist-plate {
    --v64-duelist-gem:#d9b766;
    --v64-duelist-glow:rgba(217,183,102,.45);
    position:absolute;
    z-index:118;
    top:5px;
    width:clamp(112px,18vw,190px);
    min-height:29px;
    padding:4px 9px 4px 11px;
    overflow:hidden;
    border:1px solid color-mix(in srgb,var(--v64-duelist-gem) 62%,transparent);
    color:#f3e7c5;
    background:linear-gradient(110deg,rgba(0,0,0,.92),rgba(8,9,10,.62));
    box-shadow:0 5px 14px rgba(0,0,0,.55),0 0 12px var(--v64-duelist-glow);
    text-align:left;
    pointer-events:none;
    clip-path:polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,0 100%);
}
.opponent-area .v64-duelist-plate { right:5px; border-left:3px solid var(--v64-duelist-gem); }
.player-area .v64-duelist-plate { left:5px; border-left:3px solid var(--v64-duelist-gem); }
.v64-duelist-kicker {
    color:var(--v64-duelist-gem);
    font:700 6px/1 "Courier New",monospace;
    letter-spacing:.18em;
    white-space:nowrap;
}
.v64-duelist-name {
    margin-top:2px;
    overflow:hidden;
    color:#fff2ca;
    font:800 clamp(9px,1.45vh,12px)/1 Georgia,"Yu Mincho",serif;
    letter-spacing:.06em;
    text-overflow:ellipsis;
    text-shadow:0 2px 4px #000,0 0 9px var(--v64-duelist-glow);
    white-space:nowrap;
}
.v64-duelist-role {
    margin-top:2px;
    overflow:hidden;
    color:#ad9f80;
    font:700 6px/1 sans-serif;
    letter-spacing:.05em;
    text-overflow:ellipsis;
    white-space:nowrap;
}
body.v45-battle-active.v64-shocker-battle .battle-character.has-large-battle-art {
    opacity:.88 !important;
    filter:
        drop-shadow(0 14px 17px rgba(0,0,0,.78))
        drop-shadow(0 0 10px var(--char-glow))
        saturate(.93) contrast(1.04) !important;
}
body.v45-battle-active.v64-shocker-battle .battle-character.has-large-battle-art.v49-card-battle-art,
body.v45-battle-active.v64-shocker-battle .battle-character.has-large-battle-art.v47-card-battle-art {
    border:1px solid rgba(217,183,102,.45) !important;
    border-radius:6px !important;
    box-shadow:0 14px 28px rgba(0,0,0,.65),0 0 14px var(--char-glow) !important;
}

/* ---------- 行動ボタン：丸い汎用UIを廃し、カード卓の指令札へ ---------- */
body.v45-battle-active.v64-shocker-battle .action-btn,
body.v45-battle-active.v64-shocker-battle .confirm-btn,
body.v45-battle-active.v64-shocker-battle .cancel-btn,
body.v45-battle-active.v64-shocker-battle .ability-btn,
body.v45-battle-active.v64-shocker-battle #ability-field-swap-confirm {
    border:1px solid rgba(217,183,102,.58) !important;
    border-radius:3px !important;
    color:#f4e6bd !important;
    background:linear-gradient(180deg,#31291d,#0c0d0e) !important;
    box-shadow:0 5px 12px rgba(0,0,0,.52),inset 0 1px rgba(255,255,255,.08) !important;
    font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif !important;
    font-weight:800 !important;
    letter-spacing:.035em;
    text-shadow:0 1px 3px #000 !important;
}
body.v45-battle-active.v64-shocker-battle .action-btn:active:not(:disabled),
body.v45-battle-active.v64-shocker-battle .confirm-btn:active:not(:disabled),
body.v45-battle-active.v64-shocker-battle .cancel-btn:active:not(:disabled),
body.v45-battle-active.v64-shocker-battle .ability-btn:active:not(:disabled) {
    transform:translateY(1px) scale(.97);
    filter:brightness(1.18);
}
body.v45-battle-active.v64-shocker-battle .confirm-btn,
body.v45-battle-active.v64-shocker-battle .ability-btn.primary,
body.v45-battle-active.v64-shocker-battle #ability-field-swap-confirm {
    border-color:#e8cc7f !important;
    color:#120f09 !important;
    background:linear-gradient(180deg,#f0d789,#9a742b) !important;
    text-shadow:0 1px rgba(255,255,255,.28) !important;
}
body.v45-battle-active.v64-shocker-battle .cancel-btn {
    border-color:#6f7472 !important;
    color:#cbc9bf !important;
    background:linear-gradient(180deg,#383b3a,#111313) !important;
}
body.v45-battle-active.v64-shocker-battle #v38-refresh-action {
    border-color:#54b5b5 !important;
    background:linear-gradient(180deg,#1d6f72,#092a2e) !important;
}
body.v45-battle-active.v64-shocker-battle #v38-all-slash-action {
    border-color:#c86462 !important;
    background:linear-gradient(180deg,#7e2630,#270a10) !important;
}
body.v45-battle-active.v64-shocker-battle #v38-hand-action-controls,
body.v45-battle-active.v64-shocker-battle #v42-field-card-side-actions {
    padding:5px !important;
    border:1px solid rgba(217,183,102,.3);
    background:linear-gradient(145deg,rgba(15,16,16,.88),rgba(0,0,0,.58));
    box-shadow:0 8px 18px rgba(0,0,0,.55);
    clip-path:polygon(0 0,calc(100% - 7px) 0,100% 7px,100% 100%,0 100%);
}

body.v45-battle-active.v64-shocker-battle .counter-area {
    border:1px solid var(--v64-gold) !important;
    border-left:4px solid var(--v64-enemy-bright) !important;
    border-radius:0 !important;
    color:#e8d7b0 !important;
    background:linear-gradient(115deg,rgba(80,13,21,.97),rgba(5,7,8,.97)) !important;
    box-shadow:0 12px 35px rgba(0,0,0,.78),inset 0 1px rgba(255,255,255,.07) !important;
    clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,12px 100%,0 calc(100% - 12px));
}
body.v45-battle-active.v64-shocker-battle #player-chain-menu {
    border-left-color:var(--v64-player-bright) !important;
    background:linear-gradient(115deg,rgba(5,64,70,.97),rgba(5,7,8,.97)) !important;
}
body.v45-battle-active.v64-shocker-battle .counter-area h3 { color:#f0d58c !important; }

/* ---------- キャラクター能力 / 試合メニュー / ログ / 勝敗 ---------- */
body.v45-battle-active.v64-shocker-battle #character-ability-overlay,
body.v45-battle-active.v64-shocker-battle #v37-ability-choice {
    background:
        radial-gradient(ellipse at 50% 35%,var(--ability-glow,rgba(217,183,102,.16)),transparent 34%),
        linear-gradient(118deg,rgba(67,11,20,.78),rgba(1,3,4,.96) 49%,rgba(5,56,62,.7)) !important;
    backdrop-filter:blur(10px) saturate(.8) !important;
}
body.v45-battle-active.v64-shocker-battle .ability-panel,
body.v45-battle-active.v64-shocker-battle .v37-choice-panel {
    position:relative;
    overflow:hidden;
    border:1px solid var(--ability-gem,#d9b766) !important;
    border-left:5px solid var(--ability-gem,#d9b766) !important;
    border-radius:0 !important;
    color:#eee0b9 !important;
    background:
        linear-gradient(145deg,rgba(42,32,22,.98),rgba(4,6,7,.99) 62%) !important;
    box-shadow:0 0 34px var(--ability-glow,rgba(217,183,102,.32)),0 24px 70px rgba(0,0,0,.82) !important;
    clip-path:polygon(0 0,calc(100% - 15px) 0,100% 15px,100% 100%,15px 100%,0 calc(100% - 15px));
}
body.v45-battle-active.v64-shocker-battle .ability-panel::after,
body.v45-battle-active.v64-shocker-battle .v37-choice-panel::after {
    content:"♠  SHOCKER  ♦";
    position:absolute;
    right:12px;
    top:9px;
    color:rgba(217,183,102,.38);
    font:700 7px/1 "Courier New",monospace;
    letter-spacing:.15em;
}
body.v45-battle-active.v64-shocker-battle .ability-panel-head {
    border-bottom:1px solid rgba(217,183,102,.32) !important;
}
body.v45-battle-active.v64-shocker-battle .ability-mini-portrait {
    border-radius:3px !important;
    box-shadow:0 0 12px var(--ability-glow) !important;
}
body.v45-battle-active.v64-shocker-battle #ability-stage-description {
    border:1px solid rgba(217,183,102,.18) !important;
    border-radius:0 !important;
    background:rgba(0,0,0,.34) !important;
}

body.v45-battle-active.v64-shocker-battle #v45-battle-menu-button,
body.v45-battle-active.v64-shocker-battle #v56-chain-log-open.v58-floating-log-button {
    border:1px solid rgba(217,183,102,.78) !important;
    border-radius:2px !important;
    color:#f0deb0 !important;
    background:linear-gradient(180deg,rgba(48,39,24,.98),rgba(7,8,9,.98)) !important;
    box-shadow:0 6px 17px rgba(0,0,0,.66),inset 0 1px rgba(255,255,255,.08) !important;
    font-family:"Courier New",monospace !important;
    letter-spacing:.08em !important;
    clip-path:polygon(0 0,calc(100% - 7px) 0,100% 7px,100% 100%,0 100%);
}
body.v45-battle-active.v64-shocker-battle #v56-chain-log-open.v58-floating-log-button {
    min-width:96px !important;
    min-height:34px !important;
    padding:6px 10px !important;
    border-left:3px solid var(--v64-enemy-bright) !important;
    color:#f2c5bd !important;
    background:linear-gradient(180deg,rgba(98,22,31,.98),rgba(20,5,8,.98)) !important;
    font-size:10px !important;
}
body.v45-battle-active.v64-shocker-battle .v45-menu-icon { color:var(--v64-gold) !important; }

body.v45-battle-active.v64-shocker-battle #v56-chain-log-overlay {
    background:linear-gradient(118deg,rgba(74,12,21,.86),rgba(0,0,0,.96) 56%,rgba(4,43,48,.74)) !important;
}
body.v45-battle-active.v64-shocker-battle .v56-chain-log-dialog {
    border-radius:0 !important;
    border-color:var(--v64-gold) !important;
    background:linear-gradient(145deg,#291217,#050708 68%) !important;
    clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px));
}

body.v45-battle-active.v64-shocker-battle #v43-match-result-menu {
    background:
        radial-gradient(circle at 50% 34%,rgba(217,183,102,.18),transparent 34%),
        linear-gradient(118deg,rgba(67,11,20,.84),rgba(0,0,0,.96) 51%,rgba(5,55,60,.78)) !important;
}
body.v45-battle-active.v64-shocker-battle .v43-result-card {
    border-radius:0 !important;
    border-left:5px solid var(--v43-result-color,#d9b766) !important;
    background:linear-gradient(145deg,rgba(40,30,19,.98),rgba(4,6,7,.99)) !important;
    clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,16px 100%,0 calc(100% - 16px));
}
body.v45-battle-active.v64-shocker-battle #v43-return-menu-btn {
    border-radius:2px !important;
    background:linear-gradient(#ead387,#926e28) !important;
    font-family:Georgia,"Yu Mincho",serif !important;
}

/* ---------- 選択・照準状態 ---------- */
body.v45-battle-active.v64-shocker-battle .selected-card,
body.v45-battle-active.v64-shocker-battle .v38-origin-selected {
    border-color:#ffe18a !important;
    outline:2px solid rgba(255,225,138,.78) !important;
    box-shadow:0 0 0 2px rgba(42,26,4,.76),0 0 22px rgba(255,190,62,.88),0 10px 18px rgba(0,0,0,.65) !important;
}
body.v45-battle-active.v64-shocker-battle .v38-target-available,
body.v45-battle-active.v64-shocker-battle .v38-pending-target {
    border-color:#eb726b !important;
    box-shadow:0 0 0 2px rgba(67,8,13,.72),0 0 22px rgba(235,75,69,.78) !important;
}

/* ---------- スマホ・短い画面 ---------- */
@media (max-width:700px) {
    body.v45-battle-active.v64-shocker-battle > h2 {
        padding-left:78px !important;
        padding-right:80px !important;
        font-size:14px !important;
        letter-spacing:.22em !important;
        text-indent:.22em !important;
    }
    body.v45-battle-active.v64-shocker-battle > h2::before {
        left:75px;
        content:"♠";
        font-size:9px;
    }
    body.v45-battle-active.v64-shocker-battle > h2::after {
        right:7px;
        content:"TRUMP DUEL";
        font-size:6px;
        letter-spacing:.08em;
    }
    body.v45-battle-active.v64-shocker-battle #phase-bar {
        padding-left:106px !important;
        padding-right:7px !important;
    }
    body.v45-battle-active.v64-shocker-battle #phase-bar::before {
        left:8px;
        width:88px;
        font-size:7px;
        letter-spacing:.08em;
    }
    .v64-duelist-plate {
        width:96px;
        min-height:24px;
        padding:3px 5px 3px 7px;
    }
    .v64-duelist-kicker { font-size:5px; letter-spacing:.08em; }
    .v64-duelist-name { font-size:8px; }
    .v64-duelist-role { display:none; }
    body.v45-battle-active.v64-shocker-battle .field-area > h3 {
        max-width:50%;
        padding-inline:8px !important;
        font-size:8px !important;
        letter-spacing:.06em !important;
    }
    body.v45-battle-active.v64-shocker-battle .battle-character.has-large-battle-art { opacity:.72 !important; }
}

@media (max-width:390px) {
    body.v45-battle-active.v64-shocker-battle > h2 { padding-left:70px !important; }
    body.v45-battle-active.v64-shocker-battle > h2::before { left:66px; }
    body.v45-battle-active.v64-shocker-battle #turn-info {
        min-width:64vw !important;
        padding-inline:12px !important;
        letter-spacing:.08em !important;
    }
    body.v45-battle-active.v64-shocker-battle #phase-bar {
        padding-left:84px !important;
        font-size:9px !important;
    }
    body.v45-battle-active.v64-shocker-battle #phase-bar::before {
        width:69px;
        content:"ORDER";
    }
    .v64-duelist-plate { width:84px; }
    .v64-duelist-name { font-size:7px; }
}

@media (orientation:landscape) and (max-height:500px) {
    body.v45-battle-active.v64-shocker-battle .v64-duelist-plate { width:105px; }
    body.v45-battle-active.v64-shocker-battle .v64-duelist-role { display:none; }
}

@media (prefers-reduced-motion:reduce) {
    #v64-battle-backdrop::before { animation:none !important; }
}

@supports not (color:color-mix(in srgb,#fff 50%,transparent)) {
    .v64-duelist-plate { border-color:rgba(217,183,102,.62); }
}

@keyframes v64-table-drift {
    from { transform:translate3d(-1.2%,0,0) rotate(-2deg); }
    to { transform:translate3d(1.2%,0,0) rotate(-2deg); }
}


/* SOURCE styles/timed-match.css */
/* =========================================================
   SHOCKER v65 — FIFTEEN MINUTE DUEL CLOCK
   v64の帝国式バトルテーブルへ、対局時計を一体化する。
   ========================================================= */
body.v45-battle-active.v64-shocker-battle #turn-info.v65-clock-mounted {
    position:relative !important;
    z-index:74 !important;
    display:grid !important;
    grid-template-columns:minmax(104px,1fr) minmax(126px,auto) minmax(104px,1fr) !important;
    align-items:stretch !important;
    justify-self:center !important;
    width:min(660px,calc(100vw - 18px)) !important;
    min-width:0 !important;
    min-height:30px !important;
    margin:0 !important;
    padding:2px !important;
    overflow:hidden !important;
    border:1px solid rgba(217,183,102,.72) !important;
    border-inline-width:1px !important;
    color:#eadfbf !important;
    background:
        linear-gradient(90deg,rgba(9,55,62,.9),rgba(4,7,9,.97) 31% 69%,rgba(83,13,24,.9)) !important;
    box-shadow:
        0 4px 14px rgba(0,0,0,.58),
        inset 0 1px rgba(255,239,190,.09) !important;
    clip-path:none !important;
    font-family:"Courier New","Yu Gothic",monospace !important;
    letter-spacing:0 !important;
    text-shadow:0 2px 4px #000 !important;
}

body.v45-battle-active.v64-shocker-battle #turn-info.v65-clock-mounted::before,
body.v45-battle-active.v64-shocker-battle #turn-info.v65-clock-mounted::after {
    content:"";
    position:absolute;
    top:3px;
    bottom:3px;
    width:1px;
    z-index:2;
    background:linear-gradient(transparent,rgba(255,231,160,.75),transparent);
    pointer-events:none;
}
body.v45-battle-active.v64-shocker-battle #turn-info.v65-clock-mounted::before { left:31%; }
body.v45-battle-active.v64-shocker-battle #turn-info.v65-clock-mounted::after { right:31%; }

.v65-clock-panel {
    position:relative;
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    padding:2px 12px;
    border:1px solid transparent;
    overflow:hidden;
    transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease;
}
.v65-clock-panel[data-side="opp"] {
    flex-direction:row-reverse;
    text-align:right;
}
.v65-clock-panel::before {
    content:"♦";
    flex:0 0 auto;
    color:rgba(236,213,152,.5);
    font:700 9px/1 Georgia,serif;
}
.v65-clock-panel[data-side="player"]::before { content:"♠"; }
.v65-clock-label {
    color:rgba(236,225,194,.68);
    font:700 7px/1 "Courier New",monospace;
    letter-spacing:.18em;
    white-space:nowrap;
}
.v65-clock-time {
    min-width:4.8ch;
    color:#f1e4bc;
    font:800 clamp(14px,2.25vh,19px)/1 "Courier New",monospace;
    font-variant-numeric:tabular-nums lining-nums;
    letter-spacing:.025em;
    white-space:nowrap;
}

.v65-clock-panel.is-active[data-side="player"] {
    border-color:rgba(83,205,208,.74);
    background:linear-gradient(90deg,rgba(17,104,111,.72),rgba(8,42,47,.35));
    box-shadow:inset 3px 0 #71d8d8,0 0 12px rgba(56,184,188,.3);
}
.v65-clock-panel.is-active[data-side="opp"] {
    border-color:rgba(229,93,104,.76);
    background:linear-gradient(270deg,rgba(128,26,39,.72),rgba(55,8,15,.35));
    box-shadow:inset -3px 0 #ed747b,0 0 12px rgba(202,51,65,.3);
}
.v65-clock-panel.is-active .v65-clock-time { color:#fff7d7; }
.v65-clock-panel.is-warning .v65-clock-time {
    color:#ffd36f;
    text-shadow:0 0 10px rgba(255,178,48,.6),0 2px 3px #000;
}
.v65-clock-panel.is-critical {
    border-color:#ff5a57 !important;
    background-color:rgba(109,12,17,.66) !important;
    animation:v65-clock-danger .8s steps(2,end) infinite;
}
.v65-clock-panel.is-critical .v65-clock-time,
.v65-clock-panel.is-expired .v65-clock-time { color:#ff8580; }
.v65-clock-panel.is-expired {
    border-color:#ff4541 !important;
    background:#430407 !important;
    box-shadow:inset 0 0 13px rgba(255,32,30,.38) !important;
}

.v65-clock-center {
    position:relative;
    display:grid;
    place-content:center;
    gap:1px;
    min-width:0;
    padding:1px 12px;
    text-align:center;
    background:linear-gradient(180deg,rgba(34,25,14,.72),rgba(3,5,7,.8));
}
.v65-turn-line {
    color:#e8d69f;
    font:700 clamp(7px,1.2vh,9px)/1 "Courier New",monospace;
    letter-spacing:.14em;
    white-space:nowrap;
}
body.v45-battle-active.v64-shocker-battle #turn-info #turn-count {
    color:var(--v64-gold-bright) !important;
    font-size:1.12em !important;
}
#v65-clock-state {
    color:rgba(231,219,184,.65);
    font:700 clamp(6px,1vh,8px)/1 "Courier New",monospace;
    letter-spacing:.1em;
    white-space:nowrap;
}
#turn-info[data-clock-state="player"] #v65-clock-state { color:#8ee2df; }
#turn-info[data-clock-state="opp"] #v65-clock-state { color:#f29b9f; }
#turn-info[data-clock-state="defense_chain"] #v65-clock-state {
    color:#ffe08b;
    text-shadow:0 0 8px rgba(255,194,66,.55);
}
#turn-info[data-clock-state="timeout"] #v65-clock-state { color:#ff7671; }

@keyframes v65-clock-danger {
    50% { filter:brightness(1.18); }
}

@media (max-width:700px) {
    body.v45-battle-active.v64-shocker-battle #turn-info.v65-clock-mounted {
        grid-template-columns:minmax(76px,1fr) minmax(104px,auto) minmax(76px,1fr) !important;
        width:calc(100vw - 12px) !important;
        min-height:27px !important;
        padding:1px !important;
    }
    .v65-clock-panel { gap:4px; padding:1px 6px; }
    .v65-clock-panel::before { display:none; }
    .v65-clock-label { font-size:6px; letter-spacing:.1em; }
    .v65-clock-time { font-size:clamp(12px,3.15vw,16px); }
    .v65-clock-center { padding-inline:6px; }
    .v65-turn-line { font-size:7px; letter-spacing:.08em; }
    #v65-clock-state { font-size:6px; letter-spacing:.05em; }
}

@media (max-width:390px) {
    body.v45-battle-active.v64-shocker-battle #turn-info.v65-clock-mounted {
        grid-template-columns:minmax(61px,1fr) minmax(91px,auto) minmax(61px,1fr) !important;
        min-width:0 !important;
        padding-inline:1px !important;
    }
    .v65-clock-panel { justify-content:center; padding-inline:3px; }
    .v65-clock-label { display:none; }
    .v65-clock-time { min-width:4.5ch; font-size:12px; }
    .v65-clock-center { padding-inline:3px; }
    .v65-turn-line { letter-spacing:.04em; }
    #v65-clock-state { font-size:5.5px; }
}

@media (orientation:landscape) and (max-height:500px) {
    body.v45-battle-active.v64-shocker-battle #turn-info.v65-clock-mounted {
        min-height:24px !important;
    }
    .v65-clock-time { font-size:13px; }
    .v65-clock-panel { padding-block:0; }
}

@media (prefers-reduced-motion:reduce) {
    .v65-clock-panel.is-critical { animation:none; }
}


/* SOURCE styles/cpu-abilities-revolution.css */
:root {
        --v66-revolution-red: #ff273f;
        --v66-revolution-dark: #330007;
        --v66-revolution-gold: #ffd56a;
        --v66-revolution-ink: #090306;
    }

    #v66-revolution-frame,
    #v66-revolution-banner {
        display: none;
        pointer-events: none;
    }

    body.v45-battle-active.v66-revolution-active #v66-revolution-frame {
        position: fixed;
        z-index: 38;
        inset: 7px;
        display: block;
        overflow: hidden;
        border: 3px solid var(--v66-revolution-red);
        border-radius: 13px;
        box-shadow:
            0 0 0 1px rgba(255, 221, 116, .78),
            0 0 24px rgba(255, 25, 55, .88),
            inset 0 0 34px rgba(255, 25, 55, .45);
        animation: v66-revolution-frame-pulse 1.35s ease-in-out infinite alternate;
    }

    body.v45-battle-active.v66-revolution-active #v66-revolution-frame::before,
    body.v45-battle-active.v66-revolution-active #v66-revolution-frame::after {
        position: absolute;
        inset: -30%;
        content: "";
    }

    body.v45-battle-active.v66-revolution-active #v66-revolution-frame::before {
        background:
            repeating-linear-gradient(
                118deg,
                transparent 0 54px,
                rgba(255, 28, 56, .075) 55px 82px,
                rgba(255, 213, 106, .055) 83px 86px
            );
        animation: v66-revolution-drift 8s linear infinite;
    }

    body.v45-battle-active.v66-revolution-active #v66-revolution-frame::after {
        inset: 0;
        background:
            linear-gradient(90deg, rgba(255, 16, 45, .18), transparent 8%, transparent 92%, rgba(255, 16, 45, .18)),
            linear-gradient(0deg, rgba(255, 16, 45, .16), transparent 10%, transparent 90%, rgba(255, 16, 45, .16));
    }

    body.v45-battle-active.v66-revolution-active #v66-revolution-banner {
        position: fixed;
        z-index: 39;
        top: clamp(60px, 8.4vh, 88px);
        left: 50%;
        display: grid;
        min-width: min(520px, calc(100vw - 36px));
        transform: translateX(-50%);
        place-items: center;
        padding: 8px 24px 9px;
        color: #fff9df;
        border: 1px solid rgba(255, 224, 126, .92);
        border-left: 5px solid var(--v66-revolution-red);
        border-right: 5px solid var(--v66-revolution-red);
        border-radius: 8px;
        background:
            linear-gradient(90deg, rgba(32, 0, 6, .94), rgba(123, 0, 20, .97) 42%, rgba(50, 0, 8, .94));
        box-shadow:
            0 0 0 2px rgba(75, 0, 12, .85),
            0 8px 28px rgba(0, 0, 0, .74),
            0 0 26px rgba(255, 30, 57, .58);
        text-align: center;
        isolation: isolate;
    }

    body.v45-battle-active.v66-revolution-active #v66-revolution-banner::before {
        position: absolute;
        z-index: -1;
        inset: 3px;
        content: "";
        border: 1px solid rgba(255, 213, 106, .38);
        border-radius: 4px;
    }

    #v66-revolution-title {
        color: var(--v66-revolution-gold);
        font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
        font-size: clamp(18px, 2.15vw, 28px);
        font-weight: 900;
        line-height: 1;
        letter-spacing: .22em;
        text-shadow:
            0 2px 0 #390008,
            0 0 13px rgba(255, 210, 88, .55);
    }

    #v66-revolution-title strong {
        color: #fff;
        letter-spacing: .08em;
    }

    #v66-revolution-order {
        margin-top: 5px;
        color: #ffe8ac;
        font-size: clamp(10px, 1.08vw, 13px);
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: .05em;
    }

    body.v45-battle-active.v66-revolution-active #phase-bar {
        border-color: rgba(255, 69, 79, .96) !important;
        box-shadow:
            0 0 0 1px rgba(255, 213, 106, .62),
            0 0 19px rgba(255, 25, 55, .54) !important;
    }

    body.v45-battle-active.v66-revolution-active #phase-bar::before {
        display: inline-flex;
        align-items: center;
        min-height: 20px;
        margin-right: 9px;
        padding: 2px 8px;
        content: "REVOLUTION";
        color: #fff9de;
        border: 1px solid #ffd56a;
        border-radius: 3px;
        background: #a6001d;
        box-shadow: 0 0 12px rgba(255, 35, 62, .65);
        font-family: Impact, Haettenschweiler, sans-serif;
        font-size: 11px;
        letter-spacing: .12em;
        vertical-align: middle;
    }

    body.v45-battle-active.v66-revolution-active #revolution-status {
        display: block !important;
        min-height: 25px !important;
        max-height: none !important;
        padding: 4px 12px !important;
        color: #fff7d6 !important;
        border: 1px solid #ffd56a !important;
        border-radius: 5px !important;
        background: linear-gradient(90deg, #51000c, #bb0a26, #51000c) !important;
        box-shadow: 0 0 15px rgba(255, 36, 63, .62) !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        letter-spacing: .08em !important;
    }

    body.v45-battle-active.v66-revolution-active .field-area {
        border-color: rgba(255, 61, 77, .62) !important;
        box-shadow:
            inset 0 0 34px rgba(140, 0, 20, .15),
            0 0 17px rgba(255, 21, 52, .18) !important;
    }

    body.v45-battle-active.v66-revolution-active #player-field,
    body.v45-battle-active.v66-revolution-active #opponent-field {
        border-color: rgba(255, 91, 99, .88) !important;
        background:
            radial-gradient(circle at 50% 50%, rgba(128, 0, 19, .24), transparent 70%),
            linear-gradient(180deg, rgba(48, 0, 7, .22), rgba(8, 1, 3, .18)) !important;
        box-shadow:
            inset 0 0 30px rgba(255, 25, 50, .19),
            0 0 17px rgba(255, 37, 59, .28) !important;
    }

    body.v45-battle-active.v66-revolution-active #player-field::before,
    body.v45-battle-active.v66-revolution-active #opponent-field::before {
        position: absolute;
        z-index: 4;
        top: 5px;
        left: 50%;
        padding: 2px 8px;
        transform: translateX(-50%);
        content: "↕ 強さ反転中";
        color: #ffe7a5;
        border: 1px solid rgba(255, 213, 106, .55);
        border-radius: 999px;
        background: rgba(82, 0, 11, .88);
        box-shadow: 0 0 10px rgba(255, 30, 58, .45);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .08em;
        white-space: nowrap;
    }

    body.v45-battle-active.v66-revolution-active #player-field,
    body.v45-battle-active.v66-revolution-active #opponent-field {
        position: relative;
    }

    body.v45-battle-active.v66-revolution-active .deck-pile {
        border-color: var(--v66-revolution-gold) !important;
        box-shadow:
            0 0 0 2px rgba(164, 0, 25, .72),
            0 0 15px rgba(255, 31, 55, .52) !important;
    }

    body.v45-battle-active.v66-revolution-active .deck-label::after {
        margin-left: 5px;
        content: "↕";
        color: #ffcc65;
        font-weight: 900;
    }

    body.v45-battle-active.v66-revolution-active .card:not(.card-back) {
        box-shadow:
            0 0 0 1px rgba(255, 197, 92, .42),
            0 0 10px rgba(255, 40, 64, .22);
    }

    body.v45-battle-active.v66-opponent-lily-lock #v38-hand-action-controls {
        display: none !important;
    }

    #opponent-battle-character[data-v66-ai-ability="active"]::after {
        position: absolute;
        right: -5px;
        bottom: -5px;
        min-width: 28px;
        padding: 2px 5px;
        content: "AI";
        color: #fff5ce;
        border: 1px solid #ffd56a;
        border-radius: 999px;
        background: #780018;
        box-shadow: 0 0 10px rgba(255, 36, 64, .52);
        font-size: 9px;
        font-weight: 900;
        letter-spacing: .08em;
    }

    #opponent-battle-character.v66-ai-awakened {
        box-shadow:
            0 0 0 2px rgba(255, 214, 106, .72),
            0 0 19px var(--character-glow, rgba(255, 62, 88, .55)) !important;
    }

    @keyframes v66-revolution-frame-pulse {
        from {
            border-color: #d7062b;
            filter: saturate(.92);
        }
        to {
            border-color: #ff6a66;
            filter: saturate(1.23);
        }
    }

    @keyframes v66-revolution-drift {
        from { transform: translate3d(-8%, -4%, 0); }
        to { transform: translate3d(8%, 4%, 0); }
    }

    @media (max-width: 760px) {
        body.v45-battle-active.v66-revolution-active #v66-revolution-banner {
            top: 48px;
            min-width: calc(100vw - 26px);
            padding: 6px 13px 7px;
        }

        #v66-revolution-title {
            font-size: 17px;
        }

        #v66-revolution-order {
            font-size: 9px;
        }

        body.v45-battle-active.v66-revolution-active #player-field::before,
        body.v45-battle-active.v66-revolution-active #opponent-field::before {
            font-size: 8px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        body.v45-battle-active.v66-revolution-active #v66-revolution-frame,
        body.v45-battle-active.v66-revolution-active #v66-revolution-frame::before {
            animation: none !important;
        }
    }


/* SOURCE styles/cinematic-effects.css */
/* SHOCKER v67 — CINEMATIC CARD FX / LIVING BATTLEFIELD */
body.v45-battle-active.v64-shocker-battle{
 --v67-px:0px;--v67-py:0px;--v67-gold:#ffe08a;--v67-fire:#ff5525;--v67-cyan:#52e5e7
}

/* The atmosphere lives between the v64 backdrop (z:0) and the play field (z:40). */
#v67-battle-atmosphere{display:none;position:fixed;inset:0;z-index:2;overflow:hidden;contain:strict;isolation:isolate;pointer-events:none}
body.v45-battle-active.v64-shocker-battle #v67-battle-atmosphere{display:block}
#v67-battle-atmosphere>div{position:absolute;pointer-events:none;will-change:transform,opacity,filter}
.v67-aurora{inset:-18%;background:radial-gradient(ellipse at 14% 30%,rgba(211,43,65,.22),transparent 31%),radial-gradient(ellipse at 86% 70%,rgba(30,181,192,.20),transparent 33%),radial-gradient(ellipse at 50% 48%,rgba(245,199,90,.12),transparent 28%);filter:blur(25px) saturate(1.25);animation:v67Aurora 18s ease-in-out infinite alternate}
.v67-energy-river{inset:-35%;opacity:.29;background:repeating-linear-gradient(112deg,transparent 0 9%,rgba(255,235,174,.12) 9.2% 9.45%,transparent 9.7% 18%),linear-gradient(112deg,transparent 36%,rgba(255,72,82,.12) 45%,rgba(255,225,135,.24) 49.8%,rgba(63,221,228,.12) 55%,transparent 64%);animation:v67EnergyRiver 15s linear infinite}
.v67-depth-grid{inset:37% -20% -46%;opacity:.17;background:linear-gradient(rgba(234,206,132,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(234,206,132,.18) 1px,transparent 1px);background-size:52px 34px;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 22%,transparent 88%);mask-image:linear-gradient(to bottom,transparent,#000 22%,transparent 88%);transform:perspective(420px) rotateX(62deg);transform-origin:50% 0;animation:v67Grid 9s linear infinite}
.v67-suit-orbit{left:50%;top:50%;width:min(72vw,920px);aspect-ratio:1;translate:-50% -50%;display:grid;place-items:center;border:1px solid rgba(236,207,130,.08);border-radius:50%;color:rgba(255,247,215,.06);font:900 clamp(52px,8vw,112px)/1 Georgia,serif;letter-spacing:.74em;text-indent:.74em;text-shadow:0 0 25px rgba(255,224,130,.3);animation:v67Orbit 36s linear infinite}
.v67-suit-orbit:before,.v67-suit-orbit:after{content:"";position:absolute;inset:11%;border:1px dashed rgba(229,199,121,.08);border-radius:50%}.v67-suit-orbit:after{inset:26%;border-style:solid}
.v67-light-sweep{inset:-20% auto -20% -32%;width:25%;opacity:0;background:linear-gradient(90deg,transparent,rgba(255,246,212,.16),transparent);filter:blur(12px);transform:skewX(-17deg);animation:v67Sweep 11s ease-in-out infinite}
.v67-vignette{inset:0;background:radial-gradient(ellipse at center,transparent 42%,rgba(0,0,0,.38) 88%,rgba(0,0,0,.72)),repeating-linear-gradient(0deg,transparent 0 5px,rgba(255,255,255,.012) 6px)}
.v67-mote{position:absolute!important;left:var(--x);top:var(--y);width:var(--size);height:var(--size);border-radius:50%;opacity:0;background:var(--tone);box-shadow:0 0 8px var(--tone),0 0 18px var(--tone);animation:v67Mote var(--dur) linear var(--delay) infinite}
#v67-battle-atmosphere[data-turn=player] .v67-aurora{filter:blur(25px) saturate(1.4) hue-rotate(8deg)}
#v67-battle-atmosphere[data-turn=opp] .v67-aurora{filter:blur(25px) saturate(1.4) hue-rotate(-11deg)}
body.v66-revolution-active .v67-aurora{background:radial-gradient(ellipse at 22% 42%,rgba(255,22,36,.45),transparent 34%),radial-gradient(ellipse at 78% 58%,rgba(255,154,35,.32),transparent 36%),radial-gradient(circle at 50% 50%,rgba(255,236,143,.23),transparent 30%);animation-duration:4.2s}
body.v66-revolution-active .v67-depth-grid{opacity:.35;filter:hue-rotate(-45deg) saturate(2);animation-duration:3.2s}
body.v67-atmosphere-impact .v67-aurora{animation:v67AtmosphereImpact .56s ease-out both}
body.v45-battle-active.v64-shocker-battle .field-area:before{animation:v67FieldCurrent 6.5s ease-in-out infinite}
body.v45-battle-active.v64-shocker-battle .deck-pile{animation:v67DeckBreath 4.6s ease-in-out infinite}

/* The v60 motion classes are retained as hooks and retimed for a heavier, smoother slide. */
body.v45-battle-active #hand-zone>.card,body.v45-battle-active #player-field>.card,body.v45-battle-active #opponent-field>.card,body.v45-battle-active .opponent-mini-card{transition:transform .34s cubic-bezier(.16,1,.3,1),filter .28s ease,box-shadow .28s ease,opacity .26s ease!important}
body.v45-battle-active .card.v60-enter-hand{animation:v67DealHand .84s cubic-bezier(.12,.82,.18,1) both!important}
body.v45-battle-active .card.v60-enter-player-field{animation:v67DealPlayer .82s cubic-bezier(.12,.82,.18,1) both!important}
body.v45-battle-active .card.v60-enter-opponent-field{animation:v67DealEnemy .82s cubic-bezier(.12,.82,.18,1) both!important}
body.v45-battle-active .opponent-mini-card.v60-enter-opponent-hand{animation:v67DealEnemyHand .72s cubic-bezier(.12,.82,.18,1) both!important}
body.v45-battle-active .card.v60-card-flip{animation:v67Flip .72s cubic-bezier(.16,.84,.2,1) both!important}
body.v45-battle-active .card.v60-selection-pulse{animation:v67Select .62s cubic-bezier(.16,.86,.22,1) both!important}
@media(hover:hover) and (pointer:fine){body.v45-battle-active #hand-zone>.card:hover:not(.selected-card),body.v45-battle-active #player-field>.card:hover:not(.selected-card),body.v45-battle-active #opponent-field>.card:hover:not(.selected-card){transform:perspective(700px) translateY(-9px) rotateX(2deg) rotateZ(-1deg) scale(1.065)!important;filter:brightness(1.15) saturate(1.13) drop-shadow(0 0 7px rgba(255,225,140,.48))}}

/* Everything below is visual-only and cannot catch a click. */
#v67-fx-layer{position:fixed;inset:0;z-index:2147481800;overflow:hidden;contain:strict;isolation:isolate;pointer-events:none}
.v67-card-glint,.v67-selection-corona,.v67-flip-sweep,.v67-impact-core,.v67-impact-ring,.v67-impact-rays,.v67-impact-shard{position:absolute;pointer-events:none;will-change:transform,opacity,filter}
.v67-card-glint{border:1px solid rgba(255,233,169,.74);border-radius:7px;overflow:hidden;box-shadow:0 0 14px rgba(255,202,81,.46);animation:v67Glint .72s ease-out both}.v67-card-glint:after{content:"";position:absolute;inset:-30% -90%;background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.94) 49%,rgba(255,213,108,.46) 53%,transparent 62%);animation:v67GlintSweep .62s cubic-bezier(.2,.7,.2,1) both}
.v67-selection-corona{width:36px;height:36px;margin:-18px 0 0 -18px;border:2px solid #ffe49a;border-radius:50%;box-shadow:0 0 8px #fff,0 0 26px #ffb52e,0 0 58px rgba(255,92,18,.56);animation:v67Corona .68s ease-out both}
.v67-flip-sweep{width:8px;height:var(--card-h,86px);margin-left:-4px;border-radius:50%;background:#fff9d6;box-shadow:0 0 12px #fff,0 0 34px #ffd257,0 0 68px #ff7024;animation:v67FlipSweep .68s cubic-bezier(.14,.8,.2,1) both}
.v67-impact-core{width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:50%;background:radial-gradient(circle,#fff 0 9%,#fff2a8 10% 20%,#ff7a21 31%,#d51c24 46%,transparent 70%);box-shadow:0 0 28px #fff4ad,0 0 68px #ff4c18,0 0 120px rgba(255,34,38,.74);mix-blend-mode:screen;animation:v67ImpactCore .62s cubic-bezier(.1,.74,.16,1) both}
.v67-impact-ring{width:38px;height:38px;margin:-19px 0 0 -19px;border:3px solid rgba(255,240,173,.96);border-radius:50%;box-shadow:0 0 16px #ffcc54,inset 0 0 12px #fff;animation:v67ImpactRing .72s ease-out var(--delay,0s) both}
.v67-impact-rays{width:310px;height:310px;margin:-155px 0 0 -155px;border-radius:50%;opacity:0;background:repeating-conic-gradient(from 7deg,rgba(255,247,209,.94) 0 1.2deg,transparent 1.5deg 10deg);-webkit-mask-image:radial-gradient(circle,transparent 0 13%,#000 22% 63%,transparent 76%);mask-image:radial-gradient(circle,transparent 0 13%,#000 22% 63%,transparent 76%);mix-blend-mode:screen;animation:v67ImpactRays .7s cubic-bezier(.1,.72,.2,1) both}
.v67-impact-shard{left:var(--x);top:var(--y);width:var(--w,4px);height:var(--h,30px);margin:calc(var(--h,30px)/-2) 0 0 calc(var(--w,4px)/-2);border-radius:99px;background:linear-gradient(to top,transparent,#fff8cf 40%,#ff8a24 74%,transparent);box-shadow:0 0 7px #ffc04b;transform-origin:50% 50%;animation:v67Shard .72s cubic-bezier(.1,.74,.2,1) var(--delay,0s) both}
body.v67-hit-shake .field-area,body.v67-special-clash-active .field-area{animation:v67Shake .38s linear both!important}
body.v67-special-bomb-active .field-area{animation:v67BombShake .64s linear both!important}
body.v67-special-revolution-active .field-area{animation:v67RevolutionSurge .76s cubic-bezier(.15,.8,.2,1) both!important}
body.v67-special-joker-active .field-area{animation:v67JokerDistort .82s steps(2,end) both!important}

/* Card type signature FX. */
.v67-special{--special:#ffe08b;position:absolute;inset:0;overflow:hidden;opacity:0;color:var(--special);animation:v67SpecialLife var(--life,1.5s) ease-out both}
.v67-special:before{content:"";position:absolute;inset:-20%;opacity:.64;background:radial-gradient(circle at center,var(--special),transparent 12%,transparent 25%),repeating-conic-gradient(from 3deg at 50% 50%,transparent 0 8deg,var(--special) 8.2deg 8.7deg,transparent 9deg 17deg);mix-blend-mode:screen;animation:v67SpecialRays var(--life,1.5s) cubic-bezier(.12,.76,.2,1) both}
.v67-special:after{content:"";position:absolute;inset:0;opacity:0;background:radial-gradient(circle at center,rgba(255,255,255,.76),var(--special) 8%,transparent 46%);animation:v67SpecialFlash .62s ease-out both}
.v67-special-glyph{position:absolute;left:50%;top:50%;translate:-50% -50%;font:900 clamp(110px,31vw,430px)/1 Georgia,serif;letter-spacing:.05em;text-indent:.05em;opacity:0;text-shadow:0 0 12px #fff,0 0 38px currentColor,0 0 90px currentColor;filter:blur(8px);animation:v67Glyph var(--life,1.5s) cubic-bezier(.12,.82,.18,1) both}
.v67-special-ring{position:absolute;left:50%;top:50%;width:42px;height:42px;translate:-50% -50%;border:3px solid currentColor;border-radius:50%;opacity:0;box-shadow:0 0 18px currentColor,inset 0 0 14px currentColor;animation:v67SpecialRing 1s ease-out var(--delay,0s) both}
.v67-special-particle{position:absolute;left:50%;top:50%;width:var(--size,5px);height:calc(var(--size,5px)*4.8);margin:calc(var(--size,5px)*-2.4) 0 0 calc(var(--size,5px)/-2);border-radius:99px;background:linear-gradient(transparent,#fff 38%,currentColor 65%,transparent);box-shadow:0 0 8px currentColor;transform-origin:50% 50%;animation:v67SpecialParticle 1.05s cubic-bezier(.08,.72,.2,1) var(--delay,0s) both}
.v67-special-onecard{--special:#dff5ff}.v67-special-pair{--special:#ffbd48}.v67-special-clash{--special:#ff503a}.v67-special-allslash{--special:#69ff9e}.v67-special-bomb{--special:#ff53bc}.v67-special-revolution{--special:#ff3a32}.v67-special-joker{--special:#b996ff}.v67-special-ability{--special:#62e8ff}.v67-special-victory{--special:#ffe07a}.v67-special-defeat{--special:#8da2b7}
.v67-special-bomb:before{animation-name:v67BombRays}.v67-special-revolution:before{animation-name:v67RevolutionRays}.v67-special-joker:before{animation-name:v67JokerRays}.v67-special-joker .v67-special-glyph{animation-name:v67JokerGlyph}.v67-special-allslash .v67-special-glyph{font-size:clamp(92px,24vw,340px)}
#duel-cinematic.show .duel-panel{backdrop-filter:blur(4px) saturate(1.18);box-shadow:0 0 54px rgba(0,0,0,.9),0 0 90px currentColor!important}
#duel-cinematic.show .duel-main{text-shadow:0 3px 0 #000,0 0 12px #fff,0 0 30px currentColor,0 0 72px currentColor!important}
#duel-cinematic.show.type-bomb .duel-vignette,#duel-cinematic.show.type-revolution .duel-vignette,#duel-cinematic.show.type-joker .duel-vignette{filter:saturate(1.38) contrast(1.09)}

@keyframes v67Aurora{0%{transform:translate3d(calc(var(--v67-px) - 2%),calc(var(--v67-py) - 1%),0) scale(1.03) rotate(-1deg);opacity:.74}55%{transform:translate3d(calc(var(--v67-px) + 1.5%),calc(var(--v67-py) + 1%),0) scale(1.09) rotate(1deg);opacity:1}100%{transform:translate3d(calc(var(--v67-px) + 3%),calc(var(--v67-py) - .5%),0) scale(1.05);opacity:.82}}
@keyframes v67EnergyRiver{from{transform:translate3d(-3%,-1%,0) rotate(-2deg);background-position:0 0,0 0}to{transform:translate3d(3%,1%,0) rotate(-2deg);background-position:260px 0,0 0}}
@keyframes v67Grid{from{background-position:0 0,0 0}to{background-position:0 68px,52px 0}}@keyframes v67Orbit{to{transform:rotate(360deg)}}
@keyframes v67Sweep{0%,68%{opacity:0;transform:translateX(0) skewX(-17deg)}74%{opacity:.65}88%,100%{opacity:0;transform:translateX(610%) skewX(-17deg)}}
@keyframes v67Mote{0%{opacity:0;transform:translate3d(0,18px,0) scale(.4)}14%{opacity:.7}70%{opacity:.35}100%{opacity:0;transform:translate3d(var(--drift),-110px,0) scale(1.35)}}
@keyframes v67AtmosphereImpact{0%{opacity:.6;filter:blur(25px) brightness(1)}16%{opacity:1;filter:blur(15px) brightness(2.4) saturate(1.8)}100%{opacity:.82;filter:blur(25px) brightness(1)}}
@keyframes v67FieldCurrent{0%,100%{opacity:.45;filter:brightness(.8);background-position:0 0}50%{opacity:1;filter:brightness(1.35);background-position:38vw 0}}@keyframes v67DeckBreath{0%,100%{filter:drop-shadow(0 8px 10px rgba(0,0,0,.48)) brightness(.96)}50%{filter:drop-shadow(0 8px 14px rgba(221,181,80,.42)) brightness(1.08)}}
@keyframes v67DealHand{0%{opacity:0;transform:perspective(850px) translate3d(145px,92px,-120px) rotateX(20deg) rotateY(82deg) rotateZ(16deg) scale(.48);filter:blur(5px) brightness(2)}45%{opacity:1;transform:perspective(850px) translate3d(-16px,-21px,24px) rotateX(-4deg) rotateY(-12deg) rotateZ(-4deg) scale(1.13);filter:blur(0) brightness(1.4)}68%{transform:perspective(850px) translate3d(6px,5px,0) rotateX(2deg) rotateY(4deg) rotateZ(1.5deg) scale(.985)}84%{transform:perspective(850px) translate3d(-2px,-3px,0) scale(1.025)}100%{opacity:1;transform:perspective(850px) translate3d(0,0,0) scale(1);filter:none}}
@keyframes v67DealPlayer{0%{opacity:0;transform:perspective(900px) translate3d(-170px,112px,-130px) rotateX(52deg) rotateY(-78deg) rotateZ(-19deg) scale(.44);filter:blur(5px) brightness(2)}48%{opacity:1;transform:perspective(900px) translate3d(13px,-14px,18px) rotateX(-7deg) rotateY(10deg) rotateZ(4deg) scale(1.14);filter:blur(0) brightness(1.45)}72%{transform:perspective(900px) translate3d(-5px,5px,0) rotateX(3deg) rotateY(-4deg) rotateZ(-1.5deg) scale(.98)}87%{transform:perspective(900px) translate3d(2px,-2px,0) scale(1.02)}100%{opacity:1;transform:perspective(900px) translate3d(0,0,0) scale(1);filter:none}}
@keyframes v67DealEnemy{0%{opacity:0;transform:perspective(900px) translate3d(170px,-112px,-130px) rotateX(-52deg) rotateY(78deg) rotateZ(19deg) scale(.44);filter:blur(5px) brightness(2)}48%{opacity:1;transform:perspective(900px) translate3d(-13px,14px,18px) rotateX(7deg) rotateY(-10deg) rotateZ(-4deg) scale(1.14);filter:blur(0) brightness(1.45)}72%{transform:perspective(900px) translate3d(5px,-5px,0) rotateX(-3deg) rotateY(4deg) rotateZ(1.5deg) scale(.98)}87%{transform:perspective(900px) translate3d(-2px,2px,0) scale(1.02)}100%{opacity:1;transform:perspective(900px) translate3d(0,0,0) scale(1);filter:none}}
@keyframes v67DealEnemyHand{0%{opacity:0;transform:perspective(700px) translate3d(0,-68px,-80px) rotateX(-32deg) rotateZ(-18deg) scale(.5);filter:blur(4px) brightness(1.8)}55%{opacity:1;transform:perspective(700px) translate3d(0,9px,8px) rotateX(5deg) rotateZ(4deg) scale(1.13);filter:blur(0) brightness(1.28)}78%{transform:translate3d(0,-3px,0) rotateZ(-1deg) scale(.98)}100%{opacity:1;transform:none;filter:none}}
@keyframes v67Flip{0%{transform:perspective(900px) rotateY(0) translateY(0) scale(1);filter:brightness(1)}42%{transform:perspective(900px) rotateY(88deg) translateY(-12px) scale(1.14);filter:brightness(2.4) drop-shadow(0 0 20px #ffe38a)}55%{transform:perspective(900px) rotateY(274deg) translateY(-12px) scale(1.14);filter:brightness(2.4) drop-shadow(0 0 20px #ffe38a)}82%{transform:perspective(900px) rotateY(365deg) translateY(2px) scale(.98)}100%{transform:perspective(900px) rotateY(360deg) translateY(0) scale(1);filter:none}}@keyframes v67Select{0%{transform:translateY(0) scale(1)}34%{transform:translateY(-13px) rotateZ(-2deg) scale(1.15);filter:brightness(1.65) drop-shadow(0 0 19px #ffd55d)}68%{transform:translateY(-4px) rotateZ(1deg) scale(1.03)}100%{transform:translateY(0) scale(1);filter:none}}
@keyframes v67Glint{0%{opacity:0;transform:scale(.7) rotate(-5deg)}25%{opacity:1;transform:scale(1.05) rotate(1deg)}100%{opacity:0;transform:scale(1.22) rotate(2deg)}}@keyframes v67GlintSweep{from{transform:translateX(-48%)}to{transform:translateX(48%)}}@keyframes v67Corona{0%{opacity:1;transform:scale(.2)}55%{opacity:.9;transform:scale(4.8) rotate(24deg)}100%{opacity:0;transform:scale(7.2) rotate(50deg)}}@keyframes v67FlipSweep{0%{opacity:0;transform:translateX(-18px) scaleY(.35)}30%{opacity:1}100%{opacity:0;transform:translateX(18px) scaleY(1.4)}}
@keyframes v67ImpactCore{0%{opacity:0;transform:scale(.08)}20%{opacity:1;transform:scale(1.6) rotate(18deg)}100%{opacity:0;transform:scale(7.2) rotate(86deg)}}@keyframes v67ImpactRing{0%{opacity:0;transform:scale(.15)}18%{opacity:1}100%{opacity:0;transform:scale(9.5);border-width:1px}}@keyframes v67ImpactRays{0%{opacity:0;transform:scale(.12) rotate(-22deg)}24%{opacity:1}100%{opacity:0;transform:scale(1.52) rotate(34deg)}}@keyframes v67Shard{0%{opacity:0;transform:rotate(var(--angle)) translateY(0) scaleY(.2)}18%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateY(calc(var(--distance)*-1)) scaleY(1.4)}}
@keyframes v67Shake{0%,100%{transform:none}14%{transform:translate3d(-5px,2px,0)}29%{transform:translate3d(6px,-3px,0)}46%{transform:translate3d(-4px,-1px,0)}64%{transform:translate3d(3px,2px,0)}82%{transform:translate3d(-1px,0,0)}}@keyframes v67BombShake{0%,100%{transform:none;filter:none}8%{transform:scale(.992);filter:brightness(.65)}18%{transform:scale(1.016) translate3d(-7px,3px,0);filter:brightness(1.7)}34%{transform:translate3d(8px,-4px,0)}52%{transform:translate3d(-5px,2px,0)}72%{transform:translate3d(3px,-1px,0)}}@keyframes v67RevolutionSurge{0%{transform:none}22%{transform:perspective(700px) rotateX(2deg) scale(1.018);filter:brightness(1.5) saturate(1.8)}54%{transform:perspective(700px) rotateX(-1deg) scale(.995)}100%{transform:none;filter:none}}@keyframes v67JokerDistort{0%,100%{transform:none;filter:none}18%{transform:translateX(-4px) skewX(-1deg);filter:contrast(1.6) hue-rotate(32deg)}34%{transform:translateX(5px) skewX(1deg);filter:invert(.12) saturate(2)}52%{transform:translateX(-2px);filter:contrast(1.3)}76%{transform:translateX(2px)}}
@keyframes v67SpecialLife{0%{opacity:0}5%,62%{opacity:1}100%{opacity:0}}@keyframes v67SpecialRays{0%{transform:scale(.12) rotate(-20deg);opacity:0}22%{opacity:.38}100%{transform:scale(1.45) rotate(38deg);opacity:0}}@keyframes v67SpecialFlash{0%{opacity:.92}10%{opacity:.08}22%{opacity:.34}100%{opacity:0}}@keyframes v67Glyph{0%{opacity:0;transform:scale(.2) rotate(-13deg);filter:blur(16px)}18%{opacity:.34;filter:blur(0)}58%{opacity:.12;transform:scale(1.04) rotate(1deg)}100%{opacity:0;transform:scale(1.38) rotate(5deg);filter:blur(4px)}}@keyframes v67SpecialRing{0%{opacity:0;transform:scale(.15)}16%{opacity:1}100%{opacity:0;transform:scale(16);border-width:1px}}@keyframes v67SpecialParticle{0%{opacity:0;transform:rotate(var(--angle)) translateY(0) scaleY(.2)}16%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateY(calc(var(--distance)*-1)) scaleY(1.3)}}
@keyframes v67BombRays{0%{opacity:0;transform:scale(.05);filter:blur(8px)}18%{opacity:.58;filter:blur(0)}100%{opacity:0;transform:scale(1.7) rotate(28deg);filter:blur(3px)}}@keyframes v67RevolutionRays{0%{opacity:0;transform:scaleX(.1) rotate(-32deg)}20%{opacity:.55}100%{opacity:0;transform:scale(1.65) rotate(46deg)}}@keyframes v67JokerRays{0%{opacity:0;transform:scale(.2)}25%{opacity:.42;transform:scale(.72) rotate(-18deg);filter:invert(1)}42%{transform:scale(.9) rotate(14deg);filter:invert(0)}100%{opacity:0;transform:scale(1.5) rotate(-28deg)}}@keyframes v67JokerGlyph{0%{opacity:0;transform:scale(1.8) rotate(22deg);filter:blur(14px) invert(1)}24%{opacity:.38;transform:scale(.72) rotate(-8deg);filter:blur(0)}38%{transform:scale(.86) rotate(4deg);filter:invert(1)}100%{opacity:0;transform:scale(1.22) rotate(-3deg);filter:blur(5px)}}
body.v67-paused #v67-battle-atmosphere *,body.v67-paused #v67-battle-atmosphere *:before,body.v67-paused #v67-battle-atmosphere *:after{animation-play-state:paused!important}
@media(max-width:700px){.v67-suit-orbit{width:98vw;opacity:.52}.v67-depth-grid{opacity:.12}.v67-impact-rays{width:240px;height:240px;margin:-120px 0 0 -120px}}
@media(prefers-reduced-motion:reduce){#v67-battle-atmosphere *,.field-area:before,.deck-pile{animation:none!important}body.v45-battle-active .card,body.v45-battle-active .opponent-mini-card,#v67-fx-layer *{animation-duration:.12s!important;transition-duration:.12s!important}}


/* SOURCE styles/motion.css */
/* SHOCKER v68 — physical card travel, deck return and player-turn fanfare */

/* Cards are hidden before their fixed visual proxy starts, preventing a one-frame teleport. */
body.v45-battle-active .card.v68-await-flight,
body.v45-battle-active .opponent-mini-card.v68-await-flight{
    opacity:0!important;
    visibility:hidden!important;
    animation:none!important;
    transition:none!important;
}
html.v68-card-flight-active .v60-card-arrival-flash,
html.v68-card-flight-active .v67-card-glint{
    opacity:0!important;
    animation:none!important;
}

#v68-motion-layer{
    position:fixed;
    inset:0;
    z-index:2147482050;
    overflow:hidden;
    contain:strict;
    isolation:isolate;
    pointer-events:none;
}

/* A single paper card carries the movement; no glow/trail/landing burst. */
.v68-flight-card{
    position:fixed!important;
    z-index:12!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    pointer-events:none!important;
    backface-visibility:hidden;
    transform-origin:50% 50%;
    will-change:transform,opacity;
    box-shadow:0 8px 15px rgba(0,0,0,.42)!important;
}
/* Retired decorative classes are harmless if an older pending node survives. */
.v68-flight-ghost,.v68-flight-beam,.v68-land-core,.v68-land-ring,
.v68-land-rays,.v68-suit-spark,.v68-deck-vortex,.v68-motion-label,
.v60-card-arrival-flash,.v67-card-glint{display:none!important;animation:none!important;}
body.v45-battle-active .card.v68-land,
body.v45-battle-active .card.v68-field-land,
body.v45-battle-active .card.v60-enter-hand,
body.v45-battle-active .card.v60-enter-player-field,
body.v45-battle-active .card.v60-enter-opponent-field,
body.v45-battle-active .opponent-mini-card.v60-enter-opponent-hand{animation:none!important;}

#v68-turn-arrival{
    --turn-color:#54e6ea;
    position:fixed;
    inset:0;
    z-index:2147481950;
    display:none;
    overflow:hidden;
    pointer-events:none;
    isolation:isolate;
    color:#fff6cf;
    font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif;
}
#v68-turn-arrival.show{
    display:block;
    animation:v68TurnLife 1.72s linear both;
}
#v68-turn-arrival:before{
    content:"";
    position:absolute;
    inset:-30%;
    background:repeating-conic-gradient(from 90deg at 50% 52%,transparent 0 4deg,rgba(101,238,242,.18) 4.2deg 4.7deg,transparent 5deg 10deg);
    transform:scaleX(1.65);
    mix-blend-mode:screen;
    animation:v68TurnSpeedlines 1.55s cubic-bezier(.08,.78,.18,1) both;
}
#v68-turn-arrival:after{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at 50% 53%,rgba(255,244,190,.38),rgba(37,208,218,.18) 18%,rgba(0,24,34,.76) 46%,rgba(0,0,0,.82));
    animation:v68TurnVignette 1.72s ease-out both;
}
.v68-turn-slash{
    position:absolute;
    z-index:3;
    left:-15%;
    top:47%;
    width:130%;
    height:6px;
    rotate:-5deg;
    background:linear-gradient(90deg,transparent,#55e5e9 19%,#fff 50%,#f4c66b 78%,transparent);
    box-shadow:0 0 12px #fff,0 0 34px #42dce4,0 0 70px rgba(255,196,80,.72);
    animation:v68TurnSlash 1.35s cubic-bezier(.12,.78,.16,1) both;
}
.v68-turn-crest{
    position:absolute;
    z-index:4;
    left:50%;
    top:50%;
    translate:-50% -50%;
    color:rgba(255,242,190,.14);
    font:900 clamp(210px,46vw,620px)/1 Georgia,serif;
    text-shadow:0 0 32px rgba(82,226,232,.72);
    animation:v68TurnCrest 1.7s cubic-bezier(.12,.82,.18,1) both;
}
.v68-turn-panel{
    position:absolute;
    z-index:6;
    left:50%;
    top:52%;
    width:min(94vw,980px);
    translate:-50% -50%;
    padding:20px 24px 24px;
    border-block:2px solid rgba(255,227,143,.82);
    color:#fff2bd;
    background:linear-gradient(90deg,transparent,rgba(2,10,13,.92) 12% 88%,transparent);
    box-shadow:0 0 58px rgba(55,220,226,.42),inset 0 1px rgba(255,255,255,.18);
    text-align:center;
    transform:skewX(-5deg);
    animation:v68TurnPanel 1.68s cubic-bezier(.12,.82,.18,1) both;
}
.v68-turn-kicker{
    color:#6eeff1;
    font:800 clamp(10px,2vw,16px)/1 "Courier New",monospace;
    letter-spacing:.52em;
    text-indent:.52em;
    text-shadow:0 0 10px #39dbe4;
}
.v68-turn-main{
    margin-top:6px;
    font:900 clamp(42px,9vw,96px)/.95 Georgia,"Yu Mincho",serif;
    letter-spacing:.11em;
    text-indent:.11em;
    text-shadow:0 3px 0 #000,0 0 10px #fff,0 0 26px #51e3e8,0 0 62px rgba(255,190,66,.62);
}
.v68-turn-sub{
    margin-top:12px;
    color:#f4d890;
    font:800 clamp(10px,1.8vw,14px)/1 "Courier New",monospace;
    letter-spacing:.24em;
    text-indent:.24em;
}
.v68-turn-particle{
    position:absolute;
    z-index:5;
    left:50%;
    top:52%;
    color:var(--particle-color,#fff1ad);
    font:900 var(--particle-size,18px)/1 Georgia,serif;
    text-shadow:0 0 8px #fff,0 0 18px currentColor;
    animation:v68TurnParticle 1.15s cubic-bezier(.08,.74,.16,1) var(--delay,0ms) both;
}
body.v68-player-turn-live .player-area{
    animation:v68TurnFieldPulse 1.8s ease-out both!important;
}
body.v68-player-turn-live #hand-zone{
    box-shadow:inset 0 0 30px rgba(70,226,232,.2),0 0 28px rgba(255,198,79,.25)!important;
}
body.v68-player-turn-live #phase-bar{
    border-color:#6fecef!important;
    box-shadow:0 0 22px rgba(65,222,231,.72),inset 0 0 18px rgba(255,205,96,.18)!important;
}

@keyframes v68TurnLife{0%{opacity:0}4%,72%{opacity:1}100%{opacity:0}}
@keyframes v68TurnSpeedlines{0%{opacity:0;transform:scale(.3) rotate(-8deg)}18%{opacity:.82}100%{opacity:0;transform:scale(1.7) rotate(7deg)}}
@keyframes v68TurnVignette{0%{opacity:.92;filter:brightness(2.1)}12%{opacity:.74;filter:brightness(1)}78%{opacity:.62}100%{opacity:0}}
@keyframes v68TurnSlash{0%{opacity:0;transform:translateX(-80%) scaleX(.08)}18%{opacity:1}62%{opacity:.9;transform:translateX(0) scaleX(1)}100%{opacity:0;transform:translateX(58%) scaleX(.72)}}
@keyframes v68TurnCrest{0%{opacity:0;transform:scale(.18) rotate(-20deg);filter:blur(14px)}24%{opacity:.24;filter:blur(0)}100%{opacity:0;transform:scale(1.35) rotate(10deg);filter:blur(4px)}}
@keyframes v68TurnPanel{0%{opacity:0;transform:skewX(-5deg) translateX(-24%) scaleX(.55);filter:blur(10px)}20%{opacity:1;transform:skewX(-5deg) translateX(0) scaleX(1);filter:blur(0)}68%{opacity:1;transform:skewX(-5deg) translateX(0) scaleX(1)}100%{opacity:0;transform:skewX(-5deg) translateX(16%) scaleX(.82);filter:blur(5px)}}
@keyframes v68TurnParticle{0%{opacity:0;transform:rotate(var(--angle)) translateY(0) scale(.2)}18%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateY(var(--travel)) scale(1.2)}}
@keyframes v68TurnFieldPulse{0%,100%{filter:none}16%{filter:brightness(1.55) saturate(1.55);box-shadow:0 0 44px rgba(70,226,232,.68),inset 0 0 34px rgba(255,205,96,.24)}45%{filter:brightness(.96)}72%{filter:brightness(1.16)}}

@media(max-width:700px){
    .v68-turn-panel{padding:15px 12px 18px}.v68-turn-main{font-size:clamp(38px,12vw,66px)}.v68-turn-kicker{letter-spacing:.34em;text-indent:.34em}.v68-turn-sub{letter-spacing:.12em;text-indent:.12em}.v68-motion-label{font-size:9px;padding-inline:10px}.v68-land-rays{width:170px;height:170px;margin:-85px 0 0 -85px}
}
@media(prefers-reduced-motion:reduce){
    .v68-flight-beam,.v68-land-core,.v68-land-ring,.v68-land-rays,.v68-suit-spark,.v68-deck-vortex,.v68-motion-label,#v68-turn-arrival,#v68-turn-arrival *,body.v68-player-turn-live .player-area{animation-duration:.12s!important;transition-duration:.12s!important}
}

/* SOURCE styles/performance.css */
/* =========================================================
   SHOCKER v69 — adaptive render governor
   The presentation stays intact at normal load. During an
   overlapping FX burst, only redundant trails are thinned.
   ========================================================= */

#v68-motion-layer,
#v67-fx-layer,
#v67-battle-atmosphere {
    transform:translateZ(0);
}

#v68-motion-layer > *,
#v67-fx-layer > * {
    backface-visibility:hidden;
}

/* Filters still render normally; excluding them from will-change avoids
   reserving large compositor surfaces for every ambient/effect element. */
#v67-battle-atmosphere > div,
#v67-fx-layer > *,
.v68-flight-card,
.v68-flight-ghost {
    will-change:transform,opacity !important;
}

/* Foreground cards and their impact conceal most background movement.
   Pausing those hidden animations substantially lowers overlapping work. */
html.v69-foreground-fx #v64-battle-backdrop::before,
html.v69-foreground-fx #v67-battle-atmosphere *,
html.v69-foreground-fx #v67-battle-atmosphere *::before,
html.v69-foreground-fx #v67-battle-atmosphere *::after,
html.v69-foreground-fx body.v45-battle-active.v64-shocker-battle .field-area::before,
html.v69-foreground-fx body.v45-battle-active.v64-shocker-battle .deck-pile:not(.v68-deck-launch):not(.v68-deck-absorb) {
    animation-play-state:paused !important;
}

/* These nodes are only the extra copy of an already-visible trail/particle.
   The flying card, beam, landing flash, rings and rays remain unchanged. */
.v68-flight-ghost[data-v69-secondary="true"][data-v69-cull="true"],
.v68-suit-spark[data-v69-overflow="true"][data-v69-cull="true"] {
    display:none !important;
}

/* A sustained slow frame rate enables the same conservative fallback.
   It affects only redundant motes/trails, never the main card animation. */
html.v69-low-fps #v67-battle-atmosphere .v67-mote:nth-of-type(n+13),
html.v69-low-fps .v68-flight-ghost[data-v69-secondary="true"],
html.v69-low-fps .v68-suit-spark[data-v69-overflow="true"],
html.v69-low-fps #v68-turn-arrival .v68-turn-particle:nth-of-type(n+13) {
    display:none !important;
}

/* Sorting reuses the existing card nodes, so selections and click handlers
   survive. Containment keeps the single relayout local to the hand row. */
#hand-zone.v69-sorting {
    contain:layout style;
}


/* SOURCE styles/riana-casino.css */
/* =========================================================
   SHOCKER v72 — RIANA'S EMERALD CASINO TABLE
   ・対戦盤を一枚の楕円カジノテーブルとして再構成
   ・ベニート・リアナ限定の手元／カード保持モーション
   ・カードDOMと非公開情報には触れず、装飾レイヤーだけを追加
   ========================================================= */
:root {
    --v72-felt-deep:#031b12;
    --v72-felt:#073d28;
    --v72-felt-light:#0d6441;
    --v72-brass:#c9a656;
    --v72-brass-light:#f3dc91;
    --v72-walnut:#160d08;
    --v72-ebony:#050505;
}

body.v45-battle-active.v72-casino-battle {
    background:
        radial-gradient(ellipse at 50% 50%,#23150c 0 54%,#080604 76%,#010101 100%) !important;
    color:#f5ead0 !important;
}

body.v45-battle-active.v72-casino-battle #v64-battle-backdrop {
    display:none !important;
}

#v72-casino-table {
    display:none;
    position:fixed;
    z-index:1;
    inset:clamp(34px,5.6vh,62px) clamp(7px,1.6vw,24px) clamp(6px,1.2vh,16px);
    overflow:hidden;
    border:clamp(7px,1.05vw,15px) solid var(--v72-ebony);
    border-radius:46% / 15%;
    pointer-events:none;
    background:
        repeating-radial-gradient(ellipse at 50% 50%,rgba(255,255,255,.025) 0 1px,transparent 2px 7px),
        linear-gradient(115deg,#25150d,#090605 32%,#1c1009 68%,#050403);
    box-shadow:
        0 0 0 2px #4a321a,
        0 0 0 4px rgba(230,199,116,.62),
        0 18px 54px rgba(0,0,0,.84),
        inset 0 0 0 2px rgba(255,239,185,.2),
        inset 0 0 34px #000;
    contain:strict;
}

body.v45-battle-active.v72-casino-battle #v72-casino-table {
    display:block;
}

.v72-casino-felt {
    position:absolute;
    inset:clamp(8px,1vw,15px);
    overflow:hidden;
    border:2px solid rgba(243,220,145,.76);
    border-radius:inherit;
    background:
        radial-gradient(ellipse at 50% 45%,rgba(30,139,87,.28),transparent 50%),
        radial-gradient(circle at 50% 50%,rgba(255,255,255,.045) 0 1px,transparent 1.6px) 0 0 / 5px 5px,
        repeating-linear-gradient(98deg,rgba(255,255,255,.013) 0 1px,transparent 1px 4px),
        linear-gradient(128deg,#021c12,#085035 45%,#032a1c 74%,#01140d);
    box-shadow:
        inset 0 0 0 5px rgba(8,8,6,.66),
        inset 0 0 0 7px rgba(185,144,64,.34),
        inset 0 0 75px rgba(0,0,0,.88);
}

.v72-casino-felt::before {
    content:"";
    position:absolute;
    inset:7% 5%;
    border:1px solid rgba(238,212,139,.17);
    border-radius:45% / 17%;
    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,.38),
        0 0 24px rgba(0,0,0,.22);
}

.v72-casino-felt::after {
    content:"";
    position:absolute;
    left:8%;
    right:8%;
    top:50%;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(243,220,145,.1) 14% 86%,transparent);
    box-shadow:0 -1px rgba(0,0,0,.44);
}

.v72-casino-suit {
    position:absolute;
    color:rgba(236,220,174,.038);
    font:900 clamp(70px,13vw,180px)/1 Georgia,serif;
    text-shadow:0 2px rgba(0,0,0,.18);
}
.v72-casino-suit.s1 { left:8%; top:9%; transform:rotate(-12deg); }
.v72-casino-suit.s2 { right:8%; top:10%; transform:rotate(12deg); color:rgba(152,35,43,.065); }
.v72-casino-suit.s3 { left:9%; bottom:7%; transform:rotate(10deg); color:rgba(152,35,43,.06); }
.v72-casino-suit.s4 { right:9%; bottom:7%; transform:rotate(-10deg); }

.v72-casino-medallion {
    position:absolute;
    left:50%;
    top:50%;
    width:clamp(150px,28vw,390px);
    aspect-ratio:2.45 / 1;
    transform:translate(-50%,-50%);
    border:1px solid rgba(229,202,124,.13);
    border-radius:50%;
    display:grid;
    place-items:center;
    color:rgba(245,226,171,.085);
    font:800 clamp(15px,2.7vw,34px)/1 Georgia,"Yu Mincho",serif;
    letter-spacing:.28em;
    text-indent:.28em;
    text-shadow:0 2px rgba(0,0,0,.6);
    box-shadow:inset 0 0 34px rgba(0,0,0,.18);
}
.v72-casino-medallion::before,
.v72-casino-medallion::after {
    position:absolute;
    top:50%;
    transform:translateY(-53%);
    color:rgba(242,216,140,.075);
    font:900 clamp(18px,3.8vw,52px)/1 Georgia,serif;
}
.v72-casino-medallion::before { content:"♠"; left:7%; }
.v72-casino-medallion::after { content:"♦"; right:7%; color:rgba(167,45,52,.1); }
.v72-casino-medallion small {
    position:absolute;
    top:68%;
    font:700 clamp(5px,.7vw,9px)/1 "Courier New",monospace;
    letter-spacing:.32em;
    text-indent:.32em;
}

.v72-table-light {
    position:absolute;
    inset:-35%;
    opacity:.22;
    background:linear-gradient(108deg,transparent 38%,rgba(255,243,195,.13) 47%,rgba(255,255,255,.06) 50%,transparent 59%);
    transform:translate3d(-26%,0,0);
    animation:v72TableLight 24s ease-in-out infinite;
    mix-blend-mode:screen;
}

.v72-chip-cluster {
    position:absolute;
    width:74px;
    height:52px;
    opacity:.72;
    filter:drop-shadow(0 7px 5px rgba(0,0,0,.55));
}
.v72-chip-cluster.left { left:5%; bottom:5%; transform:rotate(9deg); }
.v72-chip-cluster.right { right:5%; top:7%; transform:rotate(-10deg); }
.v72-chip {
    position:absolute;
    width:28px;
    height:28px;
    border:3px dashed rgba(255,255,255,.74);
    border-radius:50%;
    box-shadow:inset 0 0 0 4px currentColor,0 3px 5px rgba(0,0,0,.5);
    background:#311016;
    color:#9b2638;
}
.v72-chip:nth-child(2) { left:20px; top:13px; background:#0b2540; color:#225d98; }
.v72-chip:nth-child(3) { left:42px; top:2px; background:#161616; color:#b99a52; }

/* テーブル上の既存盤面を一枚のフェルトへ溶け込ませる */
body.v45-battle-active.v72-casino-battle .field-area {
    border:0 !important;
    border-radius:20px !important;
    background:
        linear-gradient(90deg,rgba(0,0,0,.18),rgba(7,74,47,.09) 32% 68%,rgba(0,0,0,.18)) !important;
    box-shadow:
        inset 0 1px rgba(242,219,151,.08),
        inset 0 -1px rgba(0,0,0,.38) !important;
}
body.v45-battle-active.v72-casino-battle .opponent-area {
    border-top:1px solid rgba(212,178,96,.24) !important;
    border-bottom:1px solid rgba(113,15,25,.34) !important;
}
body.v45-battle-active.v72-casino-battle .player-area {
    border-top:1px solid rgba(53,242,107,.15) !important;
    border-bottom:1px solid rgba(212,178,96,.25) !important;
}
body.v45-battle-active.v72-casino-battle .field-area::before {
    height:1px !important;
    background:linear-gradient(90deg,transparent,rgba(243,220,145,.36) 25% 75%,transparent) !important;
}
body.v45-battle-active.v72-casino-battle .opponent-area::after,
body.v45-battle-active.v72-casino-battle .player-area::after {
    opacity:.018 !important;
}
body.v45-battle-active.v72-casino-battle #opponent-field,
body.v45-battle-active.v72-casino-battle #player-field,
body.v45-battle-active.v72-casino-battle #hand-zone {
    background:
        radial-gradient(ellipse at center,rgba(230,205,132,.045),transparent 68%),
        linear-gradient(90deg,transparent,rgba(0,0,0,.13),transparent) !important;
    border-color:rgba(230,205,132,.08) !important;
}
body.v45-battle-active.v72-casino-battle #opponent-field::before,
body.v45-battle-active.v72-casino-battle #player-field::before,
body.v45-battle-active.v72-casino-battle #hand-zone::before {
    border-color:rgba(230,205,132,.1) !important;
    background:transparent !important;
}
body.v45-battle-active.v72-casino-battle > h2 {
    border-color:rgba(241,215,142,.56) !important;
    background:
        linear-gradient(90deg,rgba(0,0,0,.1),rgba(26,15,9,.96) 18% 82%,rgba(0,0,0,.1)),
        repeating-linear-gradient(92deg,transparent 0 18px,rgba(255,255,255,.025) 19px 20px) !important;
    box-shadow:0 6px 16px rgba(0,0,0,.42) !important;
}
body.v45-battle-active.v72-casino-battle > h2::before { content:"♠  GRAND TABLE" !important; }
body.v45-battle-active.v72-casino-battle > h2::after { content:"EMERALD ROOM  ♦" !important; }
body.v45-battle-active.v72-casino-battle #phase-bar {
    border-color:rgba(232,207,139,.54) !important;
    border-left-color:#d7b760 !important;
    border-right-color:#d7b760 !important;
    background:linear-gradient(90deg,rgba(23,13,8,.98),rgba(3,29,19,.96) 28% 72%,rgba(23,13,8,.98)) !important;
}
body.v45-battle-active.v72-casino-battle .disposal-box {
    border-color:rgba(226,200,128,.16) !important;
    background:linear-gradient(110deg,rgba(5,21,15,.64),rgba(0,0,0,.34)) !important;
}
body.v45-battle-active.v72-casino-battle .opponent-hand-display {
    background:linear-gradient(145deg,rgba(42,9,15,.9),rgba(3,25,17,.93)) !important;
    border-color:rgba(212,178,96,.46) !important;
}

@keyframes v72TableLight {
    0%,12% { transform:translate3d(-26%,0,0); opacity:.06; }
    46% { opacity:.24; }
    82%,100% { transform:translate3d(26%,0,0); opacity:.06; }
}

@media (max-width:700px) {
    #v72-casino-table {
        inset:34px 2px 2px;
        border-width:6px;
        border-radius:36px;
    }
    .v72-casino-felt { inset:6px; border-radius:29px; }
    .v72-chip-cluster { transform:scale(.72); opacity:.48; }
}

@media (max-width:390px) {
}

html.v69-low-fps .v72-table-light,
html.v69-heavy-burst .v72-table-light { display:none; }

@media (prefers-reduced-motion:reduce) {.v72-table-light {
        animation:none !important;
        transition:none !important;
        will-change:auto !important;
    }
}


/* SOURCE styles/multi-character-whole-hands.css */
body.v95-first-person-hands-active #v72-player-hand-rig {
    display:none !important;
}

body.v95-first-person-hands-active #hand-row {
    isolation:isolate !important;
    overflow:visible !important;
    min-height:96px !important;
}

#v95-character-hand-underlay {
    position:absolute;
    inset:0;
    z-index:71 !important;
    overflow:visible;
    visibility:hidden;
    pointer-events:none !important;
    user-select:none !important;
    -webkit-user-select:none !important;
}
#v95-character-hand-underlay.is-visible.asset-ready { visibility:visible; }

.v95-whole-hand-stack {
    position:absolute;
    left:var(--v95-hand-left,50%);
    top:var(--v95-hand-top,-166px);
    width:var(--v95-hand-width,830px);
    aspect-ratio:3 / 2;
    transform:translate3d(-50%,0,0);
    transform-origin:50% 58%;
    opacity:0;
    transition:opacity .24s ease,filter .28s ease;
    backface-visibility:hidden;
    will-change:transform;
    filter:
        drop-shadow(0 13px 11px rgba(0,0,0,.55))
        drop-shadow(0 2px 3px rgba(16,4,25,.5));
}
#v95-character-hand-underlay.is-visible.asset-ready .v95-whole-hand-stack { opacity:1; }
#v95-character-hand-underlay.is-visible.asset-ready.is-card-separated .v95-whole-hand-stack {
    animation:none !important;
    transform:translate3d(-50%,0,0) !important;
    filter:drop-shadow(0 3px 3px rgba(0,0,0,.42)) !important;
}
#v95-character-hand-underlay.is-card-obstructed .v95-whole-hand-stack {
    visibility:hidden;
}

.v95-whole-hand-image {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    pointer-events:none !important;
    user-select:none !important;
    -webkit-user-drag:none;
    backface-visibility:hidden;
    clip-path:inset(var(--v95-clip-top,0%) var(--v95-clip-right,0%) var(--v95-clip-bottom,17%) var(--v95-clip-left,50%));
}


body.v45-battle-active.v95-first-person-hands-active .player-area.v95-hands-player #hand-zone {
    position:relative !important;
    z-index:74 !important;
    min-height:96px !important;
    padding:10px min(6vw,44px) 7px !important;
    gap:0 !important;
    perspective:760px;
    overflow:visible !important;
}
body.v45-battle-active.v95-first-person-hands-active .player-area.v95-hands-player #hand-zone > .card {
    margin-inline:-6px !important;
    translate:var(--v95-fan-x,0px) var(--v95-fan-y,0px);
    rotate:var(--v95-fan-angle,0deg);
    transform-origin:50% 112% !important;
    z-index:var(--v95-fan-z,75) !important;
    border:1px solid rgba(103,78,34,.76) !important;
    border-radius:8px !important;
    background:
        radial-gradient(circle at 23% 15%,rgba(255,255,255,.98),transparent 27%),
        linear-gradient(145deg,#fffef9 0%,#f1eddf 55%,#d6c9aa 100%) !important;
    box-shadow:
        0 8px 13px rgba(0,0,0,.5),
        0 0 0 1px rgba(255,242,192,.5),
        inset 0 0 0 2px rgba(86,54,16,.1),
        inset 0 -5px 9px rgba(76,45,13,.08) !important;
    font-family:Georgia,"Times New Roman",serif !important;
    text-shadow:0 1px rgba(255,255,255,.88);
}
body.v45-battle-active.v95-first-person-hands-active .player-area.v95-hands-player #hand-zone > .card:hover,
body.v45-battle-active.v95-first-person-hands-active .player-area.v95-hands-player #hand-zone > .card.selected-card {
    z-index:140 !important;
}

#v95-character-hand-underlay.is-visible:not(.gesture-draw):not(.gesture-deal):not(.gesture-defense):not(.gesture-adjust) .v95-whole-hand-stack {
    animation:v95HandsBreathe 5.7s ease-in-out -1.2s infinite alternate;
}
#v95-character-hand-underlay.gesture-draw .v95-whole-hand-stack {
    animation:v95HandsDraw .72s cubic-bezier(.16,.84,.22,1) both !important;
}
#v95-character-hand-underlay.gesture-deal .v95-whole-hand-stack {
    animation:v95HandsDeal .7s cubic-bezier(.16,.84,.22,1) both !important;
}
#v95-character-hand-underlay.gesture-defense .v95-whole-hand-stack {
    animation:v95HandsDefense .72s cubic-bezier(.18,.78,.2,1) both !important;
}
#v95-character-hand-underlay.gesture-adjust .v95-whole-hand-stack {
    animation:v95HandsAdjust .96s ease-in-out both !important;
}
#hand-zone.v95-fan-settle {
    animation:v95LiveFanSettle .48s cubic-bezier(.16,.86,.22,1) both;
}
body.v95-first-person-hands-active #hand-zone.v95-fan-settle {
    animation:none !important;
}

@keyframes v95HandsBreathe {
    from { transform:translate3d(-50%,2px,0) rotate(-.16deg); }
    to { transform:translate3d(-50%,-2px,0) rotate(.14deg); }
}
@keyframes v95HandsDraw {
    0%,100% { transform:translate3d(-50%,0,0) scale(1); }
    38% { transform:translate3d(calc(-50% + 9px),-10px,0) rotate(.7deg) scale(1.012); }
    70% { transform:translate3d(calc(-50% - 3px),2px,0) rotate(-.2deg) scale(.997); }
}
@keyframes v95HandsDeal {
    0%,100% { transform:translate3d(-50%,0,0) scale(1); }
    40% { transform:translate3d(-50%,-12px,0) rotate(-.55deg) scale(1.018); }
    72% { transform:translate3d(-50%,3px,0) rotate(.18deg) scale(.994); }
}
@keyframes v95HandsDefense {
    0%,100% { transform:translate3d(-50%,0,0) scale(1); }
    36%,66% { transform:translate3d(-50%,-8px,0) scale(.982,1.025); filter:brightness(1.08); }
}
@keyframes v95HandsAdjust {
    0%,100% { transform:translate3d(-50%,0,0) rotate(0); }
    34% { transform:translate3d(-50%,-5px,0) rotate(.42deg); }
    68% { transform:translate3d(-50%,1px,0) rotate(-.2deg); }
}
@keyframes v95LiveFanSettle {
    0% { scale:.972; translate:0 4px; filter:brightness(1.08); }
    58% { scale:1.012; translate:0 -2px; }
    100% { scale:1; translate:0 0; filter:none; }
}

body.v95-first-person-hands-active .player-area.v95-hands-player.v95-hands-awakened.v95-theme-riana #v95-character-hand-underlay .v95-whole-hand-stack {
    filter:
        drop-shadow(0 12px 10px rgba(0,0,0,.58))
        drop-shadow(0 0 7px rgba(118,70,255,.5))
        drop-shadow(0 0 11px rgba(53,242,107,.28));
}
body.v95-first-person-hands-active .player-area.v95-hands-player.v95-hands-awakened.v95-theme-misha #v95-character-hand-underlay .v95-whole-hand-stack {
    filter:
        drop-shadow(0 12px 10px rgba(0,0,0,.58))
        drop-shadow(0 0 8px rgba(164,190,181,.58))
        drop-shadow(0 0 11px rgba(53,242,107,.28));
}

body.v95-first-person-hands-active .player-area.v95-hands-player.v95-hands-awakened.v95-theme-larasa #v95-character-hand-underlay .v95-whole-hand-stack {
    filter:
        drop-shadow(0 12px 10px rgba(0,0,0,.58))
        drop-shadow(0 0 8px rgba(56,168,255,.6))
        drop-shadow(0 0 11px rgba(196,151,71,.28));
}

body.v95-first-person-hands-active .player-area.v95-hands-player.v95-hands-awakened.v95-theme-lily #v95-character-hand-underlay .v95-whole-hand-stack {
    filter:
        drop-shadow(0 12px 10px rgba(0,0,0,.58))
        drop-shadow(0 0 8px rgba(201,91,255,.62))
        drop-shadow(0 0 11px rgba(218,181,84,.28));
}

body.v95-first-person-hands-active .player-area.v95-hands-player.v95-hands-awakened.v95-theme-leonard #v95-character-hand-underlay .v95-whole-hand-stack {
    filter:
        drop-shadow(0 12px 10px rgba(0,0,0,.58))
        drop-shadow(0 0 8px rgba(255,91,131,.64))
        drop-shadow(0 0 12px rgba(255,65,120,.30));
}

body.v95-first-person-hands-active .player-area.v95-hands-player.v95-hands-awakened.v95-theme-milia #v95-character-hand-underlay .v95-whole-hand-stack {
    filter:
        drop-shadow(0 12px 10px rgba(0,0,0,.58))
        drop-shadow(0 0 8px rgba(229,213,58,.64))
        drop-shadow(0 0 12px rgba(255,246,188,.30));
}

body.v95-first-person-hands-active .player-area.v95-hands-player.v95-hands-awakened.v95-theme-luka #v95-character-hand-underlay .v95-whole-hand-stack {
    filter:
        drop-shadow(0 12px 10px rgba(0,0,0,.58))
        drop-shadow(0 0 8px rgba(217,227,41,.64))
        drop-shadow(0 0 12px rgba(255,248,170,.30));
}

body.v95-first-person-hands-active .player-area.v95-hands-player.v95-hands-awakened.v95-theme-sarief #v95-character-hand-underlay .v95-whole-hand-stack {
    filter:
        drop-shadow(0 12px 10px rgba(0,0,0,.58))
        drop-shadow(0 0 8px rgba(245,154,35,.66))
        drop-shadow(0 0 12px rgba(150,82,220,.30));
}

body.v95-first-person-hands-active .player-area.v95-hands-player.v95-hands-awakened.v95-theme-ordivo #v95-character-hand-underlay .v95-whole-hand-stack {
    filter:
        drop-shadow(0 12px 10px rgba(0,0,0,.58))
        drop-shadow(0 0 8px rgba(55,167,255,.66))
        drop-shadow(0 0 12px rgba(65,170,255,.30));
}

body.v95-first-person-hands-active .player-area.v95-hands-player.v95-hands-awakened.v95-theme-alish #v95-character-hand-underlay .v95-whole-hand-stack {
    filter:
        drop-shadow(0 12px 10px rgba(0,0,0,.58))
        drop-shadow(0 0 8px rgba(230,230,230,.66))
        drop-shadow(0 0 12px rgba(255,255,255,.30));
}

body.v95-first-person-hands-active .player-area.v95-hands-player.v95-hands-awakened.v95-theme-maburoi #v95-character-hand-underlay .v95-whole-hand-stack {
    filter:
        drop-shadow(0 12px 10px rgba(0,0,0,.58))
        drop-shadow(0 0 8px rgba(230,230,230,.66))
        drop-shadow(0 0 12px rgba(212,175,55,.30));
}

@media (max-width:520px) {
    body.v45-battle-active.v95-first-person-hands-active .player-area.v95-hands-player #hand-zone {
        min-height:90px !important;
        padding-inline:38px !important;
    }
    body.v45-battle-active.v95-first-person-hands-active .player-area.v95-hands-player #hand-zone > .card {
        margin-inline:-6px !important;
    }
}

html.v69-low-fps #v95-character-hand-underlay .v95-whole-hand-stack,
html.v69-heavy-burst #v95-character-hand-underlay .v95-whole-hand-stack,
html.v69-low-fps #hand-zone.v95-fan-settle,
html.v69-heavy-burst #hand-zone.v95-fan-settle {
    animation:none !important;
    transition:none !important;
    will-change:auto !important;
}
@media (prefers-reduced-motion:reduce) {
    #v95-character-hand-underlay .v95-whole-hand-stack,
    #hand-zone.v95-fan-settle {
        animation:none !important;
        transition:none !important;
        will-change:auto !important;
    }
}


@media (forced-colors: none) {
    html:not(.shocker-mobile-v252) body.v45-battle-active.v95-first-person-hands-active
    .player-area > .disposal-container > .disposal-box:has(> #player-slash-zone) {
        background:linear-gradient(110deg,rgba(5,21,15,.18),rgba(0,0,0,.06)) !important;
    }
}


#v95-character-hand-underlay[data-hand-calibration="v273"] .v95-whole-hand-image {
    -webkit-mask-image:
        linear-gradient(to right,#000 0,#000 calc(100% - var(--v95-tail-fade,22px)),transparent 100%),
        linear-gradient(to bottom,#000 0,#000 calc(100% - var(--v95-tail-fade,22px)),transparent 100%);
    mask-image:
        linear-gradient(to right,#000 0,#000 calc(100% - var(--v95-tail-fade,22px)),transparent 100%),
        linear-gradient(to bottom,#000 0,#000 calc(100% - var(--v95-tail-fade,22px)),transparent 100%);
    -webkit-mask-composite:source-in;
    mask-composite:intersect;
    -webkit-mask-repeat:no-repeat;
    mask-repeat:no-repeat;
    -webkit-mask-size:100% 100%;
    mask-size:100% 100%;
}


/* SOURCE styles/dual-character.css */
#v99-mode-overlay {
        position: fixed;
        inset: 0;
        z-index: 10040;
        display: none;
        place-items: center;
        padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
        background: radial-gradient(circle at 50% 28%, rgba(57,46,23,.58), rgba(0,0,0,.92) 68%);
        backdrop-filter: blur(10px);
    }
    #v99-mode-overlay.show { display: grid; }
    .v99-mode-panel {
        width: min(760px, 96vw);
        border: 1px solid rgba(232,199,110,.72);
        border-radius: 18px;
        padding: clamp(20px, 4vw, 38px);
        color: #fff8df;
        background: linear-gradient(145deg, rgba(28,25,22,.98), rgba(8,9,13,.99));
        box-shadow: 0 28px 80px rgba(0,0,0,.82), inset 0 0 36px rgba(212,175,55,.08);
    }
    .v99-mode-kicker { color: #d7bd71; font: 700 11px/1.2 ui-sans-serif, sans-serif; letter-spacing: .24em; }
    .v99-mode-panel h2 { margin: 8px 0 7px; font-size: clamp(25px, 4.2vw, 40px); letter-spacing: .08em; }
    .v99-mode-panel > p { margin: 0 0 22px; color: #c9c4b5; line-height: 1.75; }
    .v99-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
    .v99-mode-card {
        min-height: 164px;
        padding: 22px;
        border: 1px solid rgba(255,255,255,.17);
        border-radius: 14px;
        color: #f8f3e5;
        text-align: left;
        background: linear-gradient(150deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
        cursor: pointer;
        transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    }
    .v99-mode-card:hover, .v99-mode-card:focus-visible { transform: translateY(-3px); border-color: #e0bd59; box-shadow: 0 14px 35px rgba(0,0,0,.45), 0 0 22px rgba(212,175,55,.15); outline: none; }
    .v99-mode-card strong { display: block; margin: 7px 0 9px; font-size: clamp(19px, 3vw, 26px); color: #ffe6a1; }
    .v99-mode-card small { display: block; color: #bbb6aa; line-height: 1.65; }
    .v99-mode-number { color: #d7bd71; font-weight: 800; letter-spacing: .18em; }
    #v99-mode-cancel { display: block; margin: 20px auto 0; border: 0; color: #c8c3b5; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

    #v99-selection-progress {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        margin: 8px auto 13px;
        color: #aaa394;
        font: 800 11px/1.2 ui-sans-serif, sans-serif;
        letter-spacing: .08em;
    }
    #v99-selection-progress[hidden] { display: none !important; }
    .v99-selection-step { padding: 7px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(0,0,0,.28); }
    .v99-selection-step.active { color: #16120a; border-color: #f0cf6c; background: linear-gradient(135deg,#f7df91,#cda13d); box-shadow: 0 0 15px rgba(225,184,72,.28); }
    .v99-selection-step.done { color: #f5da88; border-color: rgba(232,198,102,.55); }
    #character-grid .character-card.v99-main-locked { box-shadow: inset 0 0 0 2px rgba(240,201,89,.75); }
    #character-grid .character-card.v99-main-locked::after { content: "MAIN"; position: absolute; right: 8px; top: 8px; z-index: 8; padding: 4px 7px; border-radius: 999px; color: #171108; background: #e7c45b; font: 900 10px/1 ui-sans-serif,sans-serif; letter-spacing: .1em; }

    .v99-sub-character {
        position: fixed !important;
        z-index: 96 !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 2px solid var(--char-gem, #d4af37) !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        opacity: 1 !important;
        pointer-events: none !important;
        cursor: default !important;
        background-color: #0a0b0e !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: cover !important;
        box-shadow: 0 12px 28px rgba(0,0,0,.68), 0 0 17px var(--char-glow, rgba(212,175,55,.38)) !important;
        transform: none !important;
        filter: none !important;
        contain: paint;
    }
    .v99-sub-character[hidden] { display: none !important; }
    body:not(.v45-battle-active) .v99-sub-character { opacity: 0 !important; pointer-events: none !important; }
    .v99-sub-character::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 54%, rgba(0,0,0,.88)); pointer-events: none; }
    .v99-sub-character .battle-character-mark { display: none !important; }
    .v99-sub-character .battle-character-name { position: absolute !important; z-index: 2 !important; left: 7px !important; right: 7px !important; bottom: 7px !important; display: block !important; overflow: hidden; color: #fff8df !important; font: 800 10px/1.25 ui-sans-serif,sans-serif !important; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 2px 4px #000; }
    .v99-sub-label { position: absolute; z-index: 3; left: 6px; top: 6px; padding: 4px 6px; border-radius: 999px; color: #191308; background: var(--char-gem,#d4af37); font: 900 9px/1 ui-sans-serif,sans-serif; letter-spacing: .12em; box-shadow: 0 2px 7px rgba(0,0,0,.55); }
    .v99-sub-character.is-awakened-portrait { border-color: #f8e59a !important; box-shadow: 0 12px 30px rgba(0,0,0,.7), 0 0 24px var(--char-glow,rgba(255,224,110,.65)) !important; }
    .v99-sub-character.battle-character-used::after { content: "USED"; position: absolute !important; z-index: 4; inset: auto 5px auto auto !important; left: auto !important; right: 5px !important; top: 5px !important; bottom: auto !important; display: block !important; width: auto !important; height: auto !important; padding: 4px 5px; border-radius: 5px; color: #d0cbc0; background: rgba(0,0,0,.78); font: 800 8px/1 ui-sans-serif,sans-serif; line-height: 1 !important; align-items: initial !important; justify-content: initial !important; }
    #opponent-battle-character.battle-character-used[data-v66-ai-ability="active"]::after { content: "発動済" !important; inset: 0 !important; right: 0 !important; bottom: 0 !important; min-width: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; color: #aaa !important; background: rgba(0,0,0,.72) !important; box-shadow: none !important; font-size: 9px !important; }

    #v99-ability-slot-badge { display: inline-flex; align-items: center; justify-content: center; margin: 0 0 8px; padding: 5px 9px; border: 1px solid var(--ability-gem,#d4af37); border-radius: 999px; color: var(--ability-gem,#f0d47e); background: rgba(0,0,0,.34); font: 900 10px/1 ui-sans-serif,sans-serif; letter-spacing: .13em; }

    @media (max-width: 620px) {
        .v99-mode-options { grid-template-columns: 1fr; }
        .v99-mode-card { min-height: 125px; padding: 17px; }
        .v99-mode-panel { max-height: 92vh; overflow: auto; }
        #v99-selection-progress { gap: 5px; }
        .v99-selection-step { padding: 6px 8px; font-size: 9px; }
    }
    @media (prefers-reduced-motion: reduce) {
        .v99-mode-card { transition: none; }
    }


/* SOURCE styles/log-left-alignment.css */
#opponent-chain-log,
#opponent-chain-log .opponent-chain-log-entry,
#opponent-chain-log .opponent-chain-log-empty,
#v56-chain-log-scroll,
#v56-chain-log-scroll .opponent-chain-log-entry,
#v56-chain-log-scroll .opponent-chain-log-empty {
    text-align: left !important;
    justify-content: flex-start !important;
}


/* SOURCE styles/character-encyclopedia.css */
body.v101-encyclopedia-open{overflow:hidden!important}
#v101-character-encyclopedia{position:fixed;inset:0;z-index:10000;display:none;overflow:auto;overscroll-behavior:contain;color:#f5ead0;background:radial-gradient(circle at 50% -12%,rgba(164,40,36,.28),transparent 38%),linear-gradient(145deg,#17120f 0%,#080807 47%,#120d0b 100%)}
#v101-character-encyclopedia.show{display:block}
#v101-character-encyclopedia::before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.32;background-image:repeating-linear-gradient(115deg,transparent 0 17px,rgba(240,211,143,.018) 18px 19px),radial-gradient(circle at center,transparent 34%,rgba(0,0,0,.7) 100%)}
.v101-encyclopedia-shell{position:relative;width:min(1060px,100%);min-height:100%;margin:0 auto;padding:clamp(18px,3vw,38px) clamp(12px,3vw,32px) max(32px,env(safe-area-inset-bottom))}
.v101-encyclopedia-header{display:grid;grid-template-columns:1fr auto;align-items:end;gap:18px;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid rgba(225,193,112,.42)}
.v101-encyclopedia-kicker{color:#d9bb73;font:700 clamp(9px,1.1vw,12px)/1.4 Georgia,"Yu Mincho",serif;letter-spacing:.26em}
.v101-encyclopedia-title{margin:4px 0 0;color:#fff7df;font:700 clamp(27px,4.3vw,48px)/1.08 Georgia,"Yu Mincho",serif;letter-spacing:.08em;text-shadow:0 4px 24px rgba(203,154,67,.26)}
.v101-encyclopedia-copy{margin:8px 0 0;color:#bdb29b;font-size:clamp(10px,1.3vw,13px);letter-spacing:.06em}
#v101-encyclopedia-close{min-width:132px;min-height:44px;padding:10px 18px;border:1px solid rgba(225,193,112,.65);border-radius:4px;color:#f5e7bf;background:linear-gradient(#33291c,#19140f);font:700 12px/1.2 Georgia,"Yu Mincho",serif;letter-spacing:.12em;cursor:pointer}
#v101-encyclopedia-close:hover,#v101-encyclopedia-close:focus-visible{border-color:#f1d487;outline:2px solid rgba(241,212,135,.3);outline-offset:3px}
.v101-suit-section{margin:0 0 25px;padding:clamp(10px,1.6vw,17px);border:1px solid rgba(218,190,125,.2);border-radius:8px;background:linear-gradient(130deg,rgba(255,255,255,.035),rgba(255,255,255,.008));box-shadow:0 18px 38px rgba(0,0,0,.24)}
.v101-suit-heading{display:flex;align-items:center;gap:10px;margin:0 0 11px;color:#e6d6ab;font:700 clamp(13px,1.8vw,18px)/1 Georgia,"Yu Mincho",serif;letter-spacing:.16em}
.v101-suit-heading .v101-suit-symbol{color:var(--v101-suit-color,#f0dfb0);font-size:1.55em;text-shadow:0 0 14px currentColor}
.v101-suit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(7px,1.45vw,15px)}
.v101-card-slot{position:relative;min-width:0;aspect-ratio:925/1281;overflow:hidden;padding:0;border:1px solid rgba(231,207,151,.48);border-radius:clamp(6px,.85vw,11px);color:#f8ebc9;background:#0c0b0a;box-shadow:0 9px 18px rgba(0,0,0,.44)}
button.v101-card-slot{cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
button.v101-card-slot:hover,button.v101-card-slot:focus-visible{z-index:2;transform:translateY(-4px);border-color:#f1d484;outline:2px solid rgba(241,212,132,.34);outline-offset:2px;box-shadow:0 14px 25px rgba(0,0,0,.58),0 0 19px rgba(217,178,84,.2)}
.v101-card-image{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none}
.v101-slot-index{position:absolute;z-index:3;top:5px;left:5px;min-width:25px;padding:3px 5px;border:1px solid rgba(255,245,215,.5);border-radius:4px;color:var(--v101-suit-color,#fff2c9);background:rgba(5,5,5,.84);font:800 clamp(8px,1.15vw,12px)/1 Georgia,serif;text-align:center;text-shadow:0 1px 2px #000}
.v101-card-caption{position:absolute;z-index:3;right:4px;bottom:4px;left:4px;overflow:hidden;padding:5px 4px;border:1px solid rgba(232,207,149,.34);border-radius:4px;color:#fff1c8;background:rgba(4,4,4,.83);font:700 clamp(7px,1.05vw,11px)/1.25 Georgia,"Yu Mincho",serif;letter-spacing:.03em;text-align:center;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}
.v101-card-slot.is-locked{display:grid;place-items:center;isolation:isolate;border-color:rgba(196,156,80,.38);background:linear-gradient(45deg,transparent 44%,rgba(230,192,108,.15) 45% 55%,transparent 56%) 0 0/18px 18px,linear-gradient(-45deg,transparent 44%,rgba(230,192,108,.11) 45% 55%,transparent 56%) 0 0/18px 18px,radial-gradient(circle at center,#711d22 0 6%,#301014 7% 28%,#120b0b 29% 100%)}
.v101-card-slot.is-locked::before,.v101-card-slot.is-locked::after{content:"";position:absolute;pointer-events:none}
.v101-card-slot.is-locked::before{inset:6%;z-index:-1;border:2px double rgba(238,207,132,.62);border-radius:inherit;box-shadow:inset 0 0 0 4px rgba(25,7,8,.76),inset 0 0 20px rgba(0,0,0,.68)}
.v101-card-slot.is-locked::after{width:40%;aspect-ratio:1;border:1px solid rgba(242,212,139,.62);transform:rotate(45deg);background:rgba(11,7,7,.42);box-shadow:0 0 0 5px rgba(112,28,33,.35)}
.v101-card-back-crest{position:relative;z-index:1;color:rgba(246,218,151,.78);font:700 clamp(20px,4.2vw,43px)/1 Georgia,serif;text-shadow:0 0 15px rgba(244,197,91,.38),0 2px 4px #000}
.v101-card-slot.is-locked .v101-card-caption{color:#bda980;letter-spacing:.12em}
.v101-joker-section .v101-suit-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.v101-encyclopedia-summary{color:#9f9582;font:600 10px/1.6 Georgia,"Yu Mincho",serif;letter-spacing:.08em;text-align:right}
body.v101-encyclopedia-open #character-detail-modal{z-index:10020!important}
body.v101-encyclopedia-open #character-detail-select{display:none!important}
@media(max-width:620px){.v101-encyclopedia-header{grid-template-columns:1fr;align-items:stretch;gap:12px}#v101-encyclopedia-close{width:100%}.v101-suit-section{margin-bottom:15px}.v101-suit-grid{gap:6px}.v101-slot-index{top:3px;left:3px;min-width:20px;padding:2px 3px}.v101-card-caption{right:2px;bottom:2px;left:2px;padding:3px 2px}}
@media(prefers-reduced-motion:reduce){button.v101-card-slot{transition-duration:.01ms}}

/* v262: Legacy global button layers use z-index:40!important. Keep archive
   cards local to each suit, below the mobile sticky header, including touch
   browsers which retain :hover after a tap. */
html.shocker-mobile-v252 #v101-character-encyclopedia .v101-encyclopedia-shell{
    box-sizing:border-box;
    min-width:0;
    max-width:100%;
}
html.shocker-mobile-v252 #v101-character-encyclopedia .v101-encyclopedia-shell > .v101-encyclopedia-header{
    z-index:10;
    isolation:isolate;
}
html.shocker-mobile-v252 #v101-character-encyclopedia .v101-suit-section{
    position:relative;
    z-index:0;
    isolation:isolate;
}
html.shocker-mobile-v252 #v101-character-encyclopedia .v101-card-slot,
html.shocker-mobile-v252 #v101-character-encyclopedia .v101-card-slot:hover,
html.shocker-mobile-v252 #v101-character-encyclopedia .v101-card-slot:focus-visible{
    position:relative;
    z-index:0!important;
    transform:none;
    translate:none;
    rotate:none;
    scale:none;
    isolation:isolate;
}
html.shocker-mobile-v252 #v101-character-encyclopedia .v101-card-image{
    position:static;
    inset:auto;
    max-width:100%;
    max-height:100%;
    transform:none;
    translate:none;
    rotate:none;
    scale:none;
}

/* Show owned skins and their equipment controls within the archive. */
#v269-gallery-chrome{position:fixed;z-index:10022;width:56px;display:flex;flex-direction:column;gap:10px;color:#ead8a5;}
#v269-gallery-skins{display:flex;flex-direction:column;gap:8px;max-height:min(52dvh,420px);overflow:auto;scrollbar-width:thin;}
#v269-gallery-skins .v269-gallery-skin{position:relative;flex:0 0 auto;width:50px;min-width:0!important;height:70px;min-height:0!important;padding:2px!important;overflow:hidden;border:1px solid #76664a!important;border-radius:3px!important;background:#100d0b!important;box-shadow:0 3px 10px #0008!important;cursor:pointer;}
#v269-gallery-skins .v269-gallery-skin[aria-pressed="true"]{border-color:#f0d48b!important;outline:1px solid #f0d48b;outline-offset:2px;}
#v269-gallery-skins .v269-gallery-skin img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;}
#v269-gallery-skins .v269-gallery-skin span{position:absolute;inset:auto 2px 2px;padding:2px 0;background:#090705df;color:#f7e9c7;font:700 9px/1.2 "Yu Gothic",sans-serif;text-align:center;pointer-events:none;}
#v269-gallery-controls{position:relative;display:flex;flex:0 0 auto;flex-direction:column;gap:6px;}
#v269-gallery-controls button[hidden],#v269-gallery-equip-status[hidden]{display:none!important;}
#v269-gallery-controls button{width:54px!important;min-width:0!important;min-height:32px!important;padding:5px 2px!important;border:1px solid #8a7550!important;border-radius:3px!important;background:linear-gradient(#30271c,#15110d)!important;color:#f1e1b9!important;font:700 10px/1.3 "Yu Gothic",sans-serif!important;letter-spacing:0!important;cursor:pointer;}
#v269-gallery-controls button[aria-pressed="false"]{color:#bdaf92!important;border-color:#594e3c!important;}
#v269-gallery-controls #v269-gallery-equip[aria-disabled="false"]{border-color:#cfaf69!important;background:linear-gradient(#71353a,#3a1a1d)!important;color:#fff0c9!important;}
#v269-gallery-controls #v269-gallery-equip[aria-disabled="true"]{color:#c9b48a!important;cursor:default;}
#v269-gallery-equip-status{position:absolute;inset:calc(100% + 5px) auto auto 0;z-index:1;width:max-content;max-width:min(230px,70vw);padding:5px 7px;border:1px solid #8a7550;border-radius:3px;background:#17110e;color:#f7e9c7;font:700 11px/1.4 "Yu Gothic",sans-serif;}
#v269-gallery-chrome button:focus-visible{outline:2px solid #ffe0a0!important;outline-offset:3px;}
body.v101-encyclopedia-open #character-detail-modal .character-detail-portrait-wrap[data-v269-animated] #character-card-stack-canvas{visibility:hidden!important;}
.v269-gallery-stage{position:absolute;inset:0;z-index:5;overflow:hidden;pointer-events:none;background:#0b0907;}
.v269-gallery-video{position:absolute;left:50%;top:50%;display:block;max-width:none!important;width:calc(100% - min(84px,24%));height:calc(100% - 48px);object-fit:contain;transform:translate(calc(-50% + 28px),calc(-50% + 13px));filter:brightness(.68) saturate(.86);pointer-events:none;z-index:0;}
.v269-gallery-video.is-front{z-index:1;transform:translate(calc(-50% - 28px),calc(-50% - 13px));filter:none;}
#character-detail-modal.v269-gallery-compact .character-detail-panel{grid-template-rows:76px minmax(0,1fr)!important;}
#character-detail-modal.v269-gallery-compact #v269-gallery-chrome{position:relative;inset:auto;grid-column:1/-1;grid-row:1;width:auto;min-width:0;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:7px 12px;border-bottom:1px solid #aa8d4b55;background:#0d0b09;z-index:6;}
#character-detail-modal.v269-gallery-compact #v269-gallery-skins{flex-direction:row;gap:9px;max-height:none;min-width:0;flex:1;padding:2px;}
#character-detail-modal.v269-gallery-compact #v269-gallery-skins .v269-gallery-skin{width:40px;height:56px;}
#character-detail-modal.v269-gallery-compact #v269-gallery-controls{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;gap:5px;max-width:190px;}
#character-detail-modal.v269-gallery-compact #v269-gallery-controls button{width:58px!important;min-height:30px!important;}
#character-detail-modal.v269-gallery-compact #v269-gallery-equip-status{right:0;left:auto;}
#character-detail-modal.v269-gallery-compact .character-detail-portrait-wrap{grid-column:1;grid-row:2;}
#character-detail-modal.v269-gallery-compact .character-detail-info{grid-column:2;grid-row:2;}
@media(max-width:720px){
html.shocker-mobile-v252 #character-detail-modal.v269-gallery-compact .character-detail-panel,
#character-detail-modal.v269-gallery-compact .character-detail-panel{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:76px minmax(150px,46%) minmax(0,1fr)!important;}
#character-detail-modal.v269-gallery-compact .character-detail-info{grid-column:1;grid-row:3;}
#character-detail-modal.v269-gallery-compact #v269-gallery-chrome{padding-inline:10px;gap:8px;}
.v269-gallery-video{width:76%;height:calc(100% - 48px);transform:translate(calc(-50% + min(28px,7.5vw)),calc(-50% + 13px));}
.v269-gallery-video.is-front{transform:translate(calc(-50% - min(28px,7.5vw)),calc(-50% - 13px));}
}
@media(orientation:landscape) and (max-height:560px){
html.shocker-mobile-v252 #character-detail-modal.v269-gallery-compact .character-detail-panel,
#character-detail-modal.v269-gallery-compact .character-detail-panel{grid-template-columns:minmax(140px,.78fr) minmax(220px,1.22fr)!important;grid-template-rows:64px minmax(0,1fr)!important;}
#character-detail-modal.v269-gallery-compact .character-detail-info{grid-column:2;grid-row:2;}
#character-detail-modal.v269-gallery-compact #v269-gallery-chrome{padding-block:3px;}
#character-detail-modal.v269-gallery-compact #v269-gallery-skins .v269-gallery-skin{height:50px;width:36px;}
}
/* These scoped rows outrank the native mobile portrait/mastery row presets;
   the extra rail gets its own track rather than taking the card's track. */
html body.v101-encyclopedia-open #character-detail-modal.v269-gallery-compact.v62-detail-modal .character-detail-panel{grid-template-rows:76px minmax(0,1fr)!important;}
@media(max-width:720px){
html body.v101-encyclopedia-open #character-detail-modal.v269-gallery-compact.v62-detail-modal .character-detail-panel{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:76px minmax(150px,46%) minmax(0,1fr)!important;}
}
@media(orientation:landscape) and (max-height:560px){
html body.v101-encyclopedia-open #character-detail-modal.v269-gallery-compact.v62-detail-modal .character-detail-panel{grid-template-columns:minmax(140px,.78fr) minmax(220px,1.22fr)!important;grid-template-rows:64px minmax(0,1fr)!important;}
}

/* V270: match the native canvas radius on the actual 728x1008 movie/poster. */
.v269-gallery-stage {container-type:size;}
.v269-gallery-video {
    --v270-box-w:calc(100cqw - min(84px,24cqw));
    --v270-box-h:calc(100cqh - 48px);
    --v270-picture-w:min(var(--v270-box-w),calc(var(--v270-box-h) * 728 / 1008));
    --v270-picture-h:min(var(--v270-box-h),calc(var(--v270-box-w) * 1008 / 728));
    clip-path:inset(
        max(0px,calc((var(--v270-box-h) - var(--v270-picture-h)) / 2))
        max(0px,calc((var(--v270-box-w) - var(--v270-picture-w)) / 2))
        round min(16px,calc(var(--v270-picture-w) * .06)));
}
@media(max-width:720px){.v269-gallery-video {--v270-box-w:76cqw;}}

/* The phone-only poster uses the exact front-card geometry while its movie prepares. */
html.shocker-mobile-v252 .v269-gallery-stage > .v277-gallery-poster{z-index:2;filter:none;pointer-events:none;}
html.shocker-mobile-v252 .v269-gallery-stage > .v277-gallery-poster[hidden]{display:none!important;}


/* SOURCE styles/rulebook.css */
:root {
    --v103-gold: #d9b766;
    --v103-gold-bright: #ffe4a1;
    --v103-ivory: #efe4c6;
    --v103-muted: #a99d82;
    --v103-red: #8d1828;
    --v103-ink: #07090a;
}

body.v103-rulebook-open {
    overflow: hidden !important;
}

#v103-rulebook[hidden] {
    display: none !important;
}

#v103-rulebook {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    padding: clamp(8px, 1.6vw, 24px);
    color: var(--v103-ivory);
    background:
        radial-gradient(circle at 16% 18%, rgba(146, 25, 42, .28), transparent 34%),
        radial-gradient(circle at 82% 86%, rgba(184, 137, 47, .15), transparent 31%),
        linear-gradient(135deg, rgba(3, 5, 6, .99), rgba(15, 10, 10, .99));
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
    isolation: isolate;
}

#v103-rulebook::before,
#v103-rulebook::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

#v103-rulebook::before {
    inset: 11px;
    border: 1px solid rgba(217, 183, 102, .27);
    box-shadow: inset 0 0 70px rgba(0, 0, 0, .86);
}

#v103-rulebook::after {
    inset: 0;
    z-index: -1;
    opacity: .2;
    background-image:
        linear-gradient(90deg, transparent 49.8%, rgba(217, 183, 102, .25) 50%, transparent 50.2%),
        linear-gradient(0deg, transparent 49.8%, rgba(217, 183, 102, .16) 50%, transparent 50.2%);
    background-size: 94px 94px;
    mask-image: radial-gradient(circle, #000, transparent 78%);
}

.v103-rulebook-shell {
    position: relative;
    width: min(1500px, 100%);
    height: min(920px, 100%);
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(217, 183, 102, .58);
    background: linear-gradient(145deg, rgba(19, 18, 16, .985), rgba(5, 7, 8, .99));
    box-shadow: 0 30px 90px rgba(0, 0, 0, .82), inset 0 1px 0 rgba(255, 242, 196, .08);
}

.v103-rulebook-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(15px, 2.2vw, 34px);
    border-bottom: 1px solid rgba(217, 183, 102, .28);
    background: linear-gradient(90deg, rgba(104, 16, 30, .38), transparent 47%);
}

.v103-rulebook-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.v103-rulebook-seal {
    width: 46px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 224, 150, .65);
    color: var(--v103-gold-bright);
    background: linear-gradient(145deg, #7c1425, #26070d 72%);
    font-size: 25px;
    box-shadow: 0 0 22px rgba(144, 20, 38, .36), inset 0 0 0 4px rgba(0, 0, 0, .25);
}

.v103-rulebook-kicker,
.v103-page-kicker,
.v103-visual-number {
    color: var(--v103-gold);
    font: 700 10px/1.2 "Courier New", monospace;
    letter-spacing: .2em;
}

#v103-rulebook-title {
    margin: 4px 0 0;
    color: #fff0c4;
    font-size: clamp(19px, 2.1vw, 30px);
    line-height: 1.1;
    letter-spacing: .08em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .75);
}

.v103-rulebook-close,
.v103-nav-button,
.v103-chapter-button {
    appearance: none;
    border: 1px solid rgba(217, 183, 102, .42);
    color: #dfd2ae;
    background: rgba(10, 11, 11, .88);
    cursor: pointer;
    font: inherit;
}

.v103-rulebook-close {
    min-height: 43px;
    padding: 8px 16px;
    letter-spacing: .08em;
}

.v103-rulebook-close:hover,
.v103-rulebook-close:focus-visible,
.v103-nav-button:hover:not(:disabled),
.v103-nav-button:focus-visible,
.v103-chapter-button:hover,
.v103-chapter-button:focus-visible {
    outline: none;
    border-color: var(--v103-gold-bright);
    color: #fff2ca;
    box-shadow: 0 0 0 2px rgba(217, 183, 102, .18);
}

.v103-chapters {
    display: grid;
    grid-template-columns: repeat(6, minmax(126px, 1fr));
    gap: 1px;
    overflow-x: auto;
    scrollbar-width: thin;
    border-bottom: 1px solid rgba(217, 183, 102, .24);
    background: rgba(217, 183, 102, .14);
}

.v103-chapter-button {
    position: relative;
    min-height: 54px;
    padding: 9px 11px 8px 42px;
    border: 0;
    text-align: left;
    white-space: nowrap;
}

.v103-chapter-button::before {
    content: attr(data-number);
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(217, 183, 102, .52);
    font: 700 10px/1 "Courier New", monospace;
}

.v103-chapter-button[aria-current="page"] {
    color: #fff0bd;
    background: linear-gradient(110deg, rgba(127, 20, 36, .95), rgba(38, 8, 13, .96));
    box-shadow: inset 0 -3px 0 var(--v103-gold);
}

.v103-rulebook-stage {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, .9fr);
    overflow: hidden;
}

.v103-visual {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-right: 1px solid rgba(217, 183, 102, .25);
    background: #030405;
}

.v103-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 68%, rgba(4, 6, 7, .82)),
        linear-gradient(0deg, rgba(4, 6, 7, .8), transparent 23% 80%, rgba(4, 6, 7, .34));
    box-shadow: inset 0 0 58px rgba(0, 0, 0, .72);
}

#v103-rulebook-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .3s ease, transform .7s ease;
}

#v103-rulebook-image.v103-loaded {
    opacity: .92;
    transform: scale(1);
}

.v103-visual-label {
    position: absolute;
    z-index: 2;
    left: clamp(14px, 2vw, 28px);
    bottom: clamp(13px, 2vw, 25px);
    max-width: calc(100% - 28px);
    padding: 10px 13px;
    border-left: 3px solid var(--v103-gold);
    background: linear-gradient(90deg, rgba(3, 5, 6, .86), rgba(3, 5, 6, .2));
    text-shadow: 0 2px 8px #000;
}

#v103-visual-caption {
    display: block;
    margin-top: 4px;
    color: #f2e6c8;
    font-size: clamp(12px, 1.05vw, 15px);
    line-height: 1.55;
}

.v103-rulebook-copy {
    min-height: 0;
    overflow-y: auto;
    padding: clamp(18px, 2.4vw, 35px);
    scrollbar-color: rgba(217, 183, 102, .46) rgba(0, 0, 0, .3);
}

#v103-page-title {
    margin: 8px 0 10px;
    color: #fff0c4;
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.2;
    letter-spacing: .06em;
}

#v103-page-lead {
    margin: 0 0 18px;
    color: #cfc2a3;
    font-size: clamp(12px, 1.15vw, 15px);
    line-height: 1.75;
}

.v103-rulebook-body {
    display: grid;
    gap: 10px;
}

.v103-rule,
.v103-special-rule {
    position: relative;
    padding: 11px 12px 11px 37px;
    border: 1px solid rgba(217, 183, 102, .18);
    background: linear-gradient(120deg, rgba(217, 183, 102, .08), rgba(255, 255, 255, .015));
    color: #ded3b7;
    font-size: clamp(11px, 1vw, 14px);
    line-height: 1.72;
}

.v103-rule::before {
    content: attr(data-step);
    position: absolute;
    left: 11px;
    top: 12px;
    color: var(--v103-gold-bright);
    font: 700 11px/1.55 "Courier New", monospace;
}

.v103-rule strong,
.v103-special-rule strong {
    color: #fff0c4;
}

.v103-card-order,
.v103-key-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.v103-card-order span,
.v103-key {
    min-width: 28px;
    padding: 5px 7px;
    border: 1px solid rgba(217, 183, 102, .35);
    color: #f4e8c7;
    background: rgba(3, 5, 6, .7);
    text-align: center;
    font: 700 11px/1.2 "Courier New", monospace;
}

.v103-card-order i {
    color: var(--v103-gold);
    font-style: normal;
}

.v103-note {
    padding: 10px 12px;
    border-left: 3px solid #a82539;
    color: #cbbf9f;
    background: rgba(108, 16, 30, .15);
    font-size: clamp(10px, .95vw, 13px);
    line-height: 1.65;
}

.v103-special-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.v103-special-rule {
    padding-left: 12px;
}

.v103-special-rule em {
    display: inline-grid;
    place-items: center;
    min-width: 27px;
    height: 27px;
    margin-right: 7px;
    border: 1px solid rgba(217, 183, 102, .4);
    color: var(--v103-gold-bright);
    background: rgba(110, 17, 31, .35);
    font-style: normal;
}

.v103-rulebook-footer {
    min-height: 62px;
    display: grid;
    grid-template-columns: minmax(112px, auto) 1fr minmax(112px, auto);
    align-items: center;
    gap: 15px;
    padding: 9px clamp(14px, 2.2vw, 34px);
    border-top: 1px solid rgba(217, 183, 102, .26);
    background: rgba(4, 6, 7, .96);
}

.v103-nav-button {
    min-height: 42px;
    padding: 8px 16px;
    letter-spacing: .08em;
}

.v103-nav-button:disabled {
    opacity: .32;
    cursor: default;
}

.v103-progress {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
}

#v103-page-count {
    color: #b7aa8e;
    font: 700 10px/1 "Courier New", monospace;
    letter-spacing: .18em;
}

.v103-progress-track {
    width: min(330px, 100%);
    height: 3px;
    overflow: hidden;
    background: rgba(217, 183, 102, .18);
}

#v103-progress-fill {
    width: 16.6667%;
    height: 100%;
    background: linear-gradient(90deg, #86172a, #f0cb70);
    transition: width .28s ease;
}

@media (max-width: 900px) {
    #v103-rulebook { padding: 0; }
    #v103-rulebook::before { display: none; }
    .v103-rulebook-shell { width: 100%; height: 100%; border: 0; }
    .v103-rulebook-stage { grid-template-columns: 1fr; grid-template-rows: minmax(210px, 42vh) minmax(0, 1fr); overflow: hidden; }
    .v103-visual { border-right: 0; border-bottom: 1px solid rgba(217, 183, 102, .25); }
    .v103-visual::after { background: linear-gradient(0deg, rgba(4, 6, 7, .86), transparent 37% 80%, rgba(4, 6, 7, .2)); }
    .v103-chapters { grid-template-columns: repeat(6, minmax(132px, 1fr)); }
    .v103-rulebook-copy { padding: 18px 17px 28px; }
}

@media (max-width: 560px) {
    .v103-rulebook-header { min-height: 62px; padding: 9px 11px; }
    .v103-rulebook-seal { width: 36px; height: 43px; font-size: 20px; }
    .v103-rulebook-kicker { font-size: 7px; }
    #v103-rulebook-title { font-size: 17px; }
    .v103-rulebook-close { min-height: 38px; padding: 7px 10px; font-size: 11px; }
    .v103-chapter-button { min-height: 47px; padding-block: 7px; font-size: 11px; }
    .v103-rulebook-stage { grid-template-rows: minmax(180px, 34vh) minmax(0, 1fr); }
    #v103-page-title { font-size: 24px; }
    .v103-rulebook-footer { min-height: 56px; grid-template-columns: 92px 1fr 92px; gap: 7px; padding: 7px 9px; }
    .v103-nav-button { min-height: 39px; padding: 7px 8px; font-size: 11px; }
    .v103-progress-track { width: 100%; }
}

@media (max-height: 650px) and (min-width: 901px) {
    .v103-rulebook-header { min-height: 58px; padding-block: 8px; }
    .v103-rulebook-seal { width: 37px; height: 43px; }
    .v103-chapter-button { min-height: 45px; }
    .v103-rulebook-footer { min-height: 52px; }
    .v103-rulebook-copy { padding-block: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    #v103-rulebook *,
    #v103-rulebook *::before,
    #v103-rulebook *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}


/* SOURCE styles/player-profile.css */
:root {
    --v105-gold: #d9b766;
    --v105-gold-bright: #ffe7a4;
    --v105-ivory: #f0e2bd;
    --v105-muted: #9d9278;
    --v105-ink: #050607;
    --v105-wine: #6f1421;
}

/* ホーム左上の「帝国身分証」。既存のブランドと一つの区画として扱う。 */
#home-screen .v105-home-identity-zone {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 20px);
}

#v105-home-profile-button {
    --v105-frame-main: #d8b55d;
    --v105-frame-light: #fff0b1;
    --v105-frame-dark: #6f4b17;
    --v105-frame-glow: rgba(216, 181, 93, .32);
    position: relative;
    flex: 0 0 auto;
    width: clamp(218px, 18.5vw, 286px);
    min-height: 62px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 5px 7px 5px 5px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid color-mix(in srgb, var(--v105-frame-main) 76%, #342718);
    border-radius: 2px;
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
    color: var(--v105-ivory);
    background:
        linear-gradient(100deg, color-mix(in srgb, var(--v105-frame-main) 11%, rgba(32, 20, 15, .98)), rgba(5, 7, 8, .98) 72%),
        #070707;
    text-align: left;
    box-shadow: inset 0 0 0 1px rgba(255, 245, 208, .035), 0 8px 20px rgba(0, 0, 0, .4);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

#v105-home-profile-button::before {
    content: "";
    position: absolute;
    inset: 4px;
    z-index: -1;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--v105-frame-main) 29%, transparent);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

#v105-home-profile-button::after {
    content: "♛";
    position: absolute;
    right: 21px;
    bottom: -18px;
    z-index: -1;
    color: color-mix(in srgb, var(--v105-frame-main) 16%, transparent);
    font: 900 54px/1 Georgia, serif;
    transform: rotate(-9deg);
    pointer-events: none;
}

#v105-home-profile-button:hover,
#v105-home-profile-button:focus-visible {
    transform: translateY(-1px);
    border-color: var(--v105-frame-light);
    filter: brightness(1.08);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--v105-frame-light) 24%, transparent), 0 0 19px var(--v105-frame-glow), 0 10px 24px rgba(0, 0, 0, .54);
    outline: none;
}

#v105-home-profile-button:active { transform: translateY(0) scale(.985); }

.v105-profile-emblem {
    position: relative;
    display: block;
    width: 52px;
    height: 52px;
    padding: 3px;
    overflow: hidden;
    clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
    background: linear-gradient(135deg, var(--v105-frame-light), var(--v105-frame-main) 42%, var(--v105-frame-dark));
    box-shadow: 0 0 13px var(--v105-frame-glow);
}

.v105-profile-emblem::after {
    content: "";
    position: absolute;
    inset: 5px;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--v105-frame-light) 58%, transparent);
    clip-path: inherit;
}

.v105-profile-emblem img {
    display: block;
    width: 100%;
    height: 100%;
    clip-path: inherit;
    object-fit: cover;
    object-position: 50% 22%;
    background: radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--v105-frame-main) 21%, #15110f), #050607 72%);
    filter: saturate(.93) contrast(1.04);
}

.v105-profile-copy { min-width: 0; display: block; }
.v105-profile-kicker {
    display: block;
    margin-bottom: 3px;
    overflow: hidden;
    color: color-mix(in srgb, var(--v105-frame-main) 82%, #c9b98d);
    font: 700 6.5px/1.1 "Courier New", monospace;
    letter-spacing: .17em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v105-profile-name {
    display: block;
    overflow: hidden;
    color: #f7e8be;
    font: 800 clamp(12px, 1.1vw, 15px)/1.15 Georgia, "Yu Mincho", serif;
    letter-spacing: .045em;
    text-shadow: 0 2px 4px #000;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v105-profile-title {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #9e9275;
    font: 700 8px/1.1 Georgia, "Yu Mincho", serif;
    letter-spacing: .05em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v105-profile-edit-mark {
    align-self: stretch;
    display: grid;
    place-items: center;
    border-left: 1px solid color-mix(in srgb, var(--v105-frame-main) 29%, transparent);
    color: color-mix(in srgb, var(--v105-frame-main) 82%, #ad9e79);
    font: 700 11px/1 Georgia, serif;
}

/* 縁の色は彩度を抑え、古い金属・宝石の質感として使う。 */
[data-v105-frame="imperial"] { --v105-frame-main:#d8b55d; --v105-frame-light:#fff0b1; --v105-frame-dark:#6f4b17; --v105-frame-glow:rgba(216,181,93,.34); }
[data-v105-frame="crimson"]  { --v105-frame-main:#9e3840; --v105-frame-light:#f08b8f; --v105-frame-dark:#491119; --v105-frame-glow:rgba(158,56,64,.36); }
[data-v105-frame="sapphire"] { --v105-frame-main:#315f83; --v105-frame-light:#83c9e9; --v105-frame-dark:#112d42; --v105-frame-glow:rgba(49,95,131,.4); }
[data-v105-frame="silver"]   { --v105-frame-main:#8c959b; --v105-frame-light:#f0f3ec; --v105-frame-dark:#3d454a; --v105-frame-glow:rgba(160,174,181,.3); }
[data-v105-frame="emerald"]  { --v105-frame-main:#33775a; --v105-frame-light:#8cd9aa; --v105-frame-dark:#173e2e; --v105-frame-glow:rgba(51,119,90,.39); }
[data-v105-frame="obsidian"] { --v105-frame-main:#4d405c; --v105-frame-light:#bca2cf; --v105-frame-dark:#17131d; --v105-frame-glow:rgba(110,82,135,.38); }

body.v105-profile-editor-open { overflow: hidden !important; }

#v105-profile-editor[hidden] { display: none !important; }
#v105-profile-editor {
    position: fixed;
    inset: 0;
    z-index: 2147483500 !important;
    display: grid;
    place-items: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    color: var(--v105-ivory);
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(8px) saturate(.75);
    -webkit-backdrop-filter: blur(8px) saturate(.75);
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
}

#v105-profile-editor::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background:
        radial-gradient(circle at 15% 30%, rgba(126, 24, 38, .55), transparent 31%),
        radial-gradient(circle at 85% 70%, rgba(26, 85, 95, .42), transparent 34%),
        repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, .025) 6px);
}

.v105-profile-panel {
    position: relative;
    width: min(920px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    border: 1px solid rgba(217, 183, 102, .72);
    border-radius: 3px;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
    background:
        radial-gradient(circle at 76% 18%, rgba(132, 31, 44, .15), transparent 34%),
        linear-gradient(142deg, #1c1512, #08090a 58%, #071216);
    box-shadow: 0 28px 85px rgba(0, 0, 0, .9), inset 0 0 55px rgba(0, 0, 0, .56);
}

.v105-profile-panel::before {
    content: "";
    position: absolute;
    inset: 7px;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(217, 183, 102, .18);
    clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 17px 100%, 0 calc(100% - 17px));
}

.v105-profile-panel-header {
    flex: 0 0 auto;
    position: relative;
    min-height: 74px;
    padding: 15px 58px 13px 22px;
    border-bottom: 1px solid rgba(217, 183, 102, .29);
    background: linear-gradient(90deg, rgba(111, 18, 31, .36), rgba(0, 0, 0, .12) 65%);
}
.v105-profile-panel-kicker {
    color: #ae9865;
    font: 700 8px/1.1 "Courier New", monospace;
    letter-spacing: .38em;
}
.v105-profile-panel-title {
    margin-top: 7px;
    color: #f5dfa4;
    font: 900 clamp(22px, 3.4vw, 34px)/1 Georgia, "Yu Mincho", serif;
    letter-spacing: .1em;
    text-shadow: 0 3px 0 #000, 0 0 18px rgba(217, 183, 102, .24);
}
.v105-profile-panel-subtitle {
    margin-top: 7px;
    color: #8e846f;
    font-size: 9px;
    letter-spacing: .05em;
}
#v105-profile-close {
    position: absolute;
    top: 15px;
    right: 17px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(217, 183, 102, .4);
    border-radius: 1px;
    color: #d6c597;
    background: rgba(6, 7, 8, .78);
    font: 400 21px/1 Georgia, serif;
    cursor: pointer;
}
#v105-profile-close:hover,
#v105-profile-close:focus-visible { border-color: #ffe3a0; color: #fff1c2; outline: none; }

.v105-profile-form {
    display: flex;
    flex-direction: column;
}
.v105-profile-panel-body {
    display: grid;
    grid-template-columns: minmax(230px, .72fr) minmax(0, 1.5fr);
    gap: 18px;
    padding: 18px 20px 16px;
    overflow: auto;
    scrollbar-color: rgba(217, 183, 102, .42) rgba(0, 0, 0, .3);
}

.v105-profile-preview-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.v105-section-label {
    color: #b29a65;
    font: 700 8px/1.1 "Courier New", monospace;
    letter-spacing: .28em;
}
.v105-profile-large-preview {
    --v105-frame-main:#d8b55d;
    --v105-frame-light:#fff0b1;
    --v105-frame-dark:#6f4b17;
    --v105-frame-glow:rgba(216,181,93,.34);
    position: relative;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 24px 16px 21px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--v105-frame-main) 68%, #302819);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    background:
        radial-gradient(circle at 50% 31%, color-mix(in srgb, var(--v105-frame-main) 20%, transparent), transparent 43%),
        linear-gradient(155deg, #181415, #050708 70%);
    box-shadow: inset 0 0 40px rgba(0,0,0,.58), 0 0 18px var(--v105-frame-glow);
}
.v105-profile-large-preview::before {
    content: "♠";
    position: absolute;
    right: -15px;
    top: -26px;
    color: color-mix(in srgb, var(--v105-frame-main) 13%, transparent);
    font: 900 150px/1 Georgia, serif;
    transform: rotate(-9deg);
}
.v105-profile-large-preview .v105-profile-emblem {
    width: 142px;
    height: 142px;
    padding: 5px;
    box-shadow: 0 0 27px var(--v105-frame-glow), 0 14px 28px rgba(0, 0, 0, .7);
}
.v105-profile-large-preview .v105-profile-emblem::after { inset: 8px; }
.v105-preview-character {
    position: relative;
    margin-top: 13px;
    max-width: 100%;
    overflow: hidden;
    color: color-mix(in srgb, var(--v105-frame-main) 84%, #efe0b7);
    font: 700 9px/1.15 Georgia, "Yu Mincho", serif;
    letter-spacing: .07em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v105-preview-name {
    position: relative;
    max-width: 100%;
    margin-top: 13px;
    overflow: hidden;
    color: #f8e9bd;
    font: 900 20px/1.15 Georgia, "Yu Mincho", serif;
    letter-spacing: .06em;
    text-shadow: 0 3px 5px #000;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v105-preview-title {
    position: relative;
    max-width: 100%;
    margin-top: 7px;
    overflow: hidden;
    color: #a99b7b;
    font: 700 10px/1.2 Georgia, "Yu Mincho", serif;
    letter-spacing: .06em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v105-preview-note {
    padding: 9px 10px;
    border-left: 2px solid rgba(217, 183, 102, .55);
    color: #827a69;
    background: rgba(0, 0, 0, .27);
    font-size: 8px;
    line-height: 1.55;
}

.v105-profile-fields { min-width: 0; }
.v105-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 8px;
}
.v105-field { min-width: 0; display: block; }
.v105-field > span {
    display: block;
    margin-bottom: 6px;
    color: #b6a987;
    font-size: 9px;
    letter-spacing: .08em;
}
.v105-field input {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid rgba(217, 183, 102, .34);
    border-radius: 1px;
    outline: none;
    color: #f3e5bb;
    background: linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(20, 15, 13, .76));
    font: 700 13px/1.2 Georgia, "Yu Mincho", serif;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45);
}
.v105-field input:focus {
    border-color: #e5c66e;
    box-shadow: 0 0 0 2px rgba(217, 183, 102, .12), inset 0 2px 8px rgba(0, 0, 0, .45);
}
.v105-field-help {
    display: block;
    margin-top: 5px;
    color: #716b5e;
    font: 700 7px/1.3 "Courier New", monospace;
}
.v105-option-section { margin-top: 16px; }
.v105-frame-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
}
.v105-frame-choice {
    --v105-frame-main:#d8b55d;
    --v105-frame-light:#fff0b1;
    --v105-frame-dark:#6f4b17;
    --v105-frame-glow:rgba(216,181,93,.34);
    min-width: 0;
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid rgba(217, 183, 102, .19);
    border-radius: 1px;
    color: #9b927e;
    background: rgba(3, 5, 6, .65);
    font: 700 9px/1.15 Georgia, "Yu Mincho", serif;
    text-align: left;
    cursor: pointer;
}
.v105-frame-choice:hover,
.v105-frame-choice:focus-visible { border-color: var(--v105-frame-main); color: #eadcb6; outline: none; }
.v105-frame-choice.is-selected {
    border-color: var(--v105-frame-light);
    color: #f5e5b9;
    background: linear-gradient(110deg, color-mix(in srgb, var(--v105-frame-main) 18%, #090909), #080909);
    box-shadow: 0 0 12px var(--v105-frame-glow), inset 0 1px rgba(255, 255, 255, .06);
}
.v105-frame-swatch {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
    color: #080808;
    background: linear-gradient(135deg, var(--v105-frame-light), var(--v105-frame-main) 50%, var(--v105-frame-dark));
    font-size: 9px;
    box-shadow: 0 0 8px var(--v105-frame-glow);
}
.v105-character-grid {
    display: grid;
    gap: 7px;
    max-height: 230px;
    margin-top: 8px;
    padding: 1px 4px 3px 1px;
    overflow: auto;
    scrollbar-color: rgba(217,183,102,.42) rgba(0,0,0,.3);
}
.v105-character-choice {
    --v105-character-gem: #d9b766;
    position: relative;
    min-width: 0;
    min-height: 102px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 3px;
    overflow: hidden;
    border: 1px solid rgba(217, 183, 102, .2);
    border-radius: 1px;
    color: #a79b7e;
    background: #060708;
    cursor: pointer;
}
.v105-character-choice:hover,
.v105-character-choice:focus-visible { border-color: color-mix(in srgb, var(--v105-character-gem) 74%, #fff); filter: brightness(1.1); outline: none; }
.v105-character-choice.is-selected {
    border-color: var(--v105-character-gem);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--v105-character-gem) 32%, transparent), 0 0 13px color-mix(in srgb, var(--v105-character-gem) 38%, transparent);
}
.v105-character-thumb {
    position: relative;
    flex: 1 1 auto;
    min-height: 72px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--v105-character-gem) 15%, #171415), #050607 75%);
}
.v105-character-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    filter: saturate(.9) contrast(1.04);
}
.v105-character-choice-name {
    display: block;
    padding: 5px 2px 3px;
    overflow: hidden;
    color: #bcb091;
    font: 700 7px/1.1 Georgia, "Yu Mincho", serif;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v105-character-choice.is-selected .v105-character-choice-name { color: #f0ddb0; }
.v105-character-choice.is-locked { cursor: not-allowed; opacity: .6; }
.v105-character-choice.is-locked .v105-character-thumb {
    display: grid;
    place-items: center;
    border: 1px solid rgba(217, 183, 102, .16);
    background:
        linear-gradient(45deg, transparent 48%, rgba(217,183,102,.15) 49% 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(217,183,102,.15) 49% 51%, transparent 52%),
        repeating-linear-gradient(45deg, #131213 0 5px, #090a0b 5px 10px);
}
.v105-character-choice.is-locked .v105-character-thumb::after {
    content: "♠";
    width: 28px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(217,183,102,.35);
    color: rgba(217,183,102,.55);
    background: #080909;
    font: 900 17px/1 Georgia, serif;
}

.v105-profile-panel-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 62px;
    padding: 10px 20px max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(217, 183, 102, .27);
    background: rgba(3, 4, 5, .9);
}
#v105-profile-status {
    min-width: 0;
    margin-right: auto;
    color: #9b8d70;
    font: 700 8px/1.35 "Courier New", monospace;
    letter-spacing: .06em;
}
.v105-profile-action {
    min-width: 118px;
    min-height: 41px;
    padding: 9px 14px;
    border: 1px solid rgba(217, 183, 102, .34);
    border-radius: 1px;
    color: #bdb092;
    background: linear-gradient(180deg, #28241e, #0b0c0c);
    font: 800 10px/1 Georgia, "Yu Mincho", serif;
    letter-spacing: .08em;
    cursor: pointer;
}
.v105-profile-action:hover,
.v105-profile-action:focus-visible { border-color: #e5c66e; color: #f5e6bd; outline: none; }
.v105-profile-action.primary {
    min-width: 164px;
    border-color: #f1d17a;
    color: #fff0bf;
    background: linear-gradient(110deg, #7d1826, #390a12 58%, #10191a);
    box-shadow: 0 0 18px rgba(157, 28, 43, .28), inset 0 1px rgba(255, 239, 187, .12);
}

@media (max-width: 900px) {
    #home-screen .v105-home-identity-zone { gap: 9px; }
    #v105-home-profile-button { width: 202px; }
    #home-screen .v105-home-identity-zone .home-brand-title { font-size: 28px !important; }
    .v105-profile-panel-body { grid-template-columns: 210px minmax(0, 1fr); gap: 13px; }
    .v105-character-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    #home-screen .v105-home-identity-zone .home-brand { display: none !important; }
    #v105-home-profile-button {
        width: clamp(154px, 43vw, 184px);
        min-height: 52px;
        grid-template-columns: 42px minmax(0, 1fr) 12px;
        gap: 6px;
        padding: 4px;
    }
    #v105-home-profile-button .v105-profile-emblem { width: 42px; height: 42px; padding: 2px; }
    #v105-home-profile-button .v105-profile-emblem::after { inset: 4px; }
    #v105-home-profile-button .v105-profile-kicker { font-size: 5.5px; letter-spacing: .1em; }
    #v105-home-profile-button .v105-profile-name { font-size: 11px; }
    #v105-home-profile-button .v105-profile-title { margin-top: 3px; font-size: 6.5px; }
    #v105-home-profile-button .v105-profile-edit-mark { font-size: 8px; }

    #v105-profile-editor { padding: max(7px, env(safe-area-inset-top)) max(7px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left)); }
    .v105-profile-panel-header { min-height: 65px; padding: 12px 49px 10px 14px; }
    .v105-profile-panel-kicker { font-size: 6px; letter-spacing: .23em; }
    .v105-profile-panel-title { margin-top: 6px; font-size: 21px; }
    .v105-profile-panel-subtitle { margin-top: 5px; font-size: 7px; }
    #v105-profile-close { top: 12px; right: 12px; width: 34px; height: 34px; }
    .v105-profile-panel-body { grid-template-columns: 1fr; gap: 14px; padding: 13px 12px; }
    .v105-profile-large-preview { min-height: 168px; padding: 14px 12px 12px; }
    .v105-profile-large-preview .v105-profile-emblem { width: 86px; height: 86px; padding: 4px; }
    .v105-profile-large-preview .v105-profile-emblem::after { inset: 6px; }
    .v105-preview-character { margin-top: 8px; font-size: 7px; }
    .v105-preview-name { margin-top: 8px; font-size: 15px; }
    .v105-preview-title { margin-top: 5px; font-size: 8px; }
    .v105-preview-note { display: none; }
    .v105-field-grid { grid-template-columns: 1fr; gap: 9px; }
    .v105-frame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v105-character-grid { grid-template-columns: repeat(4, minmax(70px, 1fr)); max-height: 210px; }
    .v105-character-choice { min-height: 94px; }
    .v105-profile-panel-actions { min-height: 57px; padding: 8px 11px max(8px, env(safe-area-inset-bottom)); }
    #v105-profile-status { display: none; }
    .v105-profile-action { flex: 1 1 0; min-width: 0; padding-inline: 8px; }
    .v105-profile-action.primary { min-width: 0; }
}

@media (max-width: 370px) {
    #v105-home-profile-button { width: 142px; }
    #home-screen.v62-shocker-home .home-resource { min-width: 58px !important; padding-inline: 5px !important; }
    #v105-home-profile-button .v105-profile-kicker { display: none; }
    .v105-character-grid { grid-template-columns: repeat(3, minmax(68px, 1fr)); }
}

@media (max-height: 650px) and (min-width: 701px) {
    .v105-profile-panel-header { min-height: 60px; padding-top: 10px; padding-bottom: 9px; }
    .v105-profile-panel-title { margin-top: 4px; font-size: 25px; }
    .v105-profile-panel-subtitle { display: none; }
    .v105-profile-panel-body { padding-top: 12px; padding-bottom: 10px; }
    .v105-profile-large-preview { min-height: 245px; }
    .v105-character-grid { max-height: 182px; }
}

@media (prefers-reduced-motion: reduce) {
    #v105-home-profile-button { transition-duration: .01ms; }
}

/* v256: readable profile artwork on touch phones; fine-pointer PC layout stays native. */
html.shocker-mobile-v252 body #v105-profile-editor #v105-profile-preview > .v105-profile-emblem {
    width:132px !important;
    height:132px !important;
    flex:0 0 auto;
}
html.shocker-mobile-v252 #v105-profile-editor #v105-character-grid {
    max-height:none;
    overflow:visible;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v105-profile-editor #v105-character-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v105-profile-editor #v105-character-grid .v105-character-choice {
    min-height:0 !important;
    padding:5px;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v105-profile-editor #v105-character-grid .v105-character-thumb {
    flex:0 0 auto;
    min-height:0;
    width:100%;
    aspect-ratio:925 / 1281;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v105-profile-editor #v105-character-grid .v105-character-thumb img {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v105-profile-editor #v105-character-grid .v105-character-choice-name {
    padding:8px 2px 5px;
    font-size:12px !important;
    line-height:1.5;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v105-profile-editor #v197-profile-rewards .v197-profile-reward-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v105-profile-editor #v197-profile-rewards .v197-reward-portrait {
    width:96px;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v105-profile-editor #v197-profile-rewards .v197-profile-reward-choice strong {
    font-size:12px;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v105-profile-editor #v197-profile-rewards .v197-profile-reward-choice small {
    font-size:11px;
}
/* Give the home portrait a full 48px instead of compressing it into a 36px tile. */
html.shocker-mobile-v252.shocker-mobile-portrait-v252 body #home-screen.v62-shocker-home .home-shell {
    grid-template-rows:108px 64px minmax(0,1fr) 46px !important;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 body #home-screen.v62-shocker-home .home-topbar {
    grid-template-rows:56px 44px !important;
    height:106px !important;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen .home-topbar:has(> #v226-player-hub-controls) #v105-home-profile-button {
    height:56px !important;
    min-height:56px !important;
    grid-template-columns:48px minmax(0,1fr) 10px !important;
    width:100% !important;
    max-width:none !important;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen .home-topbar:has(> #v226-player-hub-controls) #v105-home-profile-button > .v105-profile-emblem {
    width:48px !important;
    height:48px !important;
}

/* V286: square source windows already carry the face crop; preserve original color. */
body :is(#home-screen,#v105-profile-editor,#matching-screen,#v186-online-root) :is(.v105-profile-emblem,.v105-character-thumb,.v197-reward-portrait,.v167-match-portrait,.v191-room-profile-portrait) > img[src*="assets/profile-v286-"] {
    object-position:50% 50%!important;
    filter:none!important;
}


/* SOURCE styles/imperial-ranked.css */
/*
 * JavaScript integration contract:
 * - Remove [hidden] and set aria-hidden="false" to open a modal.
 * - Add .is-current / .is-win / .is-loss / .is-up / .is-down where relevant.
 * - All dynamic value/list containers have stable v106-* ids.
 */
:root {
    --v106-rank-gold: #d9b766;
    --v106-rank-gold-pale: #f5dfa4;
    --v106-rank-gold-dim: #8d7747;
    --v106-rank-red: #861c2d;
    --v106-rank-red-dark: #390a12;
    --v106-rank-ink: #050607;
    --v106-rank-panel: #0d0d0e;
    --v106-rank-line: rgba(217, 183, 102, .25);
    --v106-rank-muted: #918873;
}

#v106-rank-record-modal[hidden],
#v106-match-mode-modal[hidden] {
    display: none !important;
}

#v106-rank-record-modal,
#v106-match-mode-modal {
    position: fixed;
    inset: 0;
    z-index: 2147482500;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding:
        max(12px, env(safe-area-inset-top))
        max(12px, env(safe-area-inset-right))
        max(12px, env(safe-area-inset-bottom))
        max(12px, env(safe-area-inset-left));
    overflow: hidden;
    color: #ded1ad;
    background:
        radial-gradient(circle at 50% 32%, rgba(126, 20, 35, .21), transparent 42%),
        rgba(0, 0, 0, .88);
    backdrop-filter: blur(9px) saturate(.72);
    -webkit-backdrop-filter: blur(9px) saturate(.72);
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
}

#v106-rank-record-modal *,
#v106-match-mode-modal * {
    box-sizing: border-box;
}

.v106-rank-panel,
.v106-mode-panel {
    position: relative;
    width: min(1060px, 100%);
    max-height: min(880px, calc(100dvh - 24px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(217, 183, 102, .7);
    border-radius: 3px;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
    background:
        radial-gradient(circle at 82% 14%, rgba(125, 24, 38, .17), transparent 31%),
        linear-gradient(143deg, #1c1512, #08090a 58%, #071116);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .94), inset 0 0 70px rgba(0, 0, 0, .5);
}

.v106-rank-panel::before,
.v106-mode-panel::before {
    content: "";
    position: absolute;
    inset: 7px;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(217, 183, 102, .16);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.v106-rank-panel::after,
.v106-mode-panel::after {
    content: "♛";
    position: absolute;
    right: 28px;
    top: 5px;
    z-index: -1;
    color: rgba(217, 183, 102, .045);
    font: 900 150px/1 Georgia, serif;
    transform: rotate(8deg);
    pointer-events: none;
}

.v106-rank-header,
.v106-mode-header {
    position: relative;
    flex: 0 0 auto;
    min-height: 76px;
    padding: 15px 62px 13px 22px;
    border-bottom: 1px solid rgba(217, 183, 102, .28);
    background: linear-gradient(90deg, rgba(111, 18, 31, .38), rgba(0, 0, 0, .12) 68%);
}

.v106-rank-kicker {
    color: #ae9865;
    font: 700 8px/1.1 "Courier New", monospace;
    letter-spacing: .36em;
    text-transform: uppercase;
}

.v106-rank-heading {
    margin: 7px 0 0;
    color: var(--v106-rank-gold-pale);
    font: 900 clamp(22px, 3.4vw, 34px)/1 Georgia, "Yu Mincho", serif;
    letter-spacing: .1em;
    text-shadow: 0 3px 0 #000, 0 0 18px rgba(217, 183, 102, .22);
}

.v106-rank-subheading {
    margin-top: 7px;
    color: #8e846f;
    font-size: 9px;
    letter-spacing: .05em;
}

.v106-rank-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(217, 183, 102, .4);
    border-radius: 1px;
    color: #d6c597;
    background: rgba(6, 7, 8, .8);
    font: 400 21px/1 Georgia, serif;
    cursor: pointer;
}

.v106-rank-close:hover,
.v106-rank-close:focus-visible {
    border-color: #ffe3a0;
    color: #fff1c2;
    outline: none;
}

.v106-rank-scroll {
    min-height: 0;
    padding: 18px 20px 22px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(217, 183, 102, .42) rgba(0, 0, 0, .3);
}

.v106-rank-status {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) minmax(220px, .72fr);
    gap: 18px;
    align-items: center;
    min-height: 150px;
    padding: 18px 20px;
    overflow: hidden;
    border: 1px solid rgba(217, 183, 102, .38);
    background:
        linear-gradient(100deg, rgba(115, 21, 35, .22), transparent 54%),
        rgba(0, 0, 0, .4);
    box-shadow: inset 0 0 34px rgba(0, 0, 0, .55);
}

.v106-rank-crest {
    width: 96px;
    height: 112px;
    display: grid;
    place-items: center;
    justify-self: center;
    border: 1px solid rgba(245, 223, 164, .55);
    clip-path: polygon(50% 0, 92% 15%, 86% 75%, 50% 100%, 14% 75%, 8% 15%);
    color: #130e07;
    background: linear-gradient(145deg, #fff0b1, #d4ad4f 48%, #654315);
    box-shadow: 0 0 22px rgba(217, 183, 102, .25);
    font: 900 40px/1 Georgia, serif;
    text-shadow: 0 1px rgba(255,255,255,.28);
}

.v106-rank-primary {
    min-width: 0;
}

.v106-rank-eyebrow,
.v106-rank-section-kicker {
    color: #9e8b5f;
    font: 700 8px/1.2 "Courier New", monospace;
    letter-spacing: .25em;
}

#v106-current-rank {
    margin-top: 7px;
    overflow: hidden;
    color: #f6e4af;
    font: 900 clamp(23px, 4vw, 37px)/1.12 Georgia, "Yu Mincho", serif;
    letter-spacing: .07em;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 3px 0 #000, 0 0 16px rgba(217, 183, 102, .2);
}

#v106-succession-position:empty {
    display: none;
}

#v106-succession-position {
    margin-top: 6px;
    color: #dcb85d;
    font: 800 11px/1.2 Georgia, "Yu Mincho", serif;
    letter-spacing: .05em;
}

.v106-rank-rp-block {
    min-width: 0;
    padding: 12px 14px;
    border-left: 2px solid rgba(217, 183, 102, .52);
    background: rgba(0, 0, 0, .27);
}

.v106-rank-rp-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.v106-rank-rp-label {
    color: #93886f;
    font-size: 9px;
    letter-spacing: .08em;
}

#v106-current-rp {
    color: #f2d98f;
    font: 900 21px/1 Georgia, serif;
    white-space: nowrap;
}

.v106-rank-progress-track {
    position: relative;
    height: 8px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid rgba(217, 183, 102, .25);
    background: #020303;
}

#v106-rank-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #771525, #d3aa4d 82%, #ffedac);
    box-shadow: 0 0 10px rgba(217, 183, 102, .42);
    transition: width .45s ease;
}

.v106-rank-progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 9px;
    margin-top: 7px;
    color: #7f7766;
    font: 700 8px/1.3 "Courier New", monospace;
}

#v106-next-rank-copy {
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v106-rank-section {
    margin-top: 18px;
}

.v106-rank-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 9px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(217, 183, 102, .18);
}

.v106-rank-section-title {
    margin-top: 4px;
    color: #dfc98f;
    font: 900 15px/1.2 Georgia, "Yu Mincho", serif;
    letter-spacing: .09em;
}

.v106-rank-section-note {
    color: #6f695c;
    font: 700 7px/1.3 "Courier New", monospace;
    text-align: right;
}

.v106-rank-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
}

.v106-rank-metric {
    min-width: 0;
    min-height: 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border: 1px solid rgba(217, 183, 102, .2);
    background: linear-gradient(155deg, rgba(84, 19, 29, .14), rgba(0, 0, 0, .44));
}

.v106-rank-metric-label {
    color: #817966;
    font-size: 8px;
    letter-spacing: .06em;
    text-align: center;
}

.v106-rank-metric-value {
    max-width: 100%;
    margin-top: 8px;
    overflow: hidden;
    color: #ead8a7;
    font: 900 18px/1 Georgia, serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v106-rank-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 14px;
}

.v106-rank-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(217, 183, 102, .21);
    background: rgba(0, 0, 0, .34);
}

#v106-recent-match-list {
    display: grid;
    gap: 6px;
    min-height: 76px;
}

#v106-recent-match-list:empty::after {
    content: "まだランク戦の記録はありません。";
    display: grid;
    place-items: center;
    min-height: 76px;
    color: #6f695c;
    border: 1px dashed rgba(217, 183, 102, .16);
    font-size: 9px;
}

.v106-rank-history-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 7px 9px;
    border-left: 2px solid #665b43;
    color: #9e947d;
    background: rgba(255, 255, 255, .025);
    font-size: 9px;
}

.v106-rank-history-row.is-win { border-left-color: #d0aa4e; }
.v106-rank-history-row.is-loss { border-left-color: #7f1a2a; }
.v106-rank-history-result { color: #e0ca91; font-weight: 900; }
.v106-rank-history-rp.is-up { color: #dcbc62; }
.v106-rank-history-rp.is-down { color: #b7757e; }

#v106-rank-system-summary {
    min-height: 76px;
    color: #a59a80;
    font-size: 10px;
    line-height: 1.75;
}

#v106-rank-system-summary:empty::after {
    content: "勝敗による爵位点の増減と、皇位継承順位の概要を表示します。";
    color: #6f695c;
}

.v106-rank-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(217, 183, 102, .19);
    background: rgba(0, 0, 0, .32);
}

.v106-rank-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    color: #aa9f85;
    font-size: 9px;
}

.v106-rank-table th,
.v106-rank-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(217, 183, 102, .12);
    text-align: left;
}

.v106-rank-table th {
    color: #d7c28c;
    background: rgba(112, 23, 36, .18);
    font: 800 8px/1.2 "Courier New", monospace;
    letter-spacing: .14em;
}

.v106-rank-table tbody tr:last-child td { border-bottom: 0; }
.v106-rank-table tbody tr.is-current {
    color: #f0dca8;
    background: linear-gradient(90deg, rgba(130, 27, 43, .25), rgba(217, 183, 102, .07));
    box-shadow: inset 3px 0 #d9b766;
}

.v106-rank-footer,
.v106-mode-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 61px;
    padding: 10px 20px max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(217, 183, 102, .27);
    background: rgba(3, 4, 5, .91);
}

.v106-rank-footer-note {
    min-width: 0;
    margin-right: auto;
    color: #796f5b;
    font: 700 8px/1.35 "Courier New", monospace;
    letter-spacing: .05em;
}

.v106-rank-action {
    min-width: 144px;
    min-height: 41px;
    padding: 9px 15px;
    border: 1px solid rgba(217, 183, 102, .4);
    border-radius: 1px;
    color: #d7c69b;
    background: linear-gradient(180deg, #2b261f, #0b0c0c);
    font: 800 10px/1 Georgia, "Yu Mincho", serif;
    letter-spacing: .09em;
    cursor: pointer;
}

.v106-rank-action:hover,
.v106-rank-action:focus-visible {
    border-color: #ebcc72;
    color: #fff0bf;
    outline: none;
}

/* Match-mode choice modal */
.v106-mode-panel {
    width: min(760px, 100%);
}

.v106-mode-body {
    padding: 24px;
    overflow: auto;
}

.v106-mode-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.v106-mode-choice {
    position: relative;
    min-height: 244px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px 18px;
    overflow: hidden;
    border: 1px solid rgba(217, 183, 102, .27);
    border-radius: 1px;
    color: #a99e83;
    background:
        radial-gradient(circle at 82% 20%, rgba(217, 183, 102, .09), transparent 34%),
        linear-gradient(155deg, #171516, #050607 74%);
    font-family: Georgia, "Yu Mincho", serif;
    text-align: left;
    cursor: pointer;
}

.v106-mode-choice::after {
    position: absolute;
    right: -3px;
    bottom: -25px;
    color: rgba(217, 183, 102, .075);
    font: 900 125px/1 Georgia, serif;
    pointer-events: none;
}

#v106-select-free-match::after { content: "♠"; }
#v106-select-ranked-match::after { content: "♛"; }

.v106-mode-choice:hover,
.v106-mode-choice:focus-visible {
    border-color: #d9b766;
    color: #d9c899;
    outline: none;
    box-shadow: 0 0 22px rgba(217, 183, 102, .12), inset 0 0 28px rgba(217, 183, 102, .04);
    transform: translateY(-2px);
}

#v106-select-ranked-match {
    border-color: rgba(181, 45, 63, .5);
    background:
        radial-gradient(circle at 82% 20%, rgba(217, 183, 102, .11), transparent 34%),
        linear-gradient(145deg, rgba(116, 20, 34, .28), #070708 66%);
}

#v106-select-ranked-match:hover,
#v106-select-ranked-match:focus-visible {
    border-color: #e0bd67;
    box-shadow: 0 0 24px rgba(142, 25, 41, .28), inset 0 0 34px rgba(128, 22, 37, .12);
}

.v106-mode-choice-kicker {
    position: relative;
    z-index: 1;
    color: #8e7c55;
    font: 700 8px/1.2 "Courier New", monospace;
    letter-spacing: .25em;
}

.v106-mode-choice-title {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    color: #f0dca6;
    font: 900 25px/1.1 Georgia, "Yu Mincho", serif;
    letter-spacing: .09em;
}

.v106-mode-choice-copy {
    position: relative;
    z-index: 1;
    max-width: 88%;
    margin-top: 14px;
    color: #8f8774;
    font-size: 10px;
    line-height: 1.7;
}

.v106-mode-choice-meta {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 24px;
    color: #c4ad73;
    font: 800 8px/1.35 "Courier New", monospace;
    letter-spacing: .07em;
}

@media (max-width: 900px) {
    .v106-rank-status {
        grid-template-columns: 92px minmax(0, 1fr) minmax(205px, .65fr);
        gap: 13px;
        padding-inline: 14px;
    }
    .v106-rank-crest { width: 80px; height: 96px; font-size: 34px; }
    .v106-rank-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    #v106-rank-record-modal,
    #v106-match-mode-modal {
        padding:
            max(7px, env(safe-area-inset-top))
            max(7px, env(safe-area-inset-right))
            max(7px, env(safe-area-inset-bottom))
            max(7px, env(safe-area-inset-left));
    }
    .v106-rank-panel,
    .v106-mode-panel { max-height: calc(100dvh - 14px); }
    .v106-rank-header,
    .v106-mode-header { min-height: 66px; padding: 12px 51px 10px 14px; }
    .v106-rank-kicker { font-size: 6px; letter-spacing: .23em; }
    .v106-rank-heading { margin-top: 6px; font-size: 21px; }
    .v106-rank-subheading { margin-top: 5px; font-size: 7px; }
    .v106-rank-close { top: 12px; right: 12px; width: 34px; height: 34px; }
    .v106-rank-scroll { padding: 12px 11px 16px; }
    .v106-rank-status {
        grid-template-columns: 70px minmax(0, 1fr);
        min-height: 138px;
        gap: 10px;
        padding: 12px;
    }
    .v106-rank-crest { width: 62px; height: 76px; font-size: 27px; }
    #v106-current-rank { font-size: clamp(19px, 6vw, 25px); }
    .v106-rank-rp-block {
        grid-column: 1 / -1;
        padding: 9px 10px;
        border-left-width: 1px;
    }
    #v106-current-rp { font-size: 17px; }
    .v106-rank-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
    .v106-rank-metric { min-height: 70px; }
    .v106-rank-metric-label { font-size: 7px; }
    .v106-rank-metric-value { margin-top: 6px; font-size: 15px; }
    .v106-rank-two-column { grid-template-columns: 1fr; }
    .v106-rank-section-title { font-size: 13px; }
    .v106-rank-section-note { display: none; }
    .v106-rank-history-row { grid-template-columns: 43px minmax(0, 1fr) auto; gap: 7px; }
    .v106-rank-history-row > :nth-child(4) { display: none; }
    .v106-rank-footer,
    .v106-mode-footer { min-height: 56px; padding: 8px 11px max(8px, env(safe-area-inset-bottom)); }
    .v106-rank-footer-note { display: none; }
    .v106-rank-action { width: 100%; min-width: 0; }
    .v106-mode-body { padding: 13px 12px; }
    .v106-mode-choice-grid { grid-template-columns: 1fr; gap: 9px; }
    .v106-mode-choice { min-height: 154px; padding: 16px 14px 13px; }
    .v106-mode-choice-title { margin-top: 7px; font-size: 21px; }
    .v106-mode-choice-copy { max-width: 82%; margin-top: 9px; font-size: 9px; line-height: 1.55; }
    .v106-mode-choice-meta { padding-top: 13px; font-size: 7px; }
    .v106-mode-choice::after { right: 0; bottom: -19px; font-size: 94px; }
}

@media (max-width: 370px) {
    .v106-rank-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v106-mode-choice-copy { max-width: 78%; }
}

@media (max-height: 660px) and (min-width: 701px) {
    .v106-rank-header,
    .v106-mode-header { min-height: 61px; padding-top: 10px; padding-bottom: 9px; }
    .v106-rank-heading { margin-top: 4px; font-size: 25px; }
    .v106-rank-subheading { display: none; }
    .v106-rank-status { min-height: 126px; }
    .v106-mode-choice { min-height: 205px; }
}

@media (prefers-reduced-motion: reduce) {
    #v106-rank-progress-fill,
    .v106-mode-choice { transition-duration: .01ms !important; }
}

body.v106-rank-overlay-open,
body.v106-queue-overlay-open { overflow: hidden !important; }

#v43-match-result-reason { white-space: pre-line; }

#v105-home-profile-button .v105-profile-kicker { display: none !important; }
.v106-profile-rank {
    display: block;
    max-width: 100%;
    margin-top: 3px;
    overflow: hidden;
    color: #d7b65f;
    font: 800 7px/1.1 "Courier New", monospace;
    letter-spacing: .03em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v106-profile-preview-rank {
    position: relative;
    max-width: 92%;
    margin-top: 8px;
    padding: 5px 10px;
    overflow: hidden;
    border: 1px solid rgba(217, 183, 102, .32);
    color: #e7c970;
    background: rgba(0, 0, 0, .42);
    font: 800 8px/1.1 "Courier New", monospace;
    letter-spacing: .05em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v106-history-empty {
    min-height: 106px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 14px;
    border: 1px dashed rgba(217, 183, 102, .18);
    color: #756d5b;
    text-align: center;
}
.v106-history-empty span { color: #a58a4c; font-size: 22px; }
.v106-history-empty strong { color: #b9a77d; font-size: 10px; }
.v106-history-empty small { max-width: 390px; font-size: 8px; line-height: 1.55; }
.v106-rank-history-result { display: grid; gap: 3px; }
.v106-rank-history-result strong { color: #e0ca91; font-size: 10px; }
.v106-rank-history-result span { color: #716a5c; font-size: 7px; }
.v106-rank-history-teams { min-width: 0; display: grid; gap: 3px; }
.v106-rank-history-teams span,
.v106-rank-history-teams small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v106-rank-history-teams span { color: #b0a48a; }
.v106-rank-history-teams small { color: #716a5c; font-size: 7px; }
.v106-rank-history-rp { display: grid; gap: 3px; justify-items: end; font-weight: 900; white-space: nowrap; }
.v106-rank-history-rp small { color: #756e60; font-size: 7px; font-weight: 700; }
.v106-system-rules { display: grid; gap: 3px; margin: 9px 0; }
.v106-system-rules > div { display: grid; grid-template-columns: minmax(86px, .8fr) 1.2fr; gap: 8px; padding: 5px 7px; background: rgba(255,255,255,.025); }
.v106-system-rules dt { color: #c0ab77; }
.v106-system-rules dd { margin: 0; text-align: right; }
.v106-formation-summary { margin: 9px 0 0; padding-top: 8px; border-top: 1px solid rgba(217,183,102,.13); color: #c1ae7c; }
.v106-tier-gem {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border: 1px solid currentColor;
    transform: rotate(45deg);
    background: currentColor;
    opacity: .72;
}
.v106-rank-table tr[data-tone="iron"] { --v106-tier-color:#74777a; }
.v106-rank-table tr[data-tone="silver"] { --v106-tier-color:#c7cdd1; }
.v106-rank-table tr[data-tone="bronze"] { --v106-tier-color:#b87843; }
.v106-rank-table tr[data-tone="emerald"] { --v106-tier-color:#4f9a70; }
.v106-rank-table tr[data-tone="sapphire"] { --v106-tier-color:#5790bf; }
.v106-rank-table tr[data-tone="violet"] { --v106-tier-color:#9272bd; }
.v106-rank-table tr[data-tone="crimson"] { --v106-tier-color:#bd5363; }
.v106-rank-table tr[data-tone="gold"] { --v106-tier-color:#d9b766; }
.v106-rank-table tr[data-tone="platinum"] { --v106-tier-color:#e2e1d8; }
.v106-rank-table tr[data-tone="imperial"] { --v106-tier-color:#ffe59a; }
.v106-rank-table tr[data-tone] .v106-tier-gem { color: var(--v106-tier-color); }
.v106-rank-status[data-tone="iron"] .v106-rank-crest { filter: grayscale(.75) brightness(.78); }
.v106-rank-status[data-tone="silver"] .v106-rank-crest { filter: grayscale(.85) brightness(1.05); }
.v106-rank-status[data-tone="bronze"] .v106-rank-crest { filter: sepia(.55) saturate(.75); }
.v106-rank-status[data-tone="emerald"] .v106-rank-crest { filter: hue-rotate(69deg) saturate(.76); }
.v106-rank-status[data-tone="sapphire"] .v106-rank-crest { filter: hue-rotate(165deg) saturate(.84); }
.v106-rank-status[data-tone="violet"] .v106-rank-crest { filter: hue-rotate(222deg) saturate(.75); }
.v106-rank-status[data-tone="crimson"] .v106-rank-crest { filter: hue-rotate(302deg) saturate(1.1); }
.v106-rank-status[data-tone="platinum"] .v106-rank-crest { filter: grayscale(.72) brightness(1.18); }
.v106-rank-status[data-tone="imperial"] .v106-rank-crest { box-shadow: 0 0 28px rgba(255,213,91,.48); }
#v106-ranked-battle-badge {
    position: fixed;
    top: max(7px, env(safe-area-inset-top));
    left: 50%;
    z-index: 12940;
    display: none;
    grid-template-columns: auto auto;
    gap: 0 7px;
    align-items: center;
    max-width: min(300px, 60vw);
    padding: 5px 11px 6px;
    border: 1px solid rgba(229, 197, 112, .55);
    clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
    color: #f0d58b;
    background: linear-gradient(90deg, rgba(81, 10, 20, .94), rgba(7, 9, 10, .94));
    box-shadow: 0 5px 20px rgba(0,0,0,.55);
    transform: translateX(-50%);
    pointer-events: none;
}
#v106-ranked-battle-badge.show { display: grid; }
#v106-ranked-battle-badge > span { grid-row: 1 / 3; font-size: 18px; }
#v106-ranked-battle-badge > strong { font: 900 9px/1.1 Georgia, "Yu Mincho", serif; letter-spacing: .12em; }
#v106-ranked-battle-badge > small { overflow: hidden; color: #aa9870; font: 700 6px/1.1 "Courier New", monospace; white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 700px) {
    .v106-profile-rank { font-size: 6.5px; }
    .v106-profile-preview-rank { margin-top: 5px; padding-block: 4px; font-size: 7px; }
    .v106-system-rules > div { grid-template-columns: 1fr; gap: 2px; }
    .v106-system-rules dd { text-align: left; }
    #v106-ranked-battle-badge { top: max(37px, env(safe-area-inset-top)); max-width: 54vw; }
}


/* SOURCE styles/progressive-rank-insignia.css */
:root {
    --v107-iron: #74777a;
    --v107-gold: #d9b766;
    --v107-ivory: #f7e8b7;
    --v107-ink: #050607;
}

.v107-rank-insignia {
    --v107-main: #74777a;
    --v107-light: #b7b9ba;
    --v107-deep: #24272a;
    --v107-glow: rgba(116, 119, 122, .18);
    position: relative;
    width: 34px;
    aspect-ratio: .84;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    isolation: isolate;
    color: var(--v107-light);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .72));
}
.v107-rank-insignia[data-rank-id="knight"] { --v107-main:#c7cdd1; --v107-light:#f4f7f7; --v107-deep:#555d64; --v107-glow:rgba(199,205,209,.24); }
.v107-rank-insignia[data-rank-id="baronet"] { --v107-main:#b87843; --v107-light:#e4aa6c; --v107-deep:#4e2815; --v107-glow:rgba(184,120,67,.26); }
.v107-rank-insignia[data-rank-id="baron"] { --v107-main:#4f9a70; --v107-light:#9bddb3; --v107-deep:#153a28; --v107-glow:rgba(79,154,112,.3); }
.v107-rank-insignia[data-rank-id="viscount"] { --v107-main:#5790bf; --v107-light:#a7d5f5; --v107-deep:#18364f; --v107-glow:rgba(87,144,191,.34); }
.v107-rank-insignia[data-rank-id="count"] { --v107-main:#9272bd; --v107-light:#d1b6ed; --v107-deep:#382450; --v107-glow:rgba(146,114,189,.38); }
.v107-rank-insignia[data-rank-id="marquess"] { --v107-main:#bd5363; --v107-light:#f2a2aa; --v107-deep:#57131f; --v107-glow:rgba(189,83,99,.42); }
.v107-rank-insignia[data-rank-id="duke"] { --v107-main:#d9b766; --v107-light:#fff0ae; --v107-deep:#654613; --v107-glow:rgba(217,183,102,.48); }
.v107-rank-insignia[data-rank-id="grand-duke"] { --v107-main:#e2e1d8; --v107-light:#ffffff; --v107-deep:#77818c; --v107-glow:rgba(226,225,216,.52); }
.v107-rank-insignia[data-rank-id="succession"] { --v107-main:#ffe59a; --v107-light:#fff8d5; --v107-deep:#861c2d; --v107-glow:rgba(255,213,91,.66); }

.v107-crest-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    shape-rendering: geometricPrecision;
}
.v107-rank-insignia { aspect-ratio: 120 / 132; }
.v107-metal-light { stop-color: var(--v107-light); }
.v107-metal-main { stop-color: var(--v107-main); }
.v107-metal-deep { stop-color: var(--v107-deep); }
.v107-enamel-light { stop-color: var(--v107-enamel, #34404b); }
.v107-enamel-deep { stop-color: #101923; }
.v107-crest-outline,
.v107-crest-metal,
.v107-crest-band,
.v107-crest-ribbon-tail {
    stroke: #111922;
    stroke-width: 1.8;
    stroke-linejoin: round;
}
.v107-crest-metal { fill: var(--v107-main); }
.v107-crest-band { fill: var(--v107-light); }
.v107-crest-enamel { stroke: var(--v107-deep); stroke-width: 1.2; }
.v107-crest-motif { fill: var(--v107-light); stroke: #15202b; stroke-width: 1; stroke-linejoin: round; }
.v107-crest-cut { fill: var(--v107-enamel, #34404b); stroke: none; }
.v107-crest-gem { fill: var(--v107-gem, #bde4ed); stroke: var(--v107-light); stroke-width: 1; }
.v107-crest-rivets,
.v107-crest-stars,
.v107-crest-sparkles { fill: var(--v107-light); }
.v107-crest-ribbon-tail { fill: var(--v107-enamel, #34404b); }
.v107-crest-ribbon-seam { fill: none; stroke: var(--v107-main); stroke-width: 1.5; }
.v107-crest-bevel,
.v107-crest-highlight { fill: none; stroke: var(--v107-light); stroke-width: 1.5; stroke-linecap: round; opacity: .66; }
.v107-crest-engrave { fill: none; stroke: var(--v107-deep); stroke-width: 1.5; stroke-linecap: round; }
.v107-crest-halo { fill: none; stroke: var(--v107-main); stroke-width: 1; opacity: .6; }
.v107-rank-insignia[data-rank-id="knight"] { --v107-enamel:#425773; --v107-gem:#eef9ff; }
.v107-rank-insignia[data-rank-id="baronet"] { --v107-enamel:#654132; --v107-gem:#ffe2a2; }
.v107-rank-insignia[data-rank-id="baron"] { --v107-enamel:#1f5e4c; --v107-gem:#a7f0c8; }
.v107-rank-insignia[data-rank-id="viscount"] { --v107-enamel:#245684; --v107-gem:#94ddff; }
.v107-rank-insignia[data-rank-id="count"] { --v107-enamel:#583e7e; --v107-gem:#e2c7ff; }
.v107-rank-insignia[data-rank-id="marquess"] { --v107-enamel:#833044; --v107-gem:#ffb4aa; }
.v107-rank-insignia[data-rank-id="duke"] { --v107-enamel:#745822; --v107-gem:#e95878; }
.v107-rank-insignia[data-rank-id="grand-duke"] { --v107-enamel:#3b5570; --v107-gem:#86d9ff; }
.v107-rank-insignia[data-rank-id="succession"] { --v107-enamel:#8e243b; --v107-gem:#ff6785; --v107-deep:#8c622b; }
.v107-rank-insignia:is(.is-grade-8,.is-grade-9,.is-grade-10) {
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.8)) drop-shadow(0 0 5px var(--v107-glow));
}
.v107-rank-insignia.is-compact { width: 21px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.75)); }
.v107-rank-insignia.is-compact :is(.v107-crest-detail,.v107-crest-stars,.v107-crest-ribbon-seam,.v107-crest-halo) { display: none; }
.v107-rank-insignia.is-compact .v107-crest-outline { stroke-width: 2.8; }
.v107-rank-insignia.is-compact .v107-crest-motif { stroke-width: .5; }
.v107-rank-insignia.is-preview { width: 43px; }
.v107-rank-insignia.is-table { width: 29px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.72)); }
.v107-rank-insignia.is-table .v107-crest-sparkles { display: none; }
.v107-rank-insignia.is-hero { width: 104px; filter: drop-shadow(0 5px 7px rgba(0,0,0,.65)); }
#v106-ranked-battle-badge > .v107-ranked-battle-crest { display: grid; place-items: center; font-size: 0; }

.v107-home-rank-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 5px;
    align-items: center;
    margin-top: 3px;
}
#v105-home-profile-button { min-height:66px; }
.v107-home-rank-row .v106-profile-rank {
    min-width: 0;
    margin: 0;
    color: var(--v107-rank-color, #d7b65f);
    font-size: 9px;
    line-height: 1.18;
    white-space: pre-line;
}
.v107-preview-rank-row {
    position: relative;
    width: min(240px, 95%);
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    margin-top: 8px;
    padding: 7px 10px 7px 7px;
    border: 1px solid color-mix(in srgb, var(--v107-rank-color, #d9b766) 42%, transparent);
    background: linear-gradient(100deg, color-mix(in srgb, var(--v107-rank-color, #d9b766) 12%, transparent), rgba(0,0,0,.5));
    box-shadow: inset 0 0 16px rgba(0,0,0,.42);
}
.v107-preview-rank-copy { min-width:0; display:grid; gap:4px; text-align:left; }
.v107-preview-rank-kicker { color:#756e5d; font:700 6px/1 "Courier New", monospace; letter-spacing:.16em; }
.v107-preview-rank-honor { overflow:hidden; color:var(--v107-rank-color, #e4c66e); font:900 11px/1.15 Georgia, "Yu Mincho", serif; white-space:nowrap; text-overflow:ellipsis; }
.v107-preview-rank-row .v106-profile-preview-rank {
    max-width:100%;
    margin:0;
    padding:0;
    overflow:hidden;
    border:0;
    color:#9c9178;
    background:none;
    font:700 9px/1.2 "Courier New", monospace;
    white-space:nowrap;
    text-overflow:ellipsis;
}

#v106-current-rank-crest.v107-rank-crest-enhanced {
    width: 116px;
    height: 132px;
    overflow: visible;
    border: 0;
    clip-path: none;
    color: inherit;
    background: none;
    box-shadow: none;
    text-shadow: none;
    filter: none !important;
}
.v107-current-rank-honor {
    margin-top: 7px;
    overflow: hidden;
    color: var(--v107-rank-color, #d9b766);
    font: 900 12px/1.15 Georgia, "Yu Mincho", serif;
    letter-spacing: .12em;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 0 10px color-mix(in srgb, var(--v107-rank-color, #d9b766) 28%, transparent);
}
.v107-current-rank-honor::before { content:"爵位章 / "; color:#746b57; font:700 7px/1 "Courier New", monospace; letter-spacing:.12em; }

#v106-rank-tier-body .v106-tier-gem { display:none; }
.v107-tier-name-cell { display:grid; grid-template-columns:29px minmax(0,1fr); gap:9px; align-items:center; min-width:190px; }
.v107-tier-name-copy { min-width:0; display:grid; gap:3px; }
.v107-tier-honor { overflow:hidden; color:var(--v107-row-color, #c4b180); font:900 10px/1.15 Georgia, "Yu Mincho", serif; white-space:nowrap; text-overflow:ellipsis; }
.v107-tier-formal { color:#756e5e; font:700 7px/1.1 "Courier New", monospace; letter-spacing:.08em; }
#v106-rank-tier-body tr.is-current .v107-tier-honor { color:#ffe9aa; text-shadow:0 0 8px var(--v107-row-color, rgba(217,183,102,.4)); }

[data-v107-rank-id="squire"] { --v107-rank-color:#8a8d90; --v107-row-color:#8a8d90; }
[data-v107-rank-id="knight"] { --v107-rank-color:#d1d6d9; --v107-row-color:#d1d6d9; }
[data-v107-rank-id="baronet"] { --v107-rank-color:#c6864e; --v107-row-color:#c6864e; }
[data-v107-rank-id="baron"] { --v107-rank-color:#66b486; --v107-row-color:#66b486; }
[data-v107-rank-id="viscount"] { --v107-rank-color:#75afe0; --v107-row-color:#75afe0; }
[data-v107-rank-id="count"] { --v107-rank-color:#ad8bd7; --v107-row-color:#ad8bd7; }
[data-v107-rank-id="marquess"] { --v107-rank-color:#df7785; --v107-row-color:#df7785; }
[data-v107-rank-id="duke"] { --v107-rank-color:#e2bd62; --v107-row-color:#e2bd62; }
[data-v107-rank-id="grand-duke"] { --v107-rank-color:#f0efe8; --v107-row-color:#f0efe8; }
[data-v107-rank-id="succession"] { --v107-rank-color:#ffe59a; --v107-row-color:#ffe59a; }

@media (max-width: 700px) {
    #v105-home-profile-button { width:clamp(154px, 45vw, 205px); min-height:58px; }
    .v107-home-rank-row { grid-template-columns:19px minmax(0,1fr); gap:4px; }
    .v107-rank-insignia.is-compact { width:19px; }
    .v107-home-rank-row .v106-profile-rank {
        display:-webkit-box;
        overflow:hidden;
        font-size:9.5px;
        line-height:1.2;
        white-space:pre-line;
        -webkit-box-orient:vertical;
        -webkit-line-clamp:2;
    }
    .v107-home-succession-rp { display:none; }
    .v107-preview-rank-row { width:min(220px, 98%); margin-top:5px; padding:5px 8px 5px 5px; }
    .v107-rank-insignia.is-preview { width:35px; }
    .v107-preview-rank-row { grid-template-columns:35px minmax(0,1fr); gap:7px; }
    .v107-preview-rank-honor { font-size:11px; }
    .v107-preview-rank-row .v106-profile-preview-rank { font-size:9px; }
    #v106-current-rank-crest.v107-rank-crest-enhanced { width:76px; height:88px; }
    .v107-rank-insignia.is-hero { width:72px; }
    .v107-current-rank-honor { margin-top:5px; font-size:9px; }
    .v107-current-rank-honor::before { font-size:6px; }
    #v106-current-rank {
        overflow:visible;
        white-space:normal;
        text-overflow:clip;
        overflow-wrap:anywhere;
    }
    .v106-rank-table { width:100%; min-width:0; }
    .v106-rank-table thead {
        position:absolute;
        width:1px;
        height:1px;
        overflow:hidden;
        clip:rect(0 0 0 0);
        white-space:nowrap;
    }
    .v106-rank-table tbody { display:grid; gap:6px; padding:6px; }
    .v106-rank-table tbody tr {
        position:relative;
        display:grid;
        grid-template-columns:minmax(0,1fr) auto;
        gap:3px 10px;
        padding:8px 9px;
        border:1px solid rgba(217,183,102,.13);
        background:rgba(255,255,255,.018);
    }
    .v106-rank-table tbody tr.is-current { padding-top:24px; outline:1px solid #d9b766; outline-offset:-2px; }
    .v106-rank-table tbody tr.is-current::before {
        content:"現在";
        position:absolute;
        top:5px;
        right:7px;
        padding:2px 6px;
        color:#150f06;
        background:#e1be69;
        font:900 7px/1.2 "Yu Mincho", serif;
        letter-spacing:.08em;
    }
    .v106-rank-table td { display:block; padding:3px 4px; border:0; }
    .v106-rank-table td:first-child { grid-column:1 / -1; }
    .v106-rank-table td:nth-child(2)::before { content:"必要RP "; color:#756d5b; }
    .v106-rank-table td:nth-child(3) { color:#756d5b; text-align:right; }
    .v107-tier-name-cell { min-width:0; }
    .v107-tier-honor { font-size:11px; }
    .v106-rank-close,
    .v106-rank-action { min-width:44px; min-height:44px; }
    .v106-rank-close:focus-visible,
    .v106-rank-action:focus-visible { outline:2px solid #ffe3a0; outline-offset:2px; }
}
@media (max-width: 900px) and (min-width: 701px) {
    #v106-current-rank-crest.v107-rank-crest-enhanced { width:96px; height:108px; }
    .v107-rank-insignia.is-hero { width:88px; }
}
@media (max-width: 370px) {
    #v105-home-profile-button { width:154px; grid-template-columns:40px minmax(0,1fr); }
    #v105-home-profile-button .v105-profile-emblem { width:40px; height:40px; }
    #v105-home-profile-button .v105-profile-edit-mark { display:none; }
    .v107-home-rank-row .v106-profile-rank { font-size:9.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .v107-rank-insignia,
    .v107-crest-svg { animation:none !important; transition:none !important; }
}
@media (forced-colors: active) {
    .v107-rank-insignia,
    .v107-preview-rank-row,
    .v106-rank-table tbody tr.is-current { border:2px solid CanvasText; filter:none !important; }
    .v107-crest-svg * { stroke:CanvasText; fill:Canvas; }
    .v107-crest-motif > path:not(.v107-crest-cut),
    .v107-crest-metal,
    .v107-crest-band { fill:CanvasText; }
    .v107-crest-cut { fill:Canvas; }
    .v107-crest-halo,
    .v107-crest-sparkles { display:none !important; }
}


/* SOURCE styles/battle-portrait-fix.css */
/*
 * ミリア／オルディボの試合立ち絵を、キャラ選択と同じ通常・覚醒カードへ統一する。
 * v104の透過立ち絵向け指定より詳細度を上げ、メイン／サブの両方へ適用する。
 */
#player-battle-character.v49-card-battle-art[data-character-id="milia"],
#opponent-battle-character.v49-card-battle-art[data-character-id="milia"],
#player-battle-character.v49-card-battle-art[data-character-id="ordivo"],
#opponent-battle-character.v49-card-battle-art[data-character-id="ordivo"],
#player-sub-battle-character.v99-sub-character[data-character-id="milia"],
#opponent-sub-battle-character.v99-sub-character[data-character-id="milia"],
#player-sub-battle-character.v99-sub-character[data-character-id="ordivo"],
#opponent-sub-battle-character.v99-sub-character[data-character-id="ordivo"] {
    border: 2px solid rgba(246, 226, 164, .92) !important;
    background-color: #f7f3e8 !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
}

#player-sub-battle-character.v99-sub-character.is-awakened-portrait[data-character-id="milia"],
#opponent-sub-battle-character.v99-sub-character.is-awakened-portrait[data-character-id="milia"],
#player-sub-battle-character.v99-sub-character.is-awakened-portrait[data-character-id="ordivo"],
#opponent-sub-battle-character.v99-sub-character.is-awakened-portrait[data-character-id="ordivo"] {
    border-color: #f8e59a !important;
}

#player-battle-character.v49-card-battle-art[data-character-id="milia"],
#opponent-battle-character.v49-card-battle-art[data-character-id="milia"],
#player-battle-character.v49-card-battle-art[data-character-id="ordivo"],
#opponent-battle-character.v49-card-battle-art[data-character-id="ordivo"] {
    border-radius: 18px !important;
    overflow: hidden !important;
}

@media (max-width: 720px) {
    #player-battle-character.v49-card-battle-art[data-character-id="milia"],
    #opponent-battle-character.v49-card-battle-art[data-character-id="milia"],
    #player-battle-character.v49-card-battle-art[data-character-id="ordivo"],
    #opponent-battle-character.v49-card-battle-art[data-character-id="ordivo"] {
        border-radius: 14px !important;
    }
}


/* SOURCE styles/loading-art.css */
#v112-login-loading{--v113-ink:#090706;background:#030303}
#v112-login-loading::before{background:radial-gradient(ellipse at 68% 28%,var(--v112-glow),transparent 22%),radial-gradient(ellipse at 22% 76%,rgba(118,12,18,.2),transparent 28%),linear-gradient(118deg,#020202 0%,#100a08 43%,#050403 72%,#020202 100%);filter:saturate(1.1)}
#v112-login-loading::after{background:linear-gradient(90deg,rgba(0,0,0,.78),transparent 14% 86%,rgba(0,0,0,.78)),repeating-linear-gradient(0deg,transparent 0 3px,rgba(255,231,178,.014) 4px),radial-gradient(ellipse at center,transparent 28%,rgba(0,0,0,.88) 100%);mix-blend-mode:normal}
.v112-load-sigil{width:min(92vw,970px);top:51%;border-color:rgba(226,193,109,.08);box-shadow:0 0 0 38px rgba(215,178,87,.018),0 0 0 39px rgba(226,193,109,.055)}
.v112-load-sigil::before{inset:8%;border-color:rgba(226,193,109,.12)}.v112-load-sigil::after{inset:31%;border-color:rgba(226,193,109,.13)}
.v113-background-crown{position:absolute;left:50%;top:50%;z-index:1;translate:-50% -54%;color:rgba(221,190,110,.035);font:900 min(70vw,720px)/1 Georgia,serif;text-shadow:0 0 80px rgba(205,164,72,.08);pointer-events:none}
.v113-corner{position:absolute;z-index:3;width:96px;height:96px;pointer-events:none;opacity:.65}.v113-corner::before,.v113-corner::after{content:"";position:absolute;background:linear-gradient(90deg,#735321,#e4c477,#735321)}.v113-corner::before{width:82px;height:1px}.v113-corner::after{width:1px;height:82px}.v113-corner.tl{left:20px;top:20px}.v113-corner.tr{right:20px;top:20px;transform:scaleX(-1)}.v113-corner.bl{left:20px;bottom:20px;transform:scaleY(-1)}.v113-corner.br{right:20px;bottom:20px;transform:scale(-1)}
.v112-load-shell{width:min(1180px,calc(100% - 46px));min-height:min(700px,calc(100dvh - 42px));grid-template-columns:minmax(350px,.88fr) minmax(470px,1.12fr);overflow:visible;border:1px solid rgba(229,197,113,.55);background:linear-gradient(116deg,rgba(10,8,7,.96),rgba(25,15,13,.9) 43%,rgba(8,7,6,.97));box-shadow:0 0 0 1px #050403,0 0 0 4px rgba(169,126,47,.18),0 30px 110px #000,0 0 90px color-mix(in srgb,var(--v112-gem) 20%,transparent);clip-path:polygon(0 0,calc(100% - 38px) 0,100% 38px,100% 100%,38px 100%,0 calc(100% - 38px))}
.v112-load-shell::before{content:"TOP SECRET • IMPERIAL EYES ONLY";position:absolute;z-index:8;left:-1px;right:-1px;top:-25px;height:24px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(200,52,48,.54);border-bottom:0;background:linear-gradient(90deg,#240407,#78151b 50%,#240407);color:#f3c6ae;font:700 8px/1 "Courier New",monospace;letter-spacing:.42em;text-shadow:0 1px 2px #000}
.v112-load-shell::after{content:"";position:absolute;z-index:9;inset:9px;pointer-events:none;border:1px solid rgba(229,197,113,.12);clip-path:polygon(0 0,72px 0,72px 1px,1px 1px,1px 72px,0 72px,0 0,100% 0,100% 72px,calc(100% - 1px) 72px,calc(100% - 1px) 1px,calc(100% - 72px) 1px,calc(100% - 72px) 0,100% 0,100% 100%,calc(100% - 72px) 100%,calc(100% - 72px) calc(100% - 1px),calc(100% - 1px) calc(100% - 1px),calc(100% - 1px) calc(100% - 72px),100% calc(100% - 72px),100% 100%,0 100%,0 calc(100% - 72px),1px calc(100% - 72px),1px calc(100% - 1px),72px calc(100% - 1px),72px 100%)}
.v112-load-portrait{min-height:590px;border-right:0;clip-path:polygon(0 0,100% 0,87% 100%,0 100%);filter:saturate(.84) contrast(1.04);box-shadow:36px 0 70px rgba(0,0,0,.62)}
.v112-load-portrait::before{background:linear-gradient(to top,#080605 0%,rgba(8,6,5,.04) 45%,rgba(8,6,5,.34) 100%),linear-gradient(95deg,transparent 52%,#090706 94%)}
.v112-load-portrait::after{content:"WAR CABINET / PERSONNEL DOSSIER";left:25px;top:24px;border-color:rgba(235,205,127,.65);background:rgba(4,3,3,.72);box-shadow:0 0 0 3px rgba(0,0,0,.25)}
.v113-portrait-lines{position:absolute;z-index:2;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 0 63%,rgba(230,195,105,.28) 63.1% 63.25%,transparent 63.4%),repeating-linear-gradient(0deg,transparent 0 5px,rgba(255,255,255,.012) 6px)}
.v113-file-index{position:absolute;z-index:5;left:24px;bottom:25px;color:#e6cb8c;text-shadow:0 2px 6px #000;font:700 9px/1.6 "Courier New",monospace;letter-spacing:.17em}.v113-file-index strong{display:block;color:#fff0bd;font:700 31px/1 Georgia,serif;letter-spacing:.07em}
.v112-load-copy{z-index:3;padding:clamp(34px,4.2vw,68px) clamp(30px,4.8vw,74px) 40px clamp(16px,2.7vw,42px)}
.v112-load-system{padding-left:20px;border-left:2px solid #8d1720}.v112-load-auth{color:#e8c16e}.v112-load-auth::before{color:#b51d26;text-shadow:0 0 9px #e22}
.v112-load-rule{margin:16px 0 25px;background:linear-gradient(90deg,#9a1b23 0 9%,#d7b96c 9% 58%,transparent)}
.v112-load-kicker{display:flex;align-items:center;gap:11px;color:#9f8d66}.v112-load-kicker::before{content:"✦";color:var(--v112-gem);font-size:17px;text-shadow:0 0 13px var(--v112-gem)}
#v112-load-name{position:relative;margin-top:11px;padding-bottom:12px;font-size:clamp(37px,5vw,66px);text-transform:none}#v112-load-name::after{content:"";position:absolute;left:0;bottom:0;width:82px;height:2px;background:var(--v112-gem);box-shadow:0 0 13px var(--v112-gem)}
#v112-load-role{display:inline-flex;align-self:flex-start;margin-top:8px;padding:5px 9px;border:1px solid color-mix(in srgb,var(--v112-gem) 55%,transparent);background:color-mix(in srgb,var(--v112-gem) 10%,transparent);font-size:10px}
#v112-load-copytext{margin:21px 0 15px;padding-right:8px;color:#ddd0b3;line-height:1.82}
.v112-tactical-file{position:relative;grid-template-columns:70px 1fr;gap:8px 16px;padding:17px 19px 16px 24px;border:1px solid rgba(211,181,106,.18);border-left:3px solid var(--v112-gem);background:linear-gradient(105deg,color-mix(in srgb,var(--v112-gem) 9%,#100b09),rgba(255,255,255,.012));box-shadow:inset 0 0 30px rgba(0,0,0,.32)}
.v112-tactical-file::before{content:"TACTICAL ANALYSIS";position:absolute;right:12px;top:8px;color:rgba(220,193,127,.13);font:700 8px/1 "Courier New",monospace;letter-spacing:.18em}.v112-tactical-file span{color:#aa9567}.v112-tactical-file b{padding-bottom:5px;border-bottom:1px dotted rgba(223,193,116,.15)}
.v112-load-bottom{padding-top:20px}.v112-load-status{color:#beab7c}.v112-progress-track{height:7px;padding:1px;border:1px solid rgba(219,188,109,.23);background:#050403}#v112-progress{position:relative;background:linear-gradient(90deg,#7d1018,#d2aa4f 68%,#fff0ba)}#v112-progress::after{content:"";position:absolute;right:0;top:-4px;width:2px;height:13px;background:#fff0bd;box-shadow:0 0 12px #fff0bd}
.v112-load-tip{padding-left:12px;border-left:1px solid #7c151d;color:#8f8062}.v112-load-tip::before{content:"FIELD NOTE / ";color:#b8904b}
#v112-load-skip{border-color:rgba(186,143,56,.55);background:linear-gradient(#2a1c0c,#100b06);clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px)}
.v113-wax-seal{position:absolute;z-index:12;right:-25px;top:84px;width:74px;height:74px;display:grid;place-items:center;border-radius:46% 54% 49% 51%;background:radial-gradient(circle at 36% 30%,#bd3c39,#701217 48%,#320507 76%);color:#e7b6a2;border:2px solid #4f090d;box-shadow:0 7px 14px #000,0 0 0 4px rgba(89,10,14,.55),inset 0 0 0 5px rgba(247,165,139,.08);font:700 28px/1 Georgia,serif;text-shadow:0 2px 2px #3b0608;transform:rotate(9deg)}
.v113-wax-seal::before{content:"IMPERIAL ARCHIVE";position:absolute;inset:-12px;border:1px solid rgba(171,41,40,.35);border-radius:50%;font:5px/1 "Courier New",monospace;letter-spacing:.08em;color:#b75b50}
.v113-suit-rail{position:absolute;z-index:5;right:14px;top:50%;translate:0 -50%;display:grid;gap:16px;color:rgba(225,192,108,.19);font:22px/1 Georgia,serif}.v113-suit-rail span:nth-child(2),.v113-suit-rail span:nth-child(3){color:rgba(145,25,31,.32)}
.v113-classified-stamp{position:absolute;z-index:6;right:55px;top:139px;padding:6px 13px;border:2px solid rgba(154,29,34,.28);color:rgba(190,56,55,.29);font:900 15px/1 "Courier New",monospace;letter-spacing:.16em;transform:rotate(-7deg);pointer-events:none}
@media(max-width:760px){.v112-load-shell{grid-template-columns:39% 61%;width:calc(100% - 22px)}.v112-load-copy{padding:29px 25px 24px 13px}.v112-load-portrait{clip-path:polygon(0 0,100% 0,82% 100%,0 100%)}.v113-wax-seal{right:-14px;top:62px;width:58px;height:58px;font-size:21px}.v113-suit-rail{display:none}.v113-classified-stamp{right:28px;top:110px;font-size:10px}.v112-load-shell::before{letter-spacing:.22em}}
@media(max-width:470px){.v112-load-shell{display:block}.v112-load-portrait{clip-path:none}.v112-load-copy{padding-left:34%;padding-right:18px}.v113-wax-seal{right:8px;top:55px}.v113-file-index{left:12px;bottom:20px}.v113-file-index strong{font-size:23px}.v113-classified-stamp{display:none}.v112-tactical-file{grid-template-columns:1fr;padding:12px 13px}.v112-load-shell::before{font-size:6px;letter-spacing:.1em}.v113-corner{display:none}}


/* SOURCE styles/loading-visibility-fix.css */
body.v114-loading-requested{overflow:hidden!important;background:#030202!important}
body.v114-loading-requested::before{content:"IMPERIAL ARCHIVE — ACCESSING RECORDS";position:fixed;inset:0;z-index:2147482999;display:grid;place-items:center;background:radial-gradient(circle at center,#1e0d0c,#030202 62%);color:#d8bd79;font:700 11px/1.4 "Courier New",monospace;letter-spacing:.28em;text-align:center}
#v112-login-loading.show{display:grid!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}


/* SOURCE styles/final-transition.css */
/* 実際に試合直前に表示される出撃ロード画面。末尾配置で旧スタイルの再上書きを防ぐ。 */
#matching-screen{z-index:2147482500!important;padding:clamp(10px,2.5vw,28px)!important;background:#020303!important;color:#eee0bb!important;isolation:isolate!important}
#matching-screen::before{inset:0!important;border:0!important;background:radial-gradient(ellipse at 50% 44%,rgba(129,18,24,.22),transparent 33%),linear-gradient(115deg,transparent 49.9%,rgba(218,188,108,.055) 50%,transparent 50.1%),linear-gradient(90deg,#020303,#160a0b 50%,#020303)!important;opacity:1}
#matching-screen::after{inset:0!important;border:0!important;background:repeating-linear-gradient(0deg,transparent 0 4px,rgba(255,255,255,.014) 5px),radial-gradient(ellipse at center,transparent 35%,rgba(0,0,0,.86) 100%)!important}
.v118-matching-crown{position:absolute;z-index:1;left:50%;top:49%;translate:-50% -50%;color:rgba(218,188,108,.035);font:900 min(72vw,700px)/1 Georgia,serif;text-shadow:0 0 80px rgba(218,188,108,.08)}
.v118-matching-shell{position:relative;z-index:3;width:min(1060px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;padding:clamp(18px,3.5vw,42px);border:1px solid rgba(218,188,108,.55);background:linear-gradient(125deg,rgba(4,5,5,.92),rgba(29,12,13,.84),rgba(4,5,5,.94));box-shadow:0 28px 100px #000,0 0 0 4px rgba(151,112,41,.09),inset 0 0 70px rgba(0,0,0,.44);overflow:hidden}
.v118-matching-shell::before{content:"TOP SECRET • OPERATION DEPLOYMENT";position:absolute;top:0;left:0;right:0;height:20px;display:flex;align-items:center;justify-content:center;background:linear-gradient(90deg,#240407,#7d151c,#240407);border-bottom:1px solid rgba(224,190,107,.28);color:#efc7ac;font:800 7px/1 Courier New,monospace;letter-spacing:.38em}
.v118-matching-shell::after{content:"";position:absolute;inset:8px;border:1px solid rgba(218,188,108,.12);pointer-events:none}
.v118-matching-header{display:flex;justify-content:space-between;gap:12px;margin-top:8px;padding-bottom:10px;border-bottom:1px solid rgba(218,188,108,.22);color:#8e805f;font:700 7px/1 Courier New,monospace;letter-spacing:.16em}.v118-matching-header strong{color:#d2b461;font-weight:700}
#matching-screen .matching-kicker{margin:15px 0 6px!important;color:#b9494e!important;font:800 8px/1 Courier New,monospace!important;letter-spacing:.30em!important}
#matching-screen h1{margin:0 0 clamp(10px,2vh,20px)!important;color:#f5e7bf!important;font:500 clamp(27px,4vw,46px)/1.1 Georgia,Yu Mincho,serif!important;letter-spacing:.30em!important;text-indent:.30em;text-shadow:0 4px 2px #000,0 0 24px rgba(167,31,37,.48)}
.v118-matchup{display:grid;grid-template-columns:minmax(150px,1fr) 120px minmax(150px,1fr);align-items:center;gap:clamp(12px,3vw,42px);max-width:820px;margin:auto}
.v118-operative{position:relative;min-width:0}.v118-operative-portrait{position:relative;width:min(26vw,235px);height:min(34vh,285px);min-height:180px;margin:auto;border:1px solid rgba(218,188,108,.45);background-color:#080808;background-position:center 16%;background-size:cover;filter:saturate(.78) contrast(1.07);box-shadow:0 20px 42px #000;overflow:hidden;transition:filter .8s,opacity .8s,transform .8s}
.v118-operative-portrait::before{content:"";position:absolute;inset:0;background:linear-gradient(to top,#050505,transparent 48%),linear-gradient(90deg,rgba(0,0,0,.25),transparent 30% 70%,rgba(0,0,0,.35))}.v118-operative-portrait::after{content:"";position:absolute;inset:7px;border:1px solid rgba(218,188,108,.23)}
.v118-operative-portrait span{position:absolute;z-index:2;left:50%;top:50%;translate:-50% -50%;color:rgba(218,188,108,.55);font:800 9px/1.5 Courier New,monospace;letter-spacing:.15em}.v118-operative-portrait[style*="background-image"] span{display:none}
.v118-operative.enemy .v118-operative-portrait{border-color:rgba(180,43,49,.6)}.v118-operative-portrait.concealed{filter:grayscale(1) brightness(.13) contrast(1.5);transform:scale(.97)}
.opponent-identified .v118-operative.enemy .v118-operative-portrait{animation:v118Identify .9s ease both}
.v118-operative-code{margin-top:9px;color:#897b5b;font:700 7px/1 Courier New,monospace;letter-spacing:.25em}.v118-operative.enemy .v118-operative-code{color:#9e4b4d}.v118-operative-name{min-height:24px;margin-top:5px;color:#f0dfb5;font-size:clamp(12px,2vw,18px);letter-spacing:.12em;text-shadow:0 2px 7px #000}.v118-operative.enemy .v118-operative-name{color:#e9b5aa}
.v118-link-core{display:grid;place-items:center}.v118-link-core #matching-spinner{width:90px;height:90px;margin:0!important;border-color:rgba(218,188,108,.28)!important}.v118-link-core #matching-spinner::before{border-top-color:#d8b85f!important;border-right-color:#8c171e!important}.v118-link-core #matching-spinner::after{inset:20px!important;border-color:rgba(218,188,108,.48)!important}.v118-link-core #matching-spinner span{inset:34px!important;background:#80151b!important;box-shadow:0 0 20px rgba(188,39,45,.7)!important}.v118-link-core #matching-spinner b{position:absolute;z-index:4;inset:0;display:grid;place-items:center;color:#efd47f;font-size:20px}.v118-link-label{margin-top:10px;color:#9d8c64;font:700 7px/1 Courier New,monospace;letter-spacing:.18em}
.v118-matching-status{display:flex;justify-content:space-between;gap:12px;width:min(700px,88%);margin:clamp(12px,2.4vh,23px) auto 0;color:#cbbb96;font:700 9px/1.3 Courier New,monospace;letter-spacing:.09em}.v118-matching-status #matching-message{min-height:0!important;font:inherit!important;color:inherit!important}.v118-matching-status #matching-percent{color:#e0c36f}
#matching-screen .matching-progress-frame{width:min(700px,88%)!important;height:6px!important;margin:8px auto 0!important;padding:1px!important;border-color:rgba(218,188,108,.35)!important;background:#020202!important}#matching-screen #matching-progress{background:linear-gradient(90deg,#711118,#ba3035 42%,#d7b760 78%,#fff0b0)!important;box-shadow:0 0 14px rgba(190,53,57,.42)!important}
#matching-screen .matching-seal{display:flex;justify-content:space-between;gap:12px;margin:13px auto 0!important;padding:7px 0 0!important;border:0!important;border-top:1px solid rgba(218,188,108,.14)!important;color:#74694e!important;font:700 6px/1 Courier New,monospace!important;letter-spacing:.15em!important}#matching-screen .matching-seal span:first-child{color:#a6383c}#matching-screen .matching-seal b{font-weight:400}
/* 開戦命令も最終CSSとして固定 */
#startup-overlay{z-index:2147482500!important;background:radial-gradient(ellipse at 50% 55%,rgba(122,17,23,.25),transparent 35%),linear-gradient(90deg,#010202,#17090a 50%,#010202)!important}
#startup-overlay h1{color:#f5e7bf!important;font-family:Georgia,Yu Mincho,serif!important}.v117-order-no{color:#c6aa60!important}.v117-toss-rule{color:#c7b993!important}.toss-card-visual.card-back{background:radial-gradient(circle at center,#140607 0 14%,transparent 15%),repeating-conic-gradient(from 45deg,#120708 0 10deg,#66131a 10deg 20deg),#1b080a!important}.toss-card-visual.card-back::after{content:"♛"!important}
@keyframes v118Identify{0%{filter:grayscale(1) brightness(.13);opacity:.25;transform:scale(.97)}45%{filter:saturate(1.2) brightness(1.6);opacity:1;transform:scale(1.025)}100%{filter:saturate(.78) contrast(1.07);opacity:1;transform:scale(1)}}
@media(max-width:620px){.v118-matching-shell{padding:24px 10px 15px}.v118-matching-header span:last-child{display:none}.v118-matchup{grid-template-columns:1fr 50px 1fr;gap:7px}.v118-operative-portrait{width:min(35vw,165px);height:min(31vh,230px);min-height:155px}.v118-link-core #matching-spinner{width:48px;height:48px}.v118-link-core #matching-spinner::after{inset:10px!important}.v118-link-core #matching-spinner span{inset:19px!important}.v118-link-core #matching-spinner b{font-size:12px}.v118-link-label{font-size:5px;letter-spacing:.05em}.v118-operative-name{font-size:10px}.v118-matching-status{width:96%;font-size:7px}#matching-screen .matching-progress-frame{width:96%!important}#matching-screen .matching-seal{font-size:5px!important}.v118-matching-crown{font-size:90vw}}


/* SOURCE styles/prematch-final-lock.css */
/* 旧ドロー用アニメーションを完全に置換 */
.toss-card-visual.toss-waiting{animation:v119SealedArrival 1.3s cubic-bezier(.16,.82,.18,1) both,v119SealedFloat 2.6s 1.3s ease-in-out infinite!important}
.toss-card-visual.toss-reveal-left{animation:v119EnemyUnseal 1.4s cubic-bezier(.16,.84,.18,1) forwards!important}
.toss-card-visual.toss-reveal-right{animation:v119PlayerUnseal 1.4s cubic-bezier(.16,.84,.18,1) forwards!important}
.toss-card-visual.toss-winner{animation:v119ImperialVerdict 1.2s ease-in-out 2!important}
.toss-card-visual.toss-loser{animation:v119RejectedCard .65s ease both!important;filter:grayscale(.85) brightness(.38)!important}
.toss-card-visual.toss-draw{animation:v119Reinspect .5s linear 2!important}
#toss-impact-flash.active{animation:v119RedGoldFlash .62s ease-out both!important}
@keyframes v119SealedArrival{0%{opacity:0;transform:translateY(70px) scale(.82);filter:blur(9px) brightness(.3)}72%{opacity:1;transform:translateY(-5px) scale(1.025);filter:blur(0) brightness(1.08)}100%{opacity:1;transform:none;filter:none}}
@keyframes v119SealedFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes v119PlayerUnseal{0%{transform:translateX(8px) rotateY(0) scale(.97);filter:brightness(.65)}48%{transform:translateX(0) rotateY(-90deg) scale(1.06);filter:brightness(1.65)}52%{transform:rotateY(-270deg) scale(1.06);filter:brightness(1.65)}100%{transform:rotateY(-360deg);filter:brightness(1)}}
@keyframes v119EnemyUnseal{0%{transform:translateX(-8px) rotateY(0) scale(.97);filter:brightness(.65)}48%{transform:translateX(0) rotateY(90deg) scale(1.06);filter:brightness(1.65)}52%{transform:rotateY(270deg) scale(1.06);filter:brightness(1.65)}100%{transform:rotateY(360deg);filter:brightness(1)}}
@keyframes v119ImperialVerdict{0%,100%{transform:scale(1);filter:brightness(1)}50%{transform:translateY(-7px) scale(1.075);filter:brightness(1.3)}}
@keyframes v119RejectedCard{to{transform:translateY(5px) scale(.94);filter:grayscale(.85) brightness(.38)}}
@keyframes v119Reinspect{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@keyframes v119RedGoldFlash{0%{opacity:.78;background:#fff0bd}16%{opacity:0}32%{opacity:.20;background:#a4161f}100%{opacity:0}}

/* 先攻後攻決定後の対峙も同じ帝国機密作戦の美術へ統一 */
#v61-character-clash{--v119-red:#81131a;background:radial-gradient(circle at 50% 48%,rgba(215,185,103,.12),transparent 21%),linear-gradient(112deg,#030404 0 49.7%,#17090a 50.3% 100%)!important;color:#f5e7bf!important}
#v61-character-clash:before{opacity:.16!important;background:repeating-linear-gradient(0deg,transparent 0 4px,rgba(255,255,255,.025) 5px),linear-gradient(90deg,transparent 49.9%,rgba(215,185,103,.08) 50%,transparent 50.1%)!important;animation:none!important}
#v61-character-clash:after{box-shadow:inset 0 0 13vw rgba(0,0,0,.96),inset 0 0 32vw rgba(0,0,0,.52)!important}
.v61-clash-backlight{background:radial-gradient(circle at 20% 48%,color-mix(in srgb,var(--p-gem) 25%,transparent),transparent 31%),radial-gradient(circle at 80% 48%,color-mix(in srgb,var(--e-gem) 25%,transparent),transparent 31%),linear-gradient(108deg,transparent 0 48.8%,rgba(215,185,103,.22) 49.8% 50.2%,transparent 51.2%)!important;opacity:.72!important}
.v61-clash-speedlines{display:none!important}
.v61-fighter-player{background:#030606!important}.v61-fighter-enemy{background:#140607!important}
.v61-fighter-tint{opacity:.18!important;mix-blend-mode:color!important}
.v61-fighter-shade,.v61-fighter-enemy .v61-fighter-shade{background:linear-gradient(180deg,rgba(0,0,0,.08),transparent 36%,rgba(0,0,0,.86)),linear-gradient(90deg,transparent 50%,rgba(0,0,0,.72))!important}.v61-fighter-enemy .v61-fighter-shade{background:linear-gradient(180deg,rgba(0,0,0,.08),transparent 36%,rgba(0,0,0,.86)),linear-gradient(270deg,transparent 50%,rgba(0,0,0,.72))!important}
.v61-fighter-side{color:#d6b85f!important;border-color:rgba(214,184,95,.58)!important;background:rgba(4,4,4,.82)!important}.v61-fighter-enemy .v61-fighter-side{color:#d05b60!important;border-color:rgba(180,43,49,.62)!important}
.v61-fighter-name{color:#f4e7c4!important;text-shadow:0 4px 0 #000,0 9px 28px #000!important}.v61-fighter-role{color:#a99b79!important}
.v61-turn-order-badge{border-color:#d6b85f!important;background:linear-gradient(90deg,rgba(100,15,20,.92),rgba(3,3,3,.9))!important;box-shadow:0 0 17px rgba(159,33,39,.34)!important}.v61-fighter-enemy .v61-turn-order-badge{border-color:#a92c32!important;background:linear-gradient(270deg,rgba(100,15,20,.92),rgba(3,3,3,.9))!important}
.v61-clash-kicker{top:clamp(20px,4vh,46px)!important;color:#c5a958!important;letter-spacing:.42em!important}
.v61-clash-core{color:#e8cb76!important;background:radial-gradient(circle,#160709 0 42%,#73131a 43% 47%,#050505 49% 65%,transparent 67%)!important;border-radius:50%;text-shadow:0 3px 0 #000,0 0 15px rgba(232,203,118,.72)!important}
.v61-clash-ring{border-color:#e5c770!important;box-shadow:0 0 28px #e5c770,0 0 62px #8c171d!important}.v61-clash-slash{background:linear-gradient(180deg,transparent,#e7cb7a 18% 82%,transparent)!important;box-shadow:0 0 15px #e7cb7a,0 0 38px #86171d!important}.v61-clash-flash{background:#f5e4b0!important}
.v61-battle-start{color:#f7e9bf!important;border-color:rgba(215,185,103,.72)!important;background:linear-gradient(90deg,transparent,rgba(91,14,19,.88) 18% 82%,transparent)!important;text-shadow:0 3px 0 #000,0 0 20px rgba(215,185,103,.6)!important}.v61-battle-start small{color:#dbcda9!important}


/* SOURCE styles/playing-card-mode.css */
/* 共通：実物のトランプを選ぶ二段階モード選択 */
#v106-match-mode-modal,#v99-mode-overlay{perspective:1500px;background:radial-gradient(ellipse at 50% 42%,rgba(105,15,20,.25),transparent 37%),linear-gradient(90deg,rgba(1,2,2,.97),rgba(21,8,9,.97),rgba(1,2,2,.97))!important;backdrop-filter:none!important}
#v106-match-mode-modal::before,#v99-mode-overlay::before{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 4px,rgba(255,255,255,.014) 5px),radial-gradient(ellipse at center,transparent 35%,rgba(0,0,0,.82) 100%)}
.v106-mode-panel,.v99-mode-panel{position:relative!important;width:min(900px,96vw)!important;max-height:calc(100dvh - 18px)!important;padding:clamp(14px,2.2vw,25px)!important;overflow:auto!important;border:0!important;border-radius:0!important;clip-path:none!important;background:transparent!important;box-shadow:none!important;text-align:center!important}
.v106-mode-panel::before,.v106-mode-panel::after,.v99-mode-panel::before,.v99-mode-panel::after{display:none!important}
.v106-mode-header{min-height:0!important;padding:4px 45px 12px!important;border:0!important;background:transparent!important}.v106-mode-header .v106-rank-kicker,.v99-mode-kicker{color:#a08a59!important;font:700 8px/1 Courier New,monospace!important;letter-spacing:.34em!important}.v106-mode-header .v106-rank-heading,.v99-mode-panel h2{margin:9px 0 5px!important;color:#f3e4b9!important;font:500 clamp(25px,4vw,39px)/1.1 Georgia,Yu Mincho,serif!important;letter-spacing:.20em!important;text-shadow:0 3px 2px #000,0 0 18px rgba(160,31,37,.42)!important}.v106-rank-subheading,.v99-mode-panel>p{margin:0 0 13px!important;color:#9e9276!important;font-size:9px!important;line-height:1.6!important;letter-spacing:.08em}.v106-rank-close{top:2px!important;right:6px!important}
.v106-mode-body{padding:5px 12px 8px!important;overflow:visible!important}.v106-mode-choice-grid,.v99-mode-options{display:flex!important;align-items:center!important;justify-content:center!important;gap:clamp(18px,5vw,58px)!important}
.v120-playing-card{position:relative!important;flex:0 0 auto!important;width:clamp(150px,24vw,225px)!important;height:clamp(220px,35vw,330px)!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;border:0!important;border-radius:13px!important;background:transparent!important;box-shadow:none!important;color:inherit!important;text-align:center!important;transform:none!important;transition:opacity .45s ease,filter .45s ease,translate .45s ease!important;cursor:pointer!important;transform-style:preserve-3d!important}
.v120-playing-card:hover,.v120-playing-card:focus-visible{border:0!important;outline:none!important;box-shadow:none!important;transform:none!important}.v120-playing-card:focus-visible .v120-card-front{outline:3px solid #f1d478;outline-offset:5px}.v120-playing-card:disabled{cursor:default!important}
.v120-card-inner{position:absolute;inset:0;display:block;transform-style:preserve-3d;transition:transform .78s cubic-bezier(.17,.78,.16,1.06),filter .3s;will-change:transform}.v120-playing-card:hover:not(:disabled) .v120-card-inner{transform:translateY(-8px) rotateX(3deg) rotateZ(-.6deg);filter:brightness(1.1)}.v120-playing-card:nth-child(2):hover:not(:disabled) .v120-card-inner{transform:translateY(-8px) rotateX(3deg) rotateZ(.6deg)}
#v106-match-mode-modal:not([hidden]) .v120-playing-card:first-child .v120-card-inner,#v99-mode-overlay.show .v120-playing-card:first-child .v120-card-inner{animation:v120DealLeft .68s cubic-bezier(.16,.82,.18,1) both}#v106-match-mode-modal:not([hidden]) .v120-playing-card:nth-child(2) .v120-card-inner,#v99-mode-overlay.show .v120-playing-card:nth-child(2) .v120-card-inner{animation:v120DealRight .68s .1s cubic-bezier(.16,.82,.18,1) both}
.v120-card-face{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;overflow:hidden;border:1px solid #aa8c48;border-radius:13px;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 20px 46px rgba(0,0,0,.78),inset 0 0 0 5px #e6d5ad,inset 0 0 0 6px #83682f}
.v120-card-front{padding:34px 26px;background:radial-gradient(circle at 50% 34%,rgba(139,26,31,.10),transparent 28%),repeating-linear-gradient(0deg,rgba(86,62,24,.025) 0 1px,transparent 1px 4px),linear-gradient(145deg,#f3ead5,#d4c39e);color:#21180e}.v120-card-front::before{content:"";position:absolute;inset:11px;border:1px solid rgba(105,75,27,.54);border-radius:7px;pointer-events:none}.v120-card-front::after{content:"IMPERIAL DUEL";position:absolute;left:50%;bottom:17px;translate:-50% 0;color:#8a713f;font:700 6px/1 Courier New,monospace;letter-spacing:.22em;white-space:nowrap}
.v120-card-back{transform:rotateY(180deg);gap:16px;background:radial-gradient(circle at center,rgba(215,185,103,.14),transparent 20%),repeating-conic-gradient(from 45deg,#130607 0 9deg,#641219 9deg 18deg),#170709;color:#e3c56f;border-color:#bc9a4d;box-shadow:0 22px 52px #000,inset 0 0 0 7px #1c090b,inset 0 0 0 9px #b18d43}.v120-card-back::before{content:"";position:absolute;inset:14px;border:1px solid rgba(224,194,109,.6);border-radius:6px}.v120-card-back b{position:relative;z-index:1;font:900 62px/1 Georgia,serif;text-shadow:0 0 22px rgba(224,194,109,.48)}.v120-card-back small{position:relative;z-index:1;color:#d5b964!important;font:700 7px/1.5 Courier New,monospace!important;letter-spacing:.18em}
.v120-card-corner{position:absolute;z-index:2;top:18px;left:18px;display:grid;color:#25190c;font:700 16px/1 Georgia,serif}.v120-card-corner i{font-style:normal;font-size:13px}.v120-card-corner.bottom{top:auto;left:auto;right:18px;bottom:18px;transform:rotate(180deg)}.ranked .v120-card-corner,.ranked .v120-card-suit,.dual .v120-card-corner,.dual .v120-card-suit{color:#8b1720}.v120-card-suit{margin-bottom:8px;color:#242019;font:900 clamp(35px,6vw,56px)/1 Georgia,serif;opacity:.9}
.v120-playing-card .v106-mode-choice-kicker,.v120-playing-card .v99-mode-number{position:relative!important;z-index:1;color:#806a3a!important;font:700 7px/1.2 Courier New,monospace!important;letter-spacing:.20em!important}.v120-playing-card .v106-mode-choice-title,.v120-playing-card.v99-mode-card strong{position:relative!important;z-index:1;display:block!important;margin:9px 0!important;color:#24180c!important;font:800 clamp(16px,2.4vw,22px)/1.2 Georgia,Yu Mincho,serif!important;letter-spacing:.08em!important}.v120-playing-card .v106-mode-choice-copy,.v120-playing-card.v99-mode-card .v120-card-front>small{position:relative!important;z-index:1;display:block!important;max-width:100%!important;margin:0!important;color:#5e5039!important;font:500 9px/1.65 Georgia,Yu Mincho,serif!important}.v120-playing-card .v106-mode-choice-meta{position:relative!important;z-index:1;margin-top:14px!important;padding:7px 9px!important;border-top:1px solid rgba(99,72,25,.23);color:#7d6738!important;font:700 7px/1.3 Courier New,monospace!important;letter-spacing:.04em!important}
.v120-playing-card::after{display:none!important}.v120-playing-card.v120-selected{z-index:10;opacity:1!important;filter:none!important}.v120-playing-card.v120-selected .v120-card-inner{animation:none!important;transform:rotateY(180deg) scale(1.06)!important;filter:brightness(1.15)}.v120-playing-card.v120-dismissed{opacity:0!important;filter:blur(8px) brightness(.3)!important;translate:0 35px}.v120-resolving .v106-rank-close,.v120-resolving #v106-match-mode-cancel,.v120-resolving #v99-mode-cancel{pointer-events:none;opacity:.18}
.v106-mode-footer{padding:5px 12px 0!important;border:0!important;background:transparent!important}.v106-mode-footer .v106-rank-footer-note{color:#756b54!important;font-size:7px!important}.v106-mode-footer .v106-rank-action,#v99-mode-cancel{margin:8px auto 0!important;color:#a99b7d!important;text-decoration:none!important;border-bottom:1px solid rgba(215,185,103,.25)!important;background:transparent!important}.v99-mode-panel .v99-mode-options{margin-top:5px}
@keyframes v120DealLeft{0%{opacity:0;transform:translate3d(70px,70px,0) rotateZ(12deg) rotateY(-30deg) scale(.72);filter:blur(8px)}70%{opacity:1;transform:translate3d(-5px,-4px,0) rotateZ(-2deg) scale(1.03);filter:blur(0)}100%{opacity:1;transform:none;filter:none}}@keyframes v120DealRight{0%{opacity:0;transform:translate3d(-70px,70px,0) rotateZ(-12deg) rotateY(30deg) scale(.72);filter:blur(8px)}70%{opacity:1;transform:translate3d(5px,-4px,0) rotateZ(2deg) scale(1.03);filter:blur(0)}100%{opacity:1;transform:none;filter:none}}
@media(max-width:520px){.v106-mode-panel,.v99-mode-panel{padding:10px 3px!important}.v106-mode-choice-grid,.v99-mode-options{gap:11px!important}.v120-playing-card{width:min(42vw,170px)!important;height:min(62vw,250px)!important}.v120-card-front{padding:26px 16px}.v120-card-corner{top:13px;left:13px;font-size:12px}.v120-card-corner.bottom{right:13px;bottom:13px}.v120-card-suit{font-size:32px}.v120-playing-card .v106-mode-choice-title,.v120-playing-card.v99-mode-card strong{font-size:14px!important}.v120-playing-card .v106-mode-choice-copy,.v120-playing-card.v99-mode-card .v120-card-front>small{font-size:7px!important;line-height:1.45!important}.v120-playing-card .v106-mode-choice-meta{margin-top:8px!important;font-size:6px!important}.v106-rank-subheading,.v99-mode-panel>p{font-size:7px!important;margin-bottom:8px!important}.v106-mode-footer .v106-rank-footer-note{display:none}.v120-card-back b{font-size:44px}}
@media(prefers-reduced-motion:reduce){.v120-card-inner{transition-duration:.01ms!important}.v120-playing-card{transition-duration:.01ms!important}}


/* SOURCE styles/onboarding.css */
:root{
  --v122-ink:#030404;
  --v122-panel:#0c0c0b;
  --v122-red:#7f111c;
  --v122-red-bright:#b52b36;
  --v122-gold:#d8b85f;
  --v122-gold-light:#ffe6a0;
  --v122-ivory:#f2e5c2;
  --v122-muted:#a99b78;
  --v122-line:rgba(216,184,95,.38);
}
body.v122-overlay-open{overflow:hidden!important}
#v122-onboarding[hidden],#v122-skip-confirm[hidden],#v122-system-settings[hidden]{display:none!important}
#v122-onboarding{
  position:fixed;inset:0;z-index:2147483500;display:flex;flex-direction:column;
  min-height:100dvh;color:var(--v122-ivory);
  background:
    radial-gradient(circle at 76% 18%,rgba(127,17,28,.34),transparent 28%),
    radial-gradient(circle at 18% 84%,rgba(216,184,95,.09),transparent 28%),
    linear-gradient(122deg,#020303 0%,#100809 50%,#030404 100%);
  isolation:isolate;font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif;
}
#v122-onboarding::before{
  content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;opacity:.33;
  background:
    repeating-linear-gradient(0deg,transparent 0 4px,rgba(255,255,255,.018) 5px),
    repeating-linear-gradient(118deg,transparent 0 52px,rgba(216,184,95,.024) 53px 54px),
    linear-gradient(90deg,rgba(0,0,0,.8),transparent 15% 85%,rgba(0,0,0,.8));
}
#v122-onboarding::after{
  content:"♛";position:absolute;right:-.08em;bottom:-.28em;z-index:-1;
  color:rgba(216,184,95,.035);font:900 min(68vw,760px)/1 Georgia,serif;transform:rotate(-8deg);pointer-events:none;
}
.v122-topbar{
  position:relative;z-index:6;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;
  min-height:72px;padding:max(10px,env(safe-area-inset-top)) max(clamp(14px,3vw,42px),env(safe-area-inset-right)) 10px max(clamp(14px,3vw,42px),env(safe-area-inset-left));border-bottom:1px solid var(--v122-line);
  background:linear-gradient(90deg,rgba(0,0,0,.86),rgba(25,8,10,.78),rgba(0,0,0,.86));
  box-shadow:0 10px 30px rgba(0,0,0,.42);
}
.v122-brand{display:flex;align-items:center;gap:12px;min-width:0}
.v122-brand-seal{
  width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;color:var(--v122-gold-light);
  border:1px solid var(--v122-gold);outline:1px solid rgba(216,184,95,.27);outline-offset:3px;
  background:radial-gradient(circle,#8d1721 0 45%,#2a090c 47% 70%,#070707 72%);font:900 21px/1 Georgia,serif;
  clip-path:polygon(50% 0,88% 12%,100% 50%,88% 88%,50% 100%,12% 88%,0 50%,12% 12%);
  filter:drop-shadow(0 0 10px rgba(181,43,54,.45));
}
.v122-brand-copy{min-width:0}.v122-brand-copy b{display:block;color:#f6e7bd;font-size:clamp(12px,1.4vw,17px);letter-spacing:.17em;white-space:nowrap}.v122-brand-copy small{display:block;margin-top:4px;color:#8f8265;font:700 7px/1 "Courier New",monospace;letter-spacing:.24em;white-space:nowrap}
.v122-progress{display:flex;align-items:center;gap:6px;justify-self:center}
.v122-progress span{width:30px;height:3px;background:#3b3325;box-shadow:0 0 0 1px rgba(216,184,95,.12)}
.v122-progress span.done{background:var(--v122-gold);box-shadow:0 0 10px rgba(255,220,126,.55)}
.v122-progress-label{min-width:68px;color:#b9a77f!important;background:none!important;box-shadow:none!important;font:700 7px/1 "Courier New",monospace;letter-spacing:.15em;text-align:center}
.v122-skip{
  justify-self:end;min-height:38px;padding:0 16px;border:1px solid rgba(216,184,95,.42);color:#c9ba97;
  background:rgba(3,4,4,.72);font:700 10px/1 Georgia,"Yu Mincho",serif;letter-spacing:.1em;cursor:pointer;
  clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);
}
.v122-skip:hover,.v122-skip:focus-visible{color:#fff0c6;border-color:var(--v122-gold);background:rgba(86,13,19,.72);outline:none;box-shadow:0 0 18px rgba(181,43,54,.3)}
.v122-stage{position:relative;flex:1;min-height:0;overflow:auto;padding:clamp(14px,2.4vw,34px) max(clamp(14px,2.4vw,34px),env(safe-area-inset-right)) max(clamp(14px,2.4vw,34px),env(safe-area-inset-bottom)) max(clamp(14px,2.4vw,34px),env(safe-area-inset-left))}
.v122-view[hidden]{display:none!important}

/* First-login personnel registration */
#v122-registration{width:min(1120px,100%);min-height:calc(100dvh - 140px);margin:auto;display:grid;grid-template-columns:minmax(280px,.78fr) minmax(360px,1.22fr);align-items:stretch;border:1px solid rgba(216,184,95,.42);background:rgba(4,5,5,.78);box-shadow:0 30px 90px #000,inset 0 0 80px rgba(127,17,28,.07);clip-path:polygon(20px 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%,0 20px)}
.v122-registration-art{position:relative;min-height:520px;overflow:hidden;border-right:1px solid var(--v122-line);background:radial-gradient(circle at 48% 32%,rgba(181,43,54,.22),transparent 32%),linear-gradient(150deg,#17090b,#040505 62%)}
.v122-registration-art::before{content:"♛";position:absolute;left:50%;top:44%;translate:-50% -50%;color:rgba(216,184,95,.09);font:900 250px/1 Georgia,serif;text-shadow:0 0 50px rgba(181,43,54,.22)}
.v122-registration-art::after{content:"CLASSIFIED · IMPERIAL PERSONNEL ARCHIVE · CLASSIFIED";position:absolute;left:-60px;right:-60px;bottom:88px;padding:9px 0;color:rgba(255,229,158,.76);background:rgba(111,15,22,.82);border-block:1px solid rgba(216,184,95,.45);font:700 7px/1 "Courier New",monospace;letter-spacing:.29em;text-align:center;transform:rotate(-5deg)}
.v122-registration-sigil{position:absolute;left:50%;top:42%;translate:-50% -50%;width:132px;height:132px;display:grid;place-items:center;border:1px solid var(--v122-gold);outline:1px solid rgba(216,184,95,.28);outline-offset:9px;color:#f4daa0;background:radial-gradient(circle,#77121b 0 43%,#1e080a 45% 65%,#050606 67%);font:900 58px/1 Georgia,serif;clip-path:polygon(50% 0,88% 12%,100% 50%,88% 88%,50% 100%,12% 88%,0 50%,12% 12%);box-shadow:0 0 42px rgba(166,29,38,.43)}
.v122-registration-art-copy{position:absolute;left:30px;right:30px;bottom:26px;color:#8e8164;font:700 7px/1.8 "Courier New",monospace;letter-spacing:.16em;text-align:center}
.v122-registration-form-wrap{display:flex;flex-direction:column;justify-content:center;padding:clamp(30px,5vw,70px)}
.v122-kicker{color:var(--v122-gold);font:700 8px/1.4 "Courier New",monospace;letter-spacing:.32em;text-transform:uppercase}
.v122-registration-form-wrap h1{margin:15px 0 12px;color:#f7e8bf;font:500 clamp(28px,4vw,50px)/1.1 Georgia,"Yu Mincho",serif;letter-spacing:.12em;text-shadow:0 4px 3px #000,0 0 23px rgba(127,17,28,.38)}
.v122-lead{max-width:620px;margin:0 0 27px;color:#b8ab8c;font-size:clamp(12px,1.35vw,15px);line-height:2}
.v122-mentor-quote{position:relative;margin:0 0 28px;padding:18px 20px 18px 24px;border-left:2px solid var(--v122-red-bright);background:linear-gradient(90deg,rgba(127,17,28,.17),transparent);color:#e1d3b2;font-size:12px;line-height:1.85}.v122-mentor-quote b{display:block;margin-bottom:6px;color:var(--v122-gold);font:700 7px/1 "Courier New",monospace;letter-spacing:.22em}
.v122-field-label{display:flex;justify-content:space-between;align-items:end;margin-bottom:9px;color:#d7c7a0;font-size:11px;letter-spacing:.09em}.v122-field-label small{color:#776d58;font:700 7px/1 "Courier New",monospace;letter-spacing:.11em}
.v122-name-row{display:grid;grid-template-columns:1fr auto;gap:10px}
#v122-username{width:100%;height:55px;padding:0 17px;border:1px solid rgba(216,184,95,.46);border-radius:0;color:#fff0c7;background:#050606;font:700 19px/1 Georgia,"Yu Mincho",serif;letter-spacing:.08em;box-shadow:inset 0 0 23px rgba(0,0,0,.72)}
#v122-username:focus{border-color:var(--v122-gold-light);outline:none;box-shadow:0 0 0 2px rgba(216,184,95,.12),inset 0 0 23px #000}
.v122-name-count{min-width:55px;display:grid;place-items:center;border:1px solid rgba(216,184,95,.24);color:#95886b;background:#080808;font:700 9px/1 "Courier New",monospace}
.v122-form-error{min-height:22px;margin:8px 0 5px;color:#e37b7f;font-size:10px;letter-spacing:.04em}
.v122-dossier-preview{display:flex;align-items:center;gap:13px;margin:5px 0 22px;padding:13px 15px;border:1px solid rgba(216,184,95,.19);background:linear-gradient(90deg,rgba(216,184,95,.06),transparent)}
.v122-dossier-avatar{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;color:#0d0c09;background:linear-gradient(135deg,#ffecad,#9a722e);font:900 18px/1 Georgia,serif;clip-path:polygon(18% 0,82% 0,100% 18%,100% 82%,82% 100%,18% 100%,0 82%,0 18%)}
.v122-dossier-copy small{display:block;color:#82765d;font:700 7px/1 "Courier New",monospace;letter-spacing:.19em}.v122-dossier-copy b{display:block;margin-top:5px;color:#eadbb7;font-size:14px;letter-spacing:.08em}
.v122-primary,.v122-secondary,.v122-danger,.v122-chain-action{
  min-height:48px;padding:0 21px;border:1px solid rgba(216,184,95,.54);border-radius:0;color:#f8e7b8;background:linear-gradient(135deg,#75121c,#3b0b10);font:700 12px/1 Georgia,"Yu Mincho",serif;letter-spacing:.12em;cursor:pointer;clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);box-shadow:0 9px 23px rgba(0,0,0,.34),inset 0 0 15px rgba(255,202,91,.05)}
.v122-primary:hover,.v122-primary:focus-visible,.v122-chain-action:hover,.v122-chain-action:focus-visible{border-color:var(--v122-gold-light);filter:brightness(1.13);outline:none;box-shadow:0 0 20px rgba(181,43,54,.34)}
.v122-primary:disabled,.v122-chain-action:disabled{opacity:.32;cursor:not-allowed;filter:none}
.v122-secondary{color:#c7ba99;background:#070808;border-color:rgba(216,184,95,.3)}.v122-secondary:hover,.v122-secondary:focus-visible{color:#fff0c6;border-color:var(--v122-gold);outline:none}
.v122-danger{color:#efc6c7;background:linear-gradient(135deg,#601018,#230608);border-color:rgba(211,77,84,.62)}

/* Scripted live combat training */
#v122-tutorial{width:min(1380px,100%);margin:0 auto;display:grid;grid-template-columns:minmax(230px,290px) minmax(0,1fr);gap:clamp(12px,2vw,24px)}
.v122-mentor-panel{position:relative;display:flex;flex-direction:column;min-height:640px;overflow:hidden;border:1px solid var(--v122-line);background:linear-gradient(180deg,rgba(26,9,11,.94),rgba(3,4,4,.96));box-shadow:0 20px 50px #000;clip-path:polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px)}
.v122-mentor-portrait{position:relative;flex:1;min-height:260px;background-position:50% 18%;background-size:cover;background-repeat:no-repeat;filter:saturate(.78) contrast(1.07);isolation:isolate}
.v122-mentor-portrait::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 34%,#070708 95%),linear-gradient(90deg,rgba(0,0,0,.42),transparent 40% 70%,rgba(84,12,18,.26));z-index:1}
.v122-mentor-portrait::after{content:"FIELD INSTRUCTOR";position:absolute;right:-42px;top:72px;z-index:2;padding:6px 50px;color:#e6c96f;background:rgba(100,15,22,.87);border-block:1px solid rgba(216,184,95,.5);font:700 6px/1 "Courier New",monospace;letter-spacing:.22em;transform:rotate(90deg)}
.v122-mentor-id{position:relative;z-index:3;margin-top:-58px;padding:0 20px 19px}.v122-mentor-id small{display:block;color:#b3995e;font:700 7px/1 "Courier New",monospace;letter-spacing:.24em}.v122-mentor-id b{display:block;margin-top:7px;color:#f4e2b7;font-size:22px;letter-spacing:.15em;text-shadow:0 3px 2px #000}.v122-mentor-id span{display:block;margin-top:5px;color:#8f8268;font-size:9px;letter-spacing:.12em}
.v122-lesson-index{padding:15px 20px;border-top:1px solid rgba(216,184,95,.24);color:#9e8c65;background:rgba(0,0,0,.38);font:700 8px/1.6 "Courier New",monospace;letter-spacing:.15em}
.v122-lesson-index b{display:block;color:var(--v122-gold-light);font-size:13px;letter-spacing:.1em}
.v122-training-main{display:flex;flex-direction:column;gap:12px;min-width:0}
.v122-battle-board{position:relative;min-height:520px;padding:13px clamp(10px,2vw,22px);overflow:hidden;border:1px solid rgba(216,184,95,.42);background:radial-gradient(ellipse at 50% 50%,rgba(127,17,28,.22),transparent 35%),linear-gradient(110deg,#071012,#100708 50%,#070b0c);box-shadow:0 24px 70px #000,inset 0 0 80px rgba(0,0,0,.68);clip-path:polygon(16px 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%,0 16px)}
.v122-battle-board::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 49.88%,rgba(216,184,95,.13) 50%,transparent 50.12%),repeating-linear-gradient(0deg,transparent 0 34px,rgba(216,184,95,.018) 35px)}
.v122-side{position:relative;z-index:1}.v122-side-head{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;margin-bottom:8px}.v122-side-title small{display:block;color:#83775f;font:700 6px/1 "Courier New",monospace;letter-spacing:.2em}.v122-side-title b{display:block;margin-top:4px;color:#e8dab8;font-size:11px;letter-spacing:.1em}.v122-opponent .v122-side-title b{color:#e8b4b7}
.v122-intel{display:flex;align-items:center;gap:6px}.v122-intel span{padding:4px 7px;border:1px solid rgba(216,184,95,.24);color:#958568;background:rgba(0,0,0,.55);font:700 6px/1 "Courier New",monospace;letter-spacing:.1em}.v122-intel .hot{color:#f2b8b9;border-color:rgba(192,47,55,.6);background:rgba(111,12,19,.52);box-shadow:0 0 12px rgba(181,43,54,.2)}
.v122-zone{position:relative;display:flex;justify-content:center;align-items:center;gap:clamp(6px,1.1vw,12px);min-height:112px;padding:7px;border:1px solid rgba(216,184,95,.13);background:rgba(0,0,0,.24)}
.v122-zone::before{content:attr(data-label);position:absolute;left:8px;top:6px;color:rgba(216,184,95,.28);font:700 6px/1 "Courier New",monospace;letter-spacing:.18em}
.v122-midline{position:relative;z-index:3;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;height:50px}.v122-midline::before,.v122-midline::after{content:"";height:1px;background:linear-gradient(90deg,transparent,var(--v122-line))}.v122-midline::after{background:linear-gradient(90deg,var(--v122-line),transparent)}
.v122-clash-result{min-width:158px;text-align:center;color:#c4b38d;font:700 7px/1.35 "Courier New",monospace;letter-spacing:.12em}.v122-clash-result b{display:block;color:#f3d77d;font:900 16px/1.1 Georgia,serif;letter-spacing:.05em;text-shadow:0 0 14px rgba(216,184,95,.4)}
.v122-hand-wrap{position:relative;z-index:2;margin-top:8px}.v122-hand-label{display:flex;justify-content:space-between;margin-bottom:6px;color:#988b6d;font:700 6px/1 "Courier New",monospace;letter-spacing:.18em}.v122-hand{display:flex;justify-content:center;align-items:end;gap:clamp(4px,.8vw,8px);min-height:118px;padding:7px 7px 2px;border-top:1px solid rgba(216,184,95,.13);background:linear-gradient(180deg,rgba(0,0,0,.07),rgba(0,0,0,.34))}
.v122-card{position:relative;width:clamp(54px,6.2vw,78px);aspect-ratio:2.5/3.5;flex:0 0 auto;padding:0;border:1px solid #a18852;border-radius:7px;color:#21170d;background:linear-gradient(145deg,#f4ead3,#d8c7a1);box-shadow:0 9px 18px rgba(0,0,0,.5),inset 0 0 0 3px rgba(255,249,226,.66),inset 0 0 0 4px rgba(99,70,25,.35);font-family:Georgia,serif;cursor:pointer;touch-action:manipulation;transition:transform .2s,filter .2s,box-shadow .2s,opacity .2s;transform-style:preserve-3d}
.v122-card:hover,.v122-card:focus-visible{transform:translateY(-5px);filter:brightness(1.08);outline:none}.v122-card.red{color:#8b1720}.v122-card.joker{color:#251626;background:linear-gradient(145deg,#efe2c8,#cab68e)}
.v122-card-corner{position:absolute;left:7px;top:6px;display:grid;font-weight:900;font-size:clamp(10px,1.4vw,15px);line-height:.9;text-align:center}.v122-card-corner.bottom{left:auto;top:auto;right:7px;bottom:6px;transform:rotate(180deg)}.v122-card-corner i{font-style:normal;font-size:.8em;margin-top:3px}.v122-card-pip{position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(24px,3.4vw,40px);font-weight:900}.v122-card.joker .v122-card-pip{font-size:clamp(8px,1.25vw,12px);letter-spacing:.12em;transform:rotate(-18deg)}
.v122-card.selected{transform:translateY(-11px);box-shadow:0 0 0 2px var(--v122-gold-light),0 0 24px rgba(255,216,102,.56),0 12px 20px #000}.v122-card.pending{transform:translateY(-8px) scale(1.035);box-shadow:0 0 0 2px #fff0ac,0 0 26px rgba(255,224,129,.67),0 12px 20px #000}.v122-card.slashed{opacity:.25;transform:rotate(10deg) scale(.88);filter:grayscale(1)}
.v122-target{animation:v122TargetPulse 1.25s ease-in-out infinite;z-index:5}.v122-target::after{content:"TARGET";position:absolute;left:50%;top:-16px;translate:-50% 0;color:#ffdf7d;font:700 6px/1 "Courier New",monospace;letter-spacing:.12em;text-shadow:0 1px 3px #000;white-space:nowrap}
.v122-card-back{width:24px;height:36px;border:1px solid #a68443;border-radius:3px;background:repeating-conic-gradient(from 45deg,#160607 0 10deg,#641219 10deg 20deg);box-shadow:inset 0 0 0 2px #170709,inset 0 0 0 3px rgba(216,184,95,.58),0 4px 8px #000;pointer-events:none;transition:opacity .35s,transform .35s}.v122-card-back.spent{opacity:.14;transform:translateY(14px) rotate(18deg)}
.v122-training-counters{position:absolute;right:10px;top:50%;translate:0 -50%;z-index:4;display:grid;gap:5px;pointer-events:none}.v122-counter{min-width:67px;padding:6px 7px;border:1px solid rgba(216,184,95,.2);color:#8f8265;background:rgba(1,2,2,.74);font:700 6px/1.4 "Courier New",monospace;letter-spacing:.1em;text-align:center}.v122-counter b{display:block;color:#e7ce83;font-size:12px}.v122-opponent-hands{position:absolute;left:12px;top:50%;translate:0 -50%;z-index:4;display:flex;gap:3px;pointer-events:none}
.v122-instruction{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;min-height:112px;padding:16px 18px;border:1px solid rgba(216,184,95,.38);background:linear-gradient(100deg,rgba(19,8,9,.96),rgba(4,5,5,.96));box-shadow:0 14px 36px rgba(0,0,0,.5);clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px)}
.v122-instruction-copy{min-width:0}.v122-instruction-step{color:var(--v122-gold);font:700 7px/1 "Courier New",monospace;letter-spacing:.23em}.v122-instruction h2{margin:7px 0 6px;color:#f4e2b8;font-size:clamp(16px,2vw,22px);font-weight:600;letter-spacing:.08em}.v122-instruction p{margin:0;color:#b7aa8b;font-size:11px;line-height:1.75}.v122-instruction-hint{margin-top:7px!important;color:#d9c58e!important;font-size:9px!important}.v122-instruction-hint::before{content:"ORDER / ";color:#8e752f;font:700 7px/1 "Courier New",monospace;letter-spacing:.12em}
.v122-instruction-actions{display:flex;flex-direction:column;gap:7px;min-width:178px}.v122-feedback{min-height:16px;color:#ae9d76;font-size:9px;line-height:1.5;text-align:right}.v122-feedback.error{color:#e47c81}.v122-feedback.good{color:#efd889}
.v122-chain-controls{display:flex;gap:7px}.v122-chain-controls[hidden]{display:none!important}.v122-chain-action{min-width:122px;min-height:42px;padding:0 14px;font-size:10px}.v122-chain-pass{min-height:42px;padding:0 13px;border:1px solid rgba(202,80,86,.42);color:#b99596;background:#160708;font:700 9px/1 Georgia,"Yu Mincho",serif;cursor:pointer}.v122-chain-pass:disabled{opacity:.25;cursor:not-allowed}
.v124-foundation-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;border:1px solid rgba(216,184,95,.32);background:linear-gradient(120deg,rgba(29,10,12,.94),rgba(3,4,4,.96));box-shadow:0 12px 32px rgba(0,0,0,.45)}
.v124-foundation-summary[hidden]{display:none!important}.v124-foundation-item{padding:11px 12px;border:1px solid rgba(216,184,95,.17);background:rgba(0,0,0,.31)}.v124-foundation-item b{display:block;margin-bottom:6px;color:#ecd486;font:700 8px/1 "Courier New",monospace;letter-spacing:.16em}.v124-foundation-item span{display:block;color:#b9ad90;font-size:9px;line-height:1.65}
.v126-chain-dossier{position:relative;overflow:hidden;padding:12px;border:1px solid rgba(216,184,95,.43);background:radial-gradient(circle at 86% 12%,rgba(127,17,28,.18),transparent 27%),linear-gradient(120deg,rgba(8,10,11,.98),rgba(24,8,12,.97));box-shadow:0 15px 40px rgba(0,0,0,.52);isolation:isolate}
.v126-chain-dossier[hidden]{display:none!important}.v126-chain-dossier::before{content:"CLASSIFIED";position:absolute;right:-18px;top:17px;z-index:-1;color:rgba(216,184,95,.045);font:900 42px/1 Georgia,serif;letter-spacing:.12em;transform:rotate(5deg)}
.v126-chain-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:9px}.v126-chain-head small{color:#9e8c65;font:700 7px/1 "Courier New",monospace;letter-spacing:.22em}.v126-chain-head b{color:#f3dfac;font-size:12px;letter-spacing:.12em}.v126-chain-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:9px}.v126-chain-tab{min-height:31px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid rgba(216,184,95,.18);color:#665f52;background:rgba(0,0,0,.38);font:700 8px/1 "Courier New",monospace;letter-spacing:.12em;transition:.22s}.v126-chain-tab i{font:900 14px/1 Georgia,serif}.v126-chain-tab.active{color:#ffe8aa;border-color:#d6b65e;box-shadow:inset 0 0 18px rgba(216,184,95,.11),0 0 15px rgba(216,184,95,.12)}.v126-chain-tab[data-v126-chain-tab="bomb"].active{color:#dfadff;border-color:#a854d1}.v126-chain-tab[data-v126-chain-tab="revolution"].active{color:#ffb3ae;border-color:#b53a3f}.v126-chain-tab[data-v126-chain-tab="joker"].active{color:#f1f1f1;border-color:#8d8d8d}
.v126-chain-panel{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;align-items:center;min-height:92px;padding:11px;border:1px solid rgba(216,184,95,.15);background:rgba(0,0,0,.32);animation:v126DossierReveal .32s ease both}.v126-chain-panel[hidden]{display:none!important}.v126-chain-seal{width:66px;height:66px;display:grid;place-items:center;border:1px solid #b99a50;color:#f5dda0;background:radial-gradient(circle,#5f1219,#13080a 70%);font:900 27px/1 Georgia,serif;clip-path:polygon(50% 0,88% 12%,100% 50%,88% 88%,50% 100%,12% 88%,0 50%,12% 12%);box-shadow:0 0 22px rgba(181,43,54,.27)}.v126-chain-copy b{display:block;color:#efdaa2;font-size:11px;letter-spacing:.1em}.v126-chain-copy p{margin:5px 0 0;color:#b6aa8d;font-size:9px;line-height:1.65}.v126-chain-equation{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:7px}.v126-chain-equation span{padding:4px 7px;border:1px solid rgba(216,184,95,.27);color:#dfcc9a;background:#080909;font:700 8px/1 "Courier New",monospace}.v126-chain-equation i{color:#a78a47;font-style:normal;font-weight:900}.v126-chain-protocol{display:flex;align-items:center;gap:9px;margin-top:8px;padding:7px 9px;border-left:2px solid #a92530;color:#b5a98d;background:rgba(104,15,24,.13);font-size:9px;line-height:1.5}.v126-chain-protocol b{color:#e8cc80;font:700 7px/1 "Courier New",monospace;letter-spacing:.13em;white-space:nowrap}.v126-chain-protocol span{color:#dfd2b1}.v126-special-summary{border-color:rgba(167,78,207,.35)!important;background:linear-gradient(135deg,rgba(80,25,97,.16),rgba(0,0,0,.31))!important}
@keyframes v126DossierReveal{from{opacity:0;transform:translateY(8px);filter:blur(3px)}to{opacity:1;transform:none;filter:none}}
.v122-briefing-mask{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:20px;overflow:auto;background:rgba(0,0,0,.73);backdrop-filter:blur(5px)}.v122-briefing-mask[hidden]{display:none}.v122-briefing-card{width:min(580px,100%);margin:auto;padding:clamp(24px,4vw,44px);border:1px solid var(--v122-gold);background:radial-gradient(circle at 85% 15%,rgba(127,17,28,.23),transparent 29%),linear-gradient(145deg,#100b09,#040505);box-shadow:0 25px 80px #000,inset 0 0 0 6px rgba(216,184,95,.035);clip-path:polygon(15px 0,100% 0,100% calc(100% - 15px),calc(100% - 15px) 100%,0 100%,0 15px);text-align:center}.v122-briefing-card .v122-kicker{margin-bottom:14px}.v122-briefing-card h2{margin:0 0 13px;color:#f5e4b8;font-size:clamp(22px,4vw,36px);font-weight:500;letter-spacing:.12em}.v122-briefing-card p{margin:0 0 24px;color:#b3a586;font-size:11px;line-height:1.9}.v122-briefing-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:23px}.v122-briefing-rule{padding:11px 7px;border:1px solid rgba(216,184,95,.2);background:rgba(0,0,0,.35)}.v122-briefing-rule b{display:block;color:#ebd180;font-size:17px}.v122-briefing-rule span{display:block;margin-top:5px;color:#8f8268;font-size:8px;line-height:1.5}

/* Completion and confirmations */
#v122-complete{width:min(860px,100%);min-height:calc(100dvh - 150px);margin:auto;display:grid;place-items:center}.v122-certificate{position:relative;width:min(680px,100%);padding:clamp(30px,6vw,70px);overflow:hidden;border:1px solid #ad8e45;color:#291d0f;background:repeating-linear-gradient(0deg,rgba(74,49,14,.026) 0 1px,transparent 1px 4px),linear-gradient(145deg,#f2e8ce,#cdbb91);box-shadow:0 34px 90px #000,inset 0 0 0 7px #e8d8b2,inset 0 0 0 8px #8b6b2f;text-align:center;clip-path:polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px)}.v122-certificate::before{content:"♛";position:absolute;right:-.1em;bottom:-.22em;color:rgba(103,66,18,.07);font:900 260px/1 Georgia,serif;transform:rotate(-9deg)}.v122-certificate-kicker{position:relative;color:#765d2d;font:700 7px/1 "Courier New",monospace;letter-spacing:.31em}.v122-certificate h2{position:relative;margin:16px 0 8px;color:#3b110f;font-size:clamp(27px,5vw,46px);font-weight:600;letter-spacing:.16em}.v122-certificate p{position:relative;margin:0;color:#645333;font-size:11px;line-height:1.9}.v122-certified-name{position:relative;margin:26px auto 5px;padding:10px 15px;width:min(380px,90%);border-bottom:1px solid #7d6534;color:#3a2814;font-size:clamp(18px,3vw,28px);font-weight:700;letter-spacing:.12em}.v122-stamp{position:relative;width:104px;height:104px;margin:22px auto;display:grid;place-items:center;border:4px double #8b1a22;border-radius:50%;color:#8b1a22;font:900 15px/1.15 Georgia,"Yu Mincho",serif;letter-spacing:.12em;transform:rotate(-8deg);box-shadow:inset 0 0 0 4px #8b1a22}.v122-certificate-actions{position:relative;display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.v122-certificate .v122-primary{min-width:210px}
.v126-persistence-warning{position:relative;margin:14px auto 0;padding:9px 12px;width:min(520px,92%);border:1px solid rgba(139,26,34,.48);color:#71131a!important;background:rgba(139,26,34,.08);font-weight:700}.v126-persistence-warning[hidden]{display:none!important}
#v122-skip-confirm,#v122-system-settings{position:fixed;inset:0;z-index:2147483630;display:grid;place-items:center;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));color:var(--v122-ivory);background:rgba(0,0,0,.88);backdrop-filter:blur(8px);font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif}
.v122-confirm-panel,.v122-settings-panel{position:relative;width:min(510px,100%);max-height:calc(100dvh - max(36px,env(safe-area-inset-top) + env(safe-area-inset-bottom)));padding:clamp(24px,4vw,38px);overflow:auto;border:1px solid rgba(216,184,95,.54);background:radial-gradient(circle at 88% 10%,rgba(127,17,28,.22),transparent 31%),linear-gradient(145deg,#12090a,#040505);box-shadow:0 30px 90px #000,inset 0 0 0 5px rgba(216,184,95,.025);clip-path:polygon(13px 0,100% 0,100% calc(100% - 13px),calc(100% - 13px) 100%,0 100%,0 13px)}
.v122-confirm-mark{width:64px;height:64px;margin:0 auto 18px;display:grid;place-items:center;border:1px solid #c7444c;border-radius:50%;color:#e99195;background:#39090e;font:900 27px/1 Georgia,serif;box-shadow:0 0 25px rgba(181,43,54,.32)}.v122-confirm-panel h2,.v122-settings-panel h2{margin:8px 0 12px;color:#f4e2b7;font-size:clamp(21px,4vw,29px);font-weight:500;letter-spacing:.1em;text-align:center}.v122-confirm-panel p{margin:0;color:#b6a98b;font-size:11px;line-height:1.9;text-align:center}.v122-confirm-warning{margin-top:14px!important;padding:10px;border:1px solid rgba(203,72,79,.25);color:#d7a5a7!important;background:rgba(111,12,19,.18)}.v122-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:24px}.v122-confirm-actions button{min-height:46px}
.v122-settings-kicker{text-align:center}.v122-settings-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:22px 0}.v122-settings-stat{padding:13px;border:1px solid rgba(216,184,95,.2);background:rgba(0,0,0,.34)}.v122-settings-stat small{display:block;color:#7f745c;font:700 7px/1 "Courier New",monospace;letter-spacing:.16em}.v122-settings-stat b{display:block;margin-top:6px;color:#e2d1aa;font-size:12px;word-break:break-word}.v122-settings-actions{display:grid;gap:8px}.v122-settings-actions button{width:100%}.v122-settings-close{position:absolute;right:10px;top:10px;width:34px;height:34px;border:1px solid rgba(216,184,95,.24);color:#ae9f7e;background:#050606;font-size:18px;cursor:pointer}.v122-settings-close:hover{border-color:var(--v122-gold);color:#fff0c8}
@keyframes v122TargetPulse{0%,100%{box-shadow:0 0 0 1px #e0bd62,0 0 11px rgba(255,218,109,.28),0 9px 18px #000}50%{box-shadow:0 0 0 3px #ffe594,0 0 28px rgba(255,218,109,.72),0 13px 24px #000;filter:brightness(1.1)}}
@media(max-width:860px){.v122-topbar{grid-template-columns:1fr auto}.v122-progress{display:none}.v122-registration-art{display:none}#v122-registration{grid-template-columns:1fr;min-height:0}.v122-registration-form-wrap{padding:clamp(24px,7vw,48px)}#v122-tutorial{grid-template-columns:1fr}.v122-mentor-panel{min-height:0;display:grid;grid-template-columns:104px 1fr}.v122-mentor-portrait{min-height:118px}.v122-mentor-portrait::after{display:none}.v122-mentor-id{margin:0;padding:20px 15px}.v122-mentor-id b{font-size:17px}.v122-lesson-index{grid-column:1/-1;padding:9px 14px}.v122-battle-board{min-height:500px}.v122-instruction{grid-template-columns:1fr}.v122-instruction-actions{min-width:0;flex-direction:row;align-items:center}.v122-feedback{flex:1;text-align:left}.v122-training-counters{right:5px}.v122-opponent-hands{left:5px}.v124-foundation-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.v122-topbar{min-height:66px;padding:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left))}.v122-brand-seal{width:38px;height:38px;font-size:18px}.v122-brand-copy b{font-size:11px}.v122-brand-copy small{display:none}.v122-skip{min-height:44px;padding:0 12px;font-size:10px}.v122-stage{padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.v122-registration-form-wrap h1{font-size:27px}.v122-name-row{grid-template-columns:1fr}.v122-name-count{display:none}.v122-battle-board{min-height:474px;padding:9px 5px}.v122-zone{min-height:96px;gap:4px;padding-inline:3px}.v122-card{width:min(15vw,63px)}.v122-hand{gap:2px;padding-inline:2px}.v122-midline{height:45px}.v122-clash-result{min-width:126px}.v122-training-counters,.v122-opponent-hands{top:47%}.v122-counter{min-width:52px;padding:5px;font-size:7px}.v122-counter b{font-size:12px}.v122-card-back{width:19px;height:30px}.v122-instruction{padding:13px}.v122-instruction p{font-size:12px}.v122-instruction-step,.v122-instruction-hint{font-size:9px!important}.v122-instruction-actions{display:grid;grid-template-columns:1fr}.v122-feedback{min-height:20px;font-size:10px;text-align:left}.v122-briefing-rules{grid-template-columns:1fr}.v122-confirm-actions{grid-template-columns:1fr}.v122-settings-summary{grid-template-columns:1fr}.v122-certificate{padding:28px 17px}.v122-mentor-panel{grid-template-columns:92px 1fr}.v122-mentor-id b{font-size:15px}.v122-settings-close{width:44px;height:44px}.v122-confirm-actions button{min-height:48px}.v124-foundation-summary{grid-template-columns:1fr}.v124-foundation-item span{font-size:10px}.v126-chain-panel{grid-template-columns:52px minmax(0,1fr);gap:9px}.v126-chain-seal{width:52px;height:52px;font-size:21px}.v126-chain-tabs{gap:3px}.v126-chain-tab{font-size:7px}.v126-chain-protocol{align-items:flex-start;flex-direction:column;gap:4px}}
@media(prefers-reduced-motion:reduce){.v122-target{animation:none!important}.v122-card,.v122-card-back,.v126-chain-panel{transition:none!important;animation:none!important}}


/* SOURCE styles/home-bulletin.css */
:root{--v127-gold:#d9b766;--v127-gold-bright:#ffe6a0;--v127-ivory:#f3e4ba;--v127-line:rgba(217,183,102,.34)}
#home-screen .home-shell{grid-template-rows:auto auto minmax(0,1fr) auto!important}
#v127-home-bulletin{position:relative;z-index:18;min-width:0;margin:9px 0 0;overflow:hidden;isolation:isolate;border:1px solid #b79454;border-radius:5px;color:var(--v127-ivory);background:#08060d;box-shadow:inset 0 0 0 3px #09080d,inset 0 0 0 4px rgba(231,202,135,.18),0 8px 24px #0007;font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif}
#v127-home-bulletin::before{content:"";position:absolute;inset:4px;z-index:6;pointer-events:none;border:1px solid rgba(231,202,135,.27);border-radius:2px}
.v127-bulletin-commandbar{position:relative;z-index:7;height:27px;display:flex;align-items:center;gap:8px;padding:0 11px;border-bottom:1px solid #d9b76645;background:linear-gradient(90deg,#321325,#0b0b11 45%,#3e2310)}
.v127-bulletin-seal{display:grid;place-items:center;width:19px;height:19px;flex:0 0 auto;color:#ffdd95;border:1px solid #c39b55;border-radius:50%;font-size:12px;background:#24111b}
.v127-bulletin-heading{display:flex;gap:8px;align-items:baseline;min-width:0;overflow:hidden;white-space:nowrap}
.v127-bulletin-heading strong{color:#f6dda7;font:800 8px/1 "Courier New",monospace;letter-spacing:.19em}
.v127-bulletin-heading span{color:#a89c82;font-size:8px;letter-spacing:.1em}
.v127-bulletin-number{margin-left:auto;color:#e4cca2;font:700 8px/1 monospace;white-space:nowrap}
.v127-bulletin-dots{display:flex;gap:3px}
.v127-bulletin-dot{width:22px;height:24px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:transparent;cursor:pointer}
.v127-bulletin-dot::before{content:"";width:6px;height:6px;border:1px solid #dfbf79;transform:rotate(45deg);background:#16101d;transition:background .2s,transform .2s}
.v127-bulletin-dot[aria-current="true"]::before{transform:rotate(45deg) scale(1.25);background:#ffdb85;box-shadow:0 0 8px #edb56e99}
.v127-bulletin-pause{width:24px;height:23px;padding:0;border:1px solid #ddba6a45;background:#110d17;color:#e9d09d;font:700 10px/1 sans-serif;cursor:pointer}
.v127-bulletin-dot:focus-visible,.v127-bulletin-pause:focus-visible,.v127-bulletin-arrow:focus-visible,.v127-bulletin-slide:focus-visible,.v127-bulletin-modal-close:focus-visible,.v127-bulletin-modal-action:focus-visible{outline:2px solid #ffe6a0;outline-offset:-3px}
.v127-bulletin-stage{position:relative;z-index:3;min-width:0;height:clamp(130px,17dvh,176px);overflow:hidden}
.v127-bulletin-viewport{width:100%;height:100%;overflow:hidden}
.v127-bulletin-track{height:100%;display:flex;will-change:transform;transform:translate3d(-100%,0,0);transition:transform .62s cubic-bezier(.2,.74,.22,1)}
.v127-bulletin-track.is-jumping{transition:none!important}
.v127-bulletin-slide{position:relative;flex:0 0 100%;min-width:100%;height:100%;display:block;padding:0;overflow:hidden;border:0;color:inherit;text-align:left;cursor:pointer;background:radial-gradient(ellipse at 75% 65%,rgba(var(--v127-slide-accent-rgb),.43),transparent 50%),linear-gradient(108deg,#07070b 18%,#26132d 69%,#151015)}
.v127-bulletin-slide[data-v127-notice="halloween-skin-shop"]{background:radial-gradient(circle at 82% 34%,#dc892c63,transparent 42%),linear-gradient(105deg,#0c070c,#2e1126 59%,#563010)}
.v127-bulletin-slide[data-v127-notice="imperial-ranked-battles"]{background:radial-gradient(ellipse at 82% 40%,#c39a3640,transparent 45%),linear-gradient(110deg,#0a090c,#271620 64%,#262212)}
.v127-bulletin-slide[data-v127-notice="shocker-beta"]{background:radial-gradient(ellipse at 78% 40%,#34888758,transparent 44%),linear-gradient(110deg,#050a0d,#102b35 64%,#152525)}
.v127-bulletin-slide::before{content:"";position:absolute;inset:0;z-index:0;background:repeating-linear-gradient(125deg,transparent 0 35px,#ffe5a305 36px 37px),radial-gradient(circle at 78% 44%,transparent 0 45px,#ebd19322 46px 47px,transparent 48px 63px,#ebd19313 64px 65px,transparent 66px);pointer-events:none}
.v127-bulletin-slide::after{content:"";position:absolute;inset:8px;z-index:4;pointer-events:none;border:1px solid #e9c9921c;border-left:3px double #e9c99255;border-right:3px double #e9c99255}
.v127-bulletin-slide:hover{filter:brightness(1.07)}
.v127-bulletin-copy{position:relative;z-index:3;width:57%;height:100%;display:flex;flex-direction:column;justify-content:center;min-width:0;box-sizing:border-box;padding:13px 20px 13px clamp(44px,4.6vw,65px);background:linear-gradient(90deg,#07070bf7 0%,#090811dc 70%,transparent 100%)}
.v127-bulletin-meta{display:flex;align-items:center;gap:7px;min-width:0;margin-bottom:7px}
.v127-bulletin-tag{flex:0 0 auto;padding:4px 7px;border:1px solid rgba(var(--v127-slide-accent-rgb),.6);color:#fff0c7;background:rgba(var(--v127-slide-accent-rgb),.18);font:800 8px/1 monospace;letter-spacing:.14em}
.v127-bulletin-term{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#bda9bc;font:600 8px/1.3 "Yu Mincho",serif}
.v171-bulletin-subtitle{display:block;color:var(--v127-slide-accent);font:700 clamp(7px,.7vw,10px)/1.2 Georgia,serif;letter-spacing:.24em;margin-bottom:5px}
.v127-bulletin-title{display:block;max-width:100%;margin:0;color:#fff1cc;font:900 clamp(19px,2.6vw,36px)/1.13 Georgia,"Yu Mincho",serif;letter-spacing:.015em;text-shadow:0 3px 9px #000,0 0 24px rgba(var(--v127-slide-accent-rgb),.25);white-space:normal;text-wrap:balance}
.v127-bulletin-summary{display:-webkit-box;margin-top:6px;overflow:hidden;color:#d4c5b6;font:600 clamp(9px,.82vw,12px)/1.45 "Yu Mincho",serif;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.v171-bulletin-cta{display:inline-flex;align-self:flex-start;gap:12px;align-items:center;margin-top:8px;padding:4px 9px;border:1px solid #d4ae604f;color:#f0d693;background:linear-gradient(90deg,rgba(var(--v127-slide-accent-rgb),.26),#09070f);font:700 9px/1.2 "Yu Mincho",serif;letter-spacing:.08em}
.v127-bulletin-art{position:absolute;z-index:1;inset:0 0 0 49%;overflow:hidden;pointer-events:none}
.v127-bulletin-art::before{content:"";position:absolute;inset:6% 6% 4%;border-radius:50%;background:radial-gradient(ellipse at center,rgba(var(--v127-slide-accent-rgb),.25),transparent 67%)}
.v127-bulletin-art::after{content:"";position:absolute;inset:0;z-index:5;background:linear-gradient(90deg,#100a195e,transparent 22% 90%,#05040770);pointer-events:none}
.v171-bulletin-card{position:absolute;display:block;top:7%;height:88%;width:auto;aspect-ratio:3/4;overflow:hidden;border:1px solid #ead29a94;border-radius:8px;background:#100b15;box-shadow:0 12px 19px #0009,0 0 16px rgba(var(--v127-slide-accent-rgb),.18);transform-origin:50% 85%}
.v171-bulletin-card:nth-child(1){left:16%;z-index:1;transform:rotate(-13deg);top:11%;height:82%}
.v171-bulletin-card:nth-child(2){left:40%;z-index:3;transform:rotate(2deg)}
.v171-bulletin-card:nth-child(3){left:65%;z-index:2;transform:rotate(12deg);top:11%;height:82%}
.v171-bulletin-card img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;image-rendering:auto}
.v171-bulletin-art-label{position:absolute;z-index:6;bottom:6%;left:27%;right:7%;padding:4px 8px;border:1px solid #d4af6b55;background:#120c19df;color:#ffe9b2;font:700 8px/1.1 "Yu Mincho",serif;text-align:center;letter-spacing:.09em;white-space:nowrap}
.v127-bulletin-arrow{position:absolute;z-index:8;top:50%;transform:translateY(-50%);width:27px;height:55px;padding:0;border:1px solid #d9b76642;color:#f8dfaf;background:#0c0716ba;font:700 25px/1 Georgia,serif;cursor:pointer}
.v127-bulletin-arrow:hover{background:#3a1c37;color:#fff}
.v127-bulletin-arrow.is-prev{left:7px}.v127-bulletin-arrow.is-next{right:7px}
.v127-bulletin-progress{position:absolute;z-index:8;left:0;right:0;bottom:0;height:2px;background:#15121c;overflow:hidden}
.v127-bulletin-progress>span{display:block;width:100%;height:100%;background:linear-gradient(90deg,#b179bd,#ffdc94);transform:scaleX(0);transform-origin:left}
#v127-home-bulletin.is-auto-running .v127-bulletin-progress>span{animation:v127-bulletin-progress 6.2s linear forwards}
.v127-bulletin-sr-status{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.v171-bulletin-modal-art{position:relative;display:block;height:118px;margin:0 0 15px;overflow:hidden;border:1px solid #d9b7663d;background:radial-gradient(ellipse at 50% 50%,rgba(var(--v127-modal-accent-rgb),.24),transparent 65%),#07070d}
.v171-bulletin-modal-art .v171-bulletin-card{height:91%;top:4%;width:auto}
.v171-bulletin-modal-art .v171-bulletin-card:nth-child(1){left:calc(50% - 139px);transform:rotate(-9deg)}
.v171-bulletin-modal-art .v171-bulletin-card:nth-child(2){left:calc(50% - 41px);transform:rotate(0)}
.v171-bulletin-modal-art .v171-bulletin-card:nth-child(3){left:calc(50% + 57px);transform:rotate(9deg)}
@keyframes v127-bulletin-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:700px){.v127-bulletin-commandbar{height:26px;gap:4px;padding:0 9px}.v127-bulletin-heading strong{font-size:7px;letter-spacing:.08em}.v127-bulletin-heading span{display:none}.v127-bulletin-seal{width:16px;height:16px;font-size:9px}.v127-bulletin-number{font-size:7px}.v127-bulletin-dot{width:18px}.v127-bulletin-stage{height:138px}.v127-bulletin-copy{width:67%;padding:9px 3px 10px 36px}.v127-bulletin-tag{padding:3px 4px;font-size:6px;letter-spacing:.05em}.v127-bulletin-term{display:none}.v127-bulletin-meta{margin-bottom:6px}.v171-bulletin-subtitle{font-size:6px;letter-spacing:.09em}.v127-bulletin-title{font-size:clamp(17px,4.7vw,24px);line-height:1.18;max-width:94%}.v127-bulletin-summary{font-size:8px;line-height:1.4;max-width:95%;margin-top:5px}.v171-bulletin-cta{margin-top:6px;padding:4px 6px;font-size:7px;gap:5px}.v127-bulletin-art{left:52%;right:0}.v171-bulletin-card{top:10%;height:80%;border-radius:5px}.v171-bulletin-card:nth-child(1){left:-4%;height:71%;top:15%;transform:rotate(-13deg)}.v171-bulletin-card:nth-child(2){left:23%;height:82%;top:8%}.v171-bulletin-card:nth-child(3){left:56%;height:71%;top:15%}.v171-bulletin-art-label{display:none}.v127-bulletin-arrow{width:22px;height:42px;font-size:20px}.v127-bulletin-arrow.is-prev{left:5px}.v127-bulletin-arrow.is-next{right:5px}.v171-bulletin-modal-art{height:100px;margin-bottom:12px}}
@media(max-width:360px){.v127-bulletin-title{font-size:16px}.v127-bulletin-summary{font-size:7px}.v127-bulletin-heading strong{font-size:6px}.v127-bulletin-stage{height:134px}.v171-bulletin-cta{font-size:6px}.v127-bulletin-copy{width:70%;padding-left:33px}.v127-bulletin-art{left:55%}}
@media(max-height:560px) and (min-width:560px){.v127-bulletin-stage{height:88px}.v127-bulletin-copy{padding-block:6px}.v127-bulletin-meta{margin-bottom:3px}.v127-bulletin-title{font-size:20px}.v171-bulletin-subtitle{display:none}.v127-bulletin-summary{font-size:8px;margin-top:3px;-webkit-line-clamp:1}.v171-bulletin-cta{margin-top:4px;padding-block:3px;font-size:7px}.v171-bulletin-art-label{display:none}.v171-bulletin-modal-art{height:76px}}
@media(prefers-reduced-motion:reduce){.v127-bulletin-track{transition-duration:.01ms!important}#v127-home-bulletin.is-auto-running .v127-bulletin-progress>span{animation:none!important}}
@media(forced-colors:active){.v127-bulletin-slide,.v171-bulletin-card,.v171-bulletin-cta{border:1px solid CanvasText}.v127-bulletin-copy{background:Canvas;color:CanvasText}.v127-bulletin-title,.v127-bulletin-summary,.v171-bulletin-subtitle{color:CanvasText}}

body.v127-bulletin-modal-open { overflow: hidden !important; }

#v127-bulletin-modal[hidden] { display: none !important; }

#v127-bulletin-modal {
    position: fixed;
    inset: 0;
    z-index: 2147482400;
    display: grid;
    place-items: center;
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    overflow: auto;
    color: var(--v127-ivory);
    background:
        radial-gradient(circle at 18% 22%, rgba(125, 20, 34, .23), transparent 35%),
        radial-gradient(circle at 83% 76%, rgba(26, 88, 94, .18), transparent 34%),
        rgba(0, 0, 0, .91);
    backdrop-filter: blur(9px) saturate(.72);
    -webkit-backdrop-filter: blur(9px) saturate(.72);
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.v127-bulletin-modal-panel {
    --v127-modal-accent: #9e2636;
    --v127-modal-accent-rgb: 158, 38, 54;
    position: relative;
    max-height: min(740px, 91dvh);
    overflow: auto;
    isolation: isolate;
    border: 1px solid rgba(225, 194, 113, .57);
    border-radius: 2px;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
    background:
        radial-gradient(circle at 86% 12%, rgba(var(--v127-modal-accent-rgb), .28), transparent 32%),
        linear-gradient(145deg, #191314, #07090a 62%, #0d1718);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .9), inset 0 0 55px rgba(0, 0, 0, .5);
}

.v127-bulletin-modal-panel::before {
    content: attr(data-sigil);
    position: absolute;
    right: 3%;
    top: 5%;
    z-index: -1;
    color: rgba(255, 235, 177, .055);
    font: 900 150px/1 Georgia, serif;
    transform: rotate(-9deg);
}

.v127-bulletin-modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(217, 183, 102, .25);
    background: linear-gradient(90deg, rgba(var(--v127-modal-accent-rgb), .35), transparent 66%);
}

.v127-bulletin-modal-head-copy { min-width: 0; }

.v127-bulletin-modal-kicker {
    color: #d8bf7d;
    font: 800 8px/1 "Courier New", monospace;
    letter-spacing: .22em;
}

.v127-bulletin-modal-serial {
    display: block;
    margin-top: 4px;
    color: #8f856d;
    font: 700 7px/1 "Courier New", monospace;
    letter-spacing: .1em;
}

.v127-bulletin-modal-close {
    width: 36px;
    height: 36px;
    margin-left: auto;
    flex: 0 0 auto;
    border: 1px solid rgba(217, 183, 102, .34);
    color: #e7d5a4;
    background: rgba(0, 0, 0, .54);
    font: 800 17px/1 sans-serif;
    cursor: pointer;
}

.v127-bulletin-modal-body { padding: clamp(20px, 4vw, 36px); }

.v127-bulletin-modal-tag {
    display: inline-block;
    padding: 5px 9px;
    border-left: 3px solid var(--v127-modal-accent);
    color: #ffe9ad;
    background: rgba(var(--v127-modal-accent-rgb), .24);
    font: 800 8px/1 "Courier New", monospace;
    letter-spacing: .17em;
}

.v127-bulletin-modal-title {
    margin: 13px 0 8px;
    color: #ffecb6;
    font: 900 clamp(25px, 4.5vw, 44px)/1.08 Georgia, "Yu Mincho", serif;
    letter-spacing: .055em;
    text-shadow: 0 4px 0 #000, 0 0 20px rgba(var(--v127-modal-accent-rgb), .26);
}

.v127-bulletin-modal-period {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #ad9e7b;
    font: 700 9px/1.4 "Courier New", monospace;
    letter-spacing: .08em;
}

.v127-bulletin-modal-period::before {
    content: "";
    width: 24px;
    height: 1px;
    flex: 0 0 auto;
    background: var(--v127-modal-accent);
    box-shadow: 0 0 7px rgba(var(--v127-modal-accent-rgb), .62);
}

.v127-bulletin-modal-description {
    margin: 0;
    color: #d2c4a1;
    font: 700 13px/1.9 Georgia, "Yu Mincho", serif;
    letter-spacing: .045em;
}

.v127-bulletin-modal-points {
    display: grid;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.v127-bulletin-modal-points li {
    position: relative;
    padding: 10px 12px 10px 28px;
    border: 1px solid rgba(217, 183, 102, .16);
    color: #bfb18e;
    background: rgba(0, 0, 0, .29);
    font: 700 11px/1.55 Georgia, "Yu Mincho", serif;
    letter-spacing: .035em;
}

.v127-bulletin-modal-points li::before {
    content: "♦";
    position: absolute;
    left: 10px;
    top: 11px;
    color: var(--v127-modal-accent);
}

.v127-bulletin-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 13px 16px 16px;
    border-top: 1px solid rgba(217, 183, 102, .17);
}

.v127-bulletin-modal-action {
    min-width: 150px;
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid rgba(238, 205, 119, .56);
    border-radius: 1px;
    color: #ffebb4;
    background: linear-gradient(110deg, rgba(var(--v127-modal-accent-rgb), .95), #340a12 64%, #10191a);
    box-shadow: 0 0 17px rgba(var(--v127-modal-accent-rgb), .23), inset 0 1px rgba(255, 241, 196, .11);
    font: 800 11px/1 Georgia, "Yu Mincho", serif;
    letter-spacing: .09em;
    cursor: pointer;
}

.v127-bulletin-modal-action.is-close {
    min-width: 110px;
    border-color: rgba(217, 183, 102, .3);
    color: #c8ba97;
    background: linear-gradient(180deg, #28241f, #0c0d0d);
    box-shadow: none;
}

/* Painted event locations sit behind the original reward cards and portraits. */
.v184-bulletin-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    pointer-events: none;
    user-select: none;
}

.v184-bulletin-background[data-notice="halloween-season-pass"] {
    object-position: 50% 20%;
}

.v184-bulletin-background[data-notice="imperial-ranked-battles"] {
    object-position: 50% 30%;
}

.v184-bulletin-background[data-notice="shocker-beta"] {
    object-position: 50% 15%;
}

#v127-home-bulletin .v127-bulletin-slide {
    isolation: isolate;
    background: #110e19;
}

#v127-home-bulletin .v127-bulletin-slide::before {
    z-index: 1;
    background:
        linear-gradient(0deg, #0906105c, transparent 45%),
        linear-gradient(90deg, #09061029, transparent 65%, #09061024);
}

#v127-home-bulletin .v127-bulletin-copy {
    z-index: 4;
    background: linear-gradient(90deg, #08070bd9 0%, #08070ba8 60%, #08070b59 83%, transparent 100%);
}

#v127-home-bulletin .v127-bulletin-art {
    z-index: 2;
}

#v127-home-bulletin .v127-bulletin-art::after {
    background: linear-gradient(90deg, #09061022, transparent 27% 90%, #0906103b);
}

#v127-home-bulletin .v173-bulletin-art.has-character-portrait::before,
.v171-bulletin-modal-art.v173-bulletin-art.has-character-portrait::before {
    content: none;
}

#v127-home-bulletin .v127-bulletin-title,
#v127-home-bulletin .v127-bulletin-summary,
#v127-home-bulletin .v171-bulletin-subtitle {
    text-shadow: 0 2px 5px #000, 0 0 12px #0009;
}

.v171-bulletin-modal-art.v173-bulletin-art {
    isolation: isolate;
    background: #110e19;
}

#v171-bulletin-modal-art-host > .v171-bulletin-modal-art.v173-bulletin-art::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(0deg, #08070b66, transparent 28% 82%, #08070b22);
    pointer-events: none;
}

@media (max-width: 700px) {
    #v127-home-bulletin .v127-bulletin-copy {
        background: linear-gradient(90deg, #08070bd9 0%, #08070ba8 65%, #08070b59 89%, transparent 100%);
    }
}

@media (forced-colors: active) {
    .v184-bulletin-background { display: none; }
    #v127-home-bulletin .v127-bulletin-copy { background: Canvas; }
}


/* SOURCE styles/viewport-scroll-fit.css */
/* =========================================================
   SHOCKER v128 — VIEWPORT FIT / 縦スクロール解消
   画面全体は実表示高へ固定し、必要な横カルーセルと長文閲覧だけを残す。
   ========================================================= */
:root { --v128-app-height: 100vh; }
@supports (height: 100svh) { :root { --v128-app-height: 100svh; } }
@supports (height: 100dvh) { :root { --v128-app-height: 100dvh; } }

html,
body {
    width: 100% !important;
    height: var(--v128-app-height) !important;
    min-height: 0 !important;
    max-height: var(--v128-app-height) !important;
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* ---------- HOME ---------- */
#home-screen.v62-shocker-home {
    height: var(--v128-app-height) !important;
    min-height: 0 !important;
    max-height: var(--v128-app-height) !important;
    overflow: hidden !important;
    overscroll-behavior: none;
}
#home-screen.v62-shocker-home .home-shell {
    width: min(100%, 1600px) !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    padding-block: clamp(5px, 1.25dvh, 14px) clamp(5px, 1.05dvh, 12px) !important;
    overflow: hidden !important;
}
#home-screen.v62-shocker-home .home-topbar {
    min-height: clamp(52px, 8dvh, 72px) !important;
    padding-bottom: clamp(5px, 1dvh, 11px) !important;
}
#home-screen.v62-shocker-home #v127-home-bulletin {
    margin-top: clamp(4px, 1dvh, 11px) !important;
}


#home-screen.v62-shocker-home #v127-home-bulletin + .home-main {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-block: clamp(4px, 1.15dvh, 14px) !important;
    overflow: hidden !important;
}
#home-screen.v62-shocker-home .home-hero,
#home-screen.v62-shocker-home .home-side,
#home-screen.v62-shocker-home .home-menu-grid {
    min-height: 0 !important;
    overflow: hidden !important;
}
#home-screen.v62-shocker-home .home-side {
    height: 100% !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
}
#home-screen.v62-shocker-home .home-menu-grid {
    height: 100% !important;
    grid-template-rows: 1.18fr 1fr 1fr !important;
}
#home-screen.v62-shocker-home .home-menu-btn,
#home-screen.v62-shocker-home .home-menu-btn.primary {
    min-height: 0 !important;
}
#home-screen.v62-shocker-home .home-bottom {
    min-height: clamp(18px, 3dvh, 30px) !important;
    padding-top: clamp(3px, .8dvh, 8px) !important;
    overflow: hidden !important;
}

@media (max-width: 900px) {
    #home-screen.v62-shocker-home #v127-home-bulletin + .home-main {
        grid-template-columns: 1fr !important;
        grid-template-rows: minmax(0, .88fr) minmax(0, 1.12fr) !important;
        gap: clamp(5px, 1dvh, 9px) !important;
    }
    #home-screen.v62-shocker-home .home-side {
        grid-template-rows: auto minmax(0, 1fr) !important;
    }
}

@media (max-width: 700px) {
    #home-screen.v62-shocker-home .home-shell {
        padding: max(5px, env(safe-area-inset-top)) 8px max(4px, env(safe-area-inset-bottom)) !important;
    }
    #home-screen.v62-shocker-home .home-topbar { min-height: 50px !important; }


    #home-screen.v62-shocker-home #v127-home-bulletin + .home-main {
        grid-template-rows: minmax(0, .78fr) minmax(0, 1.22fr) !important;
        gap: 5px !important;
        padding-block: 5px !important;
    }
    #home-screen.v62-shocker-home .home-hero-copy {
        left: 13px !important;
        bottom: 11px !important;
    }
    #home-screen.v62-shocker-home .home-hero-title {
        margin-block: 6px !important;
        font-size: clamp(24px, 8.2vw, 38px) !important;
    }
    #home-screen.v62-shocker-home .home-notice { padding: 5px 8px !important; }
    #home-screen.v62-shocker-home .home-notice-label { font-size: 6px !important; }
    #home-screen.v62-shocker-home .home-notice-title {
        margin-top: 3px !important;
        font-size: 8px !important;
        line-height: 1.25 !important;
    }
    #home-screen.v62-shocker-home .home-menu-grid { gap: 4px !important; }
    #home-screen.v62-shocker-home .home-menu-btn,
    #home-screen.v62-shocker-home .home-menu-btn.primary {
        min-height: 0 !important;
        padding-block: 4px !important;
    }
    #home-screen.v62-shocker-home .home-menu-name { font-size: 9px !important; }
    #home-screen.v62-shocker-home .home-menu-btn.primary .home-menu-name { font-size: 13px !important; }
    #home-screen.v62-shocker-home .home-menu-sub { margin-top: 2px !important; font-size: 5px !important; }
    #home-screen.v62-shocker-home .home-bottom { min-height: 15px !important; padding-top: 2px !important; }
}

@media (max-height: 560px) and (min-width: 560px) {
    #home-screen.v62-shocker-home .home-shell {
        grid-template-rows: auto auto minmax(0, 1fr) !important;
        padding: 4px 8px !important;
    }
    #home-screen.v62-shocker-home .home-topbar { min-height: 42px !important; padding-bottom: 3px !important; }
    #home-screen.v62-shocker-home .home-resources { display: none !important; }


    #home-screen.v62-shocker-home #v127-home-bulletin + .home-main {
        grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr) !important;
        grid-template-rows: minmax(0, 1fr) !important;
        gap: 6px !important;
        padding-block: 5px !important;
    }
    #home-screen.v62-shocker-home .home-notice,
    #home-screen.v62-shocker-home .home-bottom,
    #home-screen.v62-shocker-home .home-hero-text,
    #home-screen.v62-shocker-home .v62-mechanics { display: none !important; }
    #home-screen.v62-shocker-home .home-side { grid-template-rows: minmax(0, 1fr) !important; }
    #home-screen.v62-shocker-home .home-hero-copy { bottom: 10px !important; }
    #home-screen.v62-shocker-home .home-hero-title { font-size: clamp(24px, 8dvh, 34px) !important; }
    #home-screen.v62-shocker-home .home-menu-btn,
    #home-screen.v62-shocker-home .home-menu-btn.primary { padding-block: 3px !important; }
}

/* ---------- TWO-STAGE MODE CARDS ---------- */
#v106-match-mode-modal,
#v99-mode-overlay {
    height: var(--v128-app-height) !important;
    min-height: 0 !important;
    max-height: var(--v128-app-height) !important;
    padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)) !important;
    overflow: hidden !important;
    overscroll-behavior: none;
}
.v106-mode-panel,
.v99-mode-panel {
    display: flex !important;
    flex-direction: column !important;
    width: min(900px, 96vw) !important;
    height: min(620px, calc(var(--v128-app-height) - 12px)) !important;
    min-height: 0 !important;
    max-height: calc(var(--v128-app-height) - 12px) !important;
    overflow: hidden !important;
}
.v106-mode-header,
.v106-mode-footer { flex: 0 0 auto !important; }
.v106-mode-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}
.v106-mode-choice-grid,
.v99-mode-options {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    max-height: 100% !important;
    align-items: center !important;
}
.v120-playing-card {
    height: min(330px, 58vw, calc(var(--v128-app-height) - 178px)) !important;
    max-height: calc(var(--v128-app-height) - 178px) !important;
    aspect-ratio: 2.5 / 3.5 !important;
}

@media (max-height: 560px) {
    .v106-mode-panel,
    .v99-mode-panel { padding: clamp(3px, 1.4dvh, 8px) !important; justify-content: center !important; }
    .v106-mode-header { padding: 0 36px 4px !important; }
    .v106-mode-header .v106-rank-heading,
    .v99-mode-panel h2 { margin: 2px 0 !important; font-size: clamp(17px, 6dvh, 25px) !important; }
    .v106-rank-subheading,
    .v99-mode-panel > p { margin: 0 0 3px !important; font-size: 6px !important; line-height: 1.25 !important; }
    .v106-mode-body { padding: 2px 5px !important; }
    .v106-mode-choice-grid,
    .v99-mode-options { gap: clamp(8px, 3vw, 22px) !important; }
    .v120-playing-card {
        width: clamp(100px, 34dvh, 158px) !important;
        height: clamp(142px, 50dvh, 220px) !important;
        max-height: calc(var(--v128-app-height) - 105px) !important;
    }
    .v120-card-front { padding: 22px 11px !important; }
    .v120-card-corner { top: 10px !important; left: 10px !important; font-size: 10px !important; }
    .v120-card-corner.bottom { right: 10px !important; bottom: 10px !important; left: auto !important; top: auto !important; }
    .v120-card-suit { margin-bottom: 3px !important; font-size: clamp(23px, 9dvh, 34px) !important; }
    .v120-playing-card .v106-mode-choice-title,
    .v120-playing-card.v99-mode-card strong { margin: 4px 0 !important; font-size: clamp(11px, 4.2dvh, 15px) !important; }
    .v120-playing-card .v106-mode-choice-copy,
    .v120-playing-card.v99-mode-card .v120-card-front > small {
        display: -webkit-box !important;
        overflow: hidden !important;
        font-size: 6px !important;
        line-height: 1.25 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .v120-playing-card .v106-mode-choice-meta { margin-top: 4px !important; padding-top: 3px !important; font-size: 5px !important; }
    .v106-mode-footer { min-height: 0 !important; padding: 2px 6px 0 !important; }
    .v106-mode-footer .v106-rank-footer-note { display: none !important; }
    .v106-mode-footer .v106-rank-action,
    #v99-mode-cancel { min-height: 22px !important; margin: 2px auto 0 !important; padding: 3px 8px !important; font-size: 7px !important; }
}

/* ---------- CHARACTER ROSTER ---------- */
#character-select-screen.v62-roster-screen {
    height: var(--v128-app-height) !important;
    min-height: 0 !important;
    max-height: var(--v128-app-height) !important;
    overflow: hidden !important;
    overscroll-behavior: none;
}
#character-select-screen.v62-roster-screen .character-select-shell {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
}
#character-select-screen.v62-roster-screen .character-grid,
#character-select-screen.v62-roster-screen #character-grid {
    flex: 1 1 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
}
#character-select-screen.v62-roster-screen .character-card {
    height: min(56dvh, 548px) !important;
    min-height: 0 !important;
    max-height: 100% !important;
}
#character-select-screen.v62-roster-screen .character-select-footer {
    position: static !important;
    flex: 0 0 auto !important;
}
@media (max-width: 700px) {
    #character-select-screen.v62-roster-screen { padding-top: max(5px, env(safe-area-inset-top)) !important; }
    #character-select-screen.v62-roster-screen .character-select-shell { height: 100% !important; min-height: 0 !important; }
    #character-select-screen.v62-roster-screen .character-grid,
    #character-select-screen.v62-roster-screen #character-grid {
        min-height: 0 !important;
        padding: clamp(5px, 1.3dvh, 10px) 12vw clamp(5px, 1.2dvh, 9px) !important;
    }
    #character-select-screen.v62-roster-screen .character-card {
        height: min(100%, calc(var(--v128-app-height) - 166px)) !important;
        min-height: 0 !important;
        max-height: 100% !important;
    }
    #character-select-screen.v62-roster-screen .character-select-footer { position: static !important; }
}

/* ---------- CHARACTER DETAIL ---------- */
#character-detail-modal {
    height: var(--v128-app-height) !important;
    min-height: 0 !important;
    max-height: var(--v128-app-height) !important;
    overflow: hidden !important;
    overscroll-behavior: none;
}
#character-detail-modal .character-detail-panel {
    --v128-detail-font: 13px;
    --v128-detail-line: 1.55;
    width: min(940px, 96vw) !important;
    height: min(720px, calc(var(--v128-app-height) - 28px)) !important;
    min-height: 0 !important;
    max-height: calc(var(--v128-app-height) - 28px) !important;
    overflow: hidden !important;
}
#character-detail-modal .character-detail-portrait-wrap {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
}
#character-detail-modal .character-detail-info {
    min-height: 0 !important;
    overflow: hidden !important;
}
#character-detail-modal .character-detail-scroll {
    min-height: 0 !important;
    overflow: hidden !important;
    padding-right: 0 !important;
}
#character-detail-modal .character-detail-ability { margin-bottom: 10px !important; padding: 10px 11px !important; }
#character-detail-modal .character-detail-ability-title { margin-bottom: 5px !important; font-size: 13px !important; }
#character-detail-modal .character-detail-ability-text {
    font-size: var(--v128-detail-font) !important;
    line-height: var(--v128-detail-line) !important;
}
#character-detail-modal .character-detail-actions { margin-top: 10px !important; }
#character-detail-modal .character-detail-actions button { min-height: 40px !important; }
#character-card-stack-canvas { touch-action: manipulation; }

@media (max-width: 720px) {
    #character-detail-modal { padding: 7px !important; }
    #character-detail-modal .character-detail-panel {
        width: 100% !important;
        height: calc(var(--v128-app-height) - 14px) !important;
        max-height: calc(var(--v128-app-height) - 14px) !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: minmax(112px, 32%) minmax(0, 1fr) !important;
    }
    #character-detail-modal .character-detail-panel.v128-detail-copy-heavy {
        grid-template-rows: minmax(94px, 24%) minmax(0, 1fr) !important;
    }
    #character-detail-modal .character-detail-panel.v128-detail-ultra {
        grid-template-rows: minmax(78px, 18%) minmax(0, 1fr) !important;
    }
    #character-detail-modal .character-detail-info { padding: 9px 12px !important; }
    #character-detail-modal #character-detail-name { margin: 4px 0 2px !important; font-size: clamp(21px, 7vw, 28px) !important; }
    #character-detail-modal #character-detail-type { margin-bottom: 7px !important; font-size: 9px !important; }
    #character-detail-modal .character-detail-ability { margin-bottom: 6px !important; padding: 7px 8px !important; }
    #character-detail-modal .character-detail-ability-title { margin-bottom: 3px !important; font-size: 10px !important; }
    #character-detail-modal .character-detail-actions { gap: 6px !important; margin-top: 6px !important; }
    #character-detail-modal .character-detail-actions button { min-height: 35px !important; font-size: 9px !important; }
}

@media (orientation: landscape) and (max-height: 560px) {
    #character-detail-modal .character-detail-panel,
    #character-detail-modal .character-detail-panel.v128-detail-copy-heavy,
    #character-detail-modal .character-detail-panel.v128-detail-ultra {
        width: min(900px, calc(100vw - 14px)) !important;
        grid-template-columns: minmax(180px, .78fr) minmax(260px, 1.22fr) !important;
        grid-template-rows: minmax(0, 1fr) !important;
    }
    #character-detail-modal .character-detail-info { padding: 8px 11px !important; }
    #character-detail-modal #character-detail-name { font-size: clamp(18px, 7dvh, 27px) !important; }
}

/* ---------- PLAYER PROFILE ---------- */
#v105-profile-editor {
    height: var(--v128-app-height) !important;
    max-height: var(--v128-app-height) !important;
    overflow: hidden !important;
    overscroll-behavior: none;
}
.v105-profile-panel {
    height: min(740px, calc(var(--v128-app-height) - 24px)) !important;
    max-height: none !important;
    overflow: hidden !important;
}
.v105-profile-panel-header { min-height: 58px !important; padding: 10px 54px 9px 17px !important; }
.v105-profile-panel-title { margin-top: 4px !important; font-size: clamp(20px, 3vw, 28px) !important; }
.v105-profile-panel-subtitle { margin-top: 4px !important; }
#v105-profile-close { top: 10px !important; right: 12px !important; width: 34px !important; height: 34px !important; }
.v105-profile-form { flex: 1 1 auto !important; min-height: 0 !important; overflow: hidden !important; }
.v105-profile-panel-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    grid-template-columns: minmax(175px, .55fr) minmax(0, 1.7fr) !important;
    gap: 12px !important;
    padding: 11px 13px !important;
    overflow: hidden !important;
}
.v105-profile-preview-column { min-height: 0 !important; gap: 7px !important; }
.v105-profile-large-preview { flex: 1 1 auto !important; min-height: 0 !important; padding: 12px 10px !important; }
.v105-profile-large-preview .v105-profile-emblem {
    width: clamp(76px, 14dvh, 116px) !important;
    height: clamp(76px, 14dvh, 116px) !important;
}
.v105-preview-character,
.v105-preview-name { margin-top: 7px !important; }
.v105-preview-title { margin-top: 4px !important; }
.v105-preview-note { padding: 6px 8px !important; font-size: 7px !important; line-height: 1.35 !important; }
.v105-field-grid { gap: 7px !important; margin-top: 5px !important; }
.v105-field > span { margin-bottom: 4px !important; font-size: 8px !important; }
.v105-field input { min-height: 34px !important; padding: 6px 8px !important; font-size: 11px !important; }
.v105-field-help { margin-top: 3px !important; font-size: 6px !important; }
.v105-option-section { margin-top: 9px !important; }
.v105-frame-grid { gap: 5px !important; margin-top: 5px !important; }
.v105-frame-choice { min-height: 32px !important; padding: 4px 6px !important; font-size: 8px !important; }
.v105-frame-swatch { width: 18px !important; height: 18px !important; }
.v105-character-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 5px !important;
    max-height: none !important;
    margin-top: 5px !important;
    padding: 1px !important;
    overflow: visible !important;
}
.v105-character-choice { min-height: clamp(52px, 8.5dvh, 72px) !important; padding: 2px !important; }
.v105-character-thumb { min-height: clamp(34px, 5.6dvh, 50px) !important; }
.v105-character-choice-name { padding: 3px 1px 2px !important; font-size: 6px !important; }
.v105-profile-panel-actions { min-height: 50px !important; padding: 7px 13px max(7px, env(safe-area-inset-bottom)) !important; }
.v105-profile-action { min-height: 36px !important; padding: 7px 11px !important; }

@media (max-width: 700px) {
    #v105-profile-editor { padding: max(5px, env(safe-area-inset-top)) max(5px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left)) !important; }
    .v105-profile-panel { height: calc(var(--v128-app-height) - 10px) !important; }
    .v105-profile-panel-header { min-height: 50px !important; padding: 8px 44px 7px 11px !important; }
    .v105-profile-panel-kicker { font-size: 5.5px !important; letter-spacing: .14em !important; }
    .v105-profile-panel-title { margin-top: 3px !important; font-size: 18px !important; }
    .v105-profile-panel-subtitle { display: none !important; }
    #v105-profile-close { top: 8px !important; right: 8px !important; width: 31px !important; height: 31px !important; }
    .v105-profile-panel-body {
        grid-template-columns: clamp(72px, 22vw, 96px) minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
    }
    .v105-profile-preview-column { gap: 5px !important; }
    .v105-section-label { font-size: 6px !important; letter-spacing: .1em !important; }
    .v105-profile-large-preview { min-height: 0 !important; padding: 8px 4px !important; }
    .v105-profile-large-preview .v105-profile-emblem { width: clamp(52px, 16vw, 70px) !important; height: clamp(52px, 16vw, 70px) !important; padding: 3px !important; }
    .v105-preview-character { margin-top: 5px !important; font-size: 6px !important; }
    .v105-preview-name { margin-top: 5px !important; font-size: clamp(10px, 3.3vw, 13px) !important; }
    .v105-preview-title { font-size: 6px !important; }
    .v105-preview-note,
    .v105-field-help { display: none !important; }
    .v105-field-grid { grid-template-columns: 1fr 1fr !important; gap: 5px !important; margin-top: 4px !important; }
    .v105-field > span { margin-bottom: 3px !important; font-size: 7px !important; }
    .v105-field input { min-height: 31px !important; padding: 5px !important; font-size: 9px !important; }
    .v105-option-section { margin-top: 7px !important; }
    .v105-frame-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 4px !important; margin-top: 4px !important; }
    .v105-frame-choice { min-height: 28px !important; gap: 3px !important; padding: 3px !important; font-size: 6px !important; }
    .v105-frame-swatch { width: 16px !important; height: 16px !important; font-size: 7px !important; }
    .v105-character-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 4px !important; margin-top: 4px !important; }
    .v105-character-choice { min-height: clamp(43px, 7dvh, 56px) !important; }
    .v105-character-thumb { min-height: clamp(34px, 5.6dvh, 46px) !important; }
    .v105-character-choice-name { display: none !important; }
    .v105-profile-panel-actions { min-height: 46px !important; padding: 6px 8px max(6px, env(safe-area-inset-bottom)) !important; }
    .v105-profile-action { min-height: 34px !important; font-size: 8px !important; }
}
@media (max-height: 340px), (max-width: 300px) {
    .v105-profile-panel-body { overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain; }
}

@media (max-height: 480px) and (min-width: 701px) {
    .v105-profile-panel { height: calc(var(--v128-app-height) - 12px) !important; }
    .v105-profile-panel-header { min-height: 43px !important; padding: 6px 45px 5px 12px !important; }
    .v105-profile-panel-title { margin-top: 2px !important; font-size: 17px !important; }
    .v105-profile-panel-subtitle { display: none !important; }
    #v105-profile-close { top: 6px !important; right: 8px !important; width: 29px !important; height: 29px !important; }
    .v105-profile-panel-body { grid-template-columns: 145px minmax(0, 1fr) !important; gap: 8px !important; padding: 6px 9px !important; }
    .v105-profile-large-preview { padding: 6px !important; }
    .v105-profile-large-preview .v105-profile-emblem { width: 54px !important; height: 54px !important; }
    .v105-preview-note,
    .v105-field-help { display: none !important; }
    .v105-field input { min-height: 28px !important; padding: 4px 6px !important; font-size: 9px !important; }
    .v105-field-grid { gap: 5px !important; margin-top: 3px !important; }
    .v105-option-section { margin-top: 5px !important; }
    .v105-frame-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 3px !important; margin-top: 3px !important; }
    .v105-frame-choice { min-height: 25px !important; gap: 3px !important; padding: 2px 3px !important; font-size: 6px !important; }
    .v105-frame-swatch { width: 14px !important; height: 14px !important; }
    .v105-character-grid { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; gap: 3px !important; margin-top: 3px !important; }
    .v105-character-choice { min-height: 43px !important; }
    .v105-character-thumb { min-height: 36px !important; }
    .v105-character-choice-name { display: none !important; }
    .v105-profile-panel-actions { min-height: 39px !important; padding-block: 4px !important; }
    .v105-profile-action { min-height: 30px !important; padding-block: 4px !important; font-size: 8px !important; }
}

/* ---------- BULLETIN DETAIL ---------- */
#v127-bulletin-modal {
    height: var(--v128-app-height) !important;
    max-height: var(--v128-app-height) !important;
    overflow: hidden !important;
    overscroll-behavior: none;
}
.v127-bulletin-modal-panel {
    width: min(680px, 94vw) !important;
    height: min(610px, calc(var(--v128-app-height) - 28px)) !important;
    max-height: none !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    overflow: hidden !important;
}
.v127-bulletin-modal-head,
.v127-bulletin-modal-foot { min-height: 0; flex: 0 0 auto; }
.v127-bulletin-modal-body { min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain; }
@media (max-width: 700px) {
    #v127-bulletin-modal { padding: max(7px, env(safe-area-inset-top)) max(7px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left)) !important; }
    .v127-bulletin-modal-panel { width: 100% !important; height: min(580px, calc(var(--v128-app-height) - 14px)) !important; }
    .v127-bulletin-modal-head { padding: 9px 10px !important; }
    .v127-bulletin-modal-close { width: 32px !important; height: 32px !important; }
    .v127-bulletin-modal-kicker { font-size: 6.5px !important; letter-spacing: .13em !important; }
    .v127-bulletin-modal-body { padding: 12px 13px !important; }
    .v127-bulletin-modal-tag { padding: 4px 7px !important; font-size: 7px !important; }
    .v127-bulletin-modal-title { margin: 8px 0 5px !important; font-size: clamp(20px, 6.6vw, 27px) !important; }
    .v127-bulletin-modal-period { margin-bottom: 9px !important; font-size: 7px !important; }
    .v127-bulletin-modal-description { font-size: 10px !important; line-height: 1.55 !important; }
    .v127-bulletin-modal-points { gap: 5px !important; margin-top: 10px !important; }
    .v127-bulletin-modal-points li { padding: 6px 7px 6px 22px !important; font-size: 9px !important; line-height: 1.35 !important; }
    .v127-bulletin-modal-points li::before { left: 8px !important; top: 7px !important; }
    .v127-bulletin-modal-foot { flex-flow: row nowrap !important; gap: 6px !important; padding: 8px 10px 9px !important; }
    .v127-bulletin-modal-action,
    .v127-bulletin-modal-action.is-close { flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; min-height: 36px !important; padding: 7px !important; font-size: 9px !important; }
}
@media (max-height: 340px), (max-width: 300px) {
    .v127-bulletin-modal-body { overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain; }
}

@media (max-height: 520px) and (min-width: 701px) {
    #v127-bulletin-modal { padding: 6px !important; }
    .v127-bulletin-modal-panel { height: calc(var(--v128-app-height) - 12px) !important; }
    .v127-bulletin-modal-head { padding: 7px 10px !important; }
    .v127-bulletin-modal-close { width: 30px !important; height: 30px !important; }
    .v127-bulletin-modal-body { padding: 9px 15px !important; }
    .v127-bulletin-modal-title { margin: 6px 0 4px !important; font-size: clamp(20px, 7dvh, 28px) !important; }
    .v127-bulletin-modal-period { margin-bottom: 6px !important; font-size: 7px !important; }
    .v127-bulletin-modal-description { font-size: 9px !important; line-height: 1.4 !important; }
    .v127-bulletin-modal-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px !important; margin-top: 7px !important; }
    .v127-bulletin-modal-points li { padding: 5px 6px 5px 19px !important; font-size: 7.5px !important; line-height: 1.25 !important; }
    .v127-bulletin-modal-points li::before { left: 7px !important; top: 6px !important; }
    .v127-bulletin-modal-foot { padding: 6px 10px !important; }
    .v127-bulletin-modal-action { min-height: 31px !important; padding-block: 5px !important; font-size: 8px !important; }
}

/* ---------- FIRST LOGIN / TUTORIAL ---------- */
#v122-onboarding {
    --v128-topbar: 72px;
    height: var(--v128-app-height) !important;
    min-height: 0 !important;
    max-height: var(--v128-app-height) !important;
    overflow: hidden !important;
}
.v122-topbar { flex: 0 0 auto; }
.v122-stage:has(> #v122-registration:not([hidden])),
.v122-stage:has(> #v122-tutorial:not([hidden])),
.v122-stage:has(> #v122-complete:not([hidden])) {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    padding: clamp(7px, 1.3dvh, 14px) max(clamp(8px, 1.3vw, 18px), env(safe-area-inset-right)) max(clamp(7px, 1.3dvh, 14px), env(safe-area-inset-bottom)) max(clamp(8px, 1.3vw, 18px), env(safe-area-inset-left));
}
#v122-registration:not([hidden]),
#v122-tutorial:not([hidden]),
#v122-complete:not([hidden]) {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}
#v122-registration:not([hidden]) { min-height: 0; }
.v122-registration-art { min-height: 0; }
.v122-registration-form-wrap { min-height: 0; overflow: hidden; padding: clamp(20px, 4dvh, 52px) clamp(22px, 4vw, 60px); }

#v122-tutorial:not([hidden]) { align-items: stretch; }
.v122-mentor-panel { height: 100%; min-height: 0; }
.v122-mentor-portrait { min-height: 0; }
.v122-training-main {
    --v128-card: clamp(40px, min(5.2vw, 7.2dvh), 68px);
    --v128-zone: clamp(62px, 10.5dvh, 96px);
    --v128-hand: clamp(70px, 12.5dvh, 104px);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: clamp(5px, .9dvh, 9px);
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.v122-training-main:has(> .v126-chain-dossier:not([hidden])),
.v122-training-main:has(> #v124-foundation-summary:not([hidden])) { grid-template-rows: minmax(0, 1fr) auto auto; }
.v122-training-main:has(> .v126-chain-dossier:not([hidden])) {
    --v128-card: clamp(34px, min(4.8vw, 6dvh), 54px);
    --v128-zone: clamp(50px, 8.4dvh, 72px);
    --v128-hand: clamp(58px, 9.7dvh, 82px);
}
.v122-battle-board { min-height: 0; height: auto; padding: clamp(5px, .9dvh, 10px) clamp(5px, 1vw, 12px); }
.v122-zone { min-height: var(--v128-zone); gap: clamp(3px, .65vw, 7px); padding: 4px; }
.v122-card { width: var(--v128-card); }
.v122-hand { min-height: var(--v128-hand); gap: clamp(2px, .55vw, 6px); padding: 4px 4px 1px; }
.v122-side-head { margin-bottom: 4px; }
.v122-midline { height: clamp(28px, 4.7dvh, 40px); }
.v122-hand-wrap { margin-top: 3px; }
.v122-hand-label { margin-bottom: 3px; }
.v122-instruction { min-height: 0; padding: clamp(8px, 1.2dvh, 12px) clamp(9px, 1.2vw, 14px); gap: 10px; }
.v122-instruction h2 { margin: 4px 0; font-size: clamp(14px, 1.65vw, 19px); }
.v122-instruction p { font-size: clamp(8px, 1.05vw, 10px); line-height: 1.45; }
.v122-instruction-hint { margin-top: 4px !important; font-size: clamp(7px, .9vw, 8px) !important; }
.v122-instruction-actions { gap: 4px; }
.v122-feedback { min-height: 12px; line-height: 1.25; }
.v122-instruction-actions .v122-primary,
.v122-chain-action,
.v122-chain-pass { min-height: 36px; }
.v122-chain-controls button { min-width: 0; flex: 1 1 0; padding-inline: 7px; }

.v126-chain-dossier { padding: 7px; }
.v126-chain-head { margin-bottom: 5px; }
.v126-chain-tabs { gap: 4px; margin-bottom: 5px; }
.v126-chain-tab { min-height: 25px; }
.v126-chain-panel { min-height: 0; gap: 8px; padding: 6px 8px; }
.v126-chain-seal { width: 44px; height: 44px; font-size: 19px; }
.v126-chain-copy p { margin-top: 3px; font-size: clamp(7px, .82vw, 8px); line-height: 1.35; }
.v126-chain-equation { margin-top: 4px; }
.v126-chain-equation span { padding: 3px 5px; font-size: 7px; }
.v126-chain-protocol { margin-top: 5px; padding: 4px 7px; font-size: 8px; line-height: 1.3; }

.v124-foundation-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 5px; overflow: hidden; }
.v124-foundation-item { padding: 5px 6px; }
.v124-foundation-item b { margin-bottom: 3px; font-size: 6.8px; line-height: 1.25; letter-spacing: .09em; }
.v124-foundation-item span { font-size: clamp(6.4px, .72vw, 7.5px); line-height: 1.32; }
.v122-training-main:has(> #v124-foundation-summary:not([hidden])) .v122-battle-board { min-height: 44px; padding: 3px 8px; }
.v122-training-main:has(> #v124-foundation-summary:not([hidden])) .v122-battle-board > :not(.v122-midline) { display: none !important; }
.v122-training-main:has(> #v124-foundation-summary:not([hidden])) .v122-midline { width: 100%; height: 100%; }

#v122-onboarding #v122-briefing-mask {
    position: fixed;
    inset: var(--v128-topbar) 0 0;
    overflow: hidden;
    padding: clamp(8px, 2dvh, 18px);
}
#v122-onboarding .v122-briefing-card { max-height: 100%; overflow: hidden; padding: clamp(15px, 3dvh, 30px); }
.v122-briefing-card .v122-kicker { margin-bottom: 8px; }
.v122-briefing-card h2 { margin-bottom: 8px; }
.v122-briefing-card p { margin-bottom: 12px; font-size: clamp(8px, 1.3vw, 10px); line-height: 1.55; }
.v122-briefing-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 12px; }
.v122-briefing-rule { padding: 7px 4px; }

#v122-complete:not([hidden]) { place-items: center; }
.v122-certificate {
    max-height: 100%;
    padding: clamp(18px, 4dvh, 48px) clamp(17px, 5vw, 56px);
}
.v122-certificate h2 { margin: clamp(7px, 1.5dvh, 14px) 0 6px; }
.v122-certified-name { margin: clamp(9px, 2dvh, 20px) auto 4px; padding-block: 6px; }
.v122-stamp { width: clamp(62px, 11dvh, 92px); height: clamp(62px, 11dvh, 92px); margin: clamp(8px, 2dvh, 17px) auto; }

#v122-skip-confirm,
#v122-system-settings {
    height: var(--v128-app-height) !important;
    max-height: var(--v128-app-height) !important;
    overflow: hidden !important;
}
.v122-confirm-panel,
.v122-settings-panel { max-height: calc(var(--v128-app-height) - 24px) !important; overflow: hidden !important; }

@media (max-width: 860px) {
    .v122-registration-form-wrap { padding: clamp(16px, 3dvh, 28px) clamp(16px, 5vw, 32px); }
    #v122-tutorial:not([hidden]) { grid-template-columns: 1fr; grid-template-rows: 50px minmax(0, 1fr); gap: 6px; }
    .v122-mentor-panel { display: grid; grid-template: 1fr / 50px minmax(0, 1fr) auto; height: 50px; min-height: 0; clip-path: none; }
    .v122-mentor-portrait { height: 100%; min-height: 0; }
    .v122-mentor-id { margin: 0; padding: 7px 10px; align-self: center; }
    .v122-mentor-id small,
    .v122-mentor-id span { display: none; }
    .v122-mentor-id b { margin: 0; font-size: 14px; }
    .v122-lesson-index { grid-column: auto; display: grid; place-content: center; min-width: 120px; padding: 5px 10px; border-top: 0; border-left: 1px solid rgba(216, 184, 95, .24); }
    .v126-chain-equation { display: none; }
}

@media (max-width: 540px) {
    #v122-onboarding { --v128-topbar: 58px; }
    .v122-topbar { min-height: 58px !important; padding-block: max(5px, env(safe-area-inset-top)) 5px !important; }
    .v122-brand-seal { width: 34px !important; height: 34px !important; font-size: 16px !important; }
    .v122-skip { min-height: 36px !important; padding-inline: 9px !important; font-size: 8px !important; }
    .v122-registration-form-wrap { padding: 11px 13px; justify-content: center; }
    .v122-registration-form-wrap h1 { margin: 6px 0 !important; font-size: 24px !important; }
    .v122-lead { margin-bottom: 9px !important; font-size: 9px !important; line-height: 1.5 !important; }
    .v122-mentor-quote { margin-bottom: 9px !important; padding: 8px 10px !important; font-size: 8px !important; line-height: 1.45 !important; }
    .v122-field-label { margin-bottom: 4px !important; font-size: 8px !important; }
    .v122-name-row { grid-template-columns: 1fr auto !important; gap: 5px !important; }
    #v122-username { height: 40px !important; padding-inline: 10px !important; font-size: 14px !important; }
    .v122-name-count { display: grid !important; min-width: 43px !important; font-size: 7px !important; }
    .v122-form-error { min-height: 15px !important; margin: 3px 0 !important; font-size: 8px !important; }
    .v122-dossier-preview { margin: 3px 0 7px !important; padding: 5px 7px !important; }
    .v122-dossier-avatar { width: 32px !important; height: 32px !important; }
    #v122-register-submit { min-height: 40px !important; }

    #v122-tutorial:not([hidden]) { grid-template-rows: 44px minmax(0, 1fr); }
    .v122-mentor-panel { grid-template-columns: 42px minmax(0, 1fr) auto; height: 44px; }
    .v122-mentor-id { padding: 5px 7px; }
    .v122-mentor-id b { font-size: 12px; }
    .v122-lesson-index { min-width: 104px; padding: 4px 6px; font-size: 6px; }
    .v122-lesson-index b { font-size: 9px; }
    .v122-battle-board { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 3px; }
    .v122-battle-board > .v122-opponent { grid-column: 1; grid-row: 1; min-width: 0; }
    .v122-battle-board > .v122-midline { grid-column: 2; grid-row: 1; min-width: 0; height: 100%; grid-template-columns: 1fr; }
    .v122-battle-board > .v122-player { grid-column: 3; grid-row: 1; min-width: 0; }
    .v122-battle-board > .v122-hand-wrap { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
    .v122-midline > span { display: none; }
    .v122-clash-result { min-width: 0; font-size: 0; }
    .v122-clash-result b { font-size: 8px; }
    .v122-side-head { gap: 3px; margin-bottom: 2px; }
    .v122-side-title small { display: none; }
    .v122-side-title b { font-size: 8px; }
    .v122-intel { gap: 2px; }
    .v122-intel span { padding: 2px 3px; font-size: 5px; }
    .v122-zone { min-height: 50px; }
    .v122-hand { min-height: 56px; }
    .v122-card { width: clamp(32px, 10.5vw, 42px); }
    .v122-training-counters,
    .v122-opponent-hands { display: none; }
    .v122-instruction { grid-template-columns: minmax(0, 1fr) minmax(102px, 34%); padding: 7px 8px; gap: 6px; }
    .v122-instruction h2 { font-size: 13px; }
    .v122-instruction p { font-size: 8px; }
    .v122-instruction-actions { display: flex; min-width: 0; flex-direction: column; }
    .v122-chain-controls { width: 100%; gap: 3px; }
    .v122-chain-controls button { font-size: 7px; }
    .v126-chain-dossier { padding: 5px; }
    .v126-chain-head small { font-size: 6px; }
    .v126-chain-head b { font-size: 9px; }
    .v126-chain-tab { min-height: 22px; font-size: 6px; }
    .v126-chain-panel { grid-template-columns: 38px minmax(0, 1fr); padding: 5px; }
    .v126-chain-seal { width: 38px; height: 38px; font-size: 16px; }
    .v126-chain-copy b { font-size: 8px; }
    .v126-chain-copy p { font-size: 7px; line-height: 1.25; }
    .v126-chain-protocol { flex-direction: row; gap: 5px; font-size: 7px; }
    .v124-foundation-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; }
    .v124-foundation-item { padding: 4px; }
    .v124-foundation-item b { font-size: 5.8px; }
    .v124-foundation-item span { font-size: 6.1px; line-height: 1.25; }
    .v122-briefing-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .v122-briefing-rule b { font-size: 13px; }
    .v122-briefing-rule span { font-size: 6.5px; }
    .v122-confirm-panel,
    .v122-settings-panel { padding: 16px !important; }
    .v122-confirm-actions,
    .v122-settings-summary { grid-template-columns: 1fr 1fr !important; gap: 6px !important; }
    .v122-confirm-actions { margin-top: 12px !important; }
    .v122-confirm-mark { width: 48px !important; height: 48px !important; margin-bottom: 9px !important; }
    .v122-confirm-panel h2,
    .v122-settings-panel h2 { margin-block: 5px 8px !important; font-size: 19px !important; }
    .v122-confirm-panel p { font-size: 9px !important; line-height: 1.5 !important; }
}

@media (max-height: 560px) and (min-width: 560px) {
    #v122-onboarding { --v128-topbar: 54px; }
    .v122-topbar { min-height: 54px; padding-block: 5px; }
    .v122-stage:has(> #v122-registration:not([hidden])),
    .v122-stage:has(> #v122-tutorial:not([hidden])),
    .v122-stage:has(> #v122-complete:not([hidden])) { padding-block: 5px; }
    .v122-registration-form-wrap { padding: 9px 18px; }
    .v122-registration-form-wrap h1 { margin-block: 4px !important; font-size: 22px !important; }
    .v122-lead { margin-bottom: 6px !important; font-size: 8px !important; line-height: 1.35 !important; }
    .v122-mentor-quote { margin-bottom: 7px !important; padding: 6px 9px !important; font-size: 7px !important; line-height: 1.35 !important; }
    .v122-field-label { margin-bottom: 3px !important; font-size: 7px !important; }
    .v122-name-row { gap: 5px !important; }
    #v122-username { height: 36px !important; padding-inline: 9px !important; font-size: 13px !important; }
    .v122-name-count { min-width: 43px !important; font-size: 7px !important; }
    .v122-form-error { min-height: 13px !important; margin: 2px 0 !important; font-size: 7px !important; }
    .v122-dossier-preview { margin: 2px 0 5px !important; padding: 4px 7px !important; }
    .v122-dossier-avatar { width: 29px !important; height: 29px !important; }
    #v122-register-submit { min-height: 36px !important; }
    #v122-tutorial:not([hidden]) { grid-template-columns: clamp(125px, 18vw, 180px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 6px; }
    .v122-mentor-panel { display: flex; flex-direction: column; height: 100%; }
    .v122-mentor-portrait { flex: 1; }
    .v122-mentor-id { margin-top: -30px; padding: 0 9px 7px; }
    .v122-lesson-index { min-width: 0; border-left: 0; border-top: 1px solid rgba(216, 184, 95, .24); }
    .v122-training-main:has(> .v126-chain-dossier:not([hidden])),
    .v122-training-main:has(> #v124-foundation-summary:not([hidden])) { grid-template-columns: minmax(0, 1.12fr) minmax(220px, .88fr); grid-template-rows: minmax(0, 1fr) auto; }
    .v122-training-main:has(> .v126-chain-dossier:not([hidden])) .v122-battle-board,
    .v122-training-main:has(> #v124-foundation-summary:not([hidden])) .v122-battle-board { grid-column: 1; grid-row: 1; }
    .v122-training-main > .v126-chain-dossier:not([hidden]),
    .v122-training-main > #v124-foundation-summary:not([hidden]) { grid-column: 2; grid-row: 1; align-self: stretch; }
    .v122-training-main:has(> .v126-chain-dossier:not([hidden])) .v122-instruction,
    .v122-training-main:has(> #v124-foundation-summary:not([hidden])) .v122-instruction { grid-column: 1 / -1; grid-row: 2; }
    .v122-instruction { padding-block: 6px; }
    .v122-instruction p { line-height: 1.25; }
    .v122-certificate { padding: 10px 22px; }
    .v122-certificate h2 { margin: 4px 0; font-size: 22px; }
    .v122-certificate p { font-size: 8px; line-height: 1.35; }
    .v122-certified-name { margin: 5px auto 3px; padding-block: 4px; font-size: 16px; }
    .v122-stamp { width: 48px; height: 48px; margin: 4px auto; font-size: 9px; }
    .v122-certificate .v122-primary { min-width: 160px; min-height: 34px; }
    .v122-confirm-panel,
    .v122-settings-panel { padding: 11px 16px !important; }
    .v122-confirm-mark { width: 38px !important; height: 38px !important; margin-bottom: 5px !important; font-size: 18px !important; }
    .v122-confirm-panel h2,
    .v122-settings-panel h2 { margin: 3px 0 5px !important; font-size: 17px !important; }
    .v122-confirm-panel p { font-size: 8px !important; line-height: 1.35 !important; }
    .v122-confirm-warning { margin-top: 6px !important; padding: 5px !important; }
    .v122-confirm-actions { grid-template-columns: 1fr 1fr !important; gap: 5px !important; margin-top: 7px !important; }
    .v122-confirm-actions button { min-height: 32px !important; }
    .v122-settings-summary { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 5px !important; margin: 7px 0 !important; }
    .v122-settings-stat { padding: 5px !important; }
    .v122-settings-actions { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 5px !important; }
    .v122-settings-actions button { min-height: 32px !important; }
    .v122-settings-close { width: 29px !important; height: 29px !important; }
}

@media (max-height: 300px), (max-width: 280px) {
    .v122-confirm-panel,
    .v122-settings-panel { overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain; }
}

/* ---------- SHORT LANDSCAPE PRE-BATTLE ---------- */
@media (orientation: landscape) and (max-height: 500px) {
    #v112-login-loading { height: var(--v128-app-height) !important; max-height: var(--v128-app-height) !important; overflow: hidden !important; }
    .v112-load-shell { width: calc(100% - 14px) !important; height: calc(var(--v128-app-height) - 14px) !important; min-height: 0 !important; max-height: calc(var(--v128-app-height) - 14px) !important; grid-template-columns: minmax(180px, 36%) minmax(0, 64%) !important; overflow: hidden !important; }
    .v112-load-portrait { height: 100% !important; min-height: 0 !important; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%) !important; }
    .v112-load-copy { height: 100% !important; min-height: 0 !important; padding: clamp(17px, 5dvh, 23px) 24px 8px 10px !important; overflow: hidden !important; }
    .v112-load-system { display: flex !important; gap: 8px !important; font-size: 6px !important; }
    .v112-load-rule { margin: 5px 0 7px !important; }
    #v112-load-name { margin: 3px 0 !important; padding-bottom: 4px !important; font-size: clamp(19px, 8dvh, 31px) !important; }
    #v112-load-role { margin-top: 2px !important; padding: 2px 5px !important; font-size: 7px !important; }
    #v112-load-copytext { min-height: 0 !important; margin: 5px 0 !important; overflow: hidden !important; display: -webkit-box; font-size: 7px !important; line-height: 1.35 !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .v112-tactical-file { grid-template-columns: 54px 1fr !important; gap: 2px 7px !important; padding: 5px 8px !important; }
    .v112-tactical-file span { font-size: 6px !important; }
    .v112-tactical-file b { font-size: 7px !important; line-height: 1.25 !important; }
    .v112-load-bottom { padding-top: 5px !important; }
    .v112-load-status { margin-bottom: 3px !important; font-size: 6px !important; }
    .v112-load-tip { margin-top: 3px !important; font-size: 6px !important; line-height: 1.2 !important; }
    #v112-load-skip { margin-top: 4px !important; min-height: 22px !important; padding: 3px 7px !important; font-size: 6px !important; }
    .v113-file-index { left: 12px !important; bottom: 8px !important; font-size: 6px !important; }
    .v113-file-index strong { font-size: 18px !important; }
    .v113-wax-seal { top: 42px !important; width: 46px !important; height: 46px !important; font-size: 17px !important; }

    #matching-screen { height: var(--v128-app-height) !important; max-height: var(--v128-app-height) !important; padding: 4px !important; overflow: hidden !important; }
    .v118-matching-shell { width: min(1060px, calc(100vw - 8px)) !important; height: calc(var(--v128-app-height) - 8px) !important; max-height: none !important; min-height: 0 !important; display: flex !important; flex-direction: column !important; padding: 17px 13px 7px !important; overflow: hidden !important; }
    .v118-matching-header { flex: 0 0 auto; margin-top: 2px !important; padding-bottom: 4px !important; font-size: 5px !important; }
    #matching-screen .matching-kicker { flex: 0 0 auto; margin: 4px 0 2px !important; font-size: 6px !important; }
    #matching-screen h1 { flex: 0 0 auto; margin: 0 0 3px !important; font-size: clamp(18px, 8dvh, 27px) !important; }
    .v118-matchup { flex: 1 1 0 !important; min-height: 0 !important; width: min(720px, 92%) !important; grid-template-columns: minmax(100px, 1fr) 54px minmax(100px, 1fr) !important; gap: 8px !important; }
    .v118-operative { height: 100% !important; min-height: 0 !important; display: grid !important; grid-template-rows: minmax(0, 1fr) auto auto !important; }
    .v118-operative-portrait { width: min(18vw, 140px) !important; height: 100% !important; min-height: 0 !important; max-height: calc(var(--v128-app-height) - 122px) !important; }
    .v118-operative-code { margin-top: 2px !important; font-size: 5px !important; }
    .v118-operative-name { min-height: 12px !important; margin-top: 2px !important; font-size: 8px !important; }
    .v118-link-core #matching-spinner { width: 44px !important; height: 44px !important; }
    .v118-link-core #matching-spinner::after { inset: 9px !important; }
    .v118-link-core #matching-spinner span { inset: 17px !important; }
    .v118-link-label { margin-top: 4px !important; font-size: 5px !important; }
    .v118-matching-status { flex: 0 0 auto; width: 90% !important; margin: 4px auto 0 !important; font-size: 6px !important; }
    #matching-screen .matching-progress-frame { flex: 0 0 auto; width: 90% !important; height: 4px !important; margin: 3px auto 0 !important; }
    #matching-screen .matching-seal { flex: 0 0 auto; margin: 3px auto 0 !important; padding-top: 3px !important; font-size: 4.5px !important; }

    #startup-overlay { height: var(--v128-app-height) !important; min-height: 0 !important; max-height: var(--v128-app-height) !important; padding: 4px 10px !important; overflow: hidden !important; }
    .v117-order-no { padding: 0 10px 3px !important; font-size: 6px !important; }
    #startup-overlay h1 { margin: 3px 0 1px !important; font-size: clamp(19px, 9dvh, 30px) !important; }
    .v117-toss-rule { margin: 2px 0 4px !important; font-size: 7px !important; line-height: 1.25 !important; }
    .toss-cards { gap: clamp(10px, 4vw, 36px) !important; }
    .toss-player-box { min-width: 80px !important; }
    .toss-player-box > span { gap: 1px !important; font-size: 6px !important; }
    .toss-player-box > span b { font-size: 7px !important; }
    .toss-card-visual { width: clamp(42px, 16dvh, 58px) !important; height: clamp(63px, 24dvh, 86px) !important; min-height: 0 !important; margin-top: 3px !important; border-width: 2px !important; }
    #toss-result-text { min-width: min(620px, 86vw) !important; min-height: 25px !important; margin: 4px 0 0 !important; padding: 4px 10px !important; font-size: clamp(9px, 4dvh, 13px) !important; }
    .v117-order-foot { margin-top: 3px !important; font-size: 5px !important; }

    .v61-fighter-meta { bottom: clamp(27px, 10dvh, 42px) !important; }
    .v61-fighter-name { margin-top: 4px !important; font-size: clamp(16px, 8dvh, 29px) !important; }
    .v61-fighter-role { display: none !important; }
    .v61-fighter-side { padding: 3px 6px !important; font-size: 6px !important; }
    .v61-turn-order-badge { margin-top: 4px !important; padding: 3px 7px !important; font-size: 7px !important; }
    .v61-clash-kicker { top: 7px !important; font-size: 6px !important; }
    .v61-clash-core { top: 45% !important; width: clamp(58px, 23dvh, 92px) !important; font-size: clamp(30px, 15dvh, 54px) !important; }
    .v61-battle-start { bottom: 5px !important; padding: 5px 10px 4px !important; font-size: clamp(15px, 8dvh, 28px) !important; }
    .v61-battle-start small { margin-top: 3px !important; font-size: 6px !important; }
}

/* ---------- SHORT LANDSCAPE BATTLE GRID ---------- */
@media (orientation: landscape) and (max-height: 500px) {
    body.v45-battle-active.v64-shocker-battle {
        height: var(--v128-app-height) !important;
        min-height: 0 !important;
        max-height: var(--v128-app-height) !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto minmax(0, 1fr) !important;
        gap: 2px !important;
        overflow: hidden !important;
    }
    body.v45-battle-active.v64-shocker-battle > h2 { grid-column: 1 / -1 !important; grid-row: 1 !important; min-height: 18px !important; padding-block: 1px !important; font-size: clamp(11px, 4dvh, 15px) !important; }
    body.v45-battle-active.v64-shocker-battle #turn-info { grid-column: 1 / -1 !important; grid-row: 2 !important; min-height: 16px !important; padding-block: 1px !important; font-size: clamp(8px, 3dvh, 11px) !important; }
    body.v45-battle-active.v64-shocker-battle #phase-bar { grid-column: 1 / -1 !important; grid-row: 3 !important; min-height: 22px !important; max-height: 25px !important; padding-block: 3px !important; font-size: clamp(8px, 3dvh, 10px) !important; }
    body.v45-battle-active.v64-shocker-battle .opponent-area { grid-column: 1 !important; grid-row: 4 !important; }
    body.v45-battle-active.v64-shocker-battle .player-area { grid-column: 2 !important; grid-row: 4 !important; }
    body.v45-battle-active.v64-shocker-battle .field-area { height: 100% !important; min-height: 0 !important; padding: 3px !important; overflow: hidden !important; }
    body.v45-battle-active.v64-shocker-battle .player-area { grid-template-rows: auto minmax(0, .8fr) auto auto minmax(0, 1fr) auto !important; }
    body.v45-battle-active.v64-shocker-battle .opponent-area { grid-template-rows: auto minmax(0, 1fr) auto !important; }
    body.v45-battle-active.v64-shocker-battle .card { flex-basis: clamp(31px, 7.5dvh, 40px) !important; width: clamp(31px, 7.5dvh, 40px) !important; height: clamp(46px, 11.2dvh, 60px) !important; min-height: 0 !important; max-height: 60px !important; font-size: clamp(10px, 3.8dvh, 14px) !important; }
    body.v45-battle-active.v64-shocker-battle .disposal-box { height: clamp(22px, 7.5dvh, 32px) !important; min-height: 0 !important; padding: 2px !important; }
    body.v45-battle-active.v64-shocker-battle .disposal-title { margin-bottom: 1px !important; font-size: clamp(6px, 2.3dvh, 8px) !important; }
    body.v45-battle-active.v64-shocker-battle .graveyard-zone,
    body.v45-battle-active.v64-shocker-battle .slash-zone { display: flex !important; max-height: 12px !important; overflow-x: auto !important; overflow-y: hidden !important; }
    body.v45-battle-active.v64-shocker-battle #main-action-dock .action-btn,
    body.v45-battle-active.v64-shocker-battle #main-action-dock .confirm-btn,
    body.v45-battle-active.v64-shocker-battle #main-action-dock .cancel-btn { min-height: 23px !important; padding: 2px !important; font-size: 7px !important; }
}

@media (prefers-reduced-motion: reduce) {
    #home-screen.v62-shocker-home *,
    #v122-onboarding * { scroll-behavior: auto !important; }
}


/* SOURCE styles/live-field-tutorial.css */
:root {
    --v129-gold: #dfbd68;
    --v129-gold-light: #ffe8a5;
    --v129-ink: #030506;
    --v129-panel: rgba(8, 8, 8, .975);
    --v129-speaker: #dfbd68;
    --v129-speaker-glow: rgba(223, 189, 104, .48);
}

/* The legacy lesson engine remains off-screen; the real match DOM is the visible board. */
body.v129-tutorial-live {
    height: var(--v128-app-height, 100dvh) !important;
    min-height: 0 !important;
    max-height: var(--v128-app-height, 100dvh) !important;
    padding-top: calc(45px + env(safe-area-inset-top)) !important;
    overflow: hidden !important;
}

/* h2 is replaced by the fixed training topbar, so compact the real match grid
   from five rows to the four visible battle rows. */
body.v129-tutorial-live.v45-battle-active.v64-shocker-battle {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 4px !important;
}

body.v129-tutorial-live.v45-battle-active.v64-shocker-battle #turn-info {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.v129-tutorial-live.v45-battle-active.v64-shocker-battle #phase-bar {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

body.v129-tutorial-live.v45-battle-active.v64-shocker-battle .opponent-area {
    grid-column: 1 !important;
    grid-row: 3 !important;
}

body.v129-tutorial-live.v45-battle-active.v64-shocker-battle .player-area {
    grid-column: 1 !important;
    grid-row: 4 !important;
}

body.v129-tutorial-live #revolution-status {
    position: fixed !important;
    left: 50% !important;
    top: max(103px, calc(env(safe-area-inset-top) + 91px)) !important;
    z-index: 630 !important;
    width: min(520px, calc(100vw - 22px)) !important;
    margin: 0 !important;
    transform: translateX(-50%);
    pointer-events: none !important;
}

body.v129-tutorial-live > h2 {
    display: none !important;
}

body.v129-tutorial-live #v45-battle-menu-button,
body.v129-tutorial-live #v56-chain-log-open,
body.v129-tutorial-live #character-ability-overlay,
body.v129-tutorial-live #v37-ability-choice,
body.v129-tutorial-live #counter-menu,
body.v129-tutorial-live #player-chain-menu {
    display: none !important;
}

#v122-onboarding.v129-live-field {
    pointer-events: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    isolation: auto !important;
}

#v122-onboarding.v129-live-field::before,
#v122-onboarding.v129-live-field::after {
    content: none !important;
    display: none !important;
}

#v122-onboarding.v129-live-field .v122-stage {
    display: none !important;
}

#v122-onboarding.v129-live-field .v122-topbar {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 2147483505 !important;
    min-height: calc(42px + env(safe-area-inset-top)) !important;
    height: calc(42px + env(safe-area-inset-top)) !important;
    padding: calc(4px + env(safe-area-inset-top)) max(9px, env(safe-area-inset-right)) 4px max(9px, env(safe-area-inset-left)) !important;
    pointer-events: auto !important;
    background: linear-gradient(90deg, rgba(1, 3, 4, .98), rgba(55, 10, 16, .96) 50%, rgba(1, 3, 4, .98)) !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .76) !important;
}

#v122-onboarding.v129-live-field .v122-brand-seal {
    width: 29px !important;
    height: 29px !important;
    font-size: 14px !important;
    outline-offset: 2px !important;
}

#v122-onboarding.v129-live-field .v122-brand-copy b {
    font-size: clamp(9px, 1.15vw, 12px) !important;
}

#v122-onboarding.v129-live-field .v122-brand-copy small {
    margin-top: 2px !important;
    font-size: 5.5px !important;
}

#v122-onboarding.v129-live-field .v122-progress span:not(.v122-progress-label) {
    width: clamp(12px, 2vw, 24px) !important;
}

#v122-onboarding.v129-live-field .v122-skip {
    min-height: 29px !important;
    padding: 0 10px !important;
    font-size: 8px !important;
}

#v129-tutorial-guide[hidden] {
    display: none !important;
}

#v129-tutorial-guide {
    position: fixed;
    inset: 0;
    z-index: 2147483490;
    width: 100%;
    height: var(--v128-app-height, 100dvh);
    overflow: hidden;
    pointer-events: none;
    contain: layout paint;
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.v129-focus-ring {
    --v129-focus-left: 50%;
    --v129-focus-top: 50%;
    --v129-focus-width: 0px;
    --v129-focus-height: 0px;
    position: fixed;
    left: var(--v129-focus-left);
    top: var(--v129-focus-top);
    z-index: 1;
    width: var(--v129-focus-width);
    height: var(--v129-focus-height);
    border: 2px solid var(--v129-speaker);
    border-radius: 9px;
    opacity: 0;
    box-shadow:
        0 0 18px var(--v129-speaker-glow),
        0 0 0 200vmax rgba(0, 0, 0, .38);
    transition: left .22s ease, top .22s ease, width .22s ease, height .22s ease, opacity .18s ease;
    pointer-events: none;
}

.v129-focus-ring.show {
    opacity: 1;
}

.v129-guide-dialog {
    --v129-cut: 13px;
    position: fixed;
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 3;
    width: min(790px, calc(100vw - 16px));
    max-height: min(190px, calc(var(--v128-app-height, 100dvh) - 56px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: clamp(58px, 7.6vw, 86px) minmax(0, 1fr) minmax(96px, 126px);
    gap: clamp(7px, 1.2vw, 13px);
    align-items: stretch;
    padding: 9px 10px;
    overflow: hidden;
    pointer-events: auto;
    border: 1px solid color-mix(in srgb, var(--v129-speaker) 82%, #fff 18%);
    border-left: 4px solid var(--v129-speaker);
    color: #f2e5c1;
    background:
        linear-gradient(104deg, color-mix(in srgb, var(--v129-speaker) 11%, rgba(27, 7, 11, .98)), rgba(3, 6, 7, .985) 52%),
        var(--v129-panel);
    box-shadow: 0 18px 50px #000, 0 0 26px var(--v129-speaker-glow), inset 0 1px rgba(255, 255, 255, .07);
    clip-path: polygon(0 0, calc(100% - var(--v129-cut)) 0, 100% var(--v129-cut), 100% 100%, var(--v129-cut) 100%, 0 calc(100% - var(--v129-cut)));
}

.v129-guide-dialog::before {
    content: "LIVE FIELD COMMS";
    position: absolute;
    right: 14px;
    top: 7px;
    color: color-mix(in srgb, var(--v129-speaker) 33%, transparent);
    font: 700 6px/1 "Courier New", monospace;
    letter-spacing: .22em;
    pointer-events: none;
}

.v129-guide-dialog[data-placement="top"] {
    top: max(50px, calc(env(safe-area-inset-top) + 45px));
    bottom: auto;
}

.v129-guide-portrait {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--v129-speaker) 62%, transparent);
    background-position: 50% 16%;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: inset 0 -26px 28px #050607, 0 0 15px var(--v129-speaker-glow);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.v129-guide-portrait::after {
    content: "INSTRUCTOR";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 5px;
    color: var(--v129-speaker);
    font: 700 5.5px/1 "Courier New", monospace;
    letter-spacing: .14em;
    text-align: center;
    text-shadow: 0 1px 3px #000;
}

.v129-guide-copy {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.v129-guide-speaker {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

.v129-guide-speaker strong {
    overflow: hidden;
    color: var(--v129-speaker);
    font-size: clamp(12px, 1.6vw, 17px);
    line-height: 1;
    letter-spacing: .1em;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 0 11px var(--v129-speaker-glow);
}

.v129-guide-speaker span {
    overflow: hidden;
    color: #8f846a;
    font: 700 6px/1 "Courier New", monospace;
    letter-spacing: .12em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v129-guide-voice {
    margin: 5px 0 0;
    overflow: hidden;
    color: #eedba9;
    font-size: clamp(9px, 1.1vw, 11px);
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v129-guide-title {
    margin: 5px 0 3px;
    overflow: hidden;
    color: #fff0c3;
    font-size: clamp(12px, 1.45vw, 17px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: .055em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v129-guide-body {
    margin: 0;
    overflow: hidden;
    color: #c4b99d;
    font-size: clamp(8.5px, .95vw, 10.5px);
    line-height: 1.42;
    -webkit-line-clamp: 5;
}

.v129-guide-hint {
    margin: 4px 0 0;
    overflow: hidden;
    color: #f0d68c;
    font: 700 clamp(7px, .82vw, 9px)/1.3 "Yu Gothic", sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v129-guide-hint::before {
    content: "ORDER / ";
    color: #8f762f;
    font-family: "Courier New", monospace;
    letter-spacing: .12em;
}

.v129-guide-actions {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
}

.v129-guide-step {
    color: #94876b;
    font: 700 6.5px/1.3 "Courier New", monospace;
    letter-spacing: .12em;
    text-align: right;
}

.v129-guide-step b {
    display: block;
    margin-top: 2px;
    color: var(--v129-speaker);
    font-size: 9px;
}

.v129-guide-feedback {
    min-height: 2.5em;
    overflow: hidden;
    color: #ad9f80;
    font-size: 7.5px;
    line-height: 1.25;
    text-align: right;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.v129-guide-feedback.error {
    color: #ef8b8f;
}

.v129-guide-feedback.good {
    color: #f2da91;
}

#v129-guide-action {
    min-height: 38px;
    padding: 5px 8px;
    border: 1px solid color-mix(in srgb, var(--v129-speaker) 78%, #fff 12%);
    border-radius: 2px;
    color: #160e08;
    background: linear-gradient(180deg, #f1d88a, #9b742b);
    box-shadow: 0 6px 15px #000, inset 0 1px rgba(255, 255, 255, .38);
    font: 800 9px/1.25 Georgia, "Yu Mincho", serif;
    letter-spacing: .06em;
    cursor: pointer;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

#v129-guide-action[hidden] {
    display: none !important;
}

#v129-guide-action:focus-visible,
body.v129-tutorial-live .v129-control-target:focus-visible,
body.v129-tutorial-live .card.v129-target:focus-visible {
    outline: 3px solid var(--v129-gold-light) !important;
    outline-offset: 3px !important;
}

body.v129-tutorial-live .card.v129-target,
body.v129-tutorial-live .v129-control-target {
    z-index: 610 !important;
    border-color: var(--v129-gold-light) !important;
    outline: 2px solid rgba(255, 226, 137, .8) !important;
    box-shadow: 0 0 0 2px rgba(40, 23, 4, .84), 0 0 24px rgba(255, 197, 63, .9), 0 9px 18px #000 !important;
    animation: v129-target-pulse 1.15s ease-in-out infinite !important;
    cursor: pointer !important;
}

body.v129-tutorial-live .card.v129-pending {
    transform: translateY(-8px) scale(1.055) !important;
    filter: brightness(1.2) !important;
}

body.v129-tutorial-live .card.v129-slashed {
    opacity: .3 !important;
    transform: rotate(-7deg) scale(.88) !important;
    filter: grayscale(1) brightness(.56) contrast(1.2) !important;
    border-color: #8e1b25 !important;
    box-shadow: inset 0 0 22px rgba(70, 0, 5, .92), 0 0 0 1px rgba(230, 91, 99, .45) !important;
    pointer-events: none !important;
}

body.v129-tutorial-live .card.v129-slashed::after {
    content: "SLASH";
    position: absolute;
    left: -8%;
    right: -8%;
    top: 48%;
    z-index: 12;
    padding: 2px 0;
    border-block: 1px solid rgba(255, 134, 140, .78);
    color: #ffd8d8;
    background: rgba(93, 8, 14, .9);
    font: 900 7px/1 "Courier New", monospace;
    letter-spacing: .16em;
    text-align: center;
    transform: rotate(-24deg);
    text-shadow: 0 1px 2px #000;
}

body.v129-tutorial-live .card.v129-disabled {
    filter: brightness(.62) saturate(.58);
}

body.v129-tutorial-live .field-area,
body.v129-tutorial-live #hand-zone,
body.v129-tutorial-live #v42-field-card-side-actions,
body.v129-tutorial-live #v38-hand-action-controls {
    pointer-events: auto !important;
}

body.v129-tutorial-live #v38-hand-action-controls[hidden],
body.v129-tutorial-live #v42-field-card-side-actions[hidden] {
    display: none !important;
}

body.v129-tutorial-live #v38-hand-action-controls:not([hidden]),
body.v129-tutorial-live #v42-field-card-side-actions:not([hidden]) {
    z-index: 620 !important;
}

@keyframes v129-target-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.28) drop-shadow(0 0 8px rgba(255, 220, 124, .72)); }
}

@media (max-width: 620px) {
    body.v129-tutorial-live {
        padding-top: calc(42px + env(safe-area-inset-top)) !important;
    }
    #v122-onboarding.v129-live-field .v122-brand-copy small {
        display: none !important;
    }
    #v122-onboarding.v129-live-field .v122-progress {
        gap: 3px !important;
    }
    #v122-onboarding.v129-live-field .v122-progress span:not(.v122-progress-label) {
        width: 10px !important;
    }
    #v122-onboarding.v129-live-field .v122-progress-label {
        min-width: 40px !important;
        font-size: 5.5px !important;
    }
    .v129-guide-dialog {
        width: auto;
        max-height: 154px;
        grid-template-columns: 46px minmax(0, 1fr) 82px;
    }
    .v129-guide-dialog::before,
    .v129-guide-speaker span {
        display: none;
    }
    .v129-guide-speaker strong {
        font-size: 11px;
    }
    .v129-guide-voice {
        margin-top: 3px;
        font-size: 8px;
    }
    .v129-guide-title {
        margin-block: 3px 2px;
        font-size: 10.5px;
    }
    .v129-guide-body {
        font-size: 7.5px;
        line-height: 1.32;
        -webkit-line-clamp: 6;
    }
    .v129-guide-hint {
        margin-top: 2px;
        font-size: 6.7px;
    }
    .v129-guide-step {
        font-size: 5.5px;
    }
    .v129-guide-step b {
        font-size: 7.5px;
    }
    .v129-guide-feedback {
        font-size: 6.5px;
    }
    #v129-guide-action {
        min-height: 32px;
        padding: 3px 5px;
        font-size: 7.5px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    body.v129-tutorial-live {
        padding-top: calc(35px + env(safe-area-inset-top)) !important;
    }
    body.v129-tutorial-live.v45-battle-active.v64-shocker-battle {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        grid-template-rows: auto auto minmax(0, 1fr) !important;
        gap: 2px !important;
    }
    body.v129-tutorial-live.v45-battle-active.v64-shocker-battle #turn-info {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }
    body.v129-tutorial-live.v45-battle-active.v64-shocker-battle #phase-bar {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }
    body.v129-tutorial-live.v45-battle-active.v64-shocker-battle .opponent-area {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
    body.v129-tutorial-live.v45-battle-active.v64-shocker-battle .player-area {
        grid-column: 2 !important;
        grid-row: 3 !important;
    }
    body.v129-tutorial-live #revolution-status {
        top: max(76px, calc(env(safe-area-inset-top) + 68px)) !important;
        width: min(400px, calc(100vw - 18px)) !important;
        padding-block: 2px !important;
        font-size: 7px !important;
    }
    #v122-onboarding.v129-live-field .v122-topbar {
        min-height: calc(34px + env(safe-area-inset-top)) !important;
        height: calc(34px + env(safe-area-inset-top)) !important;
        padding-block: calc(2px + env(safe-area-inset-top)) 2px !important;
    }
    #v122-onboarding.v129-live-field .v122-brand-seal {
        width: 24px !important;
        height: 24px !important;
        font-size: 11px !important;
    }
    #v122-onboarding.v129-live-field .v122-skip {
        min-height: 25px !important;
        font-size: 6.5px !important;
    }
    .v129-guide-dialog {
        top: auto;
        bottom: max(4px, env(safe-area-inset-bottom));
        right: auto;
        width: calc(50vw - 8px);
        max-height: 116px;
        grid-template-columns: 39px minmax(0, 1fr) 68px;
        gap: 4px;
        padding: 5px;
        margin: 0;
    }
    .v129-guide-dialog[data-placement="top"] {
        top: max(38px, calc(env(safe-area-inset-top) + 35px));
        bottom: auto;
    }
    .v129-guide-dialog[data-focus-side="player"] {
        left: max(4px, env(safe-area-inset-left));
        right: auto;
    }
    .v129-guide-dialog[data-focus-side="opponent"] {
        left: auto;
        right: max(4px, env(safe-area-inset-right));
    }
    .v129-guide-dialog[data-focus-side="none"] {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    .v129-guide-speaker strong {
        font-size: 9.5px;
    }
    .v129-guide-voice {
        font-size: 7px;
    }
    .v129-guide-title {
        font-size: 9px;
    }
    .v129-guide-body {
        font-size: 7px;
        line-height: 1.2;
        -webkit-line-clamp: 5;
    }
    .v129-guide-hint {
        font-size: 6.2px;
    }
    .v129-guide-feedback {
        min-height: 2.3em;
        font-size: 5.8px;
    }
    #v129-guide-action {
        min-height: 28px;
        font-size: 7.2px;
    }
}


/* v131 concise field coaching: one command, one optional rule line. */
.v129-guide-dialog {
    max-height: min(142px, calc(var(--v128-app-height, 100dvh) - 56px));
    grid-template-columns: clamp(52px, 6.8vw, 72px) minmax(0, 1fr) minmax(94px, 120px);
    align-items: center;
    padding: 7px 9px;
}

.v129-guide-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.v129-guide-speaker span,
.v129-guide-voice,
.v129-guide-hint {
    display: none !important;
}

.v129-guide-title {
    margin: 6px 0 0;
    color: #fff4cf;
    font-size: clamp(14px, 1.7vw, 19px);
    font-weight: 800;
    line-height: 1.18;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.v129-guide-title::before {
    content: "操作";
    display: inline;
    margin-right: 7px;
    color: var(--v129-speaker);
    font: 800 7px/1 "Courier New", "Yu Gothic", sans-serif;
    letter-spacing: .18em;
}

.v129-guide-dialog[data-mode="observe"] .v129-guide-title::before { content: "確認"; }
.v129-guide-dialog[data-mode="briefing"] .v129-guide-title::before { content: "教練"; }

.v129-guide-body {
    margin: 5px 0 0;
    color: #cfc4a8;
    font-size: clamp(9px, 1vw, 11px);
    font-weight: 650;
    line-height: 1.25;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.v129-guide-body[hidden],
.v129-guide-feedback[hidden] { display: none !important; }

.v129-guide-actions {
    justify-content: center;
    gap: 5px;
}

.v129-guide-feedback {
    min-height: 0;
    text-align: left;
}

.v130-selection-meter {
    min-height: 23px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 6px;
    padding: 4px 6px;
    border: 1px solid color-mix(in srgb, var(--v129-speaker) 48%, transparent);
    color: var(--v129-speaker);
    background: rgba(0, 0, 0, .52);
    font: 700 7px/1 "Courier New", monospace;
    letter-spacing: .1em;
}

.v130-selection-meter[hidden] { display: none !important; }
.v130-selection-meter span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v130-selection-meter i { grid-column: 1; color: #ffe59b; font-style: normal; font-size: 10px; letter-spacing: .18em; }
.v130-selection-meter b { grid-column: 2; grid-row: 1 / span 2; font-size: 9px; white-space: nowrap; }

body.v129-tutorial-live .v130-observe-target {
    position: relative;
    z-index: 610 !important;
    outline: 2px solid var(--v129-gold-light) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 24px rgba(255, 197, 63, .72) !important;
}

body.v129-tutorial-live .graveyard-zone,
body.v129-tutorial-live .slash-zone {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
    overflow: hidden !important;
    min-height: 20px !important;
}

body.v129-tutorial-live .v130-result-chip {
    position: relative !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 25px !important;
    width: 25px !important;
    min-width: 25px !important;
    height: 18px !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
    border-radius: 4px !important;
    font-size: 8px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body.v129-tutorial-live .v130-result-chip.v130-observe-target {
    outline-offset: -2px !important;
    box-shadow: inset 0 0 0 2px #ffe8a5, 0 0 8px rgba(255, 197, 63, .72) !important;
}

body.v129-tutorial-live .v130-history-chip {
    color: #9d947f !important;
    border-style: dashed !important;
    background: rgba(12, 12, 12, .9) !important;
}

body.v129-tutorial-live .card.v129-disabled {
    cursor: default !important;
}

#v129-guide-action:disabled {
    cursor: wait;
    filter: grayscale(.55) brightness(.62);
    opacity: .72;
}

@media (max-width: 620px) {
    .v129-guide-dialog {
        max-height: 124px;
        grid-template-columns: 44px minmax(0, 1fr) 84px;
        gap: 5px;
        padding: 6px;
    }
    .v129-guide-title { margin-top: 4px; font-size: 12px; }
    .v129-guide-title::before { margin-right: 5px; font-size: 6.5px; }
    .v129-guide-body { margin-top: 4px; font-size: 9px; }
    .v129-guide-step { font-size: 6px; }
    .v129-guide-step b { font-size: 8.5px; }
    .v129-guide-feedback { font-size: 7px; }
    #v129-guide-action { font-size: 9px; }
}

@media (orientation: landscape) and (max-height: 500px) {
    .v129-guide-dialog {
        max-height: 106px;
        grid-template-columns: 38px minmax(0, 1fr) 78px;
    }
    .v129-guide-title { margin-top: 3px; font-size: 10px; line-height: 1.12; }
    .v129-guide-title::before { margin-right: 4px; font-size: 6px; }
    .v129-guide-body { margin-top: 3px; font-size: 9px; line-height: 1.12; }
    .v129-guide-feedback { font-size: 7px; }
    .v129-guide-step { font-size: 6px; }
    .v129-guide-step b { font-size: 8.5px; }
    #v129-guide-action { min-height: 32px; font-size: 9px; }
    .v130-selection-meter { min-height: 19px; padding: 2px 4px; }
    body.v129-tutorial-live .disposal-box { height: clamp(25px, 8dvh, 36px) !important; }
    body.v129-tutorial-live .graveyard-zone,
    body.v129-tutorial-live .slash-zone { min-height: 16px !important; max-height: 16px !important; }
    body.v129-tutorial-live .v130-result-chip { flex-basis: 21px !important; width: 21px !important; min-width: 21px !important; height: 14px !important; font-size: 6px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .v129-focus-ring,
    body.v129-tutorial-live .card.v129-target,
    body.v129-tutorial-live .v129-control-target {
        animation: none !important;
        transition: none !important;
    }
}

/* v203: one opponent teaches the player as Riana. Conversation scrolls in
   its own bounded column; the action and selection controls remain outside. */
body.v129-tutorial-live #player-sub-battle-character,
body.v129-tutorial-live #opponent-sub-battle-character {
    display: none !important;
}

.v129-guide-dialog {
    max-height: min(272px, calc(var(--v128-app-height, 100dvh) - 62px));
    grid-template-columns: clamp(54px, 6.8vw, 78px) minmax(0, 1fr) minmax(98px, 122px);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
}

.v129-guide-dialog::before { content: "LIBRARY TABLE"; }
.v129-guide-portrait::after { content: "ララサ / 対戦相手"; }

.v129-guide-copy {
    min-height: 0;
    max-height: 244px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--v129-speaker) transparent;
    scrollbar-gutter: stable;
    justify-content: flex-start;
    padding-right: 5px;
    -webkit-overflow-scrolling: touch;
}

.v129-guide-copy:focus-visible {
    outline: 2px solid var(--v129-gold-light);
    outline-offset: -2px;
}

#v203-guide-pov {
    display: block;
    margin-bottom: 6px;
    color: #e2ba73;
    font: 700 10px/1.35 "Yu Gothic", sans-serif;
    letter-spacing: .04em;
}

.v129-guide-speaker strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    font-size: clamp(12px, 1.35vw, 15px);
    line-height: 1.3;
}

.v129-guide-voice,
#v203-guide-riana {
    display: block !important;
    overflow: visible;
    margin: 6px 0 0;
    color: #f3e6c7;
    font: 500 clamp(11px, 1.13vw, 13px)/1.55 Georgia, "Yu Mincho", serif;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
}

.v129-guide-voice[hidden],
#v203-guide-riana[hidden] { display: none !important; }

#v203-guide-riana {
    padding: 6px 8px;
    border-left: 2px solid #ba9652;
    background: rgba(184, 143, 58, .09);
    color: #e5c98e;
}

#v203-guide-riana::before {
    content: attr(data-speaker) "：";
    color: #f2dcaa;
    font-size: .92em;
    font-weight: 700;
}

#v203-guide-riana[data-mode="thought"] { color: #d6c5a5; }

.v129-guide-title,
.v129-guide-body,
.v129-guide-feedback {
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
}

.v129-guide-title {
    order: -1;
    position: sticky;
    top: 0;
    z-index: 2;
    flex: 0 0 auto;
    margin: 0 0 8px;
    padding: 4px 0 5px;
    border-bottom: 1px solid rgba(223, 189, 104, .28);
    background: #0b0c0e;
    font-size: clamp(12px, 1.45vw, 16px);
    line-height: 1.3;
}

.v129-guide-body { font-size: 10px; line-height: 1.45; }
.v129-guide-actions { min-height: 0; align-self: stretch; justify-content: flex-end; }
.v129-guide-feedback { font-size: 9px; line-height: 1.4; }
#v129-guide-action { flex: 0 0 auto; min-height: 40px; font-size: 10px; }

@media (max-width: 620px) {
    .v129-guide-dialog {
        max-height: min(244px, calc(var(--v128-app-height, 100dvh) - 54px));
        grid-template-columns: 36px minmax(0, 1fr) 76px;
        gap: 5px;
        padding: 7px 6px;
    }
    .v129-guide-copy { max-height: 222px; padding-right: 3px; }
    .v129-guide-portrait::after { content: "LARASA"; font-size: 5px; }
    #v203-guide-pov { font-size: 9px; margin-bottom: 4px; }
    .v129-guide-speaker strong { font-size: 11px; }
    .v129-guide-voice,
    #v203-guide-riana { font-size: 11px; line-height: 1.45; margin-top: 5px; }
    #v203-guide-riana { padding: 5px 6px; }
    .v129-guide-title { font-size: 11px; margin: 0 0 6px; }
    .v129-guide-body { font-size: 9px; line-height: 1.4; }
    .v129-guide-feedback { font-size: 8px; }
    #v129-guide-action { min-height: 38px; font-size: 9px; padding: 5px; }
}

@media (orientation: landscape) and (max-height: 500px) {
    .v129-guide-dialog {
        width: calc(50vw - 8px);
        max-height: min(150px, calc(var(--v128-app-height, 100dvh) - 48px));
        grid-template-columns: 30px minmax(0, 1fr) 76px;
        padding: 5px;
        gap: 4px;
    }
    .v129-guide-copy { max-height: 138px; padding-right: 3px; }
    .v129-guide-portrait::after { content: "LARASA"; font-size: 4.5px; }
    #v203-guide-pov { font-size: 8px; margin-bottom: 3px; }
    .v129-guide-speaker strong { font-size: 10px; }
    .v129-guide-voice,
    #v203-guide-riana { font-size: 10px; line-height: 1.35; margin-top: 4px; }
    #v203-guide-riana { padding: 4px 5px; }
    .v129-guide-title { font-size: 10px; margin: 0 0 5px; }
    .v129-guide-body { font-size: 9px; line-height: 1.3; }
    .v129-guide-feedback { font-size: 8px; }
    #v129-guide-action { min-height: 34px; font-size: 9px; }
}


/* SOURCE styles/narration.css */
#v122-onboarding.v129-live-field .v129-guide-body { -webkit-line-clamp:3; }
#v122-onboarding.v129-live-field .v129-guide-dialog { max-height:min(164px,30dvh); }
@media (orientation:landscape) and (max-height:500px){
  #v122-onboarding.v129-live-field .v129-guide-body{font-size:8px;line-height:1.18;-webkit-line-clamp:3}
  #v122-onboarding.v129-live-field .v129-guide-dialog{max-height:min(116px,34dvh)}
}


/* SOURCE styles/full-motion.css */
body.v133-tutorial-motion #v129-tutorial-guide,
body.v133-tutorial-motion #v122-onboarding.v129-live-field .v122-topbar { visibility:hidden !important; }
body.v133-tutorial-motion .duel-cinematic { z-index:2147483615 !important; }
body.v133-final-result-motion .duel-cinematic { z-index:2147483615 !important; }
body.v133-final-result-motion #v45-battle-menu-button,
body.v133-final-result-ready #v45-battle-menu-button { visibility:hidden !important; pointer-events:none !important; }
body.v133-player-ability-motion #v45-battle-menu-button { pointer-events:none !important; opacity:.42 !important; }
body.v133-final-autoselect #v99-mode-overlay,
body.v133-final-autoselect #character-select-screen { pointer-events:auto !important; }
body.v133-final-autoselect #v99-mode-overlay *,
body.v133-final-autoselect #character-select-screen * { pointer-events:none !important; }
body.v133-tutorial-awaiting-deal #opponent-field>[data-v129-source-card],
body.v133-tutorial-awaiting-deal #player-field>[data-v129-source-card],
body.v133-tutorial-awaiting-deal #hand-zone>[data-v129-source-card] { visibility:hidden !important; }
body.v133-tutorial-motion .attack-motion-layer,
body.v133-tutorial-motion .attack-card-clone,
body.v133-tutorial-motion .attack-afterimage { z-index:2147483610 !important; }
.v133-flight-card {
    position:fixed !important; z-index:2147483605 !important; margin:0 !important;
    pointer-events:none !important; transform-origin:center; will-change:transform,opacity;
    filter:drop-shadow(0 8px 12px rgba(0,0,0,.42));
}
#v133-final-match-badge {
    position:fixed; top:max(8px,env(safe-area-inset-top)); right:max(9px,env(safe-area-inset-right));
    z-index:12980; display:none; align-items:center; gap:8px; min-height:34px; padding:0 12px;
    border:1px solid rgba(230,195,105,.72); border-radius:3px; color:#f7e6b9;
    background:linear-gradient(135deg,rgba(91,13,23,.96),rgba(5,11,13,.97));
    box-shadow:0 8px 22px rgba(0,0,0,.58),inset 0 0 18px rgba(214,177,79,.08);
    font:700 10px/1 "Courier New",monospace; letter-spacing:.12em; pointer-events:none;
}
#v133-final-match-badge.show { display:flex; }
#v133-final-match-badge b { color:#ffe39a; font-size:12px; }
#v133-final-match-badge.complete b { color:#8ff5bd; }
@media(max-width:540px){#v133-final-match-badge{top:max(5px,env(safe-area-inset-top));right:max(5px,env(safe-area-inset-right));min-height:29px;padding:0 8px;font-size:8px}#v133-final-match-badge b{font-size:10px}}

/* SOURCE styles/skin-shop.css */
:root{--v134-gold:#d9b766;--v134-gold2:#fff0b1;--v134-wine:#731521;--v134-ink:#050607;--v134-ivory:#eee0b8;--v134-muted:#9e9274}
body.v134-shop-open{overflow:hidden!important}
#v134-skin-shop[hidden],#v134-purchase-modal[hidden]{display:none!important}
#v134-skin-shop{position:fixed;inset:0;z-index:2147483250;display:grid;place-items:center;padding:clamp(8px,2vw,24px);box-sizing:border-box;color:var(--v134-ivory);background:radial-gradient(circle at 78% 18%,rgba(133,26,39,.22),transparent 28%),radial-gradient(circle at 20% 86%,rgba(217,183,102,.09),transparent 32%),linear-gradient(135deg,rgba(1,2,3,.99),rgba(24,7,11,.985) 56%,rgba(2,4,5,.99));font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif;isolation:isolate}
#v134-skin-shop::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.24;background:repeating-linear-gradient(90deg,transparent 0 89px,rgba(217,183,102,.025) 90px),repeating-linear-gradient(0deg,transparent 0 63px,rgba(255,255,255,.018) 64px)}
#v134-skin-shop::after{content:"♛";position:absolute;right:4vw;bottom:-9vh;color:rgba(217,183,102,.027);font-size:min(58vw,720px);line-height:1;pointer-events:none}
.v134-shop-shell{position:relative;z-index:2;width:min(1480px,100%);height:min(920px,calc(100dvh - clamp(16px,4vw,48px)));min-height:560px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(217,183,102,.58);background:linear-gradient(135deg,rgba(7,9,10,.985),rgba(25,10,13,.965));box-shadow:0 34px 110px #000,0 0 0 1px rgba(113,21,31,.7),inset 0 0 70px rgba(0,0,0,.58);clip-path:polygon(0 0,calc(100% - 28px) 0,100% 28px,100% 100%,28px 100%,0 calc(100% - 28px))}
.v134-shop-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px;padding:12px clamp(14px,2vw,28px);border-bottom:1px solid rgba(217,183,102,.31);background:linear-gradient(90deg,rgba(115,21,33,.27),transparent 48%,rgba(0,0,0,.36))}
.v134-shop-title{min-width:0}.v134-shop-kicker{color:#bfa35f;font:700 8px/1.2 "Courier New",monospace;letter-spacing:.34em}.v134-shop-title h2{margin:5px 0 0;color:#fae8b4;font-size:clamp(22px,3vw,39px);font-weight:500;line-height:1;letter-spacing:.13em;text-shadow:0 3px 0 #000,0 0 22px rgba(217,183,102,.22)}
.v134-header-actions{display:flex;align-items:center;gap:8px}.v134-wallet{min-width:152px;padding:9px 13px;border:1px solid rgba(217,183,102,.38);background:rgba(0,0,0,.55);color:#9d9072;font:700 8px/1.2 "Courier New",monospace;letter-spacing:.13em}.v134-wallet strong{display:block;margin-top:4px;color:#f5d77f;font:900 16px/1 Georgia,serif;letter-spacing:.08em}.v134-wallet strong::before{content:"♛ ";color:#ae2632}
.v134-icon-button{width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(217,183,102,.35);border-radius:1px;color:#ddc995;background:#080909;font-size:20px;cursor:pointer}.v134-icon-button:hover,.v134-icon-button:focus-visible{border-color:#f0d887;color:#fff0b8;outline:none;box-shadow:0 0 16px rgba(217,183,102,.18)}
.v134-shop-main{min-height:0;display:grid;grid-template-columns:minmax(460px,1.15fr) minmax(390px,.85fr);gap:0}
.v134-feature{position:relative;min-height:0;overflow:hidden;border-right:1px solid rgba(217,183,102,.24);background:radial-gradient(circle at 68% 36%,var(--v134-product-glow,rgba(152,36,50,.3)),transparent 34%),linear-gradient(115deg,#050708 0 29%,rgba(18,7,10,.94) 62%,#040607)}
.v134-feature::before{content:"LIMITED ARCHIVE";position:absolute;left:4%;top:4%;color:rgba(255,239,194,.055);font:900 clamp(48px,7vw,110px)/.85 Georgia,serif;letter-spacing:-.05em;white-space:nowrap}
.v134-card-stage{position:absolute;inset:6% 5% 7% 39%;display:flex;align-items:center;justify-content:center;perspective:1200px}
.v134-stage-card{position:absolute;height:min(82%,650px);aspect-ratio:1389/1944;margin:0;border:1px solid rgba(255,239,190,.7);background:#090909;box-shadow:0 28px 58px rgba(0,0,0,.82),0 0 24px var(--v134-product-glow,rgba(217,183,102,.24));transition:transform .42s cubic-bezier(.2,.8,.2,1),filter .42s,opacity .42s;overflow:hidden}.v134-stage-card img{width:100%;height:100%;display:block;object-fit:cover}.v134-stage-card.normal{z-index:2;transform:translateX(-21%) rotate(-5deg)}.v134-stage-card.awaken{z-index:1;transform:translateX(24%) translateY(2%) rotate(5deg);filter:brightness(.68) saturate(.72)}.v134-card-stage.is-awaken .v134-stage-card.normal{z-index:1;transform:translateX(-24%) translateY(2%) rotate(-5deg);filter:brightness(.68) saturate(.72)}.v134-card-stage.is-awaken .v134-stage-card.awaken{z-index:2;transform:translateX(21%) rotate(5deg);filter:none}.v134-card-tag{position:absolute;left:8px;top:8px;padding:5px 7px;border-left:2px solid #e2c574;color:#f3e5bc;background:rgba(0,0,0,.8);font:800 7px/1 "Courier New",monospace;letter-spacing:.14em}
.v134-feature-copy{position:absolute;z-index:5;left:clamp(18px,3vw,46px);bottom:clamp(20px,5vh,56px);width:39%;min-width:230px}.v134-feature-series{display:inline-flex;padding:5px 8px;border-left:3px solid var(--v134-product-accent,#a72936);color:#c3ab70;background:linear-gradient(90deg,rgba(0,0,0,.85),transparent);font:700 8px/1 "Courier New",monospace;letter-spacing:.18em}.v134-feature-name{margin:13px 0 8px;color:#fff0c1;font-size:clamp(27px,3.7vw,55px);line-height:.96;font-weight:600;letter-spacing:.03em;text-shadow:0 4px 0 #000,0 12px 30px #000}.v134-feature-character{color:var(--v134-product-accent,#d9b766);font:700 11px/1.4 "Courier New",monospace;letter-spacing:.14em}.v134-feature-description{margin:13px 0 0;color:#c3b794;font-size:clamp(9px,1vw,12px);line-height:1.72}.v134-feature-hint{display:flex;gap:5px;margin-top:13px}.v134-preview-toggle{padding:7px 10px;border:1px solid rgba(217,183,102,.28);color:#9f9273;background:rgba(0,0,0,.62);font:700 7px/1 "Courier New",monospace;letter-spacing:.13em;cursor:pointer}.v134-preview-toggle.is-active{border-color:#ddc168;color:#f5df9f;background:rgba(115,21,33,.32)}
.v134-market{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:linear-gradient(180deg,rgba(5,6,7,.97),rgba(14,8,9,.98))}.v134-market-heading{padding:20px 22px 12px}.v134-market-heading small{color:#a88f58;font:700 7px/1 "Courier New",monospace;letter-spacing:.25em}.v134-market-heading h3{margin:6px 0 0;color:#e9d9ad;font-size:18px;font-weight:500;letter-spacing:.08em}.v134-product-list{min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:5px 18px 14px;overflow:auto;scrollbar-color:#7b5c26 #080909}.v134-product{position:relative;min-height:190px;padding:0;overflow:hidden;border:1px solid rgba(217,183,102,.22);color:#ead9aa;background:#080909;text-align:left;cursor:pointer;isolation:isolate}.v134-product::after{content:"";position:absolute;inset:0;border:1px solid transparent;pointer-events:none}.v134-product:hover,.v134-product:focus-visible{border-color:rgba(217,183,102,.65);outline:none;filter:brightness(1.08)}.v134-product.is-selected{border-color:#e8ca72;box-shadow:0 0 0 1px rgba(232,202,114,.2),0 0 18px rgba(217,183,102,.14)}.v134-product.is-selected::after{border-color:rgba(255,238,183,.28)}.v134-product-art{position:absolute;inset:0}.v134-product-art img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 28%;filter:brightness(.54) saturate(.8);transform:scale(1.02);transition:.3s}.v134-product:hover .v134-product-art img,.v134-product.is-selected .v134-product-art img{filter:brightness(.68) saturate(.94);transform:scale(1.055)}.v134-product-art::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.06),rgba(2,3,4,.25) 37%,rgba(2,3,4,.98) 88%)}.v134-product-copy{position:absolute;z-index:2;left:12px;right:12px;bottom:11px}.v134-product-badge{display:inline-flex;padding:4px 6px;border:1px solid rgba(237,211,138,.46);color:#f2d789;background:rgba(0,0,0,.66);font:800 6.5px/1 "Courier New",monospace;letter-spacing:.12em}.v134-product-name{margin-top:7px;font-size:15px;line-height:1.08;letter-spacing:.04em}.v134-product-meta{display:flex;justify-content:space-between;gap:6px;margin-top:7px;color:#a99d7e;font:700 7px/1 "Courier New",monospace;letter-spacing:.08em}.v134-product-meta b{color:#e5c66e}.v134-owned-mark{position:absolute;z-index:3;right:8px;top:8px;padding:5px 7px;color:#142015;background:#b9d59f;font:900 7px/1 "Courier New",monospace;letter-spacing:.1em}.v134-owned-mark.equipped{color:#201606;background:#e6c970}
.v134-market-actions{padding:14px 18px 18px;border-top:1px solid rgba(217,183,102,.2);background:rgba(0,0,0,.32)}.v134-set-note{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;color:#9d9278;font:700 7px/1.4 "Courier New",monospace;letter-spacing:.1em}.v134-set-note strong{color:#e5cca0}.v134-action-row{display:flex;gap:8px}.v134-action{min-height:45px;flex:1;padding:9px 13px;border:1px solid rgba(217,183,102,.38);color:#decda0;background:linear-gradient(120deg,#111313,#080909);font:800 9px/1.2 Georgia,"Yu Mincho",serif;letter-spacing:.09em;cursor:pointer}.v134-action.primary{border-color:#d8b55d;color:#fff0be;background:linear-gradient(120deg,#64111b,#26090d 62%,#090909);box-shadow:inset 0 0 18px rgba(217,183,102,.08)}.v134-action:hover,.v134-action:focus-visible{border-color:#f0d681;outline:none;filter:brightness(1.12)}.v134-action:disabled{cursor:not-allowed;opacity:.48;filter:none}.v134-action.secondary{flex:0 0 auto;min-width:132px}
.v134-shop-footer{display:flex;justify-content:space-between;gap:12px;padding:8px 22px;border-top:1px solid rgba(217,183,102,.22);color:#665f50;background:#020303;font:700 6.5px/1.4 "Courier New",monospace;letter-spacing:.16em}.v134-shop-footer b{color:#9c8d68}
#v134-purchase-modal{position:fixed;inset:0;z-index:2147483260;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.82);backdrop-filter:blur(7px)}.v134-confirm-panel{width:min(480px,94vw);padding:24px;border:1px solid rgba(217,183,102,.6);background:radial-gradient(circle at 80% 5%,rgba(115,21,33,.35),transparent 35%),linear-gradient(145deg,#0d0f10,#170a0d);box-shadow:0 25px 80px #000}.v134-confirm-kicker{color:#b99a55;font:700 7px/1 "Courier New",monospace;letter-spacing:.26em}.v134-confirm-panel h3{margin:9px 0 8px;color:#f6e5b4;font-size:24px;font-weight:500}.v134-confirm-panel p{margin:0;color:#b9ae91;font-size:11px;line-height:1.75}.v134-confirm-price{display:flex;justify-content:space-between;margin:17px 0;padding:12px 0;border-top:1px solid rgba(217,183,102,.2);border-bottom:1px solid rgba(217,183,102,.2);color:#a89b7c;font-size:11px}.v134-confirm-price strong{color:#f0d47a;font-size:18px}.v134-confirm-actions{display:flex;gap:8px}.v134-toast{position:fixed;z-index:2147483270;left:50%;bottom:28px;translate:-50% 20px;min-width:min(420px,88vw);padding:12px 18px;border:1px solid rgba(217,183,102,.48);color:#f0ddb0;background:rgba(5,7,8,.96);box-shadow:0 12px 38px #000;text-align:center;font-size:10px;letter-spacing:.08em;opacity:0;pointer-events:none;transition:.25s}.v134-toast.show{translate:-50% 0;opacity:1}
#home-screen .home-menu-btn.v134-shop-menu{border-color:rgba(217,183,102,.45)!important;background:linear-gradient(125deg,rgba(95,17,27,.54),rgba(8,10,10,.94))!important}#home-screen .home-menu-btn.v134-shop-menu .home-menu-icon{color:#f1d47e!important;text-shadow:0 0 15px rgba(217,183,102,.48)}#home-screen .v134-home-wallet{cursor:pointer}.v134-home-wallet b::before{content:"♛ ";color:#af2631}
@media(max-width:980px){.v134-shop-shell{height:calc(100dvh - 16px);min-height:520px}.v134-shop-main{grid-template-columns:minmax(360px,1fr) minmax(340px,.9fr)}.v134-card-stage{inset:5% 2% 8% 36%}.v134-feature-copy{left:18px;width:41%;min-width:190px}.v134-product-list{padding-inline:10px}.v134-market-heading,.v134-market-actions{padding-inline:12px}}
@media(max-width:740px){#v134-skin-shop{padding:0}.v134-shop-shell{width:100%;height:100dvh;min-height:0;clip-path:none;border-left:0;border-right:0}.v134-shop-header{min-height:59px;padding:8px 10px}.v134-shop-kicker{font-size:5.5px}.v134-shop-title h2{font-size:20px}.v134-wallet{min-width:102px;padding:7px 8px;font-size:6px}.v134-wallet strong{font-size:11px}.v134-icon-button{width:36px;height:36px}.v134-shop-main{display:block;overflow:auto}.v134-feature{height:54dvh;min-height:380px;border-right:0;border-bottom:1px solid rgba(217,183,102,.24)}.v134-card-stage{inset:4% -3% 5% 42%}.v134-stage-card{height:78%}.v134-feature-copy{left:14px;bottom:18px;width:47%;min-width:0}.v134-feature-name{font-size:clamp(25px,8vw,39px)}.v134-feature-description{font-size:8px;line-height:1.55}.v134-market{min-height:520px}.v134-product-list{overflow:visible}.v134-shop-footer{display:none}.v134-action.secondary{min-width:108px}.v134-set-note{font-size:6px}}
@media(max-width:430px){.v134-product-list{grid-template-columns:1fr 1fr;gap:6px}.v134-product{min-height:165px}.v134-product-name{font-size:12px}.v134-product-meta{font-size:6px}.v134-feature-hint{flex-direction:column;align-items:flex-start}.v134-preview-toggle{padding:6px 7px}.v134-action-row{flex-direction:column}.v134-action.secondary{min-width:0}.v134-card-stage{inset:5% -18% 9% 37%}.v134-stage-card{height:72%}}
@media(prefers-reduced-motion:reduce){.v134-stage-card,.v134-product-art img,.v134-toast{transition:none!important}}


/* SOURCE styles/battle-stamp-catalog-v205.css */
/* Each stamp owns one complete transparent image. No atlas sampling or crop. */
.v204-stamp-art{display:block;position:relative;width:100%;aspect-ratio:1;overflow:hidden;flex-shrink:0;pointer-events:none;isolation:isolate}
.v204-stamp-art>img{display:block!important;position:static!important;inset:auto!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;transform:none!important;border:0!important;border-radius:0!important;pointer-events:none!important}

/* The image is its original 3x2 atlas. The square outer clips exactly one cell. */
.v204-stamp-art.is-atlas>img{position:absolute!important;inset:auto!important;left:calc(var(--stamp-x) * 1%)!important;top:calc(var(--stamp-y) * 1%)!important;width:calc(var(--stamp-columns) * 100%)!important;height:calc(var(--stamp-rows) * 100%)!important;max-width:none!important;max-height:none!important;object-fit:fill!important;object-position:initial!important}


/* SOURCE styles/usability-trial.css */
/* ホームの音量操作を、セーフエリア込みで左下へ移動する。 */
#shocker-audio-panel {
    top: auto !important;
    right: auto !important;
    left: max(8px, env(safe-area-inset-left)) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
}

/* プロフィールは見出しと保存操作を残し、フォーム本文だけをスクロールさせる。 */
#v105-profile-editor .v105-profile-panel-body {
    min-height: 0 !important;
}

/* レアカードを実物のトランプに近い角丸とクリップへ統一する。 */
.v134-stage-card {
    border-radius: clamp(14px, 1.55vw, 22px) !important;
}
.v134-stage-card img {
    border-radius: inherit;
}
.v134-product {
    border-radius: 12px !important;
}
.v134-product::after,
.v134-product-art,
.v134-product-art::after {
    border-radius: inherit;
}
#character-grid .character-card:is(
    [data-character-id="zaraku-maburoi"],
    [data-character-id="benito-riana"],
    [data-character-id="monty-larasa"],
    [data-character-id="mirano-misha"]
) {
    border-radius: 20px !important;
    clip-path: inset(0 round 20px) !important;
    overflow: hidden !important;
}
#player-battle-character:is(
    [data-character-id="zaraku-maburoi"],
    [data-character-id="benito-riana"],
    [data-character-id="monty-larasa"],
    [data-character-id="mirano-misha"]
),
#opponent-battle-character:is(
    [data-character-id="zaraku-maburoi"],
    [data-character-id="benito-riana"],
    [data-character-id="monty-larasa"],
    [data-character-id="mirano-misha"]
) {
    border-radius: 18px !important;
    overflow: hidden !important;
}

.v134-action-row {
    flex-wrap: wrap;
}
#v135-trial-button {
    flex: 1 1 150px;
    min-width: 148px;
    border-color: rgba(151, 190, 218, .55);
    color: #d9efff;
    background: linear-gradient(120deg, #102331, #070d12 68%, #080909);
}
#v135-trial-button::before {
    content: "♠ ";
    color: #88c8ef;
}
#v135-trial-button:hover,
#v135-trial-button:focus-visible {
    border-color: #a9dcfa;
    box-shadow: inset 0 0 18px rgba(82, 166, 219, .1), 0 0 15px rgba(82, 166, 219, .12);
}
#v135-trial-button[aria-busy="true"] {
    cursor: progress;
}
body.v135-trial-routing {
    cursor: wait;
}

#v135-trial-badge {
    position: fixed;
    z-index: 2147483000;
    top: max(8px, env(safe-area-inset-top));
    left: 50%;
    translate: -50% 0;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 2px 9px;
    max-width: min(520px, calc(100vw - 28px));
    padding: 8px 13px;
    border: 1px solid rgba(155, 211, 244, .56);
    border-radius: 999px;
    color: #eaf7ff;
    background: rgba(4, 12, 17, .94);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .56), inset 0 0 18px rgba(73, 161, 216, .08);
    font-family: "Courier New", "Yu Gothic", sans-serif;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .22s, transform .22s;
}
#v135-trial-badge[hidden] {
    display: none !important;
}
#v135-trial-badge.show {
    opacity: 1;
    transform: translateY(0);
}
#v135-trial-badge span {
    grid-row: 1 / span 2;
    color: #8fd4ff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .16em;
}
#v135-trial-badge strong {
    overflow: hidden;
    font: 800 10px/1.15 Georgia, "Yu Mincho", serif;
    letter-spacing: .06em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#v135-trial-badge small {
    color: #88a0ad;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .08em;
}

@media (max-width: 430px) {
    #shocker-audio-panel {
        top: auto !important;
        right: auto !important;
        left: max(4px, env(safe-area-inset-left)) !important;
        bottom: max(4px, env(safe-area-inset-bottom)) !important;
    }
    .v134-stage-card {
        border-radius: 14px !important;
    }
    .v134-product {
        border-radius: 10px !important;
    }
    #v135-trial-button {
        min-width: 0;
    }
    #v135-trial-badge {
        top: max(5px, env(safe-area-inset-top));
        padding: 7px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #v135-trial-badge {
        transition: none !important;
    }
}


/* SOURCE styles/season-one-battle-pass.css */
:root {
    --v137-gold:#d9b766;
    --v137-gold-pale:#f7e5ac;
    --v137-wine:#8c1f31;
    --v137-wine-dark:#3b0911;
    --v137-jade:#3f9d79;
    --v137-ink:#050607;
    --v137-paper:#e9dab1;
    --v137-muted:#968c75;
}
body.v137-pass-open { overflow:hidden !important; }
#v137-battle-pass[hidden] { display:none !important; }

/* The seventh home entry needs one more secondary row. */
#home-screen.v62-shocker-home .home-menu-grid {
    grid-template-rows:1.18fr repeat(3,minmax(0,1fr)) !important;
}
#v137-home-battle-pass-button {
    border-color:rgba(217,183,102,.52) !important;
    background:
        radial-gradient(circle at 84% 26%,rgba(63,157,121,.16),transparent 32%),
        linear-gradient(118deg,rgba(105,18,32,.76),rgba(12,10,11,.97) 64%) !important;
}
#v137-home-battle-pass-button .home-menu-icon {
    color:#f3d983 !important;
    text-shadow:0 0 15px rgba(217,183,102,.55) !important;
}
.v137-home-pass-state {
    position:absolute;
    z-index:5;
    right:9px;
    bottom:8px;
    display:flex;
    align-items:center;
    gap:5px;
    color:#a99b78;
    font:800 6px/1 "Courier New",monospace;
    letter-spacing:.08em;
}
.v137-home-pass-state::before {
    content:"";
    width:34px;
    height:2px;
    background:linear-gradient(90deg,var(--v137-gold) var(--v137-home-progress,0%),rgba(255,255,255,.12) 0);
    box-shadow:0 0 7px rgba(217,183,102,.28);
}
#v137-home-battle-pass-button.has-claimable::after {
    content:"" !important;
    position:absolute !important;
    inset:8px 31px auto auto !important;
    width:7px !important;
    height:7px !important;
    border-radius:50% !important;
    background:#f4d776 !important;
    box-shadow:0 0 0 3px rgba(115,21,33,.92),0 0 12px #f4d776 !important;
    animation:v137-pulse 1.7s ease-in-out infinite !important;
}

#v137-battle-pass {
    position:fixed;
    inset:0;
    z-index:2147483280;
    display:grid;
    place-items:center;
    box-sizing:border-box;
    padding:clamp(0px,1.2vw,16px);
    color:var(--v137-paper);
    background:
        radial-gradient(circle at 12% 20%,rgba(119,22,36,.33),transparent 31%),
        radial-gradient(circle at 87% 76%,rgba(35,104,82,.22),transparent 34%),
        linear-gradient(135deg,#020304 0%,#14070b 49%,#03100f 100%);
    font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif;
    isolation:isolate;
}
#v137-battle-pass::before {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    opacity:.28;
    background:
        repeating-linear-gradient(90deg,transparent 0 119px,rgba(217,183,102,.025) 120px),
        repeating-linear-gradient(0deg,transparent 0 79px,rgba(255,255,255,.017) 80px),
        radial-gradient(circle at center,transparent 37%,rgba(0,0,0,.76));
}
.v137-pass-shell {
    position:relative;
    z-index:2;
    width:min(1560px,100%);
    height:min(970px,calc(100dvh - clamp(0px,2.4vw,32px)));
    min-height:560px;
    display:grid;
    grid-template-rows:auto auto auto minmax(0,1fr) auto;
    overflow:hidden;
    border:1px solid rgba(217,183,102,.58);
    background:linear-gradient(135deg,rgba(7,9,10,.985),rgba(23,8,12,.97) 60%,rgba(4,12,12,.985));
    box-shadow:0 32px 110px #000,0 0 0 1px rgba(115,21,33,.68),inset 0 0 80px rgba(0,0,0,.58);
    clip-path:polygon(0 0,calc(100% - 26px) 0,100% 26px,100% 100%,26px 100%,0 calc(100% - 26px));
}
.v137-pass-header {
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:max(9px,env(safe-area-inset-top)) max(clamp(13px,2vw,27px),env(safe-area-inset-right)) 9px max(clamp(13px,2vw,27px),env(safe-area-inset-left));
    border-bottom:1px solid rgba(217,183,102,.25);
    background:linear-gradient(90deg,rgba(112,20,34,.26),transparent 48%,rgba(17,70,57,.12));
}
.v137-brand-kicker,
.v137-eyebrow {
    color:#bca05c;
    font:800 7px/1.25 "Courier New",monospace;
    letter-spacing:.32em;
}
.v137-pass-header h2 {
    margin:4px 0 0;
    color:#f8e8b7;
    font-size:clamp(18px,2.25vw,31px);
    font-weight:500;
    line-height:1;
    letter-spacing:.12em;
    text-shadow:0 3px 0 #000,0 0 21px rgba(217,183,102,.2);
}
.v137-header-tools { display:flex;align-items:center;gap:8px; }
.v137-seal-wallet {
    min-width:138px;
    padding:8px 11px;
    border:1px solid rgba(217,183,102,.33);
    background:rgba(0,0,0,.52);
    color:#968b70;
    font:800 6.5px/1.25 "Courier New",monospace;
    letter-spacing:.13em;
}
.v137-seal-wallet strong {
    display:block;
    margin-top:3px;
    color:#f1d578;
    font:900 14px/1 Georgia,serif;
    letter-spacing:.08em;
}
.v137-seal-wallet strong::before { content:"◈ ";color:#bd3443; }
.v137-icon-button {
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid rgba(217,183,102,.38);
    color:#e1cc96;
    background:#08090a;
    font-size:20px;
    cursor:pointer;
}
.v137-icon-button:hover,.v137-icon-button:focus-visible {
    border-color:#f0d681;
    color:#fff1bd;
    outline:2px solid rgba(240,214,129,.22);
    outline-offset:2px;
}

.v137-pass-hero {
    position:relative;
    min-height:clamp(145px,22dvh,218px);
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);
    align-items:center;
    overflow:hidden;
    border-bottom:1px solid rgba(217,183,102,.2);
    background:
        linear-gradient(90deg,rgba(6,7,8,.96) 0 26%,rgba(14,7,9,.5) 52%,rgba(4,10,10,.93) 100%),
        radial-gradient(circle at 61% 46%,rgba(151,28,45,.26),transparent 32%);
}
.v137-pass-hero::before {
    content:"SILENT\A REVOLT";
    white-space:pre;
    position:absolute;
    left:42%;
    top:50%;
    transform:translate(-50%,-50%) skewX(-8deg);
    color:rgba(255,239,194,.036);
    font:900 clamp(64px,10vw,154px)/.72 Georgia,serif;
    letter-spacing:-.08em;
    pointer-events:none;
}
.v137-hero-art { position:absolute;inset:0;pointer-events:none;overflow:hidden; }
.v137-hero-art img {
    position:absolute;
    bottom:-35%;
    width:min(34vw,500px);
    height:150%;
    object-fit:contain;
    object-position:center bottom;
    filter:saturate(.75) contrast(1.08) brightness(.63);
    opacity:.62;
    -webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 55%,transparent 100%);
}


.v137-hero-copy {
    position:relative;
    z-index:3;
    padding:18px clamp(18px,3vw,48px);
    max-width:660px;
}
.v137-hero-copy h3 {
    margin:6px 0 8px;
    color:#fff0be;
    font-size:clamp(30px,4.6vw,65px);
    font-weight:500;
    line-height:.96;
    letter-spacing:.07em;
    text-shadow:0 4px 0 #000,0 10px 30px rgba(0,0,0,.8);
}
.v137-hero-copy p {
    margin:0;
    color:#a99e83;
    font-size:clamp(8px,1vw,12px);
    line-height:1.6;
    letter-spacing:.07em;
}
.v137-hero-copy p strong { color:#ddc780;font-weight:600; }
.v137-progress-dossier {
    position:relative;
    z-index:4;
    margin-right:clamp(14px,3vw,45px);
    padding:14px 16px;
    border:1px solid rgba(217,183,102,.34);
    background:linear-gradient(120deg,rgba(4,7,8,.88),rgba(39,11,16,.82));
    box-shadow:0 18px 45px rgba(0,0,0,.42);
}
.v137-level-row { display:flex;align-items:center;gap:14px; }
.v137-level-medallion {
    --v137-tier-progress:0%;
    position:relative;
    width:72px;
    aspect-ratio:1;
    flex:0 0 auto;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:conic-gradient(var(--v137-gold) var(--v137-tier-progress),rgba(255,255,255,.11) 0);
    box-shadow:0 0 20px rgba(217,183,102,.16);
}
.v137-level-medallion::before {
    content:"";
    position:absolute;
    inset:5px;
    border:1px solid rgba(217,183,102,.52);
    border-radius:50%;
    background:radial-gradient(circle,#2d0a11,#070809 70%);
}
.v137-level-medallion span { position:relative;color:#a99870;font:800 6px/1 "Courier New",monospace;letter-spacing:.18em;text-align:center; }
.v137-level-medallion strong { display:block;margin-top:3px;color:#f6df98;font:700 29px/.9 Georgia,serif;letter-spacing:0; }
.v137-progress-copy { min-width:0;flex:1; }
.v137-progress-copy small { color:#9c8f70;font:800 6.5px/1 "Courier New",monospace;letter-spacing:.19em; }
.v137-progress-copy strong { display:block;margin-top:5px;color:#f0dca5;font-size:15px;font-weight:500;letter-spacing:.07em; }
.v137-progress-track { height:5px;margin-top:10px;background:rgba(255,255,255,.1);overflow:hidden; }
.v137-progress-track i { display:block;height:100%;width:0;background:linear-gradient(90deg,#8c1f31,#e2bf64 56%,#6ab18e);box-shadow:0 0 11px rgba(217,183,102,.55);transition:width .45s ease; }
.v137-progress-meta { display:flex;justify-content:space-between;gap:8px;margin-top:6px;color:#817966;font:700 6px/1 "Courier New",monospace;letter-spacing:.1em; }
.v137-hero-stats { display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:12px; }
.v137-hero-stat { padding:7px;border-top:1px solid rgba(217,183,102,.22);background:rgba(0,0,0,.24);color:#847b67;font:700 6px/1.25 "Courier New",monospace;letter-spacing:.12em; }
.v137-hero-stat b { display:block;margin-top:4px;color:#d9c58f;font:800 11px/1 Georgia,serif;letter-spacing:.03em; }

.v137-pass-tabs {
    display:flex;
    align-items:stretch;
    padding:0 clamp(12px,2vw,26px);
    border-bottom:1px solid rgba(217,183,102,.22);
    background:#050708;
}
.v137-pass-tab {
    position:relative;
    min-width:150px;
    min-height:43px;
    padding:8px 16px;
    border:0;
    border-right:1px solid rgba(217,183,102,.14);
    color:#827a68;
    background:transparent;
    font:800 8px/1.25 "Courier New",monospace;
    letter-spacing:.17em;
    cursor:pointer;
}
.v137-pass-tab::after { content:"";position:absolute;right:15%;bottom:0;left:15%;height:2px;background:transparent; }
.v137-pass-tab.is-active { color:#f0d991;background:linear-gradient(180deg,rgba(115,21,33,.18),transparent); }
.v137-pass-tab.is-active::after { background:#d8b65d;box-shadow:0 0 9px #d8b65d; }
.v137-pass-tab:hover,.v137-pass-tab:focus-visible { color:#f2dfa9;outline:none;background-color:rgba(255,255,255,.025); }
.v137-pass-tab .v137-tab-count { margin-left:6px;padding:2px 5px;border:1px solid rgba(217,183,102,.28);color:#d8bc72;font-size:6px; }

.v137-pass-main { min-height:0;position:relative; }
.v137-panel { height:100%;min-height:0;overflow:auto;box-sizing:border-box;scrollbar-color:#765d2c #080a0a;overscroll-behavior:contain; }
.v137-panel[hidden] { display:none !important; }
.v137-panel-heading { display:flex;align-items:end;justify-content:space-between;gap:16px;padding:15px clamp(14px,2vw,27px) 10px; }
.v137-panel-heading h3 { margin:3px 0 0;color:#ead8a9;font-size:18px;font-weight:500;letter-spacing:.08em; }
.v137-panel-heading p { margin:0;color:#817967;font:700 7px/1.5 "Courier New",monospace;letter-spacing:.09em;text-align:right; }
.v137-track-legend { display:flex;gap:10px;padding:0 clamp(14px,2vw,27px) 8px; }
.v137-track-pill { display:flex;align-items:center;gap:6px;color:#9c9279;font:800 7px/1 "Courier New",monospace;letter-spacing:.12em; }
.v137-track-pill::before { content:"";width:18px;height:2px;background:#9b8a61; }
.v137-track-pill.premium::before { background:#a52b3d;box-shadow:0 0 7px rgba(165,43,61,.65); }
.v137-reward-scroll { min-height:0;overflow:auto;padding:2px clamp(14px,2vw,27px) 22px;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;touch-action:pan-x pan-y; }
.v137-reward-scroll:focus-visible { outline:1px solid rgba(233,205,128,.72);outline-offset:-2px;box-shadow:inset 0 0 18px rgba(217,183,102,.08); }
.v137-reward-road { width:max-content;display:flex;align-items:stretch;gap:8px;padding:4px 0 10px; }
.v137-tier-column { width:clamp(126px,10.5vw,158px);display:grid;grid-template-rows:minmax(125px,1fr) 40px minmax(125px,1fr);gap:5px;scroll-snap-align:start; }
.v137-reward-card {
    position:relative;
    min-height:0;
    width:100%;
    padding:11px 9px 9px;
    overflow:hidden;
    border:1px solid rgba(217,183,102,.2);
    border-radius:2px;
    color:#b7aa89;
    background:
        radial-gradient(circle at 90% 12%,rgba(217,183,102,.09),transparent 30%),
        linear-gradient(145deg,rgba(23,22,19,.97),rgba(5,7,8,.99));
    text-align:left;
    cursor:default;
    transition:transform .16s,border-color .16s,filter .16s;
}
.v137-reward-card.premium { border-color:rgba(149,38,55,.42);background:radial-gradient(circle at 88% 10%,rgba(157,36,53,.17),transparent 35%),linear-gradient(145deg,#210a0f,#070708 72%); }
.v137-reward-card.is-milestone { box-shadow:inset 0 0 0 1px rgba(217,183,102,.11); }
.v137-reward-card.is-locked { filter:saturate(.42) brightness(.63); }
.v137-reward-card.is-claimable { cursor:pointer;border-color:#d7b45c;box-shadow:0 0 0 1px rgba(215,180,92,.12),0 0 18px rgba(215,180,92,.1); }
.v137-reward-card.is-claimable:hover,.v137-reward-card.is-claimable:focus-visible,.v137-reward-card.can-equip:hover,.v137-reward-card.can-equip:focus-visible { transform:translateY(-3px);border-color:#f1d785;outline:none;filter:brightness(1.1); }
.v137-reward-card.is-claimed { border-color:rgba(82,157,119,.48);background:radial-gradient(circle at 88% 10%,rgba(63,157,121,.12),transparent 35%),linear-gradient(145deg,#101b17,#060808 74%); }
.v137-reward-card.can-equip { cursor:pointer; }
.v137-reward-symbol { display:grid;width:34px;height:34px;place-items:center;border:1px solid rgba(217,183,102,.3);transform:rotate(45deg);background:rgba(0,0,0,.42);color:#e1c66f;font:700 19px/1 Georgia,serif; }
.v137-reward-symbol span { transform:rotate(-45deg); }
.v137-reward-type { display:block;margin-top:12px;color:#817763;font:800 6px/1 "Courier New",monospace;letter-spacing:.18em; }
.v137-reward-name { display:block;margin-top:4px;color:#e1d2aa;font-size:10px;line-height:1.25;font-weight:600;letter-spacing:.04em; }
.v137-reward-state { position:absolute;right:7px;bottom:7px;left:7px;padding-top:6px;border-top:1px solid rgba(217,183,102,.14);color:#776f5d;font:800 6.5px/1 "Courier New",monospace;letter-spacing:.08em; }
.v137-reward-card.is-claimable .v137-reward-state { color:#f0d582; }
.v137-reward-card.is-claimed .v137-reward-state { color:#7dbb97; }
.v137-tier-node { position:relative;display:grid;place-items:center;color:#8d8168;font:800 7px/1 "Courier New",monospace; }
.v137-tier-node::before { content:"";position:absolute;left:-8px;right:-8px;top:50%;height:1px;background:rgba(217,183,102,.2); }
.v137-tier-node span { position:relative;display:grid;width:31px;height:31px;place-items:center;border:1px solid rgba(217,183,102,.33);transform:rotate(45deg);background:#080909; }
.v137-tier-node b { transform:rotate(-45deg);font-weight:800; }
.v137-tier-column.is-unlocked .v137-tier-node span { border-color:#e0be64;color:#f0d98b;background:#351019;box-shadow:0 0 12px rgba(217,183,102,.16); }

.v137-mission-layout { display:grid;grid-template-columns:1.1fr .9fr;gap:14px;padding:2px clamp(14px,2vw,27px) 24px; }
.v137-mission-group { border:1px solid rgba(217,183,102,.2);background:rgba(5,7,8,.72); }
.v137-mission-group.season { grid-column:1/-1; }
.v137-mission-group-header { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border-bottom:1px solid rgba(217,183,102,.16);background:linear-gradient(90deg,rgba(115,21,33,.18),transparent); }
.v137-mission-group-header h4 { margin:0;color:#dbc791;font-size:11px;font-weight:600;letter-spacing:.1em; }
.v137-mission-group-header span { color:#7e7562;font:700 6px/1 "Courier New",monospace;letter-spacing:.12em; }
.v137-mission-list { display:grid;gap:1px; }
.v137-mission {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    padding:10px 12px;
    border:0;
    border-bottom:1px solid rgba(217,183,102,.09);
    color:#a99e83;
    background:rgba(255,255,255,.012);
    text-align:left;
}
button.v137-mission { width:100%;cursor:default; }
.v137-mission.is-claimable { cursor:pointer;background:linear-gradient(90deg,rgba(115,21,33,.24),rgba(217,183,102,.035)); }
.v137-mission.is-claimable:hover,.v137-mission.is-claimable:focus-visible { outline:none;background:linear-gradient(90deg,rgba(145,28,44,.34),rgba(217,183,102,.08)); }
.v137-mission.is-claimed { opacity:.64; }
.v137-mission-name { display:block;color:#d7c79e;font-size:9px;font-weight:600;letter-spacing:.05em; }
.v137-mission-progress { height:3px;margin-top:7px;background:rgba(255,255,255,.09);overflow:hidden; }
.v137-mission-progress i { display:block;height:100%;background:linear-gradient(90deg,#812033,#d9b766); }
.v137-mission-meta { display:flex;justify-content:space-between;gap:8px;margin-top:4px;color:#706959;font:700 6.5px/1 "Courier New",monospace;letter-spacing:.07em; }
.v137-mission-reward { min-width:60px;color:#e3c974;font:800 8px/1.25 "Courier New",monospace;text-align:right;letter-spacing:.06em; }

.v137-vault-intro { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;margin:2px clamp(14px,2vw,27px) 14px;padding:15px 17px;border:1px solid rgba(217,183,102,.22);background:linear-gradient(115deg,rgba(115,21,33,.16),rgba(5,8,9,.8) 58%,rgba(31,94,74,.1)); }
.v137-vault-intro strong { color:#e7d3a0;font-size:13px;font-weight:500;letter-spacing:.08em; }
.v137-vault-intro p { margin:5px 0 0;color:#837a65;font-size:8px;line-height:1.55; }
.v137-vault-intro span { color:#bda561;font:800 8px/1 "Courier New",monospace;letter-spacing:.12em; }
.v137-vault-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:0 clamp(14px,2vw,27px) 25px; }
.v137-vault-item { position:relative;min-height:115px;padding:13px;border:1px solid rgba(217,183,102,.2);color:#b1a489;background:radial-gradient(circle at 85% 15%,rgba(217,183,102,.1),transparent 28%),linear-gradient(145deg,#151513,#060808);text-align:left;cursor:pointer; }
.v137-vault-item:hover,.v137-vault-item:focus-visible { border-color:#e2c36c;outline:none;transform:translateY(-2px); }
.v137-vault-item.is-equipped { border-color:#72ae8e;background:radial-gradient(circle at 85% 15%,rgba(63,157,121,.17),transparent 30%),linear-gradient(145deg,#101b17,#060808); }
.v137-vault-item-symbol { color:#e2c672;font-size:24px; }
.v137-vault-item small { display:block;margin-top:9px;color:#766d5b;font:800 6.5px/1 "Courier New",monospace;letter-spacing:.16em; }
.v137-vault-item strong { display:block;margin-top:4px;color:#ded0a9;font-size:10px;font-weight:600;line-height:1.25;letter-spacing:.04em; }
.v137-vault-item em { position:absolute;right:10px;bottom:9px;color:#857b66;font:normal 800 6.5px/1 "Courier New",monospace;letter-spacing:.08em; }
.v137-vault-item.is-equipped em { color:#7bb697; }
.v137-vault-empty { grid-column:1/-1;padding:34px;border:1px dashed rgba(217,183,102,.22);color:#7c7462;text-align:center;font-size:10px;letter-spacing:.08em; }

.v137-pass-footer {
    min-height:64px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:9px max(clamp(12px,2vw,26px),env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(clamp(12px,2vw,26px),env(safe-area-inset-left));
    border-top:1px solid rgba(217,183,102,.24);
    background:rgba(3,5,6,.96);
}
.v137-footer-note { color:#766e5c;font:700 6.5px/1.45 "Courier New",monospace;letter-spacing:.1em; }
.v137-footer-actions { display:flex;align-items:center;gap:8px; }
.v137-action {
    min-height:42px;
    padding:9px 16px;
    border:1px solid rgba(217,183,102,.38);
    color:#d9c89b;
    background:linear-gradient(120deg,#151616,#080909);
    font:800 8px/1.2 Georgia,"Yu Mincho",serif;
    letter-spacing:.08em;
    cursor:pointer;
}
.v137-action.primary { border-color:#d9b766;color:#fff0bc;background:linear-gradient(120deg,#721523,#300a10 62%,#090909);box-shadow:inset 0 0 18px rgba(217,183,102,.08); }
.v137-action.premium { border-color:#c69748;color:#fae5a5;background:linear-gradient(120deg,#0a1110,#4b0e18 52%,#17080b); }
.v137-action:hover,.v137-action:focus-visible { border-color:#f2d77f;outline:2px solid rgba(242,215,127,.2);outline-offset:2px;filter:brightness(1.12); }
.v137-action:disabled { cursor:not-allowed;opacity:.42;filter:none;outline:none; }

#v137-pass-toast {
    position:fixed;
    z-index:2147483290;
    left:50%;
    bottom:max(24px,env(safe-area-inset-bottom));
    min-width:min(480px,88vw);
    padding:12px 18px;
    border:1px solid rgba(217,183,102,.52);
    color:#f1ddb0;
    background:rgba(5,7,8,.97);
    box-shadow:0 16px 46px #000;
    font:700 9px/1.45 Georgia,"Yu Mincho",serif;
    letter-spacing:.06em;
    text-align:center;
    transform:translate(-50%,18px);
    opacity:0;
    pointer-events:none;
    transition:.24s;
}
#v137-pass-toast.show { transform:translate(-50%,0);opacity:1; }
.v137-result-sp {
    margin:-7px 0 16px;
    padding:10px 12px;
    border:1px solid rgba(217,183,102,.25);
    background:rgba(0,0,0,.26);
    color:#968b72;
    font:800 7px/1.3 "Courier New",monospace;
    letter-spacing:.12em;
}
.v137-result-sp strong { color:#f1d57b;font-size:13px; }
.v137-result-sp i { display:block;height:3px;margin-top:7px;background:linear-gradient(90deg,#8b2032 var(--v137-result-progress,0%),rgba(255,255,255,.1) 0); }

/* Seasonal profile overlays never mutate v105's frozen frame catalog. */
.v137-profile-plate { display:block;margin-top:2px;color:#c6aa65;font:800 5.5px/1 "Courier New",monospace;letter-spacing:.1em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.v137-profile-sigil { position:absolute;z-index:4;left:5px;top:5px;display:grid;width:17px;height:17px;place-items:center;border:1px solid #d6b65e;border-radius:50%;color:#f3dd96;background:#2d0b12;font:700 9px/1 Georgia,serif;box-shadow:0 0 9px rgba(217,183,102,.34); }
body[data-v137-sigil="underground-alliance"] .v137-profile-sigil { border-color:#799d86;color:#c7dfcf;background:#163026; }
body[data-v137-sigil="season-one-jade"] .v137-profile-sigil { border-color:#6bc19a;color:#d0ffe9;background:#103b2e;box-shadow:0 0 10px rgba(74,187,139,.48); }
body[data-v137-sigil="broken-crown"] .v137-profile-sigil { border-color:#d06a74;color:#ffd0d4;background:#49101a; }
body[data-v137-sigil="black-seal-entry"] .v137-profile-sigil { border-color:#d6b65e;color:#f5df9a;background:#12090b;box-shadow:0 0 10px rgba(217,183,102,.46); }
body[data-v137-sigil="ruby-seal"] .v137-profile-sigil { border-color:#dc6b82;color:#ffe0e6;background:#56101f;box-shadow:0 0 10px rgba(190,48,75,.5); }
body[data-v137-profile-frame="jade-order"] #v105-home-profile-button,
body[data-v137-profile-frame="jade-order"] #v105-profile-preview { --v105-frame-main:#4f9d79;--v105-frame-light:#a7dfc5;--v105-frame-dark:#163d31;--v105-frame-glow:rgba(79,157,121,.55); }
body[data-v137-profile-frame="ruby-command"] #v105-home-profile-button,
body[data-v137-profile-frame="ruby-command"] #v105-profile-preview { --v105-frame-main:#a82d42;--v105-frame-light:#f0a5b0;--v105-frame-dark:#410b15;--v105-frame-glow:rgba(184,43,65,.58); }
body[data-v137-profile-frame="black-seal-crown"] #v105-home-profile-button,
body[data-v137-profile-frame="black-seal-crown"] #v105-profile-preview { --v105-frame-main:#d1ad55;--v105-frame-light:#fff0a5;--v105-frame-dark:#14080a;--v105-frame-glow:rgba(217,183,102,.66); }
body[data-v137-profile-frame="black-seal-crown"] #v105-home-profile-button { box-shadow:0 0 0 1px #080909,0 0 15px rgba(217,183,102,.3),inset 0 0 18px rgba(107,18,31,.25) !important; }

/* Card-back rewards inherit onto cards created after equip. */
body[data-v137-card-back="discarded-decree"] .card.card-back,
body[data-v137-card-back="discarded-decree"] .deck-pile,
body[data-v137-card-back="discarded-decree"] .opponent-mini-card,
body[data-v137-card-back="discarded-decree"] .toss-card-visual.card-back,
body[data-v137-card-back="discarded-decree"] .v120-card-back {
    border-color:#c8aa60 !important;
    background-color:#17070a !important;
    background-image:linear-gradient(154deg,transparent 42%,rgba(226,198,122,.24) 43% 44%,transparent 45%),radial-gradient(circle at 50% 49%,#8e2133 0 7%,#d0ac59 8% 9%,transparent 10% 22%,rgba(208,172,89,.32) 23% 24%,transparent 25%),repeating-linear-gradient(45deg,#110709 0 8px,#310c13 8px 10px) !important;
}
body[data-v137-card-back="emerald-code"] .card.card-back,
body[data-v137-card-back="emerald-code"] .deck-pile,
body[data-v137-card-back="emerald-code"] .opponent-mini-card,
body[data-v137-card-back="emerald-code"] .toss-card-visual.card-back,
body[data-v137-card-back="emerald-code"] .v120-card-back {
    border-color:#d6bb6c !important;
    background-color:#071612 !important;
    background-image:radial-gradient(circle at center,#d6bb6c 0 3%,#225f49 4% 14%,transparent 15% 27%,rgba(214,187,108,.28) 28% 29%,transparent 30%),repeating-conic-gradient(from 45deg,#06110e 0 12deg,#194a39 12deg 24deg) !important;
}
body[data-v137-card-back="twin-regalia"] .card.card-back,
body[data-v137-card-back="twin-regalia"] .deck-pile,
body[data-v137-card-back="twin-regalia"] .opponent-mini-card,
body[data-v137-card-back="twin-regalia"] .toss-card-visual.card-back,
body[data-v137-card-back="twin-regalia"] .v120-card-back {
    border-color:#f0d079 !important;
    background-color:#13090d !important;
    background-image:radial-gradient(circle at 43% 50%,rgba(53,142,106,.9) 0 8%,transparent 9%),radial-gradient(circle at 57% 50%,rgba(159,36,54,.92) 0 8%,transparent 9%),radial-gradient(circle at center,transparent 0 23%,#d7b65e 24% 25%,transparent 26%),repeating-conic-gradient(#18090d 0 10deg,#3b151b 10deg 20deg) !important;
}
body[data-v137-foil="rebel-silver"] #player-hand .card:not(.card-back),
body[data-v137-foil="rebel-silver"] #player-field .card:not(.card-back) { box-shadow:inset 0 0 0 2px rgba(225,232,229,.5),0 0 13px rgba(194,220,211,.28) !important; }
body[data-v137-foil="royal-dual-foil"] #player-hand .card:not(.card-back),
body[data-v137-foil="royal-dual-foil"] #player-field .card:not(.card-back) { box-shadow:inset 0 0 0 2px rgba(247,216,128,.65),-4px 0 13px rgba(57,157,118,.3),4px 0 13px rgba(164,35,52,.34) !important; }
#v137-battle-cosmetic-badge { position:fixed;z-index:8100;right:12px;bottom:max(10px,env(safe-area-inset-bottom));display:none;max-width:190px;padding:7px 10px;border:1px solid rgba(217,183,102,.35);color:#bda969;background:rgba(5,7,8,.83);font:800 6px/1.35 "Courier New",monospace;letter-spacing:.12em;pointer-events:none; }
body.v45-battle-active #v137-battle-cosmetic-badge.has-content { display:block; }

@keyframes v137-pulse { 0%,100%{opacity:.55;transform:scale(.82)}50%{opacity:1;transform:scale(1.12)} }
@media(max-width:980px) {
    .v137-pass-hero { grid-template-columns:minmax(0,1fr) minmax(280px,.72fr); }
    .v137-vault-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .v137-mission-layout { grid-template-columns:1fr; }
    .v137-mission-group.season { grid-column:auto; }
}
@media(max-width:700px) {
    #v137-battle-pass { padding:0; }
    .v137-pass-shell { width:100%;height:100dvh;min-height:0;border-left:0;border-right:0;clip-path:none; }
    .v137-pass-header { min-height:52px;padding:max(7px,env(safe-area-inset-top)) max(9px,env(safe-area-inset-right)) 7px max(9px,env(safe-area-inset-left)); }
    .v137-brand-kicker { font-size:6px;letter-spacing:.18em; }
    .v137-pass-header h2 { font-size:17px; }
    .v137-seal-wallet { min-width:91px;padding:6px 7px;font-size:5px; }
    .v137-seal-wallet strong { font-size:11px; }
    .v137-icon-button { width:44px;height:44px; }
    .v137-pass-hero { min-height:145px;grid-template-columns:1fr; }
    .v137-hero-copy { padding:12px 14px 8px;max-width:64%; }
    .v137-hero-copy h3 { font-size:clamp(25px,8vw,38px); }
    .v137-hero-copy p { display:none; }
    
    
    .v137-hero-art img { width:58vw;opacity:.48; }
    .v137-progress-dossier { position:absolute;z-index:6;right:8px;bottom:8px;width:43%;box-sizing:border-box;margin:0;padding:8px; }
    .v137-level-row { gap:8px; }
    .v137-level-medallion { width:49px; }
    .v137-level-medallion strong { font-size:20px; }
    .v137-progress-copy strong { font-size:9px; }
    .v137-progress-copy small,.v137-progress-meta { font-size:6px; }
    .v137-hero-stats { display:none; }
    .v137-pass-tabs { padding:0; }
    .v137-pass-tab { min-width:0;flex:1;min-height:44px;padding:7px 5px;font-size:7px;letter-spacing:.1em; }
    .v137-panel-heading { padding:10px 11px 7px; }
    .v137-panel-heading h3 { font-size:14px; }
    .v137-panel-heading p { display:none; }
    .v137-track-legend { padding-inline:11px; }
    .v137-reward-scroll { padding:1px 11px 14px; }
    .v137-tier-column { width:126px;grid-template-rows:116px 36px 116px; }
    .v137-mission-layout,.v137-vault-grid { padding-inline:11px; }
    .v137-vault-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .v137-vault-intro { margin-inline:11px; }
    .v137-pass-footer { min-height:55px;padding:7px max(9px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left)); }
    .v137-footer-note { display:none; }
    .v137-footer-actions { width:100%; }
    .v137-action { min-height:44px;flex:1;padding:8px 7px;font-size:8px; }
}
@media(max-height:600px) and (min-width:701px) {
    #v137-battle-pass { padding:0; }
    .v137-pass-header { padding-left:max(13px,env(safe-area-inset-left));padding-right:max(13px,env(safe-area-inset-right)); }
    .v137-panel-heading,.v137-track-legend,.v137-reward-scroll,.v137-mission-layout,.v137-vault-grid { padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right)); }
    .v137-vault-intro { margin-left:max(14px,env(safe-area-inset-left));margin-right:max(14px,env(safe-area-inset-right)); }
    .v137-pass-shell { min-height:0;height:100dvh; }
    .v137-pass-hero { min-height:116px; }
    .v137-hero-copy h3 { font-size:34px; }
    .v137-hero-copy p { display:none; }
    .v137-progress-dossier { padding:8px 11px; }
    .v137-level-medallion { width:52px; }
    .v137-hero-stats { display:none; }
    .v137-tier-column { grid-template-rows:108px 34px 108px; }
}
@media(max-height:480px) and (min-width:560px) {
    .v137-pass-header { min-height:48px; }
    .v137-pass-hero { min-height:76px;grid-template-columns:1fr; }
    .v137-hero-copy,.v137-hero-art { display:none; }
    .v137-progress-dossier { position:relative;right:auto;bottom:auto;width:auto;margin:5px max(10px,env(safe-area-inset-right)) 5px max(10px,env(safe-area-inset-left));padding:6px 11px; }
    .v137-level-medallion { width:48px; }
    .v137-level-medallion strong { font-size:19px; }
    .v137-progress-copy strong { font-size:10px; }
    .v137-pass-tab { min-height:42px; }
    .v137-pass-footer { min-height:50px; }
}
@media(max-width:390px) {
    .v137-pass-header h2 { font-size:14px;letter-spacing:.07em; }
    .v137-hero-copy { max-width:58%; }
    .v137-progress-dossier { width:47%; }
    .v137-vault-grid { grid-template-columns:1fr 1fr;gap:6px; }
}
@media(prefers-reduced-motion:reduce) {
    #v137-home-battle-pass-button.has-claimable::after { animation:none !important; }
    .v137-progress-track i,#v137-pass-toast,.v137-reward-card,.v137-vault-item { transition:none !important; }
}


/* SOURCE styles/audio-dig.css */
:root{--v138-gold:#d7b45d;--v138-bright:#fff0b7;--v138-wine:#8f1728;--v138-ink:#050708;--v138-ivory:#e9dcb7;--v138-muted:#a09478}

/* The original audio controller is moved—not copied—into the Settings dialog. */
#v122-system-settings .v122-settings-panel{overflow-y:auto!important;overscroll-behavior:contain;scrollbar-color:#81652c #080909;scrollbar-width:thin}
#v138-audio-settings{margin:14px 0;padding:15px 16px;border:1px solid rgba(215,180,93,.28);background:linear-gradient(115deg,rgba(113,21,33,.17),rgba(0,0,0,.34) 46%,rgba(215,180,93,.045));box-shadow:inset 3px 0 0 rgba(215,180,93,.55)}
.v138-audio-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:11px}
.v138-audio-heading small{display:block;color:#a98c4d;font:700 7px/1.2 "Courier New",monospace;letter-spacing:.26em}
.v138-audio-heading h3{margin:5px 0 0;color:#efe0b5;font:500 16px/1.15 Georgia,"Yu Mincho",serif;letter-spacing:.08em}
#v138-audio-value{color:#e8c76f;font:900 12px/1 "Courier New",monospace;letter-spacing:.08em}
#v122-system-settings #shocker-audio-panel{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;z-index:auto!important;visibility:visible!important;width:100%;display:grid!important;grid-template-columns:minmax(86px,auto) minmax(120px,1fr);gap:12px!important;box-sizing:border-box;padding:10px!important;border:1px solid rgba(215,180,93,.22)!important;border-radius:2px!important;background:rgba(0,0,0,.38)!important;box-shadow:none!important;backdrop-filter:none!important}
#v122-system-settings #shocker-audio-toggle{min-width:86px!important;height:42px!important;border-radius:2px!important;font-family:Georgia,"Yu Mincho",serif!important;letter-spacing:.08em}
#v122-system-settings #shocker-audio-volume{width:100%!important;height:42px!important;margin:0!important;cursor:pointer}
.v138-audio-note{margin:9px 0 0;color:#837a65;font:700 7px/1.55 "Courier New",monospace;letter-spacing:.08em}

/* Entry added to the existing card-skin shop. */
.v138-mint-entry{min-height:42px;padding:8px 13px;border:1px solid rgba(215,180,93,.54);color:#f1daa0;background:linear-gradient(135deg,rgba(113,21,33,.7),rgba(14,9,9,.96));font:800 8px/1.2 Georgia,"Yu Mincho",serif;letter-spacing:.1em;cursor:pointer;white-space:nowrap}
.v138-mint-entry:hover,.v138-mint-entry:focus-visible{border-color:#ffe595;outline:none;box-shadow:0 0 18px rgba(215,180,93,.18);filter:brightness(1.1)}
.v138-mint-entry span{display:block;margin-top:3px;color:#a98e54;font:700 5.5px/1 "Courier New",monospace;letter-spacing:.16em}
.v134-wallet strong::before,#home-screen .v134-home-wallet b::before{content:"◈ "!important;color:#d6ad4d!important}

body.v138-mint-open{overflow:hidden!important}
#v138-dig-store[hidden],#v138-dig-confirm[hidden]{display:none!important}
#v138-dig-store{position:fixed;inset:0;z-index:2147483255;display:grid;place-items:center;padding:clamp(8px,2vw,24px);box-sizing:border-box;color:var(--v138-ivory);background:radial-gradient(circle at 14% 18%,rgba(143,23,40,.26),transparent 28%),radial-gradient(circle at 78% 78%,rgba(215,180,93,.10),transparent 32%),linear-gradient(138deg,#020304 0,#19080d 52%,#030506 100%);font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif;isolation:isolate}
#v138-dig-store::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.32;background:repeating-linear-gradient(90deg,transparent 0 79px,rgba(215,180,93,.026) 80px),repeating-linear-gradient(0deg,transparent 0 59px,rgba(255,255,255,.017) 60px)}
#v138-dig-store::after{content:"◈";position:absolute;left:-4vw;bottom:-20vh;color:rgba(215,180,93,.035);font:700 min(70vw,800px)/1 Georgia,serif;pointer-events:none;transform:rotate(-13deg)}
.v138-mint-shell{position:relative;z-index:1;width:min(1420px,100%);height:min(900px,calc(100dvh - clamp(16px,4vw,48px)));min-height:570px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(215,180,93,.62);background:linear-gradient(130deg,rgba(7,9,10,.985),rgba(25,9,13,.97));box-shadow:0 35px 110px #000,0 0 0 1px rgba(143,23,40,.65),inset 0 0 80px rgba(0,0,0,.54);clip-path:polygon(0 0,calc(100% - 30px) 0,100% 30px,100% 100%,30px 100%,0 calc(100% - 30px))}
.v138-mint-header{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:75px;padding:12px clamp(14px,2.2vw,30px);border-bottom:1px solid rgba(215,180,93,.32);background:linear-gradient(90deg,rgba(143,23,40,.28),transparent 48%,rgba(0,0,0,.42))}
.v138-mint-title small{display:block;color:#b59854;font:700 7px/1.2 "Courier New",monospace;letter-spacing:.34em}.v138-mint-title h2{margin:6px 0 0;color:#fae9b7;font-size:clamp(22px,3vw,38px);font-weight:500;line-height:1;letter-spacing:.13em;text-shadow:0 3px 0 #000,0 0 24px rgba(215,180,93,.2)}
.v138-mint-head-actions{display:flex;align-items:center;gap:9px}.v138-mint-balance{min-width:180px;padding:9px 13px;border:1px solid rgba(215,180,93,.4);background:rgba(0,0,0,.58);color:#a99b79;font:700 7px/1.25 "Courier New",monospace;letter-spacing:.14em}.v138-mint-balance strong{display:block;margin-top:4px;color:#f5d578;font:900 17px/1 Georgia,serif;letter-spacing:.08em}.v138-mint-balance strong::before{content:"◈ ";color:#b72c3d}.v138-mint-close{width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(215,180,93,.4);color:#ddc996;background:#080909;font-size:20px;cursor:pointer}.v138-mint-close:hover,.v138-mint-close:focus-visible{border-color:#ffe08a;color:#fff1bd;outline:none}
.v138-mint-main{min-height:0;display:grid;grid-template-columns:minmax(330px,.72fr) minmax(580px,1.28fr)}
.v138-mint-hero{position:relative;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;padding:clamp(24px,4vw,58px);border-right:1px solid rgba(215,180,93,.24);background:radial-gradient(circle at 50% 34%,rgba(186,45,61,.28),transparent 24%),radial-gradient(circle at 50% 34%,rgba(215,180,93,.13),transparent 48%),linear-gradient(155deg,#060808,#1d0a0f 72%,#040505)}
.v138-mint-sigil{position:absolute;left:50%;top:39%;width:min(23vw,260px);aspect-ratio:1;translate:-50% -50%;display:grid;place-items:center;border:1px solid rgba(215,180,93,.46);border-radius:50%;color:#e1bd64;background:radial-gradient(circle,rgba(143,23,40,.48),rgba(0,0,0,.08) 58%,transparent 59%);box-shadow:0 0 0 13px rgba(215,180,93,.035),0 0 60px rgba(143,23,40,.32),inset 0 0 35px rgba(0,0,0,.8);font:500 min(9vw,108px)/1 Georgia,serif;text-shadow:0 4px 0 #000}
.v138-mint-sigil::before,.v138-mint-sigil::after{content:"";position:absolute;inset:13%;border:1px dashed rgba(215,180,93,.35);border-radius:50%;transform:rotate(24deg)}.v138-mint-sigil::after{inset:27%;border-style:solid;transform:rotate(-24deg)}
.v138-mint-hero-copy{position:relative;z-index:1}.v138-mint-hero-copy small{color:#c4a351;font:700 7px/1.2 "Courier New",monospace;letter-spacing:.27em}.v138-mint-hero-copy h3{margin:11px 0 10px;color:#f7e8bd;font-size:clamp(25px,3.5vw,48px);font-weight:500;line-height:1.04;letter-spacing:.05em}.v138-mint-hero-copy p{max-width:480px;margin:0;color:#b9ad8d;font-size:10px;line-height:1.8}.v138-balance-ledger{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:18px}.v138-ledger-cell{padding:11px;border:1px solid rgba(215,180,93,.2);background:rgba(0,0,0,.38)}.v138-ledger-cell small{display:block;color:#766e5d;font:700 6px/1 "Courier New",monospace;letter-spacing:.16em}.v138-ledger-cell b{display:block;margin-top:6px;color:#dcc47f;font:700 14px/1 Georgia,serif}
.v138-mint-market{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);background:linear-gradient(180deg,rgba(6,7,8,.96),rgba(15,8,10,.98))}.v138-market-heading{padding:20px 24px 12px}.v138-market-heading small{color:#a88d50;font:700 7px/1 "Courier New",monospace;letter-spacing:.25em}.v138-market-heading h3{margin:7px 0 5px;color:#eadab0;font-size:19px;font-weight:500;letter-spacing:.08em}.v138-market-heading p{margin:0;color:#7f7560;font:700 7px/1.5 "Courier New",monospace;letter-spacing:.08em}
.v138-pack-grid{min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:4px 20px 20px;overflow:auto;scrollbar-color:#7c5e28 #080909}.v138-pack{position:relative;min-height:220px;display:flex;flex-direction:column;align-items:stretch;padding:16px;overflow:hidden;border:1px solid rgba(215,180,93,.24);color:#e9dab0;background:radial-gradient(circle at 78% 11%,rgba(143,23,40,.3),transparent 36%),linear-gradient(145deg,#0d1010,#10080a);text-align:left;cursor:pointer;isolation:isolate}.v138-pack::before{content:"◈";position:absolute;right:-7px;top:-15px;color:rgba(215,180,93,.07);font:700 92px/1 Georgia,serif;transform:rotate(9deg);z-index:-1}.v138-pack:hover,.v138-pack:focus-visible{border-color:#dbbc6a;outline:none;box-shadow:inset 0 0 25px rgba(215,180,93,.06);transform:translateY(-2px)}.v138-pack.is-popular{border-color:rgba(215,180,93,.62);background:radial-gradient(circle at 78% 11%,rgba(159,27,44,.42),transparent 38%),linear-gradient(145deg,#131616,#18090d)}.v138-pack-ribbon{min-height:14px;color:#bc9d54;font:900 6px/1 "Courier New",monospace;letter-spacing:.18em}.v138-pack.is-popular .v138-pack-ribbon{color:#ffdf87}.v138-pack-name{margin-top:15px;color:#f5e4b5;font-size:15px;line-height:1.2;letter-spacing:.07em}.v138-pack-total{margin-top:12px;color:#f0ce72;font:900 clamp(24px,2.5vw,36px)/1 Georgia,serif;letter-spacing:.02em}.v138-pack-total small{font-size:9px;letter-spacing:.14em}.v138-pack-split{display:grid;gap:4px;margin-top:auto;padding-top:15px;color:#93876c;font:700 7px/1.35 "Courier New",monospace;letter-spacing:.07em}.v138-pack-split b{color:#c9b27a}.v138-pack-price{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(215,180,93,.17);color:#6f6756;font:700 6px/1 "Courier New",monospace;letter-spacing:.1em}.v138-pack-price strong{color:#e8d49d;font:700 14px/1 Georgia,serif;letter-spacing:.04em}
.v138-mint-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:9px 22px;border-top:1px solid rgba(215,180,93,.22);color:#706858;background:#020303;font:700 6.5px/1.45 "Courier New",monospace;letter-spacing:.08em}.v138-mint-footer b{color:#aa9563}.v138-adapter-state{white-space:nowrap;color:#a88948}.v138-adapter-state::before{content:"● ";color:#8e2631}.v138-adapter-state.is-ready::before{color:#76a96d}

#v138-dig-confirm{position:fixed;inset:0;z-index:2147483265;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.86);backdrop-filter:blur(8px);font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif;color:var(--v138-ivory)}
.v138-confirm-panel{width:min(540px,94vw);padding:25px;border:1px solid rgba(215,180,93,.62);background:radial-gradient(circle at 84% 8%,rgba(143,23,40,.38),transparent 36%),linear-gradient(145deg,#0d0f10,#190a0e);box-shadow:0 28px 90px #000}.v138-confirm-kicker{color:#b79851;font:700 7px/1 "Courier New",monospace;letter-spacing:.28em}.v138-confirm-panel h3{margin:10px 0 7px;color:#f7e6b6;font-size:25px;font-weight:500;letter-spacing:.06em}.v138-confirm-panel>p{margin:0;color:#b8ad90;font-size:10px;line-height:1.75}.v138-confirm-summary{display:grid;grid-template-columns:1fr auto;gap:7px 16px;margin:17px 0;padding:13px 0;border-top:1px solid rgba(215,180,93,.22);border-bottom:1px solid rgba(215,180,93,.22);font-size:10px}.v138-confirm-summary span{color:#887e68}.v138-confirm-summary b{color:#e9ce80;text-align:right}.v138-confirm-notice{padding:10px;border-left:2px solid #9a2434;color:#aa9e80!important;background:rgba(0,0,0,.34);font:700 7px/1.6 "Courier New",monospace!important;letter-spacing:.06em}.v138-confirm-actions{display:flex;gap:8px;margin-top:16px}.v138-confirm-action{min-height:45px;flex:1;padding:9px 12px;border:1px solid rgba(215,180,93,.4);color:#decda2;background:#0a0c0c;font:800 9px/1.2 Georgia,"Yu Mincho",serif;letter-spacing:.08em;cursor:pointer}.v138-confirm-action.primary{border-color:#d5b25b;color:#fff0bb;background:linear-gradient(120deg,#721522,#27090e 65%,#080909)}.v138-confirm-action:hover,.v138-confirm-action:focus-visible{border-color:#ffe18b;outline:none;filter:brightness(1.12)}.v138-confirm-action:disabled{cursor:not-allowed;opacity:.5;filter:none}

@media(max-width:1080px){.v138-mint-main{grid-template-columns:minmax(290px,.58fr) minmax(500px,1fr)}.v138-pack-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v138-mint-sigil{width:min(27vw,230px)}}
@media(max-width:760px){#v138-dig-store{padding:0}.v138-mint-shell{width:100%;height:100dvh;min-height:0;clip-path:none;border-inline:0}.v138-mint-header{position:sticky;top:0;z-index:4;min-height:62px;padding:8px 10px;background:rgba(10,7,8,.98)}.v138-mint-title small{font-size:5px}.v138-mint-title h2{font-size:20px}.v138-mint-balance{min-width:108px;padding:7px 8px;font-size:5.5px}.v138-mint-balance strong{font-size:12px}.v138-mint-close{width:38px;height:38px}.v138-mint-main{display:block;overflow:auto}.v138-mint-hero{min-height:430px;padding:24px}.v138-mint-sigil{width:min(55vw,235px);top:35%}.v138-mint-market{min-height:650px}.v138-pack-grid{overflow:visible}.v138-mint-footer{display:block;padding-bottom:max(10px,env(safe-area-inset-bottom))}.v138-adapter-state{display:block;margin-top:5px}.v138-mint-entry{padding-inline:9px}.v138-mint-entry span{display:none}}
@media(max-width:470px){.v138-mint-title small{display:none}.v138-mint-title h2{font-size:17px}.v138-mint-balance{min-width:96px}.v138-pack-grid{grid-template-columns:1fr 1fr;gap:6px;padding:4px 9px 16px}.v138-pack{min-height:205px;padding:12px}.v138-pack-name{font-size:13px}.v138-pack-total{font-size:25px}.v138-market-heading{padding-inline:13px}.v138-confirm-actions{flex-direction:column}.v138-confirm-action{flex:none;width:100%}#v122-system-settings #shocker-audio-panel{grid-template-columns:1fr!important}.v138-audio-heading{align-items:center}}
@media(max-height:620px) and (orientation:landscape){#v122-system-settings .v122-settings-panel{max-height:calc(100dvh - 12px)!important}.v138-mint-shell{height:100dvh;min-height:0;clip-path:none}.v138-mint-hero{padding:20px}.v138-mint-sigil{width:145px}.v138-pack{min-height:185px}}
@media(prefers-reduced-motion:reduce){.v138-pack{transition:none!important}}

/* Independent SE and music faders, using the existing Settings audio panel. */
#v122-system-settings #shocker-audio-panel{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
#v122-system-settings #shocker-audio-toggle{justify-self:start}
.v285-audio-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 12px;color:#efe0b5;font:500 13px/1.4 Georgia,"Yu Mincho",serif;letter-spacing:.04em}
.v285-audio-row output{color:#e8c76f;font:900 12px/1 "Courier New",monospace;letter-spacing:.06em}
#v122-system-settings .v285-audio-row input[type=range]{grid-column:1/-1;width:100%!important;min-width:0;height:32px!important;margin:0!important;accent-color:#d7b45d;cursor:pointer}


/* SOURCE styles/character-skin-arena.css */
:root{--v142-gold:#d9b75e;--v142-ink:#070809;--v142-panel:#111012;--v142-muted:#9b9077}
#v142-skin-vault[hidden],#v142-skin-vault-toast[hidden]{display:none!important}
body.v142-vault-open{overflow:hidden!important}
#v142-skin-vault{position:fixed;inset:0;z-index:180000;display:grid;place-items:center;padding:clamp(8px,2.5vw,32px);color:#f5e9c8;background:radial-gradient(circle at 50% 28%,rgba(76,59,31,.28),transparent 38%),rgba(2,3,4,.96);font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif}
#v142-skin-vault::before{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(110deg,rgba(255,255,255,.012) 0 1px,transparent 1px 6px),linear-gradient(90deg,rgba(140,17,32,.08),transparent 32% 68%,rgba(12,83,61,.09))}
.v142-vault-shell{position:relative;z-index:1;width:min(1420px,100%);height:min(900px,calc(100dvh - clamp(16px,5vw,60px)));min-height:560px;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid rgba(217,183,94,.62);background:linear-gradient(145deg,rgba(20,18,17,.985),rgba(5,7,8,.99));box-shadow:0 34px 100px rgba(0,0,0,.84),inset 0 0 0 1px rgba(255,239,184,.07);clip-path:polygon(17px 0,calc(100% - 17px) 0,100% 17px,100% calc(100% - 17px),calc(100% - 17px) 100%,17px 100%,0 calc(100% - 17px),0 17px)}
.v142-vault-header{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px clamp(14px,2.4vw,32px);border-bottom:1px solid rgba(217,183,94,.28);background:linear-gradient(90deg,rgba(105,15,29,.24),transparent 42%,rgba(3,79,55,.15))}
.v142-vault-title small{display:block;color:#b79a55;font:700 7px/1.2 "Courier New",monospace;letter-spacing:.31em}.v142-vault-title h2{margin:6px 0 0;font-size:clamp(23px,3vw,39px);font-weight:500;line-height:1;letter-spacing:.12em;text-shadow:0 3px 18px #000}
.v142-vault-head-actions{display:flex;align-items:center;gap:9px}.v142-vault-dig{display:flex;align-items:center;gap:8px;min-width:150px;padding:8px 11px;border:1px solid rgba(217,183,94,.34);background:rgba(0,0,0,.5);color:#aaa087;font:700 7px/1.2 "Courier New",monospace;letter-spacing:.12em}.v142-vault-dig strong{display:block;margin-top:2px;color:#f0d98f;font-size:15px;letter-spacing:.03em}
.v142-vault-close{width:43px;height:43px;border:1px solid rgba(217,183,94,.38);color:#e9d9ad;background:#111;font:400 28px/1 Georgia,serif;cursor:pointer}.v142-vault-close:hover,.v142-vault-close:focus-visible{outline:none;border-color:#ffe69c;background:#711826}
.v142-vault-main{min-height:0;display:grid;grid-template-columns:minmax(230px,.38fr) minmax(620px,1fr)}
.v142-character-rail{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);border-right:1px solid rgba(217,183,94,.22);background:rgba(0,0,0,.29)}
.v142-rail-heading{padding:16px 16px 11px;border-bottom:1px solid rgba(217,183,94,.13)}.v142-rail-heading small{color:#8e7b4a;font:700 6px/1 "Courier New",monospace;letter-spacing:.2em}.v142-rail-heading h3{margin:5px 0 0;font-size:15px;font-weight:500;letter-spacing:.08em}
#v142-character-list{min-height:0;overflow:auto;padding:9px;scrollbar-color:#715b2e #080808;scrollbar-width:thin}
.v142-character-button{width:100%;min-height:58px;display:grid;grid-template-columns:43px minmax(0,1fr) auto;align-items:center;gap:10px;margin:0 0 6px;padding:7px;border:1px solid rgba(217,183,94,.14);color:#c7bda7;background:linear-gradient(100deg,rgba(33,31,29,.9),rgba(8,9,10,.96));text-align:left;cursor:pointer}.v142-character-button:hover,.v142-character-button:focus-visible{outline:none;border-color:rgba(217,183,94,.52);filter:brightness(1.12)}.v142-character-button.is-selected{border-color:#dec16e;color:#fff1c4;background:linear-gradient(100deg,rgba(105,25,37,.82),rgba(17,14,13,.98));box-shadow:inset 3px 0 #f0cf73}
.v142-character-thumb{width:43px;height:43px;overflow:hidden;border:1px solid rgba(217,183,94,.3);background:#050505}.v142-character-thumb img{width:100%;height:100%;object-fit:cover;object-position:50% 17%}.v142-character-copy strong{display:block;overflow:hidden;font-size:10px;font-weight:600;letter-spacing:.04em;white-space:nowrap;text-overflow:ellipsis}.v142-character-copy small{display:block;margin-top:4px;color:#82765f;font:700 5.5px/1 "Courier New",monospace;letter-spacing:.12em}.v142-character-mark{width:8px;height:8px;border:1px solid #8e7b4a;transform:rotate(45deg)}.v142-character-button.has-rare .v142-character-mark{background:#6cc48a;box-shadow:0 0 9px rgba(84,218,133,.55)}
.v142-vault-detail{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;background:radial-gradient(circle at 50% 24%,rgba(217,183,94,.07),transparent 38%)}
.v142-detail-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:17px clamp(16px,2.4vw,30px) 12px;border-bottom:1px solid rgba(217,183,94,.13)}.v142-detail-heading small{display:block;color:#927e49;font:700 6.5px/1 "Courier New",monospace;letter-spacing:.24em}.v142-detail-heading h3{margin:6px 0 0;color:#f6e8c0;font-size:clamp(20px,2.4vw,31px);font-weight:500;letter-spacing:.08em}.v142-detail-status{color:#a99c7b;font:700 7px/1.3 "Courier New",monospace;letter-spacing:.1em;text-align:right}
#v142-skin-options{min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;overflow:auto;padding:15px clamp(14px,2.4vw,28px);scrollbar-color:#715b2e #080808;scrollbar-width:thin}
.v142-skin-option{position:relative;min-width:0;display:grid;grid-template-rows:minmax(185px,1fr) auto;overflow:hidden;border:1px solid rgba(217,183,94,.23);background:#090a0b;box-shadow:0 14px 30px rgba(0,0,0,.27)}.v142-skin-option.is-equipped{border-color:#e3c66f;box-shadow:0 0 0 1px rgba(227,198,111,.18),0 16px 40px rgba(0,0,0,.48)}.v142-skin-option.is-locked{filter:saturate(.62)}
.v142-option-stage{position:relative;min-height:185px;overflow:hidden;background:radial-gradient(circle at 50% 40%,rgba(20,104,69,.4),transparent 52%),linear-gradient(130deg,#052a1c,#050606)}.v142-option-field{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;opacity:.56;filter:saturate(.9)}.v142-option-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.44),transparent 36% 70%,rgba(0,0,0,.25)),linear-gradient(0deg,rgba(0,0,0,.58),transparent 54%)}.v142-option-hand-crop{position:absolute;right:-5%;bottom:-3%;width:72%;height:106%;overflow:hidden;pointer-events:none}.v142-option-hand{position:absolute;left:-100%;bottom:-11%;width:200%;max-width:none;height:auto;filter:drop-shadow(0 10px 13px rgba(0,0,0,.74))}.v142-option-cards{position:absolute;left:6%;bottom:8%;height:82%;display:flex;align-items:flex-end;gap:5px}.v142-option-cards img{height:82%;max-width:44%;object-fit:contain;border-radius:8px;box-shadow:0 9px 19px rgba(0,0,0,.72)}.v142-option-cards img+img{height:72%;margin-left:-11px;transform:translateY(-8px) rotate(4deg)}
.v142-option-lock{position:absolute;right:10px;top:10px;padding:6px 8px;border:1px solid rgba(255,255,255,.24);color:#e8d6ad;background:rgba(0,0,0,.75);font:700 6px/1 "Courier New",monospace;letter-spacing:.12em}.v142-option-info{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border-top:1px solid rgba(217,183,94,.18);background:linear-gradient(90deg,#171514,#08090a)}.v142-option-info small{display:block;color:#867850;font:700 5.8px/1 "Courier New",monospace;letter-spacing:.18em}.v142-option-info h4{margin:5px 0 0;overflow:hidden;color:#f0dfb5;font-size:14px;font-weight:500;white-space:nowrap;text-overflow:ellipsis}.v142-option-info p{margin:5px 0 0;color:#817867;font:700 7px/1.35 sans-serif}.v142-option-action{min-width:112px;min-height:41px;padding:8px 10px;border:1px solid rgba(217,183,94,.48);color:#f0d992;background:linear-gradient(145deg,#651526,#17100e);font:800 8px/1.3 Georgia,"Yu Mincho",serif;letter-spacing:.07em;cursor:pointer}.v142-option-action:hover,.v142-option-action:focus-visible{outline:none;border-color:#ffe69a;filter:brightness(1.16)}.v142-option-action:disabled{cursor:default;color:#7f7768;background:#151515;border-color:#39342b;filter:none}.v142-option-action.shop{color:#bbd8ca;background:linear-gradient(145deg,#123d31,#0c1512)}
.v142-vault-foot{display:flex;justify-content:space-between;gap:18px;padding:9px clamp(14px,2.4vw,28px);border-top:1px solid rgba(217,183,94,.18);color:#756d60;background:#050606;font:700 6px/1.4 "Courier New",monospace;letter-spacing:.09em}
#v142-skin-vault-toast{position:fixed;z-index:181000;left:50%;bottom:28px;translate:-50% 14px;max-width:min(520px,90vw);padding:11px 17px;border:1px solid rgba(217,183,94,.55);color:#f5e6bc;background:rgba(9,10,10,.96);box-shadow:0 16px 40px #000;font:700 10px/1.4 Georgia,"Yu Mincho",serif;opacity:0;pointer-events:none;transition:.2s}.v142-vault-open+#v142-skin-vault-toast,#v142-skin-vault-toast.show{translate:-50% 0;opacity:1}
.v142-home-vault .home-menu-icon{color:#b8e2ce!important;text-shadow:0 0 16px rgba(92,216,158,.42)!important}.v142-home-vault::after{border-color:rgba(83,202,145,.24)!important}

#v142-prebattle-skin-dock{grid-column:1/-1;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px;padding:7px 9px;border:1px solid rgba(217,183,94,.22);background:linear-gradient(90deg,rgba(4,5,6,.94),rgba(42,30,20,.76),rgba(4,5,6,.94));box-shadow:inset 0 0 20px rgba(0,0,0,.5)}
.v142-prebattle-label{min-width:126px}.v142-prebattle-label small{display:block;color:#8f7a45;font:700 5.5px/1 "Courier New",monospace;letter-spacing:.18em}.v142-prebattle-label strong{display:block;margin-top:5px;overflow:hidden;color:#d8c591;font-size:9px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}.v142-prebattle-options{min-width:0;display:flex;gap:6px;overflow-x:auto;padding:1px 0;scrollbar-width:thin;scrollbar-color:#715b2e transparent}
.v142-prebattle-choice{position:relative;flex:0 0 auto;min-width:150px;height:48px;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:7px;padding:4px 8px 4px 5px;border:1px solid rgba(217,183,94,.2);color:#ada48f;background:#101112;text-align:left;cursor:pointer}.v142-prebattle-choice img{width:34px;height:38px;object-fit:cover;object-position:50% 15%;border-radius:4px}.v142-prebattle-choice strong{display:block;overflow:hidden;font-size:8px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}.v142-prebattle-choice small{display:block;margin-top:4px;color:#7b715d;font:700 5px/1 "Courier New",monospace;letter-spacing:.09em}.v142-prebattle-choice.is-equipped{border-color:#e5c96f;color:#ffe9aa;background:linear-gradient(120deg,#5c1825,#111)}.v142-prebattle-choice.is-trial{border-color:#72a9dc;color:#d7ecff;background:linear-gradient(120deg,#193c61,#0c1015)}.v142-prebattle-choice:disabled{cursor:not-allowed;opacity:.43}.v142-prebattle-choice:not(:disabled):hover,.v142-prebattle-choice:not(:disabled):focus-visible{outline:none;border-color:#ffe59a;filter:brightness(1.15)}

.v142-dig-icon{display:inline-block;flex:0 0 auto;object-fit:contain;filter:drop-shadow(0 0 6px rgba(54,228,150,.28))}.v142-dig-icon.sm{width:18px;height:18px}.v142-dig-icon.md{width:26px;height:26px}.v142-dig-icon.lg{width:100%;height:100%;filter:drop-shadow(0 12px 26px rgba(0,0,0,.75)) drop-shadow(0 0 22px rgba(49,226,145,.24))}
.v142-has-dig-icon{display:flex!important;align-items:center;gap:7px}.v142-has-dig-icon.v138-mint-entry{justify-content:center;flex-wrap:wrap}.v142-has-dig-icon.v138-mint-entry span{width:100%}.v138-mint-sigil.v142-has-dig-icon{padding:14%;border-radius:24%!important;background:radial-gradient(circle,rgba(21,113,72,.22),rgba(0,0,0,.74) 68%)!important}.v138-mint-sigil.v142-has-dig-icon::before,.v138-mint-sigil.v142-has-dig-icon::after{display:none!important}.v134-wallet.v142-has-dig-icon strong::before,#v134-home-wallet.v142-has-dig-icon b::before,.v137-seal-wallet.v142-has-dig-icon strong::before,.v138-mint-balance.v142-has-dig-icon strong::before{content:none!important}.v134-wallet.v142-has-dig-icon,#v134-home-wallet.v142-has-dig-icon,.v137-seal-wallet.v142-has-dig-icon,.v138-mint-balance.v142-has-dig-icon{display:grid!important;grid-template-columns:18px minmax(0,1fr);grid-template-rows:auto auto;column-gap:7px;row-gap:0;align-items:center}.v134-wallet.v142-has-dig-icon>.v142-dig-icon,#v134-home-wallet.v142-has-dig-icon>.v142-dig-icon,.v137-seal-wallet.v142-has-dig-icon>.v142-dig-icon,.v138-mint-balance.v142-has-dig-icon>.v142-dig-icon{grid-column:1;grid-row:1/3}.v134-wallet.v142-has-dig-icon>strong,#v134-home-wallet.v142-has-dig-icon>b,.v137-seal-wallet.v142-has-dig-icon>strong,.v138-mint-balance.v142-has-dig-icon>strong{grid-column:2;grid-row:2}.v138-pack-total.v142-has-dig-icon{justify-content:flex-start!important}.v134-product-meta b.v142-has-dig-icon{justify-content:flex-end!important}
#home-screen.v62-shocker-home .home-menu-grid{grid-template-rows:1.18fr repeat(4,minmax(0,1fr))!important}
.v142-skin-perk{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:6px 9px;border:1px solid color-mix(in srgb,var(--v134-product-accent,#d9b75e) 45%,transparent);color:#dacb9f;background:rgba(0,0,0,.52);font:700 6px/1 "Courier New",monospace;letter-spacing:.12em}.v142-skin-perk::before{content:"✦";color:var(--v134-product-accent,#d9b75e)}

#v142-player-skin-decor{--v142-decor-opacity:.64;--v142-prop-accent:#d9b75e;--v142-prop-deep:#3d1018;position:absolute;z-index:2;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;user-select:none}
#v142-player-skin-decor[data-skin-id="zaraku-blood-banquet"]{--v142-decor-opacity:.68;--v142-prop-accent:#e24e60;--v142-prop-deep:#31070d}
#v142-player-skin-decor[data-skin-id="riana-amethyst-vow"]{--v142-decor-opacity:.56;--v142-prop-accent:#c7a2ff;--v142-prop-deep:#321a4c}
#v142-player-skin-decor[data-skin-id="larasa-halloween"]{--v142-decor-opacity:.64;--v142-prop-accent:#ff9a45;--v142-prop-deep:#24133f}
#v142-player-skin-decor[data-skin-id="mirano-midnight-service"]{--v142-decor-opacity:.70;--v142-prop-accent:#67dda0;--v142-prop-deep:#082b25}
#v142-rare-field-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center bottom;opacity:0;filter:saturate(1.08) contrast(1.06) drop-shadow(0 7px 10px rgba(0,0,0,.5));transition:opacity .36s ease;pointer-events:none}
#v142-player-skin-decor::before{content:"";position:absolute;z-index:1;inset:1px;opacity:0;border:1px solid color-mix(in srgb,var(--v142-prop-accent) 42%,transparent);border-radius:inherit;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--v142-prop-accent) 12%,transparent),transparent);box-shadow:inset 0 -12px 25px color-mix(in srgb,var(--v142-prop-deep) 34%,transparent);transition:opacity .36s ease}
#v142-player-skin-decor.is-active::before{opacity:.74}
#v142-player-skin-decor.is-active #v142-rare-field-art.asset-ready{opacity:var(--v142-decor-opacity)}
#v142-table-props{position:absolute;z-index:2;inset:0;opacity:0;transform:translateY(8px);transition:opacity .42s ease,transform .42s cubic-bezier(.2,.8,.2,1);pointer-events:none}
#v142-player-skin-decor.is-active #v142-table-props{opacity:1;transform:none}
.v142-prop{position:absolute;display:block;filter:drop-shadow(0 8px 8px rgba(0,0,0,.72));transform-origin:50% 100%}
.v142-prop-left{left:18%;bottom:29%}.v142-prop-right{right:17%;bottom:27%}
#v142-player-skin-decor[data-skin-id="zaraku-blood-banquet"] .v142-prop-left{width:clamp(38px,4.2vw,62px);height:clamp(25px,2.8vw,40px);border:1px solid #b99a57;border-radius:2px;background:linear-gradient(145deg,#160508,#3a0b12 58%,#120406);box-shadow:inset 0 0 0 2px #090203,inset 0 0 0 3px rgba(213,176,92,.38);transform:rotate(-7deg)}
#v142-player-skin-decor[data-skin-id="zaraku-blood-banquet"] .v142-prop-left::before{content:"♛";position:absolute;right:16%;bottom:-7px;width:clamp(14px,1.45vw,21px);height:clamp(14px,1.45vw,21px);display:grid;place-items:center;border-radius:50%;color:#efc776;background:radial-gradient(circle at 35% 30%,#d84c5f,#7d0d1c 56%,#31050a 60%);font:700 clamp(7px,.72vw,11px)/1 Georgia,serif;box-shadow:0 0 0 2px #2a0508,0 2px 8px #000}
#v142-player-skin-decor[data-skin-id="zaraku-blood-banquet"] .v142-prop-left::after{content:"";position:absolute;inset:7px 8px;border-top:1px solid rgba(227,198,122,.4);border-bottom:1px solid rgba(227,198,122,.18)}
#v142-player-skin-decor[data-skin-id="zaraku-blood-banquet"] .v142-prop-right{width:clamp(24px,2.5vw,38px);height:clamp(31px,3.5vw,52px);border:1px solid #c5a865;border-radius:45% 45% 24% 24%;background:radial-gradient(ellipse at 50% 24%,#f9c2c6 0 5%,#7f1122 10% 48%,#27060b 51% 62%,transparent 64%);transform:rotate(5deg)}
#v142-player-skin-decor[data-skin-id="zaraku-blood-banquet"] .v142-prop-right::before{content:"";position:absolute;left:50%;top:58%;width:2px;height:34%;translate:-50% 0;background:linear-gradient(#d9bc73,#6c5125)}#v142-player-skin-decor[data-skin-id="zaraku-blood-banquet"] .v142-prop-right::after{content:"";position:absolute;left:17%;right:17%;bottom:-2px;height:3px;border-radius:50%;background:#c7aa68;box-shadow:0 2px 4px #000}
#v142-player-skin-decor[data-skin-id="riana-amethyst-vow"] .v142-prop-left{width:clamp(30px,3.4vw,50px);height:clamp(30px,3.4vw,50px);border:clamp(3px,.34vw,5px) solid #d8d2dc;border-radius:50%;background:radial-gradient(circle,transparent 0 37%,rgba(120,83,155,.55) 40% 51%,transparent 54%);box-shadow:inset 0 0 8px #fff,0 0 0 1px #655b6d;transform:rotate(-8deg)}
#v142-player-skin-decor[data-skin-id="riana-amethyst-vow"] .v142-prop-left::before{content:"";position:absolute;left:50%;top:50%;width:38%;height:38%;translate:-50% -50%;rotate:45deg;background:linear-gradient(135deg,#f1ddff,#8d4fc5 48%,#3d1c5a);box-shadow:0 0 9px #d5aeff}
#v142-player-skin-decor[data-skin-id="riana-amethyst-vow"] .v142-prop-left::after{content:"";position:absolute;left:8%;right:8%;top:46%;height:12%;z-index:-1;border:2px solid #a79eae;border-radius:50%}
#v142-player-skin-decor[data-skin-id="riana-amethyst-vow"] .v142-prop-right{width:clamp(54px,6vw,86px);height:clamp(18px,2vw,28px);background:radial-gradient(circle,#fff9f2 0 31%,#bba9c7 35% 49%,transparent 53%) 0 50%/clamp(9px,1vw,14px) clamp(9px,1vw,14px) repeat-x;transform:rotate(8deg);filter:drop-shadow(0 4px 5px #000)}
#v142-player-skin-decor[data-skin-id="larasa-halloween"] .v142-prop-left{width:clamp(29px,3.2vw,47px);height:clamp(42px,4.6vw,68px);border:1px solid #bf9550;border-radius:3px;background:radial-gradient(circle at 50% 42%,rgba(115,75,176,.38),transparent 38%),repeating-linear-gradient(45deg,rgba(209,165,78,.16) 0 2px,transparent 2px 7px),#10091b;box-shadow:inset 0 0 0 3px #21132e;transform:rotate(-7deg)}
#v142-player-skin-decor[data-skin-id="larasa-halloween"] .v142-prop-left::before{content:"☾";position:absolute;inset:0;display:grid;place-items:center;color:#e4b968;font:700 clamp(18px,2.2vw,32px)/1 Georgia,serif;text-shadow:0 0 9px #9e64ff}
#v142-player-skin-decor[data-skin-id="larasa-halloween"] .v142-prop-right{width:clamp(14px,1.5vw,22px);height:clamp(33px,3.8vw,56px);border:1px solid #59436e;border-radius:3px 3px 1px 1px;background:linear-gradient(90deg,#07050a,#261536 48%,#08050c);box-shadow:inset 0 0 6px #7c4bb0;transform:rotate(4deg)}
#v142-player-skin-decor[data-skin-id="larasa-halloween"] .v142-prop-right::before{content:"";position:absolute;left:50%;bottom:calc(100% - 2px);width:clamp(12px,1.3vw,19px);height:clamp(17px,1.9vw,27px);translate:-50% 0;border-radius:70% 30% 68% 32%;background:radial-gradient(circle at 48% 68%,#fff6bd 0 8%,#b878ff 22% 48%,#42205f 67%,transparent 70%);filter:drop-shadow(0 0 6px #9d58ff);transform:rotate(9deg)}
#v142-player-skin-decor[data-skin-id="larasa-halloween"] .v142-prop-right::after{content:"";position:absolute;left:-55%;right:-55%;bottom:-3px;height:4px;border-radius:50%;background:#8a6a39}
#v142-player-skin-decor[data-skin-id="mirano-midnight-service"] .v142-prop-left{width:clamp(34px,3.8vw,56px);height:clamp(34px,3.8vw,56px);background:linear-gradient(135deg,#122b27 0 48%,#e3ddca 49% 52%,#0a1d1a 53%);clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);transform:rotate(-8deg)}
#v142-player-skin-decor[data-skin-id="mirano-midnight-service"] .v142-prop-left::after{content:"";position:absolute;left:50%;top:50%;width:31%;height:31%;translate:-50% -50%;border:3px solid #cfc8b7;border-radius:50%;box-shadow:0 0 0 1px #4a473f,0 0 7px #fff}
#v142-player-skin-decor[data-skin-id="mirano-midnight-service"] .v142-prop-right{width:clamp(36px,4vw,60px);height:clamp(24px,2.8vw,42px);border:1px solid #c8c2af;border-radius:70% 70% 12% 12%;background:radial-gradient(ellipse at 43% 25%,#fff 0 5%,#b9b6ac 17%,#575a55 54%,#171d1a 72%);box-shadow:inset 0 -5px 7px rgba(0,0,0,.48);transform:rotate(5deg)}
#v142-player-skin-decor[data-skin-id="mirano-midnight-service"] .v142-prop-right::before{content:"";position:absolute;left:50%;top:-8px;width:12px;height:9px;translate:-50% 0;border:1px solid #d9d4c7;border-radius:50% 50% 20% 20%;background:#777a72}#v142-player-skin-decor[data-skin-id="mirano-midnight-service"] .v142-prop-right::after{content:"";position:absolute;left:-7%;right:-7%;bottom:-3px;height:4px;border-radius:50%;background:linear-gradient(90deg,#555,#eee,#555);box-shadow:0 2px 5px #000}
body.v45-battle-active .player-area>#v142-player-skin-decor~.deck-container,body.v45-battle-active .player-area>#v142-player-skin-decor~.battle-character{z-index:4}
body.v45-battle-active .player-area>#v142-player-skin-decor~h3,body.v45-battle-active .player-area>#v142-player-skin-decor~#player-field,body.v45-battle-active .player-area>#v142-player-skin-decor~.disposal-container,body.v45-battle-active .player-area>#v142-player-skin-decor~#hand-row,body.v45-battle-active .player-area>#v142-player-skin-decor~#main-action-dock{position:relative;z-index:3}

#v142-rare-clash-fx{--v142-clash-accent:#e24e60;--v142-clash-secondary:#ffd08a;position:absolute;z-index:2;inset:0;overflow:hidden;pointer-events:none;user-select:none}
.v142-clash-aura{position:absolute;inset:-8%;opacity:0;background:radial-gradient(circle at 34% 46%,color-mix(in srgb,var(--v142-clash-accent) 66%,transparent),transparent 31%),repeating-conic-gradient(from 10deg at 35% 48%,transparent 0 12deg,color-mix(in srgb,var(--v142-clash-secondary) 16%,transparent) 12.5deg 13deg,transparent 13.5deg 25deg);mix-blend-mode:screen;animation:v142-clash-aura 3.6s .08s ease-out both}
.v142-clash-sigil{position:absolute;left:35%;top:47%;width:clamp(150px,29vmin,330px);aspect-ratio:1;translate:-50% -50%;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--v142-clash-secondary) 76%,transparent);border-radius:50%;color:var(--v142-clash-secondary);background:radial-gradient(circle,transparent 0 45%,color-mix(in srgb,var(--v142-clash-accent) 19%,transparent) 46% 49%,transparent 50%);box-shadow:0 0 22px color-mix(in srgb,var(--v142-clash-accent) 68%,transparent),inset 0 0 25px color-mix(in srgb,var(--v142-clash-accent) 28%,transparent);opacity:0;font:700 clamp(45px,9vmin,105px)/1 Georgia,serif;text-shadow:0 0 20px var(--v142-clash-accent);animation:v142-clash-sigil 3.7s .2s cubic-bezier(.17,.78,.2,1) both}
.v142-clash-sigil::before,.v142-clash-sigil::after{content:"";position:absolute;inset:8%;border:1px dashed color-mix(in srgb,var(--v142-clash-secondary) 52%,transparent);border-radius:50%}.v142-clash-sigil::after{inset:20%;border-style:solid;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.v142-clash-particle{position:absolute;left:var(--v142-x);top:var(--v142-y);width:clamp(5px,.7vw,10px);aspect-ratio:1;border:1px solid var(--v142-clash-secondary);background:var(--v142-clash-accent);box-shadow:0 0 12px var(--v142-clash-accent);opacity:0;rotate:45deg;animation:v142-clash-particle 1.8s var(--v142-delay) cubic-bezier(.15,.75,.2,1) both}
.v142-clash-badge{position:absolute;left:clamp(16px,5vw,72px);top:clamp(58px,10vh,105px);min-width:min(270px,45vw);padding:8px 13px 9px;border-left:4px solid var(--v142-clash-accent);border-top:1px solid color-mix(in srgb,var(--v142-clash-secondary) 64%,transparent);border-bottom:1px solid color-mix(in srgb,var(--v142-clash-secondary) 34%,transparent);color:#fff2cf;background:linear-gradient(90deg,rgba(0,0,0,.88),rgba(0,0,0,.42),transparent);box-shadow:-10px 0 28px color-mix(in srgb,var(--v142-clash-accent) 32%,transparent);opacity:0;transform:translateX(-24px);animation:v142-clash-badge .58s 1.12s ease-out both}
.v142-clash-badge small{display:block;color:var(--v142-clash-secondary);font:700 7px/1 "Courier New",monospace;letter-spacing:.28em}.v142-clash-badge strong{display:block;margin-top:6px;font:600 clamp(13px,1.8vw,22px)/1.1 Georgia,"Yu Mincho",serif;letter-spacing:.1em;text-shadow:0 0 12px var(--v142-clash-accent)}
#v142-rare-clash-fx[data-skin-id="riana-amethyst-vow"] .v142-clash-particle{border-radius:2px;background:linear-gradient(135deg,#fff,#a875dc 50%,#4a216e)}#v142-rare-clash-fx[data-skin-id="larasa-halloween"] .v142-clash-particle{border-radius:50% 10% 50% 10%;background:#8b54da}#v142-rare-clash-fx[data-skin-id="mirano-midnight-service"] .v142-clash-particle{clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);border:0;background:#dff8e8}
@keyframes v142-clash-aura{0%{opacity:0;transform:scale(.75) rotate(-8deg)}24%{opacity:.86;transform:scale(1.03) rotate(0)}76%{opacity:.55}100%{opacity:0;transform:scale(1.11) rotate(3deg)}}
@keyframes v142-clash-sigil{0%{opacity:0;transform:scale(1.8) rotate(-32deg);filter:blur(9px)}22%{opacity:.82;transform:scale(.92) rotate(7deg);filter:blur(0)}37%{transform:scale(1.03) rotate(0)}78%{opacity:.66}100%{opacity:0;transform:scale(1.08) rotate(13deg)}}
@keyframes v142-clash-particle{0%{opacity:0;transform:translate3d(0,30px,0) scale(.3)}22%{opacity:1}100%{opacity:0;transform:translate3d(var(--v142-drift),-130px,0) scale(1.35)}}
@keyframes v142-clash-badge{to{opacity:1;transform:none}}

@media(max-width:820px){#v142-skin-vault{padding:0}.v142-vault-shell{width:100%;height:100dvh;min-height:0;clip-path:none;border-inline:0}.v142-vault-header{min-height:62px;padding:8px 10px}.v142-vault-title small{font-size:5.5px}.v142-vault-title h2{font-size:19px}.v142-vault-dig{min-width:106px;padding:6px}.v142-vault-close{width:38px;height:38px}.v142-vault-main{grid-template-columns:1fr;grid-template-rows:84px minmax(0,1fr)}.v142-character-rail{grid-template-rows:1fr;border-right:0;border-bottom:1px solid rgba(217,183,94,.2)}.v142-rail-heading{display:none}#v142-character-list{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;padding:7px}.v142-character-button{flex:0 0 142px;min-height:66px;margin:0}.v142-vault-detail{grid-template-rows:auto minmax(0,1fr)}.v142-detail-heading{padding:10px 12px 8px}.v142-detail-heading h3{font-size:18px}.v142-detail-status{display:none}#v142-skin-options{grid-template-columns:1fr;gap:9px;padding:9px 10px 16px}.v142-skin-option{grid-template-rows:clamp(190px,36dvh,300px) auto}.v142-vault-foot{display:none}.v142-option-cards img{border-radius:6px}#v142-prebattle-skin-dock{grid-template-columns:1fr;padding:5px 6px}.v142-prebattle-label{display:flex;align-items:center;justify-content:space-between;min-width:0}.v142-prebattle-label strong{margin:0;max-width:55%;font-size:7px}.v142-prebattle-choice{min-width:128px;height:42px;grid-template-columns:29px minmax(0,1fr)}.v142-prebattle-choice img{width:29px;height:33px}.v142-prebattle-choice strong{font-size:7px}.v142-prebattle-choice small{font-size:4.5px}}
@media(max-width:470px){.v142-vault-title small{display:none}.v142-vault-dig{min-width:86px}.v142-vault-dig>span{font-size:5px}.v142-vault-dig strong{font-size:12px}.v142-character-button{flex-basis:126px}.v142-option-info{grid-template-columns:1fr}.v142-option-action{width:100%}.v142-skin-option{grid-template-rows:190px auto}}
@media(max-width:820px){#v142-player-skin-decor[data-skin-id]{--v142-decor-opacity:.54}.v142-prop{scale:.78}.v142-prop-left{left:15%}.v142-prop-right{right:14%}.v142-clash-badge{min-width:min(220px,48vw);top:56px}.v142-clash-badge small{font-size:6px}}
@media(max-width:700px) and (orientation:portrait){#v142-rare-field-art{object-fit:contain;object-position:center bottom}.v142-prop-left{left:10%}.v142-prop-right{right:9%}}
@media(max-height:640px) and (orientation:landscape){.v142-vault-shell{height:100dvh;min-height:0;clip-path:none}.v142-vault-header{min-height:56px}.v142-vault-main{grid-template-columns:minmax(150px,28vw) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.v142-skin-option{grid-template-rows:145px auto}.v142-vault-foot{display:none}.v142-option-info{padding:7px}.v142-option-action{min-height:34px}.v142-detail-heading{padding-block:8px}}
@media(max-height:500px) and (orientation:landscape){#v142-player-skin-decor[data-skin-id]{--v142-decor-opacity:.46}#v142-table-props{display:none}.v142-clash-badge{top:24px;scale:.78;transform-origin:left top}.v142-clash-sigil{width:130px}}
@media(max-width:820px) and (max-height:640px) and (orientation:landscape){.v142-vault-main{grid-template-columns:1fr;grid-template-rows:72px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){#v142-rare-field-art,#v142-skin-vault-toast,#v142-table-props{transition:none!important}.v142-clash-aura,.v142-clash-sigil,.v142-clash-particle,.v142-clash-badge{animation:none!important;opacity:.55}.v142-clash-badge{opacity:1;transform:none}}
@media(forced-colors:active){#v142-table-props,#v142-player-skin-decor::before,#v142-rare-clash-fx{display:none!important}}

/* The same appearance assets are used by the wardrobe and the player's field. */
.v142-skin-option { grid-template-rows:minmax(230px,1fr) auto auto auto; }
.v175-appearance-stage { min-height:230px; isolation:isolate; }
.v175-appearance-stage .v142-option-field { z-index:0; opacity:.8; object-fit:fill; }
.v175-appearance-stage .v142-option-shade { z-index:1; background:linear-gradient(0deg,#07090bcc,transparent 43%); }
.v175-appearance-stage .v142-option-hand-crop { z-index:2; right:-10%; bottom:-10%; width:80%; height:100%; }
.v175-appearance-stage .v142-option-hand { bottom:-5%; }
.v175-appearance-stage .v142-option-hand-crop.is-single-hand { right:-14%; bottom:-15%; width:108%; height:105%; }
.v175-appearance-stage .is-single-hand .v142-option-hand { left:0; bottom:0; width:100%; }
.v175-appearance-stage .v142-option-cards { z-index:3; left:5%; bottom:20%; width:57%; height:auto; max-width:57%; }
.v175-appearance-stage .v142-option-cards img { flex:0 0 57%; width:57%; max-width:none; height:auto; object-fit:contain; }
.v175-appearance-stage .v142-option-cards img+img { flex-basis:52%; width:52%; height:auto; }
.v175-appearance-stage .v142-option-lock { z-index:5; }
.v175-appearance-features { display:flex; flex-wrap:wrap; gap:5px; padding:8px 11px 0; background:#0b0d0e; }
.v175-appearance-features span { border:1px solid #61543a; padding:4px 6px; color:#c4bca5; font:10px/1.2 system-ui,sans-serif; }
.v175-appearance-actions { display:flex; gap:7px; padding:9px 11px; background:#0b0d0e; }
.v175-appearance-actions button { flex:1; min-height:38px; padding:7px 8px; border:1px solid #75633e; background:#221923; color:#ead4a3; font:11px/1.3 system-ui,sans-serif; cursor:pointer; }
.v175-appearance-actions .v175-wardrobe-trial { color:#c7e0e9; border-color:#496371; background:#15232a; }
.v175-appearance-actions button:hover,.v175-appearance-actions button:focus-visible { border-color:#f2daa6; outline:2px solid #f2daa6; outline-offset:1px; }
.v142-skin-option.is-locked { filter:none; }
.v142-skin-option.is-locked .v142-option-info { opacity:.8; }
.v175-appearance-effect { position:absolute; inset:0; z-index:6; pointer-events:none; overflow:hidden; }
.v175-appearance-effect.is-preview .v142-clash-aura { inset:0; }
.v175-appearance-effect.is-preview .v142-clash-sigil { width:98px; top:45%; left:56%; font-size:38px; }
.v175-appearance-effect.is-preview .v142-clash-particle { width:5px; }
.v175-standard-effect { --special:var(--v175-appearance-accent,#62e8ff); }
.v175-standard-effect .v67-special-glyph { font-size:95px; }
.v175-effect-art { position:absolute; z-index:2; inset:0; width:100%; height:100%; object-fit:fill; opacity:0; animation:v175-field-reveal 2.5s ease-out both; }
#v142-rare-clash-fx .v175-effect-art { object-fit:contain; opacity:0; }
#v142-player-skin-decor[data-field-kind="painted"] #v142-table-props { display:none; }
#v142-player-skin-decor[data-field-kind="standard"] { --v142-decor-opacity:.46; }
#v142-player-skin-decor[data-field-kind="standard"] #v142-table-props { display:none; }
#v176-rare-field-art-right { display:none; }
/* Native-scale illustrated side pieces and a continuous runner follow the own field. */
#v142-player-skin-decor[data-field-kind="painted"] { --v142-decor-opacity:.86; }
#v142-player-skin-decor[data-field-kind="painted"].is-active::before {
  opacity:.6;
  background:linear-gradient(90deg,color-mix(in srgb,var(--v142-prop-accent) 8%,transparent),transparent 36% 64%,color-mix(in srgb,var(--v142-prop-accent) 8%,transparent));
  box-shadow:inset 0 -8px 18px color-mix(in srgb,var(--v142-prop-deep) 20%,transparent);
}
#v142-player-skin-decor[data-field-kind="painted"] #v142-rare-field-art {
  display:block; position:absolute; inset:0; width:100%; height:100%; max-width:none;
  transform:none; object-fit:contain; object-position:center bottom; opacity:0; pointer-events:none;
  filter:saturate(1.06) contrast(1.02) drop-shadow(0 4px 6px #0005); transition:opacity .36s ease;
}
#v142-player-skin-decor[data-field-kind="painted"].is-active #v142-rare-field-art.asset-ready { opacity:var(--v142-decor-opacity); }
#v179-field-runner { display:none; }
#v142-player-skin-decor[data-field-kind="painted"].v179-field-wide #v142-rare-field-art,
#v142-player-skin-decor[data-field-kind="painted"].v179-field-wide #v176-rare-field-art-right {
  display:block; position:absolute; top:0; bottom:auto; width:var(--v179-field-art-width); height:var(--v179-field-art-height); max-width:none;
  transform:none; object-fit:contain; object-position:center; opacity:0; pointer-events:none;
  filter:saturate(1.06) contrast(1.02) drop-shadow(0 4px 6px #0005); transition:opacity .36s ease;
}
#v142-player-skin-decor[data-field-kind="painted"].v179-field-wide #v142-rare-field-art {
  left:var(--v179-field-left-inset); right:auto; clip-path:inset(0 66.666667% 0 0);
  mask-image:linear-gradient(90deg,transparent,#000 2% 29%,transparent 33.333333%);
}
#v142-player-skin-decor[data-field-kind="painted"].v179-field-wide #v176-rare-field-art-right {
  left:auto; right:var(--v179-field-right-inset); clip-path:inset(0 0 0 66.666667%);
  mask-image:linear-gradient(90deg,transparent 66.666667%,#000 71% 98%,transparent);
}
#v142-player-skin-decor[data-field-kind="painted"].v179-field-wide.is-active #v142-rare-field-art.asset-ready,
#v142-player-skin-decor[data-field-kind="painted"].v179-field-wide.is-active #v176-rare-field-art-right.asset-ready { opacity:var(--v142-decor-opacity); }
#v142-player-skin-decor[data-field-kind="painted"].v179-field-wide #v179-field-runner {
  display:flex; position:absolute; left:0; right:0; bottom:0; height:24%; overflow:hidden;
  pointer-events:none; opacity:0; filter:saturate(1.06) contrast(1.02); transition:opacity .36s ease;
}
#v142-player-skin-decor[data-field-kind="painted"].v179-field-wide.is-active #v179-field-runner { opacity:var(--v142-decor-opacity); }
.v179-field-runner-tile {
  position:relative; flex:0 0 var(--v179-field-tile-width); height:100%; overflow:hidden;
}
.v179-field-runner-tile img {
  position:absolute; left:calc(-1 * var(--v179-field-tile-width)); bottom:0;
  width:var(--v179-field-art-width); height:var(--v179-field-art-height); max-width:none;
  object-fit:contain; pointer-events:none;
}
.v179-field-runner-tile:nth-child(even) { transform:scaleX(-1); }
@keyframes v175-field-reveal { 0%{opacity:0;transform:scale(.88)} 22%{opacity:.93;transform:scale(1.03)} 73%{opacity:.8;transform:scale(1)} 100%{opacity:0;transform:scale(1.08)} }
@media(max-width:820px) { #v142-skin-options { grid-auto-rows:max-content; align-content:start; } .v142-skin-option { grid-template-rows:clamp(220px,35dvh,320px) auto auto auto; } .v175-appearance-stage { min-height:220px; } }
@media(max-height:640px) and (orientation:landscape) { #v142-skin-options { grid-auto-rows:max-content; align-content:start; } .v142-skin-option { grid-template-rows:200px auto auto auto; } .v175-appearance-stage { min-height:200px; } }
@media(prefers-reduced-motion:reduce) { #v176-rare-field-art-right { transition:none!important; } .v175-effect-art { animation:none; opacity:.65; } .v175-standard-effect,.v175-standard-effect *,.v175-standard-effect::before,.v175-standard-effect::after { animation:none!important; } .v175-standard-effect { opacity:.65; } .v175-standard-effect .v67-special-glyph { opacity:1; filter:none; } }
@media(forced-colors:active) { .v175-appearance-effect,.v175-effect-art { display:none; } }

/* Keep zone captions legible when the sleeve passes behind their panels. */
body.v45-battle-active.v64-shocker-battle
.field-area.player-area:has(> #v142-player-skin-decor[data-field-kind="painted"].is-active)
> .disposal-container > .disposal-box > .disposal-title {
  background:rgba(3,8,10,.92) !important;
  text-shadow:0 1px 2px #000 !important;
}

/* v270: preview the same subtle own-zone frames used in battle, without
   restoring retired rare whole-field artwork in the wardrobe's effect sample. */
#v142-skin-vault .v175-appearance-features .v270-zone-preview {
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:0;
    border:0;
}
#v142-skin-vault .v175-appearance-features .v270-zone-frame {
    --v262-zone-edge:var(--v262-grave-edge);
    padding:4px 6px;
    border:1px solid color-mix(in srgb,var(--v262-zone-edge) 52%,#44474b);
    background:#08090a;
    box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--v262-zone-edge) 19%,transparent),
        0 0 5px var(--v262-zone-glow,transparent);
}
#v142-skin-vault .v175-appearance-features .v270-zone-frame[data-zone="slash"] {
    --v262-zone-edge:var(--v262-slash-edge);
}
#v142-skin-vault .v142-skin-option:not([data-skin-id="standard"]) .v175-effect-art {
    display:none!important;
}
/* These card images have intrinsic height (no letterbox). Their existing
   57%/52% flex widths make these radii exactly 6% of each picture, capped
   at the native canvas's 16px radius; geometry and artwork remain unchanged. */
#v142-skin-vault .v175-appearance-stage .v142-option-cards {
    container-type:inline-size;
}
#v142-skin-vault .v175-appearance-stage .v142-option-cards img {
    border-radius:min(16px,3.42cqw);
    clip-path:inset(0 round min(16px,3.42cqw));
}
#v142-skin-vault .v175-appearance-stage .v142-option-cards img+img {
    border-radius:min(16px,3.12cqw);
    clip-path:inset(0 round min(16px,3.12cqw));
}
@media(forced-colors:active) {
    #v142-skin-vault .v175-appearance-features .v270-zone-frame {
        border-color:CanvasText;
        box-shadow:none;
    }
}

/* The wardrobe starts with a compact collection; the existing appearance
   renderer and equipment actions are shown only after opening one skin. */
#v142-skin-vault #v200-character-wardrobe-panel #v142-skin-options {
    grid-template-columns:repeat(auto-fill,minmax(112px,144px));
    grid-auto-rows:max-content;
    align-content:start;
    align-items:start;
    justify-content:start;
    gap:14px;
}
#v142-skin-vault .v272-skin-tile {
    display:grid;
    grid-template-rows:auto auto auto;
    align-content:start;
    gap:7px;
    width:100%;
    max-width:144px;
    min-width:0;
    padding:8px;
    border:1px solid rgba(217,183,94,.3);
    border-radius:5px;
    color:#e9dfc9;
    background:linear-gradient(145deg,#1b1817,#090b0c);
    text-align:left;
    cursor:pointer;
    box-shadow:0 5px 14px #0005;
}
#v142-skin-vault .v272-skin-tile.is-equipped {
    border-color:#e3c66f;
    box-shadow:inset 0 0 0 1px #e3c66f30,0 5px 14px #0005;
}
#v142-skin-vault .v272-skin-tile:hover {border-color:#e8c974;background:#252019;}
#v142-skin-vault .v272-skin-tile:focus-visible {outline:2px solid #fff0c0;outline-offset:3px;}
#v142-skin-vault .v272-skin-tile-art {
    display:block;aspect-ratio:925 / 1281;container-type:inline-size;
}
#v142-skin-vault .v272-skin-tile-art img {
    display:block;width:100%;height:100%;object-fit:fill;
    border-radius:min(16px,6cqw);
    clip-path:inset(0 round min(16px,6cqw));
}
#v142-skin-vault .v272-skin-tile strong {
    min-width:0;font:600 12px/1.45 "Yu Gothic",sans-serif;
    overflow-wrap:anywhere;
}
#v142-skin-vault .v272-skin-tile-status {color:#a89e87;font:11px/1.4 "Yu Gothic",sans-serif;}
#v142-skin-vault .v272-skin-tile.is-equipped .v272-skin-tile-status {color:#edce7b;}
#v142-skin-vault #v272-skin-detail[hidden] {display:none!important;}
#v142-skin-vault #v272-skin-detail {
    position:absolute;inset:0;z-index:5;
    display:grid;place-items:center;padding:18px;
    background:#030405e8;
    overscroll-behavior:contain;
}
#v142-skin-vault .v272-skin-detail-panel {
    display:grid;grid-template-rows:auto minmax(0,1fr);
    width:min(780px,100%);max-height:calc(100dvh - 36px);min-height:0;
    border:1px solid #bca15b;
    background:#0b0c0d;
    box-shadow:0 22px 70px #000b;
}
#v142-skin-vault .v272-skin-detail-header {
    display:flex;align-items:center;justify-content:space-between;gap:14px;
    padding:12px 14px;border-bottom:1px solid #d9b75e40;
    background:linear-gradient(105deg,#3b1620,#121313);
}
#v142-skin-vault .v272-skin-detail-header>div {min-width:0;}
#v142-skin-vault .v272-skin-detail-header small {color:#b9ab8b;font:11px/1.5 "Yu Gothic",sans-serif;}
#v142-skin-vault .v272-skin-detail-header h3 {margin:4px 0 0;font-size:20px;font-weight:500;overflow-wrap:anywhere;}
#v142-skin-vault #v272-skin-detail-close {
    flex:0 0 44px;width:44px;height:44px;border:1px solid #d9b75e70;
    background:#100c0d;color:#f2dfae;font:28px/1 Georgia,serif;cursor:pointer;
}
#v142-skin-vault #v272-skin-detail-close:focus-visible {outline:2px solid #fff0c0;outline-offset:2px;}
#v142-skin-vault #v272-skin-detail-content {min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#715b2e #080808;}
#v142-skin-vault #v272-skin-detail-content .v142-skin-option {
    grid-template-rows:auto auto auto auto;border:0;box-shadow:none;border-radius:0;
}
#v142-skin-vault #v272-skin-detail .v175-appearance-stage {height:clamp(240px,46dvh,410px);min-height:0;}
#v142-skin-vault #v272-skin-detail .v142-option-cards {
    inset:16px auto 16px 4%;width:64%;height:calc(100% - 32px);max-width:none;
    display:flex;align-items:center;justify-content:center;container-type:size;
    --v273-card-gap:30px;gap:var(--v273-card-gap);
}
#v142-skin-vault #v272-skin-detail .v142-option-cards img {
    flex:0 0 auto;width:min(calc((100% - var(--v273-card-gap)) / 2), calc(100cqh * 925 / 1281));
    height:auto;max-width:none;max-height:none;aspect-ratio:925 / 1281;margin:0;
    transform:none;object-fit:fill;border-radius:10px;clip-path:inset(0 round 10px);
}
#v142-skin-vault #v272-skin-detail .v142-option-info {grid-template-columns:minmax(0,1fr) auto;}
#v142-skin-vault #v272-skin-detail .v142-option-action {min-height:44px;}
@media(max-width:470px) {
    #v142-skin-vault #v200-character-wardrobe-panel #v142-skin-options {grid-template-columns:repeat(2,minmax(0,144px));gap:10px;}
    #v142-skin-vault #v272-skin-detail {padding:8px;}
    #v142-skin-vault .v272-skin-detail-panel {max-height:calc(100dvh - 16px);}
    #v142-skin-vault .v272-skin-detail-header {padding:9px 10px;gap:8px;}
    #v142-skin-vault .v272-skin-detail-header h3 {font-size:17px;}
    #v142-skin-vault #v272-skin-detail .v142-option-cards {left:3%;width:94%;}
    #v142-skin-vault #v272-skin-detail .v142-option-hand-crop {opacity:.25;}
    #v142-skin-vault #v272-skin-detail .v142-option-info {grid-template-columns:1fr;}
}

#v142-skin-vault #v200-character-wardrobe-panel #v142-skin-options {gap:24px;}
@media(max-width:820px) {
    #v142-skin-vault #v200-character-wardrobe-panel #v142-skin-options {gap:18px;}
    #v142-skin-vault #v272-skin-detail .v142-option-cards {--v273-card-gap:18px;}
}


/* SOURCE styles/wardrobe-hand-preview.css */
/* Wardrobe-only framing. The artwork keeps its native proportions, and its
   complete right hand and sleeve fit within the same frame for every skin. */
body.v142-vault-open #v172-account-button { display:none; }
#v142-skin-vault .v178-hand-preview {
  container-type:size;
  pointer-events:none;
  overflow:hidden;
}
#v142-skin-vault .v175-appearance-stage .v142-option-hand-crop.v178-hand-preview {
  position:absolute;
  z-index:4;
  inset:6% 4% 8% 64%;
  width:auto;
  height:auto;
  border:0;
  padding:0;
  background:radial-gradient(ellipse at 54% 62%,#090b0b99,transparent 72%);
}
#v142-skin-vault .v178-hand-window {
  position:absolute;
  left:50%;
  top:50%;
  width:min(94cqw,calc(94cqh * var(--v178-hand-ratio,1)));
  height:min(94cqh,calc(94cqw / var(--v178-hand-ratio,1)));
  translate:-50% -50%;
  overflow:hidden;
}
#v142-skin-vault .v178-hand-preview .v142-option-hand {
  position:absolute;
  left:var(--v178-hand-image-left,0%);
  top:var(--v178-hand-image-top,0%);
  right:auto;
  bottom:auto;
  width:var(--v178-hand-image-width,100%);
  height:auto;
  max-width:none;
  margin:0;
  object-fit:contain;
  clip-path:none;
  filter:drop-shadow(0 2px 3px #0008);
  transform:none;
}
#v142-skin-vault .v175-appearance-features { align-items:center; }
#v142-skin-vault .v175-appearance-features > .v178-hand-feature {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 6px;
}
#v142-skin-vault .v178-feature-hand {
  position:relative;
  flex:0 0 48px;
  width:48px;
  height:54px;
  padding:0;
  border:0;
}


/* SOURCE styles/skin-zone-banners.css */
/* v262: rare appearances accent only the own grave/slash frames.
   The standard field and all summon/attack effects remain unchanged. */
body[data-v262-zone-skin] #v142-player-skin-decor,
body[data-v262-zone-skin] #v142-rare-field-art,
body[data-v262-zone-skin] #v176-rare-field-art-right,
body[data-v262-zone-skin] #v179-field-runner,
body[data-v262-zone-skin] #v142-table-props,
.v142-skin-option:not([data-skin-id="standard"]) .v142-option-field {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.v45-battle-active.v64-shocker-battle
.field-area.player-area[data-v262-zone-skin] > .disposal-container > .disposal-box {
    --v262-zone-edge: var(--v262-grave-edge);
    border-color: color-mix(in srgb, var(--v262-zone-edge) 52%, #44474b) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v262-zone-edge) 19%, transparent),
        0 0 5px var(--v262-zone-glow, transparent) !important;
}
body.v45-battle-active.v64-shocker-battle
.field-area.player-area[data-v262-zone-skin] > .disposal-container > .disposal-box:last-child {
    --v262-zone-edge: var(--v262-slash-edge);
}

/* Preserve opaque rare character-card art without recoloring its field. */
body.v45-battle-active.v64-shocker-battle[data-v262-zone-skin]
.field-area.player-area #player-battle-character.has-large-battle-art {
    opacity: 1 !important;
    background-color: #08090a !important;
    background-blend-mode: normal !important;
    mix-blend-mode: normal !important;
    isolation: isolate;
}

/* Keep rare-card preview surfaces opaque without changing their art or dimmed back-card treatment. */
#v134-card-stage .v134-stage-card,
#v134-card-stage .v134-stage-card > img,
#v142-skin-options .v142-skin-option:nth-child(2) .v142-option-cards img,
#v142-prebattle-options .v142-prebattle-choice:nth-child(2) img {
    background-color: #08090a !important;
    background-blend-mode: normal !important;
    mix-blend-mode: normal !important;
}

@media (forced-colors: active) {
    body.v45-battle-active.v64-shocker-battle
    .field-area.player-area[data-v262-zone-skin] > .disposal-container > .disposal-box {
        border-color: CanvasText !important;
        box-shadow: none !important;
    }
}


/* SOURCE styles/animated-vfx.css */
/* Background-only translucency: clothing remains visible while all labels/cards stay crisp. */
body[data-v142-field-skin="zaraku-blood-banquet"] .field-area.player-area {
    --v150-zone-panel-alpha: 46%; --v150-zone-tail-alpha: 22%;
    --v150-accent: #e24e60; --v150-secondary: #ffd08a; --v150-deep: #190609;
}
body[data-v142-field-skin="riana-amethyst-vow"] .field-area.player-area {
    --v150-zone-panel-alpha: 42%; --v150-zone-tail-alpha: 20%;
    --v150-accent: #bd82f0; --v150-secondary: #fff3ff; --v150-deep: #170d25;
}
body[data-v142-field-skin="larasa-halloween"] .field-area.player-area {
    --v150-zone-panel-alpha: 40%; --v150-zone-tail-alpha: 18%;
    --v150-accent: #a66bea; --v150-secondary: #ff9a45; --v150-deep: #140b22;
}
body[data-v142-field-skin="mirano-midnight-service"] .field-area.player-area {
    --v150-zone-panel-alpha: 44%; --v150-zone-tail-alpha: 20%;
    --v150-accent: #67dda0; --v150-secondary: #f4df9c; --v150-deep: #061a16;
}
body[data-v142-field-skin="zaraku-blood-banquet"] { --v150-accent:#e24e60; --v150-secondary:#ffd08a; --v150-deep:#190609; }
body[data-v142-field-skin="riana-amethyst-vow"] { --v150-accent:#bd82f0; --v150-secondary:#fff3ff; --v150-deep:#170d25; }
body[data-v142-field-skin="larasa-halloween"] { --v150-accent:#a66bea; --v150-secondary:#ff9a45; --v150-deep:#140b22; }
body[data-v142-field-skin="mirano-midnight-service"] { --v150-accent:#67dda0; --v150-secondary:#f4df9c; --v150-deep:#061a16; }

body.v45-battle-active.v64-shocker-battle[data-v142-field-skin]
.field-area.player-area > .disposal-container > .disposal-box {
    opacity: 1 !important;
    background: linear-gradient(105deg,
        color-mix(in srgb, var(--v143-deep) var(--v150-zone-panel-alpha), transparent),
        color-mix(in srgb, #050607 var(--v150-zone-tail-alpha), transparent) 72%) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.07), inset 0 -8px 16px rgba(0,0,0,.16), 0 0 10px var(--v143-zone-glow) !important;
}
body.v45-battle-active.v64-shocker-battle[data-v142-field-skin]
.field-area.player-area > .disposal-container > .disposal-box:first-child {
    background: linear-gradient(100deg,
        color-mix(in srgb, var(--v143-grave) 11%, transparent),
        color-mix(in srgb, var(--v143-deep) var(--v150-zone-panel-alpha), transparent) 38%,
        color-mix(in srgb, #050607 var(--v150-zone-tail-alpha), transparent) 76%) !important;
}
body.v45-battle-active.v64-shocker-battle[data-v142-field-skin]
.field-area.player-area > .disposal-container > .disposal-box:last-child {
    background: linear-gradient(260deg,
        color-mix(in srgb, var(--v143-slash) 10%, transparent),
        color-mix(in srgb, var(--v143-deep) var(--v150-zone-panel-alpha), transparent) 38%,
        color-mix(in srgb, #050607 var(--v150-zone-tail-alpha), transparent) 76%) !important;
}
body.v45-battle-active.v64-shocker-battle[data-v142-field-skin]
.field-area.player-area > .disposal-container > .disposal-box > .disposal-title,
body.v45-battle-active.v64-shocker-battle[data-v142-field-skin]
.field-area.player-area > .disposal-container > .disposal-box > .graveyard-zone,
body.v45-battle-active.v64-shocker-battle[data-v142-field-skin]
.field-area.player-area > .disposal-container > .disposal-box > .slash-zone,
body.v45-battle-active.v64-shocker-battle[data-v142-field-skin]
.field-area.player-area #player-grave-count,
body.v45-battle-active.v64-shocker-battle[data-v142-field-skin]
.field-area.player-area #player-slash-count { opacity:1 !important; }
body.v45-battle-active.v64-shocker-battle[data-v142-field-skin]
.field-area.player-area > .disposal-container > .disposal-box > .disposal-title {
    padding-right: 4px !important;
    background: linear-gradient(90deg, color-mix(in srgb,#030405 48%,transparent), color-mix(in srgb,var(--v143-zone-edge) 10%,transparent), transparent 82%) !important;
}
body.v45-battle-active.v64-shocker-battle[data-v142-field-skin]
.field-area.player-area > .disposal-container > .disposal-box > .disposal-title::after { display:none !important; content:none !important; }

/* Remove flat glyphs, CSS diamonds/circles and generic suit particles on rare skins. */
#home-screen.v62-shocker-home .v142-home-vault .home-menu-icon,
.v142-skin-perk::before,
.v142-character-mark { display:none !important; content:none !important; }
body[data-v150-rare-vfx="true"] #v142-table-props { display:none !important; }
body[data-v150-rare-vfx="true"] #v142-rare-clash-fx[data-v150-visible="true"] .v142-clash-aura,
body[data-v150-rare-vfx="true"] #v142-rare-clash-fx[data-v150-visible="true"] .v142-clash-sigil,
body[data-v150-rare-vfx="true"] #v142-rare-clash-fx[data-v150-visible="true"] .v142-clash-particle { display:none !important; animation:none !important; }
body[data-v150-rare-vfx="true"] #v142-rare-clash-fx[data-v150-visible="true"] .v142-clash-badge { z-index:7; }
/* Generated rare-card compositions replace the old generic ring/slash/VS stack. */
#v61-character-clash[data-v150-visible-clash="true"]::before { content:none !important; display:none !important; animation:none !important; }
#v61-character-clash[data-v150-visible-clash="true"] .v61-clash-backlight,
#v61-character-clash[data-v150-visible-clash="true"] .v61-clash-speedlines,
#v61-character-clash[data-v150-visible-clash="true"] .v61-clash-flash,
#v61-character-clash[data-v150-visible-clash="true"] .v61-clash-ring,
#v61-character-clash[data-v150-visible-clash="true"] .v61-clash-slash,
#v61-character-clash[data-v150-visible-clash="true"] .v61-clash-core,
#v61-character-clash[data-v150-visible-clash="true"] .v61-impact-spark { display:none !important; animation:none !important; }
#v67-fx-layer .v67-special.v150-trigger-only::before,
#v67-fx-layer .v67-special.v150-trigger-only::after { content:none !important; display:none !important; animation:none !important; }
#v67-fx-layer .v67-special.v150-trigger-only .v67-special-glyph,
#v67-fx-layer .v67-special.v150-trigger-only .v67-special-ring,
#v67-fx-layer .v67-special.v150-trigger-only .v67-special-particle { display:none !important; animation:none !important; }
#v67-fx-layer .v67-impact-core.v150-trigger-only {
    opacity:0 !important; visibility:hidden !important; background:none !important; box-shadow:none !important;
    filter:none !important; mix-blend-mode:normal !important;
}
/* A player-owned landing core stays alive only long enough to emit animationstart. */
#v68-motion-layer .v68-land-core.v150-trigger-only,
#v68-motion-layer .v68-deck-vortex.v150-trigger-only {
    opacity:0 !important; visibility:hidden !important; background:none !important; box-shadow:none !important;
    filter:none !important; mix-blend-mode:normal !important; animation:none !important;
}
#v68-turn-arrival.v150-trigger-only .v68-turn-crest,
#v68-turn-arrival.v150-trigger-only .v68-turn-particle,
#v68-turn-arrival.v150-trigger-only .v68-turn-slash { display:none !important; animation:none !important; }
#v68-turn-arrival.v150-trigger-only::before,
#v68-turn-arrival.v150-trigger-only::after { content:none !important; display:none !important; }
.v150-legacy-muted { display:none !important; animation:none !important; }

/* Keep the existing turn typography, but hand its palette to the selected premium art. */
body.v45-battle-active[data-v150-rare-vfx="true"] #v68-turn-arrival { --turn-color:var(--v150-accent); }
body.v45-battle-active[data-v150-rare-vfx="true"] #v68-turn-arrival .v68-turn-panel {
    border-block-color:color-mix(in srgb,var(--v150-secondary) 66%,#fff);
    box-shadow:0 0 26px color-mix(in srgb,var(--turn-color) 18%,transparent),inset 0 1px rgba(255,255,255,.12);
}
body.v45-battle-active[data-v150-rare-vfx="true"] #v68-turn-arrival .v68-turn-kicker { color:color-mix(in srgb,var(--turn-color) 48%,#fff); text-shadow:0 0 6px color-mix(in srgb,var(--turn-color) 54%,transparent); }
body.v45-battle-active[data-v150-rare-vfx="true"] #v68-turn-arrival .v68-turn-main { text-shadow:0 3px 0 #000,0 0 8px rgba(255,255,255,.7),0 0 18px color-mix(in srgb,var(--turn-color) 58%,transparent); }
body.v45-battle-active[data-v150-rare-vfx="true"] #v68-turn-arrival .v68-turn-sub { color:var(--v150-secondary); }

/* The existing rare field art and physical props remain the only persistent decor.
   Generated art is intentionally event-only so it never becomes a second backdrop. */

/* Small, flat effect cels stay secondary to the character art. No filter or glow.
   Six generated drawings per theme. The inner image changes frames discretely;
   only the outer track controls its position. Nothing is a static-art zoom. */
.v150-clash-signature {
    --v150-clash-peak:.80;
    position:absolute; z-index:15; inset:0; overflow:hidden; pointer-events:none; user-select:none;
    display:block !important; visibility:visible !important; opacity:1 !important;
}
.v150-clash-art,.v150-battle-art {
    position:absolute; inset:0; pointer-events:none; user-select:none;
}
.v150-motion-track {
    position:absolute; opacity:0; pointer-events:none;
    width:var(--v150-sprite-size,96px); aspect-ratio:1; translate:-50% -50%;
    will-change:transform,opacity;
}
.v150-sprite {
    position:absolute; inset:0; display:block; overflow:hidden; contain:paint; isolation:isolate;
}
.v150-atlas-image {
    position:absolute !important; display:block !important; left:0 !important; top:0 !important;
    width:300% !important; height:200% !important; max-width:none !important; max-height:none !important;
    margin:0 !important; padding:0 !important; border:0 !important; opacity:1 !important;
    object-fit:fill; transform:translate3d(0,0,0); transform-origin:0 0;
    pointer-events:none; user-select:none; will-change:transform;
}
.is-ready > .v150-clash-art .v150-atlas-image,
.is-ready > .v150-battle-art .v150-atlas-image {
    animation:v150-sheet-cycle .6s steps(1,end) var(--v150-frame-offset,0s) infinite;
}
@keyframes v150-sheet-cycle {
    0%       { transform:translate3d(0,0,0); }
    16.6667% { transform:translate3d(-33.333333%,0,0); }
    33.3333% { transform:translate3d(-66.666667%,0,0); }
    50%      { transform:translate3d(0,-50%,0); }
    66.6667% { transform:translate3d(-33.333333%,-50%,0); }
    83.3333%,100% { transform:translate3d(-66.666667%,-50%,0); }
}
/* Player-side outer margins only: faces, central VS and opponent stay uncovered. */
.v150-clash-art .v150-motion-track { --v150-sprite-size:clamp(72px,9vw,128px); }
.v150-clash-art .v150-track-0 { left:9%; top:31%; --v150-travel-x:50px; --v150-travel-y:-18px; }
.v150-clash-art .v150-track-1 { left:12%; top:78%; --v150-sprite-size:clamp(64px,8vw,112px); --v150-travel-x:38px; --v150-travel-y:-26px; --v150-frame-offset:-.2s; --v150-start-delay:calc(var(--v150-clash-delay,.42s) + var(--v150-clash-stagger,.2s)); }
.v150-clash-signature.is-ready .v150-motion-track {
    animation:v150-clash-flight var(--v150-clash-life,1.6s) var(--v150-start-delay,var(--v150-clash-delay,.42s)) ease-in-out both;
}
.v150-clash-signature[data-skin-id="riana-amethyst-vow"] { --v150-clash-peak:.78; }
.v150-clash-signature[data-skin-id="zaraku-blood-banquet"] .v150-motion-track,
.v150-clash-signature[data-skin-id="riana-amethyst-vow"] .v150-motion-track { --v150-travel-x:12px; --v150-travel-y:-28px; }
.v150-clash-signature[data-skin-id="mirano-midnight-service"] .v150-motion-track { --v150-travel-x:10px; --v150-travel-y:-24px; }
@keyframes v150-clash-flight {
    0% { opacity:0; transform:translate3d(calc(var(--v150-travel-x) * -.4),calc(var(--v150-travel-y) * -.4),0); }
    15%,67% { opacity:var(--v150-clash-peak); }
    100% { opacity:0; transform:translate3d(var(--v150-travel-x),var(--v150-travel-y),0); }
}
/* The event is a direct child of the player field, above card stacks (z3/4).
   Persistent field decoration remains at z2. All effect pixels pass pointer input. */
.v150-battle-event {
    --v150-battle-peak:.90;
    position:absolute; z-index:5; inset:0; overflow:hidden; pointer-events:none; user-select:none;
    display:block !important; visibility:visible !important; opacity:0;
}
.v150-battle-event.is-ready { animation:v150-event-life var(--v150-event-life,.9s) linear both; }
.v150-battle-art .v150-motion-track {
    left:var(--v150-origin-x); top:var(--v150-origin-y);
    --v150-sprite-size:clamp(68px,10%,104px); --v150-travel-x:18px; --v150-travel-y:-18px;
}
.v150-battle-event[data-kind="land"] { --v150-battle-peak:.86; }
.v150-battle-event[data-kind="land"] .v150-motion-track { --v150-sprite-size:clamp(68px,10%,104px); }
.v150-battle-event[data-kind="special"] .v150-motion-track,
.v150-battle-event[data-kind="turn"] .v150-motion-track { --v150-sprite-size:clamp(84px,13%,124px); }
.v150-battle-event.is-ready .v150-motion-track {
    animation:v150-battle-flight var(--v150-event-life,.9s) ease-in-out both;
}
@keyframes v150-event-life { 0%,100%{opacity:0} 8%,80%{opacity:1} }
@keyframes v150-battle-flight {
    0% { opacity:0; transform:translate3d(calc(var(--v150-travel-x) * -.4),12px,0); }
    15%,70% { opacity:var(--v150-battle-peak); }
    100% { opacity:0; transform:translate3d(var(--v150-travel-x),var(--v150-travel-y),0); }
}
@keyframes v150-reduced-clash { 0%,100%{opacity:0;transform:none} 22%,76%{opacity:var(--v150-clash-peak);transform:none} }
@keyframes v150-reduced-battle { 0%,100%{opacity:0;transform:none} 18%,72%{opacity:var(--v150-battle-peak);transform:none} }
@media (max-width:820px) {
    body[data-v142-field-skin="zaraku-blood-banquet"] .field-area.player-area { --v150-zone-panel-alpha:40%; --v150-zone-tail-alpha:18%; }
    body[data-v142-field-skin="riana-amethyst-vow"] .field-area.player-area { --v150-zone-panel-alpha:37%; --v150-zone-tail-alpha:17%; }
    body[data-v142-field-skin="larasa-halloween"] .field-area.player-area { --v150-zone-panel-alpha:35%; --v150-zone-tail-alpha:16%; }
    body[data-v142-field-skin="mirano-midnight-service"] .field-area.player-area { --v150-zone-panel-alpha:38%; --v150-zone-tail-alpha:17%; }
    .v150-clash-art .v150-motion-track { --v150-sprite-size:clamp(58px,14vw,94px); --v150-travel-x:24px; }
    .v150-clash-art .v150-track-1 { --v150-sprite-size:clamp(54px,13vw,86px); }
    .v150-battle-art .v150-motion-track,
    .v150-battle-event[data-kind="land"] .v150-motion-track { --v150-sprite-size:clamp(62px,15%,84px); }
    .v150-battle-event[data-kind="special"] .v150-motion-track,
    .v150-battle-event[data-kind="turn"] .v150-motion-track { --v150-sprite-size:clamp(72px,18%,100px); }
}
@media (prefers-reduced-motion:reduce) {
    .is-ready > .v150-clash-art .v150-atlas-image,
    .is-ready > .v150-battle-art .v150-atlas-image { animation:none !important; transform:translate3d(-33.333333%,0,0) !important; will-change:auto; }
    .v150-clash-signature.is-ready .v150-motion-track { animation:v150-reduced-clash var(--v150-clash-life,1.6s) var(--v150-start-delay,var(--v150-clash-delay,.42s)) ease both !important; }
    .v150-battle-event.is-ready .v150-motion-track { animation:v150-reduced-battle var(--v150-event-life,.9s) ease both !important; }
}
@media (forced-colors:active) {
    .v150-clash-signature,.v150-battle-event { display:none !important; }
    body.v45-battle-active.v64-shocker-battle[data-v142-field-skin]
    .field-area.player-area > .disposal-container > .disposal-box { background:Canvas !important; }
}

/* v249: replacements are selected per attack, never from a global local-skin flag.
   The layer remains alive for native card travel, impact timing and completion. */
.attack-motion-layer[data-v249-custom-effect] .attack-slash-mark,
.attack-motion-layer[data-v249-custom-effect] .attack-impact-ring{opacity:0!important;visibility:hidden!important;}
.v150-battle-event{--v249-rare-light:#cfb0ff;--v249-rare-edge:#a2ffe0;overflow:visible;}
.v150-battle-event[data-skin-id="zaraku-blood-banquet"]{--v249-rare-light:#ff7d95;--v249-rare-edge:#ffd3a0;}
.v150-battle-event[data-skin-id="larasa-halloween"]{--v249-rare-light:#cc90ff;--v249-rare-edge:#ffbf67;}
.v150-battle-event[data-skin-id="mirano-midnight-service"]{--v249-rare-light:#88ffba;--v249-rare-edge:#ffe9a9;}
.v150-battle-event.is-blooming{opacity:1;}
.v150-battle-art .v150-motion-track,.v150-battle-event[data-kind="land"] .v150-motion-track{--v150-sprite-size:clamp(150px,23%,244px);--v150-travel-x:28px;--v150-travel-y:-36px;filter:brightness(1.18) saturate(1.2) drop-shadow(0 0 8px var(--v249-rare-light));}
.v150-battle-event[data-kind="special"] .v150-motion-track,.v150-battle-event[data-kind="turn"] .v150-motion-track{--v150-sprite-size:clamp(168px,27%,280px);}
.v150-battle-art .v150-track-1{margin-left:-68px;margin-top:15px;--v150-sprite-size:clamp(100px,17%,180px);--v150-frame-offset:-.2s;--v150-travel-x:-65px;--v150-travel-y:-52px;}
.v150-battle-art .v150-track-2{margin-left:68px;margin-top:-13px;--v150-sprite-size:clamp(100px,17%,180px);--v150-frame-offset:-.4s;--v150-travel-x:65px;--v150-travel-y:-58px;}
.v249-rare-bloom{position:absolute;left:var(--v150-origin-x);top:var(--v150-origin-y);width:clamp(160px,28%,310px);aspect-ratio:1;translate:-50% -50%;pointer-events:none;animation:v249RareBloomLife 1.25s ease-out both;}
.v249-rare-bloom::before,.v249-rare-bloom::after{content:"";position:absolute;inset:9%;border:2px solid var(--v249-rare-edge);border-radius:50%;background:radial-gradient(ellipse,color-mix(in srgb,var(--v249-rare-light) 30%,transparent),transparent 68%);box-shadow:0 0 24px var(--v249-rare-light),inset 0 0 20px var(--v249-rare-light);animation:v249RareRing 1.1s ease-out both;}
.v249-rare-bloom::after{inset:22%;border-color:var(--v249-rare-light);animation-delay:.08s;}
.v249-rare-bloom i{position:absolute;left:50%;top:50%;width:5px;height:25px;border-radius:50%;background:linear-gradient(#fff,var(--v249-rare-light),transparent);box-shadow:0 0 10px var(--v249-rare-light);animation:v249RareRay 1.1s var(--v249-ray-delay) ease-out both;transform-origin:center;}
@keyframes v249RareBloomLife{0%{opacity:0}15%,45%{opacity:1}100%{opacity:0}}
@keyframes v249RareRing{0%{scale:.25;opacity:0}25%{opacity:.9}100%{scale:1.35;opacity:0}}
@keyframes v249RareRay{0%{opacity:0;transform:rotate(var(--v249-ray-angle)) translateY(-20px) scale(.5)}20%,45%{opacity:.95}100%{opacity:0;transform:rotate(var(--v249-ray-angle)) translateY(-145px) scale(.2)}}
@media(max-width:820px){.v150-battle-art .v150-motion-track,.v150-battle-event[data-kind="land"] .v150-motion-track{--v150-sprite-size:clamp(118px,25%,190px);}.v150-battle-art .v150-track-1{margin-left:-42px;}.v150-battle-art .v150-track-2{margin-left:42px;}}
@media(prefers-reduced-motion:reduce){.v249-rare-bloom{animation:v150-reduced-battle .5s ease both;}.v249-rare-bloom::before,.v249-rare-bloom::after,.v249-rare-bloom i{animation:none!important;box-shadow:none;}.v249-rare-bloom i{display:none;}.v150-battle-art .v150-motion-track{filter:none;}}


/* SOURCE styles/ornate-card-back.css */
:root {
    --v151-default-card-back: url("../assets/765b410601d5b96385a37a09.webp");
}


body:not([data-v137-card-back]) :is(
    .card.card-back:not(:where(#player-field .card, .inspection-inspected-card)),
    .deck-pile,
    .opponent-mini-card,
    .toss-card-visual.card-back,
    .v120-card-back,
    .v101-card-slot.is-locked,
    .v122-card-back
) {
    background-color:#bd0711 !important;
    background-image:var(--v151-default-card-back) !important;
    background-position:50% 50% !important;
    background-repeat:no-repeat !important;
    background-size:100% 100% !important;
    background-origin:border-box !important;
    background-clip:border-box !important;
}


body:not([data-v137-card-back]) .toss-card-visual.card-back::before,
body:not([data-v137-card-back]) .toss-card-visual.card-back::after,
body:not([data-v137-card-back]) .v101-card-slot.is-locked::before,
body:not([data-v137-card-back]) .v101-card-slot.is-locked::after,
body:not([data-v137-card-back]) .v120-card-back::before,
body:not([data-v137-card-back]) .v120-card-back > b {
    content:none !important;
    display:none !important;
}

body:not([data-v137-card-back]) .deck-pile {
    color:#fff1c5 !important;
    text-shadow:0 1px 2px #260004,0 0 5px #000,0 0 11px #62000a !important;
}

body:not([data-v137-card-back]) .v120-card-back > small {
    position:absolute !important;
    right:12% !important;
    bottom:15px !important;
    left:12% !important;
    z-index:2 !important;
    padding:5px 4px !important;
    border:1px solid rgba(255,245,226,.74) !important;
    border-radius:3px !important;
    color:#fff8e8 !important;
    background:rgba(91,0,8,.82) !important;
    box-shadow:0 2px 8px rgba(0,0,0,.55) !important;
    text-shadow:0 1px 2px #000 !important;
}


body.v45-battle-active.v64-shocker-battle[data-v137-card-back="discarded-decree"] :is(.deck-pile,.opponent-mini-card),
body[data-v137-card-back="discarded-decree"] :is(.v101-card-slot.is-locked,.v122-card-back) {
    border-color:#c8aa60 !important;
    background-color:#17070a !important;
    background-image:linear-gradient(154deg,transparent 42%,rgba(226,198,122,.24) 43% 44%,transparent 45%),radial-gradient(circle at 50% 49%,#8e2133 0 7%,#d0ac59 8% 9%,transparent 10% 22%,rgba(208,172,89,.32) 23% 24%,transparent 25%),repeating-linear-gradient(45deg,#110709 0 8px,#310c13 8px 10px) !important;
}
body.v45-battle-active.v64-shocker-battle[data-v137-card-back="emerald-code"] :is(.deck-pile,.opponent-mini-card),
body[data-v137-card-back="emerald-code"] :is(.v101-card-slot.is-locked,.v122-card-back) {
    border-color:#d6bb6c !important;
    background-color:#071612 !important;
    background-image:radial-gradient(circle at center,#d6bb6c 0 3%,#225f49 4% 14%,transparent 15% 27%,rgba(214,187,108,.28) 28% 29%,transparent 30%),repeating-conic-gradient(from 45deg,#06110e 0 12deg,#194a39 12deg 24deg) !important;
}
body.v45-battle-active.v64-shocker-battle[data-v137-card-back="twin-regalia"] :is(.deck-pile,.opponent-mini-card),
body[data-v137-card-back="twin-regalia"] :is(.v101-card-slot.is-locked,.v122-card-back) {
    border-color:#f0d079 !important;
    background-color:#13090d !important;
    background-image:radial-gradient(circle at 43% 50%,rgba(53,142,106,.9) 0 8%,transparent 9%),radial-gradient(circle at 57% 50%,rgba(159,36,54,.92) 0 8%,transparent 9%),radial-gradient(circle at center,transparent 0 23%,#d7b65e 24% 25%,transparent 26%),repeating-conic-gradient(#18090d 0 10deg,#3b151b 10deg 20deg) !important;
}

@media (max-width:520px) {
    body:not([data-v137-card-back]) .v120-card-back > small { bottom:11px !important;padding:4px 3px !important; }
}


/* SOURCE styles/spade-cursor.css */
:root {
    --v152-spade-cursor-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIiByb2xlPSJpbWciIGFyaWEtbGFiZWw9IlNwYWRlIGN1cnNvciI+CiAgPHRpdGxlPlNwYWRlIGN1cnNvcjwvdGl0bGU+CiAgPGcgaWQ9InNwYWRlLXRpbHQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2IDIuMikgcm90YXRlKC0xNCkgc2NhbGUoLjg4KSB0cmFuc2xhdGUoLTE2IC0yLjIpIj4KICAgIDxwYXRoIGlkPSJzcGFkZS1vdXRsaW5lIiBkPSJNMTYgMi4yQzE0LjM1IDYuMjUgNC4xIDExLjM1IDQuMSAxOC4yYzAgMy44MyAyLjczIDYuNDUgNi4yIDYuNDUgMi4xOCAwIDMuNzctMS4wNSA0LjcyLTIuNzktLjE5IDMuNDMtMS4zOCA2LjAxLTMuODIgNy45NGg5LjZjLTIuNDQtMS45My0zLjYzLTQuNTEtMy44Mi03Ljk0Ljk1IDEuNzQgMi41NCAyLjc5IDQuNzIgMi43OSAzLjQ3IDAgNi4yLTIuNjIgNi4yLTYuNDVDMjcuOSAxMS4zNSAxNy42NSA2LjI1IDE2IDIuMloiIGZpbGw9IiMxMTEyMTYiIHN0cm9rZT0iI2ZmZjhlOCIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CiAgICA8cGF0aCBpZD0ic3BhZGUtbWFyayIgZD0iTTE2IDIuMkMxNC4zNSA2LjI1IDQuMSAxMS4zNSA0LjEgMTguMmMwIDMuODMgMi43MyA2LjQ1IDYuMiA2LjQ1IDIuMTggMCAzLjc3LTEuMDUgNC43Mi0yLjc5LS4xOSAzLjQzLTEuMzggNi4wMS0zLjgyIDcuOTRoOS42Yy0yLjQ0LTEuOTMtMy42My00LjUxLTMuODItNy45NC45NSAxLjc0IDIuNTQgMi43OSA0LjcyIDIuNzkgMy40NyAwIDYuMi0yLjYyIDYuMi02LjQ1QzI3LjkgMTEuMzUgMTcuNjUgNi4yNSAxNiAyLjJaIiBmaWxsPSIjMTExMjE2IiBzdHJva2U9IiNjYmE5NTciIHN0cm9rZS13aWR0aD0iMSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgogICAgPHBhdGggZD0iTTE2IDQuNDVjLTEuMzIgMi4yLTMuNTggNC4xLTUuNzIgNi4wMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmMmM1IiBzdHJva2Utd2lkdGg9Ii43NSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBvcGFjaXR5PSIuNzIiLz4KICA8L2c+Cjwvc3ZnPgo=");
}

/* A deliberately high-specificity scope overrides the many historical
   pointer declarations while keeping native semantic states below. */
html,
html body:not(#v152-native-cursor) {
    cursor:var(--v152-spade-cursor-image) 16 2,auto !important;
}
html body:not(#v152-native-cursor) * {
    cursor:inherit !important;
}

html body:not(#v152-native-cursor) :is(
    a[href],button:not(:disabled),summary,label[for],select:not(:disabled),
    input[type="button"]:not(:disabled),input[type="submit"]:not(:disabled),
    input[type="reset"]:not(:disabled),input[type="checkbox"]:not(:disabled),
    input[type="radio"]:not(:disabled),input[type="file"]:not(:disabled),
    [role="button"]:not([aria-disabled="true"]),[onclick],
    [tabindex]:not([tabindex="-1"]),.clickable-card
) {
    cursor:var(--v152-spade-cursor-image) 16 2,pointer !important;
}

html body:not(#v152-native-cursor) input[type="range"],
html body:not(#v152-native-cursor) input[type="range"]::-webkit-slider-thumb {
    cursor:var(--v152-spade-cursor-image) 16 2,pointer !important;
}

/* Editing remains precise: these controls keep the native I-beam. */
html body:not(#v152-native-cursor) :is(
    input[type="text"],input[type="search"],input[type="email"],
    input[type="password"],input[type="number"],input[type="tel"],
    input[type="url"],textarea,
    [contenteditable]:not([contenteditable="false"]),
    [contenteditable]:not([contenteditable="false"]) *
) { cursor:text !important; }

/* Disabled controls retain an unmistakable unavailable state. */
html body:not(#v152-native-cursor) :is(
    :disabled,[aria-disabled="true"],.is-disabled,.is-locked
) { cursor:not-allowed !important; }

html body:not(#v152-native-cursor) :is(
    body.v129-tutorial-live .card.v129-disabled,
    .v120-playing-card:disabled,.v103-nav-button:disabled,
    .v142-option-action:disabled
) { cursor:default !important; }

/* Existing drag, dismissal and asynchronous states are functional feedback. */
html body:not(#v152-native-cursor) .v56-chain-log-backdrop { cursor:zoom-out !important; }
html body:not(#v152-native-cursor) #v56-chain-log-scroll { cursor:grab !important; }
html body:not(#v152-native-cursor) #v56-chain-log-scroll.v56-dragging { cursor:grabbing !important; }
html body:not(#v152-native-cursor) #v135-trial-button[aria-busy="true"] { cursor:progress !important; }
html body:not(#v152-native-cursor) #v129-guide-action:disabled { cursor:wait !important; }
html body.v135-trial-routing:not(#v152-native-cursor),
html body.v135-trial-routing:not(#v152-native-cursor) * { cursor:wait !important; }

/* Future resizable panels can opt in without losing their directional cue. */
html body:not(#v152-native-cursor) :is(.v152-cursor-ew-resize,[data-cursor="ew-resize"],[style*="cursor:ew-resize"],[style*="cursor: ew-resize"]) { cursor:ew-resize !important; }
html body:not(#v152-native-cursor) :is(.v152-cursor-ns-resize,[data-cursor="ns-resize"],[style*="cursor:ns-resize"],[style*="cursor: ns-resize"]) { cursor:ns-resize !important; }
html body:not(#v152-native-cursor) :is(.v152-cursor-nwse-resize,[data-cursor="nwse-resize"],[style*="cursor:nwse-resize"],[style*="cursor: nwse-resize"]) { cursor:nwse-resize !important; }
html body:not(#v152-native-cursor) :is(.v152-cursor-nesw-resize,[data-cursor="nesw-resize"],[style*="cursor:nesw-resize"],[style*="cursor: nesw-resize"]) { cursor:nesw-resize !important; }
html body:not(#v152-native-cursor) :is(.v152-cursor-row-resize,[data-cursor="row-resize"],[style*="cursor:row-resize"],[style*="cursor: row-resize"]) { cursor:row-resize !important; }
html body:not(#v152-native-cursor) :is(.v152-cursor-col-resize,[data-cursor="col-resize"],[style*="cursor:col-resize"],[style*="cursor: col-resize"]) { cursor:col-resize !important; }
html body:not(#v152-native-cursor) textarea::-webkit-resizer,
html body:not(#v152-native-cursor) .opponent-chain-log::-webkit-resizer { cursor:nwse-resize !important; }

@media (forced-colors:active) {
    html,html body:not(#v152-native-cursor),html body:not(#v152-native-cursor) * { cursor:auto !important; }
    html body:not(#v152-native-cursor) :is(input,textarea,[contenteditable]:not([contenteditable="false"])) { cursor:text !important; }
    html body:not(#v152-native-cursor) :is(:disabled,[aria-disabled="true"]) { cursor:not-allowed !important; }
}


/* SOURCE styles/touch-awaken-flip.css */
#title-screen.v153-grand-assembly.v154-awaken-enabled .v153-character {
    contain:layout;
}

#title-screen.v153-grand-assembly.v154-awaken-enabled .v153-character-card {
    pointer-events:none;
    transform-origin:50% 50%;
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
    transition:translate .18s ease,border-color .24s ease,box-shadow .24s ease;
}

#title-screen.v153-grand-assembly .v154-card-toggle {
    position:absolute;
    inset:0;
    z-index:7;
    display:block;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    border:0;
    border-radius:clamp(7px,.85vw,15px);
    color:inherit;
    background:transparent !important;
    box-shadow:none !important;
    outline:0;
    opacity:1;
    pointer-events:auto;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
}

#title-screen.v153-grand-assembly .v154-card-toggle::before,
#title-screen.v153-grand-assembly .v154-card-toggle::after {
    content:none !important;
}

#title-screen.v153-grand-assembly .v153-character.v154-card-ready:hover .v153-character-card,
#title-screen.v153-grand-assembly .v153-character.v154-card-ready:focus-within .v153-character-card {
    translate:0 -4px;
    border-color:rgba(255,239,185,.98);
    box-shadow:
        0 25px 46px rgba(0,0,0,.82),
        0 0 0 1px rgba(98,24,29,.95),
        0 0 25px rgba(210,55,62,.28);
}

#title-screen.v153-grand-assembly .v154-card-toggle:focus-visible {
    outline:2px solid #fff0b0;
    outline-offset:4px;
}

#title-screen.v153-grand-assembly .v153-character.v154-awakened .v153-character-card {
    border-color:rgba(255,231,157,.98);
    box-shadow:
        0 24px 46px rgba(0,0,0,.84),
        0 0 0 1px rgba(151,28,36,.98),
        0 0 28px rgba(220,54,64,.34),
        0 0 46px rgba(226,196,112,.12);
}

#title-screen.v153-grand-assembly .v153-character.v154-loading .v153-character-card {
    border-color:rgba(255,238,178,.94);
    animation:v154DecodePulse .72s ease-in-out infinite alternate;
}

#title-screen.v153-grand-assembly .v153-character.v154-turn-out,
#title-screen.v153-grand-assembly .v153-character.v154-turn-in {
    z-index:30 !important;
}

#title-screen.v153-grand-assembly .v153-character.v154-turn-out .v153-character-card {
    will-change:transform;
    animation:v154TurnOut .22s cubic-bezier(.38,.02,.75,.42) both;
}

#title-screen.v153-grand-assembly .v153-character.v154-turn-in .v153-character-card {
    will-change:transform;
    animation:v154TurnIn .3s cubic-bezier(.18,.76,.22,1) both;
}

#title-screen.v153-grand-assembly .v153-character.v154-awaken-missing .v154-card-toggle {
    pointer-events:none;
}

#title-screen.v153-grand-assembly .v154-awaken-hint {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    margin:clamp(9px,1.3vh,14px) 0 0;
    color:#cbb477;
    font:700 clamp(7px,.68vw,9px)/1.2 "Courier New",monospace;
    letter-spacing:.2em;
    text-indent:.2em;
    text-shadow:0 2px 7px #000;
    pointer-events:none;
}

#title-screen.v153-grand-assembly .v154-awaken-hint::before,
#title-screen.v153-grand-assembly .v154-awaken-hint::after {
    content:"";
    width:clamp(18px,2.4vw,34px);
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(217,189,112,.58));
}

#title-screen.v153-grand-assembly .v154-awaken-hint::after {
    transform:scaleX(-1);
}

#title-screen.v153-grand-assembly .v154-awaken-hint + .start-movie-btn {
    margin-top:clamp(10px,1.6vh,16px) !important;
}

#title-screen.v153-grand-assembly .v154-sr-only {
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    white-space:nowrap !important;
    border:0 !important;
}

@keyframes v154DecodePulse {
    from { box-shadow:0 22px 42px rgba(0,0,0,.76),0 0 0 1px rgba(71,12,17,.95),0 0 18px rgba(216,183,96,.16); }
    to { box-shadow:0 24px 46px rgba(0,0,0,.82),0 0 0 1px rgba(138,31,38,.98),0 0 32px rgba(231,201,119,.38); }
}

@keyframes v154TurnOut {
    0% { transform:translateY(0) rotateY(0deg) scale(1); }
    32% { transform:translateY(-6px) rotateY(22deg) scale(1.018); }
    100% { transform:translateY(-7px) rotateY(90deg) scale(.97); }
}

@keyframes v154TurnIn {
    0% { transform:translateY(-7px) rotateY(-90deg) scale(.97); }
    68% { transform:translateY(-5px) rotateY(8deg) scale(1.012); }
    100% { transform:translateY(0) rotateY(0deg) scale(1); }
}

@media (max-width:820px) and (orientation:portrait) {
    #title-screen.v153-grand-assembly .v154-card-toggle { border-radius:7px; }
    #title-screen.v153-grand-assembly .v154-awaken-hint { margin-top:9px;font-size:6px;letter-spacing:.13em;text-indent:.13em;gap:5px; }
    #title-screen.v153-grand-assembly .v154-awaken-hint + .start-movie-btn { margin-top:9px !important; }
}

@media (max-height:560px) and (orientation:landscape) {
    #title-screen.v153-grand-assembly .v154-card-toggle { border-radius:4px; }
    #title-screen.v153-grand-assembly .v154-awaken-hint { margin-top:5px;font-size:6px;letter-spacing:.1em;text-indent:.1em; }
    #title-screen.v153-grand-assembly .v154-awaken-hint + .start-movie-btn { margin-top:7px !important; }
}

@media (max-height:390px) and (orientation:landscape) {
    #title-screen.v153-grand-assembly .v154-awaken-hint { display:none; }
    #title-screen.v153-grand-assembly .v153-logo-jp + .start-movie-btn { margin-top:7px !important; }
}

@media (prefers-reduced-motion:reduce) {
    #title-screen.v153-grand-assembly .v153-character.v154-loading .v153-character-card,
    #title-screen.v153-grand-assembly .v153-character.v154-turn-out .v153-character-card,
    #title-screen.v153-grand-assembly .v153-character.v154-turn-in .v153-character-card {
        animation:none !important;
        transform:none !important;
    }
    #title-screen.v153-grand-assembly .v153-character-card { translate:none !important; }
}

@media (forced-colors:active) {
    #title-screen.v153-grand-assembly .v154-card-toggle:focus-visible {
        outline:3px solid Highlight !important;
    }
    #title-screen.v153-grand-assembly .v153-character.v154-awakened .v153-character-card,
    #title-screen.v153-grand-assembly .v153-character.v154-loading .v153-character-card {
        border:2px solid CanvasText !important;
        box-shadow:none !important;
    }
    #title-screen.v153-grand-assembly .v154-awaken-hint {
        color:CanvasText !important;
        text-shadow:none !important;
    }
}


/* SOURCE styles/prebattle-joker-fix.css */
:root {
    --v156-gold:#d8bb69;
    --v156-pale:#f5e8bd;
    --v156-ink:#07090a;
    --v156-wine:#7d1420;
    --v156-emerald:#23483e;
}

/* FREE / RANKED are the only player-facing battle modes. */
#v99-mode-overlay.show.v156-single-route .v99-mode-panel { opacity:0 !important; visibility:hidden !important; pointer-events:none !important; }
#v99-mode-overlay:not(.show).v156-single-route { display:none !important;pointer-events:none !important; }
#v99-mode-overlay [data-v99-mode="dual"],
#v99-selection-progress,
.v99-sub-character,
#v99-ability-slot-badge { display:none !important; visibility:hidden !important; pointer-events:none !important; }
#character-select-screen.v99-dual-selection { --v156-single-only:1; }
#character-grid .character-card.v99-main-locked::after { content:none !important; display:none !important; }

/* The retired formation screen remains as a private compatibility bridge for
   the tutorial and rare-skin trial route. The player only sees this short seal. */
#v99-mode-overlay.show.v156-single-route {
    display:grid !important;
    place-items:center;
    pointer-events:auto !important;
    background:
        radial-gradient(circle at 50% 47%,rgba(216,187,105,.13),transparent 17%),
        radial-gradient(ellipse at center,rgba(96,13,21,.28),transparent 45%),
        linear-gradient(112deg,#020404 0 49.75%,#170709 50.25% 100%) !important;
}
#v99-mode-overlay.show.v156-single-route::after {
    content:"IMPERIAL DUEL REGISTRY\A決闘者を登録中";
    position:absolute;
    left:50%;
    top:50%;
    z-index:4;
    width:min(72vw,430px);
    padding:26px 22px 23px;
    border:1px solid rgba(216,187,105,.5);
    outline:1px solid rgba(125,20,32,.55);
    outline-offset:7px;
    transform:translate(-50%,-50%);
    color:var(--v156-pale);
    text-align:center;
    white-space:pre;
    font:700 10px/2.6 "Courier New",monospace;
    letter-spacing:.32em;
    text-shadow:0 2px 4px #000,0 0 18px rgba(216,187,105,.35);
    background:
        linear-gradient(90deg,transparent,rgba(216,187,105,.7),transparent) center 14px/72% 1px no-repeat,
        linear-gradient(90deg,transparent,rgba(216,187,105,.38),transparent) center calc(100% - 14px)/72% 1px no-repeat,
        rgba(3,5,5,.76);
    box-shadow:0 24px 70px rgba(0,0,0,.72),inset 0 0 34px rgba(125,20,32,.18);
    animation:v156RegistrySeal .42s ease-out both;
}
.v156-route-status {
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    margin:-1px !important;
    padding:0 !important;
    overflow:hidden !important;
    clip:rect(0 0 0 0) !important;
    clip-path:inset(50%) !important;
    white-space:nowrap !important;
}

/* Two physical Joker cards for queue selection. */
#v106-match-mode-modal .v106-mode-panel { width:min(940px,96vw) !important; }
#v106-match-mode-modal .v106-rank-kicker { color:#bba05a !important; }
#v106-match-mode-modal .v106-rank-heading { letter-spacing:.16em !important; }
#v106-match-mode-modal .v106-mode-choice-grid { gap:clamp(20px,5vw,64px) !important; }
#v106-match-mode-modal .v156-free-joker {
    --joker-main:#183d35;
    --joker-deep:#061512;
    --joker-metal:#a88942;
    --joker-paper:#f3e6c2;
    --joker-jewel:#347d69;
}
#v106-match-mode-modal .v156-ranked-joker {
    --joker-main:#811722;
    --joker-deep:#25060a;
    --joker-metal:#b58b3c;
    --joker-paper:#f4e2bc;
    --joker-jewel:#c22b3c;
}
#v106-match-mode-modal .v156-joker-card {
    width:clamp(158px,24vw,230px) !important;
    height:clamp(232px,35vw,338px) !important;
    border-radius:15px !important;
}
#v106-match-mode-modal .v156-joker-card .v120-card-face {
    border-radius:15px;
    border-color:rgba(147,117,48,.92);
    box-shadow:
        0 24px 52px rgba(0,0,0,.82),
        0 0 0 1px rgba(0,0,0,.55),
        inset 0 0 0 5px #eadbb5,
        inset 0 0 0 7px #7b612c;
}
#v106-match-mode-modal .v156-joker-card .v120-card-front {
    isolation:isolate;
    justify-content:flex-start;
    gap:0;
    padding:23px 22px 19px;
    overflow:hidden;
    background:
        radial-gradient(circle at 50% 37%,rgba(37,72,62,.17),transparent 29%),
        repeating-linear-gradient(135deg,rgba(43,34,18,.026) 0 1px,transparent 1px 5px),
        linear-gradient(145deg,#f4ecd7,#d9c9a6 68%,#c8b58b);
    color:#17221f;
}
#v106-match-mode-modal #v106-select-ranked-match .v120-card-front {
    background:
        radial-gradient(circle at 50% 37%,rgba(125,20,32,.22),transparent 31%),
        repeating-linear-gradient(45deg,rgba(103,21,29,.035) 0 1px,transparent 1px 5px),
        linear-gradient(145deg,#f5ead0,#dcc69c 68%,#c5aa73);
    color:#791621;
}
#v106-match-mode-modal .v156-joker-card .v120-card-front::before {
    inset:10px;
    z-index:-1;
    border:1px solid color-mix(in srgb,currentColor 62%,#99763b);
    border-radius:9px;
    box-shadow:inset 0 0 0 3px rgba(255,255,255,.18),inset 0 0 22px rgba(0,0,0,.06);
}
#v106-match-mode-modal .v156-joker-card .v120-card-front::after {
    content:attr(data-v156-decree);
    left:50%;
    bottom:12px;
    z-index:2;
    color:color-mix(in srgb,currentColor 72%,#735c32);
    font-size:6px;
    letter-spacing:.24em;
}
.v156-joker-corner {
    position:absolute;
    left:16px;
    top:16px;
    z-index:4;
    display:grid;
    justify-items:center;
    color:currentColor;
    font:900 8px/1 "Courier New",monospace;
    letter-spacing:-.06em;
}
.v156-joker-corner i { margin-top:3px;font:normal 14px/1 Georgia,serif; }
.v156-joker-corner.bottom { left:auto;top:auto;right:16px;bottom:16px;transform:rotate(180deg); }
.v156-joker-crest {
    position:relative;
    z-index:1;
    display:grid;
    place-items:center;
    width:min(76%,158px);
    aspect-ratio:180/216;
    margin:-1px auto -7px;
    color:currentColor;
    filter:drop-shadow(0 7px 9px rgba(0,0,0,.18));
}
.v156-joker-crest::before,
.v156-joker-crest::after {
    content:"";
    position:absolute;
    left:50%;
    width:74%;
    height:1px;
    transform:translateX(-50%);
    background:linear-gradient(90deg,transparent,currentColor,transparent);
    opacity:.58;
}
.v156-joker-crest::before { top:8%; }
.v156-joker-crest::after { bottom:9%; }
.v156-imperial-joker-svg { width:100%;height:100%;overflow:visible;transition:transform .24s ease,filter .24s ease; }
.v156-joker-arch-fill { fill:var(--joker-main);opacity:.07; }
.v156-joker-ornament,
.v156-joker-ray,
.v156-joker-sword,
.v156-joker-sword-guard,
.v156-joker-face-line,
.v156-joker-mantle-line,
.v156-joker-filigree {
    fill:none;
    stroke:var(--joker-main);
    stroke-linecap:round;
    stroke-linejoin:round;
}
.v156-joker-ornament { stroke-width:1.8;opacity:.78; }
.v156-joker-ray { stroke-width:1.5;opacity:.29; }
.v156-joker-sword { stroke-width:2;opacity:.42; }
.v156-joker-sword-guard { stroke-width:2.5;opacity:.56; }
.v156-joker-face-line,
.v156-joker-mantle-line { stroke-width:1.8;opacity:.63; }
.v156-joker-filigree { stroke-width:2;opacity:.56; }
.v156-joker-cap-shadow,
.v156-joker-mantle { fill:var(--joker-deep); }
.v156-joker-cap { fill:var(--joker-main);stroke:var(--joker-metal);stroke-width:1.6; }
.v156-joker-cap-center { fill:var(--joker-deep);stroke:var(--joker-metal);stroke-width:1.6; }
.v156-joker-bell { fill:var(--joker-metal);stroke:var(--joker-deep);stroke-width:1.5; }
.v156-joker-face { fill:var(--joker-paper);stroke:var(--joker-main);stroke-width:2.5; }
.v156-joker-face-shadow { fill:var(--joker-main);opacity:.13; }
.v156-joker-mask { fill:var(--joker-main);stroke:var(--joker-metal);stroke-width:1.4; }
.v156-joker-eye { fill:var(--joker-jewel); }
.v156-joker-ruff { fill:var(--joker-paper);stroke:var(--joker-main);stroke-width:2.3; }
.v156-joker-seal-ring { fill:var(--joker-paper);stroke:var(--joker-metal);stroke-width:3; }
.v156-joker-seal-open { stroke-dasharray:76 15;stroke-dashoffset:9; }
.v156-joker-seal-mark { fill:var(--joker-main); }
.v156-ranked-joker .v156-joker-seal-ring { fill:var(--joker-main);filter:drop-shadow(0 0 4px rgba(126,20,32,.3)); }
.v156-ranked-joker .v156-joker-seal-mark { fill:var(--joker-paper); }
.v156-joker-word {
    position:absolute;
    left:-4px;
    top:50%;
    transform:translateY(-50%);
    color:currentColor;
    font:900 clamp(7px,.75vw,10px)/1 "Courier New",monospace;
    letter-spacing:.18em;
    writing-mode:vertical-rl;
    opacity:.72;
}
.v156-joker-card .v106-mode-choice-kicker {
    margin-top:3px !important;
    color:color-mix(in srgb,currentColor 76%,#705b30) !important;
    font-size:7px !important;
    letter-spacing:.25em !important;
}
.v156-joker-card .v106-mode-choice-title {
    margin:6px 0 4px !important;
    color:#24170c !important;
    font-size:clamp(16px,2.2vw,21px) !important;
}
.v156-joker-card .v106-mode-choice-copy {
    min-height:2.8em;
    color:#5b4d35 !important;
    font-size:8px !important;
    line-height:1.5 !important;
}
.v156-joker-card .v106-mode-choice-meta {
    margin-top:8px !important;
    padding:6px 8px !important;
    color:#735f34 !important;
    font-size:6px !important;
}
.v156-joker-card:hover:not(:disabled) .v156-joker-crest,
.v156-joker-card:focus-visible .v156-joker-crest { filter:drop-shadow(0 8px 9px rgba(0,0,0,.2)) drop-shadow(0 0 7px color-mix(in srgb,currentColor 28%,transparent)); }
.v156-joker-card:hover:not(:disabled) .v156-imperial-joker-svg,
.v156-joker-card:focus-visible .v156-imperial-joker-svg { transform:translateY(-2px); }

/* Character portraits fill the illustration row with the face and upper body. */
#v106-match-mode-modal .v156-joker-card .v120-card-front {
    display:grid !important;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:minmax(0,1fr) auto auto auto auto;
    justify-items:center;
    align-content:stretch;
}
#v106-match-mode-modal .v156-joker-card .v156-joker-crest.v194-mode-character-crest {
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    margin:0 auto;
    padding-bottom:3px;
    box-sizing:border-box;
    aspect-ratio:auto;
    filter:none;
    pointer-events:none;
    overflow:hidden;
}
.v194-mode-character-crest::before,
.v194-mode-character-crest::after { content:none; }
.v194-mode-character {
    display:block;
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    object-fit:cover;
    object-position:center 27%;
    filter:
        drop-shadow(1px 0 0 #fff3d8)
        drop-shadow(-1px 0 0 #fff3d8)
        drop-shadow(0 1px 0 #fff3d8)
        drop-shadow(0 -1px 0 #fff3d8)
        drop-shadow(0 2px 3px rgba(54,32,14,.42));
    transition:transform 100ms ease-out;
    user-select:none;
    -webkit-user-drag:none;
}
.v156-ranked-joker .v194-mode-character { object-position:center 35%; }
@media (max-width:420px), (max-height:500px) and (orientation:landscape) {
    .v194-mode-character { object-position:center 34%; }
}
.v156-joker-card:hover:not(:disabled) .v194-mode-character,
.v156-joker-card:focus-visible .v194-mode-character { transform:translateY(-2px); }

/* Rulebook replacement for the retired dual-character chapter. */
#v103-rulebook .v103-visual.v156-rulebook-joker-visual #v103-rulebook-image { display:none !important; }
.v156-rulebook-jokers[hidden] { display:none !important; }
.v156-rulebook-jokers {
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:clamp(14px,3vw,34px);
    padding:clamp(18px,4vw,48px);
    background:radial-gradient(circle at center,rgba(145,25,34,.2),transparent 42%),linear-gradient(135deg,#030606,#17090a);
}
.v156-guide-joker {
    position:relative;
    width:min(34%,150px);
    aspect-ratio:49/73;
    display:grid;
    place-items:center;
    border:1px solid #b79243;
    border-radius:10px;
    color:#213e36;
    background:linear-gradient(145deg,#f1e8d2,#cdbb93);
    box-shadow:0 17px 35px rgba(0,0,0,.66),inset 0 0 0 5px #e9d8ae,inset 0 0 0 6px #82672f;
    transform:rotate(-4deg);
}
.v156-guide-joker:last-child { color:#7d1420;transform:rotate(4deg); }
.v156-guide-joker b { font:900 clamp(22px,4vw,43px)/1 Georgia,serif; }
.v156-guide-joker small { position:absolute;bottom:11%;font:800 7px/1.2 "Courier New",monospace;letter-spacing:.16em; }
.v156-guide-rule { display:grid;gap:8px; }

/* Close the mathematically visible gap while preserving the diagonal split. */
@media (min-width:701px) {
    #v61-character-clash .v61-fighter-player { clip-path:polygon(0 0,100% 0,83.4% 100%,0 100%) !important; }
    #v61-character-clash .v61-fighter-enemy { clip-path:polygon(16.6% 0,100% 0,100% 100%,0 100%) !important; }
    #v61-character-clash .v156-clash-divider { clip-path:polygon(54.72% 0,55.08% 0,45.28% 100%,44.92% 100%); }
}
@media (max-width:700px) {
    #v61-character-clash .v61-fighter-player { clip-path:polygon(0 0,100% 0,82.7% 100%,0 100%) !important; }
    #v61-character-clash .v61-fighter-enemy { clip-path:polygon(17.3% 0,100% 0,100% 100%,0 100%) !important; }
    #v61-character-clash .v156-clash-divider { clip-path:polygon(55.65% 0,56.08% 0,44.35% 100%,43.92% 100%); }
}
#v61-character-clash .v156-clash-divider {
    position:absolute;
    inset:0;
    z-index:7;
    pointer-events:none;
    opacity:0;
    background:linear-gradient(180deg,transparent 0,#9e7b35 7%,#f1d786 28%,#fff0b0 50%,#d4ad50 72%,#76531c 93%,transparent 100%);
    filter:drop-shadow(0 0 2px #000) drop-shadow(0 0 7px rgba(216,187,105,.46));
}
#v61-character-clash.show .v61-fighter-player {
    animation:v156PlayerCollisionAligned 4.05s cubic-bezier(.18,.78,.18,1) both !important;
}
#v61-character-clash.show .v61-fighter-enemy {
    animation:v156EnemyCollisionAligned 4.05s cubic-bezier(.18,.78,.18,1) both !important;
}
#v61-character-clash.show .v156-clash-divider { animation:v156DividerIn .55s .58s ease-out both; }

@keyframes v156RegistrySeal {
    from { opacity:0;transform:translate(-50%,-50%) scale(.96);filter:blur(5px); }
    to { opacity:1;transform:translate(-50%,-50%) scale(1);filter:none; }
}
@keyframes v156DividerIn {
    0% { opacity:0;filter:blur(5px) drop-shadow(0 0 12px rgba(255,235,170,.75)); }
    45% { opacity:.9;filter:blur(0) drop-shadow(0 0 9px rgba(255,235,170,.68)); }
    100% { opacity:.58;filter:drop-shadow(0 0 2px #000) drop-shadow(0 0 6px rgba(216,187,105,.38)); }
}
@keyframes v156PlayerCollisionAligned {
    0%,7% { opacity:0;transform:translate3d(-112%,0,0);filter:blur(13px) brightness(.5); }
    25% { opacity:1;transform:translate3d(-4%,0,0);filter:blur(0) brightness(.9); }
    29% { transform:translate3d(2.5%,0,0) scale(1.025);filter:brightness(1.35); }
    34%,87% { opacity:1;transform:translate3d(0,0,0);filter:brightness(.9); }
    100% { opacity:0;transform:translate3d(-9%,0,0) scale(1.04);filter:blur(4px) brightness(.55); }
}
@keyframes v156EnemyCollisionAligned {
    0%,7% { opacity:0;transform:translate3d(112%,0,0);filter:blur(13px) brightness(.5); }
    25% { opacity:1;transform:translate3d(4%,0,0);filter:blur(0) brightness(.9); }
    29% { transform:translate3d(-2.5%,0,0) scale(1.025);filter:brightness(1.35); }
    34%,87% { opacity:1;transform:translate3d(0,0,0);filter:brightness(.9); }
    100% { opacity:0;transform:translate3d(9%,0,0) scale(1.04);filter:blur(4px) brightness(.55); }
}

@media (max-width:520px) {
    #v106-match-mode-modal .v106-mode-choice-grid { gap:10px !important; }
    #v106-match-mode-modal .v156-joker-card { width:min(43vw,172px) !important;height:min(63vw,252px) !important; }
    #v106-match-mode-modal .v156-joker-card .v120-card-front { padding:18px 14px 15px; }
    .v156-joker-corner { left:12px;top:12px;font-size:6px; }
    .v156-joker-corner.bottom { left:auto;top:auto;right:12px;bottom:12px; }
    .v156-joker-corner i { font-size:11px; }
    .v156-joker-crest { width:70%;margin-top:0; }
    .v156-joker-ornament,.v156-joker-filigree { stroke-width:2.2; }
    .v156-joker-card .v106-mode-choice-title { font-size:14px !important;margin-top:3px !important; }
    .v156-joker-card .v106-mode-choice-copy { font-size:6.5px !important; }
    .v156-joker-card .v106-mode-choice-meta { margin-top:5px !important;font-size:5.5px !important; }
}
@media (max-height:500px) and (orientation:landscape) {
    #v106-match-mode-modal .v106-mode-header { padding-bottom:5px !important; }
    #v106-match-mode-modal .v106-rank-subheading { margin-bottom:4px !important; }
    #v106-match-mode-modal .v156-joker-card { width:128px !important;height:188px !important; }
    #v106-match-mode-modal .v156-joker-card .v120-card-front { padding:15px 12px 12px; }
    .v156-joker-crest { width:61%;margin-top:-5px; }
    .v156-joker-card .v106-mode-choice-copy { display:none !important; }
    .v156-joker-card .v106-mode-choice-meta { margin-top:3px !important;padding:4px !important; }
}
@media (prefers-reduced-motion:reduce) {
    #v99-mode-overlay.show.v156-single-route::after,
    #v61-character-clash.show .v156-clash-divider { animation:none !important;opacity:.58;filter:none; }
    .v156-joker-crest,.v156-imperial-joker-svg,.v194-mode-character { transition:none !important;transform:none !important; }
}
@media (forced-colors:active) {
    #v106-match-mode-modal .v156-joker-card .v120-card-face { border:2px solid CanvasText !important;box-shadow:none !important; }
    #v106-match-mode-modal .v156-joker-card .v120-card-front { color:CanvasText !important;background:Canvas !important; }
    #v61-character-clash .v156-clash-divider { background:CanvasText;filter:none; }
}


/* SOURCE styles/fast-hover-unified-cardback.css */
:root {
    --v157-hover-in:75ms;
    --v157-hover-out:120ms;
    --v157-joker-hover:110ms;
    --v157-joker-flip:520ms;
    --v157-card-back-image:var(--v151-default-card-back);
    --v157-card-back-color:#bd0711;
    --v157-card-back-border:#d8b85f;
    --v157-card-back-ink:#fff1c5;
    --v157-card-back-kind:default;
    --v157-card-back-surface:#bd0711 var(--v151-default-card-back) 50% 50% / 100% 100% no-repeat border-box border-box;
}

body[data-v137-card-back="discarded-decree"] {
    --v157-card-back-kind:discarded-decree;
    --v157-card-back-image:
        linear-gradient(154deg,transparent 42%,rgba(226,198,122,.24) 43% 44%,transparent 45%),
        radial-gradient(circle at 50% 49%,#8e2133 0 7%,#d0ac59 8% 9%,transparent 10% 22%,rgba(208,172,89,.32) 23% 24%,transparent 25%),
        repeating-linear-gradient(45deg,#110709 0 8px,#310c13 8px 10px);
    --v157-card-back-color:#17070a;
    --v157-card-back-border:#c8aa60;
    --v157-card-back-surface:
        linear-gradient(154deg,transparent 42%,rgba(226,198,122,.24) 43% 44%,transparent 45%) 50% 50% / 100% 100% no-repeat border-box border-box,
        radial-gradient(circle at 50% 49%,#8e2133 0 7%,#d0ac59 8% 9%,transparent 10% 22%,rgba(208,172,89,.32) 23% 24%,transparent 25%) 50% 50% / 100% 100% no-repeat border-box border-box,
        #17070a repeating-linear-gradient(45deg,#110709 0 8px,#310c13 8px 10px) 50% 50% / 100% 100% no-repeat border-box border-box;
}
body[data-v137-card-back="emerald-code"] {
    --v157-card-back-kind:emerald-code;
    --v157-card-back-image:
        radial-gradient(circle at center,#d6bb6c 0 3%,#225f49 4% 14%,transparent 15% 27%,rgba(214,187,108,.28) 28% 29%,transparent 30%),
        repeating-conic-gradient(from 45deg,#06110e 0 12deg,#194a39 12deg 24deg);
    --v157-card-back-color:#071612;
    --v157-card-back-border:#d6bb6c;
    --v157-card-back-surface:
        radial-gradient(circle at center,#d6bb6c 0 3%,#225f49 4% 14%,transparent 15% 27%,rgba(214,187,108,.28) 28% 29%,transparent 30%) 50% 50% / 100% 100% no-repeat border-box border-box,
        #071612 repeating-conic-gradient(from 45deg,#06110e 0 12deg,#194a39 12deg 24deg) 50% 50% / 100% 100% no-repeat border-box border-box;
}
body[data-v137-card-back="twin-regalia"] {
    --v157-card-back-kind:twin-regalia;
    --v157-card-back-image:
        radial-gradient(circle at 43% 50%,rgba(53,142,106,.9) 0 8%,transparent 9%),
        radial-gradient(circle at 57% 50%,rgba(159,36,54,.92) 0 8%,transparent 9%),
        radial-gradient(circle at center,transparent 0 23%,#d7b65e 24% 25%,transparent 26%),
        repeating-conic-gradient(#18090d 0 10deg,#3b151b 10deg 20deg);
    --v157-card-back-color:#13090d;
    --v157-card-back-border:#f0d079;
    --v157-card-back-surface:
        radial-gradient(circle at 43% 50%,rgba(53,142,106,.9) 0 8%,transparent 9%) 50% 50% / 100% 100% no-repeat border-box border-box,
        radial-gradient(circle at 57% 50%,rgba(159,36,54,.92) 0 8%,transparent 9%) 50% 50% / 100% 100% no-repeat border-box border-box,
        radial-gradient(circle at center,transparent 0 23%,#d7b65e 24% 25%,transparent 26%) 50% 50% / 100% 100% no-repeat border-box border-box,
        #13090d repeating-conic-gradient(#18090d 0 10deg,#3b151b 10deg 20deg) 50% 50% / 100% 100% no-repeat border-box border-box;
}


body :is(
    #player-field > .card.card-back:not(.inspection-inspected-card),
    #opponent-field > .card.card-back:not(.inspection-inspected-card),
    #hand-zone > .card.card-back:not(.inspection-inspected-card),
    #v68-motion-layer .card.card-back:not(.inspection-inspected-card),
    .attack-motion-layer .card.card-back:not(.inspection-inspected-card),
    .card.card-back:not(.inspection-inspected-card),
    #player-deck-pile,
    #opp-deck-pile,
    #opponent-hand-cards > .opponent-mini-card:not(.monty-revealed-card),
    .opponent-mini-card:not(.monty-revealed-card),
    #toss-o-card.card-back,
    #toss-p-card.card-back,
    #v106-match-mode-modal .v120-card-back,
    #v99-mode-overlay .v120-card-back,
    #v101-character-encyclopedia .v101-card-slot.is-locked,
    #v122-onboarding .v122-card-back
) {
    --v157-card-back-contract:unified-v157;
    border-color:var(--v157-card-back-border) !important;
    background-color:var(--v157-card-back-color) !important;
    background-image:var(--v157-card-back-image) !important;
    background-position:50% 50% !important;
    background-repeat:no-repeat !important;
    background-size:100% 100% !important;
    background-origin:border-box !important;
    background-clip:border-box !important;
    background-attachment:scroll !important;
    background-blend-mode:normal !important;
}


#player-field > .card.card-back:not(.inspection-inspected-card) {
    isolation:isolate;
    color:var(--v157-card-back-ink) !important;
    font-weight:900 !important;
    text-shadow:0 2px 3px #210003,0 0 6px #000,0 0 11px #000 !important;
}
#player-field > .card.card-back:not(.inspection-inspected-card)::before {
    content:"";
    position:absolute;
    left:16%;
    right:16%;
    top:50%;
    z-index:-1;
    height:34%;
    border:1px solid rgba(255,239,190,.68);
    border-radius:4px;
    transform:translateY(-50%);
    background:rgba(72,0,7,.78);
    box-shadow:0 2px 7px rgba(0,0,0,.58),inset 0 0 10px rgba(255,222,137,.08);
    pointer-events:none;
}


body .opponent-mini-card.monty-revealed-card:not(#v157-hidden-card) {
    border-color:#777 !important;
    color:#18130a !important;
    background:#eee6d3 linear-gradient(145deg,#fffdf5,#ddd1b8) 50% 50% / 100% 100% no-repeat border-box !important;
    background-color:#eee6d3 !important;
    background-image:linear-gradient(145deg,#fffdf5,#ddd1b8) !important;
    background-position:50% 50% !important;
    background-repeat:no-repeat !important;
    background-size:100% 100% !important;
    background-origin:border-box !important;
    background-clip:border-box !important;
    text-shadow:none !important;
}
body :is(
    #opponent-field > .card.card-back.inspection-inspected-card,
    #v68-motion-layer .card.card-back.inspection-inspected-card,
    .card.card-back.inspection-inspected-card
) {
    color:#18130a !important;
    border-color:#63baff !important;
    background-color:#d6e8f6 !important;
    background-image:
        linear-gradient(rgba(255,255,255,.86),rgba(214,232,246,.9)),
        repeating-linear-gradient(135deg,#295f85 0 8px,#17364d 8px 16px) !important;
    background-position:50% 50% !important;
    background-repeat:no-repeat !important;
    background-size:100% 100% !important;
    box-shadow:0 0 0 2px rgba(58,167,255,.22),0 0 14px rgba(58,167,255,.38) !important;
}
body :is(
    #opponent-field > .card.card-back.inspection-inspected-card,
    #v68-motion-layer .card.card-back.inspection-inspected-card,
    .card.card-back.inspection-inspected-card
)::after {
    content:"確認中";
    position:absolute;
    right:2px;
    bottom:2px;
    padding:1px 3px;
    border-radius:3px;
    color:#eaf7ff;
    background:rgba(12,66,102,.82);
    font-size:8px;
    line-height:1.2;
    pointer-events:none;
}


body .toss-card-visual.card-back::before,
body .toss-card-visual.card-back::after,
body :is(#toss-o-card.card-back,#toss-p-card.card-back)::before,
body :is(#toss-o-card.card-back,#toss-p-card.card-back)::after,
body #v101-character-encyclopedia .v101-card-slot.is-locked::before,
body #v101-character-encyclopedia .v101-card-slot.is-locked::after,
body .v101-card-slot.is-locked::before,
body .v101-card-slot.is-locked::after,
body :is(#v106-match-mode-modal,#v99-mode-overlay) .v120-card-back::before,
body :is(#v106-match-mode-modal,#v99-mode-overlay) .v120-card-back::after,
body :is(#v106-match-mode-modal,#v99-mode-overlay) .v120-card-back > b,
body .v120-card-back::before,
body .v120-card-back::after,
body .v120-card-back > b {
    content:none !important;
    display:none !important;
}
body :is(#v106-match-mode-modal,#v99-mode-overlay) .v120-card-back > small {
    position:absolute !important;
    right:12% !important;
    bottom:15px !important;
    left:12% !important;
    z-index:2 !important;
    padding:5px 4px !important;
    border:1px solid rgba(255,245,226,.74) !important;
    border-radius:3px !important;
    color:#fff8e8 !important;
    background:rgba(91,0,8,.82) !important;
    box-shadow:0 2px 8px rgba(0,0,0,.55) !important;
    text-shadow:0 1px 2px #000 !important;
}


#v106-match-mode-modal:not([hidden]) #v106-select-free-match.v156-joker-card:not(.v120-selected):not(.v120-dismissed) .v120-card-inner {
    animation:v120DealLeft .42s cubic-bezier(.16,.82,.18,1) backwards !important;
}
#v106-match-mode-modal:not([hidden]) #v106-select-ranked-match.v156-joker-card:not(.v120-selected):not(.v120-dismissed) .v120-card-inner {
    animation:v120DealRight .42s .04s cubic-bezier(.16,.82,.18,1) backwards !important;
}
#v106-match-mode-modal :is(.v156-joker-card,.v187-room-card):not(.v120-selected):not(.v120-dismissed) .v120-card-inner {
    transition:transform 110ms cubic-bezier(.2,.78,.2,1),filter 90ms ease-out !important;
    transition-delay:0s !important;
}
#v106-match-mode-modal :is(.v156-joker-card,.v187-room-card).v120-selected .v120-card-inner {
    transition:transform 520ms cubic-bezier(.17,.78,.16,1.06),filter 160ms ease !important;
    transition-delay:0s !important;
}
#v106-match-mode-modal :is(.v156-joker-card,.v187-room-card) .v120-card-front {
    transition:border-color 80ms ease-out,box-shadow 100ms ease-out !important;
}
#v106-match-mode-modal :is(.v156-joker-card,.v187-room-card):hover:not(:disabled) .v120-card-front,
#v106-match-mode-modal :is(.v156-joker-card,.v187-room-card):focus-visible .v120-card-front {
    border-color:#f0d27b !important;
    box-shadow:0 24px 52px rgba(0,0,0,.82),0 0 0 1px rgba(0,0,0,.55),0 0 22px rgba(216,187,105,.24),inset 0 0 0 5px #eadbb5,inset 0 0 0 7px #7b612c !important;
}
#v106-match-mode-modal .v156-imperial-joker-svg {
    transition:transform 100ms ease-out !important;
}


body.v45-battle-active :is(#hand-zone,#player-field,#opponent-field) > .card {
    transition:transform 120ms cubic-bezier(.2,.78,.2,1),filter 100ms ease-out,box-shadow 120ms ease-out,opacity 180ms ease !important;
    transition-delay:0s !important;
}
#title-screen.v153-grand-assembly.v154-awaken-enabled .v153-character-card {
    transition:translate 100ms ease-out,border-color 120ms ease-out,box-shadow 120ms ease-out !important;
    transition-delay:0s !important;
}
button.v101-card-slot {
    transition:transform 110ms ease-out,border-color 110ms ease-out,box-shadow 110ms ease-out !important;
    transition-delay:0s !important;
}
@media (hover:hover) and (pointer:fine) {
    body.v45-battle-active :is(#hand-zone,#player-field,#opponent-field) > .card:hover:not(.selected-card) {
        transform:perspective(700px) translateY(-7px) rotateX(1.5deg) rotateZ(-.6deg) scale(1.045) !important;
        filter:brightness(1.08) saturate(1.05) !important;
        transition-duration:75ms,60ms,75ms,180ms !important;
        transition-delay:0s !important;
        will-change:transform;
    }
}

@media (max-width:520px) {
    body :is(#v106-match-mode-modal,#v99-mode-overlay) .v120-card-back > small { bottom:11px !important;padding:4px 3px !important; }
}
@media (prefers-reduced-motion:reduce) {
    #v106-match-mode-modal:not([hidden]) :is(.v156-joker-card,.v187-room-card) .v120-card-inner {
        animation:none !important;
        transition:none !important;
    }
    body.v45-battle-active :is(#hand-zone,#player-field,#opponent-field) > .card,
    #title-screen.v153-grand-assembly.v154-awaken-enabled .v153-character-card,
    button.v101-card-slot,
    #v106-match-mode-modal .v156-imperial-joker-svg {
        transition:none !important;
    }
}


/* SOURCE styles/prestige-profile.css */
/*
 * V158 / IMPERIAL HONOURS ARCHIVE
 * v105 の保存スキーマと frameId は変更せず、表示層だけを豪華に再構成する。
 */
#v105-profile-editor .v105-profile-panel {
    background:
        linear-gradient(135deg, transparent 0 49.75%, rgba(217,183,102,.055) 49.9% 50.1%, transparent 50.25%),
        radial-gradient(circle at 79% 15%, rgba(133,27,43,.19), transparent 34%),
        radial-gradient(circle at 14% 78%, rgba(27,88,83,.12), transparent 35%),
        linear-gradient(142deg, #211713, #08090a 54%, #071113) !important;
}
#v105-profile-editor .v105-profile-panel-header::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 62px;
    bottom: -1px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #d9b766 15%, rgba(217,183,102,.18) 68%, transparent);
}
#v105-profile-editor .v105-profile-panel-kicker {
    color: #d0b56f;
    text-shadow: 0 0 12px rgba(217,183,102,.22);
}
#v105-profile-editor .v105-profile-panel-body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

/* ---------- 称号記録 ---------- */
.v158-title-archive {
    position: relative;
    margin-top: 10px;
    padding: 9px;
    overflow: hidden;
    border: 1px solid rgba(217,183,102,.19);
    background:
        radial-gradient(circle at 92% 0, rgba(145,30,47,.16), transparent 37%),
        linear-gradient(135deg, rgba(28,21,17,.92), rgba(3,5,6,.78));
    box-shadow: inset 0 0 0 1px rgba(255,239,184,.025), inset 0 -20px 45px rgba(0,0,0,.24);
}
.v158-title-archive::before,
.v158-title-archive::after {
    content: "";
    position: absolute;
    pointer-events: none;
}
.v158-title-archive::before {
    inset: 4px;
    border: 1px solid rgba(217,183,102,.08);
}
.v158-title-archive::after {
    top: 0;
    right: 13px;
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d9b766, transparent);
    box-shadow: 0 0 9px rgba(217,183,102,.45);
}
.v158-title-archive-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 9px;
    margin-bottom: 7px;
}
.v158-title-archive-head .v105-section-label { color: #ccb06c; }
.v158-title-archive-head small {
    color: #766d5c;
    font: 700 6px/1 "Courier New", monospace;
    letter-spacing: .16em;
    white-space: nowrap;
}
.v158-title-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}
.v158-title-chip {
    position: relative;
    min-width: 0;
    min-height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 6px 8px 6px 12px;
    overflow: hidden;
    border: 1px solid rgba(217,183,102,.16);
    color: #b7aa89;
    background:
        linear-gradient(90deg, rgba(128,23,38,.08), transparent 48%),
        rgba(2,4,5,.68);
    font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease;
}
.v158-title-chip::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(#5f151f, #d1ac59 50%, #315f50);
    opacity: .5;
}
.v158-title-chip::after {
    content: "";
    position: absolute;
    right: -13px;
    bottom: -17px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(217,183,102,.08);
    transform: rotate(45deg);
}
.v158-title-chip strong {
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: .035em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v158-title-chip small {
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    color: #655f53;
    font: 800 5.5px/1 "Courier New", monospace;
    letter-spacing: .12em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v158-title-chip:hover,
.v158-title-chip:focus-visible {
    border-color: rgba(236,204,119,.66);
    color: #f0dfb0;
    background: linear-gradient(100deg, rgba(132,24,40,.2), rgba(7,10,10,.92));
    outline: none;
    transform: translateY(-1px);
}
.v158-title-chip.is-selected {
    border-color: #d9b766;
    color: #fff0bd;
    background:
        radial-gradient(circle at 86% 15%, rgba(217,183,102,.13), transparent 34%),
        linear-gradient(105deg, rgba(116,18,32,.36), rgba(6,9,9,.96) 66%);
    box-shadow: 0 0 12px rgba(217,183,102,.15), inset 0 0 0 1px rgba(255,236,174,.045);
}
.v158-title-chip.is-selected::before { opacity: 1; box-shadow: 0 0 6px rgba(217,183,102,.42); }
.v158-title-chip.is-selected small { color: #aa9561; }

/* ---------- 高級プロフィール縁カタログ ---------- */
#v105-frame-grid .v105-frame-choice {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--v105-frame-main) 13%, transparent), transparent 33%),
        linear-gradient(118deg, color-mix(in srgb, var(--v105-frame-main) 8%, #080909), #050707 72%) !important;
}
#v105-frame-grid .v105-frame-choice::before {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: -1;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--v105-frame-main) 13%, transparent);
}
#v105-frame-grid .v105-frame-choice::after {
    content: "";
    position: absolute;
    right: -14px;
    top: -20px;
    z-index: -1;
    width: 42px;
    height: 58px;
    pointer-events: none;
    border-left: 1px solid color-mix(in srgb, var(--v105-frame-main) 17%, transparent);
    transform: rotate(29deg);
}
#v105-frame-grid .v105-frame-choice.is-selected::before {
    border-color: color-mix(in srgb, var(--v105-frame-light) 35%, transparent);
    box-shadow: inset 0 0 10px color-mix(in srgb, var(--v105-frame-main) 9%, transparent);
}
.v158-frame-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.v158-frame-copy strong,
.v158-frame-copy small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.v158-frame-copy strong {
    color: inherit;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .035em;
}
.v158-frame-copy small {
    color: color-mix(in srgb, var(--v105-frame-main) 68%, #777062);
    font: 700 5px/1 "Courier New", monospace;
    letter-spacing: .09em;
}
#v105-frame-grid .v105-frame-swatch {
    position: relative;
    overflow: visible;
    color: #080909;
    font-family: Georgia, serif;
    text-shadow: 0 1px rgba(255,255,255,.18);
}
#v105-frame-grid .v105-frame-swatch::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid color-mix(in srgb, var(--v105-frame-dark) 75%, transparent);
    clip-path: inherit;
}
#v105-frame-grid .v105-frame-swatch::after {
    content: "";
    position: absolute;
    inset: -3px;
    border: 1px solid color-mix(in srgb, var(--v105-frame-light) 20%, transparent);
    clip-path: inherit;
}

.v158-vault-button {
    position: relative;
    width: 100%;
    min-height: 36px;
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 6px 10px 6px 7px;
    overflow: hidden;
    border: 1px solid rgba(217,183,102,.25);
    color: #cfc09b;
    background:
        radial-gradient(circle at 88% 40%, rgba(57,130,98,.14), transparent 27%),
        linear-gradient(105deg, rgba(113,20,33,.2), rgba(4,7,8,.92) 54%);
    font-family: Georgia, "Yu Mincho", serif;
    text-align: left;
    cursor: pointer;
}
.v158-vault-button::before {
    content: "♠";
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(217,183,102,.44);
    color: #d9b766;
    background: #080a0a;
    font: 900 14px/1 Georgia, serif;
    transform: rotate(-4deg);
    box-shadow: inset 0 0 0 2px #080a0a, inset 0 0 0 3px rgba(217,183,102,.13);
}
.v158-vault-button > span:first-of-type {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.v158-vault-button strong { font-size: 8px; letter-spacing: .08em; }
.v158-vault-button small {
    color: #7c725d;
    font: 800 5.5px/1 "Courier New", monospace;
    letter-spacing: .14em;
}
.v158-vault-button > span:last-child {
    color: #ae9457;
    font: 800 7px/1 "Courier New", monospace;
    letter-spacing: .08em;
}
.v158-vault-button:hover,
.v158-vault-button:focus-visible {
    border-color: #e1c16b;
    color: #fff0c0;
    background: linear-gradient(105deg, rgba(128,22,39,.34), rgba(7,12,12,.96) 58%);
    box-shadow: 0 0 12px rgba(217,183,102,.14);
    outline: none;
}

/* ---------- 縁の立体オーナメント ---------- */
#v105-home-profile-button,
#v105-profile-preview {
    --v158-crest: "♛";
    --v158-ornament-alpha: .78;
}
[data-v105-frame="imperial"] { --v158-crest:"♛"; --v158-ornament-alpha:.88; }
[data-v105-frame="crimson"]  { --v158-crest:"♦"; --v158-ornament-alpha:.82; }
[data-v105-frame="sapphire"] { --v158-crest:"♠"; --v158-ornament-alpha:.84; }
[data-v105-frame="silver"]   { --v158-crest:"♣"; --v158-ornament-alpha:.76; }
[data-v105-frame="emerald"]  { --v158-crest:"❖"; --v158-ornament-alpha:.82; }
[data-v105-frame="obsidian"] { --v158-crest:"♜"; --v158-ornament-alpha:.9; }

.v158-profile-ornament {
    position: absolute;
    inset: 4px;
    z-index: 4;
    display: block;
    pointer-events: none;
    opacity: var(--v158-ornament-alpha);
    filter: drop-shadow(0 0 4px var(--v105-frame-glow));
}
.v158-profile-ornament::before,
.v158-profile-ornament::after {
    content: "";
    position: absolute;
    pointer-events: none;
}
.v158-profile-ornament::before {
    inset: 2px;
    border: 1px solid color-mix(in srgb, var(--v105-frame-light) 34%, transparent);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.v158-profile-ornament::after {
    left: 18%;
    right: 18%;
    top: 0;
    bottom: 0;
    border-top: 1px solid color-mix(in srgb, var(--v105-frame-main) 44%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--v105-frame-main) 44%, transparent);
}
.v158-ornament-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    display: block;
    color: var(--v105-frame-light);
}
.v158-ornament-corner::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--v105-frame-light);
    transform: rotate(45deg);
    box-shadow: 0 0 5px var(--v105-frame-glow);
}
.v158-ornament-corner.nw { left:0;top:0;border-left:2px solid var(--v105-frame-main);border-top:2px solid var(--v105-frame-main); }
.v158-ornament-corner.ne { right:0;top:0;border-right:2px solid var(--v105-frame-main);border-top:2px solid var(--v105-frame-main); }
.v158-ornament-corner.sw { left:0;bottom:0;border-left:2px solid var(--v105-frame-main);border-bottom:2px solid var(--v105-frame-main); }
.v158-ornament-corner.se { right:0;bottom:0;border-right:2px solid var(--v105-frame-main);border-bottom:2px solid var(--v105-frame-main); }
.v158-ornament-corner.nw::after { left:-3px;top:-3px; }
.v158-ornament-corner.ne::after { right:-3px;top:-3px; }
.v158-ornament-corner.sw::after { left:-3px;bottom:-3px; }
.v158-ornament-corner.se::after { right:-3px;bottom:-3px; }
.v158-ornament-crest {
    position: absolute;
    left: 50%;
    top: -2px;
    width: 42px;
    height: 23px;
    display: grid;
    place-items: center;
    color: var(--v105-frame-light);
    background:
        linear-gradient(135deg, transparent 0 16%, color-mix(in srgb, var(--v105-frame-dark) 88%, #080909) 17% 83%, transparent 84%),
        transparent;
    transform: translateX(-50%);
}
.v158-ornament-crest::before,
.v158-ornament-crest::after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.v158-ornament-crest::before {
    content: "";
    inset: 2px 4px;
    border-top: 1px solid var(--v105-frame-main);
    border-bottom: 1px solid color-mix(in srgb, var(--v105-frame-main) 42%, transparent);
    clip-path: polygon(12% 0,88% 0,100% 50%,88% 100%,12% 100%,0 50%);
}
.v158-ornament-crest::after {
    content: var(--v158-crest);
    top: 4px;
    font: 900 12px/1 Georgia, serif;
    text-shadow: 0 0 7px var(--v105-frame-glow), 0 1px #000;
}
#v105-profile-preview .v158-profile-ornament { inset: 6px; }
#v105-profile-preview .v158-ornament-corner { width: 34px; height: 34px; }
#v105-profile-preview .v158-ornament-crest { width: 58px; height: 28px; }
#v105-profile-preview .v158-ornament-crest::after { top: 5px; font-size: 15px; }
#v105-home-profile-button .v158-profile-ornament { inset: 3px; opacity: .64; }
#v105-home-profile-button .v158-ornament-corner { width: 14px; height: 14px; }
#v105-home-profile-button .v158-ornament-corner::after { width:3px;height:3px; }
#v105-home-profile-button .v158-ornament-crest { left:auto;right:15px;top:-1px;width:24px;height:14px;transform:none; }
#v105-home-profile-button .v158-ornament-crest::after { top:2px;font-size:8px; }

/* シーズン装具が優先装着されている場合も、装具に合う紋章へ切り替える。 */
body[data-v137-profile-frame="jade-order"] #v105-home-profile-button,
body[data-v137-profile-frame="jade-order"] #v105-profile-preview { --v158-crest:"❖"; --v158-ornament-alpha:.84; }
body[data-v137-profile-frame="ruby-command"] #v105-home-profile-button,
body[data-v137-profile-frame="ruby-command"] #v105-profile-preview { --v158-crest:"♦"; --v158-ornament-alpha:.86; }
body[data-v137-profile-frame="black-seal-crown"] #v105-home-profile-button,
body[data-v137-profile-frame="black-seal-crown"] #v105-profile-preview { --v158-crest:"♛"; --v158-ornament-alpha:.94; }

@media (max-width: 700px) {
    .v158-title-archive { margin-top:7px;padding:6px; }
    .v158-title-archive-head { margin-bottom:5px; }
    .v158-title-archive-head small { display:none; }
    .v158-title-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:3px; }
    .v158-title-chip { min-height:29px;padding:4px 5px 4px 9px;gap:1px; }
    .v158-title-chip strong { font-size:6px; }
    .v158-title-chip small { font-size:4.5px;letter-spacing:.06em; }
    .v158-frame-copy small { display:none; }
    .v158-frame-copy strong { font-size:5.5px; }
    .v158-vault-button { min-height:29px;grid-template-columns:21px minmax(0,1fr);gap:5px;padding:3px 5px; }
    .v158-vault-button::before { width:19px;height:19px;font-size:10px; }
    .v158-vault-button small,
    .v158-vault-button > span:last-child { display:none; }
    #v105-profile-preview .v158-ornament-crest { width:34px;height:20px; }
    #v105-profile-preview .v158-ornament-crest::after { top:3px;font-size:10px; }
    #v105-profile-preview .v158-ornament-corner { width:20px;height:20px; }
}
@media (max-height: 480px) and (min-width: 701px) {
    .v158-title-archive { margin-top:4px;padding:4px 5px; }
    .v158-title-archive-head { margin-bottom:3px; }
    .v158-title-grid { grid-template-columns:repeat(6,minmax(0,1fr));gap:3px; }
    .v158-title-chip { min-height:23px;padding:3px 3px 3px 7px; }
    .v158-title-chip strong { font-size:5.5px; }
    .v158-title-chip small,
    .v158-frame-copy small { display:none; }
    .v158-frame-copy strong { font-size:5.5px; }
    .v158-vault-button { min-height:23px;margin-top:3px;padding:2px 5px;grid-template-columns:18px minmax(0,1fr); }
    .v158-vault-button::before { width:16px;height:16px;font-size:8px; }
    .v158-vault-button small,
    .v158-vault-button > span:last-child { display:none; }
}
@media (prefers-reduced-motion: reduce) {
    .v158-title-chip { transition:none; }
}


/* SOURCE styles/imperial-court-home.css */

#home-screen.v62-shocker-home.v158-imperial-court {
    --v158-court-gold:#e0bf69;
    --v158-court-gold-pale:#fff0b5;
    --v158-court-wine:#78131f;
    --v158-court-teal:#0b4650;
    background:
        radial-gradient(ellipse at 74% 31%,rgba(20,112,123,.27),transparent 31%),
        radial-gradient(ellipse at 29% 36%,rgba(145,24,39,.28),transparent 35%),
        linear-gradient(116deg,#020304 0 45.5%,#18070b 45.7% 62%,#031519 62.2% 100%) !important;
}


#home-screen.v62-shocker-home.v158-imperial-court::before {
    content:"" !important;
    display:block !important;
    position:fixed !important;
    inset:-18% !important;
    z-index:0 !important;
    opacity:.34 !important;
    pointer-events:none !important;
    background:
        repeating-linear-gradient(118deg,transparent 0 94px,rgba(224,191,105,.035) 95px,transparent 96px 184px),
        repeating-linear-gradient(0deg,transparent 0 5px,rgba(255,255,255,.018) 6px),
        radial-gradient(ellipse at 50% 42%,rgba(224,191,105,.08),transparent 45%) !important;
    box-shadow:none !important;
    animation:v158-court-wall-drift 24s ease-in-out infinite alternate !important;
}
#home-screen.v62-shocker-home.v158-imperial-court::after {
    content:"\2660   \2665   \2666   \2663" !important;
    display:block !important;
    position:fixed !important;
    left:50% !important;
    top:52% !important;
    right:auto !important;
    bottom:auto !important;
    width:auto !important;
    height:auto !important;
    z-index:0 !important;
    transform:translate(-50%,-50%) rotate(-7deg) !important;
    border:0 !important;
    clip-path:none !important;
    opacity:.034 !important;
    color:#fff7d6 !important;
    background:none !important;
    font:900 clamp(78px,17vw,250px)/1 Georgia,serif !important;
    letter-spacing:.18em !important;
    white-space:nowrap !important;
    pointer-events:none !important;
}

#home-screen.v62-shocker-home.v158-imperial-court .home-hero {
    background:
        linear-gradient(104deg,rgba(2,3,5,.985) 0 39%,rgba(22,7,11,.90) 56%,rgba(3,24,29,.75) 100%),
        radial-gradient(circle at 77% 32%,rgba(55,160,172,.25),transparent 33%),
        radial-gradient(circle at 58% 72%,rgba(166,30,48,.25),transparent 38%) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255,240,184,.05),
        inset 0 0 88px rgba(0,0,0,.74),
        0 20px 48px rgba(0,0,0,.52) !important;
}
#home-screen.v62-shocker-home.v158-imperial-court .home-hero::before {
    content:"IMPERIAL\A GRAND TABLE" !important;
    white-space:pre;
    right:-1% !important;
    top:7% !important;
    color:rgba(255,239,195,.046) !important;
    font-size:clamp(58px,9.5vw,146px) !important;
    line-height:.76 !important;
    letter-spacing:-.055em !important;
}
#home-screen.v62-shocker-home.v158-imperial-court .home-hero::after {
    border-color:rgba(224,191,105,.21) !important;
    box-shadow:inset 0 0 22px rgba(224,191,105,.025);
}
#home-screen.v62-shocker-home.v158-imperial-court .v62-home-showcase {
    display:none !important;
}

.v158-home-court {
    position:absolute;
    inset:1.5% -1.5% -1% 44%;
    z-index:4;
    overflow:hidden;
    pointer-events:none;
    isolation:isolate;
}
.v158-home-court::before {
    content:"";
    position:absolute;
    left:5%;
    right:-4%;
    bottom:-3%;
    height:42%;
    z-index:0;
    border-radius:50%;
    background:
        radial-gradient(ellipse at center,rgba(255,226,142,.20),rgba(117,22,35,.12) 37%,transparent 68%);
    filter:blur(10px);
}
.v158-home-court::after {
    content:"";
    position:absolute;
    z-index:8;
    inset:0;
    background:
        linear-gradient(90deg,rgba(3,4,6,.94),transparent 12% 88%,rgba(2,5,7,.35)),
        linear-gradient(0deg,rgba(2,3,5,.82),transparent 20% 86%,rgba(3,4,6,.18));
    pointer-events:none;
}
.v158-court-atmosphere,
.v158-court-split,
.v158-court-seal,
.v158-court-floor {
    position:absolute;
    pointer-events:none;
}
.v158-court-atmosphere {
    inset:0;
    z-index:0;
    overflow:hidden;
}
.v158-court-atmosphere::before,
.v158-court-atmosphere::after {
    content:"";
    position:absolute;
    top:-20%;
    bottom:-12%;
    width:34%;
    opacity:.24;
    filter:blur(.2px);
}
.v158-court-atmosphere::before {
    left:13%;
    transform:skewX(-18deg);
    background:linear-gradient(90deg,transparent,rgba(159,28,45,.55),transparent);
}
.v158-court-atmosphere::after {
    right:3%;
    transform:skewX(15deg);
    background:linear-gradient(90deg,transparent,rgba(47,142,154,.48),transparent);
}
.v158-court-split {
    z-index:1;
    left:51%;
    top:-15%;
    width:1px;
    height:132%;
    transform:rotate(11deg);
    transform-origin:center;
    background:linear-gradient(transparent,rgba(255,231,161,.28) 18% 78%,transparent);
    box-shadow:0 0 18px rgba(224,191,105,.18);
}
.v158-court-seal {
    z-index:1;
    left:54%;
    top:41%;
    width:clamp(90px,15vw,220px);
    aspect-ratio:1;
    translate:-50% -50%;
    border:1px solid rgba(224,191,105,.13);
    border-radius:50%;
    opacity:.58;
    box-shadow:inset 0 0 0 7px rgba(224,191,105,.025),inset 0 0 0 8px rgba(224,191,105,.09);
}
.v158-court-seal::before,
.v158-court-seal::after {
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    translate:-50% -50%;
    rotate:45deg;
    border:1px solid rgba(224,191,105,.18);
}
.v158-court-seal::before { width:58%;height:58%; }
.v158-court-seal::after { width:24%;height:24%;background:rgba(224,191,105,.05); }
.v158-court-floor {
    z-index:1;
    left:2%;
    right:0;
    bottom:4%;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(224,191,105,.62),transparent);
    box-shadow:0 0 16px rgba(224,191,105,.32);
}

.v158-court-figure {
    --v158-x:0;
    --v158-r:0deg;
    --v158-scale:1;
    --v158-accent:#e0bf69;
    position:absolute;
    z-index:var(--v158-z,3);
    bottom:2.5%;
    width:34%;
    height:87%;
    margin:0;
    transform:translateX(var(--v158-x)) rotate(var(--v158-r)) scale(var(--v158-scale));
    transform-origin:50% 100%;
    filter:drop-shadow(0 19px 17px rgba(0,0,0,.86));
    animation:v158-court-arrive .72s cubic-bezier(.16,.84,.24,1) both;
    animation-delay:var(--v158-delay,0s);
    pointer-events:none;
}
.v158-court-card {
    position:absolute;
    inset:0;
    overflow:hidden;
    border:1px solid color-mix(in srgb,var(--v158-accent) 70%,#e0bf69);
    border-radius:clamp(7px,1vw,13px);
    background:#070809;
    box-shadow:
        inset 0 0 0 3px rgba(4,5,6,.94),
        inset 0 0 0 4px rgba(255,235,170,.20),
        0 0 28px color-mix(in srgb,var(--v158-accent) 18%,transparent);
    animation:v158-court-breathe 8s ease-in-out infinite;
    animation-delay:var(--v158-float-delay,0s);
}
.v158-court-card::before {
    content:"";
    position:absolute;
    z-index:2;
    inset:5px;
    border:1px solid rgba(255,239,192,.16);
    border-radius:calc(clamp(7px,1vw,13px) - 3px);
    pointer-events:none;
}
.v158-court-card::after {
    content:"";
    position:absolute;
    z-index:3;
    top:-34%;
    left:-72%;
    width:34%;
    height:168%;
    transform:rotate(18deg);
    background:linear-gradient(90deg,transparent,rgba(255,247,211,.18),transparent);
    animation:v158-court-glint 9s ease-in-out infinite;
    animation-delay:var(--v158-glint-delay,0s);
}
.v158-court-figure img {
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:50% 20%;
    user-select:none;
    -webkit-user-drag:none;
    pointer-events:none;
    background:#08090a;
}
.v158-court-figure figcaption {
    position:absolute;
    z-index:5;
    left:50%;
    bottom:5.2%;
    translate:-50% 0;
    max-width:88%;
    padding:5px 10px 5px 11px;
    overflow:hidden;
    border-left:2px solid var(--v158-accent);
    color:#f2e4bd;
    background:linear-gradient(90deg,rgba(2,3,4,.92),rgba(3,4,5,.55));
    font:700 clamp(6px,.63vw,9px)/1.1 Georgia,"Yu Mincho",serif;
    letter-spacing:.08em;
    text-overflow:ellipsis;
    text-shadow:0 2px 4px #000;
    white-space:nowrap;
}
.v158-court-figure.is-leonard {
    left:2%;
    --v158-z:3;
    --v158-r:-7deg;
    --v158-scale:.90;
    --v158-accent:#bc3042;
    --v158-delay:.07s;
    --v158-float-delay:-1.2s;
    --v158-glint-delay:3.8s;
    filter:brightness(.84) saturate(.88) drop-shadow(0 19px 17px rgba(0,0,0,.86));
}
.v158-court-figure.is-riana {
    left:31%;
    bottom:0;
    height:96%;
    --v158-z:6;
    --v158-r:-.5deg;
    --v158-scale:1.04;
    --v158-accent:#e0bf69;
    --v158-delay:.16s;
    --v158-float-delay:-3.4s;
    --v158-glint-delay:1.2s;
}
.v158-court-figure.is-ordivo {
    left:59%;
    bottom:26%;
    width:27%;
    height:70%;
    --v158-z:2;
    --v158-r:5deg;
    --v158-scale:.86;
    --v158-accent:#4c91d4;
    --v158-delay:0s;
    --v158-float-delay:-6.2s;
    --v158-glint-delay:6.7s;
    opacity:.66;
    filter:brightness(.59) saturate(.72) drop-shadow(0 15px 15px rgba(0,0,0,.9));
}
.v158-court-figure.is-ordivo figcaption { display:none; }
.v158-court-figure.is-missing { display:none; }

#home-screen.v62-shocker-home.v158-imperial-court .home-hero-copy {
    z-index:12 !important;
    width:46% !important;
}
#home-screen.v62-shocker-home.v158-imperial-court .home-season {
    border-left-color:#c02639 !important;
    color:#dfc678 !important;
    box-shadow:inset 0 -1px rgba(224,191,105,.12);
}
#home-screen.v62-shocker-home.v158-imperial-court .home-hero-title {
    color:#fff2c5 !important;
    text-shadow:0 5px 0 #000,0 12px 34px rgba(0,0,0,.94),0 0 28px rgba(224,191,105,.13) !important;
}
#home-screen.v62-shocker-home.v158-imperial-court .home-hero-title em {
    color:var(--v158-court-gold) !important;
}
#home-screen.v62-shocker-home.v158-imperial-court .v62-mechanic {
    border-color:rgba(224,191,105,.34);
    background:linear-gradient(105deg,rgba(9,9,10,.86),rgba(61,17,24,.52));
    box-shadow:inset 2px 0 rgba(145,25,40,.5);
}
#home-screen.v62-shocker-home.v158-imperial-court .home-notice {
    border-color:rgba(224,191,105,.43) !important;
    background:
        linear-gradient(90deg,rgba(123,18,32,.21),transparent 42%),
        linear-gradient(125deg,rgba(36,11,16,.93),rgba(4,8,9,.95)) !important;
    box-shadow:inset 0 0 0 1px rgba(255,241,191,.025),0 9px 20px rgba(0,0,0,.25);
}
#home-screen.v62-shocker-home.v158-imperial-court .home-menu-btn {
    border-color:rgba(224,191,105,.34) !important;
    background:
        linear-gradient(105deg,rgba(137,24,39,.08),transparent 38%),
        linear-gradient(115deg,rgba(30,27,22,.97),rgba(3,7,8,.99)) !important;
    box-shadow:inset 0 1px rgba(255,244,202,.055),inset 3px 0 rgba(224,191,105,.055),0 9px 21px rgba(0,0,0,.35) !important;
}
#home-screen.v62-shocker-home.v158-imperial-court .home-menu-btn:hover,
#home-screen.v62-shocker-home.v158-imperial-court .home-menu-btn:focus-visible {
    border-color:rgba(255,229,156,.82) !important;
    box-shadow:inset 3px 0 rgba(224,191,105,.42),0 10px 24px rgba(0,0,0,.48),0 0 18px rgba(224,191,105,.08) !important;
}
#home-screen.v62-shocker-home.v158-imperial-court .home-menu-btn.primary {
    background:
        radial-gradient(circle at 88% 18%,rgba(41,123,132,.18),transparent 36%),
        linear-gradient(105deg,rgba(124,18,34,.98),rgba(45,8,15,.98) 54%,rgba(4,19,23,.98)) !important;
    box-shadow:inset 0 1px rgba(255,242,197,.16),inset 4px 0 #d9b766,0 12px 28px rgba(0,0,0,.52),0 0 26px rgba(151,24,42,.18) !important;
}

@keyframes v158-court-arrive {
    from { opacity:0;translate:0 7%; }
    to { opacity:1;translate:0 0; }
}
@keyframes v158-court-breathe {
    0%,100% { translate:0 0; }
    50% { translate:0 -1.15%; }
}
@keyframes v158-court-glint {
    0%,62% { left:-72%;opacity:0; }
    70% { opacity:.75; }
    83%,100% { left:142%;opacity:0; }
}
@keyframes v158-court-wall-drift {
    from { transform:translate3d(-1.2%,0,0) scale(1.01); }
    to { transform:translate3d(1.2%,0,0) scale(1.035); }
}

@media (max-width:900px) {
    .v158-home-court { inset:1% -2% -1% 43%; }
    .v158-court-figure { width:35%; }
    .v158-court-figure.is-riana { left:29%; }
    .v158-court-figure.is-ordivo { left:58%; }
    #home-screen.v62-shocker-home.v158-imperial-court .home-hero-copy { width:48% !important; }
}

@media (max-width:700px) {
    .v158-home-court { inset:0 -4% -2% 46%; }
    .v158-court-figure { width:39%;height:91%; }
    .v158-court-figure.is-leonard { left:-5%;--v158-scale:.86;opacity:.78; }
    .v158-court-figure.is-riana { left:27%;height:98%;--v158-scale:1; }
    .v158-court-figure.is-ordivo { left:60%;bottom:29%;width:31%;height:66%;opacity:.48; }
    .v158-court-figure figcaption { display:none; }
    .v158-court-seal { left:53%;width:120px; }
    #home-screen.v62-shocker-home.v158-imperial-court .home-hero-copy { width:56% !important; }
    #home-screen.v62-shocker-home.v158-imperial-court .home-hero-title { font-size:clamp(25px,8vw,37px) !important; }
}

@media (max-width:480px) {
    .v158-home-court { left:49%; }
    .v158-court-figure.is-ordivo { display:none; }
    .v158-court-figure.is-leonard { left:-11%; }
    .v158-court-figure.is-riana { left:23%;width:44%; }
    #home-screen.v62-shocker-home.v158-imperial-court .home-hero-copy { width:59% !important; }
}

@media (max-height:650px) and (min-width:701px) {
    .v158-home-court { inset:0 -1% -3% 46%; }
    .v158-court-figure figcaption { display:none; }
    .v158-court-figure.is-ordivo { opacity:.42; }
    #home-screen.v62-shocker-home.v158-imperial-court .home-hero-copy { width:49% !important; }
}

@media (max-height:560px) and (orientation:landscape) {
    .v158-home-court { left:49%; }
    .v158-court-figure.is-ordivo { display:none; }
    .v158-court-figure.is-leonard { left:-5%; }
    .v158-court-figure.is-riana { left:27%; }
    .v158-court-seal { width:92px; }
    #home-screen.v62-shocker-home.v158-imperial-court .home-hero-copy { width:54% !important; }
}

@media (prefers-reduced-motion:reduce) {
    #home-screen.v62-shocker-home.v158-imperial-court::before,
    .v158-court-figure,
    .v158-court-card,
    .v158-court-card::after {
        animation:none !important;
    }
    .v158-court-figure { opacity:1;translate:0 0; }
    .v158-court-card::after { display:none; }
}

@media (forced-colors:active) {
    .v158-home-court { opacity:.72; }
    .v158-court-card { border:2px solid CanvasText;box-shadow:none; }
}


#home-screen.v190-home-carousel .v158-home-court {
    container-type:size;
}
#home-screen.v190-home-carousel .v158-court-figure.is-carousel {
    left:50%;
    right:auto;
    top:48%;
    bottom:auto;
    width:48%;
    width:min(48cqw, calc(88cqh * 925 / 1281));
    height:auto;
    aspect-ratio:925 / 1281;
    opacity:0;
    translate:none;
    visibility:hidden;
    transform:translate3d(150%,-43%,0) rotate(12deg) scale(.72);
    transform-origin:50% 50%;
    filter:drop-shadow(0 12px 14px rgba(0,0,0,.75));
    animation:none;
    transition:transform .4s cubic-bezier(.22,.8,.3,1), opacity .25s ease;
}
#home-screen.v190-home-carousel .v158-court-figure.is-carousel.is-missing { display:none; }
#home-screen.v190-home-carousel .v158-court-figure[data-carousel-slot="center"] {
    transform:translate3d(-50%,-50%,0);opacity:1;visibility:visible;z-index:6;
}
#home-screen.v190-home-carousel .v158-court-figure[data-carousel-slot="left"] {
    transform:translate3d(-150%,-45%,0) rotate(-7deg) scale(.83);opacity:.76;visibility:visible;z-index:3;
}
#home-screen.v190-home-carousel .v158-court-figure[data-carousel-slot="right"] {
    transform:translate3d(50%,-45%,0) rotate(7deg) scale(.83);opacity:.76;visibility:visible;z-index:3;
}
#home-screen.v190-home-carousel .v158-court-figure[data-carousel-slot="enter"] {
    transform:translate3d(150%,-43%,0) rotate(12deg) scale(.72);visibility:visible;z-index:2;
}
#home-screen.v190-home-carousel .v158-court-figure[data-carousel-slot="exit"] {
    transform:translate3d(-250%,-43%,0) rotate(-12deg) scale(.72);visibility:visible;z-index:2;
}
#home-screen.v190-home-carousel .v158-court-figure .v190-card-toggle {
    display:block;
    width:100%;height:100%;
    padding:0;margin:0;
    border:0;
    overflow:visible;
    background:transparent;
    box-shadow:none;
    color:inherit;
    font:inherit;
    cursor:pointer;
    touch-action:manipulation;
    pointer-events:none;
    perspective:900px;
    animation:none;
    -webkit-tap-highlight-color:transparent;
}
#home-screen.v190-home-carousel .v158-court-figure[aria-hidden="false"] .v190-card-toggle {
    pointer-events:auto;
}
#home-screen.v190-home-carousel .v190-card-toggle::before,
#home-screen.v190-home-carousel .v190-card-toggle::after {
    content:none;animation:none;
}
#home-screen.v190-home-carousel .v190-card-toggle:focus-visible {
    outline:3px solid #fff1b7;
    outline-offset:4px;
}
#home-screen.v190-home-carousel .v190-card-faces {
    position:absolute;inset:0;
    border-radius:inherit;
    transform-style:preserve-3d;
    transition:transform .52s cubic-bezier(.2,.75,.25,1);
}
#home-screen.v190-home-carousel .v190-card-toggle.is-awaken .v190-card-faces {
    transform:rotateY(180deg);
}
#home-screen.v190-home-carousel .v190-card-face {
    position:absolute;inset:0;
    display:block;
    box-sizing:border-box;
    overflow:hidden;
    border:1px solid color-mix(in srgb,var(--v158-accent) 70%,#e0bf69);
    border-radius:inherit;
    background:#070809;
    box-shadow:inset 0 0 0 3px rgba(4,5,6,.9), 0 0 20px color-mix(in srgb,var(--v158-accent) 18%,transparent);
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
}
#home-screen.v190-home-carousel .v190-card-face.is-awaken {
    transform:rotateY(180deg);
    border-color:#f5e3a0;
    box-shadow:0 0 24px color-mix(in srgb,var(--v158-accent) 45%,transparent), inset 0 0 0 2px rgba(255,239,192,.22);
}
#home-screen.v190-home-carousel .v158-court-figure img {
    object-fit:contain;object-position:center;
}
#home-screen.v190-home-carousel .v158-court-figure figcaption { pointer-events:none; }
#home-screen.v190-home-carousel .v190-court-hint {
    position:absolute;z-index:9;
    left:50%;bottom:2%;translate:-50% 0;
    padding:3px 8px;
    border-radius:20px;
    color:#e6d8ac;background:rgba(3,4,6,.72);
    font:600 clamp(8px,.7vw,11px)/1.4 "Yu Gothic",sans-serif;
    white-space:nowrap;
    pointer-events:none;
}
#home-screen.v190-home-carousel .v190-court-live {
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;
}
@media (prefers-reduced-motion:reduce) {
    #home-screen.v190-home-carousel .v158-court-figure,
    #home-screen.v190-home-carousel .v190-card-faces { transition:none; }
}


/* SOURCE styles/imperial-war-ledger-pass.css */

#v137-battle-pass.v158-pass-luxury {
    --v158-ink:#050607;
    --v158-wine:#5f0d19;
    --v158-ruby:#a4263b;
    --v158-gold:#d8b962;
    --v158-gold-light:#fff0b0;
    --v158-jade:#3c8067;
    --v158-paper:#e8dab3;
}
#v137-battle-pass.v158-pass-luxury .v137-pass-shell {
    isolation:isolate;
    border:1px solid rgba(223,190,102,.5);
    background:
        linear-gradient(90deg,rgba(216,185,98,.11) 1px,transparent 1px) 0 0/74px 100%,
        linear-gradient(180deg,rgba(216,185,98,.05) 1px,transparent 1px) 0 0/100% 42px,
        radial-gradient(circle at 50% -18%,rgba(119,18,32,.3),transparent 48%),
        #040607;
    box-shadow:
        inset 0 0 0 4px #050707,
        inset 0 0 0 5px rgba(216,185,98,.16),
        0 34px 100px rgba(0,0,0,.86);
}
#v137-battle-pass.v158-pass-luxury .v137-pass-header {
    position:relative;
    min-height:66px;
    overflow:hidden;
    border-bottom-color:rgba(225,192,104,.48);
    background:
        linear-gradient(114deg,rgba(113,16,31,.48),transparent 31%),
        repeating-linear-gradient(135deg,transparent 0 16px,rgba(216,185,98,.025) 17px 18px),
        linear-gradient(90deg,#09090a,#030506 65%,#11100d);
}
#v137-battle-pass.v158-pass-luxury .v137-pass-header::before {
    content:"";
    position:absolute;
    inset:7px 7px 7px 43%;
    border-top:1px solid rgba(216,185,98,.18);
    border-bottom:1px solid rgba(216,185,98,.09);
    transform:skewX(-23deg);
    pointer-events:none;
}
#v137-battle-pass.v158-pass-luxury .v137-pass-header::after {
    content:"I";
    position:absolute;
    left:50%;
    top:50%;
    width:29px;
    height:38px;
    display:grid;
    place-items:center;
    border:1px solid rgba(216,185,98,.42);
    color:rgba(255,235,171,.58);
    background:#12080a;
    font:700 17px/1 Georgia,serif;
    transform:translate(-50%,-50%) rotate(45deg);
    box-shadow:inset 0 0 0 3px #080808,0 0 15px rgba(121,21,35,.34);
    pointer-events:none;
}
#v137-battle-pass.v158-pass-luxury .v137-pass-header::after { text-indent:-1px; }
#v137-battle-pass.v158-pass-luxury .v137-brand-kicker {
    color:#bca35f;
    letter-spacing:.22em;
}
#v137-battle-pass.v158-pass-luxury .v137-seal-wallet {
    position:relative;
    border-color:rgba(225,192,104,.55);
    background:linear-gradient(135deg,rgba(106,16,29,.27),rgba(0,0,0,.74));
    box-shadow:inset 0 0 0 2px rgba(0,0,0,.65),inset 0 0 18px rgba(216,185,98,.05);
}
#v137-battle-pass.v158-pass-luxury .v137-icon-button {
    border-radius:2px;
    box-shadow:inset 0 0 0 2px #030404;
}


#v137-battle-pass.v158-pass-luxury .v137-pass-hero {
    min-height:clamp(196px,26dvh,266px);
    grid-template-columns:minmax(270px,.91fr) minmax(300px,.55fr);
    isolation:isolate;
    border-bottom-color:rgba(225,192,104,.38);
    background:
        linear-gradient(92deg,rgba(3,5,6,.98) 0 25%,rgba(18,8,10,.7) 43%,rgba(4,9,9,.96) 100%),
        radial-gradient(ellipse at 51% 47%,rgba(145,27,43,.34),transparent 34%),
        repeating-linear-gradient(116deg,transparent 0 27px,rgba(216,185,98,.025) 28px 29px),
        #050707;
}
#v137-battle-pass.v158-pass-luxury .v137-pass-hero::before {
    content:"WAR\ALEDGER";
    left:52%;
    top:50%;
    color:rgba(255,239,194,.045);
    font-size:clamp(76px,10vw,166px);
    letter-spacing:-.09em;
}
#v137-battle-pass.v158-pass-luxury .v137-pass-hero::after {
    content:"";
    position:absolute;
    z-index:0;
    inset:0;
    background:
        linear-gradient(90deg,rgba(0,0,0,.68),transparent 26% 69%,rgba(0,0,0,.46)),
        linear-gradient(180deg,rgba(255,255,255,.025),transparent 30%,rgba(0,0,0,.78));
    pointer-events:none;
}
#v137-battle-pass.v158-pass-luxury .v137-hero-art {
    z-index:1;
    overflow:hidden;
}

.v158-pass-cast {
    position:absolute;
    z-index:1;
    inset:0;
    pointer-events:none;
}
.v158-pass-duelist {
    --v158-x:50%;
    --v158-y:-14px;
    --v158-r:0deg;
    --v158-scale:1;
    --v158-delay:0s;
    position:absolute;
    z-index:var(--v158-z,1);
    left:var(--v158-x);
    bottom:var(--v158-y);
    width:clamp(86px,7.4vw,122px);
    margin:0;
    transform:translateX(-50%) rotate(var(--v158-r)) scale(var(--v158-scale));
    transform-origin:50% 100%;
    filter:drop-shadow(0 17px 15px rgba(0,0,0,.72));
}
.v158-pass-duelist--leonard { --v158-x:35.8%;--v158-y:-30px;--v158-r:-8deg;--v158-scale:.89;--v158-z:1;--v158-delay:.08s; }
.v158-pass-duelist--riana   { --v158-x:44.6%;--v158-y:-12px;--v158-r:-2.5deg;--v158-scale:1.06;--v158-z:3;--v158-delay:.13s; }
.v158-pass-duelist--ordivo  { --v158-x:65.1%;--v158-y:-34px;--v158-r:8deg;--v158-scale:.88;--v158-z:1;--v158-delay:.23s; }
.v158-pass-card {
    position:relative;
    display:block;
    aspect-ratio:.69;
    overflow:hidden;
    border:1px solid rgba(255,225,143,.69);
    border-radius:9px;
    background:linear-gradient(145deg,#241015,#08090a 64%);
    box-shadow:
        inset 0 0 0 3px rgba(4,5,5,.92),
        inset 0 0 0 4px rgba(216,185,98,.24),
        0 0 26px rgba(122,18,32,.18);
}
.v158-pass-card::before,
.v158-pass-card::after {
    content:"";
    position:absolute;
    z-index:2;
    pointer-events:none;
}
.v158-pass-card::before {
    inset:6px;
    border:1px solid rgba(255,226,145,.32);
    border-radius:5px;
    box-shadow:inset 0 0 16px rgba(0,0,0,.24);
}
.v158-pass-card::after {
    right:8px;
    bottom:8px;
    width:15px;
    height:15px;
    border:1px solid rgba(255,229,151,.54);
    background:rgba(86,12,24,.72);
    transform:rotate(45deg);
}
.v158-pass-card img {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
    background:#090a0a;
}
.v158-pass-duelist figcaption {
    position:relative;
    width:max-content;
    max-width:128%;
    margin:-8px auto 0;
    padding:4px 8px 3px;
    overflow:hidden;
    border:1px solid rgba(216,185,98,.32);
    color:#d8c995;
    background:rgba(4,6,6,.94);
    font:700 5.5px/1 "Courier New",monospace;
    letter-spacing:.15em;
    text-overflow:ellipsis;
    white-space:nowrap;
    box-shadow:0 4px 11px rgba(0,0,0,.62);
}
.v158-pass-duelist.is-missing { display:none; }
.v158-pass-cut {
    position:absolute;
    z-index:3;
    left:50.8%;
    top:-24%;
    width:1px;
    height:150%;
    background:linear-gradient(180deg,transparent,rgba(255,227,150,.78) 22%,rgba(141,27,43,.88) 50%,rgba(255,227,150,.46) 76%,transparent);
    box-shadow:0 0 13px rgba(167,33,50,.64);
    transform:rotate(18deg);
    transform-origin:center;
}
.v158-pass-cut::before,
.v158-pass-cut::after {
    content:"";
    position:absolute;
    inset:0 auto 0 5px;
    width:1px;
    background:linear-gradient(180deg,transparent,rgba(216,185,98,.16),transparent);
}
.v158-pass-cut::after { left:-6px; }
.v158-pass-crest {
    position:absolute;
    z-index:5;
    left:51%;
    top:49%;
    width:62px;
    aspect-ratio:1;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,224,137,.75);
    border-radius:50%;
    color:#f7dda0;
    background:
        radial-gradient(circle at 35% 30%,rgba(255,225,145,.22),transparent 23%),
        radial-gradient(circle,#861b2d 0 34%,#4c0d18 35% 57%,#17080b 58% 100%);
    box-shadow:
        inset 0 0 0 4px rgba(44,5,12,.82),
        inset 0 0 0 6px rgba(216,185,98,.35),
        0 0 0 2px rgba(0,0,0,.82),
        0 8px 23px rgba(0,0,0,.72),
        0 0 24px rgba(154,31,48,.36);
    transform:translate(-50%,-50%) rotate(-6deg);
}
.v158-pass-crest::before {
    content:"";
    position:absolute;
    inset:-6px;
    border:1px dashed rgba(228,197,107,.38);
    border-radius:50%;
}
.v158-pass-crest-card {
    width:25px;
    height:35px;
    display:grid;
    place-items:center;
    border:1px solid #ead186;
    border-radius:3px;
    color:#f9e8b0;
    background:linear-gradient(150deg,#25090f,#08090a);
    font:700 16px/1 Georgia,serif;
    box-shadow:inset 0 0 0 2px rgba(216,185,98,.12);
    transform:rotate(6deg);
}
.v158-pass-crest-crown {
    position:absolute;
    left:50%;
    top:-13px;
    color:#f2d681;
    font:700 22px/1 Georgia,serif;
    text-shadow:0 2px 0 #2f0710,0 0 7px rgba(255,220,126,.38);
    transform:translateX(-50%);
}
#v137-battle-pass.v158-pass-luxury .v137-hero-copy {
    z-index:6;
    width:min(34vw,430px);
    padding-right:8px;
}
#v137-battle-pass.v158-pass-luxury .v137-hero-copy h3 {
    color:#fff0bd;
    text-shadow:0 3px 0 #000,0 10px 32px #000,0 0 20px rgba(155,29,45,.22);
}
#v137-battle-pass.v158-pass-luxury .v137-hero-copy p {
    max-width:390px;
    color:#c1b38d;
}
#v137-battle-pass.v158-pass-luxury .v137-progress-dossier {
    z-index:7;
    border-color:rgba(235,202,111,.56);
    background:
        linear-gradient(135deg,rgba(91,13,25,.37),transparent 46%),
        repeating-linear-gradient(135deg,transparent 0 12px,rgba(216,185,98,.018) 13px 14px),
        rgba(3,6,7,.91);
    box-shadow:inset 0 0 0 3px rgba(0,0,0,.58),inset 0 0 0 4px rgba(216,185,98,.1),0 20px 52px rgba(0,0,0,.56);
    backdrop-filter:blur(5px);
}
#v137-battle-pass.v158-pass-luxury .v137-level-medallion::after {
    content:"♛";
    position:absolute;
    top:-8px;
    color:#dfc16b;
    font:700 16px/1 Georgia,serif;
    text-shadow:0 2px 6px #000;
}


#v137-battle-pass.v158-pass-luxury .v137-pass-tabs {
    min-height:52px;
    padding-inline:clamp(12px,2.2vw,32px);
    gap:5px;
    border-bottom-color:rgba(216,185,98,.35);
    background:
        linear-gradient(180deg,#0d0b0b,#040606),
        #050607;
}
#v137-battle-pass.v158-pass-luxury .v137-pass-tab {
    min-width:172px;
    min-height:49px;
    border:1px solid rgba(216,185,98,.14);
    border-top:0;
    border-radius:0 0 7px 7px;
    color:#a1977f;
    background:linear-gradient(180deg,rgba(255,255,255,.025),transparent);
    clip-path:polygon(0 0,100% 0,96% 100%,4% 100%);
}
#v137-battle-pass.v158-pass-luxury .v137-pass-tab::before {
    content:attr(data-v158-label);
    display:block;
    margin-bottom:4px;
    color:#6f6756;
    font:700 5.5px/1 "Courier New",monospace;
    letter-spacing:.21em;
}
#v137-battle-pass.v158-pass-luxury .v137-pass-tab.is-active {
    border-color:rgba(216,185,98,.33);
    color:#ffecb2;
    background:
        radial-gradient(circle at 50% 0,rgba(216,185,98,.1),transparent 54%),
        linear-gradient(180deg,rgba(118,18,32,.38),rgba(19,7,10,.25));
}
#v137-battle-pass.v158-pass-luxury .v137-pass-tab.is-active::before { color:#c4a755; }


#v137-battle-pass.v158-pass-luxury .v137-panel-heading {
    position:relative;
    border-bottom:1px solid rgba(216,185,98,.07);
    background:linear-gradient(90deg,rgba(103,15,28,.13),transparent 38%);
}
#v137-battle-pass.v158-pass-luxury .v137-panel-heading::after {
    content:"";
    position:absolute;
    right:clamp(14px,2vw,27px);
    bottom:-1px;
    width:min(34vw,360px);
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(216,185,98,.42));
}
#v137-battle-pass.v158-pass-luxury .v137-reward-road { gap:11px; }
#v137-battle-pass.v158-pass-luxury .v137-tier-column { width:clamp(134px,10.7vw,165px);gap:7px; }
#v137-battle-pass.v158-pass-luxury .v137-reward-card {
    border-color:rgba(221,190,102,.29);
    border-radius:9px;
    background:
        linear-gradient(125deg,rgba(255,255,255,.025),transparent 28%),
        radial-gradient(circle at 88% 12%,rgba(216,185,98,.14),transparent 29%),
        linear-gradient(145deg,#1b1915,#050708 76%);
    box-shadow:inset 0 0 0 3px #050707,inset 0 0 0 4px rgba(216,185,98,.08),0 10px 26px rgba(0,0,0,.22);
}
#v137-battle-pass.v158-pass-luxury .v137-reward-card::before {
    content:"";
    position:absolute;
    inset:6px;
    border:1px solid rgba(216,185,98,.08);
    border-radius:5px;
    pointer-events:none;
}
#v137-battle-pass.v158-pass-luxury .v137-reward-card::after {
    content:"";
    position:absolute;
    top:7px;
    right:7px;
    width:9px;
    height:9px;
    border-top:1px solid rgba(243,214,132,.54);
    border-right:1px solid rgba(243,214,132,.54);
    pointer-events:none;
}
#v137-battle-pass.v158-pass-luxury .v137-reward-card.premium {
    border-color:rgba(181,48,67,.7);
    background:
        linear-gradient(125deg,rgba(255,231,173,.035),transparent 30%),
        radial-gradient(circle at 88% 10%,rgba(188,42,63,.28),transparent 34%),
        linear-gradient(145deg,#2e0a12,#060708 76%);
}
#v137-battle-pass.v158-pass-luxury .v137-reward-card.is-milestone {
    border-color:rgba(238,205,112,.76);
    box-shadow:inset 0 0 0 3px #050707,inset 0 0 0 4px rgba(239,207,118,.25),0 0 24px rgba(153,31,48,.18);
}
#v137-battle-pass.v158-pass-luxury .v137-reward-card.is-milestone::after {
    content:"♛";
    width:auto;
    height:auto;
    border:0;
    color:rgba(241,211,126,.8);
    font:700 15px/1 Georgia,serif;
}
#v137-battle-pass.v158-pass-luxury .v137-reward-symbol {
    border-color:rgba(239,205,112,.55);
    background:linear-gradient(145deg,#5d1020,#10080a 72%);
    box-shadow:inset 0 0 0 2px rgba(0,0,0,.4),0 0 14px rgba(145,29,45,.2);
}
#v137-battle-pass.v158-pass-luxury .v137-tier-node span {
    border-color:rgba(216,185,98,.48);
    box-shadow:inset 0 0 0 3px #050707;
}


#v137-battle-pass.v158-pass-luxury .v137-mission-layout { gap:16px; }
#v137-battle-pass.v158-pass-luxury .v137-mission-group {
    position:relative;
    overflow:hidden;
    border-color:rgba(216,185,98,.31);
    border-radius:3px;
    background:
        linear-gradient(100deg,rgba(100,15,27,.13),transparent 36%),
        repeating-linear-gradient(135deg,transparent 0 17px,rgba(216,185,98,.015) 18px 19px),
        rgba(4,7,7,.84);
    box-shadow:inset 0 0 0 3px rgba(0,0,0,.37),0 13px 30px rgba(0,0,0,.18);
}
#v137-battle-pass.v158-pass-luxury .v137-mission-group::after {
    content:"CLASSIFIED";
    position:absolute;
    right:-18px;
    top:12px;
    padding:3px 25px;
    border:1px solid rgba(164,38,59,.2);
    color:rgba(178,56,72,.18);
    font:900 7px/1 "Courier New",monospace;
    letter-spacing:.14em;
    transform:rotate(35deg);
    pointer-events:none;
}
#v137-battle-pass.v158-pass-luxury .v137-mission-group-header {
    border-bottom-color:rgba(216,185,98,.25);
    background:linear-gradient(90deg,rgba(121,18,33,.32),rgba(216,185,98,.035),transparent);
}
#v137-battle-pass.v158-pass-luxury .v137-mission { position:relative; }
#v137-battle-pass.v158-pass-luxury .v137-mission.is-claimable {
    box-shadow:inset 3px 0 #d6b65e;
}
#v137-battle-pass.v158-pass-luxury .v137-vault-intro {
    position:relative;
    overflow:hidden;
    border-color:rgba(231,198,105,.44);
    border-radius:3px;
    background:
        radial-gradient(circle at 84% 42%,rgba(216,185,98,.1),transparent 18%),
        linear-gradient(115deg,rgba(121,18,33,.32),rgba(4,7,8,.91) 55%,rgba(38,105,82,.16));
    box-shadow:inset 0 0 0 3px rgba(0,0,0,.4);
}
#v137-battle-pass.v158-pass-luxury .v137-vault-intro::after {
    content:"♛";
    position:absolute;
    right:23%;
    top:50%;
    color:rgba(225,195,108,.12);
    font:700 64px/1 Georgia,serif;
    transform:translateY(-50%) rotate(-9deg);
    pointer-events:none;
}
#v137-battle-pass.v158-pass-luxury .v137-vault-item {
    overflow:hidden;
    border-color:rgba(216,185,98,.3);
    border-radius:8px;
    background:
        linear-gradient(130deg,rgba(255,255,255,.025),transparent 25%),
        radial-gradient(circle at 85% 15%,rgba(216,185,98,.14),transparent 30%),
        linear-gradient(145deg,#1b1915,#050708 78%);
    box-shadow:inset 0 0 0 3px #050707,inset 0 0 0 4px rgba(216,185,98,.08),0 12px 26px rgba(0,0,0,.2);
}
#v137-battle-pass.v158-pass-luxury .v137-vault-item::before {
    content:"";
    position:absolute;
    inset:6px;
    border:1px solid rgba(216,185,98,.1);
    border-radius:4px;
    pointer-events:none;
}
#v137-battle-pass.v158-pass-luxury .v137-vault-item.is-equipped {
    border-color:rgba(104,190,146,.69);
    background:
        radial-gradient(circle at 85% 15%,rgba(65,165,124,.25),transparent 32%),
        linear-gradient(145deg,#10221b,#050708 78%);
}
#v137-battle-pass.v158-pass-luxury .v137-pass-footer {
    border-top-color:rgba(216,185,98,.38);
    background:
        linear-gradient(90deg,rgba(99,15,27,.15),transparent 36%),
        rgba(3,5,6,.98);
}
#v137-battle-pass.v158-pass-luxury .v137-action {
    border-radius:3px;
    box-shadow:inset 0 0 0 2px rgba(0,0,0,.48);
}

@keyframes v158-pass-card-enter {
    0% { opacity:0;transform:translateX(-50%) translateY(21px) rotate(var(--v158-r)) scale(var(--v158-scale)); }
    100% { opacity:1;transform:translateX(-50%) translateY(0) rotate(var(--v158-r)) scale(var(--v158-scale)); }
}
#v137-battle-pass.v158-pass-luxury:not([hidden]) .v158-pass-duelist {
    animation:v158-pass-card-enter .58s cubic-bezier(.2,.72,.22,1) both;
    animation-delay:var(--v158-delay);
}

@media (max-width:1100px) {
    #v137-battle-pass.v158-pass-luxury .v137-pass-hero {
        min-height:204px;
        grid-template-columns:minmax(250px,1fr) minmax(280px,.68fr);
    }
    .v158-pass-duelist { width:clamp(78px,9vw,104px); }
    .v158-pass-duelist--leonard { --v158-x:36%; }
    .v158-pass-duelist--riana { --v158-x:44.5%; }
    .v158-pass-duelist--ordivo { --v158-x:62%; }
    .v158-pass-crest { left:49.5%;transform:translate(-50%,-50%) rotate(-6deg) scale(.88); }
    .v158-pass-cut { left:49.2%; }
    #v137-battle-pass.v158-pass-luxury .v137-hero-copy { width:min(31vw,330px); }
}
@media (max-width:760px) {
    #v137-battle-pass.v158-pass-luxury .v137-pass-header::after { display:none; }
    #v137-battle-pass.v158-pass-luxury .v137-pass-hero {
        min-height:190px;
        grid-template-columns:1fr;
    }
    #v137-battle-pass.v158-pass-luxury .v137-hero-copy {
        box-sizing:border-box;
        width:64%;
        max-width:64%;
        padding:12px 14px 8px;
    }
    #v137-battle-pass.v158-pass-luxury .v137-hero-copy h3 { font-size:clamp(26px,7vw,38px); }
    #v137-battle-pass.v158-pass-luxury .v137-hero-copy p { font-size:7px; }
    .v158-pass-duelist { width:clamp(72px,18vw,96px);opacity:.72; }
    .v158-pass-duelist--leonard,.v158-pass-duelist--ordivo { display:none; }
    .v158-pass-duelist--riana { --v158-x:67%;--v158-y:-20px;--v158-scale:1; }
    .v158-pass-crest { left:65%;top:52%;transform:translate(-50%,-50%) rotate(-6deg) scale(.7); }
    .v158-pass-cut { left:68%; }
    #v137-battle-pass.v158-pass-luxury .v137-progress-dossier { margin:0 11px 12px; }
    #v137-battle-pass.v158-pass-luxury .v137-pass-tabs { padding-inline:0;gap:1px; }
    #v137-battle-pass.v158-pass-luxury .v137-pass-tab { min-width:0;clip-path:none;border-radius:0; }
    #v137-battle-pass.v158-pass-luxury .v137-pass-tab::before { font-size:5px;letter-spacing:.1em; }
}
@media (max-width:500px) {
    #v137-battle-pass.v158-pass-luxury .v137-pass-hero { min-height:168px; }
    #v137-battle-pass.v158-pass-luxury .v137-hero-copy { width:60%;max-width:60%; }
    #v137-battle-pass.v158-pass-luxury .v137-hero-copy p { max-width:64%; }
    .v158-pass-duelist--riana { --v158-x:78%; }
    .v158-pass-crest { left:72%; }
    .v158-pass-cut { left:73%; }
    #v137-battle-pass.v158-pass-luxury .v137-pass-tab::before { display:none; }
}
@media (max-height:600px) and (min-width:701px) {
    #v137-battle-pass.v158-pass-luxury .v137-pass-hero { min-height:116px; }
    #v137-battle-pass.v158-pass-luxury .v158-pass-duelist { width:70px; }
    #v137-battle-pass.v158-pass-luxury .v158-pass-duelist figcaption { display:none; }
    #v137-battle-pass.v158-pass-luxury .v158-pass-crest { transform:translate(-50%,-50%) rotate(-6deg) scale(.68); }
}
@media (max-height:480px) and (min-width:560px) {
    #v137-battle-pass.v158-pass-luxury .v137-pass-hero { min-height:76px; }
    #v137-battle-pass.v158-pass-luxury .v158-pass-cut,
    #v137-battle-pass.v158-pass-luxury .v158-pass-crest { display:none; }
}
@media (prefers-reduced-motion:reduce) {
    #v137-battle-pass.v158-pass-luxury .v158-pass-duelist { animation:none !important; }
    #v137-battle-pass.v158-pass-luxury .v137-reward-card,
    #v137-battle-pass.v158-pass-luxury .v137-vault-item,
    #v137-battle-pass.v158-pass-luxury .v137-pass-tab,
    #v137-battle-pass.v158-pass-luxury .v137-action { transition:none !important; }
}


/* SOURCE styles/v159-chain-guides.css */
/* SHOCKER v159 — Imperial chain dossiers */
:root {
    --v159-ink:#07090a;
    --v159-paper:#e7d8ae;
    --v159-gold:#d8b760;
    --v159-gold-pale:#f3dea0;
    --v159-crimson:#8e1728;
    --v159-cyan:#4da9a2;
}

/* v128 hid the original labels globally.  The late v159 rule restores them as controls. */
#home-screen.v62-shocker-home .v62-mechanics,
#home-screen.v62-shocker-home.v158-imperial-court .v62-mechanics {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px !important;
    width:min(100%,520px);
    margin-top:14px !important;
    position:relative;
    z-index:20;
}
#home-screen.v62-shocker-home .v159-guide-trigger.v62-mechanic {
    appearance:none;
    -webkit-appearance:none;
    min-width:0;
    min-height:44px;
    margin:0;
    padding:7px 8px 7px 7px !important;
    display:grid !important;
    grid-template-columns:27px minmax(0,1fr) 8px;
    align-items:center;
    gap:7px !important;
    border:1px solid rgba(225,193,111,.38) !important;
    border-radius:2px;
    color:#d7c89e;
    background:
        linear-gradient(135deg,rgba(151,24,42,.2),transparent 43%),
        linear-gradient(112deg,rgba(21,19,17,.96),rgba(3,8,9,.98)) !important;
    box-shadow:inset 0 0 0 1px rgba(255,244,207,.025),inset 3px 0 rgba(141,23,40,.62),0 5px 14px rgba(0,0,0,.34) !important;
    text-align:left;
    cursor:pointer;
    isolation:isolate;
    overflow:hidden;
    transform:translateZ(0);
    transition:border-color .18s ease,filter .18s ease,transform .18s ease,box-shadow .18s ease;
}
#home-screen.v62-shocker-home .v159-guide-trigger.v62-mechanic::before {
    content:"";
    position:absolute;
    inset:3px;
    z-index:-1;
    border:1px solid rgba(226,195,117,.09);
    pointer-events:none;
}
#home-screen.v62-shocker-home .v159-guide-trigger.v62-mechanic::after {
    content:"";
    position:absolute;
    top:-120%;
    bottom:-120%;
    left:-36%;
    width:22%;
    z-index:-1;
    background:linear-gradient(90deg,transparent,rgba(255,237,180,.13),transparent);
    rotate:16deg;
    transition:left .45s ease;
    pointer-events:none;
}
#home-screen.v62-shocker-home .v159-guide-trigger.v62-mechanic:hover,
#home-screen.v62-shocker-home .v159-guide-trigger.v62-mechanic:focus-visible {
    border-color:rgba(250,220,139,.88) !important;
    filter:brightness(1.14);
    transform:translateY(-2px);
    box-shadow:inset 0 0 0 1px rgba(255,244,207,.06),inset 3px 0 #b9243b,0 9px 20px rgba(0,0,0,.5),0 0 19px rgba(216,183,96,.1) !important;
    outline:none;
}
#home-screen.v62-shocker-home .v159-guide-trigger.v62-mechanic:hover::after,
#home-screen.v62-shocker-home .v159-guide-trigger.v62-mechanic:focus-visible::after { left:116%; }
.v159-guide-trigger-sigil {
    width:27px;
    height:32px;
    display:grid;
    place-items:center;
    border:1px solid rgba(233,204,129,.58);
    border-radius:4px;
    color:#f1d784;
    background:linear-gradient(145deg,#271116,#080b0c 62%);
    box-shadow:inset 0 0 0 2px #080808,0 2px 5px #000;
    font:900 13px/1 Georgia,serif;
    rotate:-4deg;
}
.v159-guide-trigger[data-v159-guide="bomb"] .v159-guide-trigger-sigil { color:#f18c71; }
.v159-guide-trigger[data-v159-guide="joker"] .v159-guide-trigger-sigil { color:#79c9bf; }
.v159-guide-trigger-copy { min-width:0; display:block; }
#home-screen.v62-shocker-home .v159-guide-trigger-copy strong {
    display:block;
    overflow:hidden;
    color:#f4dda0 !important;
    font:800 8px/1 "Courier New",monospace !important;
    letter-spacing:.12em;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.v159-guide-trigger-copy em {
    display:block;
    margin-top:4px;
    overflow:hidden;
    color:#bcb18f;
    font:700 9px/1 "Yu Mincho","Hiragino Mincho ProN",serif;
    font-style:normal;
    letter-spacing:.08em;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.v159-guide-trigger-arrow {
    color:rgba(238,210,139,.66);
    font:700 14px/1 Georgia,serif;
    translate:0 -1px;
}

/* v243: readable rules within the existing help dialog. Home controls stay unchanged. */
body.v159-guide-open { overflow:hidden !important; }
#v159-chain-guide[hidden] { display:none !important; }
#v159-chain-guide {
    position:fixed;
    inset:0;
    z-index:100080;
    display:grid;
    place-items:center;
    padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
    color:#eee4ce;
    background:radial-gradient(circle at 50% 35%,rgba(123,20,35,.2),transparent 48%),rgba(1,4,5,.9);
    backdrop-filter:blur(8px) saturate(.75);
    -webkit-backdrop-filter:blur(8px) saturate(.75);
    font:500 14px/1.75 "Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;
    text-align:left;
}
#v159-chain-guide *,#v159-chain-guide *::before,#v159-chain-guide *::after { box-sizing:border-box; }
#v159-chain-guide .v159-guide-dialog {
    --v159-theme:#a82037;
    position:relative;
    width:min(1020px,100%);
    height:min(880px,calc(100vh - 24px));
    height:min(880px,calc(100dvh - 24px));
    max-height:100%;
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    overflow:hidden;
    color:#eee4ce;
    border:1px solid rgba(237,204,121,.64);
    border-radius:5px;
    background:linear-gradient(120deg,rgba(151,25,43,.09),transparent 34%),linear-gradient(145deg,#181616,#090c0e 70%);
    box-shadow:inset 0 0 0 4px #050708,inset 0 0 0 5px rgba(218,183,96,.13),0 30px 90px rgba(0,0,0,.82);
    animation:v159-dossier-enter .22s ease both;
}
#v159-chain-guide .v159-guide-dialog[data-guide="bomb"] { --v159-theme:#c04c34; }
#v159-chain-guide .v159-guide-dialog[data-guide="joker"] { --v159-theme:#3b9b92; }
#v159-chain-guide .v159-guide-head {
    position:relative;
    z-index:9;
    min-height:84px;
    display:grid;
    grid-template-columns:48px minmax(0,1fr) 44px;
    align-items:center;
    gap:14px;
    padding:14px 22px;
    border-bottom:1px solid rgba(226,193,111,.3);
    background:linear-gradient(90deg,rgba(133,21,38,.2),rgba(0,0,0,.2) 65%);
}
#v159-chain-guide .v159-guide-seal {
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    color:#f3dda1;
    border:1px solid #d2b56d;
    border-radius:50%;
    background:radial-gradient(circle,#29191a 0 43%,#851729 44% 56%,#090c0d 57%);
    box-shadow:inset 0 0 0 3px #080a0b,0 4px 10px #000;
    font:900 20px/1 Georgia,serif;
}
#v159-chain-guide .v159-guide-heading { min-width:0; }
#v159-chain-guide .v159-guide-kicker { color:#c8b67f;font:700 10px/1.4 "Courier New",monospace;letter-spacing:.12em; }
#v159-chain-guide-title { margin:4px 0 0;color:#f7e6b7;font:800 clamp(20px,3vw,30px)/1.35 "Yu Mincho","Hiragino Mincho ProN",Georgia,serif;letter-spacing:.04em; }
#v159-chain-guide .v159-guide-close {
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid rgba(228,198,120,.55);
    border-radius:3px;
    color:#f2dca3;
    background:#101214;
    font:400 29px/1 Georgia,serif;
    cursor:pointer;
}
#v159-chain-guide .v159-guide-close:hover { background:#33131a; }
#v159-chain-guide .v159-guide-close:focus-visible,
#v159-chain-guide .v159-guide-tab:focus-visible,
#v159-chain-guide .v243-guide-table-wrap:focus-visible { outline:2px solid #f6dc91;outline-offset:3px; }
#v159-chain-guide .v159-guide-body { min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#b28a46 #080b0c;scrollbar-width:thin;padding:22px; }
#v159-chain-guide .v159-guide-panel[hidden] { display:none !important; }
#v159-chain-guide .v159-guide-panel { display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-content:start; }
#v159-chain-guide p { margin:0; }
#v159-chain-guide h3 { margin:0 0 10px;color:#f5df9f;font-size:16px;line-height:1.55;letter-spacing:.02em; }
#v159-chain-guide strong { font-weight:800; }
#v159-chain-guide .v243-guide-summary { padding:15px 18px;border:1px solid rgba(233,199,119,.44);border-left:4px solid var(--v159-theme);color:#f0e4c7;background:linear-gradient(100deg,rgba(153,116,45,.14),rgba(5,8,10,.3));font-size:18px;line-height:1.7; }
#v159-chain-guide .v243-guide-summary strong { color:#fff0bf; }
#v159-chain-guide .v243-guide-condition { display:grid;grid-template-columns:94px minmax(0,1fr);gap:15px;align-items:start; }
#v159-chain-guide .v243-guide-condition h3 { padding-top:2px; }
#v159-chain-guide .v243-guide-cards { display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:12px 0; }
#v159-chain-guide .v243-guide-card { width:58px;height:80px;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;gap:4px;border:1px solid #e4c987;border-radius:5px;color:#182028;background:linear-gradient(145deg,#fff5da,#e9dbb9);box-shadow:0 4px 8px rgba(0,0,0,.4),inset 0 0 0 4px rgba(105,69,29,.12);line-height:1; }
#v159-chain-guide .v243-guide-card b { font:800 25px/1 Georgia,serif; }
#v159-chain-guide .v243-guide-card > span { font:500 27px/1 Georgia,serif; }
#v159-chain-guide .v243-guide-card.is-red { color:#941c30; }
#v159-chain-guide .v243-guide-card.is-joker { color:#f5dda0;background:linear-gradient(145deg,#283f3e,#0d171c);border-color:#9bc3b6; }
#v159-chain-guide .v243-guide-card.is-joker b { font-size:11px;letter-spacing:.02em; }
#v159-chain-guide .v243-guide-card.is-joker > span { color:#9dd8c6; }
#v159-chain-guide .v243-guide-small { color:#d0c5ad;font-size:13px;line-height:1.8; }
#v159-chain-guide .v243-guide-permissions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
#v159-chain-guide .v243-guide-permission { padding:16px 18px;border:1px solid;border-radius:4px; }
#v159-chain-guide .v243-guide-permission h3 { display:flex;align-items:center;gap:8px;font-size:17px; }
#v159-chain-guide .v243-guide-permission h3 > span { font-size:29px;line-height:1; }
#v159-chain-guide .v243-guide-permission.is-allowed { border-color:#4d9d80;background:linear-gradient(125deg,rgba(32,110,81,.2),rgba(5,17,16,.5)); }
#v159-chain-guide .v243-guide-permission.is-allowed h3 { color:#a7edc8; }
#v159-chain-guide .v243-guide-permission.is-forbidden { border-color:#af6371;background:linear-gradient(125deg,rgba(140,42,62,.18),rgba(23,9,14,.5)); }
#v159-chain-guide .v243-guide-permission.is-forbidden h3 { color:#ffb4bf; }
#v159-chain-guide ul { margin:0;padding-left:1.35em; }
#v159-chain-guide li + li { margin-top:9px; }
#v159-chain-guide .v243-guide-permission li > span { display:block;color:#d3cbbd; }
#v159-chain-guide .v243-guide-permission > p { margin-top:10px; }
#v159-chain-guide .v243-guide-conditional { padding:12px;border:1px solid #b8964f;background:rgba(144,102,30,.12); }
#v159-chain-guide .v243-guide-conditional strong { display:block;color:#f4db9b; }
#v159-chain-guide .v243-guide-conditional span { display:block;margin-top:4px; }
#v159-chain-guide .v243-guide-example { padding:16px 18px;border:1px solid rgba(219,190,121,.27);border-radius:4px;background:#101417; }
#v159-chain-guide .v243-guide-sequence { display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:16px;font-weight:700; }
#v159-chain-guide .v243-guide-sequence > span { color:#c0a26a; }
#v159-chain-guide .v243-guide-sequence + p { margin-top:7px; }
#v159-chain-guide p + .v243-guide-sequence { margin-top:16px; }
#v159-chain-guide .is-yes { color:#a7edc8; }
#v159-chain-guide .is-no { color:#ffb4bf; }
#v159-chain-guide .is-maybe { color:#f6dc9a; }
#v159-chain-guide .v243-guide-result { padding:0 3px; }
#v159-chain-guide .v243-guide-result p + p { margin-top:9px; }
#v159-chain-guide .v243-guide-order { padding:10px 14px;border-left:2px solid #b19658;color:#f1ddb0;background:rgba(208,170,91,.07);font-size:16px; }
#v159-chain-guide .v243-guide-order > span { color:#c9b995;font-size:13px; }
#v159-chain-guide .v243-guide-important { padding:16px 18px;border:1px solid #b8964f;border-left:4px solid #cfad66;background:linear-gradient(105deg,rgba(145,105,36,.16),rgba(13,14,16,.6)); }
#v159-chain-guide .v243-guide-important h3 { color:#f4dda1; }
#v159-chain-guide .v243-guide-bomb-example { display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:12px; }
#v159-chain-guide .v243-guide-card-label { display:block;color:#e4d5b6;font-size:13px;font-weight:700; }
#v159-chain-guide .v243-guide-card-arrow { color:#e0be72;font-size:27px; }
#v159-chain-guide .v243-guide-example-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin-bottom:12px; }
#v159-chain-guide .v243-guide-example-grid strong { display:block;font-size:17px; }
#v159-chain-guide .v243-guide-example-grid span { display:block;color:#d3cbbd; }
#v159-chain-guide .v243-guide-comparison { padding-top:18px;border-top:1px solid rgba(219,190,121,.3); }
#v159-chain-guide .v243-guide-comparison > p { margin-bottom:10px;font-size:13px; }
#v159-chain-guide .v243-guide-table-wrap { max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #655539;border-radius:3px;margin:5px 0 12px; }
#v159-chain-guide .v243-guide-table { width:100%;min-width:620px;border-collapse:collapse;color:#ebe2cf;font-size:14px;text-align:center; }
#v159-chain-guide .v243-guide-table caption { padding:10px;color:#f2dda4;background:#201d16;font-weight:700;text-align:left; }
#v159-chain-guide .v243-guide-table th,#v159-chain-guide .v243-guide-table td { padding:10px 9px;border:1px solid #484035;vertical-align:middle; }
#v159-chain-guide .v243-guide-table thead { color:#f5df9f;background:#242017; }
#v159-chain-guide .v243-guide-table tbody th { color:#e9dec5;background:#191b1b;text-align:left; }
#v159-chain-guide .v243-guide-table td { font-size:21px;font-weight:800; }
#v159-chain-guide .v159-guide-foot { position:relative;z-index:9;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:18px;padding:12px 22px;border-top:1px solid rgba(225,193,111,.3);background:#080b0d; }
#v159-chain-guide .v159-guide-foot-label { color:#ccbb93;font-size:12px; }
#v159-chain-guide .v159-guide-tabs { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
#v159-chain-guide .v159-guide-tab { min-width:0;min-height:44px;padding:8px 10px;border:1px solid #827047;border-radius:3px;color:#e2d4b4;background:#121517;font:700 14px/1.3 "Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;cursor:pointer; }
#v159-chain-guide .v159-guide-tab:hover { border-color:#f1d28c;color:#ffedba; }
#v159-chain-guide .v159-guide-tab[aria-selected="true"] { color:#ffedba;border-color:#efce7b;background:linear-gradient(100deg,#6e202e,#2a171c);box-shadow:inset 3px 0 #dfbd66; }
@keyframes v159-dossier-enter { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
@media (max-width:760px) {
    #v159-chain-guide { padding:6px; }
    #v159-chain-guide .v159-guide-dialog { width:100%;height:calc(100vh - 12px);height:calc(100dvh - 12px); }
    #v159-chain-guide .v159-guide-head { min-height:76px;grid-template-columns:38px minmax(0,1fr) 44px;gap:10px;padding:12px; }
    #v159-chain-guide .v159-guide-seal { width:36px;height:36px;font-size:17px; }
    #v159-chain-guide .v159-guide-kicker { font-size:9px;letter-spacing:.04em; }
    #v159-chain-guide-title { font-size:clamp(19px,4.5vw,25px); }
    #v159-chain-guide .v159-guide-body { padding:16px 13px; }
    #v159-chain-guide .v159-guide-panel { gap:16px; }
    #v159-chain-guide .v243-guide-summary { padding:13px;font-size:17px; }
    #v159-chain-guide .v243-guide-condition { grid-template-columns:1fr;gap:0; }
    #v159-chain-guide .v243-guide-permissions { grid-template-columns:1fr;gap:12px; }
    #v159-chain-guide .v243-guide-permission { padding:14px; }
    #v159-chain-guide .v243-guide-example,#v159-chain-guide .v243-guide-important { padding:14px; }
    #v159-chain-guide .v159-guide-foot { grid-template-columns:1fr;gap:0;padding:10px 12px; }
    #v159-chain-guide .v159-guide-foot-label { display:none; }
    #home-screen.v62-shocker-home .v62-mechanics { gap:4px !important;margin-top:8px !important; }
    #home-screen.v62-shocker-home .v159-guide-trigger.v62-mechanic { min-height:36px;padding:5px !important;grid-template-columns:21px minmax(0,1fr);gap:5px !important; }
    .v159-guide-trigger-sigil { width:21px;height:26px;font-size:10px; }
    .v159-guide-trigger-arrow { display:none; }
    #home-screen.v62-shocker-home .v159-guide-trigger-copy strong { font-size:6px !important; }
    .v159-guide-trigger-copy em { font-size:7px; }
}
@media (max-width:420px) {
    #v159-chain-guide .v159-guide-kicker { font-size:8px; }
    #v159-chain-guide .v159-guide-tabs { gap:5px; }
    #v159-chain-guide .v159-guide-tab { padding-inline:4px; }
    #v159-chain-guide .v243-guide-example-grid { grid-template-columns:1fr; }
    #v159-chain-guide .v243-guide-bomb-example { gap:12px; }
    #v159-chain-guide .v243-guide-card-label { max-width:134px; }
}
@media (max-height:560px) and (min-width:560px) {
    /* Preserve the existing home controls; only the dialog becomes compact. */
    #home-screen.v62-shocker-home .v62-mechanics { display:grid !important;margin-top:4px !important;gap:3px !important; }
    #home-screen.v62-shocker-home .v159-guide-trigger.v62-mechanic { min-height:27px;padding:3px 5px !important;grid-template-columns:18px minmax(0,1fr);gap:4px !important; }
    .v159-guide-trigger-sigil { width:18px;height:21px;font-size:8px; }
    .v159-guide-trigger-arrow,.v159-guide-trigger-copy em { display:none; }
    #home-screen.v62-shocker-home .v159-guide-trigger-copy strong { font-size:6px !important; }
    #v159-chain-guide { padding:5px; }
    #v159-chain-guide .v159-guide-dialog { height:calc(100vh - 10px);height:calc(100dvh - 10px); }
    #v159-chain-guide .v159-guide-head { min-height:64px;padding:9px 14px; }
    #v159-chain-guide .v159-guide-body { padding:14px; }
    #v159-chain-guide .v159-guide-foot { padding:8px 14px; }
}
@media (prefers-reduced-motion:reduce) {
    #v159-chain-guide .v159-guide-dialog { animation:none !important; }
    #home-screen.v62-shocker-home .v159-guide-trigger.v62-mechanic,
    #home-screen.v62-shocker-home .v159-guide-trigger.v62-mechanic::after,
    .v159-guide-close { transition:none !important; }
}


/* SOURCE styles/masterwork-profile-frames.css */
/* v183: clear anime UI outlines and flat cel shading. Saved frame IDs stay intact. */
body.v175-illustrated-profile-frames #v105-home-profile-button,
body.v175-illustrated-profile-frames #v105-profile-preview { isolation:isolate; }
body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) #v105-home-profile-button,
body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) #v105-profile-preview {
    overflow:visible !important;clip-path:none !important;border:1px solid color-mix(in srgb,var(--v105-frame-main) 25%,#1a1b20) !important;
    border-radius:8px !important;background:radial-gradient(ellipse at 15% 10%,color-mix(in srgb,var(--v105-frame-main) 12%,transparent),transparent 65%),#080b11 !important;
}
body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) :is(#v105-home-profile-button,#v105-profile-preview)::before,
body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) :is(#v105-home-profile-button,#v105-profile-preview)::after,
body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) :is(#v105-home-profile-button,#v105-profile-preview) > .v158-profile-ornament { display:none !important; }

.v175-illustrated-profile-frame {
    position:absolute;inset:auto;z-index:15;display:block;pointer-events:none;aspect-ratio:1/1;
    filter:drop-shadow(0 2px 0 rgba(0,0,0,.6));overflow:visible;
}
.v175-frame-art { position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none;pointer-events:none; }
.v175-illustrated-profile-frame > .v160-theme { display:none; }
:is(#v105-profile-preview,#v105-home-profile-button)[data-v105-frame="imperial"] > .v175-illustrated-profile-frame .v160-theme--imperial,
:is(#v105-profile-preview,#v105-home-profile-button)[data-v105-frame="crimson"] > .v175-illustrated-profile-frame .v160-theme--crimson,
:is(#v105-profile-preview,#v105-home-profile-button)[data-v105-frame="sapphire"] > .v175-illustrated-profile-frame .v160-theme--sapphire,
:is(#v105-profile-preview,#v105-home-profile-button)[data-v105-frame="silver"] > .v175-illustrated-profile-frame .v160-theme--silver,
:is(#v105-profile-preview,#v105-home-profile-button)[data-v105-frame="emerald"] > .v175-illustrated-profile-frame .v160-theme--emerald,
:is(#v105-profile-preview,#v105-home-profile-button)[data-v105-frame="obsidian"] > .v175-illustrated-profile-frame .v160-theme--obsidian { display:block; }

body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) #v105-home-profile-button {
    width:clamp(236px,20vw,302px);min-height:88px !important;grid-template-columns:76px minmax(0,1fr) 14px !important;gap:10px !important;padding:5px 9px 5px 5px !important;
}
body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) #v105-home-profile-button .v105-profile-emblem { width:76px !important;height:76px !important; }
body.v175-illustrated-profile-frames #v105-profile-editor .v105-profile-panel-body { grid-template-columns:minmax(250px,.72fr) minmax(0,1.5fr) !important;grid-auto-rows:max-content !important;align-content:start !important;align-items:start !important; }
body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) #v105-profile-preview { flex:0 0 auto !important;justify-content:center !important;min-height:426px !important;padding:20px 14px 20px !important; }
body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) #v105-profile-preview .v105-profile-emblem { width:220px !important;height:auto !important;aspect-ratio:1/1 !important;max-width:100%;flex:none; }
body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) :is(#v105-home-profile-button,#v105-profile-preview) .v105-profile-emblem {
    position:relative !important;overflow:visible !important;clip-path:none !important;padding:0 !important;border:0 !important;background:none !important;box-shadow:none !important;
}
body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) :is(#v105-home-profile-button,#v105-profile-preview) .v105-profile-emblem::after { display:none !important; }
/* A broad portrait opening keeps the illustration visible inside the slim rail. */
body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) :is(#v105-home-profile-button,#v105-profile-preview) .v105-profile-emblem > img {
    position:absolute !important;inset:7% !important;width:86% !important;height:86% !important;clip-path:none !important;object-fit:cover;object-position:50% 24%;border-radius:7px;
    background:#080b11;filter:saturate(1.02) contrast(1.02);
}
body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) #v105-profile-preview .v105-preview-character { margin-top:8px; }
body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) #v105-profile-preview .v105-preview-name { margin-top:10px; }

/* The same square image is cloned for both player and CPU profiles. */
body.v175-illustrated-profile-frames .v167-match-portrait:has(> .v175-illustrated-profile-frame) {
    aspect-ratio:1/1 !important;overflow:visible !important;background:none !important;box-shadow:none !important;
}
body.v175-illustrated-profile-frames .v167-match-portrait > .v175-illustrated-profile-frame {
    inset:0 !important;width:100% !important;height:100% !important;z-index:5 !important;display:block !important;filter:drop-shadow(0 2px 0 #0009) !important;
}
body.v175-illustrated-profile-frames .v167-match-portrait:has(> .v175-illustrated-profile-frame) > img {
    inset:7% !important;width:86% !important;height:86% !important;clip-path:none;object-position:50% 24%;border-radius:7px;
}
body.v175-illustrated-profile-frames .v167-match-portrait:has(> .v175-illustrated-profile-frame) > :is(.v167-match-image-shade,.v167-match-image-fallback) {
    inset:7% !important;border-radius:7px;
}

/* The same portrait and rail are shown in all six selection previews. */
body.v175-illustrated-profile-frames #v105-frame-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:9px !important; }
body.v175-illustrated-profile-frames #v105-frame-grid .v105-frame-choice { min-height:86px !important;gap:9px !important;padding:7px !important; }
body.v175-illustrated-profile-frames #v105-frame-grid .v105-frame-swatch.v160-frame-swatch {
    flex:0 0 70px;width:70px !important;height:70px !important;display:block;padding:0 !important;overflow:visible !important;clip-path:none !important;
    border:0 !important;border-radius:0 !important;background:none !important;box-shadow:none !important;
}
body.v175-illustrated-profile-frames #v105-frame-grid .v105-frame-swatch.v160-frame-swatch::before,
body.v175-illustrated-profile-frames #v105-frame-grid .v105-frame-swatch.v160-frame-swatch::after { display:none !important; }
.v160-mini-frame { position:relative;width:100%;height:100%;display:block;pointer-events:none;filter:drop-shadow(0 1px 0 #0009); }
.v175-mini-portrait { position:absolute;inset:7%;width:86%;height:86%;clip-path:none;border-radius:5px;object-fit:cover;object-position:50% 24%;pointer-events:none; }
.v183-mini-frame-art {position:absolute;inset:0;display:block;width:100%;height:100%;z-index:2;overflow:visible;}
.v183-mini-frame-art .v160-theme {display:block;}
body.v175-illustrated-profile-frames #v105-frame-grid .v105-frame-choice.is-selected .v160-mini-frame { filter:drop-shadow(0 1px 0 #0009); }
.v160-frame-copy { min-width:0;display:flex;flex-direction:column;gap:5px; }
.v160-frame-copy strong { color:#eee1c8;font-size:10px;line-height:1.35;letter-spacing:.02em; }
.v160-frame-copy small { color:#9c907d;font:700 7px/1.3 "Courier New",monospace;letter-spacing:.04em; }

/* Earned seasonal frames continue to override only the owner's basic frame. */
body.v175-illustrated-profile-frames[data-v137-profile-frame] :is(#v105-home-profile-button,#v105-profile-preview) > .v175-illustrated-profile-frame { display:none !important; }

@media(max-width:700px) {
    body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) #v105-home-profile-button { width:min(180px,45vw) !important;min-height:72px !important;grid-template-columns:62px minmax(0,1fr) 10px !important;gap:6px !important;padding:4px !important; }
    body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) #v105-home-profile-button .v105-profile-emblem { width:62px !important;height:62px !important; }
    body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) #v105-profile-preview { min-height:338px !important; }
    body.v175-illustrated-profile-frames #v105-profile-editor .v105-profile-panel-body { grid-template-columns:minmax(0,1fr) !important; }
    body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) #v105-profile-preview .v105-profile-emblem { width:156px !important; }
    body.v175-illustrated-profile-frames #v105-frame-grid { gap:7px !important; }
    body.v175-illustrated-profile-frames #v105-frame-grid .v105-frame-choice { min-height:72px !important;padding:5px !important;gap:5px !important; }
    body.v175-illustrated-profile-frames #v105-frame-grid .v105-frame-swatch.v160-frame-swatch { flex-basis:60px;width:60px !important;height:60px !important; }
    .v160-frame-copy strong { font-size:8px; }
    .v160-frame-copy small { display:none; }
}
@media(orientation:landscape) and (max-height:520px) {
    body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) #v105-profile-preview { min-height:320px !important; }
    body.v175-illustrated-profile-frames:not([data-v137-profile-frame]) #v105-profile-preview .v105-profile-emblem { width:146px !important; }
}
@media(prefers-reduced-motion:reduce) { .v160-mini-frame,.v175-illustrated-profile-frame { transition:none !important;animation:none !important; } }

/* Flat paint and a single dark ink outline replace carved metal and bloom. */
.v160-theme {filter:none;}
.v160-theme :is(.v160-rim,.v160-accent,.v160-jewel,.v160-dark,.v160-bright,.v160-cloth) {
    vector-effect:non-scaling-stroke;stroke-width:1.3;stroke-linejoin:round;
}
.v160-theme .v160-dark {stroke-width:1.8;}
.v160-theme .v160-inlay {vector-effect:non-scaling-stroke;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;}
.v160-theme .v160-line {fill:none;vector-effect:non-scaling-stroke;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;}
.v183-mini-frame-art .v160-theme :is(.v160-rim,.v160-accent,.v160-jewel,.v160-dark,.v160-bright) {stroke-width:.8;}
.v183-mini-frame-art .v160-inlay {stroke-width:1.2;}
.v183-mini-frame-art .v160-line {stroke-width:.7;}

/* Retired season rewards keep their own saved IDs and a quieter anime outline. */
body:is([data-v137-profile-frame="jade-order"],[data-v137-profile-frame="ruby-command"],[data-v137-profile-frame="black-seal-crown"])
:is(#v105-home-profile-button,#v105-profile-preview) {
    overflow:hidden !important;clip-path:none !important;border-radius:10px !important;
    border:2px solid var(--v105-frame-main) !important;
    background:color-mix(in srgb,var(--v105-frame-dark) 22%,#080b11) !important;
    box-shadow:0 2px 0 #030507,inset 0 -3px 0 var(--v105-frame-dark) !important;
}
body:is([data-v137-profile-frame="jade-order"],[data-v137-profile-frame="ruby-command"],[data-v137-profile-frame="black-seal-crown"])
:is(#v105-home-profile-button,#v105-profile-preview)::before {
    inset:4px !important;clip-path:none !important;border-radius:6px !important;border:1px solid var(--v105-frame-light) !important;
    background:none !important;box-shadow:none !important;
}
body:is([data-v137-profile-frame="jade-order"],[data-v137-profile-frame="ruby-command"],[data-v137-profile-frame="black-seal-crown"])
:is(#v105-home-profile-button,#v105-profile-preview)::after,
body:is([data-v137-profile-frame="jade-order"],[data-v137-profile-frame="ruby-command"],[data-v137-profile-frame="black-seal-crown"])
:is(#v105-home-profile-button,#v105-profile-preview) > .v158-profile-ornament {display:none !important;}
body:is([data-v137-profile-frame="jade-order"],[data-v137-profile-frame="ruby-command"],[data-v137-profile-frame="black-seal-crown"])
:is(#v105-home-profile-button,#v105-profile-preview) .v105-profile-emblem {clip-path:none !important;border-radius:9px;box-shadow:none !important;}


/* SOURCE styles/halloween-season-pass.css */
/* SHOCKER_V161_HALLOWEEN_SEASON_PASS / ECLIPSE MASQUERADE */
:root {
    --v161-night:#03040a;
    --v161-indigo:#14102c;
    --v161-violet:#54266e;
    --v161-amethyst:#b169da;
    --v161-moon:#f1dfb0;
    --v161-candle:#f2a24b;
    --v161-pumpkin:#b84b1e;
    --v161-blood:#7d1427;
    --v161-silver:#b9c5cf;
    --v161-moss:#324d3d;
    --v161-safe-top:env(safe-area-inset-top);
    --v161-safe-right:env(safe-area-inset-right);
    --v161-safe-bottom:env(safe-area-inset-bottom);
    --v161-safe-left:env(safe-area-inset-left);
}

/* v158の戦史台帳を、万聖夜の舞踏会へ全面的に置き換える。 */
#v137-battle-pass.v158-pass-luxury.v161-halloween-pass {
    --v158-ink:var(--v161-night);
    --v158-wine:var(--v161-blood);
    --v158-ruby:#a82945;
    --v158-gold:#c9ab71;
    --v158-gold-light:#f5e7bd;
    --v158-jade:#557c67;
    --v158-paper:#e8dcc1;
    background:
        radial-gradient(circle at 50% 14%,rgba(177,105,218,.2),transparent 21%),
        radial-gradient(circle at 14% 74%,rgba(184,75,30,.14),transparent 24%),
        radial-gradient(circle at 86% 75%,rgba(91,25,49,.22),transparent 26%),
        linear-gradient(137deg,#02030a 0,#160d29 45%,#080713 72%,#020406 100%);
}

#v137-battle-pass.v161-halloween-pass .v137-panel {
    overflow-y:auto;
    overscroll-behavior:contain;
}
#v137-battle-pass.v161-halloween-pass .v137-reward-scroll {
    overflow-x:auto;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
}
#v137-battle-pass.v161-halloween-pass::before {
    opacity:.58;
    background:
        radial-gradient(circle at 50% 13%,transparent 0 4.4%,rgba(240,222,176,.09) 4.5% 4.7%,transparent 4.8%),
        repeating-radial-gradient(circle at 50% 12%,transparent 0 54px,rgba(191,160,207,.025) 55px 56px),
        repeating-linear-gradient(116deg,transparent 0 49px,rgba(199,174,216,.018) 50px 51px),
        radial-gradient(ellipse at center,transparent 33%,rgba(0,0,0,.75));
}
#v137-battle-pass.v161-halloween-pass .v137-pass-shell {
    border-color:rgba(211,183,127,.66);
    clip-path:polygon(0 18px,18px 0,calc(50% - 42px) 0,50% 13px,calc(50% + 42px) 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px));
    background:
        linear-gradient(90deg,rgba(191,151,105,.055) 1px,transparent 1px) 0 0/83px 100%,
        radial-gradient(ellipse at 50% 0,rgba(77,39,103,.25),transparent 39%),
        linear-gradient(145deg,rgba(5,7,13,.99),rgba(21,10,31,.985) 55%,rgba(3,7,9,.99));
    box-shadow:inset 0 0 0 4px #03040a,inset 0 0 0 5px rgba(207,178,118,.18),inset 0 0 85px rgba(0,0,0,.66),0 35px 120px #000;
}
#v137-battle-pass.v161-halloween-pass .v137-pass-header {
    min-height:69px;
    border-bottom-color:rgba(217,186,126,.48);
    background:
        linear-gradient(103deg,rgba(112,23,46,.48),transparent 34%),
        radial-gradient(circle at 50% -20%,rgba(177,105,218,.22),transparent 48%),
        linear-gradient(90deg,#07080e,#10091b 53%,#070b0d);
}
#v137-battle-pass.v161-halloween-pass .v137-pass-header::before {
    inset:8px 9px;
    border-top-color:rgba(225,198,145,.22);
    border-bottom-color:rgba(177,105,218,.12);
    transform:none;
    clip-path:polygon(0 0,43% 0,50% 100%,57% 0,100% 0,100% 100%,0 100%);
}
#v137-battle-pass.v161-halloween-pass .v137-pass-header::after {
    content:"S1";
    width:36px;
    height:36px;
    border-color:rgba(234,211,159,.55);
    border-radius:50% 50% 46% 46%;
    color:#ead9aa;
    background:radial-gradient(circle at 40% 32%,#683386,#21102f 56%,#07060d 57%);
    font:800 8px/1 "Courier New",monospace;
    letter-spacing:.08em;
    transform:translate(-50%,-50%);
    box-shadow:inset 0 0 0 4px #08060e,0 0 20px rgba(177,105,218,.28);
}
#v137-battle-pass.v161-halloween-pass .v137-brand-kicker {
    color:#d0b574;
    letter-spacing:.31em;
}
#v137-battle-pass.v161-halloween-pass .v137-pass-header h2 {
    color:#f8e7ba;
    text-shadow:0 3px 0 #000,0 0 24px rgba(177,105,218,.22);
}
#v137-battle-pass.v161-halloween-pass .v137-seal-wallet {
    border-color:rgba(218,190,130,.53);
    background:linear-gradient(135deg,rgba(111,24,46,.38),rgba(10,7,17,.9));
}

/* 左のルカ、右のリアナ、中央の月蝕。画像はv134のシーズン資産のみ。 */
#v137-battle-pass.v161-halloween-pass .v137-pass-hero {
    min-height:clamp(238px,31dvh,316px);
    display:block;
    overflow:hidden;
    border-bottom-color:rgba(214,184,124,.42);
    background:
        radial-gradient(circle at 50% 43%,rgba(177,105,218,.18),transparent 19%),
        linear-gradient(90deg,rgba(5,13,18,.98),rgba(24,10,34,.65) 34%,rgba(24,10,34,.62) 66%,rgba(17,6,13,.98)),
        repeating-linear-gradient(114deg,transparent 0 31px,rgba(226,201,151,.018) 32px 33px),
        #06070d;
}
#v137-battle-pass.v161-halloween-pass .v137-pass-hero::before {
    content:"ECLIPSE\A MASQUERADE";
    left:50%;
    top:48%;
    color:rgba(245,225,185,.033);
    font-size:clamp(68px,9vw,142px);
    line-height:.71;
    letter-spacing:-.075em;
    transform:translate(-50%,-50%) skewX(-7deg);
}
#v137-battle-pass.v161-halloween-pass .v137-pass-hero::after {
    z-index:1;
    background:
        linear-gradient(90deg,rgba(0,0,0,.32),transparent 20% 80%,rgba(0,0,0,.34)),
        linear-gradient(180deg,rgba(0,0,0,.06),transparent 52%,rgba(0,0,0,.71));
}
#v137-battle-pass.v161-halloween-pass #v137-hero-left,
#v137-battle-pass.v161-halloween-pass #v137-hero-right,
#v137-battle-pass.v161-halloween-pass .v158-pass-cast,
#v137-battle-pass.v161-halloween-pass .v158-pass-cut,
#v137-battle-pass.v161-halloween-pass .v158-pass-crest { display:none !important; }
























#v137-battle-pass.v161-halloween-pass .v137-hero-copy {
    position:absolute;
    z-index:8;
    left:50%;
    top:15px;
    width:min(34%,470px);
    max-width:none;
    padding:0;
    text-align:center;
    transform:translateX(-50%);
}
#v137-battle-pass.v161-halloween-pass .v137-hero-copy h3 {
    margin:5px 0 6px;
    color:#f7e7bb;
    font-size:clamp(29px,3.2vw,49px);
    line-height:.96;
    letter-spacing:.09em;
    text-shadow:0 4px 0 #000,0 10px 25px #000,0 0 22px rgba(177,105,218,.34);
}
#v137-battle-pass.v161-halloween-pass .v137-hero-copy p {
    max-width:430px;
    margin-inline:auto;
    color:#b9ad91;
    font-size:clamp(7px,.72vw,10px);
    line-height:1.55;
}
#v137-battle-pass.v161-halloween-pass .v137-hero-copy p strong { color:#e4c987; }
#v137-battle-pass.v161-halloween-pass .v137-progress-dossier {
    position:absolute;
    z-index:9;
    left:50%;
    right:auto;
    bottom:13px;
    width:min(35%,480px);
    box-sizing:border-box;
    margin:0;
    padding:10px 12px;
    border-color:rgba(224,196,138,.58);
    background:
        linear-gradient(135deg,rgba(102,27,57,.34),transparent 45%),
        rgba(4,6,12,.9);
    box-shadow:inset 0 0 0 3px rgba(0,0,0,.48),0 14px 32px rgba(0,0,0,.62);
    transform:translateX(-50%);
    backdrop-filter:blur(5px);
}
#v137-battle-pass.v161-halloween-pass .v137-level-medallion {
    width:59px;
    background:conic-gradient(#bc91d4 var(--v137-tier-progress),rgba(255,255,255,.1) 0);
}
#v137-battle-pass.v161-halloween-pass .v137-level-medallion::before {
    border-color:rgba(222,196,140,.54);
    background:radial-gradient(circle,#4f245f,#0a0710 72%);
}
#v137-battle-pass.v161-halloween-pass .v137-level-medallion::after {
    content:"";
    top:-7px;
    left:50%;
    width:15px;
    height:8px;
    border:1px solid #d7bd83;
    border-bottom:0;
    border-radius:15px 15px 0 0;
    transform:translateX(-50%);
}
#v137-battle-pass.v161-halloween-pass .v137-hero-stats { margin-top:8px; }
#v137-battle-pass.v161-halloween-pass .v137-hero-stat { padding:5px 6px; }

/* 月夜のカード列・密命・装具庫。 */
#v137-battle-pass.v161-halloween-pass .v137-pass-tabs {
    min-height:53px;
    padding-inline:clamp(10px,2.1vw,30px);
    gap:4px;
    border-bottom-color:rgba(205,174,116,.39);
    background:linear-gradient(180deg,#110b1c,#05070b);
}
#v137-battle-pass.v161-halloween-pass .v137-pass-tab {
    min-width:170px;
    min-height:50px;
    border:1px solid rgba(211,183,127,.16);
    border-top:0;
    border-radius:0 0 19px 19px;
    color:#91869a;
    background:radial-gradient(circle at 50% -20%,rgba(177,105,218,.09),transparent 65%);
    clip-path:none;
}
#v137-battle-pass.v161-halloween-pass .v137-pass-tab::before {
    color:#78647e;
}
#v137-battle-pass.v161-halloween-pass .v137-pass-tab.is-active {
    border-color:rgba(218,188,128,.39);
    color:#f3dfae;
    background:radial-gradient(circle at 50% 0,rgba(177,105,218,.21),transparent 72%),linear-gradient(180deg,rgba(115,25,52,.32),transparent);
}
#v137-battle-pass.v161-halloween-pass .v137-pass-tab.is-active::after {
    background:#bd8fd5;
    box-shadow:0 0 10px rgba(189,143,213,.7);
}
#v137-battle-pass.v161-halloween-pass .v137-panel-heading {
    background:linear-gradient(90deg,rgba(95,35,112,.17),transparent 40%);
}
#v137-battle-pass.v161-halloween-pass .v137-panel-heading::after {
    background:linear-gradient(90deg,transparent,rgba(218,188,128,.42));
}
#v137-battle-pass.v161-halloween-pass .v137-reward-road { gap:12px; }
#v137-battle-pass.v161-halloween-pass .v137-reward-card {
    border-color:rgba(214,185,128,.29);
    border-radius:14px 14px 7px 7px;
    background:
        radial-gradient(circle at 86% 10%,rgba(177,105,218,.16),transparent 31%),
        linear-gradient(153deg,#18131e,#05070a 74%);
    box-shadow:inset 0 0 0 3px #05070a,inset 0 0 0 4px rgba(216,190,139,.08),0 11px 27px rgba(0,0,0,.28);
}
#v137-battle-pass.v161-halloween-pass .v137-reward-card::before {
    border-color:rgba(225,198,143,.1);
    border-radius:10px 10px 4px 4px;
}
#v137-battle-pass.v161-halloween-pass .v137-reward-card::after {
    border-color:rgba(224,194,134,.58);
}
#v137-battle-pass.v161-halloween-pass .v137-reward-card.premium {
    border-color:rgba(177,105,218,.7);
    background:radial-gradient(circle at 84% 12%,rgba(177,105,218,.3),transparent 36%),linear-gradient(145deg,#291134,#08070d 76%);
}
#v137-battle-pass.v161-halloween-pass .v137-reward-card.is-milestone {
    border-color:rgba(232,202,142,.8);
    box-shadow:inset 0 0 0 3px #05070a,inset 0 0 0 4px rgba(232,202,142,.2),0 0 24px rgba(177,105,218,.18);
}
#v137-battle-pass.v161-halloween-pass .v137-reward-card.is-milestone::after {
    content:"";
    width:12px;
    height:12px;
    border:1px solid #e2c98f;
    border-radius:50%;
    background:radial-gradient(circle at 38% 38%,#f2e0b1 0 22%,#8d4a9f 25% 60%,#160c20 63%);
}
#v137-battle-pass.v161-halloween-pass .v137-tier-column:has(.v137-reward-card.is-skin-reward) {
    width:clamp(182px,14vw,220px);
}
#v137-battle-pass.v161-halloween-pass .v137-reward-card.is-skin-reward {
    min-height:164px;
    padding:7px 8px 23px;
    border-color:rgba(230,198,133,.78);
    background:
        radial-gradient(circle at 50% 35%,rgba(177,105,218,.25),transparent 45%),
        linear-gradient(153deg,#2b1235,#07070d 78%);
    cursor:pointer;
}
#v137-battle-pass.v161-halloween-pass .v137-reward-card.is-skin-reward .v137-reward-symbol {
    display:none;
}
#v137-battle-pass.v161-halloween-pass .v137-reward-skin-art {
    position:relative;
    display:flex;
    height:92px;
    align-items:flex-end;
    justify-content:center;
    margin:0 -2px 4px;
    isolation:isolate;
}
#v137-battle-pass.v161-halloween-pass .v137-reward-skin-art::before {
    content:"";
    position:absolute;
    z-index:-1;
    inset:10px 9% 2px;
    border:1px solid rgba(226,199,145,.24);
    border-radius:50%;
    background:radial-gradient(circle,rgba(134,69,158,.28),transparent 68%);
    box-shadow:0 0 22px rgba(177,105,218,.19);
}
#v137-battle-pass.v161-halloween-pass .v137-reward-skin-art img {
    display:block;
    width:58px;
    height:86px;
    object-fit:contain;
    border:1px solid rgba(239,215,164,.58);
    border-radius:6px;
    background:#07070b;
    box-shadow:0 8px 14px rgba(0,0,0,.68);
}
#v137-battle-pass.v161-halloween-pass .v137-reward-skin-art img:first-child {
    transform:rotate(-5deg) translateX(4px);
}
#v137-battle-pass.v161-halloween-pass .v137-reward-skin-art img:nth-child(2) {
    z-index:2;
    transform:rotate(5deg) translateX(-4px);
}
#v137-battle-pass.v161-halloween-pass .v137-reward-skin-art b {
    position:absolute;
    z-index:4;
    right:4px;
    bottom:1px;
    padding:3px 5px;
    border:1px solid rgba(228,200,144,.5);
    color:#f2dfac;
    background:rgba(7,6,12,.94);
    font:800 5.5px/1 "Courier New",monospace;
    letter-spacing:.08em;
}
#v137-battle-pass.v161-halloween-pass .v137-reward-card.is-skin-reward .v137-reward-type {
    margin-top:2px;
    color:#c9a9d5;
}
#v137-battle-pass.v161-halloween-pass .v137-reward-card.is-skin-reward .v137-reward-name {
    margin-top:3px;
    color:#f1dfb3;
    font-size:11px;
}
#v137-battle-pass.v161-halloween-pass .v137-reward-symbol {
    border-color:rgba(228,199,141,.56);
    border-radius:45% 55% 48% 52%;
    background:linear-gradient(145deg,#63213f,#21102d 70%);
}
#v137-battle-pass.v161-halloween-pass .v137-tier-node span {
    border-color:rgba(216,185,128,.5);
    border-radius:8px;
    background:#0b0810;
}
#v137-battle-pass.v161-halloween-pass .v137-mission-layout { gap:16px; }
#v137-battle-pass.v161-halloween-pass .v137-mission-group {
    border-color:rgba(211,181,123,.31);
    border-radius:16px 3px 16px 3px;
    background:radial-gradient(circle at 90% 10%,rgba(177,105,218,.1),transparent 28%),linear-gradient(120deg,rgba(102,24,52,.15),rgba(5,8,11,.89));
}
#v137-battle-pass.v161-halloween-pass .v137-mission-group::after {
    content:"MIDNIGHT ORDER";
    color:rgba(191,143,210,.19);
    border-color:rgba(177,105,218,.16);
}
#v137-battle-pass.v161-halloween-pass .v137-mission-group-header {
    border-bottom-color:rgba(213,182,124,.27);
    background:linear-gradient(90deg,rgba(99,27,57,.35),rgba(177,105,218,.045),transparent);
}
#v137-battle-pass.v161-halloween-pass .v137-vault-intro {
    border-color:rgba(225,194,133,.48);
    border-radius:17px 4px 17px 4px;
    background:radial-gradient(circle at 84% 45%,rgba(177,105,218,.2),transparent 23%),linear-gradient(115deg,rgba(111,25,55,.34),rgba(5,7,12,.93) 57%,rgba(50,77,61,.14));
}
#v137-battle-pass.v161-halloween-pass .v137-vault-intro::after {
    content:"";
    right:18%;
    width:56px;
    height:56px;
    border:1px solid rgba(232,207,154,.18);
    border-radius:50%;
    background:radial-gradient(circle at 62% 42%,#080912 0 47%,transparent 48%),radial-gradient(circle,#dcc890 0 62%,transparent 64%);
}
#v137-battle-pass.v161-halloween-pass .v137-vault-item {
    border-color:rgba(213,184,127,.31);
    border-radius:17px 6px 17px 6px;
    background:radial-gradient(circle at 85% 13%,rgba(177,105,218,.18),transparent 32%),linear-gradient(145deg,#19131e,#05070a 78%);
}
#v137-battle-pass.v161-halloween-pass .v137-vault-item.is-equipped {
    border-color:rgba(191,143,213,.77);
    background:radial-gradient(circle at 84% 14%,rgba(177,105,218,.3),transparent 34%),linear-gradient(145deg,#21132d,#05070a 78%);
}
#v137-battle-pass.v161-halloween-pass .v137-pass-footer {
    border-top-color:rgba(213,181,120,.42);
    background:linear-gradient(90deg,rgba(104,25,54,.18),transparent 36%),rgba(3,5,9,.99);
}

/* ホーム入口にも月蝕とカード舞踏会の質感を与える。 */
#home-screen #v137-home-battle-pass-button.v161-halloween-home-entry {
    overflow:hidden;
    border-color:rgba(211,180,121,.67) !important;
    background:
        radial-gradient(circle at 82% 30%,transparent 0 12px,#d6c38f 13px 21px,transparent 22px),
        radial-gradient(circle at 87% 27%,#0b0914 0 19px,transparent 20px),
        linear-gradient(116deg,rgba(100,25,55,.81),rgba(28,12,38,.97) 58%,rgba(4,9,10,.98)) !important;
    box-shadow:inset 0 0 0 2px rgba(0,0,0,.5),inset 0 0 22px rgba(177,105,218,.08);
}
#home-screen #v137-home-battle-pass-button.v161-halloween-home-entry::before {
    content:"";
    position:absolute;
    inset:5px;
    border:1px solid rgba(224,195,136,.15);
    clip-path:polygon(0 0,78% 0,84% 12%,100% 12%,100% 100%,0 100%);
    pointer-events:none;
}
#v137-home-battle-pass-button.v161-halloween-home-entry .home-menu-icon {
    width:34px;
    color:#e8d29a !important;
    text-shadow:none !important;
}
#v137-home-battle-pass-button.v161-halloween-home-entry .home-menu-icon svg {
    width:29px;
    height:29px;
    display:block;
    overflow:visible;
    filter:drop-shadow(0 0 6px rgba(177,105,218,.42));
}
#v137-home-battle-pass-button.v161-halloween-home-entry .home-menu-name { color:#f0ddb0; }
#v137-home-battle-pass-button.v161-halloween-home-entry .home-menu-sub { color:#aa90b3; }

/* v183 パス限定縁。薄いセル調の外周に、季節ごとの小さな紋章を添える。 */
.v161-pass-profile-frame {
    position:absolute;
    inset:-5px;
    z-index:11;
    width:calc(100% + 10px);
    height:calc(100% + 10px);
    display:none;
    overflow:visible;
    pointer-events:none;
    filter:drop-shadow(0 2px 0 rgba(0,0,0,.65));
}
#v105-home-profile-button > .v161-pass-profile-frame {
    inset:-3px;
    width:calc(100% + 6px);
    height:calc(100% + 6px);
}
.v161-pass-profile-frame .v161-frame-theme { display:none; }
body[data-v137-profile-frame="spider-candelabrum"] #v105-home-profile-button > .v161-pass-profile-frame,
body[data-v137-profile-frame="spider-candelabrum"] #v105-profile-preview > .v161-pass-profile-frame,
body[data-v137-profile-frame="talisman-demon-gate"] #v105-home-profile-button > .v161-pass-profile-frame,
body[data-v137-profile-frame="talisman-demon-gate"] #v105-profile-preview > .v161-pass-profile-frame,
body[data-v137-profile-frame="crescent-castle-gate"] #v105-home-profile-button > .v161-pass-profile-frame,
body[data-v137-profile-frame="crescent-castle-gate"] #v105-profile-preview > .v161-pass-profile-frame,
body[data-v137-profile-frame="night-rose-throne"] #v105-home-profile-button > .v161-pass-profile-frame,
body[data-v137-profile-frame="night-rose-throne"] #v105-profile-preview > .v161-pass-profile-frame { display:block; }
body[data-v137-profile-frame="spider-candelabrum"] .v161-frame-theme--spider-candelabrum,
body[data-v137-profile-frame="talisman-demon-gate"] .v161-frame-theme--talisman-demon-gate,
body[data-v137-profile-frame="crescent-castle-gate"] .v161-frame-theme--crescent-castle-gate,
body[data-v137-profile-frame="night-rose-throne"] .v161-frame-theme--night-rose-throne { display:block; }

body:is(
    [data-v137-profile-frame="spider-candelabrum"],
    [data-v137-profile-frame="talisman-demon-gate"],
    [data-v137-profile-frame="crescent-castle-gate"],
    [data-v137-profile-frame="night-rose-throne"]
) #v105-home-profile-button,
body:is(
    [data-v137-profile-frame="spider-candelabrum"],
    [data-v137-profile-frame="talisman-demon-gate"],
    [data-v137-profile-frame="crescent-castle-gate"],
    [data-v137-profile-frame="night-rose-throne"]
) #v105-profile-preview {
    overflow:visible !important;
    clip-path:none !important;
    border:0 !important;
}
body:is(
    [data-v137-profile-frame="spider-candelabrum"],
    [data-v137-profile-frame="talisman-demon-gate"],
    [data-v137-profile-frame="crescent-castle-gate"],
    [data-v137-profile-frame="night-rose-throne"]
) :is(#v105-home-profile-button,#v105-profile-preview) > :is(.v158-profile-ornament,.v160-generated-profile-frame) {
    display:none !important;
}
body:is(
    [data-v137-profile-frame="spider-candelabrum"],
    [data-v137-profile-frame="talisman-demon-gate"],
    [data-v137-profile-frame="crescent-castle-gate"],
    [data-v137-profile-frame="night-rose-throne"]
) :is(#v105-home-profile-button,#v105-profile-preview) > :is(
    .v105-profile-emblem,.v105-profile-copy,.v105-profile-edit-mark,.v105-preview-character,.v105-preview-name,.v105-preview-title,.v107-preview-rank-row,.v106-profile-preview-rank
) { position:relative;z-index:15; }
body:is(
    [data-v137-profile-frame="spider-candelabrum"],
    [data-v137-profile-frame="talisman-demon-gate"],
    [data-v137-profile-frame="crescent-castle-gate"],
    [data-v137-profile-frame="night-rose-throne"]
) :is(#v105-home-profile-button,#v105-profile-preview) > .v137-profile-sigil { z-index:16 !important; }







@media (max-width:1100px) {
    
    
    
    
    
    #v137-battle-pass.v161-halloween-pass .v137-hero-copy { width:39%; }
    #v137-battle-pass.v161-halloween-pass .v137-progress-dossier { width:40%; }
}
@media (max-width:760px) {
    #v137-battle-pass.v161-halloween-pass .v137-pass-shell { clip-path:none; }
    #v137-battle-pass.v161-halloween-pass .v137-pass-header::after { display:none; }
    #v137-battle-pass.v161-halloween-pass .v137-pass-hero { min-height:230px; }
    
    
    
    
    
    
    #v137-battle-pass.v161-halloween-pass .v137-hero-copy { top:10px;width:48%; }
    #v137-battle-pass.v161-halloween-pass .v137-hero-copy h3 { font-size:clamp(23px,6vw,34px); }
    #v137-battle-pass.v161-halloween-pass .v137-hero-copy p { font-size:6.5px;line-height:1.35; }
    #v137-battle-pass.v161-halloween-pass .v137-progress-dossier { bottom:8px;width:51%;padding:7px 8px; }
    #v137-battle-pass.v161-halloween-pass .v137-level-medallion { width:46px; }
    #v137-battle-pass.v161-halloween-pass .v137-level-medallion strong { font-size:22px; }
    #v137-battle-pass.v161-halloween-pass .v137-hero-stats { display:none; }
    #v137-battle-pass.v161-halloween-pass .v137-pass-tabs { padding-inline:0;gap:1px; }
    #v137-battle-pass.v161-halloween-pass .v137-pass-tab { min-width:0;border-radius:0 0 11px 11px; }
    .v161-pass-profile-frame { inset:-4px;width:calc(100% + 8px);height:calc(100% + 8px); }
    #v105-home-profile-button > .v161-pass-profile-frame { inset:-3px;width:calc(100% + 6px);height:calc(100% + 6px); }
}
@media (max-width:480px) {
    #v137-battle-pass.v161-halloween-pass .v137-pass-hero { min-height:213px; }
    
    
    
    
    
    
    #v137-battle-pass.v161-halloween-pass .v137-hero-copy { width:57%; }
    #v137-battle-pass.v161-halloween-pass .v137-hero-copy p { display:none; }
    #v137-battle-pass.v161-halloween-pass .v137-progress-dossier { width:58%; }
    #v137-battle-pass.v161-halloween-pass .v137-pass-tab::before { display:none; }
}
@media (max-width:365px) {
    
    
    
}
@media (max-height:620px) and (min-width:701px) {
    #v137-battle-pass.v161-halloween-pass .v137-pass-hero { min-height:172px; }
    
    
    #v137-battle-pass.v161-halloween-pass .v137-hero-copy { top:8px; }
    #v137-battle-pass.v161-halloween-pass .v137-hero-copy h3 { font-size:28px; }
    #v137-battle-pass.v161-halloween-pass .v137-hero-copy p { display:none; }
    #v137-battle-pass.v161-halloween-pass .v137-progress-dossier { bottom:7px;padding:6px 9px; }
    #v137-battle-pass.v161-halloween-pass .v137-level-medallion { width:43px; }
    #v137-battle-pass.v161-halloween-pass .v137-hero-stats { display:none; }
}
@media (prefers-reduced-motion:reduce) {
    
    #v137-battle-pass.v161-halloween-pass .v137-reward-card,
    #v137-battle-pass.v161-halloween-pass .v137-vault-item,
    #v137-battle-pass.v161-halloween-pass .v137-pass-tab,
    #v137-battle-pass.v161-halloween-pass .v137-action { transition:none !important; }
}


/* SOURCE styles/pass-polish-trial.css */
/* SHOCKER_V162_PASS_POLISH_AND_TRIAL / MIDNIGHT REWARD ROUTE */
:root {
    --v162-ink:#03040a;
    --v162-wine:#6f1735;
    --v162-violet:#6d3d87;
    --v162-gold:#d9bd7b;
    --v162-gold-bright:#f6e5b4;
    --v162-silver:#bac7d4;
    --v162-mint:#78b79d;
}

#v162-global-toast {
    position:fixed;
    z-index:2147483646;
    left:50%;
    bottom:max(22px,env(safe-area-inset-bottom));
    min-width:min(430px,88vw);
    max-width:min(620px,92vw);
    box-sizing:border-box;
    padding:12px 18px;
    border:1px solid rgba(225,196,137,.58);
    border-radius:3px 14px 3px 14px;
    color:#f2dfb0;
    background:linear-gradient(120deg,rgba(104,24,51,.96),rgba(12,8,18,.98) 68%);
    box-shadow:0 18px 46px rgba(0,0,0,.72),inset 0 0 0 3px rgba(0,0,0,.36);
    font:700 10px/1.45 Georgia,"Yu Mincho",serif;
    letter-spacing:.06em;
    text-align:center;
    opacity:0;
    pointer-events:none;
    transform:translate(-50%,18px);
    transition:opacity .2s ease,transform .2s ease;
}
#v162-global-toast.show { opacity:1;transform:translate(-50%,0); }

body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-pass-main,
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-panel {
    min-width:0;
    width:100%;
}

/* The reward panel owns its viewport. This removes the old nested vertical scroller. */
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass #v137-panel-rewards:not([hidden]) {
    position:relative;
    display:grid;
    grid-template-rows:auto auto auto minmax(0,1fr);
    min-width:0;
    min-height:0;
    overflow:hidden !important;
    isolation:isolate;
    background:
        radial-gradient(ellipse at 11% 56%,rgba(155,43,43,.12),transparent 31%),
        radial-gradient(ellipse at 91% 47%,rgba(104,58,139,.17),transparent 34%),
        linear-gradient(180deg,rgba(12,8,20,.96),rgba(3,6,10,.985));
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass #v137-panel-rewards > *:not(.v162-route-scenery) {
    position:relative;
    z-index:2;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass #v137-panel-rewards .v137-panel-heading {
    padding-top:12px;
    padding-bottom:7px;
    background:
        linear-gradient(90deg,rgba(112,29,62,.26),transparent 42%),
        linear-gradient(180deg,rgba(255,255,255,.018),transparent);
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass #v137-panel-rewards .v137-panel-heading h3 {
    color:#f5e3b5;
    font-size:clamp(18px,1.6vw,23px);
    text-shadow:0 3px 0 #000,0 0 18px rgba(217,189,123,.14);
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass #v137-panel-rewards .v137-panel-heading p {
    color:#a99d84;
    font-size:7.5px;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass #v137-panel-rewards .v137-track-legend {
    padding-bottom:6px;
}

.v162-route-scenery {
    position:absolute;
    z-index:0;
    inset:0;
    overflow:hidden;
    pointer-events:none;
    opacity:.78;
}
.v162-route-scenery svg {
    position:absolute;
    right:0;
    bottom:0;
    left:0;
    width:100%;
    height:76%;
    filter:drop-shadow(0 -10px 24px rgba(92,51,122,.16));
}
.v162-route-scenery::before,
.v162-route-scenery::after {
    content:"";
    position:absolute;
    z-index:2;
    left:-12%;
    bottom:8%;
    width:124%;
    height:34%;
    border-radius:50%;
    background:radial-gradient(ellipse,rgba(170,139,187,.12),rgba(98,78,117,.045) 42%,transparent 72%);
    filter:blur(15px);
    animation:v162-fog-drift 13s ease-in-out infinite alternate;
}
.v162-route-scenery::after {
    bottom:-8%;
    opacity:.55;
    animation-duration:17s;
    animation-direction:alternate-reverse;
}

.v162-route-console {
    min-width:0;
    display:grid;
    grid-template-columns:minmax(228px,.78fr) minmax(280px,1.22fr) auto;
    align-items:center;
    gap:10px;
    margin:0 clamp(14px,2vw,27px) 8px;
    padding:7px 8px;
    border:1px solid rgba(218,189,126,.32);
    border-radius:4px 17px 4px 17px;
    background:
        linear-gradient(90deg,rgba(111,24,53,.31),rgba(15,10,23,.91) 38%,rgba(51,31,72,.42)),
        #08090f;
    box-shadow:inset 0 0 0 3px rgba(2,3,6,.52),0 10px 28px rgba(0,0,0,.28);
    clip-path:polygon(0 0,calc(100% - 15px) 0,100% 15px,100% 100%,15px 100%,0 calc(100% - 15px));
}
.v162-console-title {
    min-width:0;
    padding-left:8px;
    border-left:2px solid #b27384;
}
.v162-console-title small {
    display:block;
    overflow:hidden;
    color:#a786a9;
    font:800 6px/1 "Courier New",monospace;
    letter-spacing:.23em;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.v162-console-title strong {
    display:block;
    margin-top:4px;
    color:#ead7aa;
    font:500 13px/1.1 Georgia,"Yu Mincho",serif;
    letter-spacing:.09em;
}
.v162-console-trials {
    min-width:0;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
}
.v162-trial-shortcut {
    position:relative;
    min-width:0;
    min-height:39px;
    padding:6px 33px 6px 9px;
    overflow:hidden;
    border:1px solid rgba(216,188,129,.32);
    border-radius:2px 11px 2px 11px;
    color:#d8c9a8;
    background:linear-gradient(120deg,rgba(74,18,36,.82),rgba(7,8,13,.96));
    text-align:left;
    cursor:pointer;
}
.v162-trial-shortcut[data-v162-trial-skin="s1-halloween-riana-vampire"] {
    background:linear-gradient(120deg,rgba(67,31,91,.84),rgba(10,7,14,.96));
}
.v162-trial-shortcut::after {
    content:"♠";
    position:absolute;
    right:9px;
    top:50%;
    color:rgba(239,215,165,.68);
    font:500 20px/1 Georgia,serif;
    transform:translateY(-50%) rotate(12deg);
}
.v162-trial-shortcut small {
    display:block;
    color:#9f8da2;
    font:800 5.5px/1 "Courier New",monospace;
    letter-spacing:.15em;
}
.v162-trial-shortcut b {
    display:block;
    margin-top:4px;
    overflow:hidden;
    color:#f0ddb0;
    font:700 9px/1 Georgia,"Yu Mincho",serif;
    letter-spacing:.06em;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.v162-trial-shortcut:hover,
.v162-trial-shortcut:focus-visible {
    border-color:#f1d58d;
    outline:none;
    filter:brightness(1.14);
    box-shadow:0 0 18px rgba(177,105,218,.14);
}

.v162-route-controls {
    display:grid;
    grid-template-columns:34px minmax(120px,210px) 34px;
    align-items:center;
    gap:6px;
}
.v162-road-button,
.v162-road-nav {
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border:1px solid rgba(220,191,131,.42);
    border-radius:50%;
    color:#ecd7a3;
    background:radial-gradient(circle at 36% 30%,#4c274f,#0a0810 67%);
    font:700 16px/1 Georgia,serif;
    cursor:pointer;
    box-shadow:inset 0 0 0 3px rgba(2,3,6,.76);
}
.v162-road-button:hover,
.v162-road-button:focus-visible,
.v162-road-nav:hover,
.v162-road-nav:focus-visible { border-color:#f4db98;outline:none;filter:brightness(1.15); }
.v162-road-button:disabled,
.v162-road-nav:disabled { opacity:.32;cursor:default;filter:none; }
.v162-route-meter { min-width:0;display:grid;gap:4px; }
.v162-route-meter output {
    color:#b9aa8b;
    font:800 6px/1 "Courier New",monospace;
    letter-spacing:.12em;
    text-align:center;
    white-space:nowrap;
}
.v162-route-range {
    width:100%;
    height:14px;
    margin:0;
    accent-color:#b6749e;
    cursor:ew-resize;
}

body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-scroll {
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    box-sizing:border-box;
    overflow-x:scroll !important;
    overflow-y:auto !important;
    padding:4px clamp(14px,2vw,27px) 15px;
    scrollbar-width:auto;
    scrollbar-color:#a36b85 #08080e;
    scrollbar-gutter:stable;
    overscroll-behavior-x:contain;
    touch-action:pan-x pan-y;
    cursor:grab;
    background:
        linear-gradient(180deg,rgba(255,255,255,.018),transparent 13%),
        linear-gradient(90deg,rgba(89,30,46,.08),transparent 24% 76%,rgba(79,46,105,.09));
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-scroll.is-v162-dragging {
    cursor:grabbing;
    scroll-snap-type:none;
    user-select:none;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-scroll.v162-road-dragging {
    cursor:grabbing;
    scroll-snap-type:none;
    user-select:none;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-scroll::-webkit-scrollbar { height:13px; }
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-scroll::-webkit-scrollbar-track {
    margin-inline:clamp(14px,3vw,48px);
    border:1px solid rgba(220,190,130,.17);
    border-radius:9px;
    background:#05060a;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-scroll::-webkit-scrollbar-thumb {
    border:3px solid #05060a;
    border-radius:9px;
    background:linear-gradient(90deg,#6f2947,#c8a66e 51%,#67407c);
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-road {
    position:relative;
    width:max-content;
    min-width:max-content;
    min-height:100%;
    align-items:stretch;
    gap:13px;
    padding:5px 0 11px;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-road::before {
    content:"";
    position:absolute;
    z-index:-1;
    left:0;
    right:0;
    top:50%;
    height:2px;
    background:
        linear-gradient(90deg,transparent,#bc9363 2% 7%,#7e496f 12% 88%,#cbb078 93% 98%,transparent),
        repeating-linear-gradient(90deg,transparent 0 51px,rgba(235,212,161,.44) 52px 54px);
    box-shadow:0 0 13px rgba(177,105,218,.2);
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-column {
    position:relative;
    width:clamp(142px,10.8vw,174px);
    flex:0 0 auto;
    grid-template-rows:minmax(130px,1fr) 43px minmax(130px,1fr);
    gap:6px;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-column::before {
    content:"";
    position:absolute;
    z-index:-1;
    inset:-4px -5px;
    border:1px solid rgba(214,185,128,.06);
    border-radius:18px 5px 18px 5px;
    background:linear-gradient(180deg,rgba(80,29,55,.05),rgba(5,7,11,.14));
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-column.is-v162-current::before {
    border-color:rgba(244,218,153,.37);
    background:linear-gradient(180deg,rgba(123,40,68,.17),rgba(75,49,98,.13));
    box-shadow:0 0 24px rgba(215,181,110,.11);
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-column[data-v162-tier="1"],
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-column[data-v162-tier="20"] {
    width:clamp(214px,16vw,258px);
    --v162-milestone:#d4a063;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-column[data-v162-tier="20"] {
    --v162-milestone:#b982d2;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-column[data-v162-tier="1"]::after,
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-column[data-v162-tier="20"]::after {
    content:"EARLY SKIN · TWO CARD SET";
    position:absolute;
    z-index:5;
    left:10px;
    top:9px;
    padding:4px 7px;
    border:1px solid color-mix(in srgb,var(--v162-milestone) 58%,transparent);
    border-radius:9px 2px 9px 2px;
    color:#f2dfb0;
    background:rgba(4,5,9,.88);
    font:900 6px/1 "Courier New",monospace;
    letter-spacing:.11em;
    pointer-events:none;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-column[data-v162-tier="20"]::after {
    content:"FINAL SKIN · TWO CARD SET";
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-card {
    border-radius:16px 4px 16px 4px;
    transition:transform .18s ease,border-color .18s ease,filter .18s ease,box-shadow .18s ease;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-card .v137-reward-type { font-size:6.5px; }
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-card .v137-reward-name { font-size:11px;line-height:1.18; }
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-card .v137-reward-state { font-size:6.5px;line-height:1.25; }
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-card.is-skin-reward {
    min-height:174px;
    padding-top:24px;
    border-color:var(--v162-milestone,#d7b875);
    filter:none;
    box-shadow:
        inset 0 0 0 3px #05060a,
        inset 0 0 0 4px color-mix(in srgb,var(--v162-milestone,#d7b875) 32%,transparent),
        0 0 28px color-mix(in srgb,var(--v162-milestone,#d7b875) 18%,transparent);
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-card.is-skin-reward.is-locked.can-trial {
    cursor:pointer;
    filter:saturate(.82) brightness(.83);
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-card.is-skin-reward.is-locked.can-trial:hover,
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-card.is-skin-reward.is-locked.can-trial:focus-visible {
    transform:translateY(-4px);
    border-color:#f6dfa2;
    outline:none;
    filter:saturate(1) brightness(1.04);
    box-shadow:inset 0 0 0 3px #05060a,inset 0 0 0 4px rgba(244,220,163,.3),0 0 32px rgba(177,105,218,.23);
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-skin-art {
    height:104px;
    margin-top:0;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-skin-art img {
    width:70px;
    height:101px;
    border-radius:8px;
    background:#06070a;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-skin-art b {
    right:8px;
    bottom:-1px;
    font-size:6px;
}
.v162-trial-mark {
    position:absolute;
    z-index:8;
    right:7px;
    top:8px;
    padding:4px 7px;
    border:1px solid rgba(244,219,158,.6);
    border-radius:10px 2px 10px 2px;
    color:#ffedbb;
    background:linear-gradient(115deg,rgba(117,28,54,.93),rgba(43,21,57,.94));
    box-shadow:0 5px 14px rgba(0,0,0,.42);
    font:900 6px/1 "Courier New",monospace;
    letter-spacing:.12em;
    pointer-events:none;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-node span {
    border-color:rgba(220,191,132,.64);
    border-radius:50%;
    background:radial-gradient(circle at 38% 33%,#4e2a55,#09080e 69%);
    box-shadow:inset 0 0 0 3px #05060a,0 0 15px rgba(177,105,218,.18);
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-column.is-v162-current .v137-tier-node span {
    border-color:#f5dda1;
    color:#fff0c2;
    background:radial-gradient(circle at 38% 33%,#985263,#251126 60%,#07070b 62%);
    box-shadow:inset 0 0 0 3px #05060a,0 0 20px rgba(226,189,111,.38);
}

/* Home entry previews the actual pair without replacing the preserved card art. */
.v162-home-skin-pair {
    position:absolute;
    z-index:0;
    top:-10px;
    right:10px;
    width:77px;
    height:72px;
    overflow:hidden;
    pointer-events:none;
    opacity:.28;
    filter:saturate(.9) contrast(1.08);
}
.v162-home-skin-pair img {
    position:absolute;
    right:6px;
    top:2px;
    width:39px;
    height:55px;
    object-fit:contain;
    border:1px solid rgba(239,214,157,.55);
    border-radius:4px;
    background:#07070a;
    transform:rotate(8deg);
}
.v162-home-skin-pair img:first-child { right:35px;top:7px;transform:rotate(-9deg); }
#v137-home-battle-pass-button.v161-halloween-home-entry > *:not(.v162-home-skin-pair) { position:relative;z-index:1; }

@keyframes v162-fog-drift {
    from { transform:translate3d(-2%,0,0) scaleX(.97);opacity:.45; }
    to { transform:translate3d(3%,-4px,0) scaleX(1.03);opacity:.75; }
}

@media (max-width:980px) {
    .v162-route-console { grid-template-columns:minmax(180px,.65fr) minmax(250px,1.35fr) auto;gap:7px; }
    .v162-console-title small { display:none; }
    .v162-route-controls { grid-template-columns:32px minmax(96px,150px) 32px; }
    .v162-road-button { width:32px;height:32px; }
}
@media (max-width:760px) {
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass #v137-panel-rewards {
        grid-template-rows:auto auto auto minmax(0,1fr);
    }
    .v162-route-console {
        grid-template-columns:1fr auto;
        margin-inline:max(9px,env(safe-area-inset-left));
        padding:6px;
    }
    .v162-console-title { display:none; }
    .v162-console-trials { grid-template-columns:1fr 1fr; }
    .v162-trial-shortcut { min-height:36px;padding-right:27px; }
    .v162-trial-shortcut::after { right:7px;font-size:16px; }
    .v162-route-controls { grid-template-columns:31px minmax(80px,120px) 31px; }
    .v162-road-button { width:31px;height:31px; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-scroll {
        padding-inline:max(9px,env(safe-area-inset-left));
    }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-column { width:136px; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-column[data-v162-tier="1"],
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-column[data-v162-tier="20"] { width:194px; }
}
@media (max-width:480px) {
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-pass-hero { min-height:185px; }
    
    
    
    .v162-route-console { grid-template-columns:minmax(0,1fr) auto; }
    .v162-trial-shortcut { padding:6px 25px 6px 7px; }
    .v162-trial-shortcut small { display:none; }
    .v162-trial-shortcut b { font-size:8px; }
    .v162-route-meter { display:none; }
    .v162-route-controls { grid-template-columns:31px 31px; }
}
@media (max-height:820px) and (min-width:761px) {
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-pass-hero { min-height:164px; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-hero-copy { top:8px; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-hero-copy h3 { font-size:clamp(25px,2.6vw,37px); }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-hero-copy p,
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-hero-stats { display:none; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-progress-dossier { bottom:7px;padding-block:6px; }
    
    .v162-route-console { padding-block:5px;margin-bottom:5px; }
    .v162-trial-shortcut { min-height:34px; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-tier-column {
        grid-template-rows:minmax(112px,1fr) 37px minmax(112px,1fr);
    }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-card.is-skin-reward { min-height:148px; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-skin-art { height:80px; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-skin-art img { width:55px;height:78px; }
}
@media (max-height:650px) and (orientation:landscape) {
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-pass-hero { min-height:116px; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-hero-copy h3 { font-size:24px; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-progress-dossier { width:39%; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-pass-tabs { min-height:42px; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-pass-tab { min-height:40px; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass #v137-panel-rewards .v137-panel-heading { padding-top:5px;padding-bottom:4px; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass #v137-panel-rewards .v137-panel-heading p { display:none; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass #v137-panel-rewards .v137-track-legend { display:none; }
    .v162-route-console { margin-bottom:4px;padding-block:4px; }
    .v162-trial-shortcut { min-height:31px; }
}
@media (max-height:480px) and (min-width:560px) {
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-pass-header { min-height:48px; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-pass-hero { min-height:76px; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-hero-copy,
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-hero-art { display:none; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-progress-dossier {
        position:relative;
        left:auto;
        right:auto;
        bottom:auto;
        width:auto;
        margin:5px max(10px,env(safe-area-inset-right)) 5px max(10px,env(safe-area-inset-left));
        padding:6px 11px;
        transform:none;
    }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-level-medallion { width:46px; }
}
@media (prefers-reduced-motion:reduce) {
    .v162-route-scenery::before,
    .v162-route-scenery::after { animation:none !important; }
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass .v137-reward-scroll { scroll-behavior:auto !important; }
}


/* SOURCE styles/novel-portal.css */
:root {
    --v163-gold:#e0bf69;
    --v163-gold-pale:#f6e7b8;
    --v163-wine:#741525;
    --v163-wine-deep:#26070d;
    --v163-teal:#0b3f47;
    --v163-ink:#030506;
    --v163-paper:#e6d8b3;
    --v163-muted:#948971;
}
body.v163-novel-open,
html:has(body.v163-novel-open) {
    overflow:hidden !important;
    overscroll-behavior:none;
}
#v163-novel-portal[hidden] { display:none !important; }
#v163-novel-portal {
    position:fixed;
    inset:0;
    z-index:260000;
    width:100%;
    height:100vh;
    height:100dvh;
    overflow:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    color:var(--v163-paper);
    background:
        radial-gradient(ellipse at 77% 45%,rgba(18,92,94,.28),transparent 38%),
        radial-gradient(ellipse at 17% 58%,rgba(132,21,39,.27),transparent 41%),
        linear-gradient(118deg,#020304 0 45%,#081113 45.1% 100%);
    font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif;
    box-sizing:border-box;
    isolation:isolate;
}
#v163-novel-portal::before,
#v163-novel-portal::after {
    content:"";
    position:fixed;
    z-index:-1;
    pointer-events:none;
}
#v163-novel-portal::before {
    inset:0;
    opacity:.42;
    background:
        repeating-linear-gradient(90deg,transparent 0 71px,rgba(224,191,105,.045) 71px 72px),
        repeating-linear-gradient(0deg,transparent 0 71px,rgba(224,191,105,.035) 71px 72px),
        linear-gradient(113deg,transparent 0 48.8%,rgba(224,191,105,.42) 49%,rgba(116,21,37,.8) 49.18%,rgba(224,191,105,.16) 49.38%,transparent 49.55%);
}
#v163-novel-portal::after {
    inset:0;
    opacity:.34;
    background:
        linear-gradient(90deg,rgba(0,0,0,.72),transparent 19% 81%,rgba(0,0,0,.72)),
        linear-gradient(0deg,rgba(0,0,0,.72),transparent 18% 82%,rgba(0,0,0,.66)),
        repeating-linear-gradient(112deg,rgba(255,255,255,.014) 0 1px,transparent 1px 7px);
}
.v163-novel-shell {
    position:relative;
    z-index:1;
    width:min(1480px,100%);
    min-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));
    margin:0 auto;
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    overflow:hidden;
    border:1px solid rgba(224,191,105,.62);
    background:
        radial-gradient(circle at 80% 35%,rgba(17,92,95,.15),transparent 37%),
        linear-gradient(115deg,rgba(35,8,13,.96),rgba(5,6,7,.985) 45%,rgba(4,15,17,.98));
    box-shadow:0 32px 100px rgba(0,0,0,.86),inset 0 0 0 1px rgba(255,242,197,.055),inset 0 0 88px rgba(0,0,0,.44);
    clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px);
}
.v163-novel-shell::before,
.v163-novel-shell::after {
    content:"";
    position:absolute;
    z-index:8;
    pointer-events:none;
}
.v163-novel-shell::before {
    inset:7px;
    border:1px solid rgba(224,191,105,.14);
    clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);
}
.v163-novel-shell::after {
    top:0;
    left:12%;
    right:12%;
    height:2px;
    background:linear-gradient(90deg,transparent,var(--v163-gold),#fff1bd,var(--v163-gold),transparent);
    box-shadow:0 0 18px rgba(224,191,105,.55);
}
.v163-novel-header {
    position:sticky;
    top:0;
    z-index:20;
    min-height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:12px clamp(15px,2.4vw,32px);
    border-bottom:1px solid rgba(224,191,105,.25);
    background:linear-gradient(90deg,rgba(46,8,14,.98),rgba(6,8,9,.96) 54%,rgba(5,25,27,.98));
    box-shadow:0 10px 28px rgba(0,0,0,.32);
}
.v163-novel-brand {
    min-width:0;
    display:flex;
    align-items:center;
    gap:13px;
}
.v163-novel-brand-sigil {
    position:relative;
    flex:0 0 42px;
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border:1px solid rgba(224,191,105,.72);
    color:#f4dda0;
    background:radial-gradient(circle,rgba(116,21,37,.72),rgba(7,8,9,.98) 70%);
    box-shadow:inset 0 0 0 3px #090a0b,inset 0 0 0 4px rgba(224,191,105,.21),0 0 18px rgba(224,191,105,.12);
    transform:rotate(45deg);
}
.v163-novel-brand-sigil span {
    font-size:22px;
    line-height:1;
    transform:rotate(-45deg);
    text-shadow:0 0 12px rgba(224,191,105,.5);
}
.v163-novel-brand-copy { min-width:0; }
.v163-novel-brand-copy small {
    display:block;
    overflow:hidden;
    color:#ad955d;
    font:700 7px/1.2 "Courier New",monospace;
    letter-spacing:.3em;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.v163-novel-brand-copy strong {
    display:block;
    margin-top:6px;
    color:#f2e3bc;
    font-size:clamp(16px,1.65vw,24px);
    font-weight:500;
    line-height:1;
    letter-spacing:.14em;
}
.v163-novel-head-actions {
    display:flex;
    align-items:center;
    gap:10px;
}
#v163-novel-status {
    position:relative;
    min-height:32px;
    display:flex;
    align-items:center;
    gap:8px;
    padding:7px 12px;
    border:1px solid rgba(224,191,105,.22);
    color:#9b9079;
    background:rgba(0,0,0,.42);
    font:700 7px/1.35 "Courier New",monospace;
    letter-spacing:.13em;
    white-space:nowrap;
}
#v163-novel-status::before {
    content:"";
    width:7px;
    height:7px;
    border:1px solid #8e7c52;
    border-radius:50%;
    background:#291c0e;
    box-shadow:0 0 8px rgba(224,191,105,.16);
}
#v163-novel-status[data-ready="true"] {
    border-color:rgba(104,199,158,.38);
    color:#b9ddcd;
}
#v163-novel-status[data-ready="true"]::before {
    border-color:#9bd6bc;
    background:#4ca97e;
    box-shadow:0 0 10px rgba(77,213,153,.6);
}
#v163-novel-back {
    min-width:46px;
    min-height:46px;
    display:grid;
    place-items:center;
    border:1px solid rgba(224,191,105,.45);
    color:#ead9ac;
    background:linear-gradient(145deg,#251a15,#070809);
    font:400 27px/1 Georgia,serif;
    cursor:pointer;
    transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
#v163-novel-back:hover { border-color:#ffe7a2;background:#6d1524;transform:translateY(-1px); }
.v163-novel-stage {
    position:relative;
    min-height:0;
    display:grid;
    grid-template-columns:minmax(340px,.82fr) minmax(520px,1.18fr);
    grid-template-areas:"copy gallery";
    overflow:hidden;
}
.v163-novel-stage::before {
    content:"♠";
    position:absolute;
    z-index:0;
    left:31%;
    top:50%;
    color:rgba(224,191,105,.035);
    font:700 min(48vw,590px)/1 Georgia,serif;
    transform:translate(-50%,-50%) rotate(-8deg);
    pointer-events:none;
}
.v163-novel-copy {
    position:relative;
    z-index:5;
    grid-area:copy;
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:clamp(32px,5vw,82px) clamp(25px,4.8vw,76px);
    background:
        linear-gradient(90deg,rgba(89,13,25,.13),transparent 63%),
        linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.42));
}
.v163-novel-kicker {
    display:flex;
    align-items:center;
    gap:12px;
    color:#c3a85f;
    font:800 8px/1.4 "Courier New",monospace;
    letter-spacing:.28em;
}
.v163-novel-kicker::before {
    content:"";
    width:36px;
    height:1px;
    background:linear-gradient(90deg,var(--v163-gold),transparent);
    box-shadow:0 0 8px rgba(224,191,105,.5);
}
#v163-novel-title {
    margin:clamp(16px,2.3vw,29px) 0 0;
    color:#f7e9c1;
    font-size:clamp(37px,5vw,76px);
    font-weight:500;
    line-height:1.02;
    letter-spacing:.09em;
    text-shadow:0 4px 30px rgba(0,0,0,.9),0 0 28px rgba(148,26,43,.18);
}
#v163-novel-title em {
    display:block;
    margin-top:9px;
    color:#bda96f;
    font:700 clamp(10px,1.15vw,16px)/1.3 "Courier New",monospace;
    font-style:normal;
    letter-spacing:.33em;
}
.v163-novel-rule {
    position:relative;
    width:min(390px,86%);
    height:8px;
    margin:clamp(16px,2.2vw,27px) 0;
    border-top:1px solid rgba(224,191,105,.5);
}
.v163-novel-rule::before,
.v163-novel-rule::after {
    content:"";
    position:absolute;
    top:-4px;
    width:7px;
    height:7px;
    border:1px solid var(--v163-gold);
    background:#2c0910;
    transform:rotate(45deg);
}
.v163-novel-rule::before { left:0; }
.v163-novel-rule::after { right:0; }
#v163-novel-summary {
    max-width:600px;
    margin:0;
    color:#cabf9f;
    font-size:clamp(13px,1.18vw,17px);
    line-height:2;
    letter-spacing:.055em;
}
.v163-novel-ledger {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    max-width:620px;
    margin:clamp(18px,2.5vw,31px) 0 0;
}
.v163-novel-ledger span {
    min-width:0;
    padding:9px 10px;
    border-top:1px solid rgba(224,191,105,.26);
    border-bottom:1px solid rgba(224,191,105,.1);
    color:#8d826b;
    background:linear-gradient(90deg,rgba(104,18,31,.16),transparent);
    font:700 7px/1.45 "Courier New",monospace;
    letter-spacing:.13em;
}
.v163-novel-ledger b {
    display:block;
    margin-bottom:4px;
    color:#d1b86f;
    font-size:8px;
    font-weight:700;
}
#v163-novel-link {
    position:relative;
    width:min(500px,100%);
    min-height:74px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:14px;
    margin-top:clamp(22px,3.4vw,42px);
    padding:13px 19px;
    overflow:hidden;
    border:1px solid rgba(224,191,105,.62);
    color:#f6e2a6;
    background:
        radial-gradient(circle at 88% 25%,rgba(24,116,108,.22),transparent 34%),
        linear-gradient(112deg,#731626,#310a12 62%,#07191b);
    box-shadow:inset 0 1px rgba(255,243,200,.13),0 15px 33px rgba(0,0,0,.44),0 0 23px rgba(148,26,43,.1);
    text-decoration:none;
    cursor:pointer;
    transition:transform .18s ease,border-color .18s ease,filter .18s ease;
}
#v163-novel-link::before {
    content:"";
    position:absolute;
    inset:5px;
    border:1px solid rgba(255,231,162,.12);
    pointer-events:none;
}
#v163-novel-link::after {
    content:"↗";
    position:relative;
    z-index:2;
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,229,151,.43);
    color:#ffecb2;
    background:rgba(0,0,0,.26);
    font:400 20px/1 Georgia,serif;
}
#v163-novel-link .v163-novel-link-copy { position:relative;z-index:2;min-width:0; }
#v163-novel-link strong {
    display:block;
    font-size:clamp(15px,1.35vw,19px);
    font-weight:600;
    line-height:1.2;
    letter-spacing:.1em;
}
#v163-novel-link small {
    display:block;
    margin-top:7px;
    color:#ac9c78;
    font:700 7px/1.35 "Courier New",monospace;
    letter-spacing:.1em;
}
#v163-novel-link:not([aria-disabled="true"]):hover {
    border-color:#ffe8a3;
    filter:brightness(1.14);
    transform:translateY(-2px);
}
#v163-novel-link[aria-disabled="true"] {
    border-color:rgba(143,127,88,.25);
    color:#8a806b;
    background:linear-gradient(112deg,#241719,#0c0d0e 66%,#081214);
    box-shadow:inset 0 1px rgba(255,255,255,.025),0 12px 28px rgba(0,0,0,.3);
    cursor:not-allowed;
    filter:saturate(.45);
}
#v163-novel-link[aria-disabled="true"]::after { content:"—";color:#776d59;border-color:#453d30; }
.v163-novel-gallery {
    position:relative;
    z-index:3;
    grid-area:gallery;
    min-width:0;
    min-height:440px;
    margin:0;
    overflow:hidden;
    background:
        radial-gradient(ellipse at 53% 47%,rgba(224,191,105,.16),transparent 32%),
        radial-gradient(ellipse at 72% 36%,rgba(16,112,111,.21),transparent 43%),
        linear-gradient(145deg,rgba(5,9,10,.1),rgba(0,0,0,.42));
}
.v163-novel-gallery::before {
    content:"";
    position:absolute;
    z-index:0;
    left:50%;
    bottom:8%;
    width:66%;
    aspect-ratio:1;
    border:1px solid rgba(224,191,105,.15);
    border-radius:50%;
    background:
        radial-gradient(circle,transparent 0 31%,rgba(224,191,105,.08) 31.3% 31.8%,transparent 32.1% 47%,rgba(224,191,105,.06) 47.3% 47.8%,transparent 48.1%),
        conic-gradient(from 45deg,transparent 0 12%,rgba(224,191,105,.08) 12.2% 12.8%,transparent 13% 37%,rgba(224,191,105,.08) 37.2% 37.8%,transparent 38% 62%,rgba(224,191,105,.08) 62.2% 62.8%,transparent 63% 87%,rgba(224,191,105,.08) 87.2% 87.8%,transparent 88%);
    box-shadow:0 0 80px rgba(224,191,105,.06),inset 0 0 60px rgba(0,0,0,.45);
    transform:translate(-50%,15%) rotate(45deg);
}
.v163-novel-gallery::after {
    content:"IMPERIAL  ·  CHRONICLE  ·  ARCHIVE";
    position:absolute;
    z-index:7;
    left:50%;
    bottom:18px;
    color:rgba(224,191,105,.48);
    font:700 7px/1 "Courier New",monospace;
    letter-spacing:.38em;
    white-space:nowrap;
    transform:translateX(-50%);
}
.v163-novel-card {
    --v163-card-delay:0ms;
    position:absolute;
    z-index:2;
    bottom:7%;
    width:clamp(165px,18.8vw,292px);
    aspect-ratio:5/8;
    margin:0;
    padding:5px;
    border:1px solid rgba(224,191,105,.5);
    background:linear-gradient(145deg,#d9c382,#3c2d18 5px,#070809 6px calc(100% - 6px),#3c2d18 calc(100% - 5px),#d9c382);
    box-shadow:0 28px 52px rgba(0,0,0,.7),0 0 29px rgba(224,191,105,.08);
    transform-origin:50% 100%;
    animation:v163-card-arrive .72s cubic-bezier(.2,.76,.18,1) both;
    animation-delay:var(--v163-card-delay);
}
.v163-novel-card::after {
    content:"";
    position:absolute;
    z-index:3;
    top:-18%;
    left:-70%;
    width:34%;
    height:135%;
    opacity:0;
    pointer-events:none;
    background:linear-gradient(90deg,transparent,rgba(255,246,211,.26),transparent);
    transform:rotate(18deg);
    animation:v163-card-glint 7s ease-in-out infinite;
    animation-delay:calc(1.4s + var(--v163-card-delay));
}
.v163-novel-card img {
    display:block;
    width:100%;
    height:100%;
    border:0;
    border-radius:7px;
    object-fit:contain;
    object-position:center;
    background:#050607;
    filter:none;
}
.v163-novel-card figcaption {
    position:absolute;
    z-index:4;
    left:50%;
    bottom:8px;
    max-width:82%;
    padding:5px 9px;
    overflow:hidden;
    border:1px solid rgba(224,191,105,.26);
    color:#dfce9d;
    background:rgba(3,5,6,.78);
    font:700 6px/1 "Courier New",monospace;
    letter-spacing:.14em;
    white-space:nowrap;
    text-overflow:ellipsis;
    transform:translateX(-50%);
    backdrop-filter:blur(4px);
}
.v163-novel-card.is-leonard { left:2%;z-index:2;transform:rotate(-8deg) scale(.86);--v163-card-delay:100ms; }
.v163-novel-card.is-ordivo { left:25%;bottom:18%;z-index:1;transform:rotate(-3deg) scale(.72);opacity:.76;--v163-card-delay:40ms; }
.v163-novel-card.is-riana { left:43%;z-index:5;transform:translateX(-50%) scale(1.04);--v163-card-delay:190ms; }
.v163-novel-card.is-missing { display:none; }
.v163-novel-footer {
    position:relative;
    z-index:10;
    min-height:38px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:9px clamp(15px,2.4vw,32px);
    border-top:1px solid rgba(224,191,105,.2);
    color:#756d5d;
    background:rgba(2,4,5,.88);
    font:700 7px/1.4 "Courier New",monospace;
    letter-spacing:.13em;
}
.v163-novel-footer strong { color:#a08c59;font-weight:700; }
#v163-novel-back:focus-visible,
#v163-novel-link:focus-visible,
#v163-open-novel-portal:focus-visible {
    outline:2px solid #fff0b8 !important;
    outline-offset:3px !important;
    border-color:#fff0b8 !important;
    box-shadow:0 0 0 4px rgba(116,21,37,.72),0 0 22px rgba(255,231,157,.44) !important;
}
#home-screen .home-menu-btn.v163-novel-entry {
    border-color:rgba(224,191,105,.56) !important;
    background:
        radial-gradient(circle at 86% 24%,rgba(20,105,106,.2),transparent 35%),
        linear-gradient(118deg,rgba(102,17,31,.82),rgba(16,11,12,.98) 62%,rgba(5,23,25,.98)) !important;
    box-shadow:inset 0 1px rgba(255,241,194,.08),inset 3px 0 rgba(224,191,105,.13),0 9px 21px rgba(0,0,0,.38) !important;
}
#home-screen .home-menu-btn.v163-novel-entry .home-menu-icon {
    color:#f1d781 !important;
    text-shadow:0 0 15px rgba(224,191,105,.5) !important;
}
.v163-entry-sigil {
    width:27px;
    height:32px;
    display:block;
    overflow:visible;
    filter:drop-shadow(0 0 7px rgba(224,191,105,.32));
}

@keyframes v163-card-arrive {
    from { opacity:0;translate:0 9%; }
    to { opacity:1;translate:0 0; }
}
@keyframes v163-card-glint {
    0%,67% { left:-70%;opacity:0; }
    72% { opacity:.7; }
    83%,100% { left:145%;opacity:0; }
}

@media (max-width:900px) {
    .v163-novel-stage { grid-template-columns:minmax(300px,.88fr) minmax(430px,1.12fr); }
    .v163-novel-copy { padding-inline:clamp(22px,4vw,44px); }
    .v163-novel-card { width:clamp(145px,21vw,220px); }
    .v163-novel-ledger { grid-template-columns:1fr;gap:3px; }
    .v163-novel-ledger span { padding-block:6px; }
}

@media (max-width:760px) {
    #v163-novel-portal { overflow:auto; }
    .v163-novel-shell {
        min-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));
        overflow:visible;
    }
    .v163-novel-header { min-height:61px;padding:9px 12px; }
    .v163-novel-brand-sigil { flex-basis:36px;width:36px;height:36px; }
    .v163-novel-brand-copy small { font-size:6px;letter-spacing:.19em; }
    .v163-novel-brand-copy strong { margin-top:4px;font-size:15px; }
    #v163-novel-status { display:none; }
    #v163-novel-back { min-width:44px;min-height:44px; }
    .v163-novel-stage {
        display:grid;
        grid-template-columns:minmax(0,1fr);
        grid-template-areas:"gallery" "copy";
        overflow:visible;
    }
    .v163-novel-gallery { min-height:clamp(300px,58vh,440px); }
    .v163-novel-copy { justify-content:flex-start;padding:27px 20px 22px; }
    #v163-novel-title { font-size:clamp(38px,12vw,58px); }
    #v163-novel-summary { font-size:14px;line-height:1.85; }
    .v163-novel-ledger { grid-template-columns:repeat(3,minmax(0,1fr)); }
    #v163-novel-link {
        position:sticky;
        bottom:max(7px,env(safe-area-inset-bottom));
        z-index:18;
        width:100%;
        min-height:68px;
        margin-top:24px;
        box-shadow:0 13px 34px rgba(0,0,0,.74),0 0 0 5px rgba(3,5,6,.7);
    }
    .v163-novel-footer { align-items:flex-start;flex-direction:column;gap:4px; }
    .v163-novel-card { width:clamp(138px,37vw,220px);bottom:3%; }
    .v163-novel-card.is-leonard { left:0; }
    .v163-novel-card.is-ordivo { left:27%;bottom:15%; }
    .v163-novel-card.is-riana { left:48%; }
}

@media (max-width:520px) {
    #v163-novel-portal { padding:max(4px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left)); }
    .v163-novel-shell { clip-path:polygon(11px 0,calc(100% - 11px) 0,100% 11px,100% calc(100% - 11px),calc(100% - 11px) 100%,11px 100%,0 calc(100% - 11px),0 11px); }
    .v163-novel-gallery { min-height:300px; }
    .v163-novel-card { width:clamp(126px,40vw,182px); }
    .v163-novel-card.is-ordivo { display:none; }
    .v163-novel-card.is-leonard { left:-5%;transform:rotate(-8deg) scale(.82); }
    .v163-novel-card.is-riana { left:48%;transform:translateX(-50%) scale(1); }
    .v163-novel-copy { padding-inline:17px; }
    .v163-novel-kicker { font-size:6.5px;letter-spacing:.18em; }
    .v163-novel-ledger { grid-template-columns:1fr; }
    .v163-novel-ledger span:nth-child(2),
    .v163-novel-ledger span:nth-child(3) { display:none; }
    #v163-novel-link { padding-inline:14px; }
    #v163-novel-link small { font-size:6px; }
}

@media (max-height:560px) and (orientation:landscape) {
    #v163-novel-portal { overflow:auto; }
    .v163-novel-shell { min-height:calc(100dvh - 8px);overflow:visible; }
    .v163-novel-header { min-height:49px;padding-block:5px; }
    .v163-novel-brand-sigil { flex-basis:32px;width:32px;height:32px; }
    .v163-novel-brand-copy strong { font-size:13px; }
    #v163-novel-status { display:none; }
    #v163-novel-back { min-width:42px;min-height:42px; }
    .v163-novel-stage {
        min-height:330px;
        grid-template-columns:minmax(230px,.9fr) minmax(290px,1.1fr);
        grid-template-areas:"copy gallery";
        overflow:hidden;
    }
    .v163-novel-copy { padding:20px 27px; }
    #v163-novel-title { margin-top:10px;font-size:clamp(28px,7.5vh,42px); }
    #v163-novel-title em { margin-top:5px;font-size:8px; }
    .v163-novel-rule { margin:10px 0; }
    #v163-novel-summary { font-size:11px;line-height:1.55; }
    .v163-novel-ledger { display:none; }
    #v163-novel-link { min-height:58px;margin-top:14px;padding-block:9px; }
    .v163-novel-gallery { min-height:330px; }
    .v163-novel-card { width:clamp(130px,22vh,170px);bottom:1%; }
    .v163-novel-card.is-ordivo { display:none; }
    .v163-novel-footer { display:none; }
}

@media (max-height:560px) and (orientation:landscape) and (max-width:620px) {
    .v163-novel-stage {
        grid-template-columns:minmax(0,1fr);
        grid-template-areas:"gallery" "copy";
        overflow:visible;
    }
    .v163-novel-gallery { min-height:260px; }
    .v163-novel-copy { padding:18px 20px 22px; }
    #v163-novel-link { position:static;width:100%; }
}

@media (prefers-reduced-motion:reduce) {
    .v163-novel-card,
    .v163-novel-card::after,
    #v163-novel-back,
    #v163-novel-link {
        animation:none !important;
        transition:none !important;
    }
}

@media (forced-colors:active) {
    #v163-novel-portal,
    .v163-novel-shell,
    .v163-novel-header,
    .v163-novel-copy,
    .v163-novel-gallery { background:Canvas !important;color:CanvasText !important; }
    .v163-novel-shell,
    .v163-novel-card,
    #v163-novel-back,
    #v163-novel-link { border:2px solid CanvasText !important;box-shadow:none !important; }
    #v163-novel-link[aria-disabled="true"] { color:GrayText !important;border-color:GrayText !important; }
}


/* SOURCE styles/luxury-pass-art.css */
/* SHOCKER_V164_LUXURY_PASS_ART / FOUR-PLATE ECLIPSE GALLERY */
:root {
    --v164-ink:#020307;
    --v164-gold:#d7b76c;
    --v164-gold-bright:#f6e4aa;
    --v164-lacquer:#8d2028;
    --v164-talisman:#d36b34;
    --v164-rose:#8e305e;
    --v164-amethyst:#9a65bd;
    --v164-silver:#c7c9d8;
}

body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass {
    background:
        radial-gradient(ellipse at 19% 48%,rgba(151,44,29,.22),transparent 35%),
        radial-gradient(ellipse at 82% 42%,rgba(132,62,160,.25),transparent 37%),
        radial-gradient(circle at 50% 8%,rgba(228,196,126,.12),transparent 22%),
        linear-gradient(138deg,#020305 0,#10080e 31%,#100b1c 69%,#020407 100%);
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass::before {
    opacity:.72;
    background:
        linear-gradient(90deg,transparent 49.92%,rgba(235,210,152,.1) 50%,transparent 50.08%),
        repeating-linear-gradient(117deg,transparent 0 57px,rgba(236,213,164,.018) 58px 59px),
        radial-gradient(circle at 50% 13%,rgba(206,174,106,.1),transparent 18%),
        radial-gradient(ellipse at center,transparent 34%,rgba(0,0,0,.8));
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-pass-shell {
    border-color:rgba(232,204,145,.77);
    background:
        linear-gradient(90deg,rgba(151,46,34,.05),transparent 29% 71%,rgba(113,65,145,.065)),
        linear-gradient(145deg,rgba(4,5,9,.995),rgba(18,9,22,.99) 55%,rgba(3,6,9,.995));
    box-shadow:
        inset 0 0 0 3px #030407,
        inset 0 0 0 4px rgba(232,205,146,.21),
        inset 0 0 110px rgba(0,0,0,.72),
        0 38px 135px #000;
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-pass-header {
    background:
        linear-gradient(107deg,rgba(137,31,39,.51),transparent 31% 69%,rgba(93,48,123,.39)),
        radial-gradient(circle at 50% -42%,rgba(238,211,153,.2),transparent 54%),
        linear-gradient(90deg,#07070b,#130b18 50%,#07080d);
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-pass-header h2 {
    color:#fff0bf;
    text-shadow:0 3px 0 #000,0 0 26px rgba(225,194,124,.27);
}

/* Four supplied illustrations are presented as framed posters, never as fake cut-outs. */
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-pass-hero.v164-pass-hero {
    min-height:clamp(310px,36dvh,390px);
    background:
        radial-gradient(circle at 50% 40%,rgba(201,161,100,.1),transparent 14%),
        linear-gradient(90deg,rgba(27,8,8,.97),rgba(4,5,9,.87) 35%,rgba(5,4,10,.87) 65%,rgba(17,7,22,.97)),
        #040509;
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-pass-hero::before {
    content:"ECLIPSE\A MASQUERADE";
    z-index:1;
    color:rgba(251,228,181,.04);
    font-size:clamp(72px,8vw,132px);
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-pass-hero::after {
    z-index:7;
    background:
        linear-gradient(90deg,rgba(0,0,0,.08),transparent 24% 76%,rgba(0,0,0,.08)),
        linear-gradient(180deg,rgba(0,0,0,.03),transparent 59%,rgba(0,0,0,.72));
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-art {
    display:block !important;
    z-index:2;
}

body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy,
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-progress-dossier {
    z-index:12;
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy {
    top:21px;
    width:min(38%,510px);
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy::before {
    content:"SEASON 01  ◆  LIMITED HALLOWEEN CHRONICLE";
    display:block;
    width:max-content;
    max-width:100%;
    margin:0 auto 7px;
    padding:4px 12px;
    border-block:1px solid rgba(226,196,132,.36);
    color:#cbb682;
    font:900 6px/1 "Courier New",monospace;
    letter-spacing:.21em;
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy h3 {
    font-size:clamp(35px,3.7vw,57px);
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-progress-dossier {
    bottom:17px;
    width:min(37%,500px);
    border-color:rgba(235,205,141,.73);
    background:
        linear-gradient(115deg,rgba(124,30,45,.27),transparent 42%,rgba(92,51,123,.22)),
        rgba(3,5,10,.92);
    box-shadow:inset 0 0 0 3px rgba(0,0,0,.7),inset 0 0 0 4px rgba(229,199,136,.1),0 18px 42px rgba(0,0,0,.75);
}

.v164-pass-gallery {
    position:absolute;
    z-index:2;
    inset:0;
    overflow:hidden;
    pointer-events:none;
    isolation:isolate;
}
.v164-pass-gallery::before {
    content:"";
    position:absolute;
    z-index:8;
    top:-22%;
    left:50%;
    width:43%;
    height:145%;
    transform:translateX(-50%);
    background:
        radial-gradient(circle at 50% 37%,transparent 0 13%,rgba(2,3,7,.54) 27%,rgba(2,3,7,.89) 68%),
        linear-gradient(90deg,transparent,rgba(2,3,7,.82) 14% 86%,transparent);
    filter:blur(.1px);
}
.v164-pass-gallery::after {
    content:"";
    position:absolute;
    z-index:9;
    inset:0;
    border-block:1px solid rgba(239,214,157,.2);
    background:
        linear-gradient(90deg,transparent 0 7%,rgba(239,213,153,.18) 7.1% 7.18%,transparent 7.28% 92.72%,rgba(239,213,153,.18) 92.82% 92.9%,transparent 93%),
        linear-gradient(180deg,rgba(255,255,255,.035),transparent 21% 76%,rgba(0,0,0,.42));
}
.v164-art-pair {
    position:absolute;
    z-index:2;
    top:0;
    bottom:0;
    width:38%;
    overflow:visible;
}
.v164-art-pair--luka {
    left:0;
    -webkit-mask-image:linear-gradient(90deg,#000 0 80%,transparent 100%);
    mask-image:linear-gradient(90deg,#000 0 80%,transparent 100%);
}
.v164-art-pair--riana {
    right:0;
    -webkit-mask-image:linear-gradient(270deg,#000 0 80%,transparent 100%);
    mask-image:linear-gradient(270deg,#000 0 80%,transparent 100%);
}
.v164-art-frame {
    position:absolute;
    bottom:-10%;
    margin:0;
    overflow:hidden;
    border:1px solid rgba(240,215,159,.79);
    background:#05060a;
    box-shadow:
        inset 0 0 0 4px rgba(3,4,7,.91),
        inset 0 0 0 5px rgba(224,194,131,.26),
        0 24px 42px rgba(0,0,0,.82),
        0 0 28px var(--v164-art-glow,rgba(196,126,84,.16));
    transform-origin:50% 100%;
}
.v164-art-frame::before {
    content:"";
    position:absolute;
    z-index:3;
    inset:7px;
    border:1px solid rgba(244,222,174,.26);
    clip-path:inherit;
    pointer-events:none;
}
.v164-art-frame::after {
    content:"";
    position:absolute;
    z-index:2;
    inset:0;
    background:
        linear-gradient(116deg,rgba(255,255,255,.1),transparent 17% 73%,rgba(0,0,0,.19)),
        linear-gradient(180deg,transparent 61%,rgba(2,3,6,.62));
    pointer-events:none;
}
.v164-art-frame img {
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    opacity:1 !important;
    object-fit:cover !important;
    filter:saturate(.93) contrast(1.06) brightness(.82) !important;
    -webkit-mask-image:none !important;
    mask-image:none !important;
    transform:none !important;
}
.v164-art-frame--secondary {
    z-index:2;
    top:8%;
    width:45%;
    opacity:.72;
    filter:saturate(.86);
}
.v164-art-frame--primary {
    z-index:4;
    top:-2%;
    width:58%;
}
.v164-art-pair--luka .v164-art-frame--secondary {
    left:-2%;
    --v164-art-glow:rgba(211,96,49,.18);
    clip-path:polygon(0 4%,91% 0,100% 96%,8% 100%);
    transform:rotate(-1.5deg);
}
.v164-art-pair--luka .v164-art-frame--primary {
    left:31%;
    --v164-art-glow:rgba(224,117,56,.23);
    clip-path:polygon(5% 0,100% 3%,94% 100%,0 96%);
    transform:rotate(.8deg);
}
.v164-art-pair--riana .v164-art-frame--secondary {
    right:-2%;
    --v164-art-glow:rgba(151,94,188,.22);
    clip-path:polygon(9% 0,100% 4%,92% 100%,0 96%);
    transform:rotate(1.5deg);
}
.v164-art-pair--riana .v164-art-frame--primary {
    right:31%;
    --v164-art-glow:rgba(165,87,165,.27);
    clip-path:polygon(0 3%,95% 0,100% 96%,6% 100%);
    transform:rotate(-.8deg);
}
.v164-art-frame--luka-primary img { object-position:50% 20% !important; }
.v164-art-frame--luka-secondary img { object-position:50% 22% !important; }
.v164-art-frame--riana-primary img { object-position:50% 24% !important; }
.v164-art-frame--riana-secondary img { object-position:50% 20% !important; }

.v164-chapter-ribbon {
    position:absolute;
    z-index:11;
    bottom:18px;
    width:min(24%,320px);
    padding:7px 12px 7px 15px;
    border:1px solid rgba(231,203,143,.5);
    color:#eee0b8;
    background:linear-gradient(100deg,rgba(4,5,8,.96),rgba(86,26,28,.78),rgba(4,5,8,.64));
    box-shadow:inset 0 0 0 3px rgba(1,2,4,.58),0 9px 24px rgba(0,0,0,.62);
    clip-path:polygon(0 0,calc(100% - 13px) 0,100% 50%,calc(100% - 13px) 100%,0 100%,7px 50%);
}
.v164-chapter-ribbon--luka { left:2%; }
.v164-chapter-ribbon--riana {
    right:2%;
    padding-right:15px;
    padding-left:12px;
    text-align:right;
    background:linear-gradient(260deg,rgba(4,5,8,.96),rgba(75,39,98,.8),rgba(4,5,8,.64));
    clip-path:polygon(13px 0,100% 0,calc(100% - 7px) 50%,100% 100%,13px 100%,0 50%);
}
.v164-chapter-ribbon small {
    display:block;
    color:#c2aa76;
    font:900 5.5px/1 "Courier New",monospace;
    letter-spacing:.16em;
}
.v164-chapter-ribbon strong {
    display:block;
    margin-top:3px;
    font:600 clamp(9px,.82vw,12px)/1 Georgia,"Yu Mincho",serif;
    letter-spacing:.08em;
}
.v164-eclipse-crest {
    position:absolute;
    z-index:7;
    left:50%;
    top:43%;
    width:clamp(118px,10vw,164px);
    aspect-ratio:1;
    border:1px solid rgba(231,206,148,.25);
    border-radius:50%;
    transform:translate(-50%,-50%);
    background:
        radial-gradient(circle at 43% 43%,transparent 0 30%,rgba(6,5,12,.98) 31% 47%,transparent 48%),
        radial-gradient(circle,#ead9a4 0 36%,#83669b 38% 45%,transparent 46%);
    box-shadow:0 0 0 9px rgba(152,91,176,.035),0 0 38px rgba(162,101,190,.18);
    opacity:.58;
}
.v164-eclipse-crest::before,
.v164-eclipse-crest::after {
    content:"";
    position:absolute;
    inset:-12px;
    border:1px dashed rgba(227,200,139,.3);
    border-radius:50%;
}
.v164-eclipse-crest::after {
    inset:-20px;
    border-style:solid;
    border-color:rgba(179,115,199,.14);
}

/* The canonical reward road remains scrollable; only its stage and milestone chapters are upgraded. */
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass #v137-panel-rewards {
    background:
        radial-gradient(ellipse at 15% 54%,rgba(149,50,35,.13),transparent 31%),
        radial-gradient(ellipse at 86% 54%,rgba(119,65,153,.14),transparent 33%),
        linear-gradient(180deg,rgba(3,4,7,.35),rgba(8,5,11,.76));
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v162-route-console {
    border-color:rgba(229,200,138,.52);
    background:
        radial-gradient(circle at 15% 50%,rgba(158,51,37,.17),transparent 25%),
        radial-gradient(circle at 82% 50%,rgba(126,69,159,.2),transparent 26%),
        linear-gradient(90deg,rgba(11,8,11,.97),rgba(20,10,25,.95),rgba(6,8,12,.97));
    box-shadow:inset 0 0 0 3px rgba(2,3,6,.64),inset 0 0 0 4px rgba(230,200,137,.07),0 13px 33px rgba(0,0,0,.48);
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v162-console-title {
    border-left-color:#d1ad64;
}
.v164-trial-button {
    isolation:isolate;
    padding-right:78px !important;
    border-color:rgba(231,204,145,.5) !important;
    box-shadow:inset 0 0 0 2px rgba(0,0,0,.42);
}
.v164-trial-button > small,
.v164-trial-button > b {
    position:relative;
    z-index:3;
}
.v164-trial-button::before {
    content:"";
    position:absolute;
    z-index:2;
    inset:0;
    background:linear-gradient(90deg,rgba(5,5,9,.98) 0 42%,rgba(5,5,9,.64) 68%,transparent);
    pointer-events:none;
}
.v164-trial-button::after {
    z-index:5;
    right:8px;
    top:8px;
    transform:rotate(12deg);
}
.v164-trial-thumb {
    position:absolute;
    z-index:1;
    top:0;
    right:0;
    width:76px;
    height:100%;
    overflow:hidden;
    pointer-events:none;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 35%);
    mask-image:linear-gradient(90deg,transparent,#000 35%);
}
.v164-trial-thumb img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:50% 20%;
    filter:saturate(.88) contrast(1.08) brightness(.75);
}
.v164-trial-set-badge {
    position:absolute;
    z-index:4;
    right:26px;
    bottom:4px;
    color:#f0d99f;
    font:900 5px/1 "Courier New",monospace;
    letter-spacing:.08em;
    pointer-events:none;
}

body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-tier-column.v164-milestone-column {
    width:clamp(236px,17.2vw,278px);
    --v164-chapter-accent:#d09a57;
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-tier-column.v164-milestone-column[data-v164-character="riana"] {
    --v164-chapter-accent:#b887cf;
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-tier-column.v164-milestone-column::before {
    inset:-6px -7px;
    border-color:color-mix(in srgb,var(--v164-chapter-accent) 36%,transparent);
    background:
        linear-gradient(180deg,color-mix(in srgb,var(--v164-chapter-accent) 11%,transparent),rgba(4,5,9,.24)),
        repeating-linear-gradient(135deg,transparent 0 15px,rgba(255,255,255,.014) 16px 17px);
    box-shadow:0 0 31px color-mix(in srgb,var(--v164-chapter-accent) 13%,transparent);
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-tier-column.v164-milestone-column::after {
    display:none !important;
}
.v164-milestone-banner {
    position:absolute;
    z-index:9;
    top:8px;
    left:8px;
    max-width:calc(100% - 16px);
    padding:5px 9px 4px;
    overflow:hidden;
    border:1px solid color-mix(in srgb,var(--v164-chapter-accent) 66%,#f3dfaa 34%);
    color:#f5e4b8;
    background:linear-gradient(110deg,rgba(4,5,9,.96),color-mix(in srgb,var(--v164-chapter-accent) 28%,#08070b));
    box-shadow:0 6px 17px rgba(0,0,0,.56);
    font:900 6px/1 "Courier New",monospace;
    letter-spacing:.11em;
    text-overflow:ellipsis;
    white-space:nowrap;
    pointer-events:none;
    clip-path:polygon(0 0,calc(100% - 9px) 0,100% 50%,calc(100% - 9px) 100%,0 100%);
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v164-milestone-column .v137-reward-card.is-skin-reward {
    border-color:color-mix(in srgb,var(--v164-chapter-accent) 76%,#f7e5b6 24%);
    background:
        radial-gradient(circle at 50% 32%,color-mix(in srgb,var(--v164-chapter-accent) 25%,transparent),transparent 46%),
        linear-gradient(145deg,#21101c,#05060a 78%);
    box-shadow:inset 0 0 0 3px #040509,inset 0 0 0 4px color-mix(in srgb,var(--v164-chapter-accent) 28%,transparent),0 0 31px color-mix(in srgb,var(--v164-chapter-accent) 18%,transparent);
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v164-milestone-column .v137-reward-card.is-skin-reward.is-locked.can-trial {
    filter:saturate(.9) brightness(.91);
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v164-milestone-column .v137-reward-skin-art::after {
    content:"レアカード 2枚セット";
    position:absolute;
    z-index:5;
    left:50%;
    bottom:1px;
    padding:4px 8px;
    transform:translateX(-50%);
    border:1px solid rgba(237,211,155,.5);
    color:#f4dfa8;
    background:rgba(3,4,8,.92);
    font:900 5.5px/1 "Courier New",monospace;
    letter-spacing:.1em;
    white-space:nowrap;
}
body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v164-milestone-column .v162-trial-mark {
    top:auto;
    right:8px;
    bottom:8px;
    color:#fff0bf;
    background:linear-gradient(115deg,color-mix(in srgb,var(--v164-chapter-accent) 64%,#42111f),#160d20);
}

.v164-home-pass-art {
    position:absolute;
    z-index:0;
    top:-20%;
    right:0;
    bottom:-20%;
    width:47%;
    overflow:hidden;
    opacity:.28;
    pointer-events:none;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 42%);
    mask-image:linear-gradient(90deg,transparent,#000 42%);
}
.v164-home-pass-art img {
    position:absolute;
    top:0;
    width:58%;
    height:100%;
    object-fit:cover;
    object-position:50% 20%;
    filter:saturate(.9) contrast(1.08) brightness(.72);
}
.v164-home-pass-art img:first-child { left:3%;clip-path:polygon(0 0,87% 0,100% 100%,12% 100%); }
.v164-home-pass-art img:last-child { right:-2%;clip-path:polygon(12% 0,100% 0,88% 100%,0 100%); }
#v137-home-battle-pass-button.v164-home-luxury > .v162-home-skin-pair { display:none; }
#v137-home-battle-pass-button.v164-home-luxury > *:not(.v164-home-pass-art) { position:relative;z-index:2; }
#v137-home-battle-pass-button.v164-home-luxury {
    border-color:rgba(238,209,147,.8) !important;
    box-shadow:inset 0 0 0 2px rgba(0,0,0,.6),inset 0 0 0 3px rgba(235,206,143,.1),0 0 23px rgba(139,74,160,.09);
}

@keyframes v164-gallery-enter-left {
    from { opacity:0;transform:translate3d(-14px,8px,0); }
    to { opacity:1;transform:translate3d(0,0,0); }
}
@keyframes v164-gallery-enter-right {
    from { opacity:0;transform:translate3d(14px,8px,0); }
    to { opacity:1;transform:translate3d(0,0,0); }
}
@keyframes v164-crest-reveal {
    from { opacity:0;transform:translate(-50%,-50%) scale(.88) rotate(-8deg); }
    to { opacity:.58;transform:translate(-50%,-50%) scale(1) rotate(0); }
}
#v137-battle-pass.v164-luxury-pass:not([hidden]) .v164-art-pair--luka {
    animation:v164-gallery-enter-left .66s cubic-bezier(.2,.72,.18,1) both;
}
#v137-battle-pass.v164-luxury-pass:not([hidden]) .v164-art-pair--riana {
    animation:v164-gallery-enter-right .72s .04s cubic-bezier(.2,.72,.18,1) both;
}
#v137-battle-pass.v164-luxury-pass:not([hidden]) .v164-eclipse-crest {
    animation:v164-crest-reveal .74s .08s cubic-bezier(.2,.72,.18,1) both;
}

@media (max-width:1100px) {
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-pass-hero.v164-pass-hero { min-height:300px; }
    .v164-art-pair { width:41%; }
    .v164-chapter-ribbon { width:25%; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy { width:42%; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-progress-dossier { width:43%; }
}
@media (max-width:760px) {
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass { padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right); }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-pass-hero.v164-pass-hero { min-height:clamp(236px,35dvh,282px); }
    .v164-art-pair { width:50%; }
    .v164-art-frame--secondary { top:0;bottom:-5%;width:62%;opacity:.43; }
    .v164-art-frame--primary { top:6%;bottom:-9%;width:69%; }
    .v164-art-pair--luka .v164-art-frame--secondary { left:-12%; }
    .v164-art-pair--luka .v164-art-frame--primary { left:9%; }
    .v164-art-pair--riana .v164-art-frame--secondary { right:-12%; }
    .v164-art-pair--riana .v164-art-frame--primary { right:9%; }
    .v164-pass-gallery::before { width:64%;background:linear-gradient(90deg,transparent,rgba(2,3,7,.91) 22% 78%,transparent); }
    .v164-eclipse-crest { top:37%;width:104px;opacity:.38; }
    .v164-chapter-ribbon { display:none; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy { top:8px;width:58%; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy::before { display:none; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy h3 { font-size:clamp(25px,6.7vw,36px); }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-progress-dossier { bottom:7px;width:72%; }
    .v164-trial-button { padding-right:52px !important; }
    .v164-trial-thumb { width:52px; }
    .v164-trial-set-badge { display:none; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-tier-column.v164-milestone-column { width:210px; }
}
@media (max-width:480px) {
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-pass-hero.v164-pass-hero { min-height:224px; }
    .v164-art-frame--secondary { opacity:.34; }
    .v164-art-frame--primary { width:78%; }
    .v164-art-pair--luka .v164-art-frame--primary { left:-1%; }
    .v164-art-pair--riana .v164-art-frame--primary { right:-1%; }
    .v164-pass-gallery::before { width:72%; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy { width:62%; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy p { display:none; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-progress-dossier { width:78%;padding:6px 8px; }
    .v164-eclipse-crest { width:87px; }
    .v164-trial-thumb { opacity:.63; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-tier-column.v164-milestone-column { width:198px; }
}
@media (max-height:650px) and (orientation:landscape) {
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-pass-hero.v164-pass-hero { min-height:142px; }
    .v164-art-pair { width:35%; }
    .v164-art-frame--secondary { top:0;bottom:-14%;width:38%;opacity:.58; }
    .v164-art-frame--primary { top:-6%;bottom:-14%;width:46%; }
    .v164-art-pair--luka .v164-art-frame--secondary { left:0; }
    .v164-art-pair--luka .v164-art-frame--primary { left:33%; }
    .v164-art-pair--riana .v164-art-frame--secondary { right:0; }
    .v164-art-pair--riana .v164-art-frame--primary { right:33%; }
    .v164-chapter-ribbon { display:none; }
    .v164-eclipse-crest { width:76px;top:48%; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy { top:5px;width:42%; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy::before,
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy p,
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-stats { display:none; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy h3 { font-size:25px; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-progress-dossier { bottom:5px;width:42%;padding:5px 8px; }
}
@media (max-height:480px) and (min-width:560px) {
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-pass-hero.v164-pass-hero { min-height:92px; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-art { display:block !important; }
    .v164-art-pair { width:32%; }
    .v164-art-frame--secondary { top:-15%;bottom:-25%;width:34%; }
    .v164-art-frame--primary { top:-22%;bottom:-25%;width:48%; }
    .v164-art-pair--luka .v164-art-frame--primary { left:31%; }
    .v164-art-pair--riana .v164-art-frame--primary { right:31%; }
    .v164-pass-gallery::before { width:48%; }
    .v164-eclipse-crest,.v164-chapter-ribbon { display:none; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy { display:block;top:7px;width:38%; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-hero-copy h3 { font-size:20px; }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-progress-dossier {
        position:absolute;
        left:50%;
        bottom:4px;
        width:37%;
        margin:0;
        padding:3px 7px;
        transform:translateX(-50%);
    }
    body.v164-luxury-pass-ready #v137-battle-pass.v164-luxury-pass .v137-level-medallion { width:38px; }
}
@media (prefers-reduced-motion:reduce) {
    #v137-battle-pass.v164-luxury-pass .v164-art-pair,
    #v137-battle-pass.v164-luxury-pass .v164-eclipse-crest { animation:none !important; }
    #v137-battle-pass.v164-luxury-pass .v164-art-frame,
    #v137-battle-pass.v164-luxury-pass .v164-trial-button,
    #v137-battle-pass.v164-luxury-pass .v164-milestone-column .v137-reward-card { transition:none !important; }
}


/* SOURCE styles/pass-vertical-scroll.css */
/* SHOCKER_V165_PASS_VERTICAL_SCROLL / ONE VERTICAL OWNER, ONE HORIZONTAL ROAD */
body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-pass-shell {
    min-height:0 !important;
    max-height:100dvh;
    box-sizing:border-box;
    overflow:hidden;
}
body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-pass-main {
    min-width:0;
    min-height:0;
    overflow:hidden;
}
body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-panel {
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    box-sizing:border-box;
    overflow-x:hidden;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:none;
    overscroll-behavior-y:contain;
    scrollbar-gutter:stable;
}

/* Only the selected tab is laid out. Hidden rewards must not displace missions or the vault. */
body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll #v137-panel-rewards:not([hidden]) {
    position:relative;
    display:grid !important;
    grid-template-rows:auto auto auto auto !important;
    align-content:start;
    height:100%;
    min-height:0;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    scrollbar-width:auto;
    scrollbar-color:#c29b63 #07070c;
}
body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll #v137-panel-rewards::-webkit-scrollbar {
    width:11px;
}
body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll #v137-panel-rewards::-webkit-scrollbar-track {
    border-left:1px solid rgba(225,196,137,.13);
    background:#06070b;
}
body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll #v137-panel-rewards::-webkit-scrollbar-thumb {
    border:3px solid #06070b;
    border-radius:9px;
    background:linear-gradient(180deg,#79506f,#d3b470 52%,#733143);
}

/* The inner road owns horizontal movement only; its full height remains in normal flow. */
body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-reward-scroll[data-v165-horizontal-road="true"] {
    width:100%;
    height:auto !important;
    min-width:0;
    min-height:clamp(292px,45dvh,352px);
    max-height:none !important;
    box-sizing:border-box;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    overscroll-behavior-x:contain;
    overscroll-behavior-y:auto;
    touch-action:pan-x pan-y;
}
body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-reward-road {
    height:auto;
}
body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-panel:focus-visible,
body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-reward-scroll:focus-visible {
    outline:1px solid rgba(244,218,154,.8);
    outline-offset:-2px;
    box-shadow:inset 0 0 21px rgba(219,184,112,.08);
}
.v165-pass-scroll-instruction {
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip:rect(0 0 0 0) !important;
    clip-path:inset(50%) !important;
    white-space:nowrap !important;
    border:0 !important;
}

/* v164's gallery remains luxurious, but yields space on shorter desktop screens. */
@media (max-height:900px) and (min-width:761px) {
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-pass-hero.v164-pass-hero {
        min-height:clamp(190px,27dvh,240px) !important;
    }
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-hero-copy {
        top:10px;
    }
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-hero-copy h3 {
        font-size:clamp(28px,3vw,43px);
    }
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-progress-dossier {
        bottom:8px;
        padding-block:7px;
    }
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-hero-stats {
        display:none;
    }
}
@media (max-height:720px) and (min-width:701px) {
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-pass-hero.v164-pass-hero {
        min-height:156px !important;
    }
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-hero-copy::before,
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-hero-copy p,
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v164-chapter-ribbon {
        display:none;
    }
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-reward-scroll[data-v165-horizontal-road="true"] {
        min-height:268px;
    }
}
@media (max-height:650px) and (orientation:landscape) {
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-pass-hero.v164-pass-hero {
        min-height:132px !important;
    }
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-reward-scroll[data-v165-horizontal-road="true"] {
        min-height:252px;
    }
}
@media (max-height:480px) and (min-width:560px) {
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-pass-hero.v164-pass-hero {
        min-height:88px !important;
    }
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-reward-scroll[data-v165-horizontal-road="true"] {
        min-height:232px;
    }
}
@media (max-width:480px) {
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll #v137-panel-rewards {
        scrollbar-gutter:auto;
    }
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-reward-scroll[data-v165-horizontal-road="true"] {
        min-height:286px;
    }
}
@media (prefers-reduced-motion:reduce) {
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll #v137-panel-rewards,
    body.v165-pass-scroll-ready #v137-battle-pass.v165-pass-scroll .v137-reward-scroll {
        scroll-behavior:auto !important;
    }
}


/* SOURCE styles/matching-profiles.css */
/* プロフィールはマッチングだけ。顔合わせと対戦進行には干渉しない。 */
#matching-screen[data-v167-profiles="true"] .v118-operative { display:none !important; }
#matching-screen[data-v167-profiles="true"] .v118-matching-shell {
    width:min(1100px,calc(100vw - 16px)) !important;
    height:auto !important; min-height:0 !important;
    max-height:calc(var(--v128-app-height,100dvh) - 16px) !important;
    display:block !important; overflow-y:auto !important; overflow-x:hidden !important;
    overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#af8c47 #090809;
    padding:clamp(22px,3vw,34px) clamp(15px,3vw,34px) 18px !important;
}
#matching-screen[data-v167-profiles="true"] .v118-matchup {
    width:100% !important; max-width:900px !important; min-height:0 !important;
    grid-template-columns:minmax(0,1fr) clamp(46px,8vw,100px) minmax(0,1fr) !important;
    gap:clamp(12px,3vw,34px) !important; align-items:center !important;
    margin:8px auto 0 !important;
}
.v167-match-profile {
    --v167-accent:#d7b95f; --v167-glow:rgba(215,185,95,.38);
    position:relative; min-width:0; display:flex; flex-direction:column; align-items:center;
    padding:12px 10px 10px; color:#f5e8c4; isolation:isolate;
    background:linear-gradient(135deg,rgba(255,236,186,.035),rgba(0,0,0,.18));
    border-top:1px solid color-mix(in srgb,var(--v167-accent) 35%,transparent);
    border-bottom:1px solid color-mix(in srgb,var(--v167-accent) 25%,transparent);
    font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif;
}
.v167-match-profile::before { content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 50% 35%,var(--v167-glow),transparent 65%);opacity:.16; }
.v167-match-kicker { display:block;margin:0 0 16px;color:var(--v167-accent);font:800 8px/1.2 "Courier New",monospace;letter-spacing:.2em; }
.v167-match-portrait {
    position:relative; flex:none; width:min(23vw,214px); aspect-ratio:3/4;
    max-width:100%; isolation:isolate; overflow:visible; background:#08090a;
    box-shadow:0 16px 30px #000;
}
.v167-match-portrait > img { position:absolute;inset:5px;z-index:1;display:block;width:calc(100% - 10px);height:calc(100% - 10px);object-fit:cover;object-position:center 16%;background:#08090a;user-select:none;-webkit-user-drag:none; }
.v167-match-image-shade { position:absolute;inset:5px;z-index:2;pointer-events:none;background:linear-gradient(180deg,transparent 65%,rgba(0,0,0,.4)); }
.v167-match-image-fallback { position:absolute;inset:5px;z-index:1;display:none;place-items:center;background:radial-gradient(circle,#252021,#060708 70%);color:var(--v167-accent);font:900 62px/1 Georgia,serif; }
.v167-match-portrait > .v160-generated-profile-frame,
.v167-match-portrait > .v161-pass-profile-frame { position:absolute !important;inset:-5px !important;z-index:5 !important;width:calc(100% + 10px) !important;height:calc(100% + 10px) !important;display:block !important;overflow:visible !important;opacity:1 !important;pointer-events:none !important;filter:drop-shadow(0 2px 0 #0009) !important; }
.v167-match-portrait .v160-theme,.v167-match-portrait .v161-frame-theme { display:block !important; }
.v167-match-frame-fallback { position:absolute;inset:-6px;z-index:5;border:2px solid var(--v167-accent);box-shadow:inset 0 0 0 4px #08090a,0 0 15px var(--v167-glow);pointer-events:none; }
.v167-match-copy { width:100%;min-width:0;margin-top:20px;text-align:center; }
.v167-match-name { display:block;max-width:100%;color:#fff0c9;font:900 clamp(17px,2.5vw,30px)/1.2 Georgia,"Yu Mincho",serif;letter-spacing:.04em;overflow-wrap:anywhere;text-shadow:0 2px 0 #000,0 0 14px var(--v167-glow); }
.v167-match-title { display:inline-block;max-width:100%;box-sizing:border-box;margin-top:9px;padding:5px 10px;color:#ead9b0;font:700 clamp(9px,1.15vw,13px)/1.5 Georgia,"Yu Mincho",serif;letter-spacing:.07em;overflow-wrap:anywhere;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--v167-accent) 12%,#090809),transparent);border-top:1px solid color-mix(in srgb,var(--v167-accent) 38%,transparent);border-bottom:1px solid color-mix(in srgb,var(--v167-accent) 22%,transparent); }
.v167-match-frame-name { display:block;margin-top:8px;color:#ab9c7b;font:700 8px/1.4 "Courier New",monospace;overflow-wrap:anywhere; }
/* v192: rank belongs to the participant, independently of equipped titles and frames. */
.v192-rank-display {display:inline-flex;align-items:center;gap:9px;max-width:100%;box-sizing:border-box;color:#f2dfb4;text-align:left;}
.v192-rank-display[hidden] {display:none !important;}
.v216-match-public-code {display:block;max-width:100%;margin-top:7px;color:#c8b899;font:600 11px/1.5 sans-serif;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;user-select:text;}
.v216-match-public-code[hidden] {display:none !important;}
#matching-screen .v216-matching-controls {position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:14px 0;padding:10px 12px;border:1px solid #a8894f70;background:#0d0b10;color:#e8d8b8;font:600 12px/1.5 sans-serif;}
#matching-screen .v216-matching-cancel {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:1px solid #d8ba76;border-radius:7px;background:linear-gradient(#302924,#151116);color:#fff0c9;font:700 14px/1.4 sans-serif;cursor:pointer;touch-action:manipulation;}
#matching-screen .v216-matching-cancel:hover:not(:disabled) {background:#493b2c;}
#matching-screen .v216-matching-cancel:focus-visible {outline:3px solid #fff0c9;outline-offset:3px;}
#matching-screen .v216-matching-cancel:disabled {opacity:.65;cursor:wait;}
.v192-rank-copy {display:flex;flex-direction:column;gap:2px;min-width:0;}
.v192-rank-kicker {color:#b8a47b;font:700 6px/1.25 "Courier New",monospace;letter-spacing:.15em;}
.v192-rank-name {color:#fff0c9;font:900 clamp(11px,1.25vw,16px)/1.3 Georgia,"Yu Mincho",serif;overflow-wrap:anywhere;}
.v192-rank-points {color:#cab88e;font:700 8px/1.3 "Courier New",monospace;}
.v192-rank-display > .v107-rank-insignia.is-match {width:34px;filter:drop-shadow(0 2px 3px #0009);}
.v192-rank-display.is-unregistered .v192-rank-name {color:#cabfa6;font-size:11px;}
.v192-match-rank {margin-top:10px;padding:6px 11px;border:1px solid #9b7c4338;background:linear-gradient(120deg,#11100ddb,#060708c7);min-height:48px;}
#matching-screen.show .v167-match-profile { animation:v167ProfileRecordIn .55s cubic-bezier(.18,.78,.18,1) both; }
#matching-screen.show .v167-match-profile.enemy { animation-delay:.07s; }
@keyframes v167ProfileRecordIn { from {opacity:0;transform:translateY(12px);} to {opacity:1;transform:none;} }
@media(max-width:620px) {
    #matching-screen[data-v167-profiles="true"] .v118-matching-shell {padding:24px 10px 13px !important;}
    #matching-screen[data-v167-profiles="true"] .v118-matchup {grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr) !important;gap:8px !important;}
    .v167-match-profile {padding:10px 3px 8px;}
    .v167-match-kicker {font-size:6px;letter-spacing:.08em;margin-bottom:13px;}
    .v167-match-portrait {width:min(29vw,150px);}
    .v167-match-copy {margin-top:16px;}
    .v167-match-name {font-size:clamp(12px,3.5vw,20px);}
    .v167-match-title {font-size:8px;padding:4px 3px;letter-spacing:.02em;}
    .v167-match-frame-name {font-size:6px;}
    .v192-match-rank {margin-top:7px;padding:5px 6px;gap:6px;min-height:41px;}
    .v192-match-rank > .v107-rank-insignia.is-match {width:26px;}
    .v192-match-rank .v192-rank-name {font-size:11px;}
    .v192-match-rank .v192-rank-kicker {font-size:5px;letter-spacing:.06em;}
    .v192-match-rank .v192-rank-points {font-size:7px;}
    .v167-match-portrait > .v160-generated-profile-frame,.v167-match-portrait > .v161-pass-profile-frame {inset:-4px !important;width:calc(100% + 8px) !important;height:calc(100% + 8px) !important;}
}
@media(orientation:landscape) and (max-height:520px) {
    #matching-screen[data-v167-profiles="true"] .v118-matching-shell {padding:20px 14px 9px !important;}
    #matching-screen[data-v167-profiles="true"] .v118-matchup {grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr) !important;max-width:900px !important;gap:12px !important;margin-top:6px !important;}
    .v167-match-profile {display:grid;grid-template-columns:clamp(62px,22dvh,96px) minmax(0,1fr);gap:12px;padding:10px 8px;align-items:center;}
    .v167-match-kicker {grid-column:1/-1;margin:0 0 4px;font-size:6px;}
    .v167-match-portrait {width:100%;grid-column:1;grid-row:2;}
    .v167-match-copy {grid-column:2;grid-row:2;margin:0;text-align:left;}
    .v167-match-name {font-size:clamp(12px,4dvh,19px);}
    .v167-match-title {font-size:clamp(7px,2.1dvh,10px);margin-top:5px;padding:3px 5px;}
    .v167-match-frame-name {font-size:6px;margin-top:5px;}
    .v192-match-rank {margin-top:5px;min-height:36px;padding:4px 6px;gap:6px;}
    .v192-match-rank > .v107-rank-insignia.is-match {width:25px;}
    .v192-match-rank .v192-rank-name {font-size:11px;}
}
@media(prefers-reduced-motion:reduce) {#matching-screen.show .v167-match-profile {animation:none !important;opacity:1;transform:none;}}
@media(forced-colors:active) {.v167-match-profile {border:1px solid CanvasText;background:Canvas;color:CanvasText;}.v167-match-title {border-color:CanvasText;background:Canvas;color:CanvasText;}}


/* SOURCE styles/compositor-ambience.css */
/* Preserve the existing illustrations, physical table props, card flights and
   six-frame premium cels. Only continuous decorative repaint work is changed.
   Ambient movement is composited from a static paint, not background-position
   or filter recalculated over the whole viewport on every animation frame. */
body.v45-battle-active #v67-battle-atmosphere > div {
    will-change:auto !important;
}
body.v45-battle-active #v67-battle-atmosphere > :is(.v67-aurora,.v67-energy-river,.v67-depth-grid,.v67-light-sweep,.v67-suit-orbit) {
    will-change:transform,opacity !important;
}
body.v45-battle-active #v67-battle-atmosphere .v67-aurora {
    /* 1.35 viewport areas instead of 1.85, with the same painted gradients. */
    inset:-8%;
    animation-name:v168AuroraDrift;
}
body.v45-battle-active #v67-battle-atmosphere .v67-energy-river {
    /* 1.54 viewport areas instead of 2.89; no edge can enter the viewport. */
    inset:-12%;
    animation:v168EnergyDrift 15s ease-in-out infinite alternate;
}
body.v45-battle-active #v67-battle-atmosphere .v67-depth-grid {
    animation-name:v168GridDrift;
}
body.v45-battle-active.v64-shocker-battle .field-area::before {
    animation-name:v168FieldCurrent;
    filter:none;
}
body.v45-battle-active.v64-shocker-battle .deck-pile:not(.v68-deck-launch):not(.v68-deck-absorb) {
    animation-name:v168DeckBreath;
    filter:drop-shadow(0 8px 10px rgba(0,0,0,.48));
}
body.v45-battle-active.v67-atmosphere-impact #v67-battle-atmosphere .v67-aurora {
    animation:v168AtmosphereImpact .56s ease-out both;
}
body.v45-battle-active.v66-revolution-active #v66-revolution-frame {
    animation-name:v168RevolutionFramePulse;
    /* The original red border, gold edge and inset shadows remain intact. */
    filter:none;
}

/* A stationary card does not need a permanently reserved filtered surface.
   CSS / Web Animations still promote the actual moving card automatically. */
body.v45-battle-active :is(#hand-zone,#player-field,#opponent-field) > .card,
body.v45-battle-active #opponent-hand-display .opponent-mini-card {
    will-change:auto !important;
}
@media (hover:hover) and (pointer:fine) {
    body.v45-battle-active :is(#hand-zone,#player-field,#opponent-field) > .card:hover {
        will-change:transform !important;
    }
}

/* Visibility handling used to pause only the v67 atmosphere. The extra idle
   table-light, revolution shake and hand motion are also decorative, and can
   pause in a hidden tab without changing battle / AI / clock timers. */
body.v67-paused.v45-battle-active :is(#v72-casino-table,#v66-revolution-frame,#v95-character-hand-underlay) *,
body.v67-paused.v45-battle-active #v66-revolution-frame,
body.v67-paused.v45-battle-active #v66-revolution-frame::before,
body.v67-paused.v45-battle-active :is(#hand-zone,#player-field,#opponent-field) > .card,
body.v67-paused.v45-battle-active #opponent-hand-display .opponent-mini-card,
body.v67-paused.v45-battle-active :is(.persistent-joker-grain,.persistent-joker-scratches,.persistent-joker-flicker),
body.v67-paused.v45-battle-active .field-area::before,
body.v67-paused.v45-battle-active .deck-pile {
    animation-play-state:paused !important;
}

@keyframes v168AuroraDrift {
    0% { transform:translate3d(calc(var(--v67-px,0px) - 2%),calc(var(--v67-py,0px) - 1%),0) scale(1.03) rotate(-1deg);opacity:.74; }
    55% { transform:translate3d(calc(var(--v67-px,0px) + 1.5%),calc(var(--v67-py,0px) + 1%),0) scale(1.09) rotate(1deg);opacity:1; }
    100% { transform:translate3d(calc(var(--v67-px,0px) + 3%),calc(var(--v67-py,0px) - .5%),0) scale(1.05);opacity:.82; }
}
@keyframes v168EnergyDrift {
    from { transform:translate3d(-3%,-1%,0) rotate(-2deg); }
    to { transform:translate3d(3%,1%,0) rotate(-2deg); }
}
@keyframes v168GridDrift {
    from { transform:perspective(420px) rotateX(62deg) translate3d(0,0,0); }
    to { transform:perspective(420px) rotateX(62deg) translate3d(0,34px,0); }
}
@keyframes v168FieldCurrent {
    0%,100% { opacity:.45; }
    50% { opacity:1; }
}
@keyframes v168DeckBreath {
    0%,100% { opacity:.93; }
    50% { opacity:1; }
}
@keyframes v168AtmosphereImpact {
    0% { opacity:.6;transform:scale(1.02); }
    16% { opacity:1;transform:scale(1.05); }
    100% { opacity:.82;transform:scale(1.03); }
}
@keyframes v168RevolutionFramePulse {
    from { opacity:.82; }
    to { opacity:1; }
}
@media (prefers-reduced-motion:reduce) {
    body.v45-battle-active #v67-battle-atmosphere :is(.v67-aurora,.v67-energy-river,.v67-depth-grid),
    body.v45-battle-active.v66-revolution-active #v66-revolution-frame,
    body.v45-battle-active.v64-shocker-battle .field-area::before,
    body.v45-battle-active.v64-shocker-battle .deck-pile:not(.v68-deck-launch):not(.v68-deck-absorb) {
        animation:none !important;
    }
}


/* SOURCE styles/bulletin.css */
/* v173: the four actual reward cards, and original full illustrations. */
#v127-home-bulletin .v127-bulletin-copy { width:51%; }
#v127-home-bulletin .v127-bulletin-art { left:45%; }
.v173-bulletin-art.has-four-cards .v171-bulletin-card {
  aspect-ratio: .718; height:83%; top:7%; border-radius:7px;
  box-shadow:0 10px 20px #0009,0 0 18px rgba(var(--v127-slide-accent-rgb),.17);
}
.v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(1) { left:16%; top:9%; z-index:1; transform:rotate(-11deg); }
.v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(2) { left:34%; top:5%; z-index:2; transform:rotate(-4deg); }
.v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(3) { left:52%; top:5%; z-index:3; transform:rotate(4deg); }
.v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(4) { left:70%; top:9%; z-index:4; transform:rotate(11deg); }
.v173-bulletin-art.has-four-cards .v171-bulletin-art-label { left:14%; right:8%; bottom:3%; font-size:8px; padding:4px 8px; }
.v173-bulletin-art.has-character-portrait { overflow:hidden; }
.v173-bulletin-art.has-character-portrait::before {
  inset:0; border-radius:0; opacity:.18; filter:blur(2px) saturate(.8);
  background-image:linear-gradient(90deg,#111018aa,transparent 60%),var(--v173-portrait-source);
  background-size:cover; background-position:50% 30%;
  mask-image:linear-gradient(90deg,transparent 0%,#000 30% 90%,transparent 100%);
}
.v173-bulletin-art.has-character-portrait::after {
  inset:0; z-index:3;
  background:linear-gradient(90deg,#090b0ff0,transparent 45% 90%,#05080c66),linear-gradient(0deg,#090b0f99,transparent 30%);
}
.v173-bulletin-portrait {
  position:absolute; z-index:2; top:-26%; right:8%; height:255%; aspect-ratio:3/5;
  display:block; overflow:hidden;
  mask-image:linear-gradient(90deg,transparent 0%,#000 16% 90%,transparent 100%);
}
.v173-bulletin-portrait img { width:100%; height:100%; display:block; object-fit:contain; }
.v173-bulletin-art.has-character-portrait .v171-bulletin-art-label { left:auto; right:8%; bottom:4%; width:auto; max-width:65%; padding:5px 10px; font-size:9px; letter-spacing:.12em; background:#0b1016dd; }
.v127-bulletin-slide[data-v127-notice="imperial-ranked-battles"]::before {
  background:repeating-linear-gradient(130deg,transparent 0 48px,#e6be6210 49px 50px),radial-gradient(circle at 72% 45%,transparent 0 52px,#e6be6226 53px 54px,transparent 55px 75px,#e6be6218 76px 77px,transparent 78px);
}
.v127-bulletin-slide[data-v127-notice="shocker-beta"]::before { background:radial-gradient(ellipse at 76% 45%,#d0ebd318,transparent 50%),repeating-linear-gradient(120deg,transparent 0 60px,#76c9c311 61px 62px); }
.v171-bulletin-modal-art.v173-bulletin-art { height:178px; }
.v171-bulletin-modal-art.v173-bulletin-art.has-four-cards .v171-bulletin-card { height:86%; width:auto; top:7%; }
.v171-bulletin-modal-art.v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(1) { left:calc(50% - 205px); transform:rotate(-8deg); }
.v171-bulletin-modal-art.v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(2) { left:calc(50% - 104px); transform:rotate(-3deg); }
.v171-bulletin-modal-art.v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(3) { left:calc(50% - 3px); transform:rotate(3deg); }
.v171-bulletin-modal-art.v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(4) { left:calc(50% + 98px); transform:rotate(8deg); }
.v171-bulletin-modal-art.v173-bulletin-art.has-character-portrait .v173-bulletin-portrait { height:250%; right:calc(50% - 148px); top:-24%; }
@media(max-width:700px) {
  #v127-home-bulletin .v127-bulletin-copy { width:52%; padding-left:34px; padding-right:3px; }
  #v127-home-bulletin .v127-bulletin-art { left:50%; }
  #v127-home-bulletin .v127-bulletin-title { font-size:clamp(16px,4.2vw,23px); }
  #v127-home-bulletin .v127-bulletin-summary { font-size:8px; -webkit-line-clamp:2; }
  .v173-bulletin-art.has-four-cards .v171-bulletin-card { height:44%; top:4%; border-radius:4px; box-shadow:0 4px 10px #000a; }
  .v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(1) { left:19%; top:4%; transform:rotate(-5deg); }
  .v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(2) { left:55%; top:4%; transform:rotate(5deg); }
  .v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(3) { left:19%; top:51%; transform:rotate(-5deg); }
  .v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(4) { left:55%; top:51%; transform:rotate(5deg); }
  .v173-bulletin-portrait { height:205%; top:-13%; right:5%; }
  .v173-bulletin-art.has-character-portrait::before { opacity:.13; }
  .v171-bulletin-modal-art.v173-bulletin-art { height:150px; }
  .v171-bulletin-modal-art.v173-bulletin-art.has-four-cards .v171-bulletin-card { height:83%; top:8%; }
  .v171-bulletin-modal-art.v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(1) { left:calc(50% - 146px); transform:rotate(-8deg); }
  .v171-bulletin-modal-art.v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(2) { left:calc(50% - 73px); transform:rotate(-3deg); }
  .v171-bulletin-modal-art.v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(3) { left:calc(50%); transform:rotate(3deg); }
  .v171-bulletin-modal-art.v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(4) { left:calc(50% + 73px); transform:rotate(8deg); }
}
@media(max-height:560px) and (min-width:560px) {
  #v127-home-bulletin .v127-bulletin-copy { width:51%; }
  #v127-home-bulletin .v127-bulletin-art { left:45%; }
  .v173-bulletin-art.has-four-cards .v171-bulletin-card { height:82%; top:7%; }
  .v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(1) { left:21%; top:10%; transform:rotate(-10deg); }
  .v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(2) { left:39%; top:5%; transform:rotate(-3deg); }
  .v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(3) { left:57%; top:5%; transform:rotate(3deg); }
  .v173-bulletin-art.has-four-cards .v171-bulletin-card:nth-child(4) { left:75%; top:10%; transform:rotate(10deg); }
}


/* SOURCE styles/rare-awakening-cutin.css */
/* Keep the live battle visible around the portrait film and behind the translucent veil. */
#v182-rare-cutin[hidden] { display:none !important; }
#v182-rare-cutin {
    --v182-accent:#f1b8d6; --v182-glow:rgba(166,55,111,.28); --v182-soft-glow:rgba(212,107,158,.33);
    position:fixed; inset:0; z-index:2147483647; isolation:isolate; overflow:hidden;
    background:rgba(8,4,16,.28); color:#f8ecd2; outline:0;
    pointer-events:auto; touch-action:none;
    font-family:"Yu Mincho","Hiragino Mincho ProN",Georgia,serif;
    animation:v182-curtain-arrival .32s ease-out both;
}
#v182-rare-cutin::before {
    content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
    background:radial-gradient(ellipse at 60% 43%,transparent 27%,rgba(24,6,31,.24) 66%,rgba(3,1,8,.5) 100%);
}
#v182-rare-cutin::after {
    content:""; position:absolute; z-index:1; top:-25%; bottom:-25%; left:-20%;
    width:18%; transform:skewX(-18deg); pointer-events:none;
    background:linear-gradient(90deg,transparent,rgba(229,157,192,.17) 48%,rgba(255,237,196,.22) 52%,transparent);
    animation:v182-sigil-blade 1.05s .08s both;
}
.v182-night-veil {
    position:absolute; inset:0; z-index:1; pointer-events:none;
    background:linear-gradient(90deg,rgba(20,5,27,.2),transparent 48%,rgba(11,3,18,.16)),
        linear-gradient(0deg,rgba(8,3,14,.27),transparent 22% 79%,rgba(8,3,14,.28));
}
.v182-film {
    position:absolute; top:50%; right:6%; z-index:2;
    width:min(39vw,45.5vh); aspect-ratio:8 / 13;
    transform:translateY(-50%); overflow:visible;
    border:1px solid rgba(246,207,151,.84); background:#140817;
    box-shadow:0 0 0 5px rgba(29,10,30,.75),0 0 0 6px rgba(222,171,107,.44),
        0 18px 64px rgba(0,0,0,.62),0 0 46px var(--v182-glow);
    animation:v182-portrait-enter .48s cubic-bezier(.15,.8,.18,1) both;
}
.v182-film::before {
    content:""; position:absolute; inset:9px; z-index:4; pointer-events:none;
    border:1px solid rgba(232,186,124,.57);
    box-shadow:inset 0 0 18px rgba(4,1,9,.55),0 0 17px rgba(249,190,130,.14);
}
.v182-film::after {
    content:""; position:absolute; z-index:5; pointer-events:none;
    left:-11px; right:-11px; top:50%; height:34%; transform:translateY(-50%);
    border-left:2px solid rgba(239,187,130,.67);
    border-right:2px solid rgba(239,187,130,.67);
}
.v182-film .v182-ambient,
.v182-film video {
    position:absolute; inset:0; width:100%; height:100%; display:block;
    object-fit:contain; object-position:center;
}
.v182-film .v182-ambient { z-index:0; opacity:.35; filter:brightness(.42) blur(12px); }
.v182-film video { z-index:1; background:transparent; }
.v182-gilded-rules {
    position:absolute; inset:5% 3%; z-index:3; pointer-events:none;
    border-top:1px solid rgba(234,187,122,.63);
    border-bottom:1px solid rgba(234,187,122,.63);
    box-shadow:0 -5px 0 -4px rgba(229,176,112,.34),0 5px 0 -4px rgba(229,176,112,.34);
}
.v182-gilded-rules::before,.v182-gilded-rules::after {
    content:""; position:absolute; width:48px; height:48px;
    border:1px solid rgba(246,199,130,.72); transform:rotate(45deg);
    box-shadow:inset 0 0 18px rgba(197,90,150,.27),0 0 18px rgba(0,0,0,.42);
}
.v182-gilded-rules::before { top:-25px; left:7%; }
.v182-gilded-rules::after { bottom:-25px; right:7%; }
.v182-gilded-rules span { position:absolute; color:#efc691; font-size:12px; text-shadow:0 0 8px #1c0714; }
.v182-gilded-rules span:first-child { top:-10px; left:calc(7% + 19px); }
.v182-gilded-rules span:last-child { bottom:-10px; right:calc(7% + 19px); }
.v182-sigil {
    position:absolute; width:min(13vw,150px); height:auto; left:7%; top:9%; z-index:4;
    fill:none; stroke:rgba(244,195,132,.84); stroke-width:.9;
    filter:drop-shadow(0 2px 11px #09010e) drop-shadow(0 0 12px var(--v182-soft-glow));
}
.v182-caption {
    position:absolute; left:6%; top:52%; z-index:5; width:36%;
    padding:25px 28px 28px; transform:translateY(-50%);
    background:linear-gradient(100deg,rgba(8,3,17,.9),rgba(23,7,31,.72) 76%,rgba(23,7,31,.08));
    border-left:3px solid rgba(243,196,129,.88);
    box-shadow:-9px 12px 34px rgba(2,0,6,.25);
    text-shadow:0 3px 10px #030107,0 0 27px #12010e;
    animation:v182-caption-enter .56s .13s both;
}
.v182-caption p { margin:0; }
.v182-caption .v182-kicker { font-size:clamp(10px,1.05vw,15px); letter-spacing:.35em; color:#eacc98; }
.v182-caption .v182-skin-name { margin-top:20px; font-size:clamp(17px,2vw,29px); letter-spacing:.18em; color:var(--v182-accent); }
.v182-caption h2 {
    margin:12px 0 0; font-family:inherit; font-size:clamp(30px,4vw,68px);
    font-weight:800; line-height:1.2; letter-spacing:.05em; white-space:nowrap;
    color:#fff0d5; text-shadow:0 3px 1px #2f1223,0 0 28px var(--v182-soft-glow);
}
.v182-caption .v182-character-name { margin-top:18px; font-size:clamp(13px,1.6vw,21px); letter-spacing:.18em; }
.v182-caption-flourish {
    display:flex; align-items:center; gap:16px; margin-top:22px; max-width:300px;
    color:#e2b877; font-size:16px;
}
.v182-caption-flourish::before,.v182-caption-flourish::after {
    content:""; height:1px; flex:1; background:linear-gradient(90deg,transparent,#e2b877);
}
.v182-caption-flourish::after { transform:scaleX(-1); }
#v182-rare-cutin.is-exiting { animation:v182-curtain-departure .22s ease-in both; }
#v182-rare-cutin.is-still .v182-film video { opacity:0; }
#v182-rare-cutin.is-still .v182-film .v182-ambient { filter:none; opacity:1; }
@keyframes v182-curtain-arrival { from { opacity:0; } to { opacity:1; } }
@keyframes v182-curtain-departure { from { opacity:1; } to { opacity:0; } }
@keyframes v182-sigil-blade {
    0% { opacity:0; transform:skewX(-18deg) translateX(-55vw); }
    28% { opacity:.65; }
    100% { opacity:0; transform:skewX(-18deg) translateX(145vw); }
}
@keyframes v182-portrait-enter {
    from { opacity:0; transform:translate(14%,-50%) scale(.95); }
    to { opacity:1; transform:translate(0,-50%) scale(1); }
}
@keyframes v182-caption-enter {
    from { opacity:0; transform:translate(-28px,-50%); filter:blur(4px); }
    to { opacity:1; transform:translate(0,-50%); filter:blur(0); }
}
@media (max-aspect-ratio:1/1) {
    .v182-film {
        top:9%; right:50%; width:min(60vw,32vh);
        transform:translateX(50%);
        animation-name:v182-portrait-enter-vertical;
    }
    .v182-night-veil {
        background:linear-gradient(0deg,rgba(10,3,17,.36),transparent 29% 79%,rgba(10,3,17,.2));
    }
    .v182-caption {
        top:auto; bottom:max(6%,calc(env(safe-area-inset-bottom) + 20px));
        left:7%; width:86%; padding:13px 13px 15px;
        transform:none; text-align:center;
        background:linear-gradient(90deg,rgba(10,4,20,.62),rgba(17,5,25,.88) 20% 80%,rgba(10,4,20,.62));
        border-left:0; border-top:2px solid rgba(239,190,132,.8);
        animation-name:v182-caption-enter-vertical;
    }
    .v182-caption .v182-kicker { font-size:10px; letter-spacing:.28em; }
    .v182-caption .v182-skin-name { margin-top:8px; font-size:17px; }
    .v182-caption h2 { margin-top:5px; font-size:clamp(27px,9.1vw,50px); letter-spacing:.04em; }
    .v182-caption .v182-character-name { margin-top:7px; font-size:12px; }
    .v182-caption-flourish { margin:7px auto 0; width:55%; }
    .v182-sigil { width:56px; left:6%; top:max(7%,env(safe-area-inset-top)); }
    .v182-gilded-rules { inset:3% 4%; }
    .v182-gilded-rules::before,.v182-gilded-rules::after { width:30px; height:30px; }
    .v182-gilded-rules::before { top:-16px; }
    .v182-gilded-rules::after { bottom:-16px; }
}
@keyframes v182-portrait-enter-vertical {
    from { opacity:0; transform:translate(50%,14px) scale(.94); }
    to { opacity:1; transform:translate(50%,0) scale(1); }
}
@keyframes v182-caption-enter-vertical {
    from { opacity:0; transform:translateY(18px); filter:blur(4px); }
    to { opacity:1; transform:translateY(0); filter:blur(0); }
}
@media (max-height:500px) and (min-aspect-ratio:1/1) {
    .v182-sigil { width:54px; top:8%; }
    .v182-caption { left:5%; width:39%; padding:12px 17px 13px; }
    .v182-caption .v182-skin-name { margin-top:9px; font-size:17px; }
    .v182-caption h2 { font-size:35px; margin-top:7px; }
    .v182-caption .v182-character-name { margin-top:9px; font-size:12px; }
    .v182-caption-flourish { margin-top:10px; }
}
@media (prefers-reduced-motion:reduce) {
    #v182-rare-cutin,#v182-rare-cutin::after,.v182-film,.v182-caption {
        animation-duration:.01s; animation-delay:0s;
    }
    #v182-rare-cutin.is-exiting { animation-duration:.01s; }
}

#v182-rare-cutin[data-cutin-character="monty-larasa"] {
    --v182-accent:#cbb5f6; --v182-glow:rgba(133,89,212,.28); --v182-soft-glow:rgba(185,136,238,.33);
}
#v182-rare-cutin[data-cutin-character="nol-leonard"] {
    --v182-accent:#f0929d; --v182-glow:rgba(183,45,63,.28); --v182-soft-glow:rgba(216,79,99,.33);
}


/* SOURCE styles/online-room.css */
/* SHOCKER v186: a separate imperial table for server-authoritative friend matches. */
#home-screen.v62-shocker-home .home-side.v186-friend-entry-ready{grid-template-rows:auto auto minmax(0,1fr)!important;}
#home-screen .v186-online-entry{width:100%;display:flex;align-items:center;gap:12px;margin:0 0 10px;padding:13px 17px;min-height:62px;color:#f4e4b9;border:1px solid #b59657;background:linear-gradient(110deg,#342333,#121922 72%);box-shadow:inset 0 0 20px #b99a3f13,0 7px 20px #0004;text-align:left;cursor:pointer;}
#home-screen .v186-online-entry>span:first-child{font:32px Georgia,serif;color:#e4c889;}
#home-screen .v186-online-entry>span:nth-child(2){min-width:0;flex:1;}
#home-screen .v186-online-entry strong{display:block;font:800 15px/1.4 system-ui,sans-serif;letter-spacing:.04em;}
#home-screen .v186-online-entry small{display:block;color:#bbad91;font:11px/1.6 system-ui,sans-serif;}
#home-screen .v186-online-entry>b{font:30px Georgia,serif;}
#home-screen .v186-online-entry:focus-visible{outline:3px solid #b9d9ef;outline-offset:3px;}
@media(max-width:900px){#home-screen .v186-online-entry{min-height:44px;padding:6px 12px;margin-bottom:4px;}#home-screen .v186-online-entry>span:first-child{font-size:25px;}#home-screen .v186-online-entry strong{font-size:12px;}#home-screen .v186-online-entry small{font-size:9px;}}
@media(max-height:560px) and (min-width:560px){#home-screen.v62-shocker-home .home-side.v186-friend-entry-ready{grid-template-rows:auto minmax(0,1fr)!important;}#home-screen .v186-online-entry{min-height:44px;padding:5px 10px;margin-bottom:3px;}#home-screen .v186-online-entry strong{font-size:12px;}#home-screen .v186-online-entry small{font-size:9px;}}
body.v186-online-open #v172-account-button{display:none;}
#v186-online-root{position:fixed;inset:0;z-index:2147483640;display:grid;place-items:center;padding:clamp(0px,2vw,24px);box-sizing:border-box;color:#efe5d0;background:linear-gradient(#070b12ed,#08080cf5),url('../assets/9abaee8a640e70c80532bc7c.webp') center/cover;font:14px/1.55 system-ui,-apple-system,sans-serif;text-align:left;isolation:isolate;}
#v186-online-root[hidden]{display:none!important;}
#v186-online-root *,#v186-online-root *::before,#v186-online-root *::after{box-sizing:border-box;}
#v186-online-root .v186-shell{width:min(100%,1160px);height:100%;max-height:950px;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);border:1px solid #af9255;background:#080e14f2;box-shadow:0 30px 100px #000b,inset 0 0 60px #ba984d08;}
#v186-online-root .v186-header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 24px;border-bottom:1px solid #b299582f;background:linear-gradient(110deg,#33202c,#101720);}
#v186-online-root .v186-kicker{display:block;color:#b99e6b;font:700 10px/1.4 Georgia,serif;letter-spacing:.18em;}
#v186-online-root h1{margin:5px 0 0;font-size:23px;letter-spacing:.08em;color:#f0dcaa;}
#v186-online-root h2{margin:12px 0;font-size:24px;font-weight:800;line-height:1.45;}
#v186-online-root h3{font-size:15px;letter-spacing:.025em;margin:0 0 10px;color:#e7d3a2;}
#v186-online-root h4{margin:12px 0 6px;color:#d4c5a6;font-size:13px;}
#v186-online-root p{margin:8px 0;overflow-wrap:anywhere;}
#v186-online-root button,#v186-online-root input,#v186-online-root select{font:inherit;}
#v186-online-root button{min-height:44px;padding:9px 15px;border:1px solid #8f794d;border-radius:3px;color:#e7d5ad;background:linear-gradient(#24303c,#111a25);cursor:pointer;touch-action:manipulation;}
#v186-online-root button:hover:not(:disabled){border-color:#e5c77f;filter:brightness(1.12);}
#v186-online-root button:disabled{opacity:.45;cursor:default;}
#v186-online-root .v186-primary{color:#f6e6b7;background:linear-gradient(110deg,#6a2237,#391d31);border-color:#c69d60;font-weight:800;}
#v186-online-root :focus-visible{outline:3px solid #a7d6f2;outline-offset:3px;}
#v186-online-root .v186-header-tools{display:flex;align-items:center;gap:14px;}
#v186-online-root .v186-header-tools>button{font-size:25px;padding:0;width:44px;line-height:1;}
#v186-online-root .v186-header-code{color:#cfb87e;font:700 16px Georgia,serif;letter-spacing:.15em;}
#v186-online-root .v186-status{padding:8px 24px;min-height:33px;border-bottom:1px solid #89704725;background:#111a24;color:#9caea9;font-size:11px;}
#v186-online-root .v186-status p{color:#f0cda3;font-size:13px;white-space:pre-wrap;margin:6px 0;}
#v186-online-root .v186-status p:empty{display:none;}
#v186-online-root .v186-content{min-width:0;min-height:0;padding:clamp(12px,2.2vw,28px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-color:#8a7347 #0b121a;-webkit-overflow-scrolling:touch;}
#v186-online-root .v186-entrance,#v186-online-root .v186-lobby{max-width:940px;margin:0 auto;}
#v186-online-root .v186-intro{margin-bottom:22px;}
#v186-online-root .v186-intro p{color:#bcb7aa;}
#v186-online-root .v186-character-picker{border:0;padding:0;margin:0 0 22px;min-width:0;}
#v186-online-root legend{padding:0 0 10px;font-weight:700;color:#d7c18d;}
#v186-online-root .v186-character-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;}
#v186-online-root .v186-character{position:relative;display:block;min-width:0;overflow:hidden;border:1px solid #65583b;background:#121821;cursor:pointer;transition:border-color .15s,transform .15s;}
#v186-online-root .v186-character input{position:absolute;left:6px;top:6px;width:17px;height:17px;margin:0;accent-color:#e8c781;z-index:1;}
#v186-online-root .v186-character img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;object-position:center 15%;opacity:.75;}
#v186-online-root .v186-character>span{display:block;text-align:center;padding:5px 2px;font-size:11px;overflow-wrap:anywhere;}
#v186-online-root .v186-character.is-selected{border-color:var(--v186-gem,#d5b76d);box-shadow:0 0 0 1px var(--v186-gem,#d5b76d),0 0 16px #ba994824;}
#v186-online-root .v186-character.is-selected img{opacity:1;}
#v186-online-root .v186-character:focus-within{outline:3px solid #a7d6f2;outline-offset:2px;}
#v186-online-root .v186-room-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
#v186-online-root .v186-room-options>section,#v186-online-root .v186-room-options>form{padding:18px;background:linear-gradient(135deg,#1d2530,#0e151d);border:1px solid #92784a60;min-width:0;}
#v186-online-root .v186-room-options p{color:#b2b2ab;font-size:13px;}
#v186-online-root .v186-room-options label,#v186-online-root .v186-room-options small{display:block;font-size:11px;color:#c1b18d;}
#v186-online-root .v186-code-input{display:flex;gap:8px;margin:5px 0 8px;}
#v186-online-root .v186-code-input input{min-width:0;width:100%;border:1px solid #807450;background:#070c12;color:#f4e2b5;border-radius:3px;padding:10px 12px;letter-spacing:.15em;}
#v186-online-root .v186-code-input button{flex-shrink:0;}
#v186-online-root .v186-note{font-size:12px;color:#a6a89f;line-height:1.75;}
#v186-online-root .v186-gate{max-width:580px;margin:clamp(20px,9vh,100px) auto;text-align:center;padding:24px 16px;border-top:1px solid #b3995d70;border-bottom:1px solid #b3995d70;background:radial-gradient(ellipse at top,#30263170,transparent);}
#v186-online-root .v186-gate p{margin:16px 0;}
#v186-online-root .v186-seal{font:65px Georgia,serif;color:#d8bb78;}
#v186-online-root .v186-code-panel{text-align:center;padding:20px;border:1px solid #a2864e7a;background:linear-gradient(120deg,#282332,#111922);}
#v186-online-root .v186-code-panel>span{display:block;font-size:12px;color:#c0b396;}
#v186-online-root .v186-code-panel>strong{display:block;font:800 clamp(28px,6vw,46px)/1.8 Georgia,serif;letter-spacing:.18em;color:#f0d998;}
#v186-online-root .v186-seats{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;margin:22px 0;}
#v186-online-root .v186-seat{border:1px solid #695e405e;padding:15px;min-width:0;background:#17212b;}
#v186-online-root .v186-person{display:flex;align-items:center;gap:12px;min-width:0;}
#v186-online-root .v186-person img{width:52px;height:64px;object-fit:cover;object-position:center 12%;border:1px solid #a48850;border-radius:3px;}
#v186-online-root .v186-person>div{min-width:0;}
#v186-online-root .v186-person strong,#v186-online-root .v186-person span{display:block;overflow-wrap:anywhere;}
#v186-online-root .v186-person strong{font-size:15px;color:#f0dfb8;}
#v186-online-root .v186-person span{font-size:11px;color:#b6b4a8;margin-top:4px;}
#v186-online-root .v186-versus{font:900 20px Georgia,serif;color:#aa8b4d;}
#v186-online-root .v186-ready{display:block;margin-top:10px;color:#bab5a5;font-size:12px;}
#v186-online-root .v186-ready.is-ready{color:#95d7b6;}
#v186-online-root .v186-button-row{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0;}
#v186-online-root .v186-match{max-width:990px;margin:auto;}
#v186-online-root .v186-match-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:0 0 12px;color:#c0a775;font-size:12px;}
#v186-online-root .v186-phase{font-weight:800;font-size:16px;color:#f2ddb4;}
#v186-online-root .v186-table{position:relative;padding:16px;border:1px solid #9d87513d;background:linear-gradient(#101b20d9,#14252bdd),url('../assets/9abaee8a640e70c80532bc7c.webp') center/cover;box-shadow:inset 0 0 70px #0009;}
#v186-online-root .v186-player-strip{display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
#v186-online-root .v186-player-strip .v186-person{flex:1;min-width:130px;}
#v186-online-root .v186-player-strip .v186-person img{width:39px;height:49px;}
#v186-online-root .v186-player-strip .v186-person strong{font-size:13px;}
#v186-online-root .v186-clock{font:700 24px/1 Georgia,serif;letter-spacing:.08em;color:#ead5a1;}
#v186-online-root .v186-counters{display:flex;gap:13px;flex-wrap:wrap;color:#b2b8ac;font-size:11px;}
#v186-online-root .v186-counters b{color:#e2d4b3;margin-left:3px;}
#v186-online-root .v186-known-bottom{width:100%;padding:5px 8px;border:1px solid #9b854536;background:#0e1c2580;font-size:11px;}
#v186-online-root .v186-known-bottom summary{min-height:22px;color:#c8b786;}
#v186-online-root .v186-known-bottom span{color:#e2d4ae;font-weight:700;}
#v186-online-root .v186-known-bottom small{display:block;color:#a7aea3;font-size:10px;}
#v186-online-root .v186-field-label{text-align:center;color:#a8a98e;font-size:10px;margin:7px 0;}
#v186-online-root .v186-cards{display:flex;gap:9px;align-items:center;justify-content:center;flex-wrap:wrap;min-height:20px;}
#v186-online-root .v186-card{position:relative;display:block;flex:0 0 auto;width:65px;height:90px;min-height:0;padding:0;border:1px solid #c3ad79;border-radius:6px;color:#1c252c;background:linear-gradient(125deg,#fcf4e2,#e9ddc1);box-shadow:0 3px 9px #0007;overflow:hidden;transition:transform .13s,box-shadow .13s;}
#v186-online-root button.v186-card{cursor:pointer;}
#v186-online-root .v186-card.is-red{color:#992f43;}
#v186-online-root .v186-card.is-selected{transform:translateY(-5px);outline:3px solid #8bcce6;outline-offset:2px;box-shadow:0 0 20px #78bae65e;}
#v186-online-root .v186-card.is-hidden{background:repeating-linear-gradient(45deg,#243546 0 3px,#1a2938 3px 6px);color:#d8bd7b;border:3px double #be9d5f;}
#v186-online-root .v186-card.is-private::after{content:'自分のみ公開';position:absolute;bottom:0;left:0;width:100%;background:#1c253bd9;color:#ece4cb;font-size:7px;text-align:center;padding:2px;}
#v186-online-root .v186-card-back{position:absolute;inset:9px;border:1px solid #a88c4c7a;display:grid;place-items:center;font:31px Georgia,serif;}
#v186-online-root .v186-inspected-rank{position:absolute;left:0;right:0;bottom:2px;text-align:center;background:#121f2ff2;color:#f1dfab;font:800 14px/1.3 Georgia,serif;}
#v186-online-root .v186-inspected-rank small{display:block;font:8px/1.3 system-ui,sans-serif;color:#bed6de;}
#v186-online-root .v186-card-corner{position:absolute;top:5px;left:6px;font:800 16px/1 Georgia,serif;}
#v186-online-root .v186-card-corner small{display:block;font-size:13px;text-align:center;margin-top:2px;}
#v186-online-root .v186-card-center{position:absolute;left:0;right:0;top:25px;text-align:center;font:30px/1.3 Georgia,serif;}
#v186-online-root .v186-card-bottom{position:absolute;bottom:4px;right:5px;font:700 15px Georgia,serif;transform:rotate(180deg);}
#v186-online-root .v186-table-center{text-align:center;height:46px;margin:5px 0;color:#a58e59;display:flex;justify-content:center;align-items:center;gap:12px;}
#v186-online-root .v186-table-center>span{font:23px Georgia,serif;}
#v186-online-root .v186-table-center p{font-size:10px;letter-spacing:.12em;}
#v186-online-root .v186-table-center.has-battle{height:auto;min-height:88px;padding:7px 0;}
#v186-online-root .v186-table-center .v186-card{width:44px;height:65px;}
#v186-online-root .v186-table-center .v186-card-center{font-size:19px;top:23px;}
#v186-online-root .v186-table-center .v186-card-corner{font-size:11px;}
#v186-online-root .v186-table-center .v186-card-corner small{font-size:9px;}
#v186-online-root .v186-hand-panel{padding:18px 0 10px;}
#v186-online-root .v186-hand-panel h3{text-align:center;font-size:12px;color:#bdaf91;}
#v186-online-root .v186-hand-panel h3 small{font-size:10px;}
#v186-online-root .v186-hand-panel .v186-cards{padding:8px 3px;}
#v186-online-root .v186-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:12px 0;}
#v186-online-root .v186-actions .is-active{border-color:#a0cde6;color:#ddf2ff;background:#253c4e;}
#v186-online-root .v186-selection{padding:15px 18px;margin:12px 0;border:1px solid #799baf83;background:#1a2c37;}
#v186-online-root .v186-selection>strong{color:#d9e7ea;}
#v186-online-root .v186-selection p{font-size:12px;color:#bac7c8;}
#v186-online-root .v186-selection label{font-size:12px;}
#v186-online-root select{padding:8px;margin-left:10px;color:#eddec1;background:#111d28;border:1px solid #8e8059;}
#v186-online-root .v186-abilities{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0;}
#v186-online-root .v186-abilities button{text-align:left;background:linear-gradient(125deg,#2d2438,#111c28);}
#v186-online-root .v186-abilities strong{display:block;color:#efd7a0;}
#v186-online-root .v186-abilities small{display:block;white-space:pre-wrap;color:#b2b5b5;font-size:11px;line-height:1.7;margin-top:5px;}
#v186-online-root .v186-ability-pending{border:1px solid #a48753;background:#1b2031;padding:18px;margin:14px 0;}
#v186-online-root .v186-ability-pending fieldset{min-width:0;border:1px solid #78674370;padding:12px;margin:14px 0;}
#v186-online-root .v186-ability-pending legend{font-size:12px;padding:0 6px;}
#v186-online-root .v186-choice-options{display:flex;flex-wrap:wrap;gap:8px;}
#v186-online-root .v186-choice-options label{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #77684a;color:#e4d5b5;background:#111a27;cursor:pointer;}
#v186-online-root .v186-choice-options input{accent-color:#d3b878;width:18px;height:18px;margin:0;}
#v186-online-root .v186-choice-options small{display:block;color:#a7aea9;font-size:10px;}
#v186-online-root .v186-pending-note{color:#a5c6d0;font-size:12px;}
#v186-online-root .v186-pending-note:empty{display:none;}
#v186-online-root .v186-surrender{display:block;margin:15px auto;color:#bc9c94;border-color:#79545a;background:#251d26;font-size:12px;}
#v186-online-root .v186-log,#v186-online-root .v186-zones{padding:12px 0;border-top:1px solid #a58a462c;color:#aeac9e;font-size:12px;}
#v186-online-root summary{cursor:pointer;min-height:28px;color:#cbb98f;}
#v186-online-root .v186-log ol{max-height:220px;overflow-y:auto;padding-left:25px;scrollbar-color:#8a7347 #0b121a;}
#v186-online-root .v186-log li{margin:7px 0;line-height:1.6;}
#v186-online-root .v186-zones .v186-cards{justify-content:flex-start;}
#v186-online-root .v186-zones .v186-card{width:45px;height:65px;}
#v186-online-root .v186-zones .v186-card-center{font-size:20px;top:20px;}
#v186-online-root .v186-zones .v186-card-corner{font-size:11px;top:4px;left:4px;}
#v186-online-root .v186-zones .v186-card-corner small{font-size:9px;}
#v186-online-root .v186-result{text-align:center;margin:0 0 18px;padding:24px;border:1px solid #b39651;background:radial-gradient(ellipse at top,#553445,#17202c);}
#v186-online-root .v186-result>span{color:#e5c681;font:800 27px Georgia,serif;letter-spacing:.14em;}
#v186-online-root .v186-result small{display:block;color:#b8b9ad;margin-top:15px;font-size:11px;}
#v186-online-root .v186-disconnect{padding:10px 14px;color:#d4bf8d;border:1px solid #947647;background:#30261a;font-size:12px;}
#v186-online-root .v186-confirm{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:20px;background:#02060ae8;}
#v186-online-root .v186-confirm>section{width:min(100%,440px);padding:25px;border:1px solid #be9b5e;background:linear-gradient(135deg,#342433,#0d1822);box-shadow:0 20px 70px #0008;}
#v186-online-root .v186-confirm h2{font-size:20px;}
#v186-online-root .v186-confirm p{color:#c6c0b1;font-size:13px;}
@media(max-width:760px){#v186-online-root .v186-character-grid{grid-template-columns:repeat(5,minmax(0,1fr));}#v186-online-root .v186-person strong{font-size:13px;}#v186-online-root .v186-seats{gap:8px;}#v186-online-root .v186-seat{padding:10px;}#v186-online-root .v186-seat .v186-person{flex-direction:column;align-items:flex-start;}#v186-online-root .v186-room-options{grid-template-columns:1fr;}#v186-online-root .v186-counters{gap:9px;}#v186-online-root .v186-player-strip{gap:10px;}}
@media(max-width:480px){#v186-online-root{padding:0;}#v186-online-root .v186-shell{border-left:0;border-right:0;max-height:none;}#v186-online-root .v186-header{padding:12px 14px;}#v186-online-root h1{font-size:20px;}#v186-online-root .v186-status{padding:7px 14px;}#v186-online-root .v186-content{padding:13px;}#v186-online-root .v186-intro h2{font-size:20px;}#v186-online-root .v186-character-grid{gap:6px;}#v186-online-root .v186-character>span{font-size:9px;}#v186-online-root .v186-character input{width:14px;height:14px;left:3px;top:3px;}#v186-online-root .v186-table{padding:10px;}#v186-online-root .v186-player-strip .v186-person img{width:31px;height:40px;}#v186-online-root .v186-player-strip .v186-person{gap:7px;min-width:110px;}#v186-online-root .v186-clock{font-size:20px;}#v186-online-root .v186-player-strip .v186-counters{width:100%;font-size:10px;}#v186-online-root .v186-card{width:50px;height:73px;}#v186-online-root .v186-card-corner{font-size:13px;top:4px;left:4px;}#v186-online-root .v186-card-corner small{font-size:11px;}#v186-online-root .v186-card-center{font-size:23px;top:25px;}#v186-online-root .v186-card-bottom{font-size:12px;}#v186-online-root .v186-cards{gap:7px;}#v186-online-root .v186-hand-panel .v186-cards{gap:5px;}#v186-online-root .v186-abilities{grid-template-columns:1fr;}#v186-online-root .v186-selection{padding:12px;}#v186-online-root .v186-match-heading .v186-phase{font-size:14px;}#v186-online-root .v186-header-code{font-size:13px;letter-spacing:.08em;}#v186-online-root .v186-code-input button{padding:9px 12px;}#v186-online-root .v186-confirm>section{padding:20px;}}
@media(prefers-reduced-motion:reduce){#v186-online-root *,#home-screen .v186-online-entry{transition:none!important;}}


/* SOURCE styles/online-shared-controls-v209.css */
/* Supplement the existing normal field-side controls; no second battle layout. */
body.v188-shared-battle #v188-native-selection-cancel,
body.v188-shared-battle #v188-native-end-turn,
body.v188-shared-battle #v188-native-choice-single {
  width:100%;min-height:34px;margin:0;padding:5px 3px;border:1px solid #aaa780;
  border-radius:10px;background:linear-gradient(#4a4d3e,#22291e);color:#fff6dc;
  font-size:clamp(9px,1.45vh,11px);font-weight:800;line-height:1.1;
}
body.v188-shared-battle #v188-native-selection-cancel[hidden],
body.v188-shared-battle #v188-native-end-turn[hidden],
body.v188-shared-battle #v188-native-choice-single[hidden],
body.v188-shared-battle #v188-native-choice-summary[hidden],
body.v188-shared-battle #v188-native-defense-mode[hidden]{display:none!important;}
body.v188-shared-battle #v188-native-defense-mode {
  width:100%;min-width:0;padding:3px;border:1px solid #b3a868;border-radius:5px;
  background:#17271b;color:#fff5ce;font-size:10px;
}
body.v188-shared-battle #v37-choice-groups .v37-card-choice .card {
  display:flex;align-items:center;justify-content:center;pointer-events:none;
  width:45px;height:64px;margin:0 auto 5px;font-size:18px;
}
body.v188-shared-battle #v37-choice-groups .v37-card-choice .card.card-back{font-size:0;}
body.v188-shared-battle #v37-choice-groups .v37-card-choice > span:last-of-type {display:block;font-size:11px;}
#v186-online-root .v186-character span small{display:block;margin-top:3px;font-size:8px;color:#c5b594;line-height:1.15;}

/* Reuse the native compact ability card/header rather than sizing the dialog
   from the resolution of the character artwork. */
body.v188-shared-battle #character-ability-panel {
  box-sizing:border-box;min-width:0;max-height:calc(100dvh - 28px);
  overflow-y:auto!important;overscroll-behavior:contain;
}
body.v188-shared-battle .ability-panel-head > div:last-child {min-width:0;}
body.v188-shared-battle #ability-mini-portrait {
  width:58px;height:74px;min-width:58px;max-width:58px;overflow:hidden;
  flex:0 0 58px;background-size:cover!important;background-position:center!important;
}
body.v188-shared-battle #ability-mini-portrait > img {
  display:block;width:100%;height:100%;object-fit:cover;
}

/* The phase bar already gives this instruction in the normal battle header.
   The old fixed field-swap guide covered the clock during every room action. */
body.v188-shared-battle #ability-field-swap-guide {display:none!important;}
body.v188-shared-battle #v188-native-choice-summary {
  color:#fff0c2;font-size:9px;line-height:1.3;white-space:pre-line;
  text-align:center;overflow-wrap:anywhere;pointer-events:none;
}

/* Board targets stay on the live field. Recovery from grave/slash still uses
   the native choice dialog because those cards are not present on the board. */
body.v188-shared-battle #v37-ability-choice.v188-inline-choice {display:none!important;}
body.v188-shared-battle.ability-field-swap-active #player-field .card {
  animation:none!important;
}
body.v188-shared-battle.ability-field-swap-active #player-field .card:not(.v188-choice-eligible):not(.selected-card):not(.v38-origin-selected):not(.v38-double-tap-target) {
  border-color:rgba(229,209,158,.82)!important;
  box-shadow:0 6px 12px rgba(0,0,0,.6),inset 0 0 0 2px rgba(255,255,255,.33),inset 0 0 0 3px rgba(96,68,25,.18)!important;
}
body.v188-shared-battle.ability-field-swap-active #player-field .card.card-back:not(.v188-choice-eligible):not(.selected-card):not(.v38-origin-selected):not(.v38-double-tap-target) {
  border-color:#d8b85f!important;
}
body.v188-shared-battle.v188-board-choice-active [data-online-shared-card].v188-choice-eligible {
  cursor:pointer!important;border-color:#ffe36a!important;
  box-shadow:0 0 14px rgba(255,227,106,.6)!important;
}
body.v188-shared-battle.v188-board-choice-active [data-online-shared-card].ability-swap-selected {
  transform:translateY(-5px) scale(1.03)!important;outline:2px solid #fff3a0!important;
  box-shadow:0 0 20px rgba(255,239,128,.85)!important;
}
body.v188-shared-battle.v188-board-choice-active [data-online-shared-card][aria-disabled="true"] {
  cursor:default!important;
}


/* SOURCE styles/room-mode-card.css */
/* Three matching physical cards share the existing flip animation. */
#v106-match-mode-modal[data-v196-local-only="true"] #v187-select-room-match[hidden]{display:none!important}
#v106-match-mode-modal.v187-has-room .v106-mode-panel{width:min(1030px,96vw)!important}
#v106-match-mode-modal.v187-has-room .v106-mode-choice-grid{gap:clamp(10px,3vw,34px)!important}
#v106-match-mode-modal.v187-has-room .v106-mode-choice{flex:0 0 auto!important;width:min(25vw,230px,calc((var(--v128-app-height,100dvh) - 178px)*.68))!important;height:min(36.75vw,338px,calc(var(--v128-app-height,100dvh) - 178px))!important;min-width:0!important;min-height:0!important;max-height:calc(var(--v128-app-height,100dvh) - 178px)!important}
#v106-match-mode-modal:not([hidden]) .v187-room-card .v120-card-inner{animation:v120DealRight .68s .2s cubic-bezier(.16,.82,.18,1) backwards}
#v106-match-mode-modal .v187-room-card .v120-card-front{isolation:isolate;justify-content:flex-start;gap:0;padding:23px 22px 19px;background:repeating-linear-gradient(135deg,rgba(43,34,18,.026) 0 1px,transparent 1px 5px),linear-gradient(145deg,#f4ecd7,#d9c9a6 68%,#c8b58b);color:#17221f;border-radius:15px;border-color:rgba(147,117,48,.92);box-shadow:0 24px 52px rgba(0,0,0,.82),inset 0 0 0 5px #eadbb5,inset 0 0 0 7px #7b612c}
#v106-match-mode-modal .v187-room-card .v120-card-front::before{inset:10px;z-index:-1;border:1px solid #78622f;border-radius:9px}
#v106-match-mode-modal .v187-room-card .v120-card-corner{top:16px;left:16px;font-size:20px;color:#17221f}
#v106-match-mode-modal .v187-room-card .v120-card-corner.bottom{top:auto;left:auto;right:16px;bottom:16px}
#v106-match-mode-modal .v187-room-pips{display:flex;flex:0 1 52%;min-height:0;flex-direction:column;justify-content:space-evenly;align-items:center;width:100%;margin:0 auto 9px;font:normal clamp(20px,4vw,40px)/1 Georgia,serif}
#v106-match-mode-modal .v187-room-pips i{font-style:normal}
#v106-match-mode-modal .v187-room-pips i:last-child{transform:rotate(180deg)}
#v106-match-mode-modal .v187-room-card .v106-mode-choice-title{font-size:clamp(16px,2.2vw,21px)!important;margin:6px 0 4px!important}
#v106-match-mode-modal .v187-room-card .v106-mode-choice-copy{min-height:2.8em;font-size:8px!important;line-height:1.5!important}
#v106-match-mode-modal .v187-room-card .v106-mode-choice-meta{margin-top:8px!important;padding:6px 8px!important}
@media(max-width:680px){
#v106-match-mode-modal.v187-has-room .v106-mode-choice-grid{gap:8px!important}
#v106-match-mode-modal.v187-has-room .v106-mode-choice{width:min(28vw,180px,calc((96vw - 46px)/3))!important;height:min(41.16vw,265px,calc(var(--v128-app-height,100dvh) - 160px))!important}
#v106-match-mode-modal.v187-has-room .v120-card-front{padding:18px 11px 15px!important}
#v106-match-mode-modal.v187-has-room .v106-mode-choice-title{font-size:clamp(11px,2.7vw,16px)!important;letter-spacing:0!important;white-space:nowrap}
#v106-match-mode-modal.v187-has-room .v106-mode-choice-copy{font-size:7px!important;line-height:1.4!important}
#v106-match-mode-modal.v187-has-room .v106-mode-choice-meta{font-size:6px!important;letter-spacing:0!important;padding:5px 2px!important;margin-top:5px!important}
#v106-match-mode-modal .v187-room-card .v120-card-corner{top:12px;left:12px;font-size:14px}
#v106-match-mode-modal .v187-room-card .v120-card-corner.bottom{top:auto;left:auto;right:12px;bottom:12px}
}
@media(max-width:420px){
#v106-match-mode-modal.v187-has-room .v120-card-front{padding:16px 9px 13px!important}
#v106-match-mode-modal.v187-has-room .v156-joker-crest{width:65%;margin-bottom:0}
#v106-match-mode-modal.v187-has-room .v106-mode-choice-copy{display:none!important}
#v106-match-mode-modal.v187-has-room .v106-mode-choice-kicker{font-size:5px!important;letter-spacing:.07em!important}
#v106-match-mode-modal.v187-has-room .v106-mode-choice-meta{font-size:5.5px!important}
#v106-match-mode-modal .v187-room-pips{font-size:24px;margin-bottom:4px}
}
@media(max-height:500px) and (orientation:landscape){
#v106-match-mode-modal.v187-has-room .v106-mode-choice{width:min(25vw,128px,calc((var(--v128-app-height,100dvh) - 128px)*.68))!important;height:min(36.75vw,188px,calc(var(--v128-app-height,100dvh) - 128px))!important;max-height:calc(var(--v128-app-height,100dvh) - 128px)!important}
#v106-match-mode-modal.v187-has-room .v120-card-front{padding:15px 12px 12px!important}
#v106-match-mode-modal.v187-has-room .v106-mode-choice-copy{display:none!important}
#v106-match-mode-modal .v187-room-pips{font-size:24px;margin-bottom:3px}
}
@media(prefers-reduced-motion:reduce){#v106-match-mode-modal .v187-room-card .v120-card-inner{transition:none!important}}
/* The rulebook shows the same three queue cards as the battle chooser. */
.v156-rulebook-jokers .v156-guide-joker{width:min(27%,135px)}
.v156-rulebook-jokers .v156-guide-joker:nth-child(2){color:#7d1420;transform:none}
.v156-rulebook-jokers .v188-guide-room:last-child{color:#17221f;transform:rotate(4deg)}
.v156-rulebook-jokers .v188-guide-room b{font-size:clamp(24px,4vw,43px)}


/* SOURCE styles/pass-combat-missions.css */
#v137-battle-pass .v191-mission-counting-note {
    grid-column: 1 / -1;
    margin: 0 0 12px;
    padding: 13px 16px;
    border: 1px solid rgba(192, 155, 205, .32);
    border-radius: 8px;
    background: rgba(31, 21, 43, .7);
    color: #d7ccd9;
    font-size: 12px;
    line-height: 1.8;
    text-align: left;
}
#v137-battle-pass .v191-mission-condition {
    display: block;
    margin: 7px 0 11px;
    color: #c4bbce;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: .02em;
    white-space: normal;
    overflow-wrap: anywhere;
}
#v137-battle-pass .v137-mission-name {
    font-size: 12px;
    white-space: normal;
    line-height: 1.55;
}
#v137-battle-pass .v137-mission-meta,
#v137-battle-pass .v137-mission-reward {
    font-size: 10px;
    line-height: 1.4;
}
#v137-battle-pass .v137-mission > span {
    min-width: 0;
}


/* SOURCE styles/halloween-pass-cosmetics.css */
/* v191: actual earned raster artwork; common hidden-card contract stays intact. */
body[data-v137-card-back="moonlit-coffin-letter"],
body[data-v137-card-back="sealed-talisman-back"] {
    --v157-card-back-kind:halloween-amber;
    --v157-card-back-image:url("../assets/v191-halloween-card-back.webp");
    --v157-card-back-color:#141023;
    --v157-card-back-border:#e4b96c;
    --v157-card-back-ink:#fff1c5;
    --v157-card-back-surface:#141023 url("../assets/v191-halloween-card-back.webp") 50% 50% / 100% 100% no-repeat border-box border-box;
}
body[data-v137-card-back="black-cat-secret-letter"],
body[data-v137-card-back="night-rose-decree"] {
    --v157-card-back-kind:halloween-rose;
    --v157-card-back-image:url("../assets/v191-halloween-card-back-rose.webp");
    --v157-card-back-color:#141023;
    --v157-card-back-border:#c9bcf0;
    --v157-card-back-ink:#fff1c5;
    --v157-card-back-surface:#141023 url("../assets/v191-halloween-card-back-rose.webp") 50% 50% / 100% 100% no-repeat border-box border-box;
}
#v137-battle-pass.v161-halloween-pass .v137-reward-card.v191-raster-reward {
    min-height:205px;
    padding-top:10px;
}
#v137-battle-pass .v191-raster-reward .v137-reward-symbol { display:none; }
.v191-reward-art {
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:110px;
    gap:5px;
    margin:0 auto 5px;
    padding:0 4px;
}
.v191-reward-art img {
    display:block;
    width:76px;
    height:102px;
    object-fit:contain;
    filter:drop-shadow(0 3px 3px #0008);
}
[data-v191-art-type="cardback"] .v191-reward-art img { width:72px;height:101px;border-radius:6px; }
[data-v191-art-type="icon"] .v191-reward-art img,
[data-v191-art-type="title"] .v191-reward-art img { width:82px;height:82px;object-fit:cover;border-radius:50%;border:2px solid #d0b884; }
[data-v191-art-type="title"] .v191-reward-art { min-height:100px; }
.v191-reward-art small {
    display:block;
    color:#dfd0ea;
    font-size:9px;
    line-height:1.45;
    text-align:center;
    max-width:132px;
}
#v137-battle-pass .v191-raster-vault-item .v137-vault-item-symbol {
    display:grid;
    place-items:center;
    width:50px;
    height:58px;
    overflow:visible;
    background:transparent;
}
.v191-raster-vault-item .v137-vault-item-symbol img { width:100%;height:100%;object-fit:contain; }
.v191-raster-vault-item[data-v191-art-type="icon"] .v137-vault-item-symbol img,
.v191-raster-vault-item[data-v191-art-type="title"] .v137-vault-item-symbol img { width:46px;height:46px;object-fit:cover;border-radius:50%;border:1px solid #d0b884; }
.v161-pass-profile-frame[data-v191-frame-art="generated-anime"] { filter:drop-shadow(0 2px 2px #0008); }
#v105-profile-preview .v105-profile-emblem img.v191-profile-icon-image,
#v167-player-portrait > img.v191-profile-icon-image,
#v167-enemy-portrait > img.v191-profile-icon-image { object-fit:contain!important;object-position:center!important;filter:none; }
#v105-home-profile-image.v191-profile-icon-image { object-fit:cover!important;object-position:center!important;filter:none; }
.v191-icon-choice-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
.v191-icon-choice {
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    align-items:center;
    gap:3px 9px;
    min-width:0;
    padding:9px;
    border:1px solid #756084;
    border-radius:8px;
    color:#e8ddc7;
    background:#151020;
    cursor:pointer;
    text-align:left;
}
.v191-icon-choice img { grid-row:1/3;width:48px;height:48px;border-radius:50%;object-fit:cover; }
.v191-icon-choice strong { font-size:11px;line-height:1.4; }
.v191-icon-choice small { font-size:10px;color:#bba2c7; }
.v191-icon-choice.is-selected { border-color:#efd494;box-shadow:inset 0 0 0 1px #efd494; }
.v191-icon-choice:disabled { cursor:default;opacity:.5; }
.v191-icon-choice:focus-visible { outline:2px solid #fff1c5;outline-offset:3px; }
#v186-online-root .v186-person > .v191-room-profile-portrait {
    position:relative;
    display:block;
    flex:none;
    width:54px;
    height:72px;
    margin:0;
    overflow:visible;
}
#v186-online-root .v186-person .v191-room-profile-portrait > img { display:block;width:100%;height:100%;object-fit:cover; }
#v186-online-root .v186-person .v191-room-profile-portrait > img.v191-profile-icon-image { object-fit:contain;object-position:center;background:#0b0710; }
#v186-online-root .v186-person .v191-room-profile-portrait > img.v191-room-profile-frame {
    position:absolute;
    inset:-3px;
    width:calc(100% + 6px);
    height:calc(100% + 6px);
    object-fit:fill;
    border:0;
    border-radius:0;
    pointer-events:none;
}
#v186-online-root .v191-room-profile-title { display:block;margin-top:5px;color:#d1b4e2;font-size:10px;line-height:1.4; }
@media (max-width:480px) {
    .v191-icon-choice-grid { grid-template-columns:1fr; }
    #v137-battle-pass.v161-halloween-pass .v137-reward-card.v191-raster-reward { min-height:187px; }
    .v191-reward-art { min-height:96px; }
    .v191-reward-art img { height:88px;width:66px; }
}


/* SOURCE styles/rank-mode-insignia.css */
/* The saved player's existing rank crest sits on the lower Joker face. */
#v106-match-mode-modal #v106-select-ranked-match .v120-card-front {
    display:grid !important;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:minmax(0,1fr) auto auto auto;
    justify-items:center;
    align-content:stretch;
    row-gap:0;
}

#v106-match-mode-modal #v106-select-ranked-match .v156-joker-crest {
    width:100%;
    height:100%;
    min-height:0;
    margin:0 auto;
    aspect-ratio:auto;
}

#v106-match-mode-modal #v106-select-ranked-match .v156-imperial-joker-svg {
    width:100%;
    height:100%;
}

#v106-match-mode-modal #v106-select-ranked-match .v106-mode-choice-copy {
    display:none !important;
}

#v106-match-mode-modal #v106-select-ranked-match .v192-mode-rank {
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    align-items:center;
    gap:8px;
    width:100%;
    min-width:0;
    margin-top:7px;
    padding:5px 12px 1px 1px;
    border-top:1px solid rgba(99,72,25,.35);
    pointer-events:none;
}

#v106-match-mode-modal #v106-select-ranked-match .v192-mode-rank-crest {
    display:grid;
    place-items:center;
    min-width:0;
}

#v106-match-mode-modal #v106-select-ranked-match .v107-rank-insignia.is-mode {
    width:42px;
    filter:drop-shadow(0 2px 2px rgba(24,18,10,.45));
}

#v106-match-mode-modal #v106-select-ranked-match .v192-mode-rank-copy {
    display:grid;
    gap:3px;
    min-width:0;
    text-align:left;
}

#v106-match-mode-modal #v106-select-ranked-match .v192-mode-rank .v106-mode-choice-meta {
    display:block !important;
    min-width:0;
    margin:0 !important;
    padding:0 !important;
    border:0;
    color:#35200f !important;
    font:800 10px/1.3 Georgia,"Yu Mincho",serif !important;
    letter-spacing:0 !important;
    overflow-wrap:anywhere;
}

#v106-match-mode-modal #v106-select-ranked-match .v192-mode-rank-points {
    color:#765f30;
    font:700 8px/1.2 "Courier New",monospace;
    letter-spacing:.05em;
}

@media (max-width:680px) {
    #v106-match-mode-modal #v106-select-ranked-match .v192-mode-rank {
        grid-template-columns:32px minmax(0,1fr);
        gap:4px;
        margin-top:4px;
        padding:4px 14px 0 0;
    }
    #v106-match-mode-modal #v106-select-ranked-match .v107-rank-insignia.is-mode { width:32px; }
    #v106-match-mode-modal #v106-select-ranked-match .v192-mode-rank .v106-mode-choice-meta { font-size:8px !important; }
    #v106-match-mode-modal #v106-select-ranked-match .v192-mode-rank-points { font-size:6px; }
}

@media (max-width:420px), (max-height:500px) and (orientation:landscape) {
    #v106-match-mode-modal #v106-select-ranked-match .v192-mode-rank {
        grid-template-columns:26px minmax(0,1fr);
        gap:3px;
        margin-top:3px;
        padding-top:3px;
        padding-right:18px;
    }
    #v106-match-mode-modal #v106-select-ranked-match .v107-rank-insignia.is-mode { width:26px; }
    #v106-match-mode-modal #v106-select-ranked-match .v192-mode-rank-copy { gap:2px; }
    #v106-match-mode-modal #v106-select-ranked-match .v192-mode-rank .v106-mode-choice-meta { font-size:7px !important; }
    #v106-match-mode-modal #v106-select-ranked-match .v192-mode-rank-points { font-size:5.5px; }
}


/* SOURCE styles/character-mastery.css */
.v197-mastery-badge{position:absolute;z-index:4;right:5px;bottom:31px;left:5px;width:fit-content;max-width:calc(100% - 10px);margin:0 auto;padding:4px 7px;overflow:hidden;border:1px solid rgba(226,201,142,.42);border-radius:4px;color:#eedab0;background:rgba(10,9,7,.9);font:700 clamp(7px,1vw,10px)/1.3 Georgia,"Yu Mincho",serif;white-space:nowrap;text-align:center;text-overflow:ellipsis;pointer-events:none}
.v101-card-slot[data-mastery-level="1"] .v101-card-caption,.v101-card-slot[data-mastery-level="2"] .v101-card-caption,.v101-card-slot[data-mastery-level="3"] .v101-card-caption,.v101-card-slot[data-mastery-level="4"] .v101-card-caption{color:#ffdb70}
.v101-card-slot:not([data-mastery-level="0"]) .v197-mastery-badge{color:#ffdf8d;border-color:rgba(242,198,84,.7);background:linear-gradient(135deg,rgba(67,45,15,.96),rgba(13,10,5,.94))}
#character-detail-modal.v197-has-mastery .character-detail-info{min-width:0!important;min-height:0!important}
#character-detail-modal.v197-has-mastery .character-detail-scroll{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:5px!important;overscroll-behavior:contain;touch-action:pan-y;scrollbar-color:#a88943 #17130c;scrollbar-width:thin}
#character-detail-modal.v197-has-mastery .character-detail-ability-text{font-size:13px!important;line-height:1.55!important}
#character-detail-modal.v197-has-mastery .character-detail-actions{flex-shrink:0}
.v197-mastery-detail{margin:0 0 16px;padding:14px;border:1px solid rgba(229,188,83,.45);border-radius:8px;color:#f1e5c7;background:radial-gradient(circle at 100% 0,rgba(176,117,23,.13),transparent 48%),linear-gradient(145deg,rgba(30,24,15,.95),rgba(8,8,6,.9));font:12px/1.6 Georgia,"Yu Mincho",serif}
.v197-mastery-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 10px;margin-bottom:7px}
.v197-mastery-heading h3{margin:0;color:#f2d58c;font-size:14px;font-weight:700;letter-spacing:.06em}
.v197-mastery-level{padding:2px 6px;border:1px solid rgba(239,203,112,.42);border-radius:3px;color:#ebce89;font-size:10px;white-space:nowrap}
.v197-mastery-count{margin:0 0 6px;color:#d7c9a8;font-size:11px}
.v197-mastery-count strong{margin-right:4px;color:#fff0bc;font-size:28px;line-height:1.1;font-variant-numeric:tabular-nums}
.v197-mastery-progress{display:block;width:100%;height:9px;overflow:hidden;border:0;border-radius:9px;appearance:none;accent-color:#d8b957;background:#322919}
.v197-mastery-progress::-webkit-progress-bar{border-radius:9px;background:#322919}
.v197-mastery-progress::-webkit-progress-value{border-radius:9px;background:linear-gradient(90deg,#9b752d,#f4d786)}
.v197-mastery-progress::-moz-progress-bar{border-radius:9px;background:linear-gradient(90deg,#9b752d,#f4d786)}
.v197-mastery-next{margin:7px 0 5px;color:#f5dda2;font-size:11px}
.v197-mastery-note{margin:0 0 10px;color:#bcae91;font-size:10px;line-height:1.6}
.v197-mastery-stages{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.v197-mastery-stage{padding:9px 10px;border:1px solid rgba(183,165,123,.2);border-radius:5px;background:rgba(0,0,0,.22)}
.v197-mastery-stage.is-owned{border-color:rgba(238,198,95,.5);background:linear-gradient(110deg,rgba(107,74,24,.16),rgba(0,0,0,.2))}
.v197-mastery-stage-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px 9px}
.v197-mastery-stage-head strong{color:#d9c69d;font-size:11px}
.v197-mastery-stage.is-owned .v197-mastery-stage-head strong{color:#f2d58c}
.v197-mastery-status{color:#9e927c;font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}
.v197-mastery-stage.is-owned .v197-mastery-status{color:#ecd48c}
.v197-mastery-card-change{margin:4px 0 1px;color:#eadfc4;font-size:11px}
.v197-mastery-reward-name{margin:0;color:#b6a987;font-size:10px;overflow-wrap:anywhere}
.v197-mastery-equip{display:block;width:100%;min-height:32px;margin-top:7px;padding:6px 9px;border:1px solid rgba(226,190,91,.55);border-radius:4px;color:#f9e5b1;background:linear-gradient(140deg,#4b381a,#1a140d);font:700 10px/1.4 Georgia,"Yu Mincho",serif;letter-spacing:.04em;cursor:pointer;touch-action:manipulation}
.v197-mastery-equip:hover{border-color:#f7d277;background:linear-gradient(140deg,#614722,#261b0e)}
.v197-mastery-equip:focus-visible{outline:2px solid #f3d28a;outline-offset:3px}
.v197-mastery-feedback{min-height:0;margin:6px 0 0;color:#eed99a;font-size:10px}
.v197-mastery-feedback:empty{display:none}
@media(max-width:720px){#character-detail-modal.v197-has-mastery .character-detail-panel,#character-detail-modal.v197-has-mastery .character-detail-panel.v128-detail-copy-heavy,#character-detail-modal.v197-has-mastery .character-detail-panel.v128-detail-ultra{grid-template-rows:minmax(112px,30%) minmax(0,1fr)!important}.v197-mastery-detail{padding:11px;margin-bottom:10px}.v197-mastery-stage{padding:8px}.v197-mastery-equip{min-height:36px}.v197-mastery-heading h3{font-size:13px}}
@media(max-width:620px){.v197-mastery-badge{right:3px;bottom:23px;left:3px;max-width:calc(100% - 6px);padding:2px 4px;font-size:7px}}
@media(orientation:landscape) and (max-height:560px){#character-detail-modal.v197-has-mastery .character-detail-panel,#character-detail-modal.v197-has-mastery .character-detail-panel.v128-detail-copy-heavy,#character-detail-modal.v197-has-mastery .character-detail-panel.v128-detail-ultra{grid-template-columns:minmax(140px,.78fr) minmax(220px,1.22fr)!important;grid-template-rows:minmax(0,1fr)!important}}


/* SOURCE styles/mastery-profile.css */
/* Earned character emblems use the existing portraits and gold medal rails. */
.v197-profile-rewards { border-top:1px solid #94744366;padding-top:18px; }
.v197-reward-character-label { display:grid;gap:7px;margin:10px 0;color:#dfcea8;font-size:12px; }
#v197-profile-reward-character { width:100%;min-height:40px;padding:9px 12px;border:1px solid #9a773e;background:#111015;color:#f5e6c0;border-radius:5px;font:inherit; }
.v197-profile-reward-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px; }
.v197-reward-slot { min-width:0;display:grid;gap:6px; }
.v197-profile-reward-choice { display:grid;justify-items:center;align-content:start;gap:8px;min-width:0;min-height:170px;padding:12px 8px;border:1px solid #9f7945;border-radius:7px;background:linear-gradient(150deg,#382917,#100f15 65%);color:#f2ddb0;cursor:pointer; }
.v197-profile-reward-choice:hover:not(:disabled),.v197-profile-reward-choice:focus-visible { border-color:#fff0b0;outline:2px solid #ffe69d;outline-offset:2px; }
.v197-profile-reward-choice.is-selected { border-color:#ffe69d;background:linear-gradient(145deg,#634820,#191219);box-shadow:inset 0 0 0 1px #e7bd61; }
.v197-profile-reward-choice:disabled { opacity:.52;cursor:default; }
.v197-profile-reward-choice strong { font-size:11px;line-height:1.5;overflow-wrap:anywhere;text-align:center; }
.v197-profile-reward-choice small { color:#bdab87;font-size:10px;line-height:1.5; }
.v197-reward-portrait { position:relative;display:block;width:72px;max-width:100%;aspect-ratio:1;overflow:hidden;border:2px solid #d3ab56;border-radius:7px;background:#100d14; }
.v197-reward-portrait > img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 24%; }
.v197-reward-portrait:has(> .v197-mastery-profile-frame) { border:0;overflow:visible; }
.v197-reward-portrait:has(> .v197-mastery-profile-frame) > img { inset:9%;width:82%;height:82%;border-radius:5px; }
.v197-reward-portrait.is-title { display:grid;place-items:center;font:48px/1 Georgia,serif;border-color:#d7b05b;color:#ffe5a0;background:radial-gradient(circle,#5c4120,#110e15); }
.v197-reward-clear { padding:6px 3px;border:0;background:transparent;color:#c6b287;font-size:10px;cursor:pointer;text-decoration:underline;text-underline-offset:3px; }
.v197-reward-clear:disabled { opacity:.35;cursor:default; }
.v197-reward-note { margin:12px 0 0;color:#a99c84;font-size:11px;line-height:1.7; }
.v197-mastery-profile-frame { position:absolute;inset:0;width:100%;height:100%;z-index:20;pointer-events:none;overflow:visible;filter:drop-shadow(0 2px 0 #0009); }
.v197-profile-icon-medal { position:absolute;right:10%;bottom:10%;z-index:25;display:grid;place-items:center;width:25%;aspect-ratio:1;background:linear-gradient(135deg,#fff0ac,#bd903d);border:1px solid #2d1b0f;border-radius:25% 25% 42% 42%;color:#302010;font:700 clamp(6px,.85vw,15px)/1 Georgia,serif;box-shadow:0 1px 2px #0009,inset 0 0 0 2px var(--v197-icon-accent);pointer-events:none; }
.v197-profile-icon-medal > svg { display:block;width:100%;height:100%; }
:is(#v105-home-profile-button,#v105-profile-preview)[data-v197-mastery-frame] > :is(.v160-generated-profile-frame,.v161-pass-profile-frame,.v158-profile-ornament) { display:none!important; }
:is(#v105-home-profile-button,#v105-profile-preview)[data-v197-mastery-frame] { --v105-frame-main:#d8b55d;--v105-frame-light:#fff0b1;--v105-frame-dark:#6f4b17;border:1px solid #b89b5655!important;border-radius:8px!important;clip-path:none!important;overflow:visible!important;background:radial-gradient(ellipse at 15% 10%,color-mix(in srgb,var(--v197-master-accent) 13%,transparent),transparent 65%),#080b11!important; }
#v105-home-profile-button[data-v197-mastery-frame] { width:clamp(236px,20vw,302px)!important;min-height:88px!important;grid-template-columns:76px minmax(0,1fr) 14px!important;gap:10px!important;padding:5px 9px 5px 5px!important; }
#v105-home-profile-button[data-v197-mastery-frame] > .v105-profile-emblem { width:76px!important;height:76px!important; }
#v105-profile-preview[data-v197-mastery-frame] { min-height:426px!important;justify-content:center!important;padding:20px 14px!important; }
#v105-profile-preview[data-v197-mastery-frame] > .v105-profile-emblem { width:220px!important;height:auto!important;max-width:100%;aspect-ratio:1;flex:none; }
:is(#v105-home-profile-button,#v105-profile-preview)[data-v197-mastery-frame] > .v105-profile-emblem { position:relative!important;padding:0!important;background:none!important;border:0!important;clip-path:none!important;overflow:visible!important;box-shadow:none!important; }
:is(#v105-home-profile-button,#v105-profile-preview)[data-v197-mastery-frame] > .v105-profile-emblem::after { display:none!important; }
:is(#v105-home-profile-button,#v105-profile-preview)[data-v197-mastery-frame] > .v105-profile-emblem > img { position:absolute!important;inset:9%!important;width:82%!important;height:82%!important;clip-path:none!important;border-radius:7px; }
:is(#v105-home-profile-button,#v105-profile-preview) img.v197-master-icon-image,#matching-screen .v167-match-portrait > img.v197-master-icon-image,#v186-online-root .v191-room-profile-portrait > img.v197-master-icon-image { object-fit:cover!important;object-position:50% 24%!important;filter:saturate(1.04) contrast(1.03); }
.v167-match-portrait:has(> .v197-mastery-profile-frame) { aspect-ratio:1!important;background:none!important;box-shadow:none!important; }
.v167-match-portrait:has(> .v197-mastery-profile-frame) > img { inset:9%!important;width:82%!important;height:82%!important;border-radius:7px; }
.v167-match-portrait:has(> .v197-mastery-profile-frame) > :is(.v167-match-image-shade,.v167-match-image-fallback) { inset:9%!important;border-radius:7px; }
#v186-online-root .v191-room-profile-portrait:has(> .v197-mastery-profile-frame) { overflow:visible;clip-path:none;padding:0;background:none;border:0; }
#v186-online-root .v191-room-profile-portrait:has(> .v197-mastery-profile-frame) > img { position:absolute;inset:9%;width:82%;height:82%;border-radius:5px; }
@media(max-width:600px) {
    .v197-profile-reward-grid { gap:6px; }
    .v197-profile-reward-choice { padding:9px 5px;min-height:155px; }
    .v197-profile-reward-choice strong { font-size:10px; }
    .v197-reward-portrait { width:60px; }
    #v105-home-profile-button[data-v197-mastery-frame] { grid-template-columns:62px minmax(0,1fr) 12px!important;min-height:73px!important;width:clamp(210px,55vw,278px)!important; }
    #v105-home-profile-button[data-v197-mastery-frame] > .v105-profile-emblem { width:62px!important;height:62px!important; }
    #v105-profile-preview[data-v197-mastery-frame] { min-height:326px!important; }
    #v105-profile-preview[data-v197-mastery-frame] > .v105-profile-emblem { width:156px!important; }
}


/* SOURCE styles/mastery-shine.css */
/* Only the compositor's original gold pixels can reveal this moving light. */
.v198-shine-positioning { position:relative !important; }
.v198-mastery-shine,
.v198-mastery-shine * { pointer-events:none !important; user-select:none !important; }
.v198-mastery-shine {
    position:absolute !important;
    display:block !important;
    box-sizing:border-box !important;
    margin:0 !important;
    border-width:0;
    border-style:solid !important;
    border-color:transparent !important;
    overflow:hidden !important;
    mask-repeat:no-repeat;
    -webkit-mask-repeat:no-repeat;
    mask-mode:alpha;
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
}
.v198-mastery-shine-band {
    position:absolute;
    inset:0;
    display:block;
    opacity:.5;
    background:linear-gradient(112deg,transparent 28%,rgba(255,225,145,.12) 38%,rgba(255,244,196,.66) 47%,#fffdf0 50%,rgba(255,244,196,.66) 53%,rgba(255,225,145,.12) 62%,transparent 72%);
    transform:translateX(-150%);
    animation:v198-mastery-gold-sweep 5s linear infinite;
}
.v198-mastery-shine[data-paused="true"] .v198-mastery-shine-band { animation-play-state:paused; visibility:hidden; }
@keyframes v198-mastery-gold-sweep {
    0% { transform:translateX(-150%); }
    52%,100% { transform:translateX(150%); }
}
@media (prefers-reduced-motion:reduce) {
    .v198-mastery-shine { display:none !important; }
    .v198-mastery-shine-band { animation:none !important; }
}
@media (forced-colors:active) { .v198-mastery-shine { display:none !important; } }

/* Keep the earned foil visible above moving card art, using the same exact
   name/suit/frame mask and geometry as the printed card underneath. */
.v198-mastery-shine[data-v285-video-gold="true"] {
    background:linear-gradient(112deg,#b38735 0%,#fff0b4 30%,#d7ac50 54%,#f8d77f 75%,#a9792e 100%);
}
@media (prefers-reduced-motion:reduce) and (forced-colors:none) {
    .v198-mastery-shine[data-v285-video-gold="true"] { display:block !important; }
}


/* SOURCE styles/pass-reward-previews.css */
/* The pass and its earned inventory share real reward previews. */
#v137-battle-pass.v200-reward-previews .v137-tier-column {
    grid-template-rows:minmax(230px,1fr) 43px minmax(230px,1fr) !important;
}
#v137-battle-pass.v200-reward-previews .v137-reward-card.v200-has-reward-preview {
    min-height:230px !important;
    padding:12px 9px 46px !important;
}
#v137-battle-pass.v200-reward-previews .v200-has-reward-preview .v137-reward-symbol,
#v137-battle-pass.v200-reward-previews .v200-has-reward-preview .v191-reward-art,
#v137-battle-pass.v200-reward-previews .v200-has-reward-preview .v137-reward-skin-art { display:none !important; }
#v137-battle-pass.v200-reward-previews .v200-has-reward-preview .v137-reward-type { margin-top:8px;font-size:7px;line-height:1.35; }
#v137-battle-pass.v200-reward-previews .v200-has-reward-preview .v137-reward-name { font-size:12px;line-height:1.45; }
#v137-battle-pass.v200-reward-previews .v200-has-reward-preview .v137-reward-state { line-height:1.5;white-space:normal; }
#v137-battle-pass.v200-reward-previews .v200-has-reward-preview.is-locked { filter:saturate(.8) brightness(.84) !important; }
.v200-reward-preview {
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:100%;
    min-width:0;
    height:132px;
    gap:6px;
    box-sizing:border-box;
    pointer-events:none;
    isolation:isolate;
    color:#eedab0;
    line-height:1.3;
    background:radial-gradient(ellipse at 50% 48%,#c4a68b14,transparent 72%);
}
.v200-reward-preview img { display:block;max-width:100%;object-fit:contain;filter:drop-shadow(0 4px 5px #0007); }
.v200-preview-caption { display:block;color:#c5b4d0;font:600 9px/1.35 Georgia,"Yu Mincho",serif;text-align:center;letter-spacing:.015em; }
.v200-preview-dig { width:96px;height:91px; }
.v200-dig-amount { color:#baf0d3;font:900 15px/1.1 "Courier New",monospace;text-shadow:0 2px 4px #000; }
.v200-preview-frame { width:78px;height:108px; }
.v200-preview-cardback { width:77px;height:108px;border-radius:6px; }
.v200-preview-icon { width:82px;height:82px;border-radius:50%;border:1px solid #d4b887;object-fit:cover !important; }
.v200-preview-skin-pair { display:flex;align-items:flex-start;justify-content:center;gap:7px;width:100%; }
.v200-preview-skin-face { display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0; }
.v200-preview-skin-face img { width:65px;height:100px;border:1px solid #d0b78a;border-radius:5px;background:#090811; }
.v200-preview-skin-face small { font:700 9px/1.2 Georgia,"Yu Mincho",serif;color:#d8c6df; }
.v200-mini-profile { display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;width:100%;min-height:74px;padding:11px 8px;border:1px solid #aa875949;border-radius:7px;background:linear-gradient(145deg,#271221,#0a0910);box-sizing:border-box; }
.v200-profile-label { color:#ba9e70;font:700 7px/1 "Courier New",monospace;letter-spacing:.15em; }
.v200-profile-player { color:#f7e8be;font:800 13px/1.2 Georgia,"Yu Mincho",serif; }
.v200-title-sample,.v200-plate-sample,.v200-bundle-title { position:static !important;display:block !important;width:100%;margin:0 !important;white-space:normal !important;overflow:visible !important;text-overflow:clip !important;color:#d0b98e;font:700 11px/1.5 Georgia,"Yu Mincho",serif;letter-spacing:.02em; }
.v200-plate-sample { color:#c6aa65;font-size:10px; }
.v200-reward-preview .v200-sigil-sample { position:relative;inset:auto;flex:none;width:55px;height:55px;border-width:2px;font-size:28px;box-shadow:0 0 14px #d9b76640; }
.v200-preview--bundle { gap:3px; }
.v200-preview--bundle .v200-preview-icon { width:66px;height:66px; }
.v200-preview--bundle .v200-sigil-sample { position:absolute;top:24px;left:calc(50% + 15px);width:26px;height:26px;border-width:1px;font-size:15px; }
.v200-bundle-title { max-width:100%;text-align:center;font-size:10px; }
.v200-preview--bundle .v200-preview-caption { font-size:8px; }
.v200-mini-result { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;min-height:91px;padding:10px 6px;border:1px solid #cbb17644;background:linear-gradient(135deg,#211317,#080a0a);box-sizing:border-box; }
.v200-victory-label { color:#f1d57b;font:700 15px/1 Georgia,serif;letter-spacing:.1em; }
.v200-stamp-sample { color:#e8cb76;font:700 10px/1.5 Georgia,"Yu Mincho",serif;letter-spacing:.04em;text-align:center; }
.v200-mini-table { position:relative;display:flex;align-items:flex-start;justify-content:center;gap:6px;width:100%;height:86px;padding:12px 7px 35px;box-sizing:border-box;border:1px solid #d9b76635;background:radial-gradient(ellipse at 50% 40%,#263632,#0b1010 76%); }
.v200-table-card { display:block;flex:none;width:22px;height:31px;border:1px solid #ecdcb5;border-radius:3px;background:#ddd6bd;box-shadow:0 2px 5px #0007; }
.v200-effect-sample { position:absolute;right:4px;bottom:5px;left:4px;padding:5px 4px;border:1px solid #d9b76659;color:#bda969;background:#050708d4;font:800 10px/1.35 Georgia,"Yu Mincho",serif;letter-spacing:.04em;text-align:center; }
.v200-playing-card { position:relative;display:grid;place-items:center;flex:none;width:67px;height:96px;box-sizing:border-box;border:1px solid #d7b767;border-radius:7px;color:#101010;background:#faf5e5; }
.v200-card-corner { position:absolute;top:7px;left:6px;font:800 12px/1.1 Georgia,serif; }
.v200-card-suit { font:700 38px/1 Georgia,serif; }
.v200-foil-sample { box-shadow:inset 0 0 0 2px #e1e8e580,0 0 15px #c2dcd347; }
.v200-foil-sample::after { content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(125deg,transparent 16%,#fff9 34%,#dfe8f328 50%,transparent 71%);pointer-events:none; }
/* Season IDs use the original silver-foil behavior; card artwork and gem colors stay intact. */
body[data-v137-foil="all-hallows-silver"] #hand-zone .card:not(.card-back),
body[data-v137-foil="all-hallows-silver"] #player-field .card:not(.card-back),
body[data-v137-foil="moon-white-phantom"] #hand-zone .card:not(.card-back),
body[data-v137-foil="moon-white-phantom"] #player-field .card:not(.card-back) { box-shadow:inset 0 0 0 2px rgba(225,232,229,.5),0 0 13px rgba(194,220,211,.28) !important; }
#v137-battle-pass.v200-reward-previews .v200-has-vault-preview { min-height:195px;padding-bottom:35px; }
#v137-battle-pass.v200-reward-previews .v200-has-vault-preview .v137-vault-item-symbol { display:block;width:100%;height:100px;overflow:visible;background:transparent; }
#v137-battle-pass.v200-reward-previews .v200-has-vault-preview .v200-reward-preview { height:100px; }
#v137-battle-pass.v200-reward-previews .v200-has-vault-preview .v200-preview-caption { display:none; }
#v137-battle-pass.v200-reward-previews .v200-has-vault-preview .v200-preview-frame,
#v137-battle-pass.v200-reward-previews .v200-has-vault-preview .v200-preview-cardback { width:64px;height:90px; }
#v137-battle-pass.v200-reward-previews .v200-has-vault-preview .v200-preview-icon { width:74px;height:74px; }
#v137-battle-pass.v200-reward-previews .v200-has-vault-preview .v200-mini-profile { min-height:72px; }
@media (max-width:480px) {
    #v137-battle-pass.v200-reward-previews .v137-tier-column { grid-template-rows:minmax(217px,1fr) 38px minmax(217px,1fr) !important; }
    #v137-battle-pass.v200-reward-previews .v137-reward-card.v200-has-reward-preview { min-height:217px !important;padding-inline:7px !important; }
    #v137-battle-pass.v200-reward-previews .v200-has-reward-preview .v137-reward-name { font-size:11px; }
    .v200-reward-preview { height:122px; }
    .v200-preview-skin-face img { width:61px;height:91px; }
    .v200-title-sample { font-size:10px; }
}


/* SOURCE styles/wardrobe-cardbacks.css */
/* Both wardrobe tabs share one bounded content row. Skin trial actions remain
   in intrinsically sized articles; the options list scrolls instead of clipping them. */
#v142-skin-vault .v200-wardrobe-shell { min-height:0;max-height:100%;grid-template-rows:auto auto minmax(0,1fr); }
#v201-wardrobe-body { min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);overflow:hidden; }
#v201-wardrobe-body > [role="tabpanel"] { grid-area:1 / 1;min-width:0;min-height:0; }
#v200-character-wardrobe-panel { overflow:hidden;grid-template-columns:minmax(180px,.30fr) minmax(0,1fr); }
#v200-character-wardrobe-panel #v142-skin-options { grid-auto-rows:max-content;align-content:start;overscroll-behavior:contain;scroll-padding-block:12px; }
#v200-character-wardrobe-panel .v175-appearance-actions { flex-wrap:wrap; }
#v200-character-wardrobe-panel .v175-appearance-actions button { flex:1 1 130px; }
#v200-character-wardrobe-panel[hidden],#v200-cardback-panel[hidden] { display:none !important; }
.v200-wardrobe-tabs { display:flex;gap:8px;padding:9px clamp(14px,2.4vw,32px);border-bottom:1px solid #d9b75e38;background:#090b0b; }
.v200-wardrobe-tabs button { flex:0 1 220px;min-height:40px;border:1px solid #d9b75e44;background:#151412;color:#b8ad93;font:600 13px/1.4 Georgia,"Yu Mincho",serif;cursor:pointer; }
.v200-wardrobe-tabs button[aria-selected="true"] { border-color:#e8c974;background:linear-gradient(110deg,#641e2c,#231815);color:#fff0ba;box-shadow:inset 0 -2px #e8c974; }
.v200-wardrobe-tabs button:focus-visible,.v200-cardback-choice:focus-visible,#v200-cardback-pass-entry:focus-visible { outline:2px solid #fff0c0;outline-offset:3px; }
#v200-cardback-panel { min-height:0;min-width:0;display:grid;grid-template-columns:minmax(230px,.34fr) minmax(0,1fr);overflow:hidden; }
.v200-cardback-dossier { min-height:0;overflow:auto;padding:24px clamp(16px,2.2vw,30px);border-right:1px solid #d9b75e38;background:radial-gradient(circle at 50% 38%,#76452130,transparent 58%),#080a0b; }
.v200-cardback-dossier > small { display:block;color:#a98c55;font:700 9px/1.4 "Courier New",monospace;letter-spacing:.12em; }
.v200-cardback-dossier h3 { margin:8px 0 18px;font-size:23px;font-weight:500; }
#v200-cardback-preview { display:flex;justify-content:center;margin:16px 0 22px; }
#v200-cardback-preview .v200-cardback-art { width:min(180px,75%); }
#v200-cardback-equipped-name { display:block;margin-top:6px;font-size:17px;color:#f8e7bd; }
.v200-cardback-dossier p { color:#a89d87;font:12px/1.8 sans-serif; }
#v200-cardback-owned-count { display:block;color:#d9c082;font:700 12px/1.5 sans-serif; }
#v200-cardback-pass-entry { display:block;width:100%;min-height:42px;margin:17px 0 0;padding:9px;border:1px solid #617e6e;background:linear-gradient(135deg,#183c32,#0b1d18);color:#d4eadc;font:600 12px/1.5 sans-serif;cursor:pointer; }
#v200-cardback-status { min-height:2em;color:#e7c87d; }
#v200-cardback-choices { min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-content:start;padding:24px;scrollbar-color:#715b2e #080808;scrollbar-width:thin; }
.v200-cardback-choice { min-width:0;display:flex;flex-direction:column;align-items:center;gap:15px;padding:20px 13px 15px;border:1px solid #d9b75e40;background:radial-gradient(circle at 50% 25%,#866c392a,transparent 60%),#101112;color:#efdeb5;text-align:center;cursor:pointer; }
.v200-cardback-choice:hover:not(:disabled) { border-color:#e8c974;background-color:#191514; }
.v200-cardback-choice.is-selected { border-color:#efd07c;box-shadow:inset 0 0 0 1px #efd07c40; }
.v200-cardback-choice:disabled { cursor:default; }
.v200-cardback-choice.is-locked .v200-cardback-art { filter:saturate(.7);opacity:.75; }
.v200-cardback-art { display:block;position:relative;width:110px;aspect-ratio:5/7;border:1px solid #d8b85f;border-radius:8px;overflow:hidden;background:#13090d;box-shadow:0 10px 25px #0009;color:#e7d092;font:700 28px/1 Georgia,serif; }
.v200-cardback-art img { display:block;width:100%;height:100%;object-fit:fill; }
.v200-cardback-copy { display:block;min-width:0;width:100%; }
.v200-cardback-copy strong { display:block;font:500 17px/1.5 Georgia,"Yu Mincho",serif; }
.v200-cardback-copy small { display:block;min-height:2.8em;margin-top:5px;color:#958d7b;font:11px/1.5 sans-serif; }
.v200-cardback-copy em { display:block;margin-top:10px;padding-top:9px;border-top:1px solid #d9b75e25;color:#c9b578;font:normal 700 12px/1.5 sans-serif; }
.v200-cardback-choice.is-selected .v200-cardback-copy em { color:#fbe7a8; }
/* Earlier earned patterns are still shown with their original battle artwork. */
.v200-cardback-art[data-cardback-id="discarded-decree"] { background:linear-gradient(154deg,transparent 42%,#e2c67a3d 43% 44%,transparent 45%),radial-gradient(circle at 50% 49%,#8e2133 0 7%,#d0ac59 8% 9%,transparent 10% 22%,#d0ac5952 23% 24%,transparent 25%),repeating-linear-gradient(45deg,#110709 0 8px,#310c13 8px 10px);border-color:#c8aa60; }
.v200-cardback-art[data-cardback-id="emerald-code"] { background:radial-gradient(circle at center,#d6bb6c 0 3%,#225f49 4% 14%,transparent 15% 27%,#d6bb6c47 28% 29%,transparent 30%),repeating-conic-gradient(from 45deg,#06110e 0 12deg,#194a39 12deg 24deg);border-color:#d6bb6c; }
.v200-cardback-art[data-cardback-id="twin-regalia"] { background:radial-gradient(circle at 43% 50%,#358e6ae6 0 8%,transparent 9%),radial-gradient(circle at 57% 50%,#9f2436eb 0 8%,transparent 9%),radial-gradient(circle at center,transparent 0 23%,#d7b65e 24% 25%,transparent 26%),repeating-conic-gradient(#18090d 0 10deg,#3b151b 10deg 20deg);border-color:#f0d079; }
@media(max-width:820px) {
  #v200-character-wardrobe-panel { grid-template-columns:minmax(0,1fr);grid-template-rows:84px minmax(0,1fr); }
  .v200-wardrobe-tabs { gap:5px;padding:6px 10px; }
  .v200-wardrobe-tabs button { flex:1;min-height:40px;font-size:12px; }
  #v200-cardback-panel { grid-template-columns:1fr;overflow:auto; }
  .v200-cardback-dossier { overflow:visible;border-right:0;border-bottom:1px solid #d9b75e38;padding:18px 16px; }
  .v200-cardback-dossier h3 { font-size:20px; }
  #v200-cardback-preview .v200-cardback-art { width:125px; }
  #v200-cardback-choices { overflow:visible;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px 10px; }
  .v200-cardback-choice { padding:14px 9px;gap:10px; }
  .v200-cardback-choice .v200-cardback-art { width:min(110px,90%); }
  .v200-cardback-copy strong { font-size:14px; }
  .v200-cardback-copy small { font-size:10px; }
}
@media(max-height:640px) and (orientation:landscape) {
  #v200-character-wardrobe-panel { grid-template-columns:minmax(150px,28vw) minmax(0,1fr);grid-template-rows:minmax(0,1fr); }
  .v200-wardrobe-tabs { padding-block:4px; }
  .v200-wardrobe-tabs button { min-height:34px; }
  #v200-cardback-preview .v200-cardback-art { width:105px; }
  .v200-cardback-dossier { padding-block:14px; }
  .v200-cardback-dossier h3 { margin-block:5px 8px; }
  #v200-cardback-choices { padding:14px;gap:11px; }
}
@media(max-width:820px) and (max-height:640px) and (orientation:landscape) {
  #v200-character-wardrobe-panel { grid-template-columns:minmax(0,1fr);grid-template-rows:72px minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) { .v200-cardback-choice { transition:none; } }


/* SOURCE styles/paid-season-pass.css */
/* v201: one purchased pass, twenty ranks, and one preview per distinct reward. */
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass.v201-paid-pass .v137-reward-road {
    min-height:0;
    align-items:flex-start;
}
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass.v201-paid-pass .v137-reward-road::before { top:26px; }
body.v162-pass-polished #v137-battle-pass.v161-halloween-pass.v201-paid-pass .v137-tier-column {
    display:flex;
    flex-direction:column;
    width:clamp(160px,12vw,190px);
    grid-template-rows:none !important;
    align-items:stretch;
    gap:10px;
}
#v137-battle-pass.v201-paid-pass .v137-tier-node { min-height:43px;flex:0 0 43px;order:0; }
#v137-battle-pass.v201-paid-pass .v137-reward-card { order:1;flex:0 0 auto; }
#v137-battle-pass.v201-paid-pass .v137-tier-column::after { display:none !important; }
#v137-battle-pass.v201-paid-pass .v164-milestone-banner {
    position:static;
    order:0;
    align-self:center;
    max-width:100%;
    margin-top:-4px;
    box-sizing:border-box;
}
#v137-battle-pass.v201-paid-pass .v137-track-legend { flex-wrap:wrap; }
#v137-battle-pass.v201-paid-pass .v137-track-pill { font-size:9px;line-height:1.5; }
@media (max-width:480px) {
    body.v162-pass-polished #v137-battle-pass.v161-halloween-pass.v201-paid-pass .v137-tier-column { width:160px;grid-template-rows:none !important; }
}


/* SOURCE styles/battle-stamp-inventory.css */
/* v204: battle stamps use the wardrobe's bounded body and a dedicated shop tab. */
#v204-stamp-wardrobe-panel[hidden],#v204-shop-skins-panel[hidden],#v204-stamp-shop-panel[hidden] { display:none!important; }
#v204-stamp-wardrobe-panel { min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;background:radial-gradient(ellipse at 20% 8%,#64314430,transparent 55%),#0b0b0f;scroll-padding-block:20px;color:#eadbb4; }
.v204-stamp-loadout { padding:22px clamp(12px,2.4vw,30px);border-bottom:1px solid #d0ad6340; }
.v204-stamp-loadout>small,.v204-stamp-shop-intro>small { color:#bea46b;font:700 10px/1.5 monospace;letter-spacing:.12em; }
.v204-stamp-loadout h3,.v204-stamp-collection h3 { margin:5px 0 8px;font:500 23px/1.5 Georgia,"Yu Mincho",serif; }
.v204-stamp-loadout>p,.v204-stamp-shop-intro>p { margin:7px 0;color:#b6aa93;font:12px/1.8 sans-serif; }
#v204-stamp-slots { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:18px 0 12px; }
.v204-stamp-slot { min-width:0;padding:7px 5px 10px;border:1px solid #9d845149;border-radius:8px;background:#15131b;color:#caba96;cursor:pointer; }
.v204-stamp-slot.is-selected { border-color:#f2d17c;box-shadow:inset 0 0 0 1px #e8be6350;background:linear-gradient(135deg,#372334,#1a141c); }
.v204-stamp-slot .v204-stamp-art { width:100%;max-width:160px;margin:0 auto; }
.v204-stamp-slot small { display:block;margin-top:3px;color:#9d8964;font:10px/1.4 sans-serif; }
.v204-stamp-slot strong { display:block;overflow-wrap:anywhere;margin-top:3px;font:600 12px/1.5 sans-serif; }
.v204-stamp-loadout-tools { display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;color:#cab17a;font:12px/1.5 sans-serif; }
#v204-stamp-wardrobe-status,#v204-stamp-shop-status { min-height:1.8em;color:#edd089;font:12px/1.8 sans-serif; }
.v204-stamp-collection { padding:18px clamp(12px,2.4vw,30px) 26px; }
.v204-stamp-collection h3 { margin-bottom:15px;font-size:18px; }
#v204-stamp-choices,#v204-stamp-shop-list { display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:14px;align-items:stretch; }
.v204-stamp-choice,.v204-stamp-product { min-width:0;padding:13px;display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid #a78c5049;border-radius:9px;background:linear-gradient(145deg,#252029,#121019);text-align:center; }
.v204-stamp-choice.is-selected { border-color:#eed18b;box-shadow:inset 0 0 0 1px #eed18b33; }
.v204-stamp-choice.is-locked { background:linear-gradient(145deg,#1b1822,#100e15); }
.v204-stamp-choice .v204-stamp-art,.v204-stamp-product .v204-stamp-art { width:100%;max-width:190px; }
.v204-stamp-choice h4,.v204-stamp-product h3 { margin:0;color:#f1dfb7;font:500 18px/1.5 Georgia,"Yu Mincho",serif; }
.v204-stamp-choice p { margin:0 0 4px;color:#a39884;font:11px/1.6 sans-serif;min-height:2.7em; }
#v204-stamp-wardrobe-panel button:not(.v204-stamp-slot),#v204-stamp-shop-panel button { min-height:40px;padding:8px 13px;border:1px solid #b99b5b66;border-radius:5px;background:#342329;color:#f1d9a2;font:600 12px/1.5 sans-serif;cursor:pointer; }
.v204-stamp-choice button,.v204-stamp-product button { width:100%;margin-top:auto; }
#v204-stamp-wardrobe-panel button:disabled { color:#b2aa97;cursor:default;background:#1a1720; }
#v204-stamp-wardrobe-panel button:focus-visible,#v204-stamp-shop-panel button:focus-visible,.v204-shop-tabs button:focus-visible { outline:2px solid #ffe3a0;outline-offset:3px; }
#v134-skin-shop .v204-shop-shell { grid-template-rows:auto auto minmax(0,1fr) auto; }
.v204-shop-tabs { display:flex;gap:8px;padding:8px 18px;background:#0b0a0e;border-bottom:1px solid #ad8d4940; }
.v204-shop-tabs button { min-height:38px;min-width:130px;padding:8px 13px;border:1px solid #b99b5b50;background:#19131a;color:#b6aa93;font:600 13px/1.5 sans-serif;cursor:pointer; }
.v204-shop-tabs button[aria-selected="true"] { border-color:#e6c573;background:#462532;color:#f5deb0; }
#v204-shop-content { min-width:0;min-height:0;overflow:hidden;display:grid;grid-template-rows:minmax(0,1fr); }
#v204-shop-content>section,#v204-shop-content>.v134-shop-main { grid-area:1/1;min-width:0;min-height:0; }
#v204-stamp-shop-panel { overflow:auto;overscroll-behavior:contain;padding:24px;color:#ecd6ae;background:radial-gradient(circle at 30% 5%,#72263c30,transparent 50%),#0d0b10; }
.v204-stamp-shop-intro { margin-bottom:19px; }
.v204-stamp-shop-intro h2 { margin:4px 0 6px;font:500 27px/1.5 Georgia,"Yu Mincho",serif; }
#v204-stamp-paid-balance { display:block;margin-top:10px;color:#edc979;font:600 15px/1.5 sans-serif; }
.v204-stamp-product>small { color:#b69a68;font:700 9px/1.5 monospace;letter-spacing:.12em; }
.v204-stamp-product>p { margin:0;color:#c7bdb3;font:13px/1.6 sans-serif; }
.v204-stamp-price { margin:6px 0 8px;color:#e2c07a;font:700 13px/1.5 sans-serif; }
#v204-stamp-shop-wardrobe { margin-top:22px; }
.v204-stamp-fallback { display:flex;align-items:center;justify-content:center;min-height:100px;padding:15px;color:#f4e7ca;background:#55434a;border-radius:22px;font:700 16px/1.5 sans-serif; }
.v204-pass-stamp-art { width:150px;max-width:100%; }
@media(max-width:820px) {
  #v204-stamp-slots { grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
  .v204-stamp-loadout { padding:16px 12px; }
  #v204-stamp-choices,#v204-stamp-shop-list { grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
  .v204-stamp-choice,.v204-stamp-product { padding:10px 7px; }
  .v204-stamp-choice h4,.v204-stamp-product h3 { font-size:15px; }
  #v204-stamp-shop-panel { padding:18px 12px; }
  .v204-shop-tabs { padding:6px 10px; }
  .v204-shop-tabs button { flex:1;min-width:0;font-size:12px; }
}
@media(max-height:640px) and (orientation:landscape) {
  #v204-stamp-slots { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .v204-stamp-slot .v204-stamp-art { max-width:110px; }
}
@media(prefers-reduced-motion:reduce) { #v204-stamp-wardrobe-panel,#v204-stamp-shop-panel { scroll-behavior:auto; } }

/* v241: the collection shows one published character and its six initial stamps. */
.v241-stamp-character-label{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0 4px;color:#d7c598;font:600 12px/1.5 sans-serif}
#v241-stamp-character{min-height:42px;min-width:190px;max-width:100%;padding:8px 36px 8px 12px;color:#f4dfb4;background:#211922;border:1px solid #b99b5b88;border-radius:6px;font:600 14px/1.5 sans-serif}
#v241-stamp-character:focus-visible{outline:2px solid #ffe3a0;outline-offset:3px}


/* SOURCE styles/battle-stamps.css */
/* v204: a bounded picker and non-interactive speech bubbles. */
#v204-battle-stamps[hidden], #v204-battle-stamp-panel[hidden] { display:none !important; }
#v204-battle-stamps { position:fixed !important;top:max(6px,env(safe-area-inset-top));left:max(94px,calc(env(safe-area-inset-left) + 88px));z-index:12995 !important;pointer-events:none !important; }
#v204-battle-stamps input { box-sizing:border-box;position:relative !important;pointer-events:auto !important;font:700 11px/1.4 sans-serif !important;cursor:pointer;border:1px solid #caa664 !important;border-radius:8px !important;color:#f7e9c9 !important;background:linear-gradient(180deg,#3e3228,#151214) !important;box-shadow:0 4px 12px #0009 !important;min-height:32px; }
#v204-battle-stamps input:focus-visible { outline:3px solid #fff2b1 !important;outline-offset:3px !important; }
#v204-battle-stamps input:disabled { opacity:.52 !important;cursor:wait; }
.v204-battle-stamp-toggle { min-width:76px;padding:5px 10px; }
#v204-battle-stamp-panel { position:absolute !important;top:40px;left:0;box-sizing:border-box;width:min(298px,calc(100vw - 20px));max-height:calc(100dvh - 62px);overflow:auto !important;overscroll-behavior:contain;padding:12px;border:1px solid #d2b377;border-radius:12px;background:linear-gradient(145deg,#292026fa,#0e1117fa);box-shadow:0 12px 34px #000c;color:#f6e9ca;pointer-events:auto !important; }
#v204-battle-stamp-panel>strong { display:block;font:700 15px/1.4 sans-serif; }
#v204-battle-stamp-panel>small { display:block;margin:4px 0 10px;color:#c8bfaf;font:11px/1.5 sans-serif; }
.v204-battle-stamp-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px; }
.v204-battle-stamp-choice { position:relative !important;min-width:0;height:103px;border:1px solid #bba36c66;border-radius:9px;background:#ffffff08;overflow:hidden; }
#v204-battle-stamps .v204-battle-stamp-send { position:absolute !important;inset:0;width:100%;height:100%;min-height:0;padding:75px 2px 3px !important;font-size:10px !important;white-space:normal;background:transparent !important;border:0 !important;box-shadow:none !important; }
#v204-battle-stamps .v204-battle-stamp-thumb { position:absolute;top:3px;left:50%;transform:translateX(-50%);width:76px;height:76px;pointer-events:none; }
#v204-battle-stamps .v204-battle-stamp-choice:has(input:hover) { background:#d7ab5030; }
#v204-battle-stamps .v204-battle-stamp-mute { width:100%;margin:10px 0 6px;padding:6px; }
#v204-battle-stamps .v204-battle-stamp-mute[aria-pressed="true"] { border-color:#d57c84 !important;color:#ffcad1 !important; }
#v204-battle-stamps .v204-battle-stamp-close { width:100%;padding:5px; }
.v204-battle-stamp-status { display:block;margin-top:6px;color:#ffd8a0;font:11px/1.5 sans-serif; }
.v204-battle-stamp-status:empty { display:none; }
.v204-battle-stamp-bubble { position:fixed !important;z-index:12010 !important;box-sizing:border-box;width:150px;max-width:calc(100vw - 16px);padding:7px 9px 9px;border:2px solid #d4b576;border-radius:18px 18px 18px 5px;background:linear-gradient(145deg,#fff8e9f5,#eedabdf5);box-shadow:0 6px 20px #0008;color:#2b2029;text-align:center;pointer-events:none !important;animation:v204-stamp-appear .18s ease-out both; }
.v204-battle-stamp-bubble.is-opponent { border-radius:18px 18px 5px 18px;border-color:#c38b9c; }
.v204-battle-stamp-bubble>small { display:block;font:700 10px/1.2 sans-serif;color:#655057; }
.v204-battle-stamp-bubble .v204-battle-stamp-illustration { display:block;width:112px;height:112px;margin:1px auto;pointer-events:none; }
.v204-battle-stamp-bubble>strong { display:block;font:800 15px/1.35 sans-serif;white-space:normal;overflow-wrap:anywhere; }
@keyframes v204-stamp-appear { from { opacity:0;transform:translateY(7px) scale(.94); } to { opacity:1;transform:none; } }
@media (max-width:720px),(max-height:500px) {
  #v204-battle-stamps { left:82px;top:4px; }
  #v204-battle-stamps .v204-battle-stamp-toggle { min-width:62px;min-height:29px;font-size:10px !important;padding:4px 6px; }
  #v204-battle-stamp-panel { left:-72px;top:35px;width:min(280px,calc(100vw - 20px));max-height:calc(100dvh - 48px);padding:9px; }
  .v204-battle-stamp-choice { height:91px; }
  #v204-battle-stamps .v204-battle-stamp-thumb { width:64px;height:64px; }
  #v204-battle-stamps .v204-battle-stamp-send { padding-top:65px !important; }
  .v204-battle-stamp-bubble { width:126px;padding:5px 7px 7px; }
  .v204-battle-stamp-bubble .v204-battle-stamp-illustration { width:86px;height:86px; }
  .v204-battle-stamp-bubble>strong { font-size:12px; }
}
@media (prefers-reduced-motion:reduce) { .v204-battle-stamp-bubble { animation:none !important; } }


/* SOURCE styles/ranking-leaderboard-v217.css */
/* A separate viewing button keeps the locked native ranked card intact. */
#v106-match-mode-modal .v217-ranking-entry-row{flex:0 0 auto;display:flex;justify-content:center;align-items:center;margin:5px 0 0;padding:0 8px;min-height:34px}
#v106-match-mode-modal .v217-ranking-entry{min-height:34px;max-width:100%;padding:7px 13px;border:1px solid rgba(218,183,103,.38);border-radius:3px;color:#d8c295;background:linear-gradient(180deg,#241b1a,#100e11);font:700 11px/1.35 Georgia,"Yu Mincho",serif;letter-spacing:.04em;cursor:pointer}
#v106-match-mode-modal .v217-ranking-entry:hover,#v106-match-mode-modal .v217-ranking-entry:focus-visible{color:#fff1cd;border-color:#e9c276;outline:2px solid #e9c276;outline-offset:3px}
#v106-match-mode-modal.v120-resolving .v217-ranking-entry-row{visibility:hidden;pointer-events:none}
#v217-ranking-page[hidden]{display:none!important}
#v217-ranking-page{position:fixed;inset:0;z-index:16020;display:flex;align-items:center;justify-content:center;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));box-sizing:border-box;color:#eadbb8;background:radial-gradient(ellipse at 50% 15%,rgba(88,28,39,.4),transparent 65%),rgba(3,4,8,.98);font-family:Georgia,"Yu Mincho",serif;overscroll-behavior:none}
body.v217-ranking-open{overflow:hidden!important}
#v217-ranking-page .v217-ranking-sheet{width:min(900px,100%);height:min(740px,100%);max-height:calc(100dvh - 20px);display:flex;flex-direction:column;min-height:0;overflow:hidden;border:1px solid rgba(211,173,93,.5);border-radius:8px;background:linear-gradient(135deg,rgba(26,23,27,.98),rgba(9,11,17,.98));box-shadow:0 20px 60px #0008}
#v217-ranking-page .v217-ranking-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 22px 12px;flex:0 0 auto}
#v217-ranking-page .v217-ranking-kicker{margin:0 0 7px;color:#bc9d5f;font:700 9px/1.4 "Courier New",monospace;letter-spacing:.22em}
#v217-ranking-page h2{margin:0;color:#ffe5b0;font-size:clamp(20px,3.6vw,30px);line-height:1.3;letter-spacing:.06em}
#v217-ranking-page button{flex:0 0 auto;min-height:42px;padding:9px 13px;max-width:100%;border:1px solid #a081465c;border-radius:4px;background:#342c244d;color:#f0dba9;font:700 12px/1.4 Georgia,"Yu Mincho",serif;cursor:pointer}
#v217-ranking-page button:hover,#v217-ranking-page button:focus-visible{border-color:#ecc775;color:#fff4d7;outline:2px solid #ecc775;outline-offset:2px}
#v217-ranking-page button:disabled{opacity:.5;cursor:wait}
#v217-ranking-page button[hidden]{display:none!important}
#v217-ranking-page .v217-ranking-description{flex:0 0 auto;margin:0;padding:0 22px 12px;color:#c3b495;font-size:12px;line-height:1.65}
#v217-ranking-page .v217-ranking-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;flex:0 0 auto;padding:11px 22px;border-top:1px solid #b9985733;border-bottom:1px solid #b9985733}
#v217-ranking-status{flex:1 1 200px;margin:0;color:#ccbfa5;font-size:12px;line-height:1.6}
#v217-ranking-status[data-tone="error"]{color:#ffc7bd}
#v217-ranking-page .v217-ranking-scroll{min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;scrollbar-color:#9d7b3f #17191e;padding:0 22px}
#v217-ranking-page .v217-ranking-scroll:focus-visible{outline:2px solid #d7b568;outline-offset:-2px}
#v217-ranking-page .v217-ranking-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;line-height:1.6;text-align:left}
#v217-ranking-page caption{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
#v217-ranking-page th,#v217-ranking-page td{padding:12px 10px;border-bottom:1px solid #ceb06a29;overflow-wrap:anywhere}
#v217-ranking-page thead th{position:sticky;top:0;z-index:1;background:#191920;color:#ddc48f;font-size:11px;font-weight:700}
#v217-ranking-page th:first-child{width:56px;color:#d3b67e;text-align:center}
#v217-ranking-page th:nth-child(2){width:34%}
#v217-ranking-page th:nth-child(3){width:30%}
#v217-ranking-page th:last-child,#v217-ranking-page td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#v217-ranking-page tbody tr[data-place="1"]{background:linear-gradient(90deg,#b3903329,transparent);color:#ffe5a7}
#v217-ranking-page tbody tr[data-place="2"],#v217-ranking-page tbody tr[data-place="3"]{background:linear-gradient(90deg,#b3903314,transparent)}
#v217-ranking-page .v217-ranking-footer{flex:0 0 auto;padding:12px 22px;color:#a99d84;font-size:10px;line-height:1.6;border-top:1px solid #b9985733}
@media(max-width:520px){#v217-ranking-page .v217-ranking-header{padding:15px 12px 10px;gap:8px;align-items:flex-start}#v217-ranking-page .v217-ranking-header button{font-size:10px;padding:7px 9px;min-height:38px}#v217-ranking-page .v217-ranking-description,#v217-ranking-page .v217-ranking-toolbar,#v217-ranking-page .v217-ranking-footer{padding-left:12px;padding-right:12px}#v217-ranking-page .v217-ranking-scroll{padding:0 6px}#v217-ranking-page .v217-ranking-table{font-size:11px}#v217-ranking-page th,#v217-ranking-page td{padding:10px 5px}#v217-ranking-page th:first-child{width:33px}#v217-ranking-page th:nth-child(2){width:30%}#v217-ranking-page th:nth-child(3){width:32%}#v217-ranking-page th:last-child{font-size:10px}}
@media(max-height:500px){#v106-match-mode-modal .v217-ranking-entry-row{margin:0;min-height:30px}#v106-match-mode-modal .v217-ranking-entry{min-height:30px;padding:5px 10px;font-size:10px}#v217-ranking-page .v217-ranking-header{padding:10px 16px 6px}#v217-ranking-page .v217-ranking-kicker{display:none}#v217-ranking-page h2{font-size:20px}#v217-ranking-page .v217-ranking-description{font-size:10px;padding-bottom:6px}#v217-ranking-page .v217-ranking-toolbar{padding-top:6px;padding-bottom:6px}#v217-ranking-page .v217-ranking-footer{padding-top:7px;padding-bottom:7px}}
@media(forced-colors:active){#v217-ranking-page .v217-ranking-sheet,#v217-ranking-page button,#v106-match-mode-modal .v217-ranking-entry{border:1px solid CanvasText}#v217-ranking-page thead th{background:Canvas;color:CanvasText}}


/* SOURCE styles/home-wallet-v217.css */
/* The balance has its own header slot; mode text and demo shop locks do not hide it. */
#home-screen .home-topbar { gap:8px;flex-wrap:wrap; }
#home-screen #v217-home-wallet {
    display:flex !important;align-items:center;gap:8px;flex:0 0 auto;
    min-width:110px;max-width:100%;margin-left:auto;padding:8px 12px;
    border:1px solid rgba(226,190,101,.52);border-radius:7px;
    background:linear-gradient(135deg,rgba(38,26,17,.96),rgba(8,11,17,.96));
    color:#f5e6bd;box-shadow:inset 0 1px 0 rgba(255,238,180,.08);
    cursor:default;opacity:1 !important;filter:none !important;
}
#home-screen #v217-home-wallet > img { width:29px;height:29px;object-fit:contain;flex:0 0 auto; }
#home-screen #v217-home-wallet .v217-home-wallet-copy { display:flex;flex-direction:column;gap:2px;min-width:0; }
#home-screen #v217-home-wallet .v217-home-wallet-label { color:#d9cba7;font:700 10px/1.3 sans-serif;letter-spacing:.03em; }
#home-screen #v217-home-wallet b { color:#fff0be;font:700 clamp(16px,1.6vw,21px)/1.1 Georgia,serif;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
#home-screen #v217-home-wallet small { color:#a9d6c1;font:600 9px/1.2 sans-serif; }
#home-screen #v217-home-wallet [hidden] { display:none !important; }
@media (max-width:640px), (max-height:560px) {
    #home-screen #v217-home-wallet { min-width:92px;padding:5px 8px;gap:6px; }
    #home-screen #v217-home-wallet > img { width:23px;height:23px; }
    #home-screen #v217-home-wallet .v217-home-wallet-label { font-size:9px; }
    #home-screen #v217-home-wallet b { font-size:16px; }
}


/* SOURCE styles/game-preferences-v218.css */
/* Fullscreen retains the document's modal / battlefield hierarchy. */
html.v218-native-fullscreen,
html.v218-native-fullscreen body {
    box-sizing:border-box;
    width:100%;
    height:100dvh;
    min-height:0;
}
html.v218-native-fullscreen body.v45-battle-active {
    overflow:hidden !important;
}
/* Reserve the top control band; the clock keeps its own following grid row. */
body.v45-battle-active.v64-shocker-battle > h2 {
    min-height:50px !important;
}
.v218-game-preferences {
    box-sizing:border-box;
    margin:14px 0;
    padding:15px 16px;
    border:1px solid rgba(215,180,93,.32);
    background:linear-gradient(115deg,rgba(113,21,33,.14),rgba(0,0,0,.34));
    color:#f2e4bf;
    text-align:left;
}
.v218-game-preferences h3 {margin:0 0 12px;font:700 16px/1.5 Georgia,"Yu Mincho",serif;}
.v218-preference-row + .v218-preference-row {margin-top:16px;padding-top:14px;border-top:1px solid rgba(215,180,93,.2);}
.v218-preference-note {margin:7px 0 0;color:#c9bea4;font:12px/1.7 sans-serif;overflow-wrap:anywhere;}
.v218-preference-checkbox {display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;font:700 14px/1.5 sans-serif;}
#v122-system-settings .v218-preference-checkbox input,
#v218-battle-preferences .v218-preference-checkbox input {width:22px;height:22px;margin:0;flex:0 0 22px;accent-color:#d6b458;cursor:pointer;}
#v122-system-settings .v218-preference-fullscreen,
#v218-battle-preferences .v218-preference-fullscreen,
#v218-battle-preferences .v218-preferences-close {
    position:relative !important;
    box-sizing:border-box;
    min-height:44px !important;
    padding:9px 15px !important;
    border:1px solid #c5a45c !important;
    border-radius:6px !important;
    background:linear-gradient(#413627,#17150f) !important;
    color:#f5e3b6 !important;
    font:700 13px/1.4 sans-serif !important;
    cursor:pointer;
}
.v218-preference-fullscreen:disabled {opacity:.58;cursor:default;}
#v218-battle-settings,
#v218-fullscreen-exit {
    position:fixed !important;
    top:max(6px,env(safe-area-inset-top));
    right:max(6px,env(safe-area-inset-right));
    box-sizing:border-box;
    min-width:48px;
    min-height:44px;
    padding:8px 10px;
    border:1px solid rgba(212,175,55,.72);
    border-radius:8px;
    background:linear-gradient(#332b1c,#0a0a09);
    color:#f0deb0;
    font:700 12px/1.3 sans-serif;
    box-shadow:0 4px 13px #0008;
    cursor:pointer;
}
#v218-battle-settings {display:none;z-index:13000 !important;}
body.v45-battle-active #v218-battle-settings {display:block;}
#v218-fullscreen-exit {
    z-index:2147483000 !important;
    width:44px !important; min-width:44px !important; max-width:44px !important;
    height:36px !important; min-height:36px !important; max-height:36px !important;
    padding:4px !important; font:700 11px/1.2 sans-serif !important;
    flex:0 0 44px !important; white-space:nowrap;
}
#v218-fullscreen-exit[data-v237-dock="home"],#v218-fullscreen-exit[data-v237-dock="replay"] {
    position:static !important; inset:auto !important; align-self:center; margin:0 4px 0 0 !important;
}
#v218-fullscreen-exit[data-v237-dock="replay"] {
    height:32px !important; min-height:32px !important; max-height:32px !important;
    padding:2px !important; margin-left:auto !important;
}
@media(max-height:480px) {
    #v218-fullscreen-exit[data-v237-dock="replay"] { height:26px !important; min-height:26px !important; max-height:26px !important; }
}
html.v218-native-fullscreen #v218-battle-settings {right:calc(max(6px,env(safe-area-inset-right)) + 52px);}
#v218-battle-preferences {
    position:fixed !important;
    inset:0;
    z-index:13100 !important;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
    box-sizing:border-box;
    background:rgba(0,0,0,.84);
    color:#f3e7c7;
}
#v218-battle-preferences[hidden],#v218-fullscreen-exit[hidden] {display:none !important;}
.v218-preferences-panel {
    box-sizing:border-box;
    width:min(100%,520px);
    max-height:calc(100dvh - 32px);
    overflow:auto;
    overscroll-behavior:contain;
    padding:18px;
    border:1px solid #c6a561;
    border-radius:10px;
    background:linear-gradient(145deg,#231d14,#050606);
    box-shadow:0 24px 70px #000b;
    text-align:left;
}
.v218-preferences-panel h2 {margin:0 0 14px;font:700 20px/1.6 Georgia,"Yu Mincho",serif;}
.v218-preferences-close {float:right;}
#v122-system-settings .v218-game-preferences :focus-visible,
#v218-battle-preferences :focus-visible,
#v218-battle-settings:focus-visible,
#v218-fullscreen-exit:focus-visible {outline:2px solid #ffe394;outline-offset:3px;}
@media(max-width:420px) {
    .v218-game-preferences {padding:12px;}
    .v218-preferences-panel {padding:12px;}
    .v218-preference-checkbox {font-size:13px;}
}


/* SOURCE styles/defense-picker-v218.css */
/* Optional defense choices; ordinary hand and pass / ability controls remain. */
#v218-defense-picker[hidden]{display:none!important}
.v218-defense-picker{position:fixed;right:max(18px,env(safe-area-inset-right));top:28%;z-index:2600;box-sizing:border-box;width:min(370px,calc(100vw - 28px));max-height:54dvh;padding:14px;border:1px solid rgba(235,204,139,.7);border-radius:13px;background:linear-gradient(145deg,rgba(27,21,25,.98),rgba(11,12,20,.98));box-shadow:0 12px 38px #000a;color:#f8efdd;font:14px/1.5 system-ui,sans-serif;display:flex;flex-direction:column;gap:8px}
.v218-defense-picker h3{font-size:17px;line-height:1.3;margin:0;color:#f4d597;letter-spacing:.05em}
.v218-defense-instruction,.v218-defense-status{margin:0;font-size:12px}
.v218-defense-status{color:#dcd0ba;min-height:1.5em}
.v218-defense-list{display:grid;grid-template-columns:1fr;gap:7px;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.v218-defense-option{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:49px;width:100%;box-sizing:border-box;border:1px solid #88774d;border-radius:8px;padding:7px 10px;background:#23222b;color:#fff2d9;text-align:left;cursor:pointer}
.v218-defense-option strong{font-size:12px;font-weight:700;color:#e6cd93}
.v218-defense-cards{font-size:15px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.v218-defense-option[aria-pressed=true]{border-color:#ffe095;background:#47351d;box-shadow:inset 0 0 0 1px #ffe095}
.v218-defense-option:focus-visible,.v218-defense-actions button:focus-visible{outline:3px solid #f2d186;outline-offset:2px}
.v218-defense-actions{display:flex;gap:8px;flex-wrap:wrap}
.v218-defense-actions button{flex:1;min-height:44px;border-radius:8px;border:1px solid #927b47;padding:8px 11px;color:#fff4db;font-weight:700;cursor:pointer}
.v218-defense-confirm{background:linear-gradient(#796035,#4a341c)}
.v218-defense-manual{background:#25232c}
.v218-defense-picker button:disabled{opacity:.5;cursor:default}
@media(max-width:700px){.v218-defense-picker{top:20%;right:10px;width:min(340px,calc(100vw - 20px));max-height:48dvh;padding:11px}.v218-defense-list{max-height:27dvh}}
@media(max-height:520px){.v218-defense-picker{top:12%;max-height:72dvh;width:310px;gap:5px;padding:9px}.v218-defense-list{max-height:38dvh}.v218-defense-option{min-height:44px}.v218-defense-instruction{display:none}}
/* Keep the current defense foldable without changing the saved input setting. */
.v257-defense-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none}
.v257-defense-toggle{flex:none;min-width:80px;min-height:44px;box-sizing:border-box;border:1px solid #927b47;border-radius:8px;padding:7px 10px;background:#25232c;color:#fff4db;font:700 12px/1.35 system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
.v257-defense-toggle:focus-visible{outline:3px solid #f2d186;outline-offset:2px}
.v257-defense-content{display:flex;flex-direction:column;gap:8px;min-height:0;overflow:hidden}
.v257-defense-content[hidden]{display:none!important}
.v218-defense-picker.v257-defense-folded{width:min(250px,calc(100vw - 28px))}
@media(max-width:700px){.v218-defense-picker.v257-defense-folded{width:min(235px,calc(100vw - 20px))}}
html.shocker-mobile-v252 #v218-defense-picker.v257-defense-folded{width:min(235px,calc(var(--mobile-v252-width,100vw) - 20px))!important}


/* SOURCE styles/ability-card-preview-v231.css */
/* The ability cards are staged over the live battlefield. Ordinary battle
   cards, inline swaps, defense dialogs and observation thumbnails stay small. */
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage {
  --v233-card-width: clamp(112px, min(13vw, 24dvh), 176px);
  position: fixed !important;
  inset: 0 !important;
  z-index: 1201;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) !important;
  background: radial-gradient(ellipse at 50% 50%, #0608091f 25%, #03050870 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body #v37-ability-choice.v231-ability-cards.v233-ability-stage.show,
body #v231-card-inspection.v231-ability-cards.v233-ability-stage.show { display: flex !important; }
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage.v233-stage-multi-row {
  --v233-card-width: clamp(98px, min(10vw, 16dvh), 148px);
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage[data-v233-density="compact"] {
  --v233-card-width: clamp(98px, min(10vw, 18dvh), 138px);
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage[data-v233-density="crowded"] {
  --v233-card-width: clamp(86px, min(9vw, 16dvh), 112px);
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v37-choice-panel {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: min(96vw, 1520px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: calc(100dvh - 28px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding: 8px 12px !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  color: #fff3d5 !important;
  background: none !important;
  box-shadow: none !important;
  clip-path: none !important;
  scrollbar-color: #d6b875 #15171b;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v37-choice-panel::after,
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v37-choice-kicker { display: none !important; }
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage :is(#v37-choice-title,#v231-inspection-title) {
  flex: none !important;
  margin: 0 0 6px !important;
  padding: 4px 180px 0 !important;
  color: #fff3d5 !important;
  font: 700 clamp(19px, 2.2vw, 31px)/1.35 Georgia, "Yu Mincho", serif !important;
  text-align: center !important;
  text-shadow: 0 2px 5px #000, 0 0 20px #000;
  overflow-wrap: anywhere;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage :is(#v37-choice-message,.v231-inspection-message) {
  flex: none !important;
  margin: 0 auto 6px !important;
  max-width: min(100%, 900px);
  padding: 4px 13px !important;
  border-radius: 5px;
  background: #060809b0;
  color: #f4e2bc !important;
  font: 500 clamp(11px, 1.2vw, 14px)/1.55 "Yu Gothic", sans-serif !important;
  text-align: center;
  text-shadow: 0 1px 3px #000;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage :is(#v37-choice-message,.v231-inspection-message):empty { display: none !important; }
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage #v37-choice-groups,
body #v231-card-inspection.v231-ability-cards.v233-ability-stage .v37-choice-panel > .v37-choice-cards {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v37-choice-group {
  margin: 0 !important;
  padding: 0 0 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v37-choice-group-title {
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0 !important;
  padding: 5px 16px;
  border-bottom: 1px solid #d2b27288;
  color: #ffe4a9 !important;
  background: linear-gradient(90deg, #11131a00, #101117bf 18% 82%, #11131a00);
  font: 700 clamp(12px, 1.2vw, 15px)/1.4 "Yu Gothic", sans-serif !important;
  text-align: center;
  text-shadow: 0 1px 4px #000;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v37-choice-cards {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 12px 18px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  padding: 24px 16px 16px !important;
  perspective: 1100px;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-option {
  position: relative !important;
  display: flex !important;
  flex: 0 0 var(--v233-card-width) !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  width: var(--v233-card-width) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: #fff4d9 !important;
  background: none !important;
  box-shadow: none !important;
  text-align: center !important;
  transform: rotate(var(--v233-card-tilt, 0deg));
  transform-origin: 50% 85%;
  transition: transform 180ms ease, filter 180ms ease;
  touch-action: manipulation;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-visual.card {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: var(--v233-card-width) !important;
  height: calc(var(--v233-card-width) * 1.4) !important;
  aspect-ratio: 5 / 7 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  border-radius: 9px !important;
  border-width: 2px !important;
  font: 700 calc(var(--v233-card-width) * .31)/1 Georgia, serif !important;
  box-shadow: 0 12px 20px #000b, 0 0 0 1px #fff4 !important;
  text-shadow: none !important;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-visual.card:not(.card-back) {
  color: #1d1b19 !important;
  border: 2px solid #ddc99c !important;
  background: linear-gradient(145deg, #fffdf3, #e8dfc9) !important;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-visual.card.red { color: #a5202b !important; }
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-visual.card.card-back { font-size: 0 !important; }
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-visual:not(.card-back)::before,
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-visual:not(.card-back)::after {
  content: attr(data-v231-face);
  position: absolute;
  padding: 0 !important;
  color: inherit !important;
  background: none !important;
  font: 700 calc(var(--v233-card-width) * .12)/1 Georgia, serif !important;
  inset: auto !important;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-visual:not(.card-back)::before { top: 9px !important; left: 8px !important; }
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-visual:not(.card-back)::after { bottom: 9px !important; right: 8px !important; transform: rotate(180deg); }
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-caption {
  display: block;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 4px;
  color: #fff3d4 !important;
  background: #070a0db8;
  font: 700 12px/1.4 "Yu Gothic", sans-serif !important;
  text-shadow: 0 1px 3px #000;
  overflow-wrap: anywhere;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-note {
  display: block;
  max-width: 100%;
  margin: 0 !important;
  color: #f0ddae !important;
  font: 500 11px/1.4 "Yu Gothic", sans-serif !important;
  text-shadow: 0 1px 3px #000, 0 0 8px #000;
  overflow-wrap: anywhere;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-note:empty { display: none !important; }
body #v37-ability-choice.v231-ability-cards.v233-ability-stage .v231-card-option.is-selected {
  z-index: 2;
  animation: none !important;
  transform: translateY(-14px) rotate(0deg) scale(1.04);
}
body #v37-ability-choice.v231-ability-cards.v233-ability-stage .v231-card-option.is-selected .v231-card-visual {
  border-color: #fff1a4 !important;
  box-shadow: 0 0 0 3px #ffe9a0, 0 0 32px #efb647b3, 0 18px 28px #000c !important;
}
body #v37-ability-choice.v231-ability-cards.v233-ability-stage .v231-card-option.is-selected::after {
  content: "✓";
  position: absolute;
  top: -10px;
  right: -9px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #fff1ae;
  border-radius: 50%;
  color: #281b09;
  background: #f3cf69;
  box-shadow: 0 3px 9px #000b;
  font: 800 20px/1 sans-serif;
}
body #v37-ability-choice.v231-ability-cards.v233-ability-stage button.v231-card-option:not(:disabled) { cursor: pointer; }
body #v37-ability-choice.v231-ability-cards.v233-ability-stage button.v231-card-option:focus-visible {
  outline: 3px solid #fff0b6;
  outline-offset: 6px;
  transform: translateY(-8px) rotate(0deg);
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v37-choice-actions {
  display: flex !important;
  flex: none !important;
  flex-wrap: wrap;
  justify-content: center !important;
  gap: 10px !important;
  margin: 5px 0 0 !important;
  padding: 4px 10px !important;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage :is(.v37-choice-actions button,.v231-inspection-done,.v231-field-toggle) {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: auto !important;
  box-sizing: border-box !important;
  padding: 9px 20px !important;
  border: 1px solid #d4b46e;
  border-radius: 6px !important;
  color: #fff2cf;
  background: linear-gradient(#433821, #19170f);
  font: 700 14px/1.4 "Yu Gothic", sans-serif !important;
  cursor: pointer;
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage :is(.v37-choice-actions button,.v231-inspection-done) {
  width: min(64vw, 280px) !important;
  max-width: 100% !important;
  align-self: center;
  box-shadow: 0 4px 16px #000a;
}
body #v231-card-inspection.v231-ability-cards.v233-ability-stage .v231-inspection-done {
  flex: none !important;
  display: block !important;
  margin: 6px auto 0 !important;
  border-color: #e4c35f;
  color: #171006;
  background: linear-gradient(#f2d477, #a87d22);
}
body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-field-toggle {
  position: absolute !important;
  right: 12px;
  top: 2px;
  width: auto !important;
  max-width: 165px;
  margin: 0 !important;
  background: #0a0d11db;
}
.v231-field-toggle:focus-visible,
.v231-inspection-done:focus-visible,
#v231-choice-return:focus-visible { outline: 3px solid #fff0b6; outline-offset: 3px; }
body #v37-ability-choice.v231-ability-cards.v233-ability-stage.v231-field-peek,
body #v231-card-inspection.v231-ability-cards.v233-ability-stage.v231-field-peek { display: none !important; }
#v231-field-peek-shield { position: fixed; inset: 0; z-index: 1300; background: transparent; }
#v231-field-peek-controls {
  position: fixed;
  z-index: 1301;
  right: max(16px, env(safe-area-inset-right));
  top: max(12px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  padding: 7px 9px;
  border: 1px solid #d4b46e88;
  border-radius: 9px;
  color: #eddfbf;
  background: #15140ff2;
  box-shadow: 0 5px 18px #0008;
  font-size: 11px;
}
#v231-choice-return {
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #d4b46e;
  border-radius: 7px;
  color: #fff2cf;
  background: linear-gradient(#433821, #19170f);
  font: 700 13px/1.3 sans-serif;
  cursor: pointer;
}
#v231-card-inspection { position: fixed; inset: 0; z-index: 1201; display: flex; align-items: center; justify-content: center; padding: 12px; background: #05060550; }
/* Small historical cards are intentionally separate from the large stage. */
#v188-room-observations .v231-observed-cards { display: flex; flex-wrap: wrap; gap: 5px; }
#v188-room-observations .v231-observed-card { display: inline-flex; flex-direction: column; align-items: center; padding: 3px; }
#v188-room-observations .v231-card-visual.card {
  position: relative !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 43px !important;
  height: 60px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: none !important;
  border-radius: 7px;
  font: 700 15px/1 Georgia, serif !important;
  box-shadow: 0 5px 11px #0009;
}
#v188-room-observations .v231-card-visual.card:not(.card-back) { color: #1d1b19 !important; border: 1px solid #dccdac !important; background: linear-gradient(145deg, #fffdf3, #e8dfc9) !important; }
#v188-room-observations .v231-card-visual.card.red { color: #a5202b !important; }
#v188-room-observations .v231-card-visual:not(.card-back)::before,
#v188-room-observations .v231-card-visual:not(.card-back)::after {
  content: attr(data-v231-face);
  position: absolute;
  padding: 0 !important;
  color: inherit !important;
  background: none !important;
  font: 700 7px/1 Georgia, serif !important;
  inset: auto !important;
}
#v188-room-observations .v231-card-visual:not(.card-back)::before { top: 5px !important; left: 3px !important; }
#v188-room-observations .v231-card-visual:not(.card-back)::after { bottom: 5px !important; right: 3px !important; transform: rotate(180deg); }
#v188-room-observations .v231-card-caption { display: block; max-width: 100%; color: #f5e9cc; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
#v188-room-observations .v231-card-note { display: block; margin: 0 !important; color: #cbbb91 !important; font-size: 10px !important; line-height: 1.4; }
#v188-room-observations .v231-card-note:empty { display: none; }
@keyframes v233-card-arrival {
  0% { opacity: 0; transform: translateY(70px) translateZ(-90px) rotateX(24deg) rotate(calc(var(--v233-card-tilt, 0deg) * 4)) scale(.72); }
  65% { opacity: 1; transform: translateY(-10px) rotateX(0deg) rotate(var(--v233-card-tilt, 0deg)) scale(1.035); }
  100% { opacity: 1; transform: rotate(var(--v233-card-tilt, 0deg)); }
}
@media (prefers-reduced-motion: no-preference) {
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-option.v233-card-arrive {
    animation: v233-card-arrival 420ms cubic-bezier(.18,.78,.24,1) backwards;
    animation-delay: var(--v233-card-delay, 0ms);
  }
}
@media (hover: hover) and (pointer: fine) {
  body #v37-ability-choice.v231-ability-cards.v233-ability-stage button.v231-card-option:not(:disabled):hover { transform: translateY(-9px) rotate(0deg) scale(1.025); }
  body #v37-ability-choice.v231-ability-cards.v233-ability-stage button.v231-card-option.is-selected:not(:disabled):hover { transform: translateY(-17px) rotate(0deg) scale(1.04); }
}
@media (max-width: 760px) {
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage { --v233-card-width: clamp(94px, 23vw, 142px); }
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage.v233-stage-multi-row { --v233-card-width: clamp(80px, min(21vw, 14dvh), 120px); }
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage[data-v233-density="compact"],
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage[data-v233-density="crowded"] { --v233-card-width: clamp(76px, 20vw, 106px); }
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v37-choice-panel { padding: 0 4px !important; max-height: calc(100dvh - 24px) !important; }
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage :is(#v37-choice-title,#v231-inspection-title) { padding: 52px 4px 0 !important; font-size: 20px !important; }
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-field-toggle { top: 0; right: 4px; font-size: 12px !important; }
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v37-choice-cards { gap: 10px !important; padding: 20px 8px 14px !important; }
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-caption { font-size: 11px !important; }
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-note { font-size: 10px !important; }
  #v231-field-peek-controls > span { display: none; }
}
@media (max-height: 500px) {
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage,
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage[data-v233-density="compact"],
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage[data-v233-density="crowded"] { --v233-card-width: clamp(78px, 23dvh, 108px); }
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage.v233-stage-multi-row { --v233-card-width: clamp(64px, 17dvh, 84px); }
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage :is(#v37-choice-title,#v231-inspection-title) { padding: 2px 165px 0 !important; font-size: 17px !important; }
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage :is(#v37-choice-message,.v231-inspection-message) { margin-bottom: 0 !important; font-size: 11px !important; }
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v37-choice-cards { padding-block: 17px 9px !important; gap: 10px !important; }
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-caption { font-size: 10px !important; }
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-note { font-size: 9px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-option { animation: none !important; transition: none !important; }
}
@media (max-width: 500px) and (max-height: 500px) {
  body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage :is(#v37-choice-title,#v231-inspection-title) { padding: 50px 4px 0 !important; }
}

/* Retrieval places are labeled controls, not playing-card faces. */
body #v37-ability-choice.v231-ability-cards.v233-ability-stage .v234-source-option {
  display: flex !important;
  flex: 0 1 280px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: min(280px, 100%) !important;
  min-height: 76px !important;
  height: auto !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  border: 1px solid #d9be8790 !important;
  color: #fff0ce !important;
  background: linear-gradient(145deg, #2d2834ed, #10131aeb) !important;
  font-size: 17px !important;
  box-shadow: 0 5px 18px #0009 !important;
}
body #v37-ability-choice.v231-ability-cards.v233-ability-stage .v234-source-option.is-selected {
  border-color: #ffdf8e !important;
  background: linear-gradient(145deg, #55462ee8, #24202beb) !important;
  box-shadow: 0 0 18px #ffd87866, 0 5px 18px #0009 !important;
}
body #v37-ability-choice .v234-source-option .v234-source-note {
  color: #d6c9b4 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

body #v37-ability-choice.v231-ability-cards.v233-ability-stage .v234-source-option .v234-source-label {
  font-size: 17px !important;
  line-height: 1.4 !important;
}


/* SOURCE styles/mobile-home-v252.css */
/* Phone-only landscape layout. The controller supplies the visual viewport height.
   Every selector requires the opt-in mobile class: desktop rules stay untouched. */
html.shocker-mobile-v252 body {
    --v128-app-height:var(--mobile-v252-height,100dvh);
    -webkit-text-size-adjust:100%;
}

/* Keep the existing imperial home, with a usable menu beside the card showcase. */
html.shocker-mobile-v252 #home-screen.v62-shocker-home {
    height:var(--mobile-v252-height,100dvh) !important;
    max-height:var(--mobile-v252-height,100dvh) !important;
    min-height:0 !important;
}
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-shell {
    box-sizing:border-box;
    width:100% !important;
    height:100% !important;
    padding:max(4px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)) !important;
    grid-template-rows:48px 68px minmax(0,1fr) 40px !important;
    gap:4px !important;
}
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-topbar {
    min-height:0 !important;
    height:48px !important;
    padding:0 !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
    overflow:visible !important;
}
html.shocker-mobile-v252 #home-screen .home-topbar .home-brand,
html.shocker-mobile-v252 #home-screen .home-resources { display:none !important; }
html.shocker-mobile-v252 #home-screen .v105-home-identity-zone { min-width:0;flex:1 1 auto;gap:0; }
html.shocker-mobile-v252 #home-screen #v105-home-profile-button {
    width:min(220px,100%) !important;
    max-width:220px !important;
    min-width:130px !important;
    min-height:44px !important;
    height:44px !important;
    grid-template-columns:36px minmax(0,1fr) 12px !important;
    gap:7px !important;
    padding:3px 6px 3px 3px !important;
}
html.shocker-mobile-v252 #home-screen #v105-home-profile-button > .v105-profile-emblem { width:36px !important;height:36px !important; }
html.shocker-mobile-v252 #home-screen #v105-home-profile-button .v105-profile-kicker { display:none !important; }
html.shocker-mobile-v252 #home-screen #v105-home-profile-button .v105-profile-name { font-size:12px !important; }
html.shocker-mobile-v252 #home-screen #v105-home-profile-button .v105-profile-title { font-size:10px !important;margin-top:3px !important; }
html.shocker-mobile-v252 #home-screen #v105-home-profile-button .v106-profile-rank { display:block !important;max-width:100%;font-size:10px !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
html.shocker-mobile-v252 #home-screen #v226-player-hub-controls { margin-left:auto;gap:6px; }
html.shocker-mobile-v252 #home-screen #v226-player-hub-controls .v226-hub-entry,
html.shocker-mobile-v252 #home-screen #v226-player-hub-controls #v246-beta-missions-open {
    width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;
}
html.shocker-mobile-v252 #home-screen #v226-player-hub-controls .v226-hub-entry svg { width:22px;height:22px; }
html.shocker-mobile-v252 #home-screen #v226-player-hub-controls .v226-hub-entry-label { display:none !important; }
html.shocker-mobile-v252 #home-screen #v217-home-wallet {
    min-width:90px;max-width:124px;height:44px;box-sizing:border-box;margin:0;padding:4px 8px;gap:5px;
}
html.shocker-mobile-v252 #home-screen #v217-home-wallet > img { width:24px;height:24px; }
html.shocker-mobile-v252 #home-screen #v217-home-wallet .v217-home-wallet-label { font-size:10px; }
html.shocker-mobile-v252 #home-screen #v217-home-wallet b { font-size:17px; }
html.shocker-mobile-v252 #home-screen #v127-home-bulletin { margin:0 !important;min-height:0 !important;height:68px !important; }
html.shocker-mobile-v252 #home-screen .v127-bulletin-commandbar { display:none !important; }
html.shocker-mobile-v252 #home-screen .v127-bulletin-stage { height:66px !important; }
html.shocker-mobile-v252 #home-screen .v127-bulletin-copy { width:72%;padding:7px 36px !important; }
html.shocker-mobile-v252 #home-screen .v127-bulletin-meta { margin-bottom:4px; }
html.shocker-mobile-v252 #home-screen .v127-bulletin-tag { padding:2px 5px;font-size:10px; }
html.shocker-mobile-v252 #home-screen .v127-bulletin-title { font-size:18px !important;line-height:1.2; }
html.shocker-mobile-v252 #home-screen .v127-bulletin-summary,
html.shocker-mobile-v252 #home-screen .v171-bulletin-cta,
html.shocker-mobile-v252 #home-screen .v171-bulletin-subtitle,
html.shocker-mobile-v252 #home-screen .v127-bulletin-term { display:none !important; }
html.shocker-mobile-v252 #home-screen .v127-bulletin-arrow { min-width:36px;width:36px;height:52px;font-size:26px; }
html.shocker-mobile-v252 #home-screen .v127-bulletin-art { left:67%; }
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-main,
html.shocker-mobile-v252 #home-screen.v62-shocker-home #v127-home-bulletin + .home-main {
    display:grid !important;
    grid-template-columns:minmax(0,1.08fr) minmax(285px,1fr) !important;
    grid-template-rows:minmax(0,1fr) !important;
    gap:8px !important;
    height:auto !important;
    min-height:0 !important;
    padding:0 !important;
}
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-side,
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-side.v186-friend-entry-ready {
    grid-template-rows:minmax(0,1fr) !important;
    height:100% !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:#b79a5d #11100f;
}
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-notice { display:none !important; }
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-menu-grid {
    height:auto !important;
    min-height:100% !important;
    grid-template-rows:repeat(3,minmax(50px,1fr)) !important;
    gap:6px !important;
    overflow:visible !important;
}
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-menu-btn,
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-menu-btn.primary {
    min-height:50px !important;
    padding:8px 6px 8px 40px !important;
    display:flex !important;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
}
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-menu-name { font-size:12px !important;line-height:1.3 !important;letter-spacing:.02em !important; }
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-menu-btn.primary .home-menu-name { font-size:17px !important; }
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-menu-sub { font-size:10px !important;margin-top:4px !important;letter-spacing:0 !important;line-height:1.2 !important; }
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-menu-btn:not(.primary) .home-menu-sub { display:none !important; }
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-menu-icon,
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-menu-btn.primary .home-menu-icon { left:8px;width:25px;height:30px;font-size:22px !important; }
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-hero-copy { width:50% !important;left:12px !important;bottom:10px !important; }
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-season { font-size:10px !important;letter-spacing:.03em !important;padding:4px 5px !important; }
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-hero-title { font-size:clamp(24px,5vw,38px) !important;margin:7px 0 !important; }
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-hero-text { display:none !important; }
html.shocker-mobile-v252 #home-screen.v62-shocker-home .v62-mechanics { grid-template-columns:1fr !important;gap:4px !important;margin-top:6px !important; }
html.shocker-mobile-v252 #home-screen.v62-shocker-home .v159-guide-trigger.v62-mechanic { min-height:36px;padding:5px 6px !important;grid-template-columns:22px minmax(0,1fr) 8px;gap:5px !important; }
html.shocker-mobile-v252 #home-screen.v62-shocker-home .v159-guide-trigger-copy strong { font-size:11px !important;line-height:1.25 !important;letter-spacing:0 !important; }
html.shocker-mobile-v252 #home-screen .v159-guide-trigger-copy em { display:none !important; }
html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-bottom { display:flex !important;min-height:40px !important;padding:1px 0 0 !important;font-size:10px !important;align-items:center;justify-content:flex-end; }
html.shocker-mobile-v252 #home-screen .home-bottom > :first-child { display:none; }
html.shocker-mobile-v252 #v172-account-button[data-v237-home-entry="true"] { bottom:max(5px,env(safe-area-inset-bottom));left:max(8px,env(safe-area-inset-left));min-height:36px;padding:7px 10px;font-size:11px; }
html.shocker-mobile-v252 #shocker-audio-hint { display:none !important; }

/* Modal chrome is sized once; long content scrolls instead of shrinking text. */
html.shocker-mobile-v252 :is(#v122-system-settings,#v122-skip-confirm,#v218-battle-preferences,#v250-credits-support,#v226-player-hub,#v246-beta-missions,#v142-skin-vault,#v105-profile-editor,#v127-bulletin-modal,#v228-login-event,#v103-rulebook,#v159-chain-guide,#v177-imperial-dialog,#v217-ranking-modal) {
    box-sizing:border-box;
    height:var(--mobile-v252-height,100dvh) !important;
    min-height:0 !important;
    max-height:var(--mobile-v252-height,100dvh) !important;
    padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)) !important;
}
html.shocker-mobile-v252 :is(.v122-settings-panel,.v122-confirm-panel,.v218-preferences-panel,#v250-support-panel,.v177-dialog-panel,.v127-bulletin-modal-panel) {
    box-sizing:border-box;
    max-height:calc(var(--mobile-v252-height,100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px) !important;
    min-height:0 !important;
    padding:16px !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
    scroll-padding-block:12px;
}
html.shocker-mobile-v252 :is(#v122-system-settings,#v122-skip-confirm,#v250-credits-support,#v218-battle-preferences,#v226-player-hub,#v246-beta-missions,#v127-bulletin-modal,#v142-skin-vault,#v159-chain-guide,#v103-rulebook) button:not([hidden]) { touch-action:manipulation; }
html.shocker-mobile-v252 :is(.v122-settings-actions button,.v122-confirm-actions button,.v218-preference-fullscreen,.v218-preferences-close,.v250-support-button,.v226-hub-heading button,.v226-hub-toolbar button,.v246-missions-header button,.v246-missions-toolbar button,.v127-bulletin-modal-actions button,.v159-guide-tabs button,.v103-rulebook-tab) { min-height:44px !important;font-size:12px !important; }
html.shocker-mobile-v252 :is(.v122-settings-close,#v105-profile-close,.v142-vault-close,#v228-login-event-close,#v177-dialog-close,.v106-rank-close,.v127-bulletin-modal-close) { width:44px !important;height:44px !important;min-height:44px !important;min-width:44px !important; }
html.shocker-mobile-v252 .v122-settings-panel h2 { font-size:22px; }
html.shocker-mobile-v252 .v122-settings-summary { margin:12px 0; }
html.shocker-mobile-v252 .v122-settings-stat small { font-size:10px; }
html.shocker-mobile-v252 .v122-settings-stat b { font-size:12px; }
html.shocker-mobile-v252 #v250-support-panel { width:min(740px,100%); }
html.shocker-mobile-v252 #v250-credits-support .v250-support-button { min-height:44px !important; }
html.shocker-mobile-v252 #v250-credits-support .v250-support-header { position:sticky;top:-16px;z-index:2;margin-bottom:10px;padding:7px 0;background:#171312; }
html.shocker-mobile-v252 #v250-support-title { font-size:21px; }
html.shocker-mobile-v252 #v250-contact-form :is(input,textarea,select) { font-size:16px; }
html.shocker-mobile-v252 #v250-contact-form textarea { min-height:105px;max-height:240px; }
html.shocker-mobile-v252 #v250-credits-support .v250-credit-section dl > div { font-size:13px; }

/* Mode cards remain cards, with readable labels and a persistent back action. */
html.shocker-mobile-v252 :is(#v106-match-mode-modal,#v99-mode-overlay) {
    box-sizing:border-box;height:var(--mobile-v252-height,100dvh) !important;min-height:0 !important;
    max-height:var(--mobile-v252-height,100dvh) !important;
    padding:max(4px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)) !important;
}
html.shocker-mobile-v252 :is(.v106-mode-panel,.v99-mode-panel) {
    width:100% !important;height:100% !important;max-height:100% !important;min-height:0 !important;padding:4px !important;overflow:hidden !important;
}
html.shocker-mobile-v252 .v106-mode-header { padding:0 48px 3px !important; }
html.shocker-mobile-v252 :is(.v106-mode-header .v106-rank-heading,.v99-mode-panel h2) { margin:2px 0 !important;font-size:21px !important; }
html.shocker-mobile-v252 :is(.v106-rank-subheading,.v99-mode-panel > p) { font-size:11px !important;line-height:1.4 !important;margin:3px 0 !important; }
html.shocker-mobile-v252 :is(.v106-mode-choice-grid,.v99-mode-options) { gap:20px !important;overflow-x:auto;justify-content:safe center !important;padding-inline:6px; }
html.shocker-mobile-v252 .v120-playing-card {
    flex:0 0 auto !important;
    height:min(240px,calc(var(--mobile-v252-height,100dvh) - 130px)) !important;
    width:auto !important;min-width:0 !important;
    max-height:calc(var(--mobile-v252-height,100dvh) - 130px) !important;
}
html.shocker-mobile-v252 .v120-card-front { padding:28px 9px !important; }
html.shocker-mobile-v252 .v120-playing-card :is(.v106-mode-choice-title,strong) { font-size:14px !important;margin:5px 0 !important;letter-spacing:0 !important;white-space:nowrap; }
html.shocker-mobile-v252 .v120-playing-card :is(.v106-mode-choice-copy,.v120-card-front > small) { font-size:11px !important;line-height:1.4 !important;-webkit-line-clamp:3 !important; }
html.shocker-mobile-v252 .v120-playing-card .v106-mode-choice-meta { font-size:10px !important;margin-top:5px !important;padding:4px 0 !important; }
html.shocker-mobile-v252 :is(.v106-mode-footer .v106-rank-action,#v99-mode-cancel) { min-height:44px !important;padding:7px 16px !important;font-size:12px !important;margin:0 auto !important; }

/* Character cards retain their aspect ratio and use a horizontal touch rail. */
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen {
    box-sizing:border-box;height:var(--mobile-v252-height,100dvh) !important;
    max-height:var(--mobile-v252-height,100dvh) !important;min-height:0 !important;
    padding:max(4px,env(safe-area-inset-top)) max(7px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left)) !important;
    overflow:hidden !important;
}
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen .character-select-shell { height:100% !important;min-height:0 !important;padding:0 !important; }
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen .character-select-kicker { font-size:10px !important; }
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen .character-select-title { margin:3px 0 !important;font-size:22px !important; }
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen .character-select-sub { margin:2px 0 5px !important;font-size:11px !important; }
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen #character-grid {
    align-items:center !important;gap:16px !important;padding:8px 12px !important;
    flex:1 1 0 !important;min-height:0 !important;overflow-x:auto !important;overflow-y:hidden !important;
    scroll-snap-type:x proximity;scroll-padding-inline:12px;overscroll-behavior-x:contain;
}
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen .character-card {
    flex:0 0 auto !important;aspect-ratio:925/1281 !important;
    width:auto !important;min-width:0 !important;max-width:none !important;
    height:calc(var(--mobile-v252-height,100dvh) - 164px) !important;
    max-height:100% !important;min-height:0 !important;
    scroll-snap-align:center;
}
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen .v62-archetype-bar { min-height:44px;justify-content:safe center; }
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen .v62-filter-button { min-height:36px;font-size:11px; }
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen .character-card :is(.v62-card-meta,.v62-card-index,.character-card-tap-label,.character-card-toggle-hint) { display:none !important; }
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen .character-card > :is(.character-card-image,.character-card-awaken-image) { inset:3% auto auto 3% !important;width:94% !important;height:94% !important;object-fit:contain !important;transform:none !important; }
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen .character-card.has-awaken-preview > :is(.character-card-image,.character-card-awaken-image) { transform:none !important; }
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen .character-card.has-awaken-preview.selection-awaken-front > :is(.character-card-image,.character-card-awaken-image) { transform:none !important; }
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen .character-select-footer {
    position:static !important;grid-template-columns:minmax(0,1fr) auto !important;gap:8px !important;padding:5px 0 0 !important;flex:0 0 auto !important;
}
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen #character-selection-status { font-size:11px !important;text-align:left; }
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen .character-select-footer-buttons { width:auto;gap:8px; }
html.shocker-mobile-v252 #character-select-screen.v62-roster-screen :is(#character-back-home-btn,#confirm-character-btn) { min-height:44px !important;padding:8px 12px !important;font-size:12px !important; }
html.shocker-mobile-v252 #v142-prebattle-skin-dock { padding:4px 7px;gap:7px; }
html.shocker-mobile-v252 #v142-prebattle-skin-dock .v142-prebattle-label { min-width:95px; }
html.shocker-mobile-v252 #v142-prebattle-skin-dock .v142-prebattle-label strong { font-size:11px; }
html.shocker-mobile-v252 #v142-prebattle-skin-dock .v142-prebattle-label small { display:none; }
html.shocker-mobile-v252 #v142-prebattle-skin-dock .v142-prebattle-choice { min-width:135px;height:44px; }
html.shocker-mobile-v252 #v142-prebattle-skin-dock .v142-prebattle-choice strong { font-size:11px; }
html.shocker-mobile-v252 #v142-prebattle-skin-dock .v142-prebattle-choice small { font-size:10px; }

/* A large card beside independently scrollable ability text. */
html.shocker-mobile-v252 #character-detail-modal { box-sizing:border-box;height:var(--mobile-v252-height,100dvh) !important;max-height:var(--mobile-v252-height,100dvh) !important;min-height:0 !important;padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)) !important; }
html.shocker-mobile-v252 #character-detail-modal.v62-detail-modal .character-detail-panel,
html.shocker-mobile-v252 #character-detail-modal .character-detail-panel {
    box-sizing:border-box;width:100% !important;height:100% !important;max-height:100% !important;min-height:0 !important;
    grid-template-columns:minmax(165px,.76fr) minmax(0,1.3fr) !important;grid-template-rows:minmax(0,1fr) !important;
}
html.shocker-mobile-v252 #character-detail-modal .character-detail-portrait-wrap { min-width:0;min-height:0 !important;height:100% !important; }
html.shocker-mobile-v252 #character-detail-modal .character-detail-info { display:flex;flex-direction:column;min-height:0 !important;padding:10px 12px !important;overflow:hidden !important; }
html.shocker-mobile-v252 #character-detail-modal .character-detail-scroll { flex:1 1 auto;min-height:0 !important;overflow-y:auto !important;overscroll-behavior:contain;scrollbar-width:thin;padding-right:5px !important; }
html.shocker-mobile-v252 #character-detail-modal .character-detail-ability { padding:9px !important;margin-bottom:8px !important; }
html.shocker-mobile-v252 #character-detail-modal .character-detail-ability-title { font-size:13px !important; }
html.shocker-mobile-v252 #character-detail-modal .character-detail-ability-text { font-size:13px !important;line-height:1.7 !important; }
html.shocker-mobile-v252 #character-detail-modal .character-detail-actions { flex:0 0 auto;gap:8px;margin-top:7px !important; }
html.shocker-mobile-v252 #character-detail-modal .character-detail-actions button { min-height:44px !important;font-size:12px !important; }
html.shocker-mobile-v252 #v101-character-encyclopedia { height:var(--mobile-v252-height,100dvh);max-height:var(--mobile-v252-height,100dvh); }
html.shocker-mobile-v252 #v101-character-encyclopedia .v101-encyclopedia-shell { padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
html.shocker-mobile-v252 #v101-character-encyclopedia .v101-encyclopedia-header { position:sticky;top:0;z-index:4;align-items:center;margin-bottom:12px;padding:7px 0;background:#121011; }
html.shocker-mobile-v252 #v101-character-encyclopedia .v101-encyclopedia-title { font-size:26px; }
html.shocker-mobile-v252 #v101-character-encyclopedia .v101-encyclopedia-copy { font-size:11px; }
html.shocker-mobile-v252 #v101-character-encyclopedia .v101-suit-grid { grid-template-columns:repeat(4,minmax(0,1fr));gap:10px; }

/* Wardrobe and six-stamp catalogue: keep the character rail and scroll the art. */
html.shocker-mobile-v252 #v142-skin-vault .v142-vault-shell { height:100% !important;max-height:100% !important;min-height:0 !important;width:100% !important; }
html.shocker-mobile-v252 #v142-skin-vault .v142-vault-header { min-height:52px;padding:5px 12px;gap:8px; }
html.shocker-mobile-v252 #v142-skin-vault .v142-vault-title h2 { font-size:22px; }
html.shocker-mobile-v252 #v142-skin-vault .v142-vault-title small { font-size:10px; }
html.shocker-mobile-v252 #v142-skin-vault .v142-vault-dig { min-width:105px;font-size:10px; }
html.shocker-mobile-v252 #v142-skin-vault .v200-wardrobe-tabs { padding:4px 8px;gap:6px; }
html.shocker-mobile-v252 #v142-skin-vault .v200-wardrobe-tabs button { min-height:44px;flex:1 1 auto;font-size:12px; }
html.shocker-mobile-v252 #v142-skin-vault #v200-character-wardrobe-panel { grid-template-columns:minmax(150px,.3fr) minmax(0,1fr) !important;grid-template-rows:minmax(0,1fr) !important; }
html.shocker-mobile-v252 #v142-skin-vault .v142-rail-heading { padding:8px; }
html.shocker-mobile-v252 #v142-skin-vault .v142-rail-heading h3 { font-size:13px; }
html.shocker-mobile-v252 #v142-skin-vault #v142-character-list { padding:5px; }
html.shocker-mobile-v252 #v142-skin-vault .v142-character-button { min-height:54px;grid-template-columns:34px minmax(0,1fr) 7px;gap:6px;padding:5px; }
html.shocker-mobile-v252 #v142-skin-vault .v142-character-thumb { width:34px;height:40px; }
html.shocker-mobile-v252 #v142-skin-vault .v142-character-copy strong { font-size:11px; }
html.shocker-mobile-v252 #v142-skin-vault .v142-character-copy small { font-size:10px; }
html.shocker-mobile-v252 #v142-skin-vault .v142-detail-heading { padding:7px 10px; }
html.shocker-mobile-v252 #v142-skin-vault .v142-detail-heading h3 { font-size:20px; }
html.shocker-mobile-v252 #v142-skin-vault :is(.v142-detail-heading small,.v142-detail-status) { font-size:10px; }
html.shocker-mobile-v252 #v142-skin-vault #v142-skin-options { grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:9px; }
html.shocker-mobile-v252 #v142-skin-vault .v142-option-info { grid-template-columns:1fr;gap:6px;padding:9px; }
html.shocker-mobile-v252 #v142-skin-vault :is(.v142-option-info small,.v142-option-info p) { font-size:10px; }
html.shocker-mobile-v252 #v142-skin-vault .v142-option-info h4 { font-size:13px; }
html.shocker-mobile-v252 #v142-skin-vault .v142-option-action { min-height:44px;font-size:12px; }
html.shocker-mobile-v252 #v142-skin-vault .v142-vault-foot { font-size:10px; }
html.shocker-mobile-v252 #v142-skin-vault #v204-stamp-slots { gap:6px; }
html.shocker-mobile-v252 #v142-skin-vault :is(.v204-stamp-loadout,.v204-stamp-collection) { padding:12px; }
html.shocker-mobile-v252 #v142-skin-vault #v204-stamp-choices { grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px; }

/* Profiles stay editable at a readable size, including the lower account fields. */
html.shocker-mobile-v252 #v105-profile-editor .v105-profile-panel { width:100%;height:100% !important;min-height:0 !important;max-height:100% !important; }
html.shocker-mobile-v252 #v105-profile-editor .v105-profile-panel-header { min-height:55px !important;padding:8px 58px 8px 12px !important; }
html.shocker-mobile-v252 #v105-profile-editor .v105-profile-panel-title { font-size:23px !important; }
html.shocker-mobile-v252 #v105-profile-editor .v105-profile-panel-subtitle { display:none !important; }
html.shocker-mobile-v252 #v105-profile-editor #v105-profile-close { top:5px !important;right:6px !important; }
html.shocker-mobile-v252 #v105-profile-editor .v105-profile-panel-body { grid-template-columns:minmax(135px,.45fr) minmax(0,1fr) !important;gap:12px !important;padding:10px !important;overflow-y:auto !important;align-items:start; }
html.shocker-mobile-v252 #v105-profile-editor .v105-profile-large-preview { min-height:160px !important;padding:12px 8px !important; }
html.shocker-mobile-v252 #v105-profile-editor #v105-profile-preview[data-v197-mastery-frame] { min-height:160px !important; }
html.shocker-mobile-v252 #v105-profile-editor #v105-profile-preview > .v105-profile-emblem { width:90px !important;height:90px !important; }
html.shocker-mobile-v252 #v105-profile-editor :is(.v105-section-label,.v105-field > span,.v105-field-help,.v105-preview-note) { font-size:11px !important;line-height:1.6 !important; }
html.shocker-mobile-v252 #v105-profile-editor .v105-field input { min-height:44px !important;font-size:16px !important; }
html.shocker-mobile-v252 #v105-profile-editor :is(.v105-frame-choice,.v197-reward-clear) { min-height:44px !important;padding:8px !important;font-size:12px !important; }
html.shocker-mobile-v252 #v105-profile-editor .v105-character-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
html.shocker-mobile-v252 #v105-profile-editor .v105-character-choice { min-height:75px !important; }
html.shocker-mobile-v252 #v105-profile-editor .v105-character-choice-name { font-size:11px !important; }
html.shocker-mobile-v252 #v105-profile-editor .v105-profile-panel-actions { min-height:54px !important;padding:5px 10px !important; }
html.shocker-mobile-v252 #v105-profile-editor .v105-profile-action { min-height:44px !important;font-size:12px !important; }

/* Missions, gifts, notices and help keep their close buttons outside the scroller. */
html.shocker-mobile-v252 #v226-player-hub .v226-hub-sheet,
html.shocker-mobile-v252 #v246-beta-missions .v246-missions-sheet { box-sizing:border-box;width:100%;height:100%;max-height:100%;min-height:0;padding:12px;overflow:hidden; }
html.shocker-mobile-v252 #v226-player-hub h2,
html.shocker-mobile-v252 #v246-beta-missions h2 { font-size:22px; }
html.shocker-mobile-v252 #v226-player-hub #v226-hub-description,
html.shocker-mobile-v252 #v246-beta-missions #v246-beta-missions-description { margin:5px 0;font-size:12px; }
html.shocker-mobile-v252 #v226-player-hub .v226-hub-toolbar,
html.shocker-mobile-v252 #v246-beta-missions .v246-missions-toolbar { margin:0 0 7px;padding:4px 0;gap:8px;flex-wrap:nowrap; }
html.shocker-mobile-v252 #v226-player-hub #v226-hub-status { flex-basis:auto; }
html.shocker-mobile-v252 #v226-player-hub #v226-hub-items { min-height:0;flex:1 1 auto; }
html.shocker-mobile-v252 #v246-beta-missions .v246-missions-scroll { flex:1 1 auto;min-height:0;grid-template-columns:minmax(0,1.3fr) minmax(210px,.8fr);gap:12px; }
html.shocker-mobile-v252 #v246-beta-missions .v246-missions-reward { padding:12px 9px; }
html.shocker-mobile-v252 #v228-login-event .v228-login-event-panel { width:100%;max-height:100%; }
html.shocker-mobile-v252 #v228-login-event .v228-login-event-scroll { max-height:calc(var(--mobile-v252-height,100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 14px); }
html.shocker-mobile-v252 #v228-login-event .v228-login-event-content { width:68%;min-height:0;padding:24px 18px 18px; }
html.shocker-mobile-v252 #v228-login-event h2 { font-size:27px; }
html.shocker-mobile-v252 #v228-login-event .v228-login-event-art { width:43%;opacity:.8; }
html.shocker-mobile-v252 #v228-login-event .v228-login-event-seal { display:none; }
html.shocker-mobile-v252 #v228-login-event .v228-login-event-actions { margin-top:12px; }
html.shocker-mobile-v252 #v228-login-event .v228-login-event-actions button { min-height:44px; }
html.shocker-mobile-v252 #v159-chain-guide .v159-guide-dialog,
html.shocker-mobile-v252 #v103-rulebook .v103-rulebook-shell { height:100%;max-height:100%;min-height:0; }
html.shocker-mobile-v252 #v159-chain-guide .v159-guide-head,
html.shocker-mobile-v252 #v103-rulebook .v103-rulebook-header { min-height:58px;padding:7px 12px;gap:8px; }
html.shocker-mobile-v252 #v159-chain-guide .v159-guide-body { padding:12px; }
html.shocker-mobile-v252 #v103-rulebook .v103-rulebook-body { min-height:0;overflow:auto;overscroll-behavior:contain; }

/* Login, registration and loading support visual viewport changes / keyboards. */
html.shocker-mobile-v252 #v172-account-root { height:var(--mobile-v252-height,100dvh);min-height:0;padding:8px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));place-items:start center;scroll-padding-block:16px; }
html.shocker-mobile-v252 #v172-account-root .account-card { width:min(640px,100%);padding:18px 22px;margin:0 auto; }
html.shocker-mobile-v252 #v172-account-root h1 { font-size:26px; }
html.shocker-mobile-v252 #v172-account-root h2 { font-size:20px;margin:10px 0; }
html.shocker-mobile-v252 #v172-account-root label { margin:10px 0; }
html.shocker-mobile-v252 #v172-account-root input:not([type="checkbox"]) { font-size:16px;min-height:44px; }
html.shocker-mobile-v252 #v172-account-root .account-tabs { margin:10px 0; }
html.shocker-mobile-v252 #v122-onboarding { height:var(--mobile-v252-height,100dvh) !important;min-height:0 !important;max-height:var(--mobile-v252-height,100dvh) !important; }
html.shocker-mobile-v252 #v122-onboarding .v122-topbar { flex:0 0 auto;min-height:52px;padding:6px max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left)); }
html.shocker-mobile-v252 #v122-onboarding .v122-stage { min-height:0 !important;overflow:auto !important;padding:10px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left)) !important; }
html.shocker-mobile-v252 #v122-onboarding #v122-registration { min-height:0;grid-template-columns:1fr; }
html.shocker-mobile-v252 #v122-onboarding .v122-registration-art { display:none; }
html.shocker-mobile-v252 #v122-onboarding .v122-registration-form-wrap { padding:16px 20px; }
html.shocker-mobile-v252 #v122-onboarding .v122-registration-form-wrap h1 { font-size:27px; }
html.shocker-mobile-v252 #v122-onboarding .v122-instruction p { font-size:13px;line-height:1.7; }
html.shocker-mobile-v252 #v122-onboarding .v122-instruction-actions button { min-height:44px; }
html.shocker-mobile-v252 #v112-login-loading { height:var(--mobile-v252-height,100dvh) !important;max-height:var(--mobile-v252-height,100dvh) !important; }
html.shocker-mobile-v252 #v112-login-loading .v112-load-shell { box-sizing:border-box;width:calc(100% - 20px) !important;height:calc(var(--mobile-v252-height,100dvh) - 18px) !important;min-height:0 !important;grid-template-columns:minmax(160px,.65fr) minmax(0,1.35fr) !important;overflow:hidden; }
html.shocker-mobile-v252 #v112-login-loading .v112-load-portrait { min-height:0 !important;height:100%; }
html.shocker-mobile-v252 #v112-login-loading .v112-load-copy { min-height:0;padding:12px 16px;overflow:auto; }
html.shocker-mobile-v252 #v112-login-loading #v112-load-name { font-size:28px;margin:7px 0 4px; }
html.shocker-mobile-v252 #v112-login-loading .v112-load-rule { margin:8px 0 12px; }
html.shocker-mobile-v252 #v112-login-loading #v112-load-copytext { font-size:12px;min-height:0;margin:12px 0; }
html.shocker-mobile-v252 #v112-login-loading .v112-load-bottom { padding-top:14px; }
html.shocker-mobile-v252 #v112-login-loading .v112-load-status { font-size:11px; }
html.shocker-mobile-v252 #title-screen.v153-grand-assembly { height:var(--mobile-v252-height,100dvh) !important;min-height:0 !important; }
html.shocker-mobile-v252 #title-screen .v153-command { bottom:max(25px,env(safe-area-inset-bottom)); }
html.shocker-mobile-v252 #title-screen .v153-logo { font-size:clamp(44px,9vw,70px); }
html.shocker-mobile-v252 #title-screen .v153-logo-jp { margin-top:13px;font-size:12px; }
html.shocker-mobile-v252 #title-screen .start-movie-btn { min-height:48px !important;margin-top:12px !important; }

/* Friend-room lobby content scrolls; no selectors address its battlefield. */
html.shocker-mobile-v252 #v186-online-root { box-sizing:border-box;height:var(--mobile-v252-height,100dvh);max-height:var(--mobile-v252-height,100dvh);padding:max(4px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left)); }
html.shocker-mobile-v252 #v186-online-root .v186-header { padding:5px 12px;min-height:54px; }
html.shocker-mobile-v252 #v186-online-root h1 { font-size:20px;margin:3px 0 0; }
html.shocker-mobile-v252 #v186-online-root .v186-header-tools { gap:8px; }
html.shocker-mobile-v252 #v186-online-root .v186-content { min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px; }
html.shocker-mobile-v252 #v186-online-root .v186-confirm > section { max-height:calc(var(--mobile-v252-height,100dvh) - 22px);overflow:auto; }

html.shocker-mobile-v252 #matching-screen { box-sizing:border-box;height:var(--mobile-v252-height,100dvh) !important;max-height:var(--mobile-v252-height,100dvh) !important;padding:8px max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left)) !important; }
html.shocker-mobile-v252 #matching-screen .v118-matching-shell,
html.shocker-mobile-v252 #matching-screen[data-v167-profiles="true"] .v118-matching-shell { box-sizing:border-box;width:100% !important;height:auto !important;min-height:0 !important;max-height:calc(var(--mobile-v252-height,100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px) !important;padding:8px 12px !important;overflow-y:auto !important;overscroll-behavior:contain; }
html.shocker-mobile-v252 #matching-screen h1 { font-size:24px !important;margin:5px 0 !important; }
html.shocker-mobile-v252 #matching-screen .matching-kicker { margin:4px 0 !important;font-size:10px !important;letter-spacing:.04em !important; }
html.shocker-mobile-v252 #matching-screen .v118-matching-header { font-size:10px !important; }
html.shocker-mobile-v252 #matching-screen .v216-matching-controls { margin:5px 0;padding:4px 8px;font-size:12px; }
html.shocker-mobile-v252 #matching-screen .v216-matching-cancel { min-height:44px;font-size:13px; }
html.shocker-mobile-v252 #matching-screen .v167-match-kicker { font-size:10px; }
html.shocker-mobile-v252 #matching-screen .v167-match-name { font-size:17px; }
html.shocker-mobile-v252 #matching-screen :is(.v167-match-title,.v167-match-frame-name) { font-size:11px;line-height:1.4; }
html.shocker-mobile-v252 #matching-screen #matching-message { font-size:12px !important; }

/* Only editable overlays follow the exposed area above an on-screen keyboard.
   --mobile-v252-height remains stable for the underlying game and its cards. */
html.shocker-mobile-v252.shocker-mobile-keyboard-v252 :is(#v172-account-root,#v250-credits-support,#v105-profile-editor,#v122-onboarding,#v186-online-root,#v177-imperial-dialog) {
    height:var(--mobile-v252-visual-height,var(--mobile-v252-height,100dvh)) !important;
    max-height:var(--mobile-v252-visual-height,var(--mobile-v252-height,100dvh)) !important;
    min-height:0 !important;
}
html.shocker-mobile-v252.shocker-mobile-keyboard-v252 #v172-account-root { overflow-y:auto !important;align-items:start;scroll-padding-block:12px; }
html.shocker-mobile-v252.shocker-mobile-keyboard-v252 #v172-account-root .account-card { min-height:0;margin:0 auto; }
html.shocker-mobile-v252.shocker-mobile-keyboard-v252 :is(#v250-credits-support,#v177-imperial-dialog) :is(#v250-support-panel,.v177-dialog-panel) {
    max-height:calc(var(--mobile-v252-visual-height,var(--mobile-v252-height,100dvh)) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px) !important;
    min-height:0 !important;
    overflow-y:auto !important;
    scroll-padding-block:12px;
}
html.shocker-mobile-v252.shocker-mobile-keyboard-v252 #v105-profile-editor .v105-profile-panel { height:100% !important;max-height:100% !important;min-height:0 !important; }
html.shocker-mobile-v252.shocker-mobile-keyboard-v252 #v105-profile-editor .v105-profile-panel-body { min-height:0 !important;overflow-y:auto !important; }

@media (max-height:360px) {
    html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-shell { grid-template-rows:46px 56px minmax(0,1fr) 40px !important;gap:3px !important; }
    html.shocker-mobile-v252 #home-screen #v127-home-bulletin { height:56px !important; }
    html.shocker-mobile-v252 #home-screen .v127-bulletin-stage { height:54px !important; }
    html.shocker-mobile-v252 #home-screen .v127-bulletin-title { font-size:16px !important; }
    html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-hero-copy { bottom:7px !important; }
    html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-season { display:none !important; }
    html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-hero-title { font-size:24px !important; }
    html.shocker-mobile-v252 #home-screen.v62-shocker-home .home-hero-title { margin-block:4px !important; }
    html.shocker-mobile-v252 #home-screen.v62-shocker-home .v159-guide-trigger.v62-mechanic { min-height:32px;padding-block:3px !important; }
}

/* v253: portrait phones use the same imperial artwork and native actions in a
   vertical layout. The extra orientation class keeps desktop/landscape intact. */
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-shell {
    grid-template-rows:96px 64px minmax(0,1fr) 46px !important;
    gap:6px !important;
    padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)) !important;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-topbar {
    display:grid !important;grid-template-columns:minmax(0,1fr) minmax(98px,auto) !important;
    grid-template-rows:44px 44px !important;gap:6px 8px !important;height:94px !important;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen .v105-home-identity-zone { grid-area:1/1;min-width:0 !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen #v105-home-profile-button {
    width:100% !important;min-width:0 !important;max-width:none !important;
    grid-template-columns:36px minmax(0,1fr) 10px !important;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen #v217-home-wallet { grid-area:1/2;width:110px;min-width:98px;max-width:110px;justify-self:end; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen #v226-player-hub-controls { grid-area:2/1/3/3;width:100%;margin:0;gap:8px;justify-content:space-between; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen #v226-player-hub-controls > button { flex:1 1 0;max-width:76px;min-width:44px;width:auto; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen #v127-home-bulletin { height:64px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen .v127-bulletin-stage { height:62px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen .v127-bulletin-title { font-size:16px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen .v127-bulletin-copy { width:88%;padding:5px 36px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-main,
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home #v127-home-bulletin + .home-main {
    display:flex !important;flex-direction:column;gap:8px !important;overflow-x:hidden !important;overflow-y:auto !important;
    overscroll-behavior:contain;scrollbar-width:thin;scroll-padding-block:8px;min-width:0 !important;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-hero {
    flex:0 0 clamp(170px,25dvh,210px);height:clamp(170px,25dvh,210px) !important;
    min-height:170px !important;min-width:0;clip-path:none !important;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-hero-copy { width:46% !important;left:10px !important;bottom:8px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-season { font-size:11px !important;padding:4px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-hero-title { font-size:28px !important;margin:5px 0 !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .v62-mechanics { gap:3px !important;margin-top:3px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .v159-guide-trigger.v62-mechanic { min-height:44px !important;padding:4px 5px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .v159-guide-trigger-copy strong { font-size:11px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen .v158-home-court { inset:0 -7% 0 43% !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen .v190-court-hint { font-size:10px;max-width:100%;white-space:normal;text-align:center; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-side,
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-side.v186-friend-entry-ready { flex:0 0 auto;display:block !important;height:auto !important;min-width:0;overflow:visible !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-menu-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;grid-template-rows:none !important;grid-auto-rows:minmax(58px,auto);min-height:0 !important;
    height:auto !important;gap:7px !important;padding-bottom:5px;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-menu-btn,
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-menu-btn.primary { min-height:58px !important;padding:8px 6px 8px 37px !important;min-width:0; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-menu-btn.primary { grid-column:1/-1 !important;min-height:68px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-menu-name { font-size:13px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-menu-btn.primary .home-menu-name { font-size:20px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #home-screen.v62-shocker-home .home-bottom { height:46px !important;min-height:46px !important;padding:0 !important;font-size:9px !important;align-items:flex-end; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v172-account-button[data-v237-home-entry="true"] { max-width:calc(100vw - 20px);min-height:44px;padding:9px 11px;bottom:max(16px,env(safe-area-inset-bottom));font-size:11px; }

/* A two-column roster gives an overview; card detail remains one tap away. */
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-select-screen.v62-roster-screen .character-select-shell { display:flex !important;flex-direction:column;overflow:hidden; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-select-screen.v62-roster-screen .character-select-kicker { font-size:9px !important;letter-spacing:.12em !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-select-screen.v62-roster-screen .character-select-title { font-size:23px !important;margin:5px 0 !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-select-screen.v62-roster-screen .character-select-sub { font-size:12px !important;line-height:1.55; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-select-screen.v62-roster-screen .v62-archetype-bar { flex:0 0 auto;justify-content:flex-start !important;min-height:50px;max-width:100%;overflow-x:auto; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-select-screen.v62-roster-screen .v62-filter-button { min-height:44px;font-size:12px;flex:0 0 auto; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-select-screen.v62-roster-screen #character-grid {
    display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;grid-auto-rows:max-content;
    align-content:start;align-items:start !important;gap:12px !important;padding:8px 6px 14px !important;
    width:100% !important;min-height:0 !important;min-width:0 !important;overflow-x:hidden !important;overflow-y:auto !important;
    scroll-snap-type:none;overscroll-behavior:contain;box-sizing:border-box;
}
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-select-screen.v62-roster-screen .character-card { width:100% !important;min-width:0 !important;max-width:100% !important;height:auto !important;min-height:0 !important;max-height:none !important;aspect-ratio:925/1281 !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-select-screen.v62-roster-screen .character-select-footer { grid-template-columns:1fr !important;gap:5px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-select-screen.v62-roster-screen .character-select-footer-buttons { width:100%; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-select-screen.v62-roster-screen #character-selection-status { font-size:12px !important;min-height:19px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-select-screen.v62-roster-screen :is(#character-back-home-btn,#confirm-character-btn) { font-size:13px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-prebattle-skin-dock { min-width:0;max-width:100%;overflow:hidden; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-prebattle-skin-dock .v142-prebattle-label { min-width:0; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-prebattle-skin-dock .v142-prebattle-choices { min-width:0;max-width:100%;overflow-x:auto; }

html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-detail-modal .character-detail-panel,
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-detail-modal.v62-detail-modal .character-detail-panel { grid-template-columns:minmax(0,1fr) !important;grid-template-rows:minmax(150px,.85fr) minmax(0,1fr) !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-detail-modal .character-detail-portrait-wrap { width:100% !important;max-height:100%; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-detail-modal .character-detail-portrait { object-fit:contain !important;max-width:100%; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-detail-modal .character-detail-info { padding:9px 12px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-detail-modal .character-detail-ability-text { font-size:14px !important;line-height:1.75 !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #character-detail-modal .character-detail-actions button { font-size:13px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v101-character-encyclopedia .v101-encyclopedia-header { grid-template-columns:minmax(0,1fr) auto;gap:8px;padding-bottom:9px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v101-character-encyclopedia .v101-encyclopedia-title { font-size:25px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v101-character-encyclopedia .v101-encyclopedia-kicker { font-size:9px;letter-spacing:.08em; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v101-character-encyclopedia .v101-encyclopedia-copy { font-size:11px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v101-character-encyclopedia #v101-encyclopedia-close { min-width:72px;width:auto;min-height:44px;padding:8px;font-size:12px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v101-character-encyclopedia .v101-suit-grid { grid-template-columns:repeat(4,minmax(0,1fr));gap:7px; }

/* Vertical wardrobe: swipe the character rail, scroll the selected collection. */
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault .v142-vault-header { padding:6px 8px;gap:6px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault .v142-vault-title { min-width:0; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault .v142-vault-title h2 { font-size:20px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault .v142-vault-title small { font-size:9px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault .v142-vault-dig { min-width:85px;font-size:10px;padding:5px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault .v200-wardrobe-tabs { gap:4px;padding:5px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault .v200-wardrobe-tabs button { min-width:0;font-size:11px;padding:5px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault #v200-character-wardrobe-panel { grid-template-columns:minmax(0,1fr) !important;grid-template-rows:70px minmax(0,1fr) !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault .v142-character-rail { grid-template-rows:minmax(0,1fr); }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault #v142-character-list { display:flex;overflow-x:auto;overflow-y:hidden;gap:6px;padding:5px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault .v142-character-button { flex:0 0 135px;min-height:58px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault #v142-skin-options { grid-template-columns:minmax(0,1fr); }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault .v142-skin-option { grid-template-rows:minmax(180px,33dvh) auto; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault #v204-stamp-choices { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault #v204-stamp-slots { grid-template-columns:repeat(3,minmax(0,1fr)); }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault :is(#v241-stamp-character,button) { min-height:44px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v142-skin-vault #v241-stamp-character { max-width:100%;font-size:16px; }

html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v105-profile-editor .v105-profile-panel-body { grid-template-columns:minmax(0,1fr) !important;gap:10px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v105-profile-editor .v105-profile-large-preview { min-height:130px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v105-profile-editor #v105-profile-preview[data-v197-mastery-frame] { min-height:130px !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v246-beta-missions .v246-missions-scroll { grid-template-columns:minmax(0,1fr);gap:14px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v246-beta-missions .v246-missions-toolbar,
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v226-player-hub .v226-hub-toolbar { flex-wrap:wrap; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v228-login-event .v228-login-event-content { width:100%;padding:30px 16px 18px;background:linear-gradient(90deg,#141016e8,#141016af); }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v228-login-event .v228-login-event-art { width:75%;opacity:.28; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v228-login-event h2 { font-size:26px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 :is(.v122-settings-panel,.v218-preferences-panel,.v177-dialog-panel,#v250-support-panel) { width:100% !important;min-width:0 !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v250-credits-support .v250-support-tabs { flex-wrap:wrap; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v250-credits-support .v250-credit-section dl > div { display:block;overflow-wrap:anywhere;font-size:13px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v250-contact-form :is(input,textarea,select) { box-sizing:border-box;min-width:0;max-width:100%;font-size:16px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v159-chain-guide .v159-guide-tabs { overflow-x:auto;flex-wrap:nowrap; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v159-chain-guide .v159-guide-tabs button { flex:0 0 auto; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v159-chain-guide .v159-guide-body { padding:12px;overflow-wrap:anywhere; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v172-account-root .account-card { padding:18px 14px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v172-account-root :is(button,.account-tab) { min-height:44px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v112-login-loading .v112-load-shell { grid-template-columns:minmax(0,1fr) !important;grid-template-rows:minmax(130px,.8fr) minmax(0,1fr) !important; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v112-login-loading .v112-load-portrait { width:100%;height:100%; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v112-login-loading .v112-load-copy { padding:14px 16px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v186-online-root .v186-header { flex-wrap:wrap;gap:6px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v186-online-root .v186-header-tools { min-width:0;flex-wrap:wrap; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #v186-online-root :is(input,select,textarea) { min-width:0;max-width:100%;font-size:16px; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #matching-screen .v167-matching-profiles { grid-template-columns:1fr; }
html.shocker-mobile-v252.shocker-mobile-portrait-v252 #matching-screen .v216-matching-controls { flex-wrap:wrap;gap:6px; }

/* v256: fit every native battle card inside the phone's usable chooser area.
   The room card's ID rules otherwise win over the generic phone dimensions;
   on short landscape screens they leave the card ends outside the touch area. */
html.shocker-mobile-v252 #v106-match-mode-modal .v106-mode-panel {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
}
html.shocker-mobile-v252 #v106-match-mode-modal .v106-mode-body {
    min-width:0 !important;
    padding:8px 0 !important;
    overflow:visible !important;
}
html.shocker-mobile-v252 #v106-match-mode-modal .v106-mode-choice-grid {
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    flex:1 1 0 !important;
    gap:8px !important;
    padding:0 !important;
    overflow:visible !important;
}
html.shocker-mobile-v252 #v106-match-mode-modal.v187-has-room .v106-mode-choice {
    width:min(calc((100% - 16px) / 3),calc((var(--mobile-v252-height,100dvh) - 192px) * .68)) !important;
    height:auto !important;
    max-height:100% !important;
    aspect-ratio:2.5/3.5 !important;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
}
/* Card artwork and both 3-D faces are decorative children of one button.
   Route every touch through that native button, including its corner labels. */
html.shocker-mobile-v252 #v106-match-mode-modal .v106-mode-choice .v120-card-inner,
html.shocker-mobile-v252 #v106-match-mode-modal .v106-mode-choice .v120-card-inner * {
    pointer-events:none !important;
}
html.shocker-mobile-v252 #v106-match-mode-modal .v106-mode-choice:hover:not(:disabled) .v120-card-inner {
    transform:none;
    filter:none;
}
html.shocker-mobile-v252 #v106-match-mode-modal .v106-mode-choice .v106-mode-choice-title {
    font-size:clamp(11px,3.05vw,14px) !important;
    line-height:1.35 !important;
    white-space:nowrap;
}
html.shocker-mobile-v252 #v106-match-mode-modal .v106-mode-choice .v106-mode-choice-meta {
    max-width:100%;
    font-size:clamp(7px,1.9vw,10px) !important;
    line-height:1.4 !important;
    letter-spacing:0 !important;
    overflow-wrap:anywhere;
}
html.shocker-mobile-v252 #v106-match-mode-modal .v106-mode-footer {
    min-width:0;
    padding:4px 0 0 !important;
}
html.shocker-mobile-v252 #v106-match-mode-modal :is(#v217-ranking-open,#v210-select-cpu-match,#v106-match-mode-cancel) {
    min-height:44px !important;
    touch-action:manipulation;
}
/* Keep the illustration row visible when the chooser is short and wide. */
html.shocker-mobile-v252.shocker-mobile-landscape-v252 #v106-match-mode-modal .v120-card-front {
    display:grid !important;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:minmax(0,1fr) auto auto !important;
    padding:12px 8px !important;
}
html.shocker-mobile-v252.shocker-mobile-landscape-v252 #v106-match-mode-modal .v106-mode-choice-kicker {
    display:none !important;
}
html.shocker-mobile-v252.shocker-mobile-landscape-v252 #v106-match-mode-modal .v106-mode-choice-title {
    margin:3px 0 !important;
    font-size:clamp(11px,3.4dvh,14px) !important;
}
html.shocker-mobile-v252.shocker-mobile-landscape-v252 #v106-match-mode-modal .v106-mode-choice-meta {
    display:block !important;
    margin:0 !important;
    padding:2px 0 !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
html.shocker-mobile-v252.shocker-mobile-landscape-v252 #v106-match-mode-modal .v187-room-pips {
    min-height:0;
    margin:0 !important;
    font-size:18px;
}


/* SOURCE styles/mobile-battle-v252.css */
/* Smartphone-only native battlefield. No selector below applies to desktop.
   The original opposing field above the player's field and hand is retained. */
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle {
  --mb-v252-card-h: clamp(52px, calc((var(--mobile-v252-height, 100dvh) - 178px) / 3), 86px);
  --mb-v252-card-w: max(44px, calc(var(--mb-v252-card-h) * .715));
  --mb-v252-label-h: clamp(8px, calc((var(--mobile-v252-height, 100dvh) - 300px) / 20 + 8px), 11px);
  --mb-v252-pile-h: clamp(20px, calc((var(--mobile-v252-height, 100dvh) - 300px) * .08 + 20px), 26px);
  --mb-v252-phase-h: clamp(20px, calc(var(--mobile-v252-height, 100dvh) * .08 - 5px), 26px);
  box-sizing: border-box !important;
  width: 100% !important; max-width: 100% !important;
  height: var(--mobile-v252-height, 100dvh) !important;
  min-height: 0 !important;
  max-height: var(--mobile-v252-height, 100dvh) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 44px var(--mb-v252-phase-h) minmax(0, 1fr) minmax(0, 1.75fr) !important;
  gap: 2px !important;
  padding: max(2px, var(--mobile-v252-safe-top, env(safe-area-inset-top))) max(5px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) max(2px, var(--mobile-v252-safe-bottom, env(safe-area-inset-bottom))) max(5px, var(--mobile-v252-safe-left, env(safe-area-inset-left))) !important;
  overflow: hidden !important;
}
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle > h2 {
  grid-column: 1 !important; grid-row: 1 !important;
  min-height: 44px !important; height: 44px !important; padding: 0 !important;
  font-size: 0 !important; color: transparent !important;
}
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle > h2::before,
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle > h2::after { content: none !important; }
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle #turn-info.v65-clock-mounted {
  position: fixed !important; top: max(4px, var(--mobile-v252-safe-top, env(safe-area-inset-top))) !important;
  left: calc(max(5px, var(--mobile-v252-safe-left, env(safe-area-inset-left))) + 136px) !important;
  right: calc(max(5px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) + 112px) !important;
  width: auto !important; height: 38px !important; min-height: 38px !important;
  transform: none !important; justify-self: auto !important;
  grid-template-columns: minmax(64px,1fr) minmax(68px,1fr) minmax(64px,1fr) !important;
  padding: 2px !important; margin: 0 !important;
}
html.shocker-mobile-v252 body.v45-battle-active .v65-clock-panel { padding: 2px 5px !important; gap: 4px !important; }
html.shocker-mobile-v252 body.v45-battle-active .v65-clock-time { font-size: 17px !important; }
html.shocker-mobile-v252 body.v45-battle-active .v65-clock-label { font-size: 8px !important; letter-spacing: 0 !important; }
html.shocker-mobile-v252 body.v45-battle-active #v65-clock-state { font-size: 9px !important; letter-spacing: 0 !important; }
html.shocker-mobile-v252 body.v45-battle-active #phase-bar {
  grid-column: 1 !important; grid-row: 2 !important;
  min-height: var(--mb-v252-phase-h) !important; max-height: var(--mb-v252-phase-h) !important; height: var(--mb-v252-phase-h) !important;
  padding: 2px 8px !important; font-size: 11px !important; line-height: 16px !important;
  clip-path: none !important; overflow-x: auto !important; white-space: nowrap !important;
}
html.shocker-mobile-v252 body.v45-battle-active #phase-bar::before { content: none !important; }
html.shocker-mobile-v252 body.v45-battle-active #revolution-status {
  top: auto !important; bottom: max(3px, var(--mobile-v252-safe-bottom, env(safe-area-inset-bottom))) !important;
  left: auto !important; right: max(6px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) !important;
  width: auto !important; max-width: 43% !important; font-size: 9px !important;
  height: 20px !important; min-height: 20px !important; padding: 2px 5px !important;
}
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle .field-area {
  width: 100% !important; height: 100% !important; min-height: 0 !important;
  grid-column: 1 !important; padding: 0 3px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  overflow: hidden !important;
}
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle .opponent-area {
  grid-row: 3 !important; grid-template-rows: var(--mb-v252-label-h) minmax(0, 1fr) var(--mb-v252-pile-h) !important;
}
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle .player-area {
  grid-row: 4 !important; grid-template-rows: var(--mb-v252-label-h) minmax(0, 1fr) var(--mb-v252-label-h) minmax(0, 1fr) var(--mb-v252-pile-h) !important;
}
html.shocker-mobile-v252 body.v45-battle-active .field-area > h3 {
  grid-row: 1 !important; min-height: 0 !important; height: var(--mb-v252-label-h) !important;
  margin: 0 auto !important; padding: 0 5px !important; font-size: 9px !important;
  line-height: var(--mb-v252-label-h) !important; letter-spacing: .03em !important;
}
html.shocker-mobile-v252 body.v45-battle-active .player-area > h3:nth-of-type(2) { grid-row: 3 !important; }
html.shocker-mobile-v252 body.v45-battle-active :is(#opponent-field,#player-field) {
  grid-row: 2 !important; width: 100% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  min-height: 0 !important; height: 100% !important;
  padding: clamp(0px, calc((var(--mobile-v252-height, 100dvh) - 320px) * .06), 4px) 130px !important; gap: 8px !important;
  transform: none !important; overflow: visible !important;
}
html.shocker-mobile-v252 body.v45-battle-active #hand-row {
  grid-row: 4 !important; display: block !important; min-height: 0 !important; height: 100% !important;
}
html.shocker-mobile-v252 body.v45-battle-active #hand-row #hand-zone.card-zone {
  min-height: 0 !important; height: 100% !important;
  display: flex !important; justify-content: center !important; align-items: center !important;
  padding: clamp(0px, calc((var(--mobile-v252-height, 100dvh) - 320px) * .06), 4px) 116px !important; gap: 8px !important; transform: none !important;
}
html.shocker-mobile-v252 body.v45-battle-active :is(#opponent-field,#player-field,#hand-zone) > .card {
  box-sizing: border-box !important;
  flex: 0 0 var(--mb-v252-card-w) !important;
  width: var(--mb-v252-card-w) !important; min-width: var(--mb-v252-card-w) !important;
  rotate: none !important; translate: none !important; scale: none !important;
  height: var(--mb-v252-card-h) !important; min-height: var(--mb-v252-card-h) !important;
  max-height: var(--mb-v252-card-h) !important;
  margin: 0 !important; padding: 3px !important; font-size: 17px !important;
  touch-action: manipulation !important; -webkit-tap-highlight-color: #f4ca6255;
}
html.shocker-mobile-v252 body.v45-battle-active #hand-zone > .card { transform: none !important; }
html.shocker-mobile-v252 body.v45-battle-active #hand-zone > .card.selected-card { transform: translateY(-5px) !important; }
html.shocker-mobile-v252 body.v45-battle-active #v95-character-hand-underlay { display: none !important; }
html.shocker-mobile-v252 body.v45-battle-active .disposal-container {
  grid-row: 3 !important; min-height: 0 !important; height: var(--mb-v252-pile-h) !important;
  margin: 0 !important; display: flex !important; gap: 4px !important;
}
html.shocker-mobile-v252 body.v45-battle-active .player-area > .disposal-container { grid-row: 5 !important; }
html.shocker-mobile-v252 body.v45-battle-active .disposal-box {
  display: flex !important; align-items: center !important; gap: 4px !important;
  height: var(--mb-v252-pile-h) !important; min-height: 0 !important; padding: 1px 4px !important;
}
html.shocker-mobile-v252 body.v45-battle-active .disposal-title {
  flex: 0 0 auto !important; min-width: 76px !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important;
  font-size: 9px !important; line-height: 13px !important; letter-spacing: 0 !important;
}
html.shocker-mobile-v252 body.v45-battle-active :is(.graveyard-zone,.slash-zone) {
  min-height: 22px !important; max-height: 22px !important; height: 22px !important;
  display: flex !important; align-items: center !important; padding: 0 !important;
  overflow-x: auto !important; overflow-y: hidden !important; touch-action: pan-x !important;
}
html.shocker-mobile-v252 body.v45-battle-active .number-stack { height: 21px !important; min-height: 21px !important; }
html.shocker-mobile-v252 body.v45-battle-active .stacked-zone-card { height: 17px !important; min-height: 17px !important; }
html.shocker-mobile-v252 body.v45-battle-active .stacked-zone-number { font-size: 10px !important; line-height: 14px !important; }
html.shocker-mobile-v252 body.v45-battle-active .deck-container {
  position: absolute !important; width: 42px !important; height: 58px !important;
  top: 22px !important; left: 88px !important; right: auto !important;
  transform: none !important; z-index: 65 !important;
}
html.shocker-mobile-v252 body.v45-battle-active .player-area > .deck-container { left: 70px !important; top: 28px !important; }
html.shocker-mobile-v252 body.v45-battle-active .deck-label { font-size: 9px !important; line-height: var(--mb-v252-label-h) !important; }
html.shocker-mobile-v252 body.v45-battle-active .deck-pile,
html.shocker-mobile-v252 body.v45-battle-active .deck-bottom-card {
  width: 36px !important; min-width: 36px !important; height: 48px !important;
  min-height: 48px !important; font-size: 14px !important; border-radius: 4px !important;
}
html.shocker-mobile-v252 body.v45-battle-active .deck-bottom-card { left: 5px !important; top: 13px !important; }
html.shocker-mobile-v252 body.v45-battle-active .opponent-hand-display {
  position: absolute !important; top: 15px !important; left: 3px !important; right: auto !important;
  width: 80px !important; min-width: 0 !important; height: 70px !important;
  max-height: 70px !important; padding: 3px !important; overflow: hidden !important;
}
html.shocker-mobile-v252 body.v45-battle-active .opponent-hand-label { font-size: 9px !important; }
html.shocker-mobile-v252 body.v45-battle-active .opponent-hand-cards { height: 43px !important; transform: scale(.75); transform-origin: left top; }
html.shocker-mobile-v252 body.v45-battle-active :is(.opponent-chain-log-title,.opponent-chain-log) { display: none !important; }
html.shocker-mobile-v252 body.v45-battle-active :is(#player-battle-character,#opponent-battle-character).has-large-battle-art {
  position: absolute !important; width: 49px !important; height: 68px !important;
  min-width: 49px !important; min-height: 68px !important; max-height: none !important;
  top: 17px !important; bottom: auto !important; transform: none !important;
  opacity: 1 !important; pointer-events: auto !important; z-index: 75 !important;
  border-radius: 4px !important; background-position: center !important;
  background-size: cover !important; touch-action: manipulation !important;
}
html.shocker-mobile-v252 body.v45-battle-active #player-battle-character.has-large-battle-art { left: 9px !important; right: auto !important; }
html.shocker-mobile-v252 body.v45-battle-active #opponent-battle-character.has-large-battle-art { right: 9px !important; left: auto !important; }
html.shocker-mobile-v252 body.v45-battle-active :is(.v64-duelist-plate,#selected-character-badge) { display: none !important; }
html.shocker-mobile-v252 body.v45-battle-active #v38-hand-action-controls,
html.shocker-mobile-v252 body.v45-battle-active #v42-field-card-side-actions {
  position: absolute !important; left: auto !important; right: 4px !important;
  top: 15px !important; bottom: auto !important; width: 104px !important;
  padding: 3px !important; gap: 4px !important; transform: none !important;
}
html.shocker-mobile-v252 body.v45-battle-active :is(#v38-hand-action-controls button,#chain-hand-controls .action-btn,#v42-field-card-side-actions > #ability-field-swap-confirm) {
  width: 100% !important; min-width: 0 !important; min-height: 42px !important; height: 42px !important;
  padding: 4px !important; font-size: 11px !important; line-height: 1.25 !important;
  touch-action: manipulation !important;
}
html.shocker-mobile-v252 body.v45-battle-active #ability-field-swap-guide {
  top: 47px !important; left: 6px !important; right: 6px !important;
  width: auto !important; min-height: 24px !important; padding: 4px 6px !important; font-size: 11px !important;
}
html.shocker-mobile-v252 body.v45-battle-active :is(#player-chain-menu,#counter-menu) {
  top: 48px !important; left: max(5px, var(--mobile-v252-safe-left, env(safe-area-inset-left))) !important;
  right: max(5px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) !important; min-height: 24px !important;
  height: 24px !important; padding: 3px 8px !important; overflow: hidden !important;
}
html.shocker-mobile-v252 body.v45-battle-active .counter-area h3 { margin: 0 !important; font-size: 11px !important; line-height: 16px !important; }
html.shocker-mobile-v252 body.v45-battle-active .counter-area p { display: none !important; }

/* Actual battle controls keep their handlers; only their touch geometry changes. */
html.shocker-mobile-v252 body.v45-battle-active #v45-battle-menu-button {
  left: max(5px, var(--mobile-v252-safe-left, env(safe-area-inset-left))) !important; top: max(4px, var(--mobile-v252-safe-top, env(safe-area-inset-top))) !important;
  width: 62px !important; min-width: 62px !important; height: 38px !important; min-height: 38px !important;
  padding: 3px !important; font-size: 11px !important;
}
html.shocker-mobile-v252 body.v45-battle-active #v204-battle-stamps {
  top: max(4px, var(--mobile-v252-safe-top, env(safe-area-inset-top))) !important;
  left: calc(max(5px, var(--mobile-v252-safe-left, env(safe-area-inset-left))) + 66px) !important;
}
html.shocker-mobile-v252 body.v45-battle-active #v204-battle-stamps .v204-battle-stamp-toggle {
  width: 66px !important; min-width: 66px !important; min-height: 38px !important;
  height: 38px !important; padding: 3px !important; font-size: 10px !important;
}
html.shocker-mobile-v252 body.v45-battle-active #v56-chain-log-open.v58-floating-log-button {
  top: max(4px, var(--mobile-v252-safe-top, env(safe-area-inset-top))) !important; left: auto !important;
  right: calc(max(5px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) + 54px) !important;
  width: 52px !important; min-width: 52px !important; height: 38px !important; min-height: 38px !important;
  padding: 3px !important; font-size: 10px !important;
}
html.shocker-mobile-v252 body.v45-battle-active #v218-battle-settings {
  top: max(4px, var(--mobile-v252-safe-top, env(safe-area-inset-top))) !important; right: max(5px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) !important;
  width: 50px !important; min-width: 50px !important; height: 38px !important; min-height: 38px !important;
  padding: 3px !important; font-size: 11px !important;
}
html.shocker-mobile-v252.v218-native-fullscreen body.v45-battle-active #v218-battle-settings { right: calc(max(5px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) + 44px) !important; }
html.shocker-mobile-v252.v218-native-fullscreen body.v45-battle-active #v56-chain-log-open.v58-floating-log-button { right: calc(max(5px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) + 98px) !important; }
html.shocker-mobile-v252.v218-native-fullscreen body.v45-battle-active #turn-info.v65-clock-mounted { right: calc(max(5px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) + 156px) !important; }
html.shocker-mobile-v252 body.v45-battle-active #v204-battle-stamp-panel {
  position: fixed !important; top: 48px !important; bottom: max(5px, var(--mobile-v252-safe-bottom, env(safe-area-inset-bottom))) !important;
  left: max(5px, var(--mobile-v252-safe-left, env(safe-area-inset-left))) !important; width: 330px !important;
  max-height: calc(var(--mobile-v252-height, 100dvh) - 53px) !important; padding: 8px !important;
}
html.shocker-mobile-v252 body.v45-battle-active .v204-battle-stamp-choice { height: 94px !important; }
html.shocker-mobile-v252 body.v45-battle-active .v204-battle-stamp-bubble { width: 106px !important; padding: 4px !important; }
html.shocker-mobile-v252 body.v45-battle-active .v204-battle-stamp-bubble .v204-battle-stamp-illustration { width: 70px !important; height: 70px !important; }
html.shocker-mobile-v252 body.v45-battle-active .v204-battle-stamp-bubble > strong { font-size: 10px !important; }

/* Long ability text scrolls inside its panel; the actual cards stay on stage. */
html.shocker-mobile-v252 body.v45-battle-active #character-ability-overlay { padding: 7px !important; }
html.shocker-mobile-v252 body.v45-battle-active #character-ability-panel {
  box-sizing: border-box !important; width: min(590px, 95vw) !important;
  max-height: calc(var(--mobile-v252-height, 100dvh) - 14px) !important;
  padding: 12px !important; overflow-y: auto !important; overscroll-behavior: contain;
}
html.shocker-mobile-v252 body.v45-battle-active .ability-panel-head { margin-bottom: 5px !important; padding-bottom: 5px !important; }
html.shocker-mobile-v252 body.v45-battle-active .ability-mini-portrait { width: 44px !important; height: 58px !important; }
html.shocker-mobile-v252 body.v45-battle-active #ability-character-name { margin: 0 !important; font-size: 18px !important; }
html.shocker-mobile-v252 body.v45-battle-active #ability-stage-description { padding: 8px !important; max-height: 115px !important; overflow-y: auto !important; font-size: 13px !important; }
html.shocker-mobile-v252 body.v45-battle-active .ability-btn { min-height: 42px !important; font-size: 13px !important; touch-action: manipulation; }
html.shocker-mobile-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage {
  --v233-card-width: clamp(78px, calc(var(--mobile-v252-height, 100dvh) * .245), 110px);
  padding: 5px max(7px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) 5px max(7px, var(--mobile-v252-safe-left, env(safe-area-inset-left))) !important;
  height: var(--mobile-v252-height, 100dvh) !important; align-items: center !important;
}
html.shocker-mobile-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage.v233-stage-multi-row {
  --v233-card-width: clamp(66px, calc(var(--mobile-v252-height, 100dvh) * .19), 82px);
}
html.shocker-mobile-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v37-choice-panel {
  width: 100% !important; min-height: 0 !important;
  max-height: calc(var(--mobile-v252-height, 100dvh) - 10px) !important; padding: 0 3px !important;
}
html.shocker-mobile-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage :is(#v37-choice-title,#v231-inspection-title) {
  font-size: 17px !important; line-height: 22px !important; padding: 2px 158px 0 5px !important; text-align: left !important;
}
html.shocker-mobile-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage :is(#v37-choice-message,.v231-inspection-message) {
  font-size: 11px !important; line-height: 16px !important; margin: 1px 0 !important; max-height: 32px !important; overflow-y: auto !important;
}
html.shocker-mobile-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v37-choice-cards {
  gap: 12px !important; padding: 13px 8px 8px !important; min-height: 0 !important;
  overflow-x: auto !important; overscroll-behavior-x: contain; touch-action: pan-x;
}
html.shocker-mobile-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-option { flex-shrink: 0 !important; }
html.shocker-mobile-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-caption { font-size: 11px !important; }
html.shocker-mobile-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-card-note { font-size: 10px !important; }
html.shocker-mobile-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage :is(.v37-choice-actions button,.v231-inspection-done,.v231-field-toggle) {
  min-height: 40px !important; padding: 7px 11px !important; font-size: 12px !important; touch-action: manipulation;
}
html.shocker-mobile-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-field-toggle { top: 0 !important; right: 3px !important; }
/* Both top and bottom used to stretch this fixed control over the field. */
html.shocker-mobile-v252 #v231-field-peek-controls {
  top: auto !important;
  bottom: max(5px, var(--mobile-v252-safe-bottom, env(safe-area-inset-bottom))) !important;
  right: max(5px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) !important;
  width: max-content !important;
  height: auto !important;
  max-width: calc(100vw - 10px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 7px;
  background: transparent !important;
  box-shadow: none !important;
}
html.shocker-mobile-v252 #v231-field-peek-controls > span { display: none !important; }
html.shocker-mobile-v252 #v231-choice-return { min-height: 42px !important; padding: 7px 14px !important; font-size: 12px !important; }
html.shocker-mobile-v252 #v218-defense-picker {
  top: 77px !important; right: max(7px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) !important;
  width: min(340px, calc(var(--mobile-v252-width, 100vw) - 20px)) !important;
  max-height: calc(var(--mobile-v252-height, 100dvh) - 86px) !important;
  padding: 9px !important; gap: 5px !important;
}
html.shocker-mobile-v252 .v218-defense-list { max-height: none !important; flex: 1 1 auto !important; min-height: 0 !important; }
html.shocker-mobile-v252 .v218-defense-option { min-height: 48px !important; padding: 6px 9px !important; touch-action: manipulation; }
html.shocker-mobile-v252 .v218-defense-actions { flex-wrap: nowrap !important; flex: 0 0 auto !important; }
html.shocker-mobile-v252 .v218-defense-actions button { min-height: 42px !important; font-size: 12px !important; touch-action: manipulation; }
html.shocker-mobile-v252 .v218-defense-instruction { display: none !important; }
html.shocker-mobile-v252 :is(.v56-chain-log-dialog,.v43-result-card) {
  max-height: calc(var(--mobile-v252-height, 100dvh) - 16px) !important; overflow-y: auto !important;
  padding: 14px !important; box-sizing: border-box !important;
}
html.shocker-mobile-v252 #v43-match-result-title { font-size: 44px !important; margin: 5px 0 !important; }
html.shocker-mobile-v252 #v43-match-result-reason { margin-bottom: 10px !important; }

/* The archive keeps its full native scene; its existing fold controls remain usable. */
html.shocker-mobile-v252 #v226-replays { padding: 0 !important; }
html.shocker-mobile-v252 #v226-replays .v226-r-panel { height: var(--mobile-v252-height, 100dvh) !important; max-height: var(--mobile-v252-height, 100dvh) !important; border-radius: 0 !important; }
html.shocker-mobile-v252 #v226-replays .v226-r-header { min-height: 42px !important; padding: 3px 7px !important; gap: 7px !important; }
html.shocker-mobile-v252 #v226-replays h2 { font-size: 16px !important; }
html.shocker-mobile-v252 #v226-replays :is(.v226-r-eyebrow,.v226-r-subtitle) { display: none !important; }
html.shocker-mobile-v252 #v226-replays .v226-r-layout { grid-template-columns: minmax(0,1fr) !important; min-height: 0 !important; flex: 1 1 auto !important; }
html.shocker-mobile-v252 #v226-replays .v226-r-sidebar { max-height: none !important; min-height: 0 !important; overflow-y: auto !important; border: 0 !important; padding: 10px !important; }
html.shocker-mobile-v252 #v226-replays:not(.has-replay) .v226-r-main { display: none !important; }
html.shocker-mobile-v252 #v226-replays.has-replay .v226-r-main { display: flex !important; padding: 0 4px 3px !important; min-height: 0 !important; max-height: none !important; }
html.shocker-mobile-v252 #v226-replays .v226-r-button,
html.shocker-mobile-v252 #v226-replays.has-replay .v240-r-fold-toggle { min-height: 36px !important; padding: 5px 9px !important; font-size: 11px !important; }
html.shocker-mobile-v252 #v226-replays .v229-r-battle-host { min-height: 100px !important; }
html.shocker-mobile-v252 #v226-replays .v226-r-view-head { padding: 1px 0 !important; }
html.shocker-mobile-v252 #v226-replays .v226-r-view-head h3 { font-size: 11px !important; }
html.shocker-mobile-v252 #v226-replays .v226-r-view-head p { display: none !important; }
html.shocker-mobile-v252 #v226-replays .v229-r-frame-caption { min-height: 36px !important; padding: 0 !important; }
html.shocker-mobile-v252 #v226-replays .v226-r-controls { padding: 2px 0 !important; gap: 3px 6px !important; }
html.shocker-mobile-v252 #v226-replays .v226-r-actions { gap: 4px !important; }
html.shocker-mobile-v252 #v226-replays .v226-r-play { min-width: 90px !important; }
html.shocker-mobile-v252 #v226-replays .v226-r-reveal { min-height: 36px !important; font-size: 11px !important; }
html.shocker-mobile-v252 #v226-replays .v226-r-reveal input { width: 22px !important; height: 22px !important; }
html.shocker-mobile-v252 #v226-replays :is(select,input[type="range"]) { min-height: 32px !important; font-size: 12px !important; }
html.shocker-mobile-v252 #v226-replays .v226-r-controls > .v226-r-help { display: none !important; }
@media (max-height: 340px) {
  html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle {
    grid-template-rows: 44px 22px minmax(0, 1fr) minmax(0, 1.75fr) !important; gap: 1px !important;
  }
  html.shocker-mobile-v252 body.v45-battle-active #phase-bar { height: 22px !important; min-height: 22px !important; max-height: 22px !important; padding: 2px 5px !important; }
  html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle .opponent-area { grid-template-rows: 10px minmax(0,1fr) 22px !important; }
  html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle .player-area { grid-template-rows: 10px minmax(0,1fr) 10px minmax(0,1fr) 22px !important; }
  html.shocker-mobile-v252 body.v45-battle-active .field-area > h3 { height: 10px !important; line-height: 10px !important; }
  html.shocker-mobile-v252 body.v45-battle-active .disposal-container,
  html.shocker-mobile-v252 body.v45-battle-active .disposal-box { height: 22px !important; }
  html.shocker-mobile-v252 body.v45-battle-active :is(#opponent-field,#player-field,#hand-row #hand-zone.card-zone) { padding-block: 0 !important; }
  html.shocker-mobile-v252 body.v45-battle-active :is(#player-battle-character,#opponent-battle-character).has-large-battle-art { top: 12px !important; height: 58px !important; min-height: 58px !important; width: 44px !important; min-width: 44px !important; }
  html.shocker-mobile-v252 body.v45-battle-active .opponent-hand-display { top: 12px !important; height: 58px !important; max-height: 58px !important; }
  html.shocker-mobile-v252 body.v45-battle-active .deck-container { top: 13px !important; }
  html.shocker-mobile-v252 body.v45-battle-active .player-area > .deck-container { top: 20px !important; }
}
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle #hand-row #hand-zone > .card { margin-inline: 0 !important; }
@media (max-height: 315px) {
  html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle { grid-template-rows: 44px 20px minmax(0,1fr) minmax(0,1.75fr) !important; }
  html.shocker-mobile-v252 body.v45-battle-active #phase-bar { height: 20px !important; min-height: 20px !important; max-height: 20px !important; padding: 1px 5px !important; }
  html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle .opponent-area { grid-template-rows: 8px minmax(0,1fr) 20px !important; }
  html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle .player-area { grid-template-rows: 8px minmax(0,1fr) 8px minmax(0,1fr) 20px !important; }
  html.shocker-mobile-v252 body.v45-battle-active .field-area > h3 { height: 8px !important; line-height: 8px !important; }
  html.shocker-mobile-v252 body.v45-battle-active .disposal-container,
  html.shocker-mobile-v252 body.v45-battle-active .disposal-box { height: 20px !important; }
  html.shocker-mobile-v252 body.v45-battle-active .opponent-hand-display { top: 9px !important; height: 52px !important; max-height: 52px !important; }
  html.shocker-mobile-v252 body.v45-battle-active .deck-container,
  html.shocker-mobile-v252 body.v45-battle-active .player-area > .deck-container { top: 14px !important; }
  html.shocker-mobile-v252 body.v45-battle-active :is(#player-battle-character,#opponent-battle-character).has-large-battle-art { top: 10px !important; height: 52px !important; min-height: 52px !important; }
}
/* A pending choice owns the touchscreen until confirmed or field peek closes.
   Native fixed battle buttons otherwise sit above the old modal layer. */
html.shocker-mobile-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage { z-index: 2147483300 !important; }
html.shocker-mobile-v252 #v231-field-peek-shield { z-index: 2147483300 !important; }
html.shocker-mobile-v252 #v231-field-peek-controls { z-index: 2147483301 !important; }
html.shocker-mobile-v252 body.v45-battle-active #character-ability-overlay { z-index: 13150 !important; }
html.shocker-mobile-v252 body.v45-battle-active .disposal-title { min-width: 88px !important; font-size: 10px !important; }
html.shocker-mobile-v252 body.v45-battle-active .disposal-title span { font-size: 11px !important; font-weight: 800 !important; }
/* Visible browser chrome can shorten a landscape viewport without changing
   the layout media query; derive the side furniture from the visible height. */
html.shocker-mobile-v252 body.v45-battle-active :is(#player-battle-character,#opponent-battle-character).has-large-battle-art {
  width: max(44px, calc(min(68px, var(--mb-v252-card-h)) * .72)) !important;
  min-width: 44px !important;
  height: min(68px, var(--mb-v252-card-h)) !important;
  min-height: min(68px, var(--mb-v252-card-h)) !important;
  top: clamp(10px, calc((var(--mobile-v252-height, 100dvh) - 300px) * .04 + 10px), 12px) !important;
}
html.shocker-mobile-v252 body.v45-battle-active .deck-container { top: clamp(14px, calc((var(--mobile-v252-height, 100dvh) - 300px) * .15 + 14px), 22px) !important; }
html.shocker-mobile-v252 body.v45-battle-active .player-area > .deck-container { top: clamp(14px, calc((var(--mobile-v252-height, 100dvh) - 300px) * .2 + 14px), 28px) !important; }
/* The match type was already confirmed before entry. Its duplicate fixed
   badge covers the phase instructions on a short phone screen. */
html.shocker-mobile-v252 body.v45-battle-active #v106-ranked-battle-badge { display: none !important; }
/* Keep the native self-left / opponent-right opening draw readable in landscape. */
html.shocker-mobile-v252 #startup-overlay {
  height: var(--mobile-v252-height,100dvh) !important; max-height: var(--mobile-v252-height,100dvh) !important;
  padding: 5px 10px !important; box-sizing: border-box !important;
}
html.shocker-mobile-v252 #startup-overlay h1 { margin: 3px 0 !important; font-size: 27px !important; }
html.shocker-mobile-v252 #startup-overlay .v117-toss-rule { font-size: 11px !important; margin: 3px 0 !important; }
html.shocker-mobile-v252 #startup-overlay .toss-cards { margin: 5px 0 !important; gap: 24px !important; }
html.shocker-mobile-v252 #startup-overlay .toss-player-box > span { font-size: 10px !important; }
html.shocker-mobile-v252 #startup-overlay .toss-player-box > span b { font-size: 11px !important; }
html.shocker-mobile-v252 #startup-overlay .toss-card-visual {
  width: clamp(58px, calc(var(--mobile-v252-height,100dvh) * .2), 86px) !important;
  height: clamp(87px, calc(var(--mobile-v252-height,100dvh) * .3), 129px) !important;
  min-height: 0 !important; font-size: 28px !important; margin-top: 3px !important;
}
html.shocker-mobile-v252 #startup-overlay #toss-result-text { min-height: 25px !important; padding: 4px 8px !important; margin: 4px 0 !important; font-size: 13px !important; }

/* v253: a portrait phone uses its width as the card-size constraint. The
   native opponent / player / hand ordering and every original handler remain.
   These overrides deliberately require the phone portrait class, so neither
   desktop nor the existing landscape board inherits this arrangement. */
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle {
  --mb-v252-card-w: clamp(44px, calc((var(--mobile-v252-width, 100vw) - 58px) / 6), 60px);
  --mb-v252-card-h: calc(var(--mb-v252-card-w) * 1.4);
  --mb-v253-field-w: clamp(48px, calc(var(--mobile-v252-width, 100vw) * .17), 74px);
  --mb-v253-field-h: calc(var(--mb-v253-field-w) * 1.4);
  --mb-v252-label-h: 14px;
  --mb-v252-pile-h: 28px;
  --mb-v252-phase-h: 42px;
  grid-template-rows: 80px 42px minmax(0, 1fr) minmax(0, 1.4fr) !important;
  gap: 3px !important;
  padding-inline: max(4px, var(--mobile-v252-safe-left, env(safe-area-inset-left))) max(4px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle > h2 { height: 80px !important; min-height: 80px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active #v45-battle-menu-button {
  left: max(5px, var(--mobile-v252-safe-left, env(safe-area-inset-left))) !important;
  width: 23% !important; min-width: 0 !important; height: 42px !important; min-height: 42px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active #v204-battle-stamps {
  left: 25.5% !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active #v204-battle-stamps .v204-battle-stamp-toggle {
  width: calc(var(--mobile-v252-width, 100vw) * .23) !important; min-width: 0 !important;
  height: 42px !important; min-height: 42px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active #v56-chain-log-open.v58-floating-log-button {
  left: 50.5% !important; right: auto !important;
  width: 23% !important; min-width: 0 !important; height: 42px !important; min-height: 42px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active #v218-battle-settings {
  left: auto !important; right: max(5px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) !important;
  width: 23% !important; min-width: 0 !important; height: 42px !important; min-height: 42px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #turn-info.v65-clock-mounted {
  top: calc(max(4px, var(--mobile-v252-safe-top, env(safe-area-inset-top))) + 46px) !important;
  left: max(5px, var(--mobile-v252-safe-left, env(safe-area-inset-left))) !important;
  right: max(5px, var(--mobile-v252-safe-right, env(safe-area-inset-right))) !important;
  grid-template-columns: minmax(68px, 1fr) minmax(96px, 1.2fr) minmax(68px, 1fr) !important;
  height: 32px !important; min-height: 32px !important; padding: 1px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active .v65-clock-time { font-size: 18px !important; line-height: 21px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active .v65-clock-panel { gap: 4px !important; padding: 1px 4px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active #v65-clock-state { font-size: 8px !important; line-height: 12px !important; white-space: normal !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active #phase-bar { height: 42px !important; min-height: 42px !important; max-height: 42px !important; font-size: 11px !important; padding: 3px 6px !important; line-height: 17px !important; white-space: normal !important; overflow-x: hidden !important; overflow-y: auto !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .opponent-area {
  grid-template-rows: 14px 50px minmax(0, 1fr) 28px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .player-area {
  grid-template-rows: 14px 50px minmax(0, 1fr) 14px minmax(0, 1fr) 28px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active .field-area > h3 { height: 14px !important; line-height: 14px !important; font-size: 10px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active .player-area > h3:nth-of-type(2) { grid-row: 4 !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active :is(#opponent-field,#player-field) {
  grid-row: 3 !important; padding: 4px 5px !important; gap: 9px !important; overflow: visible !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active :is(#opponent-field,#player-field) > .card {
  flex-basis: var(--mb-v253-field-w) !important;
  width: var(--mb-v253-field-w) !important; min-width: var(--mb-v253-field-w) !important;
  height: var(--mb-v253-field-h) !important; min-height: var(--mb-v253-field-h) !important; max-height: var(--mb-v253-field-h) !important;
  font-size: 20px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active #hand-row { grid-row: 5 !important; width: 100% !important; max-width: 100% !important; overflow: hidden !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active #hand-row #hand-zone.card-zone {
  justify-content: safe center !important; align-items: center !important;
  padding: 6px 3px !important; gap: 6px !important;
  overflow-x: auto !important; overflow-y: hidden !important;
  touch-action: pan-x !important; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active .opponent-area > .disposal-container { grid-row: 4 !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active .player-area > .disposal-container { grid-row: 6 !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active .disposal-box { flex: 1 1 0 !important; min-width: 0 !important; gap: 2px !important; padding-inline: 3px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active .disposal-title { min-width: 0 !important; font-size: 9px !important; white-space: nowrap !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active .disposal-title span { font-size: 11px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active :is(.graveyard-zone,.slash-zone) { flex: 1 1 auto !important; min-width: 0 !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active .opponent-hand-display {
  top: 17px !important; left: 5px !important; height: 47px !important; min-height: 0 !important; max-height: 47px !important;
  width: 88px !important; padding: 2px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active .opponent-hand-label { font-size: 8px !important; line-height: 11px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active .opponent-hand-cards { height: 34px !important; transform: scale(.6) !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active .deck-container {
  top: 17px !important; left: 100px !important; width: 38px !important; height: 46px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active .player-area > .deck-container { left: 61px !important; top: 17px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active .deck-label { font-size: 8px !important; line-height: 10px !important; white-space: nowrap !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active :is(.deck-pile,.deck-bottom-card) {
  width: 28px !important; min-width: 28px !important; height: 36px !important; min-height: 36px !important; font-size: 12px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active .deck-bottom-card { top: 8px !important; left: 5px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active :is(#player-battle-character,#opponent-battle-character).has-large-battle-art {
  top: 16px !important; width: 44px !important; min-width: 44px !important; height: 60px !important; min-height: 60px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active #player-battle-character.has-large-battle-art { left: 9px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active #opponent-battle-character.has-large-battle-art { right: 9px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active :is(#v38-hand-action-controls,#v42-field-card-side-actions) {
  top: 17px !important; right: 4px !important; left: auto !important;
  width: calc(100% - 114px) !important; max-width: 230px !important;
  flex-direction: row !important; align-items: stretch !important; padding: 0 !important; gap: 4px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active :is(#v38-hand-action-controls,#v42-field-card-side-actions) > button {
  flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; height: 44px !important; min-height: 44px !important;
  padding: 4px !important; font-size: 10px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active #chain-hand-controls { flex-direction: row !important; width: 100% !important; gap: 4px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active #chain-hand-controls .action-btn { width: auto !important; flex: 1 1 0 !important; min-height: 44px !important; height: 44px !important; font-size: 10px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active #ability-field-swap-guide { top: 85px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active :is(#player-chain-menu,#counter-menu) { top: 85px !important; min-height: 28px !important; height: 28px !important; padding-top: 5px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active #revolution-status { bottom: auto !important; top: 85px !important; max-width: 56% !important; z-index: 81 !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active #v204-battle-stamp-panel {
  width: calc(var(--mobile-v252-width, 100vw) - 14px) !important; max-width: 350px !important;
  top: 50px !important; left: 7px !important;
}
/* The choice stage keeps large cards on the actual field; long rows can be
   swiped without cropping the first or last card on a narrow display. */
html.shocker-mobile-portrait-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage {
  --v233-card-width: clamp(86px, calc(var(--mobile-v252-width, 100vw) * .27), 116px);
  padding-inline: 5px !important;
}
html.shocker-mobile-portrait-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage.v233-stage-multi-row {
  --v233-card-width: clamp(76px, calc(var(--mobile-v252-width, 100vw) * .24), 104px);
}
html.shocker-mobile-portrait-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage :is(#v37-choice-title,#v231-inspection-title) {
  padding: 49px 5px 0 !important; font-size: 20px !important; line-height: 25px !important;
}
html.shocker-mobile-portrait-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage :is(#v37-choice-message,.v231-inspection-message) {
  font-size: 12px !important; line-height: 18px !important; max-height: 54px !important;
}
html.shocker-mobile-portrait-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v37-choice-cards {
  justify-content: safe center !important; padding: 12px 7px !important; gap: 12px !important;
}
html.shocker-mobile-portrait-v252 body :is(#v37-ability-choice,#v231-card-inspection).v231-ability-cards.v233-ability-stage .v231-field-toggle {
  min-height: 44px !important; font-size: 13px !important;
}
html.shocker-mobile-portrait-v252 #v218-defense-picker { top: 116px !important; max-height: calc(var(--mobile-v252-height, 100dvh) - 125px) !important; }
html.shocker-mobile-portrait-v252 #startup-overlay .toss-cards { gap: 20px !important; }
html.shocker-mobile-portrait-v252 #startup-overlay .toss-card-visual { width: 96px !important; height: 144px !important; }
html.shocker-mobile-portrait-v252 #startup-overlay h1 { font-size: 30px !important; }
html.shocker-mobile-portrait-v252 #startup-overlay .v117-toss-rule { max-width: 100% !important; white-space: normal !important; font-size: 12px !important; }
/* A native fullscreen session adds a fifth top-row button. Reserve its actual
   width instead of letting the compact exit button cover settings or clocks. */
html.shocker-mobile-portrait-v252.v218-native-fullscreen body.v45-battle-active #v45-battle-menu-button,
html.shocker-mobile-portrait-v252.v218-native-fullscreen body.v45-battle-active #v204-battle-stamps .v204-battle-stamp-toggle,
html.shocker-mobile-portrait-v252.v218-native-fullscreen body.v45-battle-active #v56-chain-log-open.v58-floating-log-button,
html.shocker-mobile-portrait-v252.v218-native-fullscreen body.v45-battle-active #v218-battle-settings {
  width: calc((var(--mobile-v252-width, 100vw) - 74px) / 4) !important;
}
html.shocker-mobile-portrait-v252.v218-native-fullscreen body.v45-battle-active #v204-battle-stamps {
  left: calc((var(--mobile-v252-width, 100vw) - 74px) / 4 + 10px) !important;
}
html.shocker-mobile-portrait-v252.v218-native-fullscreen body.v45-battle-active #v56-chain-log-open.v58-floating-log-button {
  left: calc((var(--mobile-v252-width, 100vw) - 74px) / 2 + 15px) !important; right: auto !important;
}
html.shocker-mobile-portrait-v252.v218-native-fullscreen body.v45-battle-active #v218-battle-settings { right: 54px !important; }
html.shocker-mobile-portrait-v252.v218-native-fullscreen body.v45-battle-active #v218-fullscreen-exit[data-v237-dock="floating"] {
  top: max(4px, var(--mobile-v252-safe-top, env(safe-area-inset-top))) !important; right: 5px !important; height: 42px !important; min-height: 42px !important; max-height: 42px !important;
}
/* Direct actions use a native grid, and the older generic mobile button rule
   contains a two-ID selector. Override both only while these native hosts are
   visible; retain hidden flags and Lily's action lock. */
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle:not(.v66-opponent-lily-lock) #v38-hand-action-controls:not([hidden]),
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #v42-field-card-side-actions:not([hidden]) { display: flex !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #v38-hand-action-controls > #v38-refresh-action,
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #v38-hand-action-controls > #v38-all-slash-action,
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #v38-hand-action-controls > #v199-empty-turn-end,
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #v42-field-card-side-actions > #ability-field-swap-confirm,
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #v42-field-card-side-actions #chain-hand-controls .action-btn {
  flex: 1 1 0 !important; width: auto !important; min-width: 0 !important;
  height: 44px !important; min-height: 44px !important; padding: 4px !important; font-size: 10px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #v42-field-card-side-actions > #chain-hand-controls {
  flex-direction: row !important; gap: 4px !important;
}

/* v255: leave room for the native per-rank card stacks instead of compressing
   their 18px layer offsets into a one-line counter. Labels have their own row;
   both zones keep their complete horizontal scroll range on narrow screens. */
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle .disposal-container {
  width: 100% !important; max-width: 100% !important;
  min-width: 0 !important; padding: 0 !important; gap: 5px !important;
  overflow: hidden !important;
}
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle .disposal-box {
  display: grid !important; grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 14px minmax(0, 1fr) !important;
  flex: 1 1 0 !important; min-width: 0 !important; width: 0 !important;
  padding: 2px 3px !important; gap: 0 !important; overflow: hidden !important;
}
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle .disposal-title {
  width: 100% !important; min-width: 0 !important; max-width: 100% !important;
  min-height: 14px !important; height: 14px !important;
  margin: 0 !important; padding: 0 !important;
  font-size: 10px !important; line-height: 14px !important; white-space: nowrap !important;
  letter-spacing: 0 !important; overflow: hidden !important;
}
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle :is(.graveyard-zone,.slash-zone) {
  position: relative !important; left: auto !important; right: auto !important;
  top: auto !important; bottom: auto !important;
  box-sizing: border-box !important; width: 100% !important; max-width: 100% !important;
  min-width: 0 !important; min-height: 0 !important; max-height: none !important;
  height: 100% !important; padding: 1px 2px 2px !important; gap: 7px !important;
  align-items: flex-start !important; justify-content: flex-start !important;
  flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important;
  visibility: visible !important; opacity: 1 !important;
  overscroll-behavior-x: contain; touch-action: pan-x !important;
  -webkit-overflow-scrolling: touch;
}
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle .number-stack {
  box-sizing: border-box !important; flex: 0 0 36px !important;
  width: 36px !important; min-width: 36px !important;
  height: calc(26px + min(18px, (var(--stack-count, 1) - 1) * var(--stack-offset, 0px))) !important;
  min-height: 26px !important;
}
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle .stacked-zone-card {
  width: 32px !important; min-width: 32px !important;
  height: 26px !important; min-height: 26px !important;
}
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle .stacked-zone-number {
  font-size: 13px !important; line-height: 20px !important;
}

/* Portrait furniture shares the field row. This removes the old empty 50px
   spacer, makes the characters useful touch targets and keeps all six initial
   hand cards plus the grave/slash strips inside even a 320 x 568 viewport. */
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle {
  --mb-v252-pile-h: clamp(62px, calc(62px + (var(--mobile-v252-height, 100dvh) - 568px) * .04), 76px);
  --mb-v252-phase-h: 36px;
  --mb-v253-field-h: clamp(62px, calc(62px + (var(--mobile-v252-height, 100dvh) - 568px) * .22), 96px);
  --mb-v253-field-w: calc(var(--mb-v253-field-h) / 1.4);
  --mb-v255-art-w: clamp(70px, calc(var(--mobile-v252-width, 100vw) * .20), 86px);
  --mb-v255-art-h: calc(var(--mb-v255-art-w) * 1.4);
  grid-template-rows: 80px 36px minmax(0, 1fr) minmax(0, 1.45fr) !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #phase-bar {
  height: 36px !important; min-height: 36px !important; max-height: 36px !important;
  padding: 1px 6px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .opponent-area {
  grid-template-rows: 12px minmax(0, 1fr) var(--mb-v252-pile-h) !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .player-area {
  grid-template-rows: 12px minmax(0, 1fr) 12px minmax(74px, .83fr) var(--mb-v252-pile-h) !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .field-area > h3 {
  height: 12px !important; line-height: 12px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .player-area > h3:nth-of-type(2) { grid-row: 3 !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle :is(#opponent-field,#player-field) {
  grid-row: 2 !important; align-items: flex-end !important;
  padding-top: 39px !important; padding-bottom: 3px !important;
  gap: 7px !important; box-sizing: border-box !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #opponent-field {
  padding-left: 36px !important; padding-right: calc(var(--mb-v255-art-w) + 9px) !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #player-field {
  padding-left: calc(var(--mb-v255-art-w) + 10px) !important; padding-right: 5px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #hand-row { grid-row: 4 !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .opponent-area > .disposal-container {
  grid-row: 3 !important; height: var(--mb-v252-pile-h) !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .player-area > .disposal-container {
  grid-row: 5 !important; height: var(--mb-v252-pile-h) !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .disposal-box { height: var(--mb-v252-pile-h) !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle :is(#player-battle-character,#opponent-battle-character).has-large-battle-art {
  top: 14px !important; width: var(--mb-v255-art-w) !important; min-width: var(--mb-v255-art-w) !important;
  height: var(--mb-v255-art-h) !important; min-height: var(--mb-v255-art-h) !important;
  background-position: center top !important; background-size: cover !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #player-battle-character.has-large-battle-art { left: 4px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #opponent-battle-character.has-large-battle-art { right: 4px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .opponent-hand-display {
  top: 14px !important; left: 40px !important; width: 105px !important;
  height: 37px !important; max-height: 37px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .opponent-hand-cards { transform: scale(.45) !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .deck-container { left: 3px !important; top: 15px !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .player-area > .deck-container {
  left: calc(var(--mb-v255-art-w) + 10px) !important; top: 15px !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle :is(#v38-hand-action-controls,#v42-field-card-side-actions) {
  top: 14px !important; width: calc(100% - var(--mb-v255-art-w) - 56px) !important;
  max-width: none !important; right: 3px !important;
}
/* Legacy player-zone rules carry an ID and a fixed 50/58px minimum. Clear
   those minima explicitly so the title and cards remain inside their row. */
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle :is(#player-graveyard,#player-slash-zone,#opp-graveyard,#opp-slash-zone) {
  min-height: 0 !important; max-height: none !important; height: 100% !important;
}
/* Rotation keeps the same card strips. A short landscape display shows each
   rank at the top of its existing stack (the native horizontal layer offsets
   remain), rather than clipping the last card and its number below the band. */
html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle {
  --mb-v252-pile-h: clamp(36px, calc(36px + (var(--mobile-v252-height, 100dvh) - 300px) * .11), 46px);
  --mb-v252-card-h: clamp(44px, calc(44px + (var(--mobile-v252-height, 100dvh) - 300px) * .19), 62px);
  grid-template-rows: 44px var(--mb-v252-phase-h) minmax(0, 1.1fr) minmax(0, 1.75fr) !important;
}
html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle .disposal-container,
html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle .disposal-box { height: var(--mb-v252-pile-h) !important; }
html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle .opponent-area {
  grid-template-rows: var(--mb-v252-label-h) minmax(0, 1fr) var(--mb-v252-pile-h) !important;
}
html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle .player-area {
  grid-template-rows: var(--mb-v252-label-h) minmax(0, 1fr) var(--mb-v252-label-h) minmax(0, 1fr) var(--mb-v252-pile-h) !important;
}
html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle .disposal-box { grid-template-rows: 12px minmax(0, 1fr) !important; padding: 1px 3px !important; }
html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle .disposal-title { min-height: 12px !important; height: 12px !important; line-height: 12px !important; }
html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle .number-stack { min-height: 18px !important; height: 100% !important; }
html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle .stacked-zone-card { top: 0 !important; min-height: 18px !important; height: 100% !important; max-height: 26px !important; }
html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle .stacked-zone-number { line-height: 16px !important; }
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle :is(#player-graveyard,#player-slash-zone,#opp-graveyard,#opp-slash-zone) {
  overflow-x: auto !important; overflow-y: hidden !important;
  touch-action: pan-x !important;
}
/* The full word Joker must fit the narrowest native hand card. */
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle #hand-zone > .card {
  font-size: clamp(14px, calc(14px + (var(--mobile-v252-width, 100vw) - 320px) * .04), 17px) !important;
}
/* The original deck caption used a negative 25px offset, which printed on top
   of the field heading after the portrait furniture was enlarged. */
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .deck-label {
  top: -10px !important; left: 0 !important; width: 38px !important;
  font-size: 6px !important; line-height: 8px !important; letter-spacing: 0 !important;
}
/* A character can legitimately grow its field beyond three cards. Keep every
   native target reachable by panning instead of clipping the outer cards. */
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle :is(#opponent-field,#player-field) {
  justify-content: safe center !important;
  overflow-x: auto !important; overflow-y: hidden !important;
  overscroll-behavior-x: contain; touch-action: pan-x !important;
  -webkit-overflow-scrolling: touch;
}
/* On short rotated displays, peripheral deck art must finish before the pile
   strip. Keep the actual zone UI above decorative character overflow. */
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle .disposal-container { z-index: 85 !important; }
html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle .deck-container { width: 38px !important; height: 44px !important; }
html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle :is(.deck-pile,.deck-bottom-card) {
  width: 30px !important; min-width: 30px !important; height: 38px !important; min-height: 38px !important;
}
html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle .deck-bottom-card { top: 7px !important; }
/* Hand actions replace their existing label row while selected. The native
   visibility class already follows selection/cancel, so no duplicate toolbar
   or event handler is introduced and the field cards stay fully exposed. */
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .player-area.v38-hand-actions-visible {
  grid-template-rows: 12px minmax(0, 1fr) 44px minmax(74px, .83fr) var(--mb-v252-pile-h) !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .player-area.v38-hand-actions-visible > h3:nth-of-type(2) { visibility: hidden !important; }
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .player-area.v38-hand-actions-visible > #player-field {
  padding-top: 0 !important;
}
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .player-area.v38-hand-actions-visible > #v38-hand-action-controls:not([hidden]) {
  position: relative !important; grid-column: 1 !important; grid-row: 3 !important;
  top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
  width: calc(100% - var(--mb-v255-art-w) - 10px) !important; max-width: none !important;
  height: 44px !important; min-height: 44px !important; margin: 0 !important;
  padding: 0 3px 0 0 !important; box-sizing: border-box !important;
  justify-self: end !important; align-self: center !important;
}
/* A hidden-but-laid-out heading would otherwise claim a second implicit grid
   column next to the toolbar. Remove it from layout while the row is in use. */
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .player-area.v38-hand-actions-visible > h3:nth-of-type(2) { display: none !important; }
/* Field hover lift is decorative; when the compact row is used for hand
   actions its extra six pixels must not lift cards through the clipped edge. */
html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle .player-area.v38-hand-actions-visible > #player-field > .card { transform: none !important; }


/* SOURCE styles/mobile-controls-v252.css */
/* Only the coarse-pointer smartphone runtime can activate these rules. */
html.shocker-mobile-v252 {
  --mobile-v252-safe-top: env(safe-area-inset-top, 0px);
  --mobile-v252-safe-right: env(safe-area-inset-right, 0px);
  --mobile-v252-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-v252-safe-left: env(safe-area-inset-left, 0px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding: 12px;
}

/* SHOCKER battle-screen polish 2026-11-15 */
/* Ordinary matches use the top rows for controls, clock and instructions. */
body.v45-battle-active.v64-shocker-battle:not(.v129-tutorial-live, .v321-practice-active) > #battle-title {
  display: none !important;
}

body.v45-battle-active.v64-shocker-battle:not(.v129-tutorial-live, .v321-practice-active) > #phase-bar {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 3px 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  font-size: clamp(11px, 1.1vw, 14px) !important;
  line-height: 1.25 !important;
}

body.v45-battle-active.v64-shocker-battle:not(.v129-tutorial-live, .v321-practice-active) > #phase-bar::before,
body.v45-battle-active.v64-shocker-battle:not(.v129-tutorial-live, .v321-practice-active) > #phase-bar::after {
  content: none !important;
}

body.v45-battle-active.v64-shocker-battle:not(.v129-tutorial-live, .v321-practice-active) > #phase-bar:empty {
  display: none !important;
}

@media (min-width: 701px) {
  html:not(.shocker-mobile-v252) body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) {
    --duel-card-width: clamp(55px, 7dvh, 62px);
    --duel-hand-width: clamp(55px, 7dvh, 61px);
    --duel-deck-width: 48px;
    grid-template-rows: 0 minmax(44px, auto) auto minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  html:not(.shocker-mobile-v252) body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) > #turn-info {
    width: min(660px, calc(100% - 372px)) !important;
    align-self: center;
  }

  html:not(.shocker-mobile-v252) body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) > #v72-casino-table {
    inset-block-start: 14px;
  }
}

@media (min-width: 701px) and (max-width: 820px) {
  html:not(.shocker-mobile-v252) body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) > #turn-info.v65-clock-mounted {
    grid-template-columns: minmax(0, 1fr) minmax(90px, auto) minmax(0, 1fr) !important;
  }
}

@media (min-width: 701px) and (max-height: 700px) {
  html:not(.shocker-mobile-v252) body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) {
    --duel-card-width: clamp(44px, 8dvh, 56px);
    --duel-hand-width: clamp(44px, 8dvh, 55px);
    --duel-deck-width: clamp(41px, 6.9dvh, 45px);
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  html:not(.shocker-mobile-v252) body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) {
    --duel-card-width: clamp(36px, 8.7dvh, 46px);
    --duel-hand-width: var(--duel-card-width);
    grid-template-rows: 0 minmax(34px, auto) auto minmax(0, 1fr) !important;
  }
}

@media (min-width: 701px) {
  html:not(.shocker-mobile-v252) body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active)
    :is(#player-field, #opponent-field)[data-v304-field-slots] {
    grid-template-columns: repeat(var(--field-v304-slots, 3), var(--duel-card-width)) !important;
  }

  html:not(.shocker-mobile-v252) body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active)
    :is(#player-field, #opponent-field, #hand-row #hand-zone) > .card {
    box-sizing: border-box;
    width: var(--live-card-width) !important;
    min-width: var(--live-card-width) !important;
    height: calc(var(--live-card-width) * 1.48) !important;
    min-height: calc(var(--live-card-width) * 1.48) !important;
    max-height: none !important;
    flex-basis: var(--live-card-width) !important;
  }

  body.v45-battle-active :is(#player-field, #opponent-field) {
    --live-card-width: var(--duel-card-width);
  }

  body.v45-battle-active #hand-zone {
    --live-card-width: var(--duel-hand-width);
  }

  html:not(.shocker-mobile-v252) body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active)
    > .field-area > .deck-container {
    width: var(--duel-deck-width) !important;
    height: calc(var(--duel-deck-width) * 1.42) !important;
  }

  html:not(.shocker-mobile-v252) body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active)
    > .field-area > .deck-container > :is(.deck-pile, .deck-bottom-card) {
    width: 100% !important;
    height: 100% !important;
  }
}

/* The phone clock and buttons already share the former title's track. */
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) {
  --mb-v252-phase-h: 28px;
}

html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) {
  --mb-v252-card-h: clamp(49px, calc(49px + (var(--mobile-v252-height, 100dvh) - 300px) * .19), 68px);
}

html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active):has(> #phase-bar:empty) {
  --mb-v252-phase-h: 0px;
}

html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) {
  --mb-v252-card-w: clamp(44px, calc((var(--mobile-v252-width, 100vw) - 40px) / 6), 64px);
  --mb-v253-field-h: clamp(67px, calc(67px + (var(--mobile-v252-height, 100dvh) - 568px) * .22), 104px);
  --battle-controls-height: 80px;
  grid-template-rows: var(--battle-controls-height) auto minmax(0, 1fr) minmax(0, 1.45fr) !important;
}

html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle.v188-shared-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) {
  --battle-controls-height: 116px;
}

@media (min-width: 360px) and (min-height: 350px) {
  html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) {
    --mb-v252-card-w: clamp(44px, calc((var(--mobile-v252-width, 100vw) - 28px) / 6), 66px);
  }

  html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active)
    > .field-area > .deck-container > :is(.deck-pile, .deck-bottom-card) {
    width: 34px !important;
    min-width: 34px !important;
    height: 43px !important;
    min-height: 43px !important;
  }
}
/* Keep team-table tracks and seat ordering. Only the decorative tracks and
   preferred card sizes are adjusted where the team-table has room. */
body.v309-native-duo.v310-team-table.v318-team-layout.v188-shared-battle.v45-battle-active.v64-shocker-battle.v310-team-table {
  --v310-phase-h: 28px;
}

body.v309-native-duo.v310-team-table.v318-team-layout.v188-shared-battle.v45-battle-active.v64-shocker-battle.v310-team-table:has(> #phase-bar:empty) {
  --v310-phase-h: 0px;
}

@media (min-width: 701px) {
  body.v309-native-duo.v310-team-table.v318-team-layout.v188-shared-battle.v45-battle-active.v64-shocker-battle.v310-team-table {
    --v310-title-h: 0px;
  }

  body.v309-native-duo.v310-team-table.v318-team-layout.v188-shared-battle.v45-battle-active.v64-shocker-battle.v310-team-table #turn-info {
    width: min(660px, calc(100% - 408px)) !important;
  }

  body.v309-native-duo.v310-team-table.v318-team-layout.v188-shared-battle.v45-battle-active.v64-shocker-battle.v310-team-table
    .v310-team-portrait .deck-container {
    width: 46px !important;
    height: 57px !important;
  }

  body.v309-native-duo.v310-team-table.v318-team-layout.v188-shared-battle.v45-battle-active.v64-shocker-battle.v310-team-table
    .v310-team-portrait :is(.deck-pile, .deck-bottom-card) {
    width: 38px !important;
    min-width: 38px !important;
    height: 51px !important;
    min-height: 51px !important;
  }
}

@media (min-width: 901px) and (min-height: 801px) {
  body.v309-native-duo.v310-team-table.v318-team-layout.v188-shared-battle.v45-battle-active.v64-shocker-battle.v310-team-table {
    --v310-preferred-card: 92px;
    --v310-own-hand-h: 136px;
  }

  body.v309-native-duo.v310-team-table.v318-team-layout.v188-shared-battle.v45-battle-active.v64-shocker-battle.v310-team-table #v310-own-hand-dock {
    --v310-hand-w: 78px;
  }
}

/* A side panel on the table, with scrolling confined to the history. */
body.v45-battle-active.v64-shocker-battle > #v56-chain-log-overlay {
  position: fixed;
  inset: max(54px, calc(env(safe-area-inset-top) + 52px)) auto auto max(8px, env(safe-area-inset-left));
  z-index: 180;
  display: block;
  width: clamp(150px, 26vw, 320px);
  height: min(42dvh, 340px);
  padding: 0;
  background: transparent !important;
}

body.v45-battle-active > #v56-chain-log-overlay > .v56-chain-log-dialog {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
  grid-template-rows: auto minmax(0, 1fr);
  clip-path: none;
  box-shadow: 0 8px 24px #000a;
}

body.v45-battle-active > #v56-chain-log-overlay .v56-chain-log-head {
  min-height: 36px;
  padding: 4px 6px 4px 10px;
  gap: 6px;
  border-color: #b3914f70;
  background: #2f2119;
}

body.v45-battle-active > #v56-chain-log-overlay .v56-chain-log-heading strong {
  font-size: clamp(13px, 1.35vw, 18px);
  letter-spacing: .06em;
}

body.v45-battle-active > #v56-chain-log-overlay #v56-chain-log-close {
  min-width: 0;
  min-height: 34px;
  padding: 4px 8px;
  font-size: 12px;
}

body.v45-battle-active > #v56-chain-log-overlay #v56-chain-log-scroll {
  height: 100%;
  min-height: 0;
  padding: 8px 6px;
  overflow: hidden auto !important;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

body.v45-battle-active > #v56-chain-log-overlay .v259-log-heading {
  grid-template-columns: auto minmax(0, 1fr) auto;
  overflow-wrap: anywhere;
}

body.v45-battle-active > #v56-chain-log-overlay .card.v259-log-card {
  flex-basis: 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 52px !important;
  min-height: 52px !important;
  font-size: 16px !important;
}

body.v45-battle-active > #v56-chain-log-overlay .card.v259-log-card.v259-joker-card {
  font-size: 11px !important;
}

@media (min-width: 701px) and (min-height: 501px) {
  html:not(.shocker-mobile-v252) body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) > #v56-chain-log-overlay {
    --log-top: clamp(96px, 16dvh, 142px);
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: start;
    align-self: start;
    width: clamp(188px, 25vw, 340px);
    height: min(340px, calc(100% - var(--log-top) - 46px));
    margin: var(--log-top) 0 0 8px;
  }
}

@media (min-width: 1050px) and (min-height: 561px) {
  html:not(.shocker-mobile-v252) body.v45-battle-active.v64-shocker-battle:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) > #v56-chain-log-overlay {
    --log-top: 36px;
    --log-left: clamp(192px, 17vw, 225px);
    width: min(340px, calc(50vw - var(--log-left) - 180px));
    margin-inline-start: var(--log-left);
  }
}

html.shocker-mobile-portrait-v252 body.v45-battle-active > #v56-chain-log-overlay {
  inset-block-start: max(90px, calc(var(--mobile-v252-safe-top, env(safe-area-inset-top)) + 84px));
  width: min(46vw, 235px);
  height: min(34dvh, 270px);
}

html.shocker-mobile-portrait-v252 body.v188-shared-battle.v45-battle-active > #v56-chain-log-overlay {
  inset-block-start: max(120px, calc(var(--mobile-v252-safe-top, env(safe-area-inset-top)) + 116px));
}

@media (min-height: 740px) {
  html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle.v56-chain-log-open:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) {
    grid-template-rows: var(--battle-controls-height, 80px) auto minmax(0, 1fr) minmax(0, 1.45fr) clamp(108px, 17dvh, 154px) !important;
  }

  html.shocker-mobile-portrait-v252 body.v45-battle-active.v64-shocker-battle.v56-chain-log-open:not(.v309-native-duo, .v129-tutorial-live, .v321-practice-active) > #v56-chain-log-overlay {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 5;
    width: 100%;
    height: 100%;
  }
}


#duel-cinematic.v320-quick-verdict :is(.duel-panel, .duel-vignette, .result-emblem, .result-shockwave-a) {
    animation-duration: var(--v320-verdict-time);
}

#duel-cinematic.v320-quick-verdict :is(.result-shockwave-b, .result-particle) {
    animation-duration: calc(var(--v320-verdict-time) - 220ms);
}

#duel-cinematic.show.v320-quick-verdict .duel-panel {
    animation-name: quickVerdictPanel;
    animation-timing-function: linear;
    transform: none;
    backdrop-filter: none;
}

#duel-cinematic.show.v320-quick-verdict .duel-main {
    animation: quickVerdictTitle var(--v320-verdict-time) cubic-bezier(.24,.78,.32,1) both;
    text-shadow: 0 2px 0 #080706 !important;
}

@keyframes quickVerdictPanel {
    0% { opacity: .55; }
    8%, 86% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes quickVerdictTitle {
    0% { transform: scale(.8); }
    23% { transform: scale(1.1); }
    43%, 100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    #duel-cinematic.show.v320-quick-verdict .duel-main { animation: none; }
}


/* SHOCKER smartphone card layout */
/* Restore the title roster's layered PC composition on touch layouts. */
html.shocker-mobile-v252 #title-screen .v153-roster {
    --title-touch-height: var(--mobile-v252-height, 100dvh);
    --title-touch-card: clamp(42px, min(22vw, calc(var(--title-touch-height) * .155)), 102px);
    inset: max(46px, 8%) max(28px, env(safe-area-inset-right)) auto max(28px, env(safe-area-inset-left));
    display: block;
    height: min(72%, 480px);
}

html.shocker-mobile-v252 #title-screen .v153-character {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: var(--z);
    width: var(--title-touch-card);
    transform: translateX(-50%) rotate(var(--r)) scale(var(--s));
    animation: v153Assemble .9s cubic-bezier(.16, .78, .18, 1) var(--delay) both;
}

html.shocker-mobile-landscape-v252 #title-screen .v153-roster {
    --title-touch-card: clamp(38px, min(13.7vw, calc(var(--title-touch-height) * .185)), 120px);
    inset-block-start: max(29px, 8%);
    width: min(100% - 72px, calc(var(--title-touch-height) * 1.9));
    height: min(33%, 150px);
    margin-inline: auto;
}

/* Keep the game engine's card nodes, and reuse the existing PC fan angles. */
html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle #hand-row #hand-zone.card-zone,
html.shocker-mobile-v252 body.v309-native-duo.v310-team-table.v188-shared-battle.v45-battle-active.v64-shocker-battle.v310-team-table
#v310-own-hand-dock #hand-row #hand-zone.card-zone {
    --touch-hand-overlap: 12px;
    --touch-hand-angle: 15deg;
    --touch-hand-drop: 7px;
    gap: 0 !important;
    padding-inline: 14px !important;
    justify-content: safe center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    touch-action: pan-x !important;
}

html.shocker-mobile-landscape-v252 body.v45-battle-active.v64-shocker-battle #hand-row #hand-zone.card-zone {
    --touch-hand-overlap: 7px;
    --touch-hand-angle: 12deg;
    --touch-hand-drop: 3px;
}

html.shocker-mobile-v252 body.v309-native-duo.v310-team-table.v188-shared-battle.v45-battle-active.v64-shocker-battle.v310-team-table
#v310-own-hand-dock #hand-row #hand-zone.card-zone {
    --touch-hand-overlap: clamp(4px, calc(var(--v310-hand-w) * .18), 9px);
    --touch-hand-angle: 12deg;
    --touch-hand-drop: 3px;
}

html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle #hand-row #hand-zone > .card,
html.shocker-mobile-v252 body.v309-native-duo.v310-team-table.v188-shared-battle.v45-battle-active.v64-shocker-battle.v310-team-table
#v310-own-hand-dock #hand-row #hand-zone > .card {
    margin-inline-start: calc(-1 * var(--touch-hand-overlap)) !important;
    rotate: clamp(calc(-1 * var(--touch-hand-angle)), var(--v95-fan-angle, 0deg), var(--touch-hand-angle)) !important;
    translate: 0 clamp(0px, var(--v95-fan-y, 0px), var(--touch-hand-drop)) !important;
    transform-origin: 50% 80% !important;
    z-index: var(--v95-fan-z, 2) !important;
}

html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle #hand-row #hand-zone > .card:first-child,
html.shocker-mobile-v252 body.v309-native-duo.v310-team-table.v188-shared-battle.v45-battle-active.v64-shocker-battle.v310-team-table
#v310-own-hand-dock #hand-row #hand-zone > .card:first-child {
    margin-inline-start: 0 !important;
}

html.shocker-mobile-v252 body.v45-battle-active.v64-shocker-battle #hand-row #hand-zone > .card:is(.selected-card, .adjust-tap-selected),
html.shocker-mobile-v252 body.v309-native-duo.v310-team-table.v188-shared-battle.v45-battle-active.v64-shocker-battle.v310-team-table
#v310-own-hand-dock #hand-row #hand-zone > .card:is(.selected-card, .adjust-tap-selected) {
    z-index: 140 !important;
}
