/* A viewport game stage, with native scrolling for long records and inputs. */
.yh-game-stage{position:fixed;inset:0;z-index:0;overflow:hidden;background:#0b191d;pointer-events:none}.yh-game-stage canvas{display:block;width:100%;height:100%;pointer-events:auto}
body.phaser-shell{height:100dvh;min-height:0;padding:0 0 88px;box-sizing:border-box;background:#0b191d;overflow:hidden}
.phaser-shell .shell-header{height:76px;min-height:76px;padding:10px 30px;gap:18px;background:linear-gradient(#0b191eea,#0b191eac);border-bottom:1px solid #cfb77c25;box-sizing:border-box;position:relative;z-index:35;flex-wrap:nowrap}
.phaser-shell .shell-logo{margin-right:auto;font-size:20px!important}.phaser-shell .shell-logo small{font-size:10px}.phaser-shell .shell-header .bgm-player{margin-left:auto}.phaser-shell .shell-account{padding:8px 15px;min-height:38px;background:#14282a;border-color:#a48b594d}
.phaser-shell .shell-breadcrumb{display:none}
.phaser-shell .shell-navigation{position:fixed;z-index:40;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,880px);height:78px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;background:linear-gradient(#17282bed,#0b191efc);border:1px solid #b19a604d;border-bottom:0;box-shadow:0 -10px 45px #07101377;padding:0 12px;box-sizing:border-box;overflow:visible;gap:0}
.phaser-shell .shell-navigation button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:11px 4px 10px;min-width:0;font-size:12px;letter-spacing:.03em;color:#afbab8;position:relative;transition:color .14s,background .14s;box-shadow:none;background:none;border:0}
.phaser-shell .shell-navigation button:hover{background:#d7c48c0a;color:#f0d89d}.phaser-shell .shell-navigation button[aria-current]{color:#f2d394;background:linear-gradient(#e9c98012,transparent);box-shadow:inset 0 2px #d4b373}
.shell-navigation svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round;overflow:visible}
.yh-game-menu{position:fixed;right:max(20px,calc((100vw - 880px)/2));bottom:90px;z-index:42;background:#14282bf7;border:1px solid #a28a55;padding:12px 20px;min-width:230px;box-shadow:0 14px 60px #0009}.yh-menu-heading{color:#ba9d62;font-size:11px;letter-spacing:.12em;border-bottom:1px solid #b59d5f3d;padding-bottom:15px;margin:8px 0}.yh-game-menu button{display:block;width:100%;background:none;border:0;border-bottom:1px solid #c2b18416;text-align:left;color:#ede3cb;padding:17px 2px;font-size:15px}.yh-game-menu button:hover{color:#f6cb74}
.yh-menu-header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #b59d5f3d}.yh-menu-header .yh-menu-heading{border:0;padding:0}.yh-game-menu .yh-menu-close{width:auto;min-height:44px;border:0;padding:8px 6px;color:#f6cb74;font-size:13px}
.phaser-shell .book,.phaser-shell .shell-arena,.phaser-shell .shell-login-gate{position:relative;z-index:5;margin:20px auto 0;width:calc(100% - 56px);max-width:1180px;max-height:calc(100dvh - 196px);min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#a88a55 #e8decb;box-shadow:0 22px 70px #0005}
.phaser-shell .book-content{padding:28px 34px}.phaser-shell .shell-arena{padding:28px 34px}.phaser-shell .shell-page-heading{margin-bottom:24px}.phaser-shell .shell-page-heading h1{font-size:27px}.phaser-shell .shell-page-heading p{margin:5px 0}.phaser-shell .shell-page-heading .eyebrow{letter-spacing:.09em}
.phaser-shell .guild-space{position:relative;z-index:4;margin:20px auto 0;max-width:1180px;width:calc(100% - 56px);max-height:calc(100dvh - 196px);overflow-y:auto}
html[data-phaser=ready] .phaser-shell[data-game-screen=lobby] #guild-room{visibility:hidden;pointer-events:none;height:0;width:0;overflow:hidden;margin:0;padding:0;border:0}
html[data-phaser=ready] .phaser-shell[data-game-screen=lobby] .yh-game-stage{z-index:2;pointer-events:auto}
.phaser-shell #guild-room>.guild-sr-only{display:none}.phaser-shell .beta-feedback{display:none}.phaser-shell .shell-login{z-index:60}.phaser-shell .shell-login-gate{max-width:540px;margin-top:60px;padding:36px;min-height:0}
.phaser-shell .world-choices{gap:12px}.phaser-shell .world-choice{min-height:108px;background:linear-gradient(120deg,#ded3bd,#f0e4cf);border-color:#b5a07c}.phaser-shell .world-choice[aria-pressed=true]{background:#fff5df;border-color:#98703d;box-shadow:inset 3px 0 #98703d}
.phaser-shell .world-preview{background:#e5d8bf}.phaser-shell .world-preview-copy{padding:24px 28px}.phaser-shell .creation-draft{padding-top:8px}.phaser-shell .shell-ranking-filters select{width:100%}
.phaser-shell .ranking-podium{margin-top:10px}.phaser-shell .ranking-podium-place img{height:180px}.phaser-shell .ranking-podium-place-1 img{height:236px}
.phaser-shell .ranking-matchup{max-width:620px}.phaser-shell .ranking-matchup img{height:190px}
.phaser-shell #yh-game-activity[data-kind="battle"]:not([hidden]) ~ :is(h4,.ranking-matchup,p){display:none}
.yh-game-activity{position:relative;text-align:center;padding:30px 24px;margin:18px 0 26px;border:1px solid #b59a6c;background:linear-gradient(135deg,#132b32,#183c42);color:#e4d8bb;box-shadow:inset 0 0 60px #09171c66;overflow:hidden}.yh-game-activity h3{font:500 22px/1.6 Batang,serif!important;color:#f6e4ba!important;margin:12px 0 18px}.yh-activity-line{font-size:14px;line-height:1.9;min-height:27px;color:#ddd8c6}.yh-activity-note{font-size:11px;line-height:1.8;color:#aabcb9;margin-top:20px}.yh-activity-mark{display:flex;justify-content:center;align-items:center;gap:6px;height:32px}.yh-activity-mark i{display:block;width:6px;height:20px;background:#c0a570;transform:rotate(25deg);animation:yh-record-pulse 1.4s ease-in-out infinite}.yh-activity-mark i:nth-child(2){height:30px;animation-delay:.15s}.yh-activity-mark i:nth-child(3){animation-delay:.3s}
.yh-activity-fighters{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:440px;margin:15px auto 20px}.yh-activity-fighter img{display:block;object-fit:contain;height:180px;width:100%;margin-bottom:12px}.yh-activity-fighter strong{font-weight:500;font-size:15px;color:#f6e4ba}
@keyframes yh-record-pulse{0%,100%{opacity:.35;transform:translateY(3px) rotate(25deg)}50%{opacity:1;transform:translateY(-3px) rotate(25deg)}}
@media(max-width:700px){.phaser-shell .shell-header{height:70px;min-height:70px;padding:8px 16px;gap:8px}.phaser-shell .shell-logo{font-size:17px!important}.phaser-shell .shell-logo small{font-size:9px}.phaser-shell .shell-header .bgm-player>summary{padding:8px}.phaser-shell .shell-account{font-size:12px;padding:8px 10px}.phaser-shell .shell-navigation{height:74px;padding:0 4px}.phaser-shell .shell-navigation button{font-size:10px;gap:7px;padding:10px 1px}.shell-navigation svg{width:21px;height:21px}.phaser-shell .book,.phaser-shell .shell-arena,.phaser-shell .guild-space{width:calc(100% - 20px);margin:12px auto 0;max-height:calc(100dvh - 175px)}.phaser-shell .book-content,.phaser-shell .shell-arena{padding:22px 17px}.phaser-shell .shell-page-heading h1{font-size:23px}.phaser-shell .world-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.phaser-shell .world-choice{min-height:94px;padding:14px 12px}.phaser-shell .world-choice strong{font-size:18px}.phaser-shell .world-choice span{font-size:10px}.phaser-shell .world-preview-copy{padding:21px 18px}.phaser-shell .ranking-podium{gap:6px;margin-bottom:24px}.phaser-shell .ranking-podium-place img{height:112px}.phaser-shell .ranking-podium-place-1 img{height:150px}.phaser-shell .shell-ranking-filters{gap:8px}.phaser-shell .shell-ranking-filters label{font-size:11px}.phaser-shell .shell-ranking-filters select{padding:9px 3px;font-size:11px}.yh-game-menu{right:12px;bottom:86px;min-width:210px}.yh-game-activity{padding:25px 16px}.yh-game-activity h3{font-size:19px!important}.yh-activity-fighter img{height:140px}.yh-activity-line{font-size:13px}.phaser-shell .shell-login-gate{width:calc(100% - 30px);padding:30px 20px;margin-top:28px;max-height:calc(100dvh - 195px)}}
@media(prefers-reduced-motion:reduce){.yh-activity-mark i{animation:none;opacity:.8}.phaser-shell *{scroll-behavior:auto!important}}
.phaser-shell .book,.phaser-shell .shell-arena,.phaser-shell .guild-space,.phaser-shell .shell-login-gate{position:fixed!important;top:96px!important;bottom:102px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;margin:0!important;max-height:none!important;height:auto!important;min-height:0!important;box-sizing:border-box;overflow-y:auto}
.phaser-shell .yh-game-activity .yh-activity-line{color:#e8e3cf!important}.phaser-shell .yh-game-activity .yh-activity-note{color:#b8c8c2!important}
@media(max-width:700px){.phaser-shell .book,.phaser-shell .shell-arena,.phaser-shell .guild-space,.phaser-shell .shell-login-gate{top:82px!important;bottom:92px!important}}
@media(max-width:640px){.phaser-shell .ranking-podium{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:10px}.phaser-shell .ranking-podium-place-1{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:minmax(100px,.9fr) minmax(0,1.1fr);align-items:center;gap:4px 10px;padding:15px}.phaser-shell .ranking-podium-place-1>img{grid-column:1;grid-row:1/6;height:210px;margin:0}.phaser-shell .ranking-podium-place-1>:not(img){grid-column:2}.phaser-shell .ranking-podium-place-1>strong{font-size:27px}.phaser-shell #core-ranking .ranking-podium-place-1 h3{font-size:19px}.phaser-shell .ranking-podium-place-2{grid-column:1;grid-row:2}.phaser-shell .ranking-podium-place-3{grid-column:2;grid-row:2}.phaser-shell .ranking-podium-place-2 img,.phaser-shell .ranking-podium-place-3 img{height:150px}.phaser-shell #core-ranking .ranking-podium-place-2 h3,.phaser-shell #core-ranking .ranking-podium-place-3 h3{font-size:16px}}
.yh-game-menu .yh-menu-terms{display:flex;align-items:center;min-height:44px;color:#ede3cb;font-size:15px;text-underline-offset:3px}

/* The ranking board keeps all three finalists and the filters in the first view. */
body[data-game-screen=ranking] .shell-arena > .shell-page-heading{
  min-height:48px;padding-top:0;padding-bottom:9px;margin-bottom:0;display:flex;align-items:center;
}
body[data-game-screen=ranking] #shell-ranking-filters{margin:14px 0 12px;gap:10px}
body[data-game-screen=ranking] #shell-ranking-filters label{margin:0;font-weight:700;color:#584531}
body[data-game-screen=ranking] #shell-ranking-filters select{
  box-sizing:border-box;min-height:44px;margin:4px 0 0;padding:7px 8px;color:#36291f;background:#f9efdb;
  border:1px solid #a9916e;border-radius:2px;font-size:13px
}
body[data-game-screen=ranking] #core-ranking-podium{
  grid-template-columns:minmax(0,1fr) minmax(0,1.14fr) minmax(0,1fr);gap:12px;margin:0 0 14px;align-items:end
}
body[data-game-screen=ranking] #core-ranking-podium .ranking-podium-place{
  display:flex;flex-direction:column;align-items:center;gap:4px;grid-row:1;padding:10px 8px 13px;
  background:linear-gradient(160deg,#f9efdc,#e8dbc3);box-shadow:inset 0 -4px 0 #b4a183
}
body[data-game-screen=ranking] #core-ranking-podium .ranking-podium-place-1{
  grid-column:2;border-color:#9b722f;background:linear-gradient(160deg,#fcf0cb,#e6cf95);
  box-shadow:inset 0 -5px 0 #ac8241
}
body[data-game-screen=ranking] #core-ranking-podium .ranking-podium-place-2{grid-column:1}
body[data-game-screen=ranking] #core-ranking-podium .ranking-podium-place-3{grid-column:3}
body[data-game-screen=ranking] #core-ranking-podium img{
  width:auto;max-width:100%;height:clamp(110px,15vw,176px);margin:0;object-fit:contain;
}
body[data-game-screen=ranking] #core-ranking-podium .ranking-podium-place-1 img{height:clamp(145px,18vw,208px)}
#core-ranking .ranking-world-label{
  display:block;margin:0;color:#725c3d;font-size:12px;line-height:1.35;font-weight:600;word-break:keep-all
}
body[data-game-screen=ranking] #core-ranking-podium h3{margin:0;line-height:1.35;word-break:keep-all;overflow-wrap:anywhere}
body[data-game-screen=ranking] #core-ranking-podium .ranking-record-open{
  min-height:36px;margin-inline:auto;line-height:inherit;text-align:center;font:inherit;font-weight:inherit
}
body[data-game-screen=ranking] #core-ranking-shared-entry .ranking-record-open{font:inherit}
body[data-game-screen=ranking] #core-ranking-podium .ranking-podium-stats{margin:0;line-height:1.45}
.ranking-podium-stats > :is(b,span),.ranking-story-pair{display:block}
.ranking-story-pair{color:#64523e;font-size:12px}
body[data-game-screen=ranking] #core-ranking-world-lead{margin:0 0 12px}
@media(max-width:640px){
  .public-ranking-book .public-record-portrait img{max-height:34dvh}
  body[data-game-screen=ranking] #core-ranking-podium{gap:6px}
  body[data-game-screen=ranking] #core-ranking-podium .ranking-podium-place{padding:8px 5px 10px}
  body[data-game-screen=ranking] #core-ranking-podium .ranking-podium-place > strong{font-size:20px}
  body[data-game-screen=ranking] #core-ranking-podium .ranking-podium-place-1 > strong{font-size:24px}
  body[data-game-screen=ranking] #core-ranking-podium h3{font-size:14px}
  body[data-game-screen=ranking] #core-ranking-podium .ranking-podium-stats{font-size:11px}
  body[data-game-screen=ranking] #core-ranking-world-lead{font-size:13px}
}
