/* v1.0.8.20: compact mobile summon guidance and a visible WebGL fallback arena. */

.attribute-mobile-summary{display:none}

/* A small, deterministic fallback keeps the battle view useful when Edge blocks WebGL. */
.battle-canvas.has-3d.fallback-3d .arena-fallback-scene{position:absolute;inset:0;z-index:1;overflow:hidden;background:radial-gradient(ellipse at 50% 74%,#52756e 0,#1b3535 32%,#0b151c 74%)}
.arena-fallback-scene:before{content:'';position:absolute;left:50%;bottom:-34%;width:min(86vw,760px);aspect-ratio:1.7;transform:translateX(-50%) rotateX(57deg);border:12px solid #89b7a1;border-radius:50%;background:repeating-radial-gradient(ellipse,#234b47 0 10%,#193437 10.5% 11%,#284f49 11.5% 22%);box-shadow:0 0 80px #60d5bb55}
.arena-fallback-scene:after{content:'WEBGL 兼容场景';position:absolute;left:50%;top:16px;transform:translateX(-50%);padding:5px 9px;border:1px solid #5e8a8d;background:#09151ad9;color:#b8e7de;font:700 9px var(--display);letter-spacing:1px}
.arena-fallback-actor{position:absolute;z-index:2;bottom:26%;display:grid;justify-items:center;gap:3px;min-width:110px;transition:transform .22s ease,filter .22s ease,opacity .22s ease}
.arena-fallback-actor.mine{left:18%}.arena-fallback-actor.enemy{right:18%}
.arena-fallback-actor img{width:clamp(86px,14vw,150px);height:clamp(86px,14vw,150px);object-fit:contain;filter:drop-shadow(0 15px 12px #0009)}
.arena-fallback-actor span{max-width:150px;padding:3px 7px;border:1px solid #5e7b82;background:#071218dc;color:#edf8f4;font:700 10px var(--display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arena-fallback-actor.hit{animation:fallback-hit .34s ease}.arena-fallback-actor.attack{animation:fallback-attack .42s ease}.arena-fallback-actor.buff{animation:fallback-buff .42s ease}
@keyframes fallback-hit{25%{transform:translateX(-9px);filter:brightness(1.7)}60%{transform:translateX(7px)}100%{transform:none}}
@keyframes fallback-attack{50%{transform:translateX(18px) scale(1.05)}}
@keyframes fallback-buff{50%{transform:translateY(-14px) scale(1.04)}}

@media(max-width:640px){
  .content{padding-top:82px}
  .summon-heading{margin-bottom:9px;gap:6px}
  .summon-heading>div:first-child{display:flex;align-items:baseline;gap:8px}
  .summon-heading .eyebrow{margin:0;font-size:8px;letter-spacing:1.2px}
  .summon-heading h2{font-size:27px}
  .summon-heading-tools.summon-info-grid{grid-template-columns:minmax(0,1fr) minmax(112px,.55fr);gap:6px}
  .summon-info-card{padding:8px 9px;min-height:72px;box-shadow:inset 2px 0 #f4d83d20}
  .attribute-guide-head,.summon-rate-head{margin-bottom:5px;gap:4px}
  .attribute-guide-head svg,.summon-rate-head svg{width:13px;height:13px}
  .attribute-guide-head b,.summon-rate-head b{font-size:10px}
  .attribute-guide-head strong,.summon-rate-head strong{font-size:8px;white-space:nowrap}
  .attribute-cycle{display:flex;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:3px;scrollbar-width:none}
  .attribute-cycle::-webkit-scrollbar{display:none}
  .attribute-cycle>span,.attribute-cycle>svg{flex:0 0 auto}
  .attribute-guide>small,.attribute-guide-copy,.attribute-mobile-summary{display:none}
  .summon-rate-head>strong{display:none}
  .summon-rate-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}
  .summon-rate-grid>span{padding:3px 1px;gap:1px}
  .summon-rate-grid b{font-size:8px}.summon-rate-grid em{font-size:7px}
  .summon-rate-copy,.summon-rate-guide>small{display:none}
  .summon-stage{min-height:520px}
  .summon-copy{padding:22px 18px}
  .summon-copy h3{margin:13px 0;font-size:52px}
  .summon-copy>p{max-width:230px;font-size:11px;line-height:1.55}
  .rate-row{margin:18px 0}
  .summon-button{width:198px;height:54px;padding-inline:16px}
  .featured-pokemon{right:-125px;bottom:-15px}.featured-pokemon>img{width:360px}
  .arena-fallback-actor{bottom:28%;min-width:80px}.arena-fallback-actor.mine{left:8%}.arena-fallback-actor.enemy{right:8%}
  .arena-fallback-actor img{width:82px;height:82px}.arena-fallback-actor span{max-width:94px;font-size:8px}
}
