/* Ribbons use the same cut, border and type for resource cost and cooldown. */
#battle-root .spell-panel-battle .combat-skill-cost {
  z-index:4;top:-3px;right:2px;bottom:auto;left:auto;display:flex;align-items:center;justify-content:center;gap:2px;
  width:auto;min-width:27px;max-width:calc(100% - 4px);height:21px;min-height:21px;padding:3px 4px 6px;
  border:1px solid #c5a46a;border-top:0;border-radius:2px 2px 4px 4px;background:linear-gradient(#f8e5b1,#e9cc84);color:#785e30;
  font:700 8px/10px Interface,sans-serif;letter-spacing:0;transform:none;text-shadow:none;
  clip-path:polygon(0 0,100% 0,100% 100%,50% 85%,0 100%);box-shadow:0 1px 2px #806d3a20;
}
#battle-root .spell-panel-battle .combat-skill-cooldown.on-cooldown {
  left:-2px;bottom:-2px;right:auto;top:auto;display:flex;width:auto;min-width:29px;height:21px;min-height:21px;padding:3px 4px 6px;
  border:1px solid #783246;border-top:0;border-radius:2px 2px 4px 4px;background:linear-gradient(#a14d60,#762a40);color:#fff4df;
  font:700 8px/10px Interface,sans-serif;text-shadow:none;clip-path:polygon(0 0,100% 0,100% 100%,50% 85%,0 100%);
}
#battle-root .spell-panel-battle .combat-skill-cooldown.on-cooldown::before{content:none;}
#battle-root .spell-panel-battle .combat-skill-panel {position:absolute;inset:0;}
#battle-root .spell-panel-battle .combat-skills-list{margin-left:25px;padding-left:9px;padding-top:5px;padding-bottom:6px;max-width:calc(100% - 25px);}
#battle-root .spell-panel-battle .combat-skill-swipe {position:absolute;left:0;top:29px;bottom:3px;width:25px;display:grid;place-items:center;background:none;color:#6c9186;touch-action:pan-y;}
#battle-root .spell-panel-battle .combat-skill-swipe span {font-size:20px;animation:skill-hint-left 1.6s ease-in-out infinite;}
#battle-root .spell-panel-battle .skills-button{position:relative;touch-action:pan-y;}
.skill-swipe-hint {position:absolute;left:7px;top:6px;font:14px/1 Interface,sans-serif;color:#789b8d;animation:skill-hint-right 1.6s ease-in-out infinite;}
@keyframes skill-hint-left{0%,100%{transform:translateX(2px);opacity:.55}50%{transform:translateX(-2px);opacity:1}}
@keyframes skill-hint-right{0%,100%{transform:translateX(-2px);opacity:.55}50%{transform:translateX(2px);opacity:1}}
#battle-root .spell-panel-battle .battle-hero-sprite.skill-pose {left:calc(50% - var(--skill-size) * (var(--skill-anchor,.5) - .5));}
#battle-root .spell-panel-battle .battle-effect.framed-effect .effect-painting {-webkit-mask-image:none;mask-image:none;border:0;border-radius:0;}
#battle-root .spell-panel-battle .monster-unit.defeated:not(.death-finished) .battle-actor{opacity:1;visibility:visible;}
#battle-root .spell-panel-battle .battle-finishing~.battle-console [data-fight],
#battle-root .spell-panel-battle.is-finishing [data-skills]{pointer-events:none;opacity:.55;}
#battle-root .spell-panel-battle .battle-drops .ground-loot{animation-duration:.68s;}

/* The location card follows the approved paper mockup for every destination. */
#destination.destination {height:var(--card);padding:12px 13px 11px;gap:7px;border:1px solid #e2d5ba;border-bottom:0;border-radius:18px 18px 0 0;
  background:radial-gradient(ellipse at 15% 0,#fffdf5 0,transparent 58%),linear-gradient(110deg,#faf1dc,#fffaec 55%,#f7edda);box-shadow:0 -3px 16px #61523612,inset 0 1px #fffef5;}
.destination-heading{display:flex;align-items:center;justify-content:center;gap:10px;min-height:13px;flex-shrink:0;}
.destination-heading::before,.destination-heading::after{content:'';height:1px;flex:1;background:linear-gradient(90deg,transparent,#b3a483);}
.destination-heading::after{transform:scaleX(-1);}
#destination .destination-heading .eyebrow{margin:0;color:#8b7854;font-size:9px;letter-spacing:1.3px;font-weight:700;white-space:nowrap;}
#destination .destination-top{min-height:69px;align-items:center;gap:11px;flex:1;}
#destination .destination-thumb{width:70px;height:70px;object-fit:cover;border:1px solid #e7ddc7;border-radius:12px;box-shadow:0 1px 3px #78694510;}
#destination h2{font:700 21px/1.1 Interface,sans-serif;letter-spacing:-.4px;color:#164541;}
#destination p{font-size:10px;line-height:1.4;margin-top:5px;color:#7b7e6c;}
#destination .destination-symbol{height:35px;width:35px;border-radius:10px;border:1px solid #e6d7b8;background:#f2e8cf;box-shadow:inset 0 1px 2px #a4947010;}
#destination .destination-symbol .icon{font-size:21px;color:#29685e;}
.destination-divider{display:flex;align-items:center;justify-content:center;gap:9px;height:6px;flex-shrink:0;}
.destination-divider::before,.destination-divider::after{content:'';height:1px;background:#c5b899;flex:1;}
.destination-divider i{display:block;width:7px;height:7px;border:1px solid #b0a17f;transform:rotate(45deg);box-shadow:inset 0 0 0 1px #fffae8; background:#c2b38b;}
#destination .destination-access{display:flex;align-items:center;justify-content:center;gap:8px;min-height:24px;margin:0;flex-shrink:0;}
#destination .destination-access>span {display:flex;align-items:center;gap:5px;border:1px solid #ccd4bd;border-radius:7px;padding:4px 9px;background:#e9eddd;color:#839678;font-size:10px;line-height:13px;}
#destination .destination-access.locked>span{color:#a17565;border-color:#d8c1af;background:#f0e4d7;}
#destination .destination-access small{font-size:8px;color:#9a9b81;}
#destination .primary{display:flex;align-items:center;justify-content:center;gap:9px;min-height:43px;flex-shrink:0;border:1px solid #2a665d;border-radius:11px;background:linear-gradient(#357f72,#25675f);box-shadow:inset 0 1px #80ad8f66,inset 0 -2px #174d4844;color:#fff8e5;font-size:15px;font-weight:700;}
#destination .primary>.icon{color:#e7d79d;font-size:22px;}
#destination .secondary-actions{display:flex;gap:6px;flex-shrink:0;}
#destination .secondary-actions .secondary {flex:1;min-width:0;min-height:35px;padding:5px 6px;gap:5px;display:flex;align-items:center;justify-content:center;border:1px solid #d4c3a0;border-radius:9px;background:#f7edd7;color:#315e54;font-size:10px;box-shadow:inset 0 1px #fff9ed;}
#destination .secondary-actions .secondary .icon{font-size:17px;}
@media(max-width:350px),(max-height:670px){#destination h2{font-size:18px}#destination .destination-thumb{height:60px;width:60px}#destination .destination-top{min-height:60px}#destination p{font-size:9px}#destination .primary{min-height:39px;font-size:14px}#destination .secondary-actions .secondary{min-height:31px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.skill-swipe-hint,#battle-root .spell-panel-battle .combat-skill-swipe span{animation:none;}}
.reduced-motion .skill-swipe-hint,.reduced-motion .combat-skill-swipe span{animation:none!important;}
