/* v1.0.8.16: summon information architecture and World Adventure battle layout. */

/* Issue 03, option A: two independent, scannable information cards. */
.summon-heading{align-items:flex-end;gap:24px}
.summon-heading-tools.summon-info-grid{width:min(790px,59vw);display:grid;grid-template-columns:minmax(0,1.32fr) minmax(260px,.98fr);align-items:stretch;gap:10px}
.summon-info-card{min-width:0;min-height:112px;border:1px solid #364651;background:#111a21;padding:12px 14px;box-shadow:inset 3px 0 #f4d83d24}
.summon-info-card.attribute-guide{width:auto;min-width:0}
.summon-heading-tools.summon-info-grid .attribute-guide{grid-column:auto;grid-row:auto}
.attribute-guide-head,.summon-rate-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.attribute-guide-head>span,.summon-rate-head>span{display:flex;align-items:center;gap:7px;color:#eef4f7}
.attribute-guide-head svg,.summon-rate-head svg{width:17px;height:17px;color:var(--yellow)}
.attribute-guide-head b,.summon-rate-head b{font:800 13px var(--display)}
.attribute-guide-head strong,.summon-rate-head strong{color:var(--yellow);font:800 11px var(--display)}
.attribute-cycle{display:flex;flex-wrap:wrap;align-items:center;gap:6px 7px;white-space:normal}
.attribute-cycle>span{gap:5px;padding:3px 5px;background:#ffffff05}
.attribute-cycle>span svg{width:14px;height:14px}.attribute-cycle>span b{font-size:11px}
.attribute-cycle>svg{width:13px;height:13px}.attribute-cycle>.attribute-loop{padding:3px 5px}
.summon-info-card>small{min-height:18px;margin-top:9px;color:#aab8c0;font-size:11px;line-height:1.45;white-space:normal}
.summon-info-card>small svg{width:14px;height:14px}
.summon-rate-guide{display:flex;flex-direction:column;background:linear-gradient(140deg,#171b20,#121a21);box-shadow:inset 3px 0 #63dbe766}
.summon-rate-head{margin-bottom:8px}.summon-rate-head>strong{color:#67dbe7}
.summon-rate-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.summon-rate-grid>span{min-width:0;padding:5px 4px;border:1px solid #31434c;background:#0c141a;display:grid;gap:2px;text-align:center}
.summon-rate-grid b{font:900 11px var(--display);color:#dce8ed}.summon-rate-grid em{font-style:normal;font-size:10px;color:#8ea7b2}
.summon-rate-grid>span:nth-child(1) b{color:#9cf4ff}.summon-rate-grid>span:nth-child(2) b{color:#ff83bd}.summon-rate-grid>span:nth-child(3) b{color:#e4bd5a}
.summon-rate-guide>small{margin-top:auto;color:#9cb9c3}

/* Custom pet details replace native browser titles in the battle roster. */
.pet-tooltip{position:fixed;z-index:2147483000;width:max-content;max-width:min(330px,calc(100vw - 20px));padding:9px 11px;border:1px solid #6ba7bd;background:#0d151bed;color:#edf3f5;box-shadow:0 10px 28px #000c,inset 3px 0 #6bdbe7;font:700 11px/1.55 var(--display);pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity .14s ease,transform .14s ease}
.pet-tooltip.visible{opacity:1;transform:none}

/* Issue 07: arena in the center, player roster left, enemy roster right, report outside the arena. */
.world-adventure-battle{grid-template-rows:auto minmax(430px,1fr) auto}
.world-adventure-combat{min-height:430px;display:grid;grid-template-columns:minmax(0,1fr) 254px;background:#0b1410}
.world-adventure-stage{min-height:430px;padding:0;display:grid;grid-template-columns:116px minmax(0,1fr) 116px;grid-template-rows:minmax(430px,1fr);isolation:isolate;background:#0b1410}
.world-adventure-stage:before{z-index:0;left:12%;right:12%;top:49%;height:32%;pointer-events:none}
.world-adventure-arena{position:relative;z-index:1;grid-column:1/-1;grid-row:1;min-width:0;min-height:430px;overflow:hidden;background:radial-gradient(ellipse at center,#244d393f 0 35%,transparent 66%),linear-gradient(#0e1915,#09110f)}
.world-adventure-arena canvas{position:absolute;inset:0;width:100%!important;height:100%!important}
.world-adventure-arena .arena-placeholder{background:#0b1410;color:#8fa99c}.world-adventure-arena .arena-placeholder span{font-size:12px}
.world-adventure-team{position:relative;z-index:4;align-self:center;display:grid;gap:9px;padding:12px 9px;pointer-events:auto}
.world-adventure-team.player{left:auto;right:auto;bottom:auto;grid-column:1;grid-row:1}.world-adventure-team.enemy{left:auto;right:auto;top:auto;grid-column:3;grid-row:1}
.world-adventure-team button{width:98px;height:76px;grid-template-columns:42px minmax(0,1fr);padding:6px;background:#101b17e8}
.world-adventure-team img{width:42px;height:46px}.world-adventure-team b{font-size:10px}.world-adventure-team small{font-size:9px}.world-adventure-team .wa-mini-hp{height:3px;bottom:5px}
.world-adventure-duel{z-index:3;grid-column:2;grid-row:1;align-self:end;display:grid;grid-template-columns:minmax(0,1fr) 74px minmax(0,1fr);gap:8px;padding:0 14px 14px;pointer-events:none}
.world-adventure-fighter .wa-fighter-meta{max-width:280px;padding:10px 11px;background:#0b1310e6}.world-adventure-fighter h3{font-size:15px}.world-adventure-fighter .wa-fighter-top span{font-size:11px}.world-adventure-fighter .wa-hp{height:7px;margin:8px 0 6px}.world-adventure-fighter .wa-stats{font-size:11px;line-height:1.4}.world-adventure-statuses span{font-size:10px}.world-adventure-versus span{font-size:26px}.world-adventure-versus small{font-size:10px}
.world-adventure-log{position:relative;z-index:2;inset:auto;width:auto;max-height:none;min-height:430px;padding:15px 14px;border:0;border-left:1px solid var(--wa-line);background:#0c1712;overflow:auto}
.world-adventure-log>small{margin-bottom:10px;font-size:10px}.world-adventure-log p{padding:9px 0;color:#b2c2b9;font-size:12px;line-height:1.55}
.world-adventure-roundbar>div:first-child small,.world-adventure-intent span,.world-adventure-intent small,.world-adventure-timer span{font-size:10px}.world-adventure-intent strong{font-size:13px}.world-adventure-timer strong{font-size:20px}
.world-adventure-command-head small,.world-adventure-command-head strong{font-size:12px}.world-adventure-card b{font-size:13px}.world-adventure-card small{font-size:11px;line-height:1.45}.world-adventure-card em{font-size:9px}.world-adventure-switches>span,.world-adventure-switches button{font-size:11px}

@media(max-width:1180px){
  .summon-heading-tools.summon-info-grid{width:min(710px,62vw);grid-template-columns:minmax(0,1fr) minmax(240px,.92fr)}
  .world-adventure-combat{grid-template-columns:minmax(0,1fr) 212px}.world-adventure-stage{grid-template-columns:100px minmax(0,1fr) 100px}.world-adventure-team button{width:84px;height:71px;grid-template-columns:35px minmax(0,1fr)}.world-adventure-team img{width:35px;height:41px}.world-adventure-team b{font-size:9px}.world-adventure-team small{font-size:8px}.world-adventure-log{padding:13px 11px}
}
@media(max-width:900px){
  .summon-heading{display:grid;grid-template-columns:1fr;align-items:start}.summon-heading-tools.summon-info-grid{width:100%;grid-template-columns:minmax(0,1.2fr) minmax(250px,.9fr)}
  .world-adventure-combat{grid-template-columns:1fr}.world-adventure-log{min-height:0;max-height:180px;border-left:0;border-top:1px solid var(--wa-line);order:2}.world-adventure-stage{min-height:400px;grid-template-rows:minmax(400px,1fr)}.world-adventure-arena{min-height:400px}
}
@media(max-width:640px){
  .summon-heading-tools.summon-info-grid{grid-template-columns:1fr;gap:8px}.summon-info-card{min-height:0;padding:11px}.attribute-guide-head b,.summon-rate-head b{font-size:12px}.attribute-guide-head strong,.summon-rate-head strong{font-size:10px}.attribute-cycle{gap:4px}.attribute-cycle>span{padding:3px 4px}.attribute-cycle>span b{font-size:10px}.summon-rate-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.summon-rate-grid>span{padding:4px 1px}.summon-rate-grid b{font-size:9px}.summon-rate-grid em{font-size:8px}
  .pet-tooltip{max-width:min(280px,calc(100vw - 16px));font-size:10px}
  .world-adventure-battle{grid-template-rows:auto minmax(345px,1fr) auto;padding-bottom:0}.world-adventure-roundbar{min-height:102px;grid-template-columns:58px minmax(115px,1fr) 84px 34px}.world-adventure-roundbar>div:first-child strong{font-size:14px}.world-adventure-intent{height:58px;padding:6px 7px}.world-adventure-intent span,.world-adventure-intent small{font-size:9px}.world-adventure-intent strong{font-size:11px}.world-adventure-timer strong{font-size:16px}
  .world-adventure-stage{min-height:345px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(345px,1fr);align-items:start}.world-adventure-arena{min-height:345px}.world-adventure-team{display:flex;align-self:start;padding:7px;gap:4px}.world-adventure-team.player{grid-column:1;grid-row:1}.world-adventure-team.enemy{grid-column:2;grid-row:1;justify-content:flex-end}.world-adventure-team button{width:48px;min-width:0;height:54px;padding:3px;display:block}.world-adventure-team button:not(.active){opacity:.82}.world-adventure-team img{display:block;width:29px;height:31px;margin:auto}.world-adventure-team button>span{display:none}.world-adventure-team .wa-mini-hp{left:4px;right:4px;bottom:3px}.world-adventure-team em{font-size:7px}
  .world-adventure-duel{grid-column:1/-1;grid-row:1;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);gap:3px;padding:0 7px 8px}.world-adventure-fighter .wa-fighter-meta{padding:6px}.world-adventure-fighter h3{font-size:11px}.world-adventure-fighter .wa-fighter-top span{font-size:9px}.world-adventure-fighter .wa-hp{height:5px;margin:5px 0}.world-adventure-fighter .wa-stats{font-size:9px;display:grid;gap:2px}.world-adventure-statuses{min-height:0;margin-top:4px}.world-adventure-statuses span{font-size:8px}.world-adventure-fighter .attribute-badge{display:none}.world-adventure-versus span{font-size:18px}.world-adventure-versus small{font-size:8px}.world-adventure-log{max-height:150px;padding:10px}.world-adventure-log>small{font-size:9px}.world-adventure-log p{padding:7px 0;font-size:11px}.world-adventure-command-head small,.world-adventure-command-head strong{font-size:11px}.world-adventure-card b{font-size:11px}.world-adventure-card small{font-size:10px}.world-adventure-switches>span,.world-adventure-switches button{font-size:10px}
}
