:root {
  --ink: #153d3a;
  --ink-soft: #416663;
  --muted: #6f8885;
  --paper: #f7fbf9;
  --white: #fff;
  --line: rgba(21, 61, 58, 0.12);
  --green: #17856f;
  --green-dark: #0d6657;
  --mint: #dff5ec;
  --yellow: #ffd56a;
  --coral: #ef7d67;
  --blue: #4aa6c5;
  --shadow: 0 16px 40px rgba(20, 68, 62, 0.14);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #dff4f2; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 213, 106, 0.68), transparent 28%),
    linear-gradient(160deg, #e8fbff 0%, #e9f8ef 58%, #fff8df 100%);
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.48; }

.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 0 calc(96px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 10px;
  z-index: 20;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 28px rgba(20, 68, 62, 0.1);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 23px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.top-stats { display: flex; align-items: center; gap: 7px; }
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.ghost-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.screen { padding-top: 26px; padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
.eyebrow { color: var(--green-dark); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.section-title { margin: 8px 0 6px; font-size: clamp(30px, 6vw, 52px); line-height: 1.08; }
.section-lead { max-width: 690px; margin: 0; color: var(--ink-soft); line-height: 1.75; }

.adoption-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.pet-choice {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}
.pet-choice.selected { border-color: var(--green); transform: translateY(-4px); }
.pet-choice.is-locked { cursor: not-allowed; opacity: .58; filter: grayscale(.75); box-shadow: none; }
.pet-choice.is-locked:hover, .pet-choice.is-locked:focus-visible { border-color: transparent; transform: none; }
.pet-choice.is-locked img { filter: saturate(.55); }
.pet-choice.is-locked .pet-choice-body { background: #f4f6f4; }
.locked-tick { position: absolute; top: 10px; right: 10px; padding: 6px 8px; border-radius: 6px; background: rgba(32, 45, 42, .86); color: #fff; font-size: 11px; font-weight: 900; }
.pet-choice img { width: 100%; height: 225px; object-fit: cover; display: block; }
.pet-choice-body { padding: 14px; }
.pet-choice h3 { margin: 0; font-size: 21px; }
.pet-choice p { min-height: 42px; margin: 7px 0 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.pet-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pet-tags span { padding: 4px 7px; border-radius: 6px; background: var(--mint); color: var(--green-dark); font-size: 10px; font-weight: 800; }
.selected-tick { position: absolute; top: 10px; right: 10px; padding: 6px 8px; border-radius: 6px; background: var(--green); color: #fff; font-size: 11px; font-weight: 900; }

.adopt-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}
.field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 900; }
.field input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid rgba(21, 61, 58, 0.2); border-radius: 7px; background: #fff; color: var(--ink); outline: none; }
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 133, 111, 0.12); }

.primary-btn, .secondary-btn, .action-btn, .buy-btn, .use-btn {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  padding: 0 16px;
  font-weight: 900;
}
.primary-btn { background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--green-dark); }
.secondary-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); }

.dashboard { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr); gap: 18px; }
.pet-stage {
  position: relative;
  isolation: isolate;
  min-height: 590px;
  overflow: hidden;
  border-radius: 8px;
  background: #0f554e;
  box-shadow: var(--shadow);
}
.pet-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pet-stage::after { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(180deg, rgba(6, 28, 28, 0.04) 30%, rgba(6, 28, 28, 0.78) 100%); pointer-events: none; }
.home-action-video { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; background: #0f554e; pointer-events: none; animation: home-video-in .22s ease-out both; transition: opacity .32s ease; }
.pet-stage.has-home-video .mascot-scene { visibility: hidden; }
.pet-stage.is-home-video-ending .home-action-video { opacity: 0; }
.stage-badge { position: absolute; z-index: 3; top: 16px; left: 16px; padding: 8px 10px; border-radius: 7px; background: rgba(255,255,255,.9); color: var(--ink); font-size: 12px; font-weight: 900; }
.pet-speech { position: absolute; z-index: 3; top: 18px; right: 16px; max-width: 220px; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 12px; line-height: 1.55; }
.stage-bottom { position: absolute; z-index: 4; left: 18px; right: 18px; bottom: 18px; color: #fff; }
.pet-name-line { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.pet-name-line h1 { margin: 0; font-size: 36px; }
.pet-name-line span { font-size: 12px; font-weight: 800; opacity: .9; }
.equipped-line { margin-top: 8px; font-size: 12px; }
.pet-name-line h1, .equipped-line { text-shadow: 0 2px 10px rgba(4,40,38,.72); }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.action-btn { background: rgba(255,255,255,.94); color: var(--ink); }
.action-btn:hover { background: #fff; }
.pet-speech.reacting { background: #fff8d8; box-shadow: 0 9px 24px rgba(20,68,62,.18); animation: speech-pop .48s both; }
.action-prop { position: absolute; z-index: 2; bottom: 24%; font-size: 56px; line-height: 1; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0,0,0,.22)); animation: prop-hop .85s ease-in-out infinite alternate; }
.food-prop { left: 10%; }
.toy-prop { right: 9%; }
.bubble-layer { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.bubble-layer i { position: absolute; left: calc(4% + var(--i) * 6.2%); bottom: calc(34% + var(--i) * 2.4%); width: calc(12px + var(--i) * 2px); height: calc(12px + var(--i) * 2px); border: 2px solid rgba(255,255,255,.92); border-radius: 50%; background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.98), rgba(124,222,255,.68) 48%, rgba(124,222,255,.08)); box-shadow: 0 0 12px rgba(176,236,255,.55); animation: bubble-rise 2.25s ease-out both; animation-delay: calc(var(--i) * .04s); opacity: 0; }
.pet-stage.react-feed .pet-photo { animation: pet-nibble 2.4s ease-in-out both; }
.pet-stage.react-bath .pet-photo { animation: pet-scrub 2.4s ease-in-out both; }
.pet-stage.react-play .pet-photo { animation: pet-bounce 2.4s ease-in-out both; }
@keyframes home-video-in { from { opacity: .35; transform: scale(1.015); } to { opacity: 1; transform: scale(1); } }

.side-panel { display: grid; align-content: start; gap: 12px; }
.panel { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.9); box-shadow: 0 12px 30px rgba(20,68,62,.08); }
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.meter { margin-top: 12px; }
.meter-label { display: flex; justify-content: space-between; margin-bottom: 5px; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.meter-track { height: 9px; overflow: hidden; border-radius: 6px; background: #e7efec; }
.meter-track span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .35s ease; }
.meter.clean .meter-track span { background: var(--blue); }
.meter.happy .meter-track span { background: var(--coral); }
.meter.growth .meter-track span { background: #d59a24; }
.tip-card { padding: 14px; border-radius: 8px; background: #fff5d8; color: #76591c; font-size: 12px; line-height: 1.7; }

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(640px, calc(100% - 22px));
  padding: 7px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 36px rgba(20,68,62,.18);
  backdrop-filter: blur(16px);
}
.nav-btn { position: relative; min-height: 48px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 900; }
.nav-btn > span { position: relative; display: block; margin-bottom: 2px; font-size: 19px; }
.nav-btn.active { background: var(--green); color: #fff; }
.nav-badge { position: absolute; top: -6px; right: -13px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #fff; border-radius: 10px; background: var(--coral); color: #fff; font-size: 9px; font-style: normal; line-height: 1; }

.page-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.page-head h1 { margin: 5px 0 0; font-size: 34px; }
.page-head p { margin: 0; color: var(--muted); font-size: 12px; }

.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.shop-grid, .bag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mode-card, .shop-card, .bag-card { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.92); box-shadow: 0 12px 30px rgba(20,68,62,.08); }
.mode-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: var(--mint); font-size: 25px; }
.mode-card h3, .shop-card h3, .bag-card h3 { margin: 12px 0 5px; }
.mode-card p, .shop-card p, .bag-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.mode-progress { margin: 14px 0 12px; color: var(--green-dark); font-size: 11px; font-weight: 900; }
.mode-card .primary-btn { width: 100%; }
.unit-banner { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 16px; border: 1px solid rgba(23,133,111,.22); border-radius: 8px; background: linear-gradient(120deg, #dff5ec, #fff5d8); }
.unit-banner strong { display: block; font-size: 20px; }
.unit-banner span { color: var(--ink-soft); font-size: 12px; }
.locked-unit { margin-top: 16px; padding: 16px; border: 1px dashed rgba(21,61,58,.24); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.62); }

.shop-card, .bag-card { display: flex; flex-direction: column; min-height: 225px; }
.item-art { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 8px; background: #eef8f4; font-size: 36px; }
.item-meta { display: flex; justify-content: space-between; margin-top: auto; padding: 12px 0 8px; font-size: 12px; font-weight: 900; }
.buy-btn { background: var(--yellow); color: #59410b; }
.use-btn { background: var(--green); color: #fff; }
.item-owned { color: var(--green-dark); }

.quiz-wrap { width: min(760px, 100%); margin: 0 auto; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.quiz-progress-wrap { display: flex; align-items: center; gap: 10px; }
.combo-badge { padding: 5px 9px; border-radius: 999px; background: #fff0be; color: #8a5200; font-size: 11px; font-weight: 1000; box-shadow: 0 4px 12px rgba(143,91,0,.12); animation: combo-pop .35s both; }
.quiz-progress { display: flex; gap: 6px; }
.quiz-progress span { width: 34px; height: 7px; border-radius: 5px; background: #dbe7e3; }
.quiz-progress span.done { background: var(--green); }
.quiz-card { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.quiz-card h2 { margin: 10px 0 8px; font-size: clamp(26px, 6vw, 40px); }
.quiz-card.wrong-shake { animation: quiz-shake .42s ease-in-out both; border-color: rgba(220,92,67,.48); }
.quiz-prompt { color: var(--muted); font-size: 13px; }
.audio-command { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-weight: 900; }
.letter-slots, .letter-bank { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin: 20px 0; }
.letter-slot, .letter-tile { display: grid; place-items: center; width: 46px; height: 50px; border-radius: 7px; font-size: 22px; font-weight: 900; }
.letter-slot { border: 2px dashed #b8cbc5; background: #f4f8f6; }
.letter-slot.filled { border-style: solid; border-color: var(--green); background: var(--mint); }
.letter-tile { border: 0; background: var(--yellow); color: #59410b; box-shadow: 0 4px 0 #d4a93e; }
.option-list { display: grid; gap: 10px; margin-top: 20px; }
.option-btn { min-height: 54px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); text-align: left; font-weight: 800; }
.option-btn:hover { border-color: var(--green); background: var(--mint); }
.wordfill-card { display: grid; justify-items: center; gap: 5px; margin: 16px auto 0; padding: 18px 14px 16px; border: 1px solid rgba(23,133,111,.18); border-radius: 14px; background: linear-gradient(145deg, #fffdf4, #eafaf2); }
.wordfill-emoji { font-size: clamp(48px, 11vw, 68px); line-height: 1; animation: wordfill-bob 1.8s ease-in-out infinite; }
.wordfill-zh { color: var(--ink-soft); font-size: 14px; }
.wordfill-pattern { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 7px; font-size: clamp(30px, 8vw, 48px); font-weight: 1000; line-height: 1.15; letter-spacing: .03em; }
.wordfill-pattern span { min-width: .48em; text-align: center; }
.wordfill-blank { display: inline-grid; place-items: center; min-width: 1.08em; height: 1.18em; border-radius: 9px; background: #fff3ae; color: #9a5d00; box-shadow: 0 0 0 3px rgba(255,211,75,.32), 0 0 20px rgba(255,190,20,.5); animation: blank-glow 1.25s ease-in-out infinite; }
.wordfill-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 430px; margin: 20px auto 0; }
.wordfill-option { min-height: 68px; padding: 8px; border: 2px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font-size: 27px; font-weight: 1000; transition: transform .15s, background .15s, border-color .15s; }
.wordfill-option:hover { transform: translateY(-2px); border-color: var(--green); background: var(--mint); }
.wordfill-option:active { transform: scale(.94); }
.quiz-feedback { min-height: 28px; margin-top: 14px; color: var(--coral); font-size: 13px; font-weight: 900; }
.speak-card { padding: 18px; border-radius: 8px; background: #eff8ff; text-align: center; }
.speak-sentence { margin: 8px 0; font-size: clamp(25px, 6vw, 40px); font-weight: 900; }
.speak-zh { color: var(--muted); font-size: 13px; }
.read-rule { display: inline-block; margin-top: 14px; padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--green-dark); font-size: 11px; font-weight: 900; box-shadow: 0 5px 12px rgba(20,68,62,.08); }
.read-mode-note { max-width: 560px; margin: 8px auto 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.record-row { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.record-status { min-height: 24px; margin-top: 10px; color: var(--green-dark); font-size: 12px; font-weight: 800; }
.record-status.listening { color: #176b94; }
.record-status.pass { color: var(--green-dark); }
.record-status.fail { color: #b3422e; }
.read-score { width: fit-content; max-width: 100%; margin: 12px auto 0; padding: 9px 12px; border-radius: 7px; background: #fff; font-size: 13px; font-weight: 900; }
.read-score.pass { background: var(--mint); color: var(--green-dark); }
.read-score.fail { background: #ffebe6; color: #a23d2b; }
.record-playback { width: 100%; margin-top: 10px; }
.self-check { margin-top: 12px; padding: 12px; border: 1px dashed rgba(23,133,111,.3); border-radius: 8px; background: #fff; }
.self-check p { margin: 0 0 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.self-check > div { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.self-check .primary-btn, .self-check .secondary-btn { min-height: 44px; padding: 0 14px; }

.modal-layer { display: grid; place-items: center; position: fixed; z-index: 60; inset: 0; padding: 18px; background: rgba(8,34,32,.64); }
.modal-card { width: min(520px, 100%); max-height: 88vh; overflow: auto; padding: 20px; border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); }
.modal-card h2 { margin: 0 0 6px; }
.modal-card > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.feed-list { display: grid; gap: 9px; }
.feed-row { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.feed-row .emoji { font-size: 28px; }
.feed-row div { flex: 1; }
.feed-row strong, .feed-row small { display: block; }
.feed-row small { color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 90px; max-width: calc(100% - 28px); padding: 10px 14px; transform: translate(-50%, 20px); border-radius: 7px; background: #123f3a; color: #fff; font-size: 12px; font-weight: 800; opacity: 0; pointer-events: none; transition: .22s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.bingo { display: grid; place-items: center; position: fixed; z-index: 120; inset: 0; background: rgba(12,71,62,.38); }
.bingo-card { padding: 24px 34px; border: 4px solid #fff; border-radius: 8px; background: var(--yellow); color: #184c45; box-shadow: 0 18px 40px rgba(0,0,0,.18); text-align: center; animation: pop .55s both; }
.bingo-card span { display: block; font-size: 42px; font-weight: 1000; }
.bingo-card small { font-weight: 900; }
.care-fx { position: fixed; z-index: 90; inset: 0; pointer-events: none; overflow: hidden; }
.fx-piece { position: absolute; font-size: 26px; animation: float-up 1.7s ease-out forwards; }

.pet-photo { transform: scale(var(--pet-zoom, 1)); transform-origin: 50% 58%; transition: transform .5s ease; }
.quick-actions .action-btn small { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 3px; padding: 0 4px; border-radius: 10px; background: var(--mint); color: var(--green-dark); font-size: 10px; }
.unit-snapshot { display: grid; gap: 11px; }
.snapshot-head { display: flex; align-items: center; gap: 10px; }
.snapshot-head > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: var(--mint); font-size: 23px; }
.snapshot-head small, .snapshot-head strong { display: block; }
.snapshot-head small { color: var(--muted); font-size: 10px; }
.snapshot-progress { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding-top: 9px; border-top: 1px solid var(--line); }
.snapshot-progress b { color: var(--green-dark); font-size: 18px; }
.snapshot-progress span { color: var(--muted); font-size: 10px; text-align: right; }

.unit-map { margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.72); }
.book-shelf { margin: 0 0 14px; }
.book-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 9px; scrollbar-width: none; }
.book-tabs::-webkit-scrollbar { display: none; }
.book-tab { flex: 0 0 auto; min-width: 76px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-align: left; scroll-snap-align: start; }
.book-tab b { font-size: 17px; line-height: 1; }
.book-tab small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.book-tab em { grid-column: 1 / -1; margin-top: 4px; color: var(--green-dark); font-size: 9px; font-style: normal; font-weight: 800; }
.book-tab.active { border-color: var(--green); background: var(--mint); box-shadow: inset 0 0 0 1px var(--green); }
.book-tab.locked { border-style: dashed; opacity: .58; }
.unit-map-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.unit-map-head b { font-size: 17px; }
.unit-map-head span { color: var(--muted); font-size: 11px; }
.unit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.unit-card { display: flex; align-items: center; gap: 10px; min-height: 74px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-align: left; }
.unit-card:hover { border-color: var(--green); }
.unit-card.active { border: 2px solid var(--green); background: var(--mint); }
.unit-card.complete { border-color: rgba(23,133,111,.35); }
.unit-card.locked { border-style: dashed; background: rgba(255,255,255,.48); color: var(--muted); }
.unit-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 8px; background: #edf7f3; font-size: 22px; }
.unit-card.complete .unit-icon { background: var(--green); color: #fff; }
.unit-copy { min-width: 0; }
.unit-copy small, .unit-copy strong, .unit-copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit-copy small { color: var(--muted); font-size: 9px; }
.unit-copy strong { margin: 2px 0; font-size: 14px; }
.unit-copy em { color: var(--green-dark); font-size: 10px; font-style: normal; font-weight: 800; }
.unit-card.locked .unit-copy em { color: var(--muted); }

.unit-banner > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.unit-banner-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 8px; background: #fff; font-size: 27px; }
.unit-banner > div > div { min-width: 0; }
.unit-banner > b { align-self: center; color: var(--green-dark); font-size: 17px; white-space: nowrap; }
.mode-card.done { border-color: rgba(23,133,111,.3); background: linear-gradient(145deg, #fff, #f1fbf6); }
.mode-card.done .mode-icon { background: var(--green); color: #fff; }
.completion-card { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 15px; border: 1px solid rgba(23,133,111,.25); border-radius: 8px; background: var(--mint); }
.completion-card b { white-space: nowrap; }
.completion-card span { color: var(--ink-soft); font-size: 12px; }

.listen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.listen-option { display: grid; justify-items: center; gap: 4px; min-height: 140px; padding: 15px 8px; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.listen-option:hover { border-color: var(--green); background: var(--mint); }
.listen-option span { font-size: 40px; }
.listen-option strong { font-size: 17px; }
.listen-option small { color: var(--muted); }
.quiz-zh { margin: 0; color: var(--muted); }

.review-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px; border: 1px solid rgba(23,133,111,.22); border-radius: 8px; background: linear-gradient(120deg, #dff5ec, #fff5d8); }
.review-count { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: #fff; color: var(--green-dark); box-shadow: 0 9px 22px rgba(20,68,62,.1); }
.review-count span { font-size: 34px; font-weight: 1000; line-height: 1; }
.review-count small { font-size: 10px; font-weight: 900; }
.review-hero h2, .review-hero strong { display: block; font-size: 19px; }
.review-hero p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.review-stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin: 14px 0; }
.review-stages div { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.7); }
.review-stages b { color: var(--green-dark); font-size: 13px; }
.review-stages span { color: var(--muted); font-size: 9px; }
.review-list { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.8); }
.review-list-head, .review-row { display: flex; align-items: center; gap: 11px; padding: 12px 14px; }
.review-list-head { justify-content: space-between; border-bottom: 1px solid var(--line); }
.review-list-head span { color: var(--muted); font-size: 10px; }
.review-row + .review-row { border-top: 1px solid var(--line); }
.review-type { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; background: var(--mint); font-size: 19px; }
.review-row > div { flex: 1; min-width: 0; }
.review-row strong, .review-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-row small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.review-row > b { color: var(--green-dark); font-size: 11px; white-space: nowrap; }
.empty-state { display: grid; justify-items: center; gap: 9px; padding: 34px 18px; border: 1px dashed rgba(21,61,58,.22); border-radius: 8px; background: rgba(255,255,255,.58); text-align: center; }
.empty-state > span { font-size: 44px; }
.empty-state h2, .empty-state p { margin: 0; }
.empty-state p { color: var(--muted); font-size: 12px; }
.empty-state button { width: min(240px, 100%); }

@keyframes pop { 0% { transform: scale(.5) rotate(-6deg); opacity: 0; } 70% { transform: scale(1.08) rotate(2deg); } 100% { transform: scale(1); opacity: 1; } }
@keyframes combo-pop { 0% { transform: scale(.5) rotate(-8deg); opacity: 0; } 70% { transform: scale(1.12) rotate(3deg); } 100% { transform: scale(1); opacity: 1; } }
@keyframes wordfill-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes quiz-shake { 0%, 100% { transform: translateX(0); } 18% { transform: translateX(-7px); } 36% { transform: translateX(6px); } 54% { transform: translateX(-5px); } 72% { transform: translateX(4px); } 86% { transform: translateX(-2px); } }
@keyframes blank-glow { 0%, 100% { box-shadow: 0 0 0 3px rgba(255,211,75,.28), 0 0 12px rgba(255,190,20,.35); } 50% { box-shadow: 0 0 0 5px rgba(255,211,75,.5), 0 0 26px rgba(255,190,20,.7); } }
@keyframes float-up { from { transform: translateY(0) scale(.7); opacity: 1; } to { transform: translateY(-240px) scale(1.35); opacity: 0; } }
@keyframes speech-pop { 0% { transform: scale(.82) translateY(6px); opacity: .35; } 70% { transform: scale(1.04) translateY(0); } 100% { transform: scale(1); opacity: 1; } }
@keyframes prop-hop { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-9px) rotate(4deg); } }
@keyframes bubble-rise { 0% { transform: translateY(30px) scale(.45); opacity: 0; } 18% { opacity: .95; } 100% { transform: translateY(-330px) scale(1.18); opacity: 0; } }
@keyframes pet-nibble { 0%, 100% { transform: scale(var(--pet-zoom, 1)) translateY(0) rotate(0); } 22% { transform: scale(var(--pet-zoom, 1)) translate(8px, 20px) rotate(1.5deg); } 46% { transform: scale(var(--pet-zoom, 1)) translate(0, 8px) rotate(-1deg); } 70% { transform: scale(var(--pet-zoom, 1)) translate(9px, 22px) rotate(1.2deg); } 88% { transform: scale(var(--pet-zoom, 1)) translate(0, 5px) rotate(0); } }
@keyframes pet-scrub { 0%, 100% { transform: scale(var(--pet-zoom, 1)) translateX(0) rotate(0); } 15% { transform: scale(var(--pet-zoom, 1)) translateX(-12px) rotate(-1.5deg); } 32% { transform: scale(var(--pet-zoom, 1)) translateX(12px) rotate(1.5deg); } 50% { transform: scale(var(--pet-zoom, 1)) translateX(-10px) rotate(-1deg); } 68% { transform: scale(var(--pet-zoom, 1)) translateX(10px) rotate(1deg); } 84% { transform: scale(var(--pet-zoom, 1)) translateX(-5px) rotate(0); } }
@keyframes pet-bounce { 0%, 100% { transform: scale(var(--pet-zoom, 1)) translateY(0); } 18% { transform: scale(var(--pet-zoom, 1)) translateY(-24px) scale(1.02); } 38% { transform: scale(var(--pet-zoom, 1)) translateY(0); } 56% { transform: scale(var(--pet-zoom, 1)) translateY(-16px) scale(1.015); } 74% { transform: scale(var(--pet-zoom, 1)) translateY(0); } 88% { transform: scale(var(--pet-zoom, 1)) translateY(-8px); } }

@media (max-width: 900px) {
  .adoption-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard { grid-template-columns: 1fr; }
  .pet-stage { min-height: 560px; }
  .mode-grid, .shop-grid, .bag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-hero { grid-template-columns: auto minmax(0, 1fr); }
  .review-hero .primary-btn { grid-column: 1 / -1; width: 100%; }
}


@media (max-width: 560px) {
  .app-shell { width: min(100% - 18px, 1180px); padding-top: calc(8px + env(safe-area-inset-top)); }
  .topbar { top: 5px; }
  .brand small { display: none; }
  .stat-chip { min-height: 34px; padding: 5px 7px; font-size: 11px; }
  .growth-chip { display: none; }
  .screen { padding-top: 18px; }
  .section-title { font-size: 36px; }
  .adoption-grid { grid-template-columns: 1fr; }
  .pet-choice { min-height: auto; }
  .pet-choice img { height: 250px; }
  .adopt-bar { grid-template-columns: 1fr; }
  .adopt-bar .primary-btn { width: 100%; }
  .pet-stage { min-height: 530px; }
  .pet-speech { max-width: 170px; }
  .pet-name-line h1 { font-size: 30px; }
  .quick-actions { gap: 6px; }
  .action-btn { padding: 0 7px; font-size: 12px; }
  .page-head { align-items: start; flex-direction: column; }
  .mode-grid { grid-template-columns: 1fr; }
  .shop-grid, .bag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit-card { min-height: 70px; padding: 8px; gap: 8px; }
  .unit-icon { flex-basis: 32px; width: 32px; height: 32px; font-size: 18px; }
  .unit-copy small { display: none; }
  .unit-copy strong { font-size: 13px; }
  .quiz-card { padding: 18px 13px; }
  .letter-slot, .letter-tile { width: 40px; height: 44px; font-size: 19px; }
  .unit-banner { flex-direction: column; }
  .unit-map-head { align-items: start; flex-direction: column; gap: 2px; }
  .listen-grid { gap: 6px; }
  .listen-option { min-height: 124px; padding: 11px 4px; }
  .listen-option span { font-size: 32px; }
  .listen-option strong { font-size: 14px; }
  .review-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .review-count { width: 74px; height: 74px; }
  .review-stages { grid-template-columns: repeat(3, 1fr); }
  .review-list-head { align-items: start; flex-direction: column; gap: 2px; }
  .review-row { padding: 10px; }
  .completion-card { align-items: start; flex-direction: column; gap: 3px; }
  .unit-banner > b { align-self: flex-start; }
}

/* Original artwork rig: use the family-provided pictures unchanged; only overlay props and motion. */
.level-progress-note { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 11px; }
.level-progress-note b { color: var(--ink); font-size: 12px; }

.original-scene { background: #d8eef2; isolation: isolate; }
.original-scene-bg { position: absolute; z-index: -2; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(13px) saturate(.82) brightness(.82); opacity: .64; transform: scale(1.04); }
.original-scene::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 50% 40%, transparent 0 34%, rgba(4,31,38,.16) 73%, rgba(4,25,31,.42) 100%), linear-gradient(180deg, transparent 54%, rgba(5,34,39,.46)); pointer-events: none; }
.original-pet-rig { position: absolute; z-index: 3; left: 50%; top: 47%; width: min(100%, 650px); aspect-ratio: 1; transform: translate(-50%, -50%) scale(var(--pet-zoom, 1)); transform-origin: 50% 73%; filter: drop-shadow(0 20px 23px rgba(8,46,49,.26)); will-change: transform; }
.original-pet-base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; pointer-events: none; }
.original-head-motion { position: absolute; inset: 0; transform-origin: 50% 45%; will-change: transform; }
.original-head-copy { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-mask-image: radial-gradient(ellipse 31% 27% at 50% 28%, #000 0 62%, rgba(0,0,0,.88) 77%, transparent 100%); mask-image: radial-gradient(ellipse 31% 27% at 50% 28%, #000 0 62%, rgba(0,0,0,.88) 77%, transparent 100%); pointer-events: none; }
.marine-original-rig { width: min(102%, 680px); }
.marine-base { object-fit: cover; border-radius: 22px; }

.tiger-mouth { position: absolute; z-index: 4; top: 34.77%; left: 48.05%; width: 14.06%; height: auto; transform: scaleY(.08); transform-origin: 50% 23%; opacity: 0; pointer-events: none; }
.tiger-eyes { position: absolute; z-index: 5; top: 23.44%; left: 42.19%; width: 21.88%; height: auto; opacity: 0; pointer-events: none; }
.action-feed .tiger-mouth { opacity: 1; animation: original-mouth-chew .52s ease-in-out 7 both; }
.action-idle .blink-layer { animation: original-blink 5.4s infinite; }
.action-pet .blink-layer { opacity: 1; }
.action-sleep .blink-layer { opacity: 1; }

.original-pet-rig.action-idle { animation: original-idle 4.6s ease-in-out infinite; }
.original-pet-rig.action-idle .original-head-motion { animation: original-look 7.4s ease-in-out infinite; }
.original-pet-rig.action-feed { animation: original-feed 1.2s ease-in-out 3; }
.original-pet-rig.action-feed .original-head-motion { animation: original-feed-head .52s ease-in-out 7; }
.original-pet-rig.action-bath { animation: original-bath .6s ease-in-out 6; }
.original-pet-rig.action-bath .original-head-motion { animation: original-head-shake .3s ease-in-out 11; }
.original-pet-rig.action-play { animation: original-hop 1.1s cubic-bezier(.3,.8,.25,1) 3; }
.original-pet-rig.action-play .original-head-motion { animation: original-play-head .55s ease-in-out 6; }
.original-pet-rig.action-pet { animation: original-nuzzle 1.35s ease-in-out 2; }
.original-pet-rig.action-pet .original-head-motion { animation: original-pet-head 1.35s ease-in-out 2; }
.original-pet-rig.action-sleep { animation: original-sleep 5.4s ease-in-out both; }
.original-pet-rig.action-sleep .original-head-motion { animation: original-sleep-head 5.4s ease-in-out both; }
.original-pet-rig.action-greet .original-head-motion { animation: original-look 2.4s ease-in-out 2; }

.original-action-fx { position: absolute; z-index: 6; inset: 0; pointer-events: none; }
.original-action-fx .bowl-prop { left: 12%; bottom: 20%; }
.original-action-fx .shower-prop { left: 14%; top: 12%; }
.original-action-fx .ball-prop { right: 15%; bottom: 22%; }
.original-action-fx .hand-prop { left: 13%; top: 28%; }
.original-action-fx .sleep-bed { bottom: 17%; }
.original-action-fx .sleep-quilt { bottom: 22%; }
.original-action-fx .sleep-z { top: 28%; right: 17%; }
.bite-prop { right: 21%; bottom: 23%; font-size: clamp(24px,5vw,42px); animation: original-bite .55s ease-in-out 5; }
.heart-prop { font-size: clamp(20px,4vw,34px); animation: original-heart 1.3s ease-out 3; }
.heart-prop.h1 { right: 20%; top: 36%; }
.heart-prop.h2 { right: 28%; top: 27%; animation-delay: .42s; }
.spark-prop { font-size: clamp(18px,3.8vw,30px); animation: original-spark 1s ease-in-out infinite alternate; }
.spark-prop.s1 { left: 23%; top: 29%; }
.spark-prop.s2 { right: 21%; top: 42%; animation-delay: .35s; }
.towel-prop { right: 9%; bottom: 18%; font-size: clamp(28px,6vw,52px); animation: original-towel 1.4s .8s both; }
.moon-prop { right: 12%; top: 11%; font-size: clamp(34px,7vw,62px); animation: original-moon 3.5s ease-in-out infinite alternate; }
.wave-prop { left: 8%; top: 25%; font-size: clamp(32px,7vw,58px); animation: original-wave .8s ease-in-out 4; }
.night-wash { position: absolute; z-index: 5; inset: 0; background: radial-gradient(circle at 74% 16%, rgba(182,220,255,.42), transparent 20%), linear-gradient(180deg, rgba(8,38,72,.42), rgba(4,20,46,.62)); opacity: 0; animation: original-night 5.4s ease-in-out both; }
.action-sleep .night-wash { opacity: 1; }
.sleep-z.z1 { right: 17%; top: 28%; }
.sleep-z.z2, .sleep-z.z3 { display: block; }

.mech-frame { z-index: 5; }
.mech-pauldron { position: absolute; top: 45%; width: 23%; height: 14%; border: 2px solid color-mix(in srgb, var(--mech), #fff 36%); background: linear-gradient(145deg, color-mix(in srgb, var(--mech), #214b63 48%), color-mix(in srgb, var(--mech), #061822 76%)); box-shadow: 0 0 13px color-mix(in srgb, var(--mech), transparent 28%), inset 0 0 8px color-mix(in srgb, var(--mech), transparent 50%); clip-path: polygon(0 24%, 74% 0, 100% 46%, 68% 100%, 8% 80%); }
.mech-pauldron.left { left: -2%; transform: rotate(-16deg); }
.mech-pauldron.right { right: -2%; transform: rotate(16deg) scaleX(-1); }
.mech-wing { position: absolute; top: 25%; width: 28%; height: 34%; opacity: .72; background: linear-gradient(155deg, color-mix(in srgb, var(--mech), transparent 22%), transparent 66%); clip-path: polygon(20% 0, 100% 20%, 72% 100%, 0 58%); filter: drop-shadow(0 0 16px var(--mech)); animation: original-wing 2.8s ease-in-out infinite alternate; }
.mech-wing.left { left: -12%; }
.mech-wing.right { right: -12%; transform: scaleX(-1); }
.mech-ring { position: absolute; left: 50%; top: 62%; width: 66%; height: 17%; transform: translate(-50%, -50%) rotate(-4deg); border: 2px solid color-mix(in srgb, var(--mech), #fff 36%); border-radius: 50%; opacity: .8; box-shadow: 0 0 14px var(--mech), inset 0 0 13px color-mix(in srgb, var(--mech), transparent 46%); animation: original-ring 3s linear infinite; }
.mech-drone { position: absolute; width: 8%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--mech), #fff 48%); border-radius: 34%; background: radial-gradient(circle, #fff 0 11%, var(--mech) 30%, color-mix(in srgb, var(--mech), #07222e 65%) 72%); box-shadow: 0 0 10px var(--mech); animation: original-drone 3.2s ease-in-out infinite alternate; }
.mech-drone.d1 { left: 4%; top: 21%; }
.mech-drone.d2 { right: 5%; top: 31%; animation-delay: .8s; }
.mech-thunder .mech-wing { filter: drop-shadow(0 0 20px #ffe45c); animation-duration: .75s; }
.mech-thunder .mech-ring { border-style: dashed; animation-duration: 1.4s; }
.mech-aurora .mech-wing { background: linear-gradient(135deg, rgba(95,255,210,.8), rgba(116,186,255,.56), rgba(208,137,255,.66)); }
.mech-aurora .mech-frame, .mech-aurora.mech-aura { filter: hue-rotate(15deg); }
.mech-aura { position: absolute; z-index: 2; inset: 15% 12% 13%; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse at 50% 68%, color-mix(in srgb, var(--mech, #8ce8ff), transparent 74%), transparent 67%); animation: original-aura 2.3s ease-in-out infinite alternate; }

@keyframes original-idle { 0%,100% { transform: translate(-50%,-50%) scale(var(--pet-zoom,1)); } 50% { transform: translate(-50%,-51.2%) scale(calc(var(--pet-zoom,1) * 1.008)); } }
@keyframes original-look { 0%,100% { transform: rotate(0); } 28% { transform: rotate(-1.1deg); } 63% { transform: rotate(1.15deg); } 82% { transform: rotate(.3deg); } }
@keyframes original-blink { 0%, 91%, 95%, 100% { opacity: 0; } 92%, 94% { opacity: 1; } }
@keyframes original-mouth-chew { 0%,100% { transform: scaleY(.08); } 48% { transform: scaleY(1); } 72% { transform: scaleY(.78); } }
@keyframes original-feed { 0%,100% { transform: translate(-50%,-50%) scale(var(--pet-zoom,1)) rotate(0); } 46% { transform: translate(-50%,-48%) scale(var(--pet-zoom,1)) rotate(1.2deg); } 76% { transform: translate(-50%,-49%) scale(var(--pet-zoom,1)) rotate(-.6deg); } }
@keyframes original-feed-head { 0%,100% { transform: rotate(0) translateY(0); } 50% { transform: rotate(1.5deg) translateY(6px); } }
@keyframes original-head-shake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-3.5deg); } 75% { transform: rotate(3.5deg); } }
@keyframes original-bath { 0%,100% { transform: translate(-50%,-50%) scale(var(--pet-zoom,1)) rotate(0); } 25% { transform: translate(-52%,-50%) scale(var(--pet-zoom,1)) rotate(-2deg); } 75% { transform: translate(-48%,-50%) scale(var(--pet-zoom,1)) rotate(2deg); } }
@keyframes original-hop { 0%,100% { transform: translate(-50%,-50%) scale(var(--pet-zoom,1)); } 22% { transform: translate(-50%,-57%) scale(var(--pet-zoom,1)); } 46% { transform: translate(-50%,-50%) scale(var(--pet-zoom,1)); } 64% { transform: translate(-50%,-54%) scale(var(--pet-zoom,1)); } }
@keyframes original-play-head { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg) translateY(-5px); } }
@keyframes original-nuzzle { 0%,100% { transform: translate(-50%,-50%) scale(var(--pet-zoom,1)) rotate(0); } 35% { transform: translate(-53%,-49%) scale(var(--pet-zoom,1)) rotate(-2deg); } 70% { transform: translate(-47%,-49%) scale(var(--pet-zoom,1)) rotate(2deg); } }
@keyframes original-pet-head { 0%,100% { transform: rotate(0); } 40% { transform: rotate(-4deg) translateY(3px); } 72% { transform: rotate(3deg) translateY(2px); } }
@keyframes original-sleep { 0% { transform: translate(-50%,-50%) scale(var(--pet-zoom,1)); } 52%,100% { transform: translate(-50%,-42%) scale(calc(var(--pet-zoom,1) * .94)) rotate(-9deg); } }
@keyframes original-sleep-head { 0% { transform: rotate(0); } 60%,100% { transform: rotate(-11deg) translateY(9px); } }
@keyframes original-night { 0%,28% { opacity: 0; } 65%,100% { opacity: .72; } }
@keyframes original-bite { 0%,100% { transform: translate(0,0) scale(.7); opacity: 0; } 35% { opacity: 1; } 70% { transform: translate(-40px,24px) scale(.3); opacity: 0; } }
@keyframes original-heart { 0% { transform: translateY(10px) scale(.42); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-72px) scale(1.15); opacity: 0; } }
@keyframes original-spark { from { transform: scale(.65) rotate(-12deg); opacity: .35; } to { transform: scale(1.28) rotate(10deg); opacity: 1; } }
@keyframes original-towel { from { transform: translateY(20px) scale(.5); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes original-moon { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-9px) rotate(6deg); } }
@keyframes original-wave { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-28deg) translateY(-5px); } }
@keyframes original-wing { from { transform: rotate(-2deg) scaleY(.94); opacity: .52; } to { transform: rotate(4deg) scaleY(1.08); opacity: .9; } }
@keyframes original-drone { from { transform: translateY(0) rotate(-5deg); } to { transform: translateY(-8px) rotate(6deg); } }
@keyframes original-ring { from { transform: translate(-50%,-50%) rotate(-4deg); } to { transform: translate(-50%,-50%) rotate(356deg); } }
@keyframes original-aura { from { opacity: .35; transform: scale(.96); } to { opacity: .75; transform: scale(1.05); } }

@media (max-width: 560px) {
  .original-pet-rig { top: 46%; width: 105%; }
  .original-action-fx .bowl-prop { bottom: 18%; }
  .original-action-fx .hand-prop { top: 25%; }
}

.mech-unlock { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--mech), transparent 54%), rgba(3,15,28,.88) 40%, rgba(1,8,18,.97) 100%); opacity: 0; transition: opacity .18s ease; }
.mech-unlock.show { opacity: 1; }
.mech-unlock.leaving { opacity: 0; }
.mech-unlock-grid { position: absolute; inset: -30%; background-image: linear-gradient(color-mix(in srgb, var(--mech), transparent 78%) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--mech), transparent 78%) 1px, transparent 1px); background-size: 42px 42px; transform: perspective(500px) rotateX(58deg) translateY(18%); opacity: .55; animation: unlock-grid 1.9s linear both; }
.mech-unlock-rings { position: absolute; width: min(82vw, 500px); aspect-ratio: 1; }
.mech-unlock-rings i { position: absolute; inset: 7%; border: 2px solid color-mix(in srgb, var(--mech), #fff 24%); border-radius: 50%; box-shadow: 0 0 18px var(--mech), inset 0 0 17px color-mix(in srgb, var(--mech), transparent 42%); animation: unlock-ring 1.7s cubic-bezier(.2,.8,.2,1) both; }
.mech-unlock-rings i:nth-child(2) { inset: 19%; animation-delay: .12s; }
.mech-unlock-rings i:nth-child(3) { inset: 31%; animation-delay: .24s; }
.mech-unlock-armor { position: relative; z-index: 2; width: min(64vw, 330px); aspect-ratio: 1; filter: drop-shadow(0 0 26px var(--mech)); animation: unlock-armor 1.9s cubic-bezier(.2,.85,.2,1) both; }
.mech-unlock-armor .u-wing { position: absolute; top: 17%; width: 46%; height: 58%; background: linear-gradient(150deg, color-mix(in srgb, var(--mech), #fff 14%), transparent 68%); clip-path: polygon(16% 0, 100% 18%, 74% 100%, 0 62%); box-shadow: 0 0 22px var(--mech); opacity: .8; }
.mech-unlock-armor .u-wing.l { left: -9%; }
.mech-unlock-armor .u-wing.r { right: -9%; transform: scaleX(-1); }
.mech-unlock-armor .u-core { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%,-50%); border: 3px solid color-mix(in srgb, var(--mech), #fff 45%); border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fff 0 12%, color-mix(in srgb, var(--mech), #fff 28%) 29%, color-mix(in srgb, var(--mech), #132b43 65%) 74%); box-shadow: 0 0 24px var(--mech), 0 0 52px color-mix(in srgb, var(--mech), transparent 34%); animation: unlock-core 1.1s ease-in-out infinite alternate; }
.mech-unlock-armor .u-pauldron { position: absolute; top: 43%; width: 43%; height: 24%; border: 2px solid color-mix(in srgb, var(--mech), #fff 32%); background: linear-gradient(145deg, color-mix(in srgb, var(--mech), #203d5a 50%), color-mix(in srgb, var(--mech), #071523 78%)); clip-path: polygon(0 25%, 70% 0, 100% 47%, 68% 100%, 8% 78%); }
.mech-unlock-armor .u-pauldron.l { left: -3%; transform: rotate(-14deg); }
.mech-unlock-armor .u-pauldron.r { right: -3%; transform: scaleX(-1) rotate(-14deg); }
.mech-unlock-copy { position: absolute; z-index: 3; bottom: 8%; left: 50%; width: min(84vw, 460px); transform: translateX(-50%); text-align: center; color: #fff; animation: unlock-copy 1.9s ease both; }
.mech-unlock-copy small { display: block; margin-bottom: 7px; color: color-mix(in srgb, var(--mech), #fff 48%); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.mech-unlock-copy strong { display: block; font-size: clamp(25px,7vw,44px); letter-spacing: .04em; text-shadow: 0 0 22px var(--mech), 0 4px 12px rgba(0,0,0,.5); }
.mech-unlock-copy span { display: block; margin-top: 8px; color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.6; }
.mech-unlock-thunder .mech-unlock-grid { animation-duration: .48s; animation-iteration-count: 4; }
.mech-unlock-thunder .mech-unlock-armor .u-wing { filter: drop-shadow(0 0 26px #fff36e); animation: unlock-lightning .2s linear infinite alternate; }
.mech-unlock-aurora .mech-unlock-rings i { border-color: rgba(132,255,226,.8); }

@keyframes unlock-grid { from { opacity: 0; transform: perspective(500px) rotateX(58deg) translateY(52%) scale(.7); } 35% { opacity: .62; } to { opacity: .35; transform: perspective(500px) rotateX(58deg) translateY(18%) scale(1.08); } }
@keyframes unlock-ring { from { opacity: 0; transform: scale(.2) rotate(-60deg); } 38% { opacity: 1; } to { opacity: .34; transform: scale(1.08) rotate(42deg); } }
@keyframes unlock-armor { 0% { opacity: 0; transform: scale(.35) rotate(-18deg); } 28% { opacity: 1; transform: scale(1.08) rotate(3deg); } 48% { transform: scale(.96) rotate(0); } 100% { opacity: 1; transform: scale(1); } }
@keyframes unlock-core { from { transform: translate(-50%,-50%) scale(.9); opacity: .68; } to { transform: translate(-50%,-50%) scale(1.14); opacity: 1; } }
@keyframes unlock-copy { from { opacity: 0; transform: translate(-50%, 24px); } 45% { opacity: 0; } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes unlock-lightning { from { opacity: .34; } to { opacity: 1; } }

.bottom-nav.six { grid-template-columns: repeat(6, 1fr); }
.bottom-nav.six .nav-btn { font-size: 10px; }

.forest-hero { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,.8); border-radius: 12px; background: linear-gradient(120deg, #173d38, #2d6054); color: #fff; box-shadow: 0 18px 38px rgba(14,61,51,.18); }
.forest-avatar { position: relative; overflow: hidden; width: 132px; aspect-ratio: 1; border: 2px solid rgba(184,244,227,.55); border-radius: 18px; background: #0d2b2b; }
.forest-avatar img { width: 100%; height: 100%; object-fit: cover; }
.forest-avatar span { position: absolute; right: 7px; bottom: 7px; padding: 4px 7px; border-radius: 12px; background: rgba(8,27,28,.82); font-size: 10px; font-weight: 900; }
.forest-copy small { display: block; margin-bottom: 6px; color: #b7eadc; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.forest-copy strong { display: block; font-size: 22px; }
.forest-copy p { margin: 5px 0 10px; color: rgba(255,255,255,.7); font-size: 12px; }
.forest-skill-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.forest-skill-strip span { padding: 5px 8px; border-radius: 12px; background: rgba(255,255,255,.12); font-size: 10px; }
.forest-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 158px; }
.forest-actions .secondary-btn { white-space: nowrap; }
.opponent-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.opponent-card { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 12px 14px; align-items: center; padding: 16px; border: 1px solid #dbe8e4; border-radius: 12px; background: #fff; box-shadow: 0 14px 34px rgba(18,67,59,.1); }
.opponent-card.is-locked { background: #f2f5f3; filter: grayscale(.7); }
.opponent-card.is-defeated { border-color: #9ac3aa; }
.opponent-card.is-unavailable { background: #f4f7f6; border-style: dashed; }
.opponent-emblem { position: relative; display: grid; place-items: center; width: 88px; aspect-ratio: 1; border-radius: 20px; background: radial-gradient(circle at 35% 26%, #e9f7ff, #6e96b0); box-shadow: inset 0 0 24px rgba(255,255,255,.45); }
.opponent-emblem span { font-size: 47px; filter: drop-shadow(0 7px 7px rgba(0,0,0,.18)); }
.opponent-emblem i { position: absolute; right: 5px; bottom: 5px; padding: 3px 6px; border-radius: 10px; background: #14352f; color: #fff; font-size: 9px; font-style: normal; font-weight: 900; }
.opponent-card small { color: #4c8071; font-size: 10px; font-weight: 900; }
.opponent-card h3 { margin: 2px 0 4px; font-size: 20px; }
.opponent-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.opponent-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; color: #476b62; font-size: 10px; font-weight: 800; }
.opponent-card .primary-btn { grid-column: 1 / -1; }
.battle-rules { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: #fff8df; color: #755b1b; font-size: 11px; }
.battle-rules strong { font-size: 13px; }
.battle-rules em { flex-basis: 100%; color: #987d35; font-style: normal; }
.battle-safety { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 14px; margin-bottom: 16px; padding: 13px 16px; border: 1px solid #bfe3d7; border-radius: 12px; background: linear-gradient(110deg, #effaf5, #f7fcfa); color: #214c42; }
.battle-safety.is-blocked { border-color: #efcf98; background: linear-gradient(110deg, #fff8e7, #fffdf7); color: #704d16; }
.battle-safety-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(56,125,102,.13); font-size: 22px; }
.battle-safety.is-blocked .battle-safety-icon { background: rgba(177,122,28,.13); }
.battle-safety strong { display: block; font-size: 13px; }
.battle-safety p { margin: 4px 0 0; color: inherit; opacity: .76; font-size: 11px; line-height: 1.65; }
.battle-safety .secondary-btn { justify-self: end; width: fit-content; white-space: nowrap; }

.battle-screen { --battle-lunge: clamp(42px, 15vw, 92px); min-height: calc(100vh - 30px); padding: 14px 14px 30px; overflow: hidden; border: 1px solid rgba(125,211,235,.26); border-radius: 18px; background: radial-gradient(circle at 50% 0, rgba(82,173,202,.26), transparent 38%), linear-gradient(180deg, #0d2b36, #071b24); box-shadow: 0 20px 48px rgba(11,48,61,.22); color: #edf9ff; }
.battle-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.battle-top > span { color: #c9f1ff; font-size: 12px; font-weight: 800; }
.battle-top > b { padding: 4px 9px; border: 1px solid rgba(155,231,255,.6); border-radius: 12px; background: rgba(113,214,245,.12); color: #e6fbff; font-size: 11px; }
.battle-arena { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr); align-items: end; gap: 3px; min-height: 360px; padding: 30px 10px 22px; overflow: hidden; border: 1px solid rgba(153,224,244,.68); border-radius: 16px; background: linear-gradient(180deg, #82c7e2 0%, #b8e0ef 40%, #d6edf4 63%, #f7feff 63.5%, #dff4fa 100%); box-shadow: inset 0 0 34px rgba(255,255,255,.42); }
.battle-arena::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 38%; background: radial-gradient(ellipse at 18% 20%, rgba(255,255,255,.96), transparent 48%), radial-gradient(ellipse at 78% 34%, rgba(206,241,249,.9), transparent 52%), linear-gradient(180deg, #f9ffff, #d8f1f8); }
.battle-backdrop { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.battle-mountain { position: absolute; display: block; bottom: 29%; height: 55%; background: linear-gradient(148deg, #f3fbff 4%, #a8ccda 48%, #78adbf 100%); clip-path: polygon(0 100%, 14% 64%, 31% 83%, 49% 18%, 62% 67%, 78% 36%, 100% 100%); filter: drop-shadow(0 8px 18px rgba(49,111,134,.12)); opacity: .78; }
.battle-mountain.m1 { left: -12%; width: 72%; }
.battle-mountain.m2 { right: -15%; width: 78%; height: 47%; opacity: .55; transform: scaleX(-1); }
.battle-mountain.m3 { left: 24%; width: 54%; height: 36%; bottom: 31%; opacity: .36; transform: scaleX(-1); }
.battle-snowfall { position: absolute; inset: 0; overflow: hidden; }
.battle-snowfall i { position: absolute; top: -12%; left: var(--x); width: var(--size); height: var(--size); border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 0 7px #fff; animation: battle-snow var(--duration) linear var(--delay) infinite; }
.battle-fighter { position: relative; z-index: 2; text-align: center; }
.battle-pet-art, .battle-enemy-art { position: relative; display: grid; place-items: end center; height: 225px; }
.battle-pet-image { position: relative; z-index: 2; width: 100%; max-width: 235px; height: 100%; object-fit: contain; transform-origin: 48% 86%; animation: battle-breathe 2.9s ease-in-out infinite; }
.battle-wolf-image { position: relative; z-index: 2; width: 100%; max-width: 210px; height: 100%; object-fit: contain; transform-origin: 48% 84%; animation: wolf-idle 2.5s ease-in-out infinite; }
.battle-enemy-art .enemy-art { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.battle-fighter.enemy .enemy-art em { font-size: clamp(78px,17vw,146px); font-style: normal; filter: drop-shadow(0 0 18px rgba(208,240,255,.5)) drop-shadow(0 14px 12px rgba(0,0,0,.32)); }
.battle-fighter.enemy .enemy-art i { position: absolute; left: 8%; top: 10%; font-size: 22px; opacity: .8; animation: original-spark 1.4s ease-in-out infinite alternate; }
.battle-ground-shadow { position: absolute; z-index: 1; left: 18%; right: 18%; bottom: 3px; height: 15px; border-radius: 50%; background: radial-gradient(ellipse, rgba(23,88,110,.32), transparent 68%); filter: blur(2px); }
.battle-aura-ring { position: absolute; z-index: 1; left: 14%; right: 14%; bottom: 6px; height: 36%; border-radius: 50%; border: 2px solid rgba(168,240,255,.52); box-shadow: 0 0 20px rgba(126,229,255,.38), inset 0 0 18px rgba(255,255,255,.22); opacity: .5; animation: aura-breathe 2.4s ease-in-out infinite alternate; }
.battle-fighter.enemy .battle-enemy-art::after { content: ""; position: absolute; z-index: 1; left: 15%; right: 15%; bottom: 3px; height: 14px; border-radius: 50%; background: radial-gradient(ellipse, rgba(24,82,102,.3), transparent 70%); filter: blur(2px); }
.fighter-label { position: relative; z-index: 4; display: flex; flex-direction: column; gap: 2px; margin-bottom: 3px; }
.fighter-label strong { color: #143d4d; font-size: 15px; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.fighter-label span { color: #487887; font-size: 10px; font-weight: 700; }
.battle-hp { position: relative; z-index: 4; height: 10px; overflow: hidden; margin: 5px auto 3px; border: 1px solid rgba(62,124,141,.28); border-radius: 6px; background: rgba(24,65,82,.26); box-shadow: 0 2px 5px rgba(45,118,140,.1); }
.battle-hp i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #55e6a8, #a7ff7d); transition: width .35s ease; box-shadow: 0 0 12px rgba(102,255,186,.6); }
.battle-hp.enemy-hp i { background: linear-gradient(90deg, #ffb166, #ff6c7d); box-shadow: 0 0 12px rgba(255,110,122,.6); }
.battle-fighter > small { position: relative; z-index: 4; color: #2e6475; font-size: 9px; font-weight: 800; }
.battle-center { position: relative; z-index: 3; display: grid; place-items: center; align-self: center; margin-bottom: 76px; }
.battle-center span { display: grid; place-items: center; width: 48px; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; background: rgba(12,52,67,.82); color: #fff; font-size: 14px; font-weight: 1000; box-shadow: 0 0 22px rgba(101,212,255,.35); }
.battle-center i { color: #fff; font-style: normal; text-shadow: 0 0 10px #8ee8ff; animation: original-spark 1.3s ease-in-out infinite alternate; }
.battle-strike { position: absolute; z-index: 5; left: 31%; top: 29%; width: 38%; height: 42%; opacity: 0; pointer-events: none; }
.battle-strike i { position: absolute; left: 38%; top: 12%; width: 10px; height: 95%; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.95), #a6f3ff 36%, rgba(76,196,241,.16)); box-shadow: 0 0 12px rgba(127,235,255,.9); transform: rotate(26deg); }
.battle-strike i:nth-child(2) { left: 56%; top: 2%; height: 108%; transform: rotate(8deg); }
.battle-strike i:nth-child(3) { left: 72%; top: 18%; height: 76%; transform: rotate(-18deg); }
.battle-strike span { position: absolute; left: 30%; top: 28%; width: 45%; aspect-ratio: 1; border: 3px solid rgba(255,255,255,.9); border-radius: 50%; box-shadow: 0 0 26px rgba(114,232,255,.86), inset 0 0 20px rgba(255,255,255,.54); }
.fx-player-hit .battle-fighter.player .battle-pet-art { animation: tiger-pounce .6s cubic-bezier(.2,.8,.24,1) both; }
.fx-player-hit .battle-fighter.enemy { animation: wolf-knockback .55s ease-out both; }
.fx-player-hit .battle-strike { animation: strike-flash .56s ease-out both; }
.fx-player-hit .battle-fighter.enemy .battle-enemy-art::before { content: ""; position: absolute; z-index: 3; inset: 18% 9% 18%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.86), rgba(129,231,255,.34) 36%, transparent 68%); animation: impact-ring .52s ease-out both; }
.fx-enemy-hit .battle-fighter.enemy .battle-enemy-art { animation: wolf-lunge .6s cubic-bezier(.2,.8,.24,1) both; }
.fx-enemy-hit .battle-fighter.player.is-hit .battle-pet-art { animation: pet-hit .44s ease-in-out both; }
.fx-enemy-hit .battle-fighter.player .battle-pet-art::before { content: ""; position: absolute; z-index: 4; inset: 21% 15% 18%; border-radius: 50%; background: radial-gradient(circle, rgba(255,247,227,.82), rgba(255,155,101,.28) 45%, transparent 70%); animation: impact-ring .44s ease-out both; }
.fx-heal .battle-fighter.player .battle-aura-ring { animation: heal-burst .75s ease-out both; }
.battle-message { min-height: 48px; margin: 12px 0; padding: 12px 14px; border: 1px solid rgba(195,240,255,.25); border-radius: 10px; background: rgba(8,35,44,.58); color: #e7fbff; font-size: 12px; font-weight: 800; line-height: 1.6; }
.battle-skills { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.battle-skill { min-height: 94px; padding: 10px 6px; border: 1px solid rgba(158,224,255,.36); border-radius: 10px; background: linear-gradient(180deg, rgba(29,75,92,.94), rgba(10,37,49,.96)); color: #fff; text-align: center; }
.battle-skill span { display: block; margin-bottom: 3px; font-size: 27px; }
.battle-skill strong { display: block; font-size: 12px; }
.battle-skill small { display: block; margin-top: 5px; color: rgba(222,247,255,.64); font-size: 9px; }
.battle-skill:disabled { opacity: .42; filter: grayscale(.8); }
.battle-skill.heal { border-color: rgba(124,255,184,.46); }
.battle-result { display: flex; align-items: center; gap: 15px; padding: 17px; border: 1px solid rgba(182,255,215,.35); border-radius: 12px; background: rgba(8,45,43,.72); }
.battle-result > span { font-size: 47px; }
.battle-result strong { font-size: 21px; }
.battle-result p { margin: 5px 0; color: rgba(228,255,248,.75); font-size: 12px; }
.battle-result em { color: #ffe792; font-size: 12px; font-style: normal; font-weight: 900; }
.battle-result > div:last-child { display: flex; gap: 8px; margin-left: auto; }
.battle-result.lose { border-color: rgba(255,195,158,.38); background: rgba(68,31,27,.72); }

@keyframes battle-snow { 0% { transform: translate3d(0,-12px,0); opacity: 0; } 12% { opacity: .9; } 100% { transform: translate3d(20px,390px,0); opacity: 0; } }
@keyframes battle-breathe { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.012); } }
@keyframes wolf-idle { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-1deg); } }
@keyframes aura-breathe { from { opacity: .26; transform: scale(.94); } to { opacity: .64; transform: scale(1.04); } }
@keyframes tiger-pounce { 0% { transform: translateX(0) translateY(0) rotate(0) scale(1); } 38% { transform: translateX(var(--battle-lunge)) translateY(-45px) rotate(-10deg) scale(1.09); } 55% { transform: translateX(calc(var(--battle-lunge) * 1.18)) translateY(-20px) rotate(-4deg) scale(1.04); } 100% { transform: translateX(0) translateY(0) rotate(0) scale(1); } }
@keyframes wolf-lunge { 0% { transform: translateX(0) translateY(0) rotate(0); } 42% { transform: translateX(calc(var(--battle-lunge) * -1.08)) translateY(-30px) rotate(7deg) scale(1.05); } 100% { transform: translateX(0) translateY(0) rotate(0); } }
@keyframes wolf-knockback { 0%,100% { transform: translateX(0) rotate(0); } 34% { transform: translateX(24px) translateY(-10px) rotate(8deg); } 65% { transform: translateX(13px) rotate(4deg); } }
@keyframes pet-hit { 0%,100% { transform: translateX(0) rotate(0); } 18% { transform: translateX(-15px) rotate(-4deg); } 42% { transform: translateX(12px) rotate(3deg); } 68% { transform: translateX(-7px) rotate(-2deg); } }
@keyframes strike-flash { 0% { opacity: 0; transform: scale(.66) rotate(-8deg); } 28% { opacity: 1; transform: scale(1.08) rotate(2deg); } 70% { opacity: .9; } 100% { opacity: 0; transform: scale(1.18) rotate(5deg); } }
@keyframes impact-ring { 0% { opacity: .9; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes heal-burst { 0% { opacity: .3; transform: scale(.75); border-color: rgba(199,255,241,.8); } 55% { opacity: 1; transform: scale(1.18); border-color: #d6fff2; } 100% { opacity: .4; transform: scale(1); } }

@media (max-width: 720px) {
  .forest-hero { grid-template-columns: 92px minmax(0,1fr); }
  .forest-avatar { width: 92px; }
  .forest-hero > .secondary-btn { grid-column: 1 / -1; }
  .forest-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .opponent-grid { grid-template-columns: 1fr; }
  .battle-safety { grid-template-columns: auto minmax(0,1fr); }
  .battle-safety .secondary-btn { grid-column: 1 / -1; justify-self: start; }
  .battle-arena { min-height: 330px; grid-template-columns: minmax(0,1fr) 42px minmax(0,1fr); padding-top: 24px; }
  .battle-pet-art, .battle-enemy-art { height: 190px; }
  .battle-wolf-image { max-width: 175px; }
  .battle-center { margin-bottom: 60px; }
  .battle-skills { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .battle-screen { padding: 12px 10px 16px; }
  .battle-arena { padding-inline: 5px; }
  .battle-center span { width: 38px; font-size: 11px; }
  .battle-strike { left: 25%; width: 48%; }
  .battle-result { align-items: flex-start; flex-wrap: wrap; }
  .battle-result > div:last-child { width: 100%; margin-left: 0; }
}

[hidden] { display: none !important; }

/* Mascot scene and layered 2D actions */
.sound-icon { font-size: 18px; }
.quick-actions { grid-template-columns: repeat(4, minmax(0,1fr)); }
.rest-btn { display: block; width: 100%; min-height: 32px; margin-top: 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 7px; background: rgba(8,48,48,.34); color: #fff; font-size: 11px; font-weight: 800; }
.rest-btn:hover { background: rgba(8,48,48,.52); }
.mascot-scene { position: absolute; inset: 0; overflow: hidden; }
.scene-tiger { background: radial-gradient(circle at 56% 20%, #f7fdff 0, #d6eff7 39%, #8fc6d7 75%, #5c9eb0 100%); }
.scene-orca { background: radial-gradient(circle at 74% 17%, #e8fbff 0, #9ee4f5 34%, #4ba6d1 70%, #176a9c 100%); }
.scene-whale { background: radial-gradient(circle at 54% 9%, #dffaff 0, #75c7dc 30%, #277da5 69%, #103f68 100%); }
.scene-shark { background: radial-gradient(circle at 52% 14%, #e5fff4 0, #86ddd1 30%, #399d99 67%, #16636f 100%); }
.scene-sky-glow { position: absolute; inset: 0; background: radial-gradient(circle at 58% 15%, rgba(255,255,255,.82), transparent 36%), linear-gradient(180deg, transparent 54%, rgba(5,52,61,.38)); }
.scene-ground { position: absolute; left: -8%; right: -8%; bottom: -5%; height: 34%; border-radius: 50% 50% 0 0; background: linear-gradient(180deg, rgba(242,255,252,.28), rgba(9,76,76,.36)); filter: blur(1px); }
.scene-tiger .scene-ground { background: radial-gradient(ellipse at 50% 25%, #f8ffff 0, #d7eef1 45%, #8cb9c2 100%); }
.scene-whale .scene-ground, .scene-shark .scene-ground { background: radial-gradient(ellipse at 50% 15%, rgba(185,255,238,.38), rgba(12,105,107,.2) 58%, transparent 72%); }
.snowflake { position: absolute; z-index: 1; left: var(--x); top: var(--y); width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 9px #fff; opacity: .8; animation: snow-drift var(--d) ease-in-out infinite alternate; }
.wave-line { position: absolute; z-index: 1; left: -12%; width: 124%; height: 1px; top: var(--y); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: wave-slide var(--d) ease-in-out infinite alternate; }
.light-ray { position: absolute; z-index: 1; top: -15%; left: var(--x); width: 70px; height: 80%; transform: rotate(13deg); background: linear-gradient(180deg, rgba(255,255,255,.5), transparent); filter: blur(9px); animation: ray-sway var(--d) ease-in-out infinite alternate; }
.scene-bubble { position: absolute; z-index: 1; left: var(--x); bottom: 15%; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, rgba(160,255,255,.18)); animation: scene-bubble-rise var(--d) linear infinite; }
.little-fish { position: absolute; z-index: 1; left: var(--x); top: var(--y); width: 20px; height: 9px; border-radius: 50% 10% 10% 50%; background: rgba(255,255,255,.66); animation: fish-swim var(--d) ease-in-out infinite alternate; }
.little-fish::after { content: ""; position: absolute; right: -6px; top: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 7px solid rgba(255,255,255,.62); }
.coral-plant { position: absolute; z-index: 1; left: var(--x); bottom: 3%; width: 28px; height: 80px; transform: scale(var(--s,1)); border-radius: 50% 50% 10% 10%; background: linear-gradient(180deg, #ff9f8f, #d56d87); box-shadow: 15px 10px 0 -7px #ffca86, -13px 20px 0 -8px #ffb38f; opacity: .7; }

.mascot { position: absolute; z-index: 2; left: 50%; bottom: calc(18px + 171px + 10px); width: min(82%, 520px); height: min(62%, calc(100% - 171px - 60px)); transform: translateX(-50%) scale(var(--pet-zoom,1)); transform-origin: 50% 88%; filter: drop-shadow(0 24px 22px rgba(8,46,49,.22)); }
.mascot-art { width: 100%; height: 100%; overflow: visible; }
.mascot-tail { transform-box: fill-box; transform-origin: 20% 60%; animation: tail-sway 2.8s ease-in-out infinite alternate; }
.mascot-fin { transform-box: fill-box; transform-origin: 35% 20%; animation: fin-flutter 3s ease-in-out infinite alternate; }
.mascot-head { transform-box: fill-box; transform-origin: 50% 80%; animation: head-breathe 3.2s ease-in-out infinite; }
.mascot-eye { transform-box: fill-box; transform-origin: center; animation: eye-blink 4.8s infinite; }
.mascot-blush { opacity: .42; transition: opacity .25s ease; }
.mascot-mood { position: absolute; z-index: 7; top: 8%; left: 50%; min-width: 70px; padding: 7px 12px; transform: translateX(-50%) scale(.5); border: 2px solid #2b5c58; border-radius: 18px 18px 18px 4px; background: #fffdf2; color: #174b47; font-size: 13px; font-weight: 900; opacity: 0; white-space: nowrap; }
.action-feed .mascot-mood, .action-bath .mascot-mood, .action-play .mascot-mood, .action-pet .mascot-mood, .action-sleep .mascot-mood, .action-greet .mascot-mood { animation: mood-pop .5s .35s both; }
.mouth-chew { display: none; }
.action-feed .mouth-calm { display: none; }
.action-feed .mouth-chew { display: block; transform-box: fill-box; transform-origin: center; animation: chew .38s ease-in-out infinite alternate; }
.action-feed .mascot-head { animation: feed-nibble 1.3s ease-in-out infinite alternate; }
.action-feed .mascot-body { animation: body-lean 1.3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 90%; }
.action-feed .mascot-blush { opacity: .75; }
.action-feed .mascot-eye { animation: none; transform: scaleY(.58); }
.action-bath .mascot { animation: bath-wiggle 1.2s ease-in-out infinite; }
.action-bath .mascot-blush { opacity: .68; }
.action-bath .eye-left { animation: none; transform: scaleY(.2); }
.action-play .mascot { animation: mascot-jump 1s ease-in-out infinite; }
.action-play .paw-front-left { animation: paw-wave 1s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 85%; }
.action-play .paw-front-right { animation: paw-wave 1s .15s ease-in-out infinite reverse; transform-box: fill-box; transform-origin: 50% 85%; }
.action-play .mascot-tail { animation-duration: .7s; }
.action-play .mascot-fin, .action-greet .mascot-fin { animation: fin-wave .9s ease-in-out infinite; transform-box: fill-box; transform-origin: 35% 20%; }
.action-pet .mascot-eye, .action-sleep .mascot-eye { animation: none; transform: scaleY(.12); }
.action-pet .mascot-head { animation: pet-nuzzle 1.8s ease-in-out infinite alternate; }
.action-pet .mascot-blush { opacity: .95; }
.action-sleep .mascot { transform: translateX(-50%) scale(var(--pet-zoom,1)) rotate(-7deg) translateY(7%); transition: transform .7s ease; }
.action-sleep .mascot-body { animation: sleep-breathe 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 90%; }
.action-sleep .mascot-tail, .action-sleep .mascot-fin { animation-duration: 5s; }
.action-sleep .mascot-blush { opacity: .7; }
.action-greet .paw-front-right { animation: greet-wave 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 80%; }

.action-prop { position: absolute; z-index: 6; pointer-events: none; filter: drop-shadow(0 8px 8px rgba(0,0,0,.16)); }
.bowl-prop { left: 3%; bottom: 31%; font-size: clamp(42px,9vw,78px); animation: bowl-in .6s both, bowl-bob 1s .6s ease-in-out infinite alternate; }
.shower-prop { left: 5%; top: 15%; font-size: clamp(38px,8vw,68px); transform: rotate(-18deg); animation: shower-in .55s both, shower-shake 1.1s .55s ease-in-out infinite; }
.ball-prop { right: 8%; bottom: 31%; font-size: clamp(34px,7vw,60px); animation: ball-bounce 1s ease-in-out infinite; }
.hand-prop { left: 1%; top: 33%; font-size: clamp(42px,9vw,76px); transform: rotate(-25deg); animation: hand-pet 1.5s ease-in-out infinite; }
.sleep-bed { position: absolute; z-index: -1; left: 50%; bottom: 3%; width: 88%; height: 24%; transform: translateX(-50%) rotate(-1deg); border-radius: 50%; background: radial-gradient(ellipse at 50% 42%, #fff7e9 0 41%, #f1d4ae 42% 55%, #b77f53 56% 61%, #dba87b 62% 100%); box-shadow: inset 0 10px 22px rgba(113,68,39,.18), 0 18px 28px rgba(8,46,49,.22); }
.sleep-bed::before { content: ""; position: absolute; left: 8%; top: -22%; width: 38%; height: 55%; border-radius: 55% 45% 40% 50%; background: linear-gradient(145deg, #fffdf7, #f4e4cf); box-shadow: 0 3px 8px rgba(113,68,39,.14); }
.sleep-quilt { position: absolute; z-index: 6; left: 50%; bottom: 9%; width: 72%; height: 15%; transform: translateX(-50%) rotate(-2deg); border: 2px solid rgba(255,255,255,.62); border-radius: 50% 50% 28% 28%; background: linear-gradient(180deg, #effaf4, #cbe4da); box-shadow: 0 8px 14px rgba(5,52,54,.16), inset 0 3px 8px rgba(255,255,255,.72); }
.wave-prop { right: 8%; top: 9%; font-size: clamp(38px,8vw,68px); animation: greet-hand 1s ease-in-out infinite; }
.mood-bubble { position: absolute; z-index: 6; left: 10%; top: 19%; padding: 7px 11px; border-radius: 12px 12px 12px 3px; background: rgba(255,255,255,.94); color: #174b47; font-size: 12px; font-weight: 900; animation: mini-bubble .5s .35s both; }
.action-crumbs i { position: absolute; z-index: 6; left: 25%; bottom: 32%; font-size: 20px; font-style: normal; animation: crumb-fly 1.3s ease-out infinite; }
.action-crumbs i:nth-child(2) { left: 43%; animation-delay: .25s; }
.action-crumbs i:nth-child(3) { left: 13%; animation-delay: .5s; }
.action-bubbles i { position: absolute; z-index: 6; left: calc(11% + var(--i) * 8%); bottom: 32%; width: calc(9px + var(--i) * 2px); height: calc(9px + var(--i) * 2px); border: 2px solid rgba(255,255,255,.88); border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, rgba(142,235,255,.2)); animation: action-bubble 2s ease-out infinite; animation-delay: calc(var(--i) * .08s); }
.sparkle-burst { position: absolute; z-index: 6; right: 24%; top: 37%; font-size: 30px; animation: sparkle-pop 1s ease-out infinite; }
.heart-burst { position: absolute; z-index: 6; left: 26%; top: 26%; font-size: 28px; animation: heart-float 1.8s ease-out infinite; }
.sleep-z { position: absolute; z-index: 6; right: 13%; top: 34%; color: #fff; font-size: 36px; font-weight: 1000; text-shadow: 0 3px 7px rgba(7,54,61,.3); animation: sleep-z 2.4s ease-out infinite; }
.sleep-z.z2 { right: 5%; top: 25%; font-size: 28px; animation-delay: .7s; }
.sleep-z.z3 { right: 19%; top: 22%; font-size: 23px; animation-delay: 1.4s; }

.gear { position: absolute; z-index: 8; display: grid; place-items: center; filter: drop-shadow(0 6px 6px rgba(0,0,0,.18)); }
.gear-head { top: 7%; left: 50%; transform: translateX(-50%) rotate(-7deg); font-size: clamp(28px,6vw,48px); }
.gear-body { top: 58%; left: 50%; transform: translateX(-50%); font-size: clamp(26px,5.4vw,46px); opacity: .94; }
.gear-accessory { top: 49%; left: 50%; transform: translateX(-50%); font-size: clamp(20px,4.2vw,32px); opacity: .96; }
.gear-mech { top: 42%; right: 8%; font-size: clamp(20px,4.4vw,30px); animation: mech-bob 2.2s ease-in-out infinite alternate; }
.mech-frame { position: absolute; z-index: 1; inset: 34% 12% 12%; border-radius: 50%; background: radial-gradient(ellipse at 50% 56%, transparent 0 43%, color-mix(in srgb, var(--mech), transparent 76%) 44% 47%, transparent 48%), radial-gradient(ellipse at 50% 78%, color-mix(in srgb, var(--mech), transparent 84%), transparent 62%); box-shadow: 0 0 20px color-mix(in srgb, var(--mech), transparent 48%); opacity: .68; pointer-events: none; animation: mech-pulse 2.2s ease-in-out infinite alternate; }
.mech-frame::before, .mech-frame::after { content: ""; position: absolute; top: 40%; width: 22%; height: 13%; border: 2px solid color-mix(in srgb, var(--mech), #fff 26%); background: linear-gradient(145deg, color-mix(in srgb, var(--mech), #214b63 58%), color-mix(in srgb, var(--mech), #082432 78%)); border-radius: 55% 22% 30% 50%; box-shadow: 0 0 10px color-mix(in srgb, var(--mech), transparent 34%), inset 0 0 7px color-mix(in srgb, var(--mech), transparent 46%); clip-path: polygon(0 22%, 70% 0, 100% 45%, 68% 100%, 8% 78%); }
.mech-frame::before { left: -4%; transform: rotate(-16deg); }
.mech-frame::after { right: -4%; transform: rotate(16deg) scaleX(-1); }
.mech-core { position: absolute; left: 50%; top: 59%; width: 13%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid color-mix(in srgb, var(--mech), #fff 42%); border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fff 0 11%, color-mix(in srgb, var(--mech), #fff 22%) 25%, color-mix(in srgb, var(--mech), #164052 62%) 72%); box-shadow: 0 0 9px var(--mech), 0 0 17px color-mix(in srgb, var(--mech), transparent 38%); }
.mech-core::after { content: ""; position: absolute; inset: 20%; border: 1px solid color-mix(in srgb, var(--mech), #fff 48%); border-radius: 50%; opacity: .8; }
.has-mech .mascot-art { filter: drop-shadow(0 0 9px color-mix(in srgb, var(--mech, #9ff), transparent 48%)); }

/* Expanded shop and equipment */
.shop-status-bar { display: grid; grid-template-columns: auto auto minmax(0,1fr); align-items: center; gap: 12px; margin-bottom: 13px; padding: 12px 14px; border: 1px solid rgba(23,133,111,.2); border-radius: 8px; background: linear-gradient(120deg, #e1f7ee, #fff8dc); }
.shop-status-bar > div { display: flex; align-items: baseline; gap: 5px; }
.shop-status-bar span, .shop-status-bar small { color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.shop-status-bar b { color: var(--green-dark); font-size: 24px; }
.shop-status-bar p { margin: 0; color: #785c20; font-size: 11px; text-align: right; }
.shop-categories { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.shop-tab { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px 8px; min-height: 58px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.78); color: var(--ink); text-align: left; }
.shop-tab > span { grid-row: 1 / 3; font-size: 24px; }
.shop-tab strong { font-size: 13px; }
.shop-tab small { color: var(--muted); font-size: 9px; }
.shop-tab.active { border-color: var(--green); background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(23,133,111,.2); }
.shop-tab.active small { color: rgba(255,255,255,.8); }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.shop-toolbar strong, .shop-toolbar span { display: block; }
.shop-toolbar strong { font-size: 17px; }
.shop-toolbar span { color: var(--muted); font-size: 10px; }
.filter-btn { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: 11px; font-weight: 900; }
.filter-btn.active { border-color: var(--green); background: var(--mint); color: var(--green-dark); }
.shop-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.shop-card { position: relative; min-height: 265px; overflow: hidden; }
.shop-card::before, .bag-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: #b8cbc5; }
.shop-card.quality-rare::before, .bag-card.quality-rare::before { background: #4aa6c5; }
.shop-card.quality-epic::before, .bag-card.quality-epic::before { background: #9c73d9; }
.shop-card.quality-legendary::before, .bag-card.quality-legendary::before { background: linear-gradient(90deg, #f5a623, #f06b63, #f5d442); }
.shop-card.is-locked { background: rgba(245,248,247,.72); }
.shop-card.is-locked .item-art { filter: grayscale(1); opacity: .54; }
.shop-card.is-owned { background: linear-gradient(145deg, #fff, #effbf5); }
.shop-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.quality-badge { padding: 4px 7px; border-radius: 999px; background: #edf2f0; color: #5e7470; font-size: 9px; font-weight: 900; }
.quality-rare .quality-badge { background: #e1f4fb; color: #1c7497; }
.quality-epic .quality-badge { background: #f0e8ff; color: #7444b2; }
.quality-legendary .quality-badge { background: #fff2c9; color: #9d6414; }
.shop-card h3, .bag-card h3 { display: flex; align-items: center; gap: 6px; }
.pet-only { padding: 2px 5px; border-radius: 5px; background: #e6f6f1; color: var(--green-dark); font-size: 9px; font-style: normal; white-space: nowrap; }
.equipment-panel { margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, #fff, #eef9f5); box-shadow: 0 12px 30px rgba(20,68,62,.07); }
.equipment-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.equipment-head strong, .equipment-head span { display: block; }
.equipment-head strong { font-size: 17px; }
.equipment-head span { color: var(--muted); font-size: 10px; }
.equipment-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.equipment-slot { display: flex; align-items: center; gap: 7px; min-height: 66px; padding: 8px; border: 1px dashed rgba(21,61,58,.24); border-radius: 8px; background: rgba(255,255,255,.7); color: var(--ink); text-align: left; }
.equipment-slot.filled { border-style: solid; border-color: rgba(23,133,111,.35); background: #fff; }
.equipment-slot > span { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 7px; background: var(--mint); font-size: 20px; }
.equipment-slot div { min-width: 0; }
.equipment-slot small, .equipment-slot strong, .equipment-slot em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equipment-slot small { color: var(--muted); font-size: 9px; }
.equipment-slot strong { font-size: 11px; }
.equipment-slot em { color: var(--green-dark); font-size: 8px; font-style: normal; }
.bag-card.equipped { box-shadow: 0 0 0 2px rgba(23,133,111,.25), 0 12px 30px rgba(20,68,62,.08); }
.read-cancel { flex: 0 0 auto; }

@keyframes snow-drift { from { transform: translate(0,-8px); opacity: .45; } to { transform: translate(22px,18px); opacity: .95; } }
@keyframes wave-slide { from { transform: translateX(-3%); opacity: .35; } to { transform: translateX(4%); opacity: .8; } }
@keyframes ray-sway { from { transform: rotate(11deg) translateX(-12px); opacity: .4; } to { transform: rotate(16deg) translateX(15px); opacity: .8; } }
@keyframes scene-bubble-rise { 0% { transform: translateY(80px) scale(.5); opacity: 0; } 20% { opacity: .8; } 100% { transform: translateY(-330px) scale(1.15); opacity: 0; } }
@keyframes fish-swim { from { transform: translateX(-20px); opacity: .45; } to { transform: translateX(25px); opacity: .9; } }
@keyframes tail-sway { from { transform: rotate(-7deg); } to { transform: rotate(9deg); } }
@keyframes fin-flutter { from { transform: rotate(-4deg); } to { transform: rotate(7deg); } }
@keyframes head-breathe { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(2px) rotate(.7deg); } }
@keyframes eye-blink { 0%, 43%, 47%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.08); } }
@keyframes mood-pop { from { transform: translateX(-50%) scale(.55); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes mini-bubble { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes chew { from { transform: translateY(-1px) scaleY(.85); } to { transform: translateY(2px) scaleY(1.06); } }
@keyframes feed-nibble { from { transform: translate(0,13px) rotate(-3deg); } to { transform: translate(8px,21px) rotate(2deg); } }
@keyframes body-lean { from { transform: rotate(-2deg) translateY(2px); } to { transform: rotate(3deg) translateY(9px); } }
@keyframes bath-wiggle { 0%,100% { transform: translateX(-50%) scale(var(--pet-zoom,1)) rotate(0); } 25% { transform: translateX(-52%) scale(var(--pet-zoom,1)) rotate(-2deg); } 75% { transform: translateX(-48%) scale(var(--pet-zoom,1)) rotate(2deg); } }
@keyframes mascot-jump { 0%,100% { transform: translateX(-50%) translateY(0) scale(var(--pet-zoom,1)); } 20% { transform: translateX(-50%) translateY(-34px) scale(var(--pet-zoom,1)) ; } 42% { transform: translateX(-50%) translateY(0) scale(var(--pet-zoom,1)); } 60% { transform: translateX(-50%) translateY(-18px) scale(var(--pet-zoom,1)); } 78% { transform: translateX(-50%) translateY(0) scale(var(--pet-zoom,1)); } }
@keyframes paw-wave { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-24deg) translateY(-7px); } }
@keyframes pet-nuzzle { from { transform: translateX(-4px) rotate(-2deg); } to { transform: translateX(5px) rotate(2deg); } }
@keyframes sleep-breathe { 0%,100% { transform: scaleY(.97); } 50% { transform: scaleY(1.03); } }
@keyframes greet-wave { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-30deg) translateY(-5px); } }
@keyframes bowl-in { from { transform: translateY(45px) scale(.4); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes bowl-bob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-5px) rotate(2deg); } }
@keyframes shower-in { from { transform: translate(30px,-30px) rotate(-36deg); opacity: 0; } to { transform: rotate(-18deg); opacity: 1; } }
@keyframes shower-shake { from { transform: rotate(-20deg); } to { transform: rotate(-14deg); } }
@keyframes ball-bounce { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-34px) rotate(70deg); } }
@keyframes hand-pet { 0%,100% { transform: rotate(-25deg) translate(0,0); } 50% { transform: rotate(-17deg) translate(8px,-5px); } }
@keyframes blanket-in { from { transform: translateY(32px) scale(.6); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes greet-hand { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-28deg) translateY(-5px); } }
@keyframes crumb-fly { 0% { transform: translate(0,0) scale(.5); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(30px,-80px) rotate(50deg) scale(1); opacity: 0; } }
@keyframes action-bubble { 0% { transform: translateY(30px) scale(.4); opacity: 0; } 20% { opacity: .95; } 100% { transform: translateY(-190px) scale(1.15); opacity: 0; } }
@keyframes sparkle-pop { 0%,100% { transform: scale(.6) rotate(-15deg); opacity: .4; } 50% { transform: scale(1.35) rotate(12deg); opacity: 1; } }
@keyframes heart-float { 0% { transform: translateY(10px) scale(.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-85px) scale(1.2); opacity: 0; } }
@keyframes sleep-z { 0% { transform: translate(0,15px) scale(.4); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(22px,-80px) scale(1.2); opacity: 0; } }
@keyframes mech-bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-6px) rotate(3deg); } }
@keyframes mech-pulse { from { opacity: .45; transform: scale(.98); } to { opacity: .82; transform: scale(1.015); } }
@keyframes fin-wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-18deg) translateY(-5px); } }

@media (max-width: 980px) {
  .shop-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .equipment-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .shop-status-bar { grid-template-columns: 1fr 1fr; }
  .shop-status-bar p { grid-column: 1 / -1; text-align: left; }
  .shop-categories { grid-template-columns: repeat(6, minmax(54px,1fr)); overflow-x: auto; padding-bottom: 4px; }
  .shop-tab { min-height: 52px; padding: 6px; }
  .shop-tab strong { font-size: 11px; }
  .shop-tab small { display: none; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .mascot { width: 88%; height: min(56%, calc(100% - 153px - 60px)); bottom: calc(18px + 153px + 10px); }
  .pet-stage { min-height: 500px; }
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
  .action-btn { min-height: 39px; padding: 0 3px; font-size: 10px; }
  .action-btn small { min-width: 15px; height: 15px; padding: 0 3px; font-size: 8px; }
  .rest-btn { display: block; width: 100%; min-height: 30px; margin-top: 6px; border: 1px solid rgba(255,255,255,.32); border-radius: 7px; background: rgba(9,47,48,.36); color: #fff; font-size: 10px; font-weight: 800; }
  .shop-toolbar { align-items: flex-start; }
  .shop-toolbar span { max-width: 200px; }
  .shop-tab { grid-template-columns: 1fr; grid-template-rows: auto auto; justify-items: center; gap: 2px; padding: 6px 2px; }
  .shop-tab > span { grid-row: auto; font-size: 20px; }
  .shop-tab strong { font-size: 10px; white-space: nowrap; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-card, .bag-card { min-height: 235px; padding: 12px; }
  .shop-card h3, .bag-card h3 { font-size: 16px; }
  .shop-card p, .bag-card p { font-size: 11px; }
  .shop-card .item-art, .bag-card .item-art { width: 50px; height: 50px; font-size: 30px; }
  .equipment-grid { grid-template-columns: 1fr 1fr; }
  .equipment-slot { min-height: 58px; padding: 6px; }
  .equipment-slot em { display: none; }
  .read-cancel { min-width: 72px; }
  .quiz-progress-wrap { gap: 6px; }
  .combo-badge { padding: 4px 7px; font-size: 10px; }
  .wordfill-card { padding: 14px 10px; }
  .wordfill-options { gap: 8px; }
  .wordfill-option { min-height: 58px; font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .mascot, .mascot *, .mascot-scene *, .shop-card, .bag-card, .wordfill-emoji, .wordfill-blank, .combo-badge { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Horizontal PK battle */
body.battle-active { overflow: hidden; background: #04141b; }
body.battle-active .app-shell { width: 100%; max-width: none; margin: 0; padding: 0; }
body.battle-active .topbar { display: none; }
body.battle-active .screen { min-height: 0; padding: 0; }

.battle-screen.pk-battle {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  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));
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(78, 174, 211, .24), transparent 34%),
    radial-gradient(circle at 88% 90%, rgba(255, 155, 82, .12), transparent 36%),
    linear-gradient(165deg, #071c29, #06151e 62%, #081116);
  color: #f4fcff;
  box-shadow: none;
}

.pk-hud {
  position: relative;
  z-index: 22;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(44px, 7vw, 86px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(4px, .9vw, 12px);
  width: min(100%, 1500px);
  margin: 0 auto;
}
.pk-fighter-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(5px, .8vw, 10px);
  min-width: 0;
  padding: clamp(4px, .65vw, 8px) clamp(6px, .9vw, 12px);
  border: 1px solid rgba(157, 229, 255, .24);
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(16, 53, 68, .9), rgba(7, 26, 36, .74));
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
}
.pk-fighter-card.enemy { grid-template-columns: minmax(0, 1fr) auto; background: linear-gradient(260deg, rgba(75, 35, 36, .8), rgba(29, 18, 27, .7)); border-color: rgba(255, 151, 126, .24); }
.pk-avatar { position: relative; display: grid; place-items: center; width: clamp(38px, 4.7vw, 62px); aspect-ratio: 1; overflow: hidden; border: 2px solid rgba(132, 236, 255, .7); border-radius: 50%; background: radial-gradient(circle at 36% 25%, #defaff, #4d8ea8 68%, #173a4a); box-shadow: 0 0 0 3px rgba(119, 223, 255, .08), 0 0 18px rgba(91, 213, 255, .22); }
.pk-avatar.enemy-avatar { border-color: rgba(255, 162, 119, .75); background: radial-gradient(circle at 38% 28%, #ffe7ce, #b46856 65%, #4b242a); box-shadow: 0 0 0 3px rgba(255, 159, 112, .08), 0 0 18px rgba(255, 113, 77, .2); }
.pk-avatar img { width: 118%; height: 118%; object-fit: contain; object-position: 50% 55%; }
.pk-avatar span { font-size: clamp(22px, 3.2vw, 38px); }
.pk-avatar i { position: absolute; right: -1px; bottom: -1px; display: grid; place-items: center; min-width: 22px; height: 17px; padding: 0 3px; border: 1px solid rgba(255, 255, 255, .48); border-radius: 9px; background: #0a2935; color: #fff; font-size: 7px; font-style: normal; font-weight: 950; }
.pk-fighter-status { min-width: 0; }
.pk-fighter-name { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; margin-bottom: 4px; }
.pk-fighter-name strong { min-width: 0; overflow: hidden; color: #e7fbff; font-size: clamp(10px, 1.35vw, 16px); font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.pk-fighter-name span { flex: none; color: rgba(194, 237, 248, .6); font-size: clamp(7px, .9vw, 10px); font-weight: 800; }
.pk-fighter-card.enemy .pk-fighter-name { flex-direction: row-reverse; }
.pk-hp { position: relative; height: clamp(7px, 1vw, 12px); overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); border-radius: 7px; background: rgba(3, 20, 28, .74); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .3); }
.pk-hp i { display: block; height: 100%; border-radius: inherit; transition: width .32s cubic-bezier(.2,.8,.2,1); }
.pk-hp.player-hp i { background: linear-gradient(90deg, #48dcae, #b9ff76); box-shadow: 0 0 12px rgba(142, 255, 186, .48); }
.pk-hp.enemy-hp i { background: linear-gradient(90deg, #ffbf58, #ff5f58); box-shadow: 0 0 12px rgba(255, 112, 80, .42); }
.pk-fighter-status > small { display: block; margin-top: 2px; color: rgba(207, 242, 250, .58); font-size: clamp(7px, .85vw, 10px); font-weight: 800; text-align: right; }
.pk-fighter-card.player .pk-fighter-status > small { text-align: left; }
.pk-round { display: grid; place-items: center; gap: 0; min-width: 0; padding: 4px 2px; text-align: center; }
.pk-round span { display: grid; place-items: center; width: clamp(31px, 4vw, 44px); aspect-ratio: 1; border: 1px solid rgba(255, 235, 151, .54); border-radius: 50%; background: radial-gradient(circle, rgba(255, 224, 122, .2), rgba(7, 25, 35, .72)); color: #ffe281; font-size: clamp(9px, 1.4vw, 14px); font-weight: 950; box-shadow: 0 0 16px rgba(255, 219, 107, .14); }
.pk-round b { display: none; }
.pk-round em { margin-top: 2px; color: rgba(224, 248, 255, .72); font-size: clamp(6px, .8vw, 9px); font-style: normal; font-weight: 900; white-space: nowrap; }

.battle-arena.pk-arena {
  position: relative;
  display: block;
  width: min(100%, 1500px);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(147, 224, 245, .5);
  border-radius: clamp(12px, 1.7vw, 24px);
  background: linear-gradient(180deg, #7cc6e3 0%, #bce7f4 38%, #e2f4f8 60%, #f9feff 60.5%, #d9f0f7 100%);
  box-shadow: inset 0 0 70px rgba(255, 255, 255, .34), 0 18px 60px rgba(0, 0, 0, .24);
}
.battle-arena.pk-arena::before { content: ""; position: absolute; z-index: 0; inset: 0; background: radial-gradient(circle at 58% 16%, rgba(255,255,255,.8), transparent 18%), linear-gradient(180deg, rgba(255,255,255,.1), transparent 48%); pointer-events: none; }
.battle-arena.pk-arena::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 42%; background: radial-gradient(ellipse at 22% 13%, rgba(255,255,255,.98), transparent 44%), radial-gradient(ellipse at 73% 20%, rgba(213,247,255,.92), transparent 46%), linear-gradient(180deg, #f5fdff, #cdebf5); pointer-events: none; }
.pk-backdrop { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.pk-mountain { position: absolute; display: block; bottom: 25%; height: 56%; background: linear-gradient(148deg, #f6fcff 4%, #a9cedd 48%, #6fa2b7 100%); clip-path: polygon(0 100%, 13% 56%, 29% 79%, 47% 11%, 61% 67%, 78% 31%, 100% 100%); filter: drop-shadow(0 8px 18px rgba(42,104,132,.13)); opacity: .82; }
.pk-mountain.m1 { left: -10%; width: 66%; }
.pk-mountain.m2 { right: -8%; width: 69%; height: 48%; opacity: .58; transform: scaleX(-1); }
.pk-mountain.m3 { left: 30%; width: 42%; height: 34%; bottom: 31%; opacity: .38; }
.pk-ice-tree { position: absolute; z-index: 2; bottom: 25%; width: 20px; height: 72px; background: linear-gradient(90deg, #3d8894, #9fdfe6 54%, #3e8791); clip-path: polygon(50% 0, 72% 28%, 62% 28%, 86% 55%, 70% 55%, 100% 100%, 0 100%, 30% 55%, 14% 55%, 38% 28%, 28% 28%); filter: drop-shadow(0 8px 7px rgba(33,96,112,.18)); opacity: .72; }
.pk-ice-tree.t1 { left: 4%; transform: scale(.78); }
.pk-ice-tree.t2 { left: 31%; bottom: 23%; transform: scale(.52); opacity: .5; }
.pk-ice-tree.t3 { right: 8%; bottom: 24%; transform: scale(.68); opacity: .56; }
.pk-battle .battle-snowfall { position: absolute; z-index: 3; inset: 0; overflow: hidden; }
.pk-battle .battle-snowfall i { position: absolute; top: -10%; left: var(--x); width: var(--size); height: var(--size); border-radius: 50%; background: rgba(255,255,255,.96); box-shadow: 0 0 8px #fff; animation: battle-snow var(--duration) linear var(--delay) infinite; }

.pk-combatant { position: absolute; z-index: 5; bottom: 11%; display: flex; flex-direction: column; align-items: center; width: 36%; pointer-events: none; }
.pk-combatant.player { left: 2.5%; }
.pk-combatant.enemy { right: 21%; width: 33%; }
.pk-fighter-tag { position: relative; z-index: 5; max-width: 100%; margin-bottom: -2px; padding: 4px 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.58); border-radius: 12px; background: rgba(8, 41, 54, .72); color: #effdff; font-size: clamp(8px, 1.2vw, 13px); font-weight: 950; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 4px 13px rgba(18,72,91,.2); backdrop-filter: blur(6px); }
.pk-combatant.enemy .pk-fighter-tag { border-color: rgba(255,90,74,.56); background: rgba(54,20,28,.7); }
.pk-battle .battle-pet-art, .pk-battle .battle-enemy-art { position: relative; display: grid; place-items: end center; width: 100%; height: clamp(150px, 42vh, 500px); }
.pk-battle .battle-pet-image, .pk-battle .battle-wolf-image { position: relative; z-index: 3; width: 100%; max-width: none; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 15px rgba(19,75,94,.2)); transform-origin: 50% 88%; }
.pk-battle .battle-pet-image { animation: pk-breathe 2.9s ease-in-out infinite; }
.pk-battle .battle-wolf-image { animation: pk-wolf-idle 2.5s ease-in-out infinite; transform-origin: 50% 86%; }
.pk-crown { position: absolute; z-index: 6; left: 50%; top: 2%; font-size: clamp(27px, 5vw, 56px); transform: translateX(-50%) rotate(-7deg); filter: drop-shadow(0 0 12px rgba(255,212,94,.72)); animation: pk-crown-float 2.1s ease-in-out infinite; }
.pk-king-name-tag { font-style: normal; margin-right: .22em; filter: drop-shadow(0 0 6px rgba(255, 216, 104, .78)); }
.pk-battle .battle-ground-shadow { position: absolute; z-index: 2; left: 12%; right: 12%; bottom: 2px; height: 16px; border-radius: 50%; background: radial-gradient(ellipse, rgba(20,85,106,.32), transparent 70%); filter: blur(2px); }
.pk-battle .battle-aura-ring { position: absolute; z-index: 1; left: 12%; right: 12%; bottom: 3%; height: 33%; border: 2px solid rgba(156,240,255,.5); border-radius: 50%; box-shadow: 0 0 24px rgba(105,225,255,.28), inset 0 0 18px rgba(255,255,255,.18); opacity: .46; animation: aura-breathe 2.3s ease-in-out infinite alternate; }
.pk-battle .battle-enemy-art::after { content: ""; position: absolute; z-index: 2; left: 13%; right: 13%; bottom: 2px; height: 15px; border-radius: 50%; background: radial-gradient(ellipse, rgba(20,85,106,.3), transparent 70%); filter: blur(2px); }
.pk-battle .battle-enemy-art .enemy-art { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.pk-battle .battle-enemy-art .enemy-art em { font-size: clamp(76px, 15vw, 190px); font-style: normal; filter: drop-shadow(0 0 18px rgba(208,240,255,.5)) drop-shadow(0 14px 12px rgba(0,0,0,.25)); }
.pk-versus { position: absolute; z-index: 8; left: 49%; top: 37%; display: grid; place-items: center; width: clamp(38px, 5.4vw, 64px); aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(6, 34, 47, .62); box-shadow: 0 0 22px rgba(124, 229, 255, .28); color: #fff; transform: translate(-50%, -50%); backdrop-filter: blur(6px); }
.pk-versus span { font-size: clamp(9px, 1.35vw, 14px); font-weight: 950; letter-spacing: .04em; }
.pk-versus i { position: absolute; top: -7px; right: -5px; font-size: clamp(11px, 1.6vw, 17px); font-style: normal; }

.pk-actions { position: absolute; z-index: 18; right: max(7px, env(safe-area-inset-right)); top: 50%; display: flex; flex-direction: column; align-items: center; gap: clamp(5px, .8vh, 9px); transform: translateY(-50%); }
.pk-actions-title { padding: 2px 5px; border-radius: 8px; background: rgba(4, 26, 37, .72); color: rgba(226, 250, 255, .64); font-size: clamp(6px, .8vw, 9px); font-weight: 950; letter-spacing: .08em; white-space: nowrap; }
.pk-skill { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: clamp(56px, 8.6vh, 82px); aspect-ratio: 1; padding: 4px 3px; border: 2px solid rgba(212, 247, 255, .52); border-radius: 50%; background: radial-gradient(circle at 38% 24%, rgba(230,252,255,.28), rgba(13,43,56,.96) 56%, rgba(4,20,29,.98)); color: #fff; text-align: center; box-shadow: inset 0 0 14px rgba(255,255,255,.08), 0 5px 14px rgba(0,0,0,.32); -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .08s ease, filter .12s ease; }
.pk-skill:active:not(:disabled) { transform: scale(.91); filter: brightness(1.16); }
.pk-skill:disabled { opacity: .42; filter: grayscale(.72); }
.pk-skill .pk-skill-icon { display: block; font-size: clamp(18px, 3.3vh, 30px); line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.pk-skill strong { display: block; max-width: 100%; overflow: hidden; font-size: clamp(7px, 1.25vh, 10px); font-weight: 950; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.pk-skill small { display: block; color: rgba(226, 249, 255, .66); font-size: clamp(6px, .95vh, 8px); font-weight: 800; line-height: 1; white-space: nowrap; }
.pk-skill b { position: absolute; top: -3px; right: -4px; display: grid; place-items: center; min-width: 21px; height: 19px; padding: 0 4px; border: 1px solid rgba(255,255,255,.6); border-radius: 10px; background: #092737; color: #fff; font-size: clamp(7px, 1vw, 9px); font-weight: 950; box-shadow: 0 3px 7px rgba(0,0,0,.28); }
.pk-skill.tier-1 { border-color: rgba(112, 231, 255, .82); box-shadow: inset 0 0 18px rgba(81,201,255,.13), 0 0 15px rgba(71,198,255,.24); }
.pk-skill.tier-1 .pk-skill-icon { filter: drop-shadow(0 0 7px rgba(83,221,255,.7)); }
.pk-skill.tier-2 { border-color: rgba(197, 160, 255, .86); background: radial-gradient(circle at 38% 24%, rgba(220,195,255,.28), rgba(43,30,77,.96) 58%, rgba(17,14,38,.98)); box-shadow: inset 0 0 18px rgba(185,139,255,.13), 0 0 16px rgba(164,105,255,.25); }
.pk-skill.tier-2 .pk-skill-icon { filter: drop-shadow(0 0 8px rgba(207,157,255,.8)); }
.pk-skill.tier-3 { border-color: rgba(255, 221, 100, .95); background: radial-gradient(circle at 38% 24%, rgba(255,234,156,.3), rgba(72,47,12,.96) 58%, rgba(28,19,8,.99)); box-shadow: inset 0 0 18px rgba(255,224,120,.16), 0 0 18px rgba(255,196,57,.34); }
.pk-skill.tier-3 .pk-skill-icon { filter: drop-shadow(0 0 9px rgba(255,222,101,.92)); animation: pk-ultimate-pulse 1.7s ease-in-out infinite; }
.pk-skill.tier-4 { border-color: rgba(186, 244, 255, .98); background: radial-gradient(circle at 38% 24%, rgba(203,247,255,.34), rgba(14,34,74,.97) 56%, rgba(4,10,30,.99)); box-shadow: inset 0 0 20px rgba(164,240,255,.2), 0 0 24px rgba(95,214,255,.44); }
.pk-skill.tier-4 .pk-skill-icon { filter: drop-shadow(0 0 10px rgba(190,248,255,.98)); animation: pk-ultimate-pulse 1.5s ease-in-out infinite; }

.pk-footer { position: absolute; z-index: 16; left: clamp(7px, 1.2vw, 16px); right: clamp(82px, 11.8vw, 150px); bottom: clamp(7px, 1.1vh, 13px); display: flex; align-items: center; gap: clamp(5px, .8vw, 10px); }
.pk-exit { flex: none; min-height: 33px; padding: 0 10px; border: 1px solid rgba(190, 239, 252, .4); border-radius: 9px; background: rgba(4, 30, 42, .72); color: #e8fbff; font-size: clamp(8px, 1.1vw, 11px); font-weight: 900; backdrop-filter: blur(8px); }
.pk-message { flex: 1; min-width: 0; min-height: 33px; padding: 7px 11px; overflow: hidden; border: 1px solid rgba(193, 241, 255, .22); border-radius: 9px; background: rgba(3, 28, 40, .72); color: #ecfcff; font-size: clamp(8px, 1.2vw, 12px); font-weight: 850; line-height: 1.35; text-overflow: ellipsis; backdrop-filter: blur(8px); }
.pk-turn-hint { flex: none; padding: 4px 7px; border-radius: 8px; background: rgba(5, 31, 43, .72); color: rgba(218, 246, 255, .72); font-size: clamp(7px, .95vw, 9px); font-weight: 900; white-space: nowrap; }

.pk-damage { position: absolute; z-index: 19; right: 28%; top: 28%; color: #fff; font-size: clamp(31px, 7vh, 68px); font-weight: 950; line-height: 1; text-shadow: 0 0 5px #fff, 0 0 17px rgba(95,222,255,.9), 0 5px 0 rgba(8,49,69,.55); transform: rotate(-8deg); animation: pk-damage-pop .82s cubic-bezier(.12,.75,.28,1) both; pointer-events: none; }
.pk-damage.is-enemy { right: auto; left: 25%; color: #ffe2c9; text-shadow: 0 0 5px #fff, 0 0 17px rgba(255,107,76,.9), 0 5px 0 rgba(74,22,22,.5); transform: rotate(7deg); }
.pk-battle.is-over .pk-fighter-tag, .pk-battle.is-over .pk-versus, .pk-battle.is-over .pk-fx, .pk-battle.is-over .pk-damage { opacity: 0; }

.pk-fx { position: absolute; z-index: 12; inset: 0; overflow: hidden; pointer-events: none; }
.pk-fx > * { position: absolute; display: block; opacity: 0; }
.fx-basic .pk-fx i { left: 39%; top: 38%; width: 31%; height: 4px; border-radius: 5px; background: linear-gradient(90deg, transparent, #fff 28%, #bdf4ff 58%, transparent); box-shadow: 0 0 12px #fff, 0 0 23px rgba(88,222,255,.9); transform-origin: left center; animation: pk-slash .42s ease-out both; }
.fx-basic .pk-fx i:nth-child(2) { top: 49%; animation-delay: .055s; }
.fx-basic .pk-fx i:nth-child(3) { top: 59%; animation-delay: .1s; }
.fx-basic .pk-fx span { left: 55%; top: 40%; width: 18%; aspect-ratio: 1; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 18px rgba(112,232,255,.82); animation: pk-impact-ring .42s ease-out both; }
.fx-ice .pk-fx i { left: 36%; top: 34%; width: 36%; height: 7px; border-radius: 8px; background: linear-gradient(90deg, transparent, #f6ffff 14%, #69eaff 50%, #d7fbff 84%, transparent); box-shadow: 0 0 15px #6cecff, 0 0 31px rgba(47,191,255,.88); transform-origin: left center; animation: pk-ice-slash .66s cubic-bezier(.1,.7,.2,1) both; }
.fx-ice .pk-fx i:nth-child(2) { top: 46%; animation-delay: .045s; transform: rotate(4deg); }
.fx-ice .pk-fx i:nth-child(3) { top: 58%; animation-delay: .09s; transform: rotate(-3deg); }
.fx-ice .pk-fx b { left: 53%; top: 31%; width: 26%; aspect-ratio: 1; border: 3px solid #d7ffff; border-radius: 50%; box-shadow: 0 0 22px #78edff, inset 0 0 22px rgba(152,247,255,.7); animation: pk-impact-ring .62s ease-out both; }
.fx-ice .pk-fx span { left: 61%; top: 46%; width: 11px; height: 11px; background: #fff; transform: rotate(45deg); box-shadow: 37px -31px 0 -2px #a8f7ff, 63px 11px 0 -3px #5feaff, -48px 24px 0 -3px #d7ffff, 21px 49px 0 -2px #77eaff; animation: pk-ice-burst .65s ease-out both; }
.fx-moon .pk-fx i { left: 32%; top: 35%; width: 52%; height: 11px; border: 0; border-top: 3px solid rgba(255,255,255,.95); border-radius: 50%; box-shadow: 0 -4px 13px rgba(213,247,255,.8); transform: rotate(-12deg) scaleX(.2); animation: pk-moon-arc .78s cubic-bezier(.1,.7,.2,1) both; }
.fx-moon .pk-fx i:nth-child(2) { top: 48%; transform: rotate(5deg) scaleX(.2); animation-delay: .06s; }
.fx-moon .pk-fx i:nth-child(3) { top: 60%; transform: rotate(15deg) scaleX(.2); animation-delay: .12s; }
.fx-moon .pk-fx b { left: 54%; top: 23%; width: 21%; aspect-ratio: 1; border: 7px solid transparent; border-left-color: #e8fbff; border-radius: 50%; filter: drop-shadow(0 0 14px #b9efff); transform: rotate(-25deg); animation: pk-crescent .82s ease-out both; }
.fx-moon .pk-fx span { left: 47%; top: 34%; width: 27%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.88), rgba(160,232,255,.2) 38%, transparent 68%); animation: pk-moon-flash .62s ease-out both; }
.fx-storm .pk-fx i { left: 49%; top: 4%; width: 6%; height: 72%; background: linear-gradient(180deg, transparent, #fff9c9 24%, #ffe16d 68%, transparent); clip-path: polygon(46% 0, 100% 0, 63% 38%, 94% 38%, 29% 100%, 48% 54%, 12% 54%); filter: drop-shadow(0 0 10px #fff1a0); animation: pk-lightning .69s ease-out both; }
.fx-storm .pk-fx i:nth-child(2) { left: 38%; top: 14%; height: 52%; transform: rotate(-18deg) scale(.58); animation-delay: .08s; }
.fx-storm .pk-fx i:nth-child(3) { left: 61%; top: 18%; height: 48%; transform: rotate(20deg) scale(.53); animation-delay: .14s; }
.fx-storm .pk-fx b { left: 50%; top: 40%; width: 22%; aspect-ratio: 1; border: 5px solid #ffe16e; border-radius: 50%; box-shadow: 0 0 26px #ffd95a, 0 0 60px rgba(255,191,54,.55), inset 0 0 26px rgba(255,245,177,.62); transform: translate(-50%, -50%); animation: pk-shockwave .82s ease-out both; }
.fx-storm .pk-fx span { left: 48%; top: 37%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0 14%, #fff0a7 25%, rgba(255,193,54,.32) 48%, transparent 70%); transform: translate(-50%, -50%); animation: pk-storm-flash .7s ease-out both; }
.fx-enemy .pk-fx i { left: 19%; top: 34%; width: 34%; height: 7px; background: linear-gradient(90deg, transparent, #ffb083, #fff1ce, transparent); box-shadow: 0 0 14px rgba(255,117,79,.8); transform-origin: right center; animation: pk-enemy-slash .48s ease-out both; }
.fx-enemy .pk-fx i:nth-child(2) { top: 47%; animation-delay: .05s; }
.fx-enemy .pk-fx b { left: 22%; top: 34%; width: 20%; aspect-ratio: 1; border: 3px solid rgba(255,190,145,.9); border-radius: 50%; animation: pk-impact-ring .5s ease-out both; }

.pk-combatant.player.is-attacking .battle-pet-image { animation: pk-player-strike .82s cubic-bezier(.2,.78,.22,1) both; }
.fx-moon .pk-combatant.player .battle-pet-image { animation: pk-moon-dash .86s cubic-bezier(.16,.8,.2,1) both; }
.fx-storm .pk-combatant.player .battle-pet-image { animation: pk-storm-cast .9s ease-out both; }
.pk-combatant.enemy.is-hit .battle-wolf-image, .pk-combatant.enemy.is-hit .enemy-art { animation: pk-enemy-hit .56s ease-out both; }
.pk-combatant.enemy.is-attacking .battle-wolf-image, .pk-combatant.enemy.is-attacking .enemy-art { animation: pk-wolf-lunge .66s cubic-bezier(.2,.78,.22,1) both; }
.pk-combatant.player.is-hit .battle-pet-image { animation: pk-player-hit .52s ease-in-out both; }

.pk-result { position: absolute; z-index: 40; inset: 0; display: grid; place-items: center; align-content: center; gap: clamp(8px, 1.6vh, 18px); padding: 16px; background: radial-gradient(circle at 50% 46%, rgba(13, 74, 100, .72), rgba(3, 17, 26, .93) 62%); backdrop-filter: blur(7px); animation: pk-result-in .25s ease-out both; }
.pk-result.win { background: radial-gradient(circle at 50% 42%, rgba(119, 78, 10, .78), rgba(6, 23, 30, .95) 66%); }
.pk-result.lose { background: radial-gradient(circle at 50% 42%, rgba(124, 35, 28, .78), rgba(18, 14, 22, .96) 66%); }
.pk-ko { position: relative; z-index: 2; color: #fff; font-size: clamp(70px, 18vw, 190px); font-weight: 950; letter-spacing: -.07em; line-height: .88; -webkit-text-stroke: clamp(2px, .35vw, 5px) rgba(5, 35, 48, .86); text-shadow: 0 0 0 #fff, 0 8px 0 rgba(0,0,0,.2), 0 0 38px rgba(161,236,255,.48); transform: rotate(-2deg); animation: pk-ko-boom .55s cubic-bezier(.15,.86,.2,1.22) both; }
.pk-result.win .pk-ko { color: #ffe272; text-shadow: 0 0 0 #fff, 0 8px 0 rgba(74,46,5,.26), 0 0 42px rgba(255,209,81,.62); }
.pk-result.lose .pk-ko { color: #ff6e5d; text-shadow: 0 0 0 #fff, 0 8px 0 rgba(60,11,12,.3), 0 0 42px rgba(255,83,76,.55); }
.pk-result-card { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; width: min(92%, 550px); padding: clamp(10px, 1.7vw, 18px); border: 1px solid rgba(191,242,255,.28); border-radius: 14px; background: rgba(7, 31, 45, .72); }
.pk-result-card > span { font-size: clamp(33px, 5vw, 55px); }
.pk-result-card small { display: block; color: #ffdf72; font-size: clamp(7px, .9vw, 10px); font-weight: 950; letter-spacing: .12em; }
.pk-result-card h2 { margin: 2px 0 4px; color: #fff; font-size: clamp(17px, 2.2vw, 27px); }
.pk-result-card p { margin: 0; color: rgba(226,249,255,.78); font-size: clamp(9px, 1.25vw, 13px); line-height: 1.5; }
.pk-result-card em { display: block; margin-top: 5px; color: #ffe17d; font-size: clamp(9px, 1.2vw, 12px); font-style: normal; font-weight: 900; }
.pk-result-actions { position: relative; z-index: 2; display: flex; gap: 8px; }
.pk-result-actions .primary-btn, .pk-result-actions .secondary-btn { min-height: 35px; padding-inline: 15px; font-size: 11px; }
.pk-battle.fx-defeat .pk-result, .pk-battle.fx-defeat .pk-ko { animation-delay: 1.15s; }
.pk-auto-exit { color: rgba(221,245,255,.56); font-size: clamp(8px, 1vw, 10px); font-weight: 800; }

@keyframes pk-breathe { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.012); } }
@keyframes pk-wolf-idle { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-1deg); } }
@keyframes pk-crown-float { 0%,100% { transform: translateX(-50%) translateY(0) rotate(-7deg); } 50% { transform: translateX(-50%) translateY(-6px) rotate(-3deg); } }
@keyframes pk-player-strike { 0% { transform: translateX(0) translateY(0) rotate(0) scale(1); } 34% { transform: translateX(clamp(30px, 8vw, 120px)) translateY(-28px) rotate(-8deg) scale(1.06); } 58% { transform: translateX(clamp(37px, 9vw, 140px)) translateY(-11px) rotate(-3deg) scale(1.03); } 100% { transform: translateX(0) translateY(0) rotate(0) scale(1); } }
@keyframes pk-moon-dash { 0% { transform: translateX(0) translateY(0) rotate(0); filter: drop-shadow(0 0 0 rgba(205,245,255,0)); } 24% { transform: translateX(-8%) translateY(5px) scale(.96); } 48% { transform: translateX(clamp(44px, 11vw, 165px)) translateY(-38px) rotate(-13deg) scale(1.09); filter: drop-shadow(0 0 18px rgba(221,249,255,.86)); } 70% { transform: translateX(clamp(50px, 12vw, 178px)) translateY(-16px) rotate(-5deg) scale(1.04); } 100% { transform: translateX(0) translateY(0) rotate(0) scale(1); filter: drop-shadow(0 20px 15px rgba(19,75,94,.2)); } }
@keyframes pk-storm-cast { 0%,100% { transform: translateY(0) scale(1); filter: drop-shadow(0 20px 15px rgba(19,75,94,.2)); } 22% { transform: translateY(4px) scale(.97); } 45% { transform: translateY(-28px) scale(1.055); filter: drop-shadow(0 0 26px rgba(255,229,117,.9)); } 70% { transform: translateY(-13px) scale(1.02); filter: drop-shadow(0 0 17px rgba(255,210,80,.7)); } }
@keyframes pk-enemy-hit { 0%,100% { transform: translateX(0) rotate(0); } 24% { transform: translateX(20px) translateY(-10px) rotate(8deg); } 53% { transform: translateX(12px) translateY(-3px) rotate(4deg); } 76% { transform: translateX(17px) rotate(6deg); } }
@keyframes pk-wolf-lunge { 0%,100% { transform: translateX(0) translateY(0) rotate(0); } 46% { transform: translateX(clamp(-104px, -10vw, -38px)) translateY(-27px) rotate(7deg) scale(1.05); } }
@keyframes pk-player-hit { 0%,100% { transform: translateX(0) rotate(0); } 19% { transform: translateX(-13px) rotate(-3deg); } 43% { transform: translateX(10px) rotate(3deg); } 69% { transform: translateX(-6px) rotate(-1deg); } }
@keyframes pk-slash { 0% { opacity: 0; transform: scaleX(.25) rotate(-12deg); } 24% { opacity: 1; } 100% { opacity: 0; transform: scaleX(1.08) rotate(7deg); } }
@keyframes pk-ice-slash { 0% { opacity: 0; transform: scaleX(.2) rotate(-16deg); } 22% { opacity: 1; } 100% { opacity: 0; transform: scaleX(1.04) rotate(5deg); } }
@keyframes pk-impact-ring { 0% { opacity: .95; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes pk-ice-burst { 0% { opacity: 0; transform: rotate(45deg) scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: rotate(65deg) scale(1.7); } }
@keyframes pk-moon-arc { 0% { opacity: 0; transform: rotate(-24deg) scaleX(.12) translateX(-14%); } 28% { opacity: 1; } 100% { opacity: 0; transform: rotate(8deg) scaleX(1.12) translateX(4%); } }
@keyframes pk-crescent { 0% { opacity: 0; transform: rotate(-70deg) scale(.2); } 30% { opacity: 1; } 100% { opacity: 0; transform: rotate(20deg) scale(1.4); } }
@keyframes pk-moon-flash { 0% { opacity: 0; transform: scale(.25); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes pk-lightning { 0% { opacity: 0; transform: scaleY(.1); } 18% { opacity: 1; } 47% { opacity: .45; } 63% { opacity: 1; } 100% { opacity: 0; transform: scaleY(1.12); } }
@keyframes pk-shockwave { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.08); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(4.2); } }
@keyframes pk-storm-flash { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.1); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); } }
@keyframes pk-enemy-slash { 0% { opacity: 0; transform: scaleX(.2) rotate(8deg); } 24% { opacity: 1; } 100% { opacity: 0; transform: scaleX(1.05) rotate(-8deg); } }
@keyframes pk-damage-pop { 0% { opacity: 0; transform: translateY(18px) scale(.42) rotate(-8deg); } 28% { opacity: 1; transform: translateY(0) scale(1.13) rotate(-8deg); } 62% { opacity: 1; transform: translateY(-6px) scale(1) rotate(-8deg); } 100% { opacity: 0; transform: translateY(-29px) scale(.9) rotate(-8deg); } }
@keyframes pk-result-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pk-ko-boom { 0% { opacity: 0; transform: rotate(-5deg) scale(2.15); } 55% { opacity: 1; transform: rotate(-2deg) scale(.94); } 76% { transform: rotate(-2deg) scale(1.04); } 100% { opacity: 1; transform: rotate(-2deg) scale(1); } }
@keyframes pk-ultimate-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

@media (max-width: 560px) {
  .pk-hud { grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr); gap: 3px; }
  .pk-fighter-card { gap: 4px; padding: 4px 5px; border-radius: 10px; }
  .pk-avatar { width: 37px; border-width: 1px; }
  .pk-avatar i { min-width: 18px; height: 14px; font-size: 6px; }
  .pk-fighter-name { gap: 2px; margin-bottom: 3px; }
  .pk-fighter-name strong { font-size: 10px; }
  .pk-fighter-name span { display: none; }
  .pk-hp { height: 7px; }
  .pk-fighter-status > small { font-size: 6px; }
  .pk-round span { width: 30px; font-size: 8px; }
  .pk-round em { font-size: 6px; }
  .pk-combatant.player { left: 1%; width: 38%; }
  .pk-combatant.enemy { right: 20%; width: 35%; }
  .pk-battle .battle-pet-art, .pk-battle .battle-enemy-art { height: clamp(142px, 37vh, 320px); }
  .pk-versus { top: 40%; width: 35px; }
  .pk-skill { width: clamp(54px, 8.2vh, 65px); }
  .pk-actions { gap: 5px; }
  .pk-actions-title { font-size: 6px; }
  .pk-footer { right: 72px; gap: 4px; bottom: 6px; }
  .pk-exit { min-height: 30px; padding-inline: 7px; font-size: 8px; }
  .pk-message { min-height: 30px; padding: 5px 7px; font-size: 8px; }
  .pk-turn-hint { display: none; }
  .pk-result { gap: 7px; }
  .pk-result-card { gap: 8px; padding: 10px; }
  .pk-result-card p { font-size: 9px; }
  .pk-result-actions .primary-btn, .pk-result-actions .secondary-btn { min-height: 32px; font-size: 10px; }
}

@media (orientation: landscape) and (max-height: 600px) {
  .battle-screen.pk-battle { gap: 5px; 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)); }
  .pk-fighter-card { padding: 3px 6px; }
  .pk-avatar { width: clamp(32px, 10vh, 46px); }
  .pk-fighter-name { margin-bottom: 2px; }
  .pk-fighter-name strong { font-size: 10px; }
  .pk-fighter-name span { display: none; }
  .pk-hp { height: 7px; }
  .pk-fighter-status > small { font-size: 7px; }
  .pk-round span { width: clamp(28px, 8vh, 38px); }
  .pk-round em { font-size: 7px; }
  .pk-battle .battle-pet-art, .pk-battle .battle-enemy-art { height: min(55vh, 330px); }
  .pk-combatant { bottom: 8%; }
  .pk-actions { gap: 4px; }
  .pk-actions-title { display: none; }
  .pk-skill { width: clamp(48px, 17vh, 68px); }
  .pk-skill strong { font-size: 8px; }
  .pk-skill small { display: none; }
  .pk-footer { bottom: 5px; }
  .pk-message { min-height: 28px; padding: 4px 8px; font-size: 8px; }
  .pk-exit { min-height: 28px; font-size: 8px; }
  .pk-result-card { padding: 8px 12px; }
  .pk-result-card h2 { font-size: 16px; }
  .pk-result-card p { font-size: 9px; }
  .pk-ko { font-size: clamp(64px, 24vh, 125px); }
  .pk-result { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .pk-battle *, .pk-battle *::before, .pk-battle *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Cinematic battle stage */
.pk-battle .battle-pet-image, .pk-battle .battle-wolf-image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: 50% 100%; }
.pk-stage { position: absolute; z-index: 2; inset: 0; overflow: hidden; transform-origin: 50% 56%; }
.pk-stadium { position: absolute; z-index: 1; left: 3%; right: 3%; bottom: 18%; height: 33%; pointer-events: none; filter: drop-shadow(0 14px 20px rgba(20,72,95,.18)); }
.pk-stand { position: absolute; inset: 0 0 20%; display: block; border: clamp(3px, .45vw, 7px) solid rgba(198,236,247,.7); border-radius: 50% 50% 16% 16% / 32% 32% 14% 14%; background: linear-gradient(180deg, rgba(27,70,91,.76), rgba(53,102,122,.52) 34%, rgba(176,219,233,.36) 67%, rgba(235,249,253,.12)); box-shadow: inset 0 5px 16px rgba(255,255,255,.22), inset 0 -14px 22px rgba(11,48,65,.24), 0 0 0 3px rgba(255,255,255,.12); }
.pk-stand::before { content: ""; position: absolute; left: 2%; right: 2%; top: 14%; height: 45%; border-top: 1px solid rgba(213,249,255,.42); border-bottom: 1px solid rgba(8,38,55,.36); background: repeating-linear-gradient(90deg, transparent 0 5.4%, rgba(211,243,252,.14) 5.4% 5.55%); }
.pk-stand::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -12%; height: 34%; border: 4px solid rgba(208,243,252,.72); border-radius: 50%; background: linear-gradient(180deg, rgba(73,130,151,.34), rgba(224,247,253,.24)); box-shadow: inset 0 4px 10px rgba(255,255,255,.28), 0 0 20px rgba(125,227,255,.14); }
.pk-crowd { position: absolute; z-index: 2; left: 3%; right: 3%; top: 4%; height: 42%; overflow: hidden; border-radius: 50% 50% 0 0 / 40% 40% 0 0; opacity: .8; }
.pk-crowd i { position: absolute; bottom: 3%; left: var(--x); width: clamp(4px, .7vw, 10px); height: clamp(8px, 1.4vw, 19px); border-radius: 50% 50% 35% 35%; background: linear-gradient(180deg, rgba(13,42,57,.75), rgba(31,70,89,.4)); animation: pk-crowd-bob 2.2s ease-in-out var(--d) infinite alternate; }
.pk-crowd i::before { content: ""; position: absolute; left: 18%; right: 18%; top: -45%; height: 58%; border-radius: 50%; background: rgba(15,45,61,.72); }
.pk-rink { position: absolute; z-index: 3; left: -2%; right: -2%; bottom: 7%; height: 26%; border: 5px solid rgba(213,245,255,.64); border-radius: 50%; background: linear-gradient(180deg, rgba(185,230,244,.16), rgba(238,252,255,.5)); box-shadow: inset 0 3px 12px rgba(255,255,255,.36), 0 9px 28px rgba(24,79,101,.16); }
.pk-rink::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 20%; height: 3px; border-radius: 50%; background: rgba(120,226,255,.48); box-shadow: 0 0 16px rgba(96,223,255,.5); }
.pk-floodlight { position: absolute; z-index: 4; bottom: 52%; width: clamp(34px, 5vw, 82px); height: clamp(48px, 8vw, 120px); pointer-events: none; filter: drop-shadow(0 0 18px rgba(229,252,255,.8)); }
.pk-floodlight.left { left: 8%; }
.pk-floodlight.right { right: 8%; transform: scaleX(-1); }
.pk-floodlight::before { content: ""; position: absolute; left: 48%; bottom: 0; width: 4%; height: 76%; border-radius: 4px; background: linear-gradient(180deg, #e8fbff, #5b9fb3); box-shadow: 0 0 8px rgba(173,243,255,.58); }
.pk-floodlight::after { content: ""; position: absolute; left: 6%; top: 2%; width: 82%; height: 28%; border: 2px solid rgba(202,244,255,.82); border-radius: 5px; background: linear-gradient(180deg, #fff, #bdefff 45%, #77d6ee); box-shadow: 0 0 16px rgba(168,244,255,.95), 0 0 44px rgba(95,216,255,.42); transform: skewX(-8deg); }
.pk-arena-glow { position: absolute; z-index: 1; left: 7%; right: 22%; bottom: 3%; height: 32%; border-radius: 50%; background: radial-gradient(ellipse at 50% 48%, rgba(205,249,255,.46), rgba(110,222,255,.16) 44%, transparent 72%); filter: blur(5px); pointer-events: none; }
.battle-pet-after, .battle-wolf-after { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: saturate(.7) brightness(1.45) drop-shadow(0 0 13px rgba(109,234,255,.8)); pointer-events: none; }
.battle-pet-after { transform-origin: 50% 88%; }
.battle-wolf-after { transform-origin: 50% 86%; }
.battle-pet-after.after-2, .battle-wolf-after.after-1 { z-index: 1; }
.pk-cinematic { position: absolute; z-index: 13; inset: 0; overflow: hidden; pointer-events: none; }
.pk-cinematic > i, .pk-ground-crack, .pk-victory-sparks { position: absolute; display: block; opacity: 0; pointer-events: none; }
.pk-speed-rays { z-index: 1; inset: -20%; background: repeating-conic-gradient(from -8deg at 52% 58%, transparent 0 4.8deg, rgba(229,251,255,.12) 4.9deg 5.25deg, transparent 5.35deg 10.5deg); -webkit-mask-image: radial-gradient(circle at 52% 58%, transparent 0 18%, #000 42%, transparent 79%); mask-image: radial-gradient(circle at 52% 58%, transparent 0 18%, #000 42%, transparent 79%); }
.pk-impact-flash { z-index: 5; left: 68%; top: 45%; width: 27%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0 8%, rgba(226,252,255,.98) 12%, rgba(99,226,255,.56) 30%, transparent 68%); filter: blur(1px); transform: translate(-50%,-50%); }
.pk-ice-floor-ring { z-index: 2; left: 7%; right: 22%; bottom: 4%; height: 27%; border: 3px solid rgba(183,247,255,.9); border-radius: 50%; box-shadow: 0 0 14px rgba(137,240,255,.8), inset 0 0 22px rgba(201,249,255,.34); }
.pk-ground-shock { z-index: 3; left: 50%; bottom: 8%; width: 34%; aspect-ratio: 1; border: 6px solid rgba(230,253,255,.95); border-radius: 50%; transform: translate(-50%,50%); box-shadow: 0 0 30px rgba(118,230,255,.9), inset 0 0 25px rgba(180,248,255,.38); }
.pk-ground-crack { z-index: 4; left: 5%; right: 9%; bottom: 5%; height: 54%; transform: rotateX(22deg); transform-origin: 50% 100%; filter: drop-shadow(0 0 9px rgba(105,237,255,.82)); }
.pk-ground-crack svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pk-ground-crack path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pk-ground-crack .crack-glow path { stroke: rgba(69,218,255,.6); stroke-width: 13; filter: blur(4px); }
.pk-ground-crack .crack-core path { stroke: #e8feff; stroke-width: 3.2; filter: drop-shadow(0 0 5px rgba(120,241,255,.95)); }
.pk-callout { position: absolute; z-index: 21; left: 50%; top: 12%; display: grid; place-items: center; min-width: min(46vw, 410px); padding: 5px 28px 8px; color: #effdff; text-align: center; text-shadow: 0 2px 0 rgba(5,34,50,.7), 0 0 19px rgba(113,238,255,.8); transform: translateX(-50%); pointer-events: none; animation: pk-callout-in 1.25s cubic-bezier(.16,.82,.2,1) both; }
.pk-callout::before, .pk-callout::after { content: ""; position: absolute; top: 55%; width: 25%; height: 1px; background: linear-gradient(90deg, transparent, rgba(197,248,255,.88)); }
.pk-callout::before { right: 100%; }
.pk-callout::after { left: 100%; transform: scaleX(-1); }
.pk-callout small { color: #8cecff; font-size: clamp(7px, 1.1vw, 12px); font-weight: 950; letter-spacing: .28em; }
.pk-callout strong { font-size: clamp(17px, 3vw, 40px); font-weight: 950; letter-spacing: .05em; line-height: 1.08; }
.pk-victory-sparks { z-index: 6; inset: -8% 0 0; overflow: hidden; }
.pk-victory-sparks i { position: absolute; top: -12%; left: var(--x); width: clamp(5px, .6vw, 9px); height: clamp(13px, 2vw, 30px); border-radius: 2px; background: linear-gradient(180deg, #fff9b1, #ffc943 48%, #ff7e63); box-shadow: 0 0 9px rgba(255,226,109,.7); transform: rotate(var(--r)); }
.pk-strike-arcs { position: absolute; z-index: 6; left: 59%; top: 33%; width: 33%; height: 28%; opacity: 0; pointer-events: none; filter: drop-shadow(0 0 7px rgba(177,247,255,.96)); }
.pk-strike-arcs i { position: absolute; left: 0; top: 8%; display: block; width: 100%; height: clamp(5px, .75vw, 11px); border-radius: 50%; background: linear-gradient(90deg, transparent, rgba(230,253,255,.2) 8%, #f8ffff 39%, #76ecff 71%, transparent); transform: rotate(-12deg) scaleX(.08); transform-origin: left center; opacity: 0; clip-path: polygon(0 40%, 12% 0, 23% 78%, 35% 18%, 50% 68%, 66% 0, 78% 76%, 100% 44%, 87% 100%, 63% 54%, 44% 100%, 19% 53%, 0 100%); }
.pk-strike-arcs i:nth-child(2) { top: 42%; transform: rotate(7deg) scaleX(.08); }
.pk-strike-arcs i:nth-child(3) { top: 76%; transform: rotate(25deg) scaleX(.08); }

.fx-basic .pk-combatant.player .battle-pet-image { animation: pk-v2-basic .72s cubic-bezier(.18,.76,.18,1) both; }
.fx-ice .pk-combatant.player .battle-pet-image { animation: pk-v2-ice .93s cubic-bezier(.15,.78,.16,1) both; }
.fx-moon .pk-combatant.player .battle-pet-image { animation: pk-v2-moon 1.06s cubic-bezier(.12,.82,.16,1) both; }
.fx-storm .pk-combatant.player .battle-pet-image { animation: pk-v2-storm 1.22s cubic-bezier(.12,.76,.14,1) both; }
.fx-basic .pk-combatant.player .battle-pet-after.after-1, .fx-ice .pk-combatant.player .battle-pet-after.after-1, .fx-moon .pk-combatant.player .battle-pet-after.after-1, .fx-storm .pk-combatant.player .battle-pet-after.after-1 { opacity: .22; animation: pk-v2-after-1 1.05s ease-out both; }
.fx-basic .pk-combatant.player .battle-pet-after.after-2, .fx-ice .pk-combatant.player .battle-pet-after.after-2, .fx-moon .pk-combatant.player .battle-pet-after.after-2, .fx-storm .pk-combatant.player .battle-pet-after.after-2 { opacity: .1; animation: pk-v2-after-2 1.1s ease-out both; }
.fx-basic .pk-stage { animation: pk-v2-camera-basic .76s ease-out both; }
.fx-ice .pk-stage { animation: pk-v2-camera-ice .95s ease-out both; }
.fx-moon .pk-stage { animation: pk-v2-camera-moon 1.06s ease-out both; }
.fx-storm .pk-stage { animation: pk-v2-camera-storm 1.24s ease-out both; }
.fx-enemy .pk-stage { animation: pk-v2-camera-hit .78s ease-out both; }
.fx-enemy .pk-combatant.enemy .battle-wolf-image, .fx-enemy .pk-combatant.enemy .enemy-art { animation: pk-v2-wolf-lunge .78s cubic-bezier(.14,.8,.18,1) both; }
.fx-enemy .pk-combatant.enemy .battle-wolf-after { opacity: .34; animation: pk-v2-wolf-after .72s ease-out both; }
.fx-enemy .pk-combatant.player .battle-pet-image { animation: pk-v2-player-hit .66s ease-out both; }
.pk-combatant.enemy.is-hit .battle-wolf-image, .pk-combatant.enemy.is-hit .enemy-art { animation: pk-v2-enemy-hit .7s cubic-bezier(.12,.75,.2,1) both; }
.fx-basic .pk-versus, .fx-ice .pk-versus, .fx-moon .pk-versus, .fx-storm .pk-versus, .fx-enemy .pk-versus { opacity: 0; }
.fx-basic .pk-fighter-tag, .fx-ice .pk-fighter-tag, .fx-moon .pk-fighter-tag, .fx-storm .pk-fighter-tag, .fx-enemy .pk-fighter-tag { opacity: .18; }
.fx-basic .pk-impact-flash { animation: pk-v2-flash .44s ease-out .25s both; }
.fx-ice .pk-impact-flash { animation: pk-v2-flash .62s ease-out .34s both; }
.fx-moon .pk-impact-flash { animation: pk-v2-flash .58s ease-out .42s both; }
.fx-storm .pk-impact-flash { animation: pk-v2-flash-big .78s ease-out .58s both; }
.fx-enemy .pk-impact-flash { left: 25%; animation: pk-v2-flash-danger .5s ease-out .3s both; }
.fx-ice .pk-ice-floor-ring { animation: pk-v2-floor-ring .82s ease-out .05s both; }
.fx-moon .pk-ice-floor-ring { animation: pk-v2-floor-ring .76s ease-out .06s both; }
.fx-storm .pk-ice-floor-ring { animation: pk-v2-floor-ring 1.04s ease-out .42s both; }
.fx-storm .pk-ground-shock { animation: pk-v2-ground-shock .88s ease-out .6s both; }
.fx-storm .pk-ground-crack { animation: pk-v2-crack-visible 1.2s ease-out .5s both; }
.fx-storm .pk-ground-crack svg { animation: pk-v2-crack-lines .9s ease-out .5s both; }
.fx-storm .pk-speed-rays, .fx-moon .pk-speed-rays { animation: pk-v2-rays .8s ease-out .12s both; }
.fx-basic .pk-damage { animation-delay: .25s; }
.fx-ice .pk-damage { animation-delay: .36s; }
.fx-moon .pk-damage { animation-delay: .45s; }
.fx-storm .pk-damage { animation-delay: .62s; }
.fx-enemy .pk-damage { animation-delay: .3s; }
.fx-basic .pk-strike-arcs { animation: pk-v2-arc-group .55s ease-out .18s both; }
.fx-ice .pk-strike-arcs { animation: pk-v2-arc-group .68s ease-out .24s both; }
.fx-moon .pk-strike-arcs { left: 38%; top: 27%; width: 56%; height: 43%; animation: pk-v2-arc-group .76s ease-out .22s both; }
.fx-basic .pk-strike-arcs i { animation: pk-v2-claw-line .48s ease-out .18s both; }
.fx-ice .pk-strike-arcs i { animation: pk-v2-claw-line .58s cubic-bezier(.1,.72,.18,1) .24s both; }
.fx-moon .pk-strike-arcs i { height: clamp(8px, 1.15vw, 17px); animation: pk-v2-moon-line .66s cubic-bezier(.1,.72,.2,1) .22s both; }
.pk-battle.fx-victory .pk-stage { animation: pk-v2-victory-camera 1.3s ease-out both; }
.pk-battle.fx-victory .pk-combatant.player .battle-pet-image { animation: pk-v2-victory-pet 1.2s cubic-bezier(.16,.8,.2,1) both; }
.pk-battle.fx-victory .pk-combatant.enemy .battle-wolf-image, .pk-battle.fx-victory .pk-combatant.enemy .enemy-art { animation: pk-v2-enemy-defeat 1.05s ease-in both; }
.pk-battle.fx-victory .pk-victory-sparks { opacity: 1; }
.pk-battle.fx-victory .pk-victory-sparks i { animation: pk-v2-confetti 1.7s cubic-bezier(.18,.7,.28,1) var(--d) both; }
.pk-battle.fx-victory .pk-arena-glow { animation: pk-v2-victory-glow 1.3s ease-out both; }
.pk-battle.is-over .pk-callout { opacity: 1; }
.pk-result.win { animation-delay: 1.2s; }

@keyframes pk-crowd-bob { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-3px) scaleY(1.05); } }
@keyframes pk-v2-basic { 0%,100% { transform: translate(0,0) rotate(0) scale(1); } 14% { transform: translate(-2%,7px) rotate(0) scaleY(.94) scaleX(1.03); } 32% { transform: translate(48%,-12%) rotate(-4deg) scale(1.035); } 48% { transform: translate(63%,-2%) rotate(2deg) scale(1.02); } 61% { transform: translate(43%,0) rotate(-2deg) scale(.99); } 80% { transform: translate(10%,1px) rotate(1deg); } }
@keyframes pk-v2-ice { 0%,100% { transform: translate(0,0) rotate(0) scale(1); } 12% { transform: translate(-3%,8px) rotate(0) scaleX(1.04) scaleY(.91); } 32% { transform: translate(20%,-30%) rotate(-9deg) scale(1.045); } 47% { transform: translate(52%,-40%) rotate(10deg) scale(1.06); } 61% { transform: translate(64%,-8%) rotate(-1deg) scale(1.02); } 74% { transform: translate(42%,2px) rotate(3deg) scale(.98); } 88% { transform: translate(12%,0) rotate(-1deg); } }
@keyframes pk-v2-moon { 0%,100% { transform: translate(0,0) rotate(0) scale(1); opacity: 1; } 12% { transform: translate(-5%,7px) rotate(0) scaleX(1.06) scaleY(.9); opacity: .95; } 30% { transform: translate(18%,-24%) rotate(-13deg) scale(1.055); opacity: 1; } 47% { transform: translate(58%,-26%) rotate(17deg) scale(1.045); opacity: .72; } 57% { transform: translate(86%,-13%) rotate(7deg) scale(1.02); opacity: .34; } 64% { transform: translate(93%,-5%) rotate(2deg) scale(.99); opacity: 1; } 79% { transform: translate(55%,1px) rotate(-4deg); } 91% { transform: translate(15%,0) rotate(1deg); } }
@keyframes pk-v2-storm { 0%,100% { transform: translate(0,0) rotate(0) scale(1); } 10% { transform: translate(-4%,8px) rotate(0) scaleX(1.08) scaleY(.88); } 26% { transform: translate(4%,-27%) rotate(-5deg) scale(.97,1.08); } 40% { transform: translate(16%,-84%) rotate(11deg) scale(1.035); } 52% { transform: translate(38%,-55%) rotate(17deg) scale(1.05); } 63% { transform: translate(59%,-15%) rotate(6deg) scale(1.035); } 72% { transform: translate(64%,2px) rotate(-2deg) scaleX(1.07) scaleY(.88); } 82% { transform: translate(54%,-1%) rotate(2deg) scaleX(.98) scaleY(1.02); } 91% { transform: translate(18%,0) rotate(-1deg); } }
@keyframes pk-v2-wolf-lunge { 0%,100% { transform: translate(0,0) rotate(0) scale(1); } 12% { transform: translate(4%,5px) rotate(-3deg) scaleX(1.06) scaleY(.93); } 38% { transform: translate(-34%,-20%) rotate(8deg) scale(1.08); } 53% { transform: translate(-62%,-9%) rotate(3deg) scale(1.06); } 68% { transform: translate(-38%,-1%) rotate(-2deg); } 84% { transform: translate(-8%,1px) rotate(1deg); } }
@keyframes pk-v2-player-hit { 0%,100% { transform: translate(0,0) rotate(0); } 14% { transform: translate(-2%,1px) scale(.98); } 29% { transform: translate(-17%,-5%) rotate(-8deg) scale(.98); } 46% { transform: translate(-10%,2%) rotate(4deg); } 63% { transform: translate(-16%,0) rotate(-4deg); } 82% { transform: translate(-5%,0) rotate(2deg); } }
@keyframes pk-v2-enemy-hit { 0%,100% { transform: translate(0,0) rotate(0) scale(1); } 18% { transform: translate(4%,3px) rotate(-3deg) scale(.98); } 38% { transform: translate(32%,-18%) rotate(11deg) scale(.96,1.03); } 58% { transform: translate(20%,-4%) rotate(5deg); } 78% { transform: translate(28%,1%) rotate(8deg); } }
@keyframes pk-v2-after-1 { 0%,22% { opacity: 0; transform: translate(0,0) rotate(0); } 42% { opacity: .3; transform: translate(42%,-8%) rotate(-6deg) scale(1.02); } 70% { opacity: .12; transform: translate(57%,-2%) rotate(3deg); } 100% { opacity: 0; transform: translate(63%,0) rotate(0); } }
@keyframes pk-v2-after-2 { 0%,34% { opacity: 0; transform: translate(0,0) rotate(0); } 51% { opacity: .16; transform: translate(26%,-4%) rotate(4deg) scale(.99); } 76% { opacity: .07; transform: translate(48%,-12%) rotate(-4deg); } 100% { opacity: 0; transform: translate(58%,0) rotate(0); } }
@keyframes pk-v2-wolf-after { 0%,34% { opacity: 0; transform: translate(0,0) rotate(0); } 51% { opacity: .25; transform: translate(-28%,-12%) rotate(7deg); } 100% { opacity: 0; transform: translate(-55%,0) rotate(2deg); } }
@keyframes pk-v2-camera-basic { 0%,100% { transform: translate(0,0) scale(1); } 30% { transform: translate(-.8%,-.3%) scale(1.015); } 50% { transform: translate(-1.5%,-.2%) scale(1.025); } 68% { transform: translate(.6%,.3%) scale(1.012); } }
@keyframes pk-v2-camera-ice { 0%,100% { transform: translate(0,0) scale(1); } 25% { transform: translate(0,1%) scale(.99); } 51% { transform: translate(-1.5%,-1%) scale(1.045); } 72% { transform: translate(1%,.3%) scale(1.02); } }
@keyframes pk-v2-camera-moon { 0%,100% { transform: translate(0,0) scale(1); } 28% { transform: translate(1%,0) scale(1.02); } 52% { transform: translate(-3.2%,-.7%) scale(1.055); } 72% { transform: translate(1.5%,.4%) scale(1.025); } }
@keyframes pk-v2-camera-storm { 0%,100% { transform: translate(0,0) scale(1); } 18% { transform: translate(0,1.5%) scale(.985); } 38% { transform: translate(0,-1%) scale(1.035); } 58% { transform: translate(-1%,-2%) scale(1.105); } 68% { transform: translate(1.4%,.7%) scale(1.08) rotate(.35deg); } 76% { transform: translate(-1.4%,.5%) scale(1.09) rotate(-.35deg); } 86% { transform: translate(.5%,0) scale(1.055); } }
@keyframes pk-v2-camera-hit { 0%,100% { transform: translate(0,0) scale(1); } 25% { transform: translate(1%,.7%) scale(1.018); } 43% { transform: translate(-1.8%,-.7%) scale(1.03) rotate(-.28deg); } 53% { transform: translate(1.7%,.4%) scale(1.025) rotate(.28deg); } 66% { transform: translate(-1%,0) scale(1.018); } 80% { transform: translate(.6%,0) scale(1.01); } }
@keyframes pk-v2-flash { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.15); } 24% { opacity: .98; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.8); } }
@keyframes pk-v2-flash-big { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.08); } 18% { opacity: 1; } 50% { opacity: .88; transform: translate(-50%,-50%) scale(1.9); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(3.1); } }
@keyframes pk-v2-flash-danger { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.2); } 25% { opacity: .88; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.65); } }
@keyframes pk-v2-floor-ring { 0% { opacity: 0; transform: scaleX(.18) scaleY(.44); } 25% { opacity: .88; } 100% { opacity: 0; transform: scaleX(1.15) scaleY(1.3); } }
@keyframes pk-v2-ground-shock { 0% { opacity: 0; transform: translate(-50%,50%) scale(.08); } 23% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,50%) scale(3.3); } }
@keyframes pk-v2-crack-visible { 0%,12% { opacity: 0; } 28%,72% { opacity: 1; } 100% { opacity: .22; } }
@keyframes pk-v2-crack-lines { 0% { opacity: 0; transform: scale(.68); } 28% { opacity: 1; transform: scale(1.04); } 68% { opacity: .9; transform: scale(1); } 100% { opacity: .28; transform: scale(1); } }
@keyframes pk-v2-rays { 0% { opacity: 0; transform: rotate(-7deg) scale(.8); } 30% { opacity: .9; } 100% { opacity: 0; transform: rotate(4deg) scale(1.14); } }
@keyframes pk-v2-arc-group { 0% { opacity: 0; } 12% { opacity: 1; } 72% { opacity: .88; } 100% { opacity: 0; } }
@keyframes pk-v2-claw-line { 0% { opacity: 0; transform: rotate(-12deg) scaleX(.08); } 20% { opacity: 1; } 55% { opacity: .94; transform: rotate(-12deg) scaleX(1); } 100% { opacity: 0; transform: rotate(-7deg) scaleX(1.08); } }
@keyframes pk-v2-moon-line { 0% { opacity: 0; transform: rotate(-28deg) scaleX(.04) scaleY(.72); } 22% { opacity: .98; } 68% { opacity: .86; transform: rotate(3deg) scaleX(1.06) scaleY(1); } 100% { opacity: 0; transform: rotate(10deg) scaleX(1.15) scaleY(.88); } }
@keyframes pk-callout-in { 0% { opacity: 0; transform: translate(-50%,14px) scale(.82); filter: blur(4px); } 18% { opacity: 1; filter: blur(0); } 68% { opacity: 1; transform: translate(-50%,0) scale(1); } 100% { opacity: 0; transform: translate(-50%,-8px) scale(1.03); } }
@keyframes pk-v2-victory-camera { 0% { transform: translate(0,0) scale(1.035); } 45% { transform: translate(1%,-1%) scale(1.09); } 100% { transform: translate(0,-.4%) scale(1.075); } }
@keyframes pk-v2-victory-pet { 0% { transform: translate(0,0) scale(1); } 38% { transform: translate(1%,-5%) scale(1.045) rotate(-1deg); } 100% { transform: translate(4%,-3%) scale(1.12) rotate(1deg); } }
@keyframes pk-v2-enemy-defeat { 0% { opacity: 1; transform: translate(0,0) rotate(0) scale(1); } 100% { opacity: .35; transform: translate(18%,7%) rotate(13deg) scale(.92); } }
@keyframes pk-v2-confetti { 0% { opacity: 0; transform: translateY(-10%) rotate(var(--r)); } 18% { opacity: 1; } 100% { opacity: 0; transform: translateY(78vh) translateX(4vw) rotate(calc(var(--r) + 270deg)); } }
@keyframes pk-v2-victory-glow { 0%,100% { opacity: .65; transform: scale(1); } 42% { opacity: 1; transform: scale(1.12); } }

/* Live fight video stage */
.pk-battle .pk-backdrop,
.pk-battle .pk-combatant,
.pk-battle .pk-versus,
.pk-battle .pk-fx,
.pk-battle .pk-cinematic,
.pk-battle .pk-ground-crack,
.pk-battle .pk-ground-shock,
.pk-battle .pk-arena-glow,
.pk-battle .pk-damage { display: none !important; }

.pk-battle .pk-stage {
  background: radial-gradient(circle at 50% 42%, #11465c 0%, #082a3a 46%, #04131c 100%);
}
.pk-battle .pk-stage::after {
  content: "";
  position: absolute;
  z-index: 13;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(8,42,58,.12), rgba(3,20,31,.82));
  pointer-events: none;
}

.pk-live-turn {
  position: absolute;
  z-index: 16;
  top: 10px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(143, 231, 255, .28);
  border-radius: 999px;
  color: #e9fcff;
  background: rgba(3, 25, 36, .72);
  box-shadow: 0 8px 22px rgba(0, 14, 24, .25);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
  pointer-events: none;
  transition: border-color .18s ease, background .18s ease;
}
.pk-live-turn > i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #68e6ff; box-shadow: 0 0 11px #68e6ff; }
.pk-live-turn > div { display: grid; gap: 1px; min-width: 0; }
.pk-live-turn strong { font-size: clamp(8px, 1.2vw, 11px); line-height: 1.15; white-space: nowrap; }
.pk-live-turn small { color: rgba(225, 249, 255, .52); font-size: clamp(6px, .85vw, 8px); line-height: 1.15; white-space: nowrap; }
.pk-live-turn.tiger { border-color: rgba(120, 235, 255, .5); background: rgba(7, 48, 64, .82); }
.pk-live-turn.wolf { border-color: rgba(255, 170, 125, .55); color: #fff1e8; background: rgba(75, 28, 21, .8); animation: pk-wolf-turn-pulse 1.05s ease-in-out infinite; }
.pk-live-turn.wolf > i { background: #ff9a6b; box-shadow: 0 0 12px #ff7d52; }
.pk-live-turn.wolf small { color: rgba(255, 219, 199, .66); }
.pk-live-turn.over { border-color: rgba(255, 224, 122, .4); color: #fff3bb; }
.pk-live-turn.over > i { background: #ffe07a; box-shadow: 0 0 12px #ffe07a; }

.pk-fight-cinema {
  position: absolute;
  z-index: 14;
  left: 50%;
  top: 50%;
  width: min(96%, 80vh, 700px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid rgba(185,244,255,.72);
  border-radius: clamp(12px, 1.5vw, 22px);
  background: #061f2a;
  box-shadow: 0 0 0 4px rgba(101,219,255,.08), 0 22px 60px rgba(0,20,32,.6), 0 0 42px rgba(91,219,255,.24);
  transform: translate(-50%,-50%);
  contain: paint;
}
.pk-fight-fallback,
.pk-fight-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pk-fight-fallback {
  z-index: 0;
  opacity: 1;
}
.pk-fight-video {
  z-index: 2;
  opacity: 0;
  background: #061f2a;
  transition: opacity .18s ease-out;
  will-change: opacity;
  backface-visibility: hidden;
  pointer-events: none;
}
.pk-fight-video.is-front { opacity: 1; z-index: 3; }
.pk-fight-cinema.is-action { animation: pk-live-border .18s ease-out both; border-color: rgba(225,250,255,.9); }
.pk-fight-cinema.is-idle { opacity: 1; animation: pk-idle-in .2s ease-out both; }
.pk-fight-cinema.is-wide {
  width: min(100%, 1020px, 96vh);
  aspect-ratio: 16 / 9;
  background: #061f2a;
}
.pk-fight-cinema.is-victory {
  border-color: rgba(255,229,120,.82);
  box-shadow: 0 0 0 4px rgba(255,224,97,.08), 0 22px 60px rgba(0,20,32,.6), 0 0 48px rgba(255,211,72,.3);
}
.pk-fight-cinema.is-king {
  border-color: rgba(208, 178, 255, .92);
  box-shadow: 0 0 0 4px rgba(160, 110, 255, .1), 0 22px 60px rgba(8, 0, 24, .62), 0 0 50px rgba(147, 98, 255, .34);
}
.pk-fight-cinema .pk-king-aura {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 74% 46%, rgba(188, 142, 255, .3), rgba(92, 138, 255, .13) 28%, transparent 56%), linear-gradient(115deg, transparent 48%, rgba(136, 92, 255, .13), transparent 78%);
  mix-blend-mode: screen;
  animation: pk-king-aura 2.6s ease-in-out infinite;
}
.pk-king-badge {
  position: absolute;
  z-index: 6;
  top: clamp(8px, 1.4vw, 16px);
  right: clamp(8px, 1.4vw, 16px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(222, 190, 255, .78);
  border-radius: 999px;
  color: #f7ecff;
  background: rgba(38, 20, 70, .8);
  box-shadow: 0 0 22px rgba(150, 100, 255, .36);
  font-size: clamp(9px, 1.15vw, 13px);
  font-weight: 900;
  letter-spacing: .1em;
  text-shadow: 0 0 12px rgba(180, 130, 255, .62);
  pointer-events: none;
}
@keyframes pk-king-aura {
  0%, 100% { opacity: .52; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.035); }
}
.pk-fight-cinema.is-wolf-turn {
  border-color: rgba(255, 170, 126, .9);
  box-shadow: 0 0 0 4px rgba(255, 126, 83, .08), 0 22px 60px rgba(20, 5, 4, .62), 0 0 46px rgba(255, 111, 71, .28);
}
.pk-fight-cinema.is-wolf-turn::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 74% 46%, rgba(255, 150, 100, .2), transparent 38%), linear-gradient(115deg, transparent 38%, rgba(255, 115, 72, .14), transparent 70%);
  mix-blend-mode: screen;
  animation: pk-wolf-turn-flash 1.35s ease-out both;
}
.pk-fight-cinema.is-wolf-turn:not([data-battle-action="enemy-ready"])::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 34% 62%, rgba(255,255,255,.92), rgba(255,132,96,.42) 30%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: pk-wolf-impact .88s ease-out both;
}
@keyframes pk-wolf-impact {
  0%, 70% { opacity: 0; }
  76% { opacity: .95; }
  82% { opacity: .12; }
  88% { opacity: .55; }
  100% { opacity: 0; }
}
.pk-impact-burst {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 64% 55%, rgba(255,255,255,.98), rgba(176,238,255,.82) 16%, rgba(120,208,255,.22) 38%, transparent 62%);
  mix-blend-mode: screen;
}
.pk-fight-cinema.is-impact .pk-impact-burst { animation: pk-impact-burst .44s cubic-bezier(.15,.7,.2,1) both; }
.pk-fight-cinema.is-impact .pk-fight-video { animation: pk-cinema-shake .34s ease-out both; }
.pk-fight-cinema.is-impact-player .pk-impact-burst {
  background: radial-gradient(circle at 33% 60%, rgba(255,255,255,.98), rgba(255,186,150,.82) 16%, rgba(255,120,88,.22) 38%, transparent 62%);
  animation: pk-impact-burst .44s cubic-bezier(.15,.7,.2,1) both;
}
.pk-fight-cinema.is-impact-player .pk-fight-video { animation: pk-cinema-shake .34s ease-out both; }
@keyframes pk-impact-burst {
  0% { opacity: 0; transform: scale(1.12); }
  14% { opacity: .92; }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes pk-cinema-shake {
  0%, 100% { transform: translate(0,0) scale(1.02); }
  18% { transform: translate(-7px, 4px) scale(1.05); }
  36% { transform: translate(6px, -3px) scale(1.05); }
  54% { transform: translate(-4px, 2px) scale(1.04); }
  72% { transform: translate(3px, -1px) scale(1.03); }
}
.pk-fight-cinema.is-defeat {
  border-color: rgba(255, 126, 105, .9);
  box-shadow: 0 0 0 4px rgba(255, 92, 73, .08), 0 22px 60px rgba(20, 5, 4, .62), 0 0 46px rgba(255, 92, 73, .28);
}
.pk-fight-cinema .pk-video-caption {
  top: 11.5%;
  right: auto;
  bottom: auto;
  left: 5%;
  display: grid;
  justify-items: start;
  gap: 0;
  padding: 5px 9px 6px;
  border: 1px solid rgba(143, 231, 255, .2);
  border-radius: 9px;
  background: rgba(3, 25, 36, .56);
  backdrop-filter: blur(7px);
}
.pk-fight-cinema.is-idle .pk-video-caption { display: none; }
.pk-fight-cinema .pk-video-caption span { font-size: clamp(10px, 1.45vw, 18px); }
.pk-fight-video::-webkit-media-controls,
.pk-fight-video::-webkit-media-controls-panel,
.pk-fight-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none !important; }
.pk-video-caption {
  position: absolute;
  z-index: 3;
  left: 6%;
  right: 6%;
  bottom: 5%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  color: #f4fdff;
  text-shadow: 0 2px 6px rgba(0,23,34,.92);
  pointer-events: none;
}
.pk-video-caption small { color: #8cecff; font-size: clamp(6px, .85vw, 10px); font-weight: 950; letter-spacing: .2em; }
.pk-video-caption span { font-size: clamp(13px, 1.8vw, 22px); font-weight: 950; letter-spacing: .04em; }
.pk-fight-cinema.is-victory .pk-video-caption small { color: #ffe57d; }
.pk-fight-cinema.is-wolf-turn .pk-video-caption small { color: #ffb18c; }

.pk-battle.has-action-video .pk-actions { opacity: 0; pointer-events: none; }
.pk-actions { transition: opacity .12s ease; }

.pk-result.win { animation-delay: 1.55s; }
.pk-result.lose { animation-delay: 1.2s; }

@media (max-width: 560px) and (orientation: portrait) {
  .pk-actions {
    top: auto;
    right: 50%;
    bottom: 52px;
    flex-direction: row;
    gap: 7px;
    transform: translateX(50%);
  }
  .pk-actions-title { display: none; }
  .pk-skill { width: clamp(56px, 16vw, 68px); }
  .pk-skill small { display: none; }
}

@media (orientation: landscape) and (max-height: 600px) {
  .pk-fight-cinema { width: min(96%, 80vh, 560px); }
  .pk-video-caption small { font-size: 7px; }
  .pk-video-caption span { font-size: 13px; }
}

@keyframes pk-live-pop {
  0% { opacity: .72; transform: translate(-50%,-50%) scale(1.025); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
@keyframes pk-live-border {
  0% { box-shadow: 0 0 0 4px rgba(101,219,255,.18), 0 22px 60px rgba(0,20,32,.6), 0 0 58px rgba(91,219,255,.42); }
  100% { box-shadow: 0 0 0 4px rgba(101,219,255,.08), 0 22px 60px rgba(0,20,32,.6), 0 0 42px rgba(91,219,255,.24); }
}
@keyframes pk-idle-in {
  0% { opacity: .42; }
  100% { opacity: 1; }
}
@keyframes pk-wolf-turn-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(0, 14, 24, .25), 0 0 0 rgba(255, 128, 84, 0); }
  50% { box-shadow: 0 8px 22px rgba(0, 14, 24, .25), 0 0 18px rgba(255, 128, 84, .28); }
}
@keyframes pk-wolf-turn-flash {
  0%, 100% { opacity: 0; }
  24% { opacity: .88; }
  62% { opacity: .35; }
}

/* 300-coin battle trial + music entry */
.ghost-icon.music-icon {
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 18px;
}
.trial-chip {
  border-color: #f0c75e;
  background: #fff3c9;
  color: #8a5a00;
}
.trial-forest-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
  padding: 13px 16px;
  border: 1px solid #f1d68e;
  border-radius: 12px;
  background: linear-gradient(120deg, #fff9e7, #f1fff8);
  box-shadow: 0 10px 26px rgba(120, 92, 22, 0.08);
}
.trial-forest-banner strong { color: #8a5a00; }
.trial-forest-banner span { color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.trial-forest-banner em { margin-left: auto; color: var(--muted); font-size: 11px; font-style: normal; }

.trial-gate {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 32, 37, 0.64);
  backdrop-filter: blur(7px);
  animation: trialGateIn 220ms ease both;
}
.trial-gate.is-leaving { animation: trialGateOut 220ms ease both; }
.trial-gate-card {
  width: min(480px, 100%);
  max-height: calc(100vh - 30px);
  overflow: auto;
  padding: 22px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f2fff9 100%);
  box-shadow: 0 28px 90px rgba(0, 18, 22, 0.34);
  text-align: center;
}
.trial-gate-chip {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff1bd;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.04em;
}
.trial-gate-pet {
  display: block;
  width: 100%;
  max-height: 190px;
  margin: 6px auto 4px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(24, 84, 95, 0.18));
}
.trial-gate-card h2 { margin: 4px 0 12px; font-size: clamp(28px, 7vw, 38px); }
.trial-gate-supply {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.trial-gate-supply span {
  padding: 6px 9px;
  border: 1px solid rgba(23, 133, 111, 0.18);
  border-radius: 8px;
  background: #eafff7;
  color: #0d6657;
  font-size: 12px;
  font-weight: 900;
}
.trial-gate-card p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}
.trial-gate-start { width: 100%; min-height: 54px; font-size: 17px; }
.trial-gate-music {
  display: inline-block;
  margin-top: 12px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
@keyframes trialGateIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes trialGateOut { from { opacity: 1; } to { opacity: 0; } }

@media (max-width: 560px) {
  .trial-forest-banner em { margin-left: 0; width: 100%; }
  .trial-gate-card { padding: 18px; }
  .trial-gate-pet { max-height: 150px; }
}

/* Procedural battle rig: original artwork cut into articulated layers. */
.pk-rig-cinema { isolation: isolate; background: #071e2b; }
.pk-rig-cinema::before {
  content: ""; position: absolute; z-index: 8; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, transparent 28%, rgba(2,16,26,.22) 68%, rgba(1,10,18,.7) 100%);
  box-shadow: inset 0 0 42px rgba(0, 9, 18, .72);
}
.pk-rig-cinema::after {
  content: ""; position: absolute; z-index: 9; inset: 0; pointer-events: none; opacity: .2;
  background: repeating-linear-gradient(0deg, rgba(179,241,255,.08) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}
.pk-rig-world { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.pk-rig-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #b7e3f2 0%, #7fb5ce 40%, #dceff1 72%, #f5fbff 100%); }
.pk-rig-aurora { position: absolute; width: 70%; height: 18%; border-radius: 50%; filter: blur(16px); opacity: .35; mix-blend-mode: screen; }
.pk-rig-aurora.a1 { top: 5%; left: -8%; background: linear-gradient(90deg, transparent, #81f5df, #8cd7ff, transparent); transform: rotate(-9deg); }
.pk-rig-aurora.a2 { top: 14%; right: -16%; background: linear-gradient(90deg, transparent, #b8a6ff, #71e9ff, transparent); transform: rotate(11deg); animation: pk-rig-aurora-drift 8s ease-in-out infinite alternate; }
.pk-rig-mountain { position: absolute; bottom: 20%; background: linear-gradient(145deg, #f4fbff 0%, #a3c4d5 46%, #557d93 100%); clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: drop-shadow(0 12px 20px rgba(31,80,102,.18)); }
.pk-rig-mountain.m1 { left: -8%; width: 61%; height: 87%; opacity: .64; transform: rotate(2deg); }
.pk-rig-mountain.m2 { right: -15%; width: 68%; height: 94%; opacity: .54; transform: scaleX(-1) rotate(-2deg); }
.pk-rig-mountain.m3 { left: 31%; width: 43%; height: 56%; bottom: 24%; opacity: .32; }
.pk-rig-ice-tree { position: absolute; z-index: 2; bottom: 18%; width: 8%; height: 35%; clip-path: polygon(50% 0, 67% 20%, 58% 20%, 80% 48%, 66% 48%, 100% 100%, 0 100%, 34% 48%, 20% 48%, 42% 20%, 33% 20%); background: linear-gradient(90deg, #6f9fb3, #e8fbff 48%, #7daabd); opacity: .5; filter: drop-shadow(0 9px 8px rgba(24,72,93,.24)); }
.pk-rig-ice-tree.t1 { left: 3%; transform: scale(.82); }
.pk-rig-ice-tree.t2 { right: 7%; transform: scale(1.05); }
.pk-rig-ice-tree.t3 { left: 24%; bottom: 23%; transform: scale(.54); opacity: .32; }
.pk-rig-ground { position: absolute; z-index: 1; left: -10%; right: -10%; bottom: -7%; height: 40%; border-radius: 50% 50% 0 0 / 22% 22% 0 0; background: radial-gradient(ellipse at 50% 17%, rgba(255,255,255,.98) 0 24%, rgba(226,245,251,.94) 45%, rgba(169,207,222,.86) 72%, rgba(117,163,185,.9) 100%), linear-gradient(180deg, #f8feff, #b9d9e5); box-shadow: 0 -6px 30px rgba(238,253,255,.62); }
.pk-rig-snow { position: absolute; z-index: 3; inset: 0; overflow: hidden; }
.pk-rig-snow i { position: absolute; top: -8%; left: var(--x); width: var(--size); height: var(--size); border-radius: 50%; background: rgba(255,255,255,.96); box-shadow: 0 0 7px rgba(255,255,255,.95); animation: pk-rig-snow-fall var(--duration) linear var(--delay) infinite; }
.pk-rig-fighter { position: absolute; z-index: 5; bottom: 7%; height: 57%; pointer-events: none; filter: drop-shadow(0 18px 15px rgba(16,55,73,.24)); }
.pk-rig-fighter.player { left: 5%; width: 42%; }
.pk-rig-fighter.enemy { right: 4%; width: 31%; }
.pk-rig-shadow { position: absolute; z-index: -1; left: 6%; right: 6%; bottom: -1.5%; height: 5%; border-radius: 50%; background: radial-gradient(ellipse, rgba(22,70,91,.46), rgba(24,65,83,.08) 67%, transparent 72%); filter: blur(2px); animation: pk-rig-shadow-breathe 3.2s ease-in-out infinite; }
.pk-tiger-rig { position: absolute; left: 0; bottom: 0; width: 100%; aspect-ratio: 644 / 760; transform-origin: 50% 91%; }
.pk-wolf-rig { position: absolute; left: 0; bottom: 0; width: 100%; aspect-ratio: 257 / 472; transform-origin: 50% 91%; }
.pk-rig-part { position: absolute; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.tiger-body-part { left: 0; bottom: 0; width: 100%; height: 69.74%; object-fit: fill; }
.tiger-head-part { z-index: 2; left: 31.83%; top: 0; width: 65.99%; height: 50%; object-fit: fill; transform-origin: 50% 91%; }
.wolf-body-part { left: 0; bottom: 0; width: 100%; height: 69.28%; object-fit: fill; }
.wolf-head-part { z-index: 2; left: 5.84%; top: 0; width: 60.31%; height: 45.55%; object-fit: fill; transform-origin: 52% 88%; }
.pk-rig-hurt-spark, .pk-rig-speed-lines, .pk-rig-wolf-alert { opacity: 0; }
.pk-rig-speed-lines { position: absolute; z-index: -2; inset: 8% -35% 12%; background: repeating-linear-gradient(90deg, transparent 0 8%, rgba(184,248,255,.86) 8.6% 9%, transparent 9.7% 18%); filter: blur(.4px); transform: skewX(-18deg); }
.pk-rig-wolf-alert { position: absolute; z-index: 8; top: -8%; right: 21%; display: grid; place-items: center; width: 14%; aspect-ratio: 1; border: 2px solid rgba(255,238,217,.9); border-radius: 50%; color: #fff5e9; background: #e95838; font-size: clamp(11px, 2.2vw, 24px); font-weight: 1000; box-shadow: 0 0 22px rgba(255,104,64,.8); }
.pk-rig-cinema.is-idle .pk-tiger-rig { animation: pk-rig-tiger-breathe 4.8s ease-in-out infinite; }
.pk-rig-cinema.is-idle .tiger-head-part { animation: pk-rig-tiger-look 6.3s ease-in-out infinite; }
.pk-rig-cinema.is-idle .pk-wolf-rig { animation: pk-rig-wolf-idle 5.6s ease-in-out infinite; }
.pk-rig-cinema.is-idle .wolf-head-part { animation: pk-rig-wolf-scan 7.4s ease-in-out infinite; }
.pk-rig-cinema.is-idle .pk-rig-puff { animation: pk-rig-puff 4.6s ease-out infinite; }
.pk-rig-cinema.is-idle .pk-rig-puff.p2 { animation-delay: 1.8s; }
.pk-rig-cinema.is-idle .pk-rig-puff.p3 { animation-delay: 3.2s; }
.pk-rig-fx { position: absolute; z-index: 7; inset: 0; pointer-events: none; overflow: hidden; }
.pk-rig-puff { position: absolute; width: 5%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.68); filter: blur(3px); opacity: 0; }
.pk-rig-puff.p1 { left: 43%; bottom: 35%; }
.pk-rig-puff.p2 { left: 70%; bottom: 39%; }
.pk-rig-puff.p3 { left: 55%; bottom: 31%; }
.pk-rig-slash, .pk-rig-ice, .pk-rig-moon-arc, .pk-rig-afterimage, .pk-rig-lightning, .pk-rig-impact, .pk-rig-growl-wave, .pk-rig-confetti { opacity: 0; }
.pk-rig-slash { position: absolute; z-index: 4; width: 4%; height: 42%; border-radius: 999px; background: linear-gradient(180deg, transparent, #fff 25%, #8deeff 52%, rgba(76,205,255,.08)); box-shadow: 0 0 16px rgba(136,240,255,.9); transform-origin: 50% 100%; }
.pk-rig-slash.s1 { left: 55%; top: 24%; rotate: 31deg; }
.pk-rig-slash.s2 { left: 62%; top: 20%; rotate: 47deg; }
.pk-rig-slash.s3 { left: 68%; top: 23%; rotate: 61deg; }
.pk-rig-ice.shard { position: absolute; z-index: 4; width: 4.5%; height: 17%; clip-path: polygon(50% 0, 100% 38%, 70% 100%, 32% 84%, 0 36%); background: linear-gradient(135deg, #fff, #8ee7ff 45%, #3b8dcc); box-shadow: 0 0 18px #7be8ff; }
.pk-rig-ice.i1 { left: 49%; top: 29%; rotate: -24deg; }
.pk-rig-ice.i2 { left: 60%; top: 18%; rotate: 27deg; }
.pk-rig-ice.i3 { left: 69%; top: 35%; rotate: 61deg; }
.pk-rig-ice.i4 { left: 55%; top: 20%; rotate: 8deg; }
.pk-rig-moon-arc { position: absolute; z-index: 3; left: 12%; top: 15%; width: 65%; aspect-ratio: 1; border: clamp(5px, .7vw, 11px) solid transparent; border-top-color: #fff9b7; border-right-color: #9cd5ff; border-radius: 50%; filter: drop-shadow(0 0 18px rgba(255,236,124,.9)); transform: rotate(-12deg); }
.pk-rig-afterimage { position: absolute; z-index: 2; left: 10%; bottom: 11%; width: 35%; height: 49%; background: url("assets/battle-white-tiger.png") center bottom / contain no-repeat; filter: sepia(1) hue-rotate(140deg) saturate(3) brightness(1.25); mix-blend-mode: screen; }
.pk-rig-afterimage.a2 { left: 27%; opacity: 0; transform: scale(.95); }
.pk-rig-lightning { position: absolute; z-index: 4; top: -7%; width: 4.6%; height: 79%; clip-path: polygon(43% 0, 100% 0, 59% 38%, 86% 38%, 24% 100%, 42% 52%, 8% 52%); background: linear-gradient(180deg, #fff, #b8f4ff 38%, #ffef86 72%, #ffb840); filter: drop-shadow(0 0 15px #bff8ff) drop-shadow(0 0 34px rgba(255,220,91,.72)); transform-origin: 50% 0; }
.pk-rig-lightning.l1 { left: 61%; rotate: 5deg; }
.pk-rig-lightning.l2 { left: 73%; height: 66%; rotate: -9deg; }
.pk-rig-lightning.l3 { left: 84%; height: 58%; rotate: 12deg; }
.pk-rig-impact { position: absolute; z-index: 6; left: 58%; top: 24%; width: 30%; aspect-ratio: 1; background: radial-gradient(circle, #fff 0 5%, #d8fbff 8% 13%, rgba(103,220,255,.62) 20%, transparent 58%), conic-gradient(from 0deg, transparent 0 9%, rgba(232,253,255,.92) 10% 12%, transparent 13% 22%, rgba(120,225,255,.86) 23% 25%, transparent 26% 40%, rgba(206,249,255,.88) 41% 44%, transparent 45%); filter: drop-shadow(0 0 18px rgba(126,231,255,.86)); }
.pk-rig-growl-wave { position: absolute; z-index: 5; right: 14%; top: 34%; width: 10%; aspect-ratio: 1; border: 2px solid rgba(255,184,139,.82); border-left-color: transparent; border-radius: 50%; filter: drop-shadow(0 0 8px rgba(255,118,71,.55)); }
.pk-rig-growl-wave.g2 { right: 9%; top: 31%; width: 16%; }
.pk-rig-growl-wave.g3 { right: 3%; top: 28%; width: 23%; }
.pk-rig-confetti { position: absolute; z-index: 9; inset: 0; }
.pk-rig-confetti i { position: absolute; left: calc(8% + var(--i) * 4.9%); top: -8%; width: 2.4%; height: 1.4%; border-radius: 1px; background: hsl(calc(var(--i) * 34deg) 92% 66%); box-shadow: 0 0 7px currentColor; }

.pk-rig-spike, .pk-rig-pillar, .pk-rig-dark, .pk-rig-leap-ring, .pk-rig-frost-burst, .pk-rig-blizzard, .pk-rig-defeat-glow { opacity: 0; }
.pk-rig-spike { position: absolute; z-index: 4; bottom: 14%; width: 4.8%; height: 22%; clip-path: polygon(50% 0, 88% 34%, 100% 100%, 0 100%, 12% 34%); background: linear-gradient(160deg, rgba(255,255,255,.96) 4%, rgba(185,243,255,.9) 34%, rgba(88,185,232,.88) 66%, rgba(43,111,159,.86)); filter: drop-shadow(0 0 10px rgba(120,231,255,.92)); transform-origin: 50% 100%; }
.pk-rig-spike.sp1 { left: 63%; height: 17%; rotate: -7deg; }
.pk-rig-spike.sp2 { left: 70%; height: 24%; rotate: 5deg; }
.pk-rig-spike.sp3 { left: 77%; height: 19%; rotate: -3deg; }
.pk-rig-spike.sp4 { left: 84%; height: 22%; rotate: 8deg; }
.pk-rig-pillar { position: absolute; z-index: 4; bottom: 12%; width: 7.4%; height: 50%; clip-path: polygon(50% 0, 84% 18%, 100% 100%, 0 100%, 16% 18%); background: linear-gradient(90deg, rgba(12,48,82,.9) 0 10%, rgba(104,198,238,.86) 26%, rgba(255,255,255,.98) 46% 54%, rgba(104,198,238,.88) 74%, rgba(12,48,82,.9) 100%), linear-gradient(160deg, rgba(230,253,255,.94) 2%, rgba(150,224,255,.78) 30%, rgba(50,124,174,.7) 74%, rgba(20,62,98,.6)); border: 1px solid rgba(232,253,255,.72); filter: drop-shadow(0 0 20px rgba(118,230,255,.95)); transform-origin: 50% 100%; }
.pk-rig-pillar.pl1 { left: 50%; height: 46%; rotate: -5deg; }
.pk-rig-pillar.pl2 { left: 58%; height: 60%; }
.pk-rig-pillar.pl3 { left: 94%; height: 42%; rotate: 6deg; }
.pk-rig-dark { position: absolute; z-index: 1; inset: 0; background: radial-gradient(circle at 64% 46%, rgba(8,18,46,.12) 0 18%, rgba(3,8,26,.62) 58%, rgba(1,4,16,.9) 100%), linear-gradient(180deg, rgba(10,22,54,.38), rgba(2,8,24,.62)); mix-blend-mode: multiply; }
.pk-rig-leap-ring { position: absolute; z-index: 6; left: 50%; bottom: 17%; width: 30%; aspect-ratio: 1; border: 4px solid rgba(233,254,255,.92); border-radius: 50%; box-shadow: 0 0 26px #8cecff, inset 0 0 22px rgba(170,246,255,.8); transform: translateX(-50%) scale(.2); }
.pk-rig-frost-burst { position: absolute; z-index: 6; left: 50%; bottom: 15%; width: 44%; aspect-ratio: 1; background: radial-gradient(circle, #fff 0 8%, #d7fbff 14%, rgba(128,230,255,.72) 30%, transparent 62%), conic-gradient(from 12deg, transparent 0 9%, rgba(255,255,255,.92) 10% 11%, transparent 12% 25%, rgba(137,235,255,.8) 26% 28%, transparent 29%); filter: drop-shadow(0 0 18px rgba(136,235,255,.9)); transform: translateX(-50%); }
.pk-rig-blizzard { position: absolute; z-index: 2; left: 36%; top: 16%; width: 56%; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(from 0deg, transparent 0 17deg, rgba(226,251,255,.62) 17deg 18.6deg, transparent 18.6deg 33deg); -webkit-mask-image: radial-gradient(circle, transparent 0 20%, #000 42%, rgba(0,0,0,.34) 64%, transparent 72%); mask-image: radial-gradient(circle, transparent 0 20%, #000 42%, rgba(0,0,0,.34) 64%, transparent 72%); filter: blur(3px) drop-shadow(0 0 14px rgba(146,236,255,.55)); mix-blend-mode: screen; }
.pk-rig-blizzard.b2 { left: 44%; top: 18%; width: 32%; animation-direction: reverse; opacity: 0; }
.pk-rig-defeat-glow { position: absolute; z-index: 6; inset: 0; background: radial-gradient(circle at 42% 48%, transparent 22%, rgba(122,20,28,.24) 62%, rgba(70,6,14,.62) 100%); }

.pk-rig-cinema.fx-basic .pk-tiger-rig { animation: pk-rig-tiger-basic 1.58s cubic-bezier(.2,.72,.18,1) both; }
.pk-rig-cinema.fx-basic .tiger-head-part { animation: pk-rig-tiger-strike 1.58s ease-in-out both; }
.pk-rig-cinema.fx-basic .pk-wolf-rig { animation: pk-rig-wolf-hit 1.58s cubic-bezier(.2,.72,.18,1) .38s both; }
.pk-rig-cinema.fx-basic .wolf-head-part { animation: pk-rig-wolf-head-hit 1.58s ease-out .38s both; }
.pk-rig-cinema.fx-basic .pk-rig-slash { animation: pk-rig-slash-cut .65s cubic-bezier(.1,.72,.18,1) .36s both; }
.pk-rig-cinema.fx-basic .pk-rig-slash.s2 { animation-delay: .43s; }
.pk-rig-cinema.fx-basic .pk-rig-slash.s3 { animation-delay: .5s; }
.pk-rig-cinema.fx-basic .pk-rig-impact { animation: pk-rig-impact-pop .55s ease-out .52s both; }
.pk-rig-cinema.fx-basic .pk-rig-world { animation: pk-rig-camera-hit .72s ease-out .45s both; }

.pk-rig-cinema.fx-ice .pk-tiger-rig { animation: pk-rig-tiger-ice 1.52s cubic-bezier(.18,.75,.16,1) both; }
.pk-rig-cinema.fx-ice .tiger-head-part { animation: pk-rig-tiger-head-ice 1.52s ease-in-out both; }
.pk-rig-cinema.fx-ice .pk-wolf-rig { animation: pk-rig-wolf-frozen 1.52s cubic-bezier(.2,.72,.18,1) .36s both; }
.pk-rig-cinema.fx-ice .wolf-head-part { filter: drop-shadow(0 0 9px rgba(103,226,255,.88)); animation: pk-rig-wolf-head-hit 1.52s ease-out .36s both; }
.pk-rig-cinema.fx-ice .pk-rig-ice { animation: pk-rig-ice-burst .72s ease-out .36s both; }
.pk-rig-cinema.fx-ice .pk-rig-ice.i2 { animation-delay: .43s; }
.pk-rig-cinema.fx-ice .pk-rig-ice.i3 { animation-delay: .5s; }
.pk-rig-cinema.fx-ice .pk-rig-ice.i4 { animation-delay: .57s; }
.pk-rig-cinema.fx-ice .pk-rig-world { animation: pk-rig-camera-ice .9s ease-out .34s both; }

.pk-rig-cinema.fx-moon .pk-tiger-rig { animation: pk-rig-tiger-moon 1.52s cubic-bezier(.12,.8,.12,1) both; }
.pk-rig-cinema.fx-moon .tiger-head-part { animation: pk-rig-tiger-head-moon 1.52s ease-in-out both; }
.pk-rig-cinema.fx-moon .pk-wolf-rig { animation: pk-rig-wolf-hit 1.52s cubic-bezier(.2,.72,.18,1) .4s both; }
.pk-rig-cinema.fx-moon .wolf-head-part { filter: drop-shadow(0 0 8px rgba(186,158,255,.8)); animation: pk-rig-wolf-head-hit 1.52s ease-out .4s both; }
.pk-rig-cinema.fx-moon .pk-rig-moon-arc { animation: pk-rig-moon-sweep .9s ease-out both; }
.pk-rig-cinema.fx-moon .pk-rig-afterimage.a1 { animation: pk-rig-afterimage-drift .72s ease-out .25s both; }
.pk-rig-cinema.fx-moon .pk-rig-afterimage.a2 { animation: pk-rig-afterimage-drift .72s ease-out .38s both; }
.pk-rig-cinema.fx-moon .pk-rig-impact { animation: pk-rig-moon-impact .68s ease-out .47s both; }

.pk-rig-cinema.fx-storm .pk-rig-world { animation: pk-rig-camera-storm 1.68s ease-out both; filter: saturate(1.2) contrast(1.06); }
.pk-rig-cinema.fx-storm .pk-tiger-rig { animation: pk-rig-tiger-storm 1.84s cubic-bezier(.16,.78,.15,1) both; }
.pk-rig-cinema.fx-storm .tiger-head-part { animation: pk-rig-tiger-head-storm 1.84s ease-in-out both; filter: drop-shadow(0 0 11px rgba(255,232,114,.82)); }
.pk-rig-cinema.fx-storm .pk-wolf-rig { animation: pk-rig-wolf-hit 1.84s ease-in-out .62s both; }
.pk-rig-cinema.fx-storm .wolf-head-part { animation: pk-rig-wolf-head-hit 1.84s ease-out .62s both; filter: drop-shadow(0 0 10px rgba(255,224,93,.86)); }
.pk-rig-cinema.fx-storm .pk-rig-lightning { animation: pk-rig-lightning-fall .56s ease-in .5s both; }
.pk-rig-cinema.fx-storm .pk-rig-lightning.l2 { animation-delay: .62s; }
.pk-rig-cinema.fx-storm .pk-rig-lightning.l3 { animation-delay: .74s; }
.pk-rig-cinema.fx-storm .pk-rig-impact { animation: pk-rig-impact-storm .75s ease-out .68s both; }

.pk-rig-cinema.fx-rush .pk-tiger-rig { animation: pk-rig-tiger-rush 1.58s cubic-bezier(.16,.78,.14,1) both; }
.pk-rig-cinema.fx-rush .tiger-head-part { animation: pk-rig-tiger-head-rush 1.58s ease-in-out both; }
.pk-rig-cinema.fx-rush .pk-wolf-rig { animation: pk-rig-wolf-knockback 1.58s cubic-bezier(.18,.74,.16,1) .34s both; }
.pk-rig-cinema.fx-rush .wolf-head-part { animation: pk-rig-wolf-head-knockback 1.58s ease-out .34s both; }
.pk-rig-cinema.fx-rush .pk-rig-spike { animation: pk-rig-spike-rise .82s cubic-bezier(.1,.8,.2,1) both; }
.pk-rig-cinema.fx-rush .pk-rig-spike.sp2 { animation-delay: .1s; }
.pk-rig-cinema.fx-rush .pk-rig-spike.sp3 { animation-delay: .2s; }
.pk-rig-cinema.fx-rush .pk-rig-spike.sp4 { animation-delay: .3s; }
.pk-rig-cinema.fx-rush .pk-rig-afterimage.a1 { animation: pk-rig-afterimage-drift .5s ease-out .12s both; }
.pk-rig-cinema.fx-rush .pk-rig-afterimage.a2 { animation: pk-rig-afterimage-drift .5s ease-out .22s both; }
.pk-rig-cinema.fx-rush .pk-rig-impact { left: 68%; top: 40%; animation: pk-rig-impact-pop .6s ease-out .42s both; }
.pk-rig-cinema.fx-rush .pk-rig-world { animation: pk-rig-camera-rush .78s ease-out .32s both; }

.pk-rig-cinema.fx-leap .pk-tiger-rig { animation: pk-rig-tiger-leap 1.72s cubic-bezier(.2,.74,.16,1) both; }
.pk-rig-cinema.fx-leap .tiger-head-part { animation: pk-rig-tiger-head-leap 1.72s ease-in-out both; }
.pk-rig-cinema.fx-leap .pk-wolf-rig { animation: pk-rig-wolf-slammed 1.72s cubic-bezier(.18,.7,.16,1) .56s both; }
.pk-rig-cinema.fx-leap .wolf-head-part { animation: pk-rig-wolf-head-slammed 1.72s ease-out .56s both; }
.pk-rig-cinema.fx-leap .pk-rig-leap-ring { animation: pk-rig-leap-ring 0.72s ease-out .58s both; }
.pk-rig-cinema.fx-leap .pk-rig-frost-burst { animation: pk-rig-frost-burst .82s ease-out .6s both; }
.pk-rig-cinema.fx-leap .pk-rig-impact { left: 66%; top: 40%; animation: pk-rig-impact-storm .72s ease-out .62s both; }
.pk-rig-cinema.fx-leap .pk-rig-world { animation: pk-rig-camera-leap .85s ease-out .58s both; }

.pk-rig-cinema.fx-shadow .pk-rig-dark { animation: pk-rig-dark-show 1.95s ease-in-out both; }
.pk-rig-cinema.fx-shadow .pk-tiger-rig { animation: pk-rig-tiger-shadow 2.08s cubic-bezier(.16,.76,.13,1) both; filter: drop-shadow(0 0 22px rgba(133,234,255,.72)); }
.pk-rig-cinema.fx-shadow .tiger-head-part { animation: pk-rig-tiger-head-shadow 2.08s ease-in-out both; filter: drop-shadow(0 0 13px rgba(198,250,255,.9)); }
.pk-rig-cinema.fx-shadow .pk-wolf-rig { animation: pk-rig-wolf-frozen-shatter 2.08s cubic-bezier(.16,.72,.14,1) .84s both; }
.pk-rig-cinema.fx-shadow .wolf-head-part { animation: pk-rig-wolf-head-frozen 2.08s ease-out .84s both; }
.pk-rig-cinema.fx-shadow .pk-rig-pillar { animation: pk-rig-pillar-rise .9s cubic-bezier(.1,.82,.18,1) both; }
.pk-rig-cinema.fx-shadow .pk-rig-pillar.pl2 { animation-delay: .12s; }
.pk-rig-cinema.fx-shadow .pk-rig-pillar.pl3 { animation-delay: .24s; }
.pk-rig-cinema.fx-shadow .pk-rig-blizzard.b1 { animation: pk-rig-blizzard-spin 1.5s linear .34s both; }
.pk-rig-cinema.fx-shadow .pk-rig-blizzard.b2 { animation: pk-rig-blizzard-spin 1.2s linear .52s both reverse; }
.pk-rig-cinema.fx-shadow .pk-rig-impact { left: 62%; top: 34%; width: 42%; animation: pk-rig-shadow-impact .9s ease-out .9s both; }
.pk-rig-cinema.fx-shadow .pk-rig-world { animation: pk-rig-camera-shadow 1.1s ease-out .82s both; }
.pk-rig-cinema.fx-shadow .pk-rig-speed-lines { animation: pk-rig-speed-flash 1.2s ease-out both; }

.pk-rig-cinema.fx-defeat .pk-tiger-rig { animation: pk-rig-tiger-defeat 1.25s cubic-bezier(.3,.7,.2,1) both; }
.pk-rig-cinema.fx-defeat .tiger-head-part { animation: pk-rig-tiger-head-defeat 1.25s ease-in both; }
.pk-rig-cinema.fx-defeat .pk-wolf-rig { animation: pk-rig-wolf-victory 1.55s ease-in-out infinite; }
.pk-rig-cinema.fx-defeat .wolf-head-part { animation: pk-rig-wolf-howl-head 1.55s ease-in-out infinite; }
.pk-rig-cinema.fx-defeat .pk-rig-defeat-glow { animation: pk-rig-defeat-glow 1.2s ease-out both; }

.pk-rig-cinema.fx-enemy-ready .pk-tiger-rig { animation: pk-rig-tiger-brace .66s ease-out both; }
.pk-rig-cinema.fx-enemy-ready .pk-wolf-rig { animation: pk-rig-wolf-ready .66s cubic-bezier(.2,.75,.18,1) both; }
.pk-rig-cinema.fx-enemy-ready .wolf-head-part { animation: pk-rig-wolf-snarl .66s ease-out both; }
.pk-rig-cinema.fx-enemy-ready .pk-rig-wolf-alert { animation: pk-rig-alert .66s ease-out both; }
.pk-rig-cinema.fx-enemy-ready .pk-rig-growl-wave { animation: pk-rig-growl .66s ease-out both; }
.pk-rig-cinema.fx-enemy-ready .pk-rig-growl-wave.g2 { animation-delay: .08s; }
.pk-rig-cinema.fx-enemy-ready .pk-rig-growl-wave.g3 { animation-delay: .16s; }

.pk-rig-cinema.fx-enemy .pk-tiger-rig { animation: pk-rig-tiger-hurt 1.05s cubic-bezier(.2,.72,.18,1) .55s both; }
.pk-rig-cinema.fx-enemy .tiger-head-part { animation: pk-rig-tiger-head-hurt 1.05s ease-out .55s both; }
.pk-rig-cinema.fx-enemy .pk-wolf-rig { animation: pk-rig-wolf-feint 1.55s cubic-bezier(.18,.76,.17,1) both; }
.pk-rig-cinema.fx-enemy .wolf-head-part { animation: pk-rig-wolf-bite 1.55s ease-in-out both; }
.pk-rig-cinema.fx-enemy .pk-rig-slash { animation: pk-rig-enemy-slash .6s ease-out .74s both; }
.pk-rig-cinema.fx-enemy .pk-rig-slash.s2 { animation-delay: .82s; }
.pk-rig-cinema.fx-enemy .pk-rig-impact { left: 18%; animation: pk-rig-enemy-impact .58s ease-out .78s both; }
.pk-rig-cinema.fx-enemy .pk-rig-world { animation: pk-rig-camera-enemy .72s ease-out .68s both; }
.pk-rig-cinema.fx-enemy .pk-rig-speed-lines { animation: pk-rig-speed-flash .72s ease-out both; }
.pk-rig-cinema.fx-enemy.wolf-pounce .pk-wolf-rig { animation-name: pk-rig-wolf-pounce; }
.pk-rig-cinema.fx-enemy.wolf-claw .pk-wolf-rig { animation-name: pk-rig-wolf-claw; }
.pk-rig-cinema.fx-enemy.wolf-howl .pk-wolf-rig { animation-name: pk-rig-wolf-howl; }
.pk-rig-cinema.fx-enemy.wolf-howl .wolf-head-part { animation-name: pk-rig-wolf-howl-head; }
.pk-rig-cinema.fx-enemy.wolf-circle .pk-wolf-rig { animation-name: pk-rig-wolf-circle; }

.pk-rig-cinema.fx-victory .pk-tiger-rig { animation: pk-rig-tiger-victory 1.45s ease-in-out infinite; }
.pk-rig-cinema.fx-victory .tiger-head-part { animation: pk-rig-tiger-victory-head 1.45s ease-in-out infinite; }
.pk-rig-cinema.fx-victory .pk-wolf-rig { animation: pk-rig-wolf-defeat 1.15s ease-out both; }
.pk-rig-cinema.fx-victory .wolf-head-part { filter: grayscale(.7) brightness(.76); }
.pk-rig-cinema.fx-victory .pk-rig-confetti { animation: pk-rig-confetti-show 2.2s ease-out both; }
.pk-rig-cinema.fx-victory .pk-rig-confetti i { animation: pk-rig-confetti-fall 1.9s cubic-bezier(.2,.7,.3,1) calc(var(--i) * .035s) both; }

@keyframes pk-rig-snow-fall {
  0% { transform: translate3d(0,-6%,0); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: translate3d(22px,560%,0); opacity: 0; }
}
@keyframes pk-rig-aurora-drift {
  from { transform: translateX(-4%) rotate(11deg) scaleX(.92); }
  to { transform: translateX(5%) rotate(7deg) scaleX(1.08); }
}
@keyframes pk-rig-shadow-breathe {
  0%,100% { transform: scaleX(.96); opacity: .74; }
  50% { transform: scaleX(1.05); opacity: .92; }
}
@keyframes pk-rig-tiger-breathe {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  28% { transform: translate3d(0,-1.2%,0) scaleX(.994) scaleY(1.012); }
  54% { transform: translate3d(0,.3%,0) scaleX(1.006) scaleY(.994); }
  76% { transform: translate3d(.5%,-.7%,0) rotate(.7deg); }
}
@keyframes pk-rig-tiger-look {
  0%,15%,100% { transform: rotate(0) translateX(0); }
  24% { transform: rotate(-2.2deg) translateX(-1.3%); }
  37% { transform: rotate(-1deg); }
  46% { transform: rotate(2.3deg) translateX(1.2%); }
  61% { transform: rotate(1.1deg); }
  72% { transform: rotate(-.8deg) translateY(.6%); }
  82% { transform: rotate(0); }
}
@keyframes pk-rig-wolf-idle {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  14% { transform: translate3d(-1.4%,0,0) rotate(-1.2deg); }
  20% { transform: translate3d(-.5%,1.3%,0) rotate(0) scaleY(.985); }
  25% { transform: translate3d(1%,0,0) rotate(.8deg); }
  47% { transform: translate3d(.8%,-.6%,0) rotate(.4deg); }
  63% { transform: translate3d(-.5%,.5%,0) rotate(-.8deg) scaleX(1.012); }
  78% { transform: translate3d(0,0,0); }
}
@keyframes pk-rig-wolf-scan {
  0%,12%,100% { transform: rotate(0) translateX(0); }
  20% { transform: rotate(-5deg) translate(-2.3%,.6%); }
  31% { transform: rotate(-7deg) translate(-3.2%,.7%); }
  40% { transform: rotate(-2deg); }
  54% { transform: rotate(5deg) translate(1.7%,-.4%); }
  68% { transform: rotate(7deg) translate(2.2%,-.2%); }
  78% { transform: rotate(1deg); }
  88% { transform: rotate(-1.6deg) translate(-.4%,.4%); }
}
@keyframes pk-rig-puff {
  0% { opacity: 0; transform: translate3d(0,0,0) scale(.2); }
  18% { opacity: .64; }
  55% { opacity: .32; transform: translate3d(12px,-28px,0) scale(1.7); }
  100% { opacity: 0; transform: translate3d(24px,-56px,0) scale(2.5); }
}

@keyframes pk-rig-tiger-basic {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  12% { transform: translate3d(-4%,5%,0) rotate(2deg) scaleX(1.04) scaleY(.94); }
  27% { transform: translate3d(9%,-9%,0) rotate(-6deg) scale(1.04); }
  43% { transform: translate3d(50%,-12%,0) rotate(-10deg) scale(1.08); }
  53% { transform: translate3d(56%,-7%,0) rotate(-7deg) scale(1.05); }
  68% { transform: translate3d(24%,-2%,0) rotate(-2deg); }
  84% { transform: translate3d(4%,1%,0) rotate(1deg) scale(.99); }
}
@keyframes pk-rig-tiger-strike {
  0%,16% { transform: rotate(5deg) translateY(1%); }
  36% { transform: rotate(-8deg) translateY(-1%); }
  48% { transform: rotate(-18deg) translateX(2%); }
  60% { transform: rotate(-12deg); }
  74% { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}
@keyframes pk-rig-wolf-hit {
  0%,15%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  24% { transform: translate3d(5%,2%,0) rotate(-3deg) scale(.98); }
  36% { transform: translate3d(30%,-17%,0) rotate(12deg) scale(.95,1.04); }
  50% { transform: translate3d(20%,-5%,0) rotate(5deg); }
  63% { transform: translate3d(25%,1%,0) rotate(9deg); }
  81% { transform: translate3d(9%,1%,0) rotate(2deg); }
}
@keyframes pk-rig-wolf-head-hit {
  0%,100% { transform: rotate(0); }
  22% { transform: rotate(13deg) translate(3%,-2%); }
  39% { transform: rotate(-16deg) translate(7%,2%); }
  58% { transform: rotate(8deg); }
  76% { transform: rotate(-4deg); }
}
@keyframes pk-rig-slash-cut {
  0% { opacity: 0; transform: translateY(-22%) rotate(-14deg) scaleY(.25); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translateY(15%) rotate(5deg) scaleY(1.08); }
}
@keyframes pk-rig-impact-pop {
  0% { opacity: 0; transform: scale(.2) rotate(-35deg); }
  28% { opacity: 1; transform: scale(1.08) rotate(3deg); }
  100% { opacity: 0; transform: scale(1.7) rotate(28deg); }
}
@keyframes pk-rig-camera-hit {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  35% { transform: translate3d(-1.2%,.7%,0) scale(1.035); }
  57% { transform: translate3d(1%,-.5%,0) scale(1.018); }
  76% { transform: translate3d(-.5%,.2%,0) scale(1.025); }
}

@keyframes pk-rig-tiger-ice {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  12% { transform: translate3d(-3%,6%,0) rotate(3deg) scaleY(.94); }
  25% { transform: translate3d(10%,-11%,0) rotate(-9deg) scale(1.05); }
  39% { transform: translate3d(52%,-16%,0) rotate(-15deg) scale(1.09); }
  48% { transform: translate3d(58%,-8%,0) rotate(-7deg); }
  58% { transform: translate3d(45%,-2%,0) rotate(2deg); }
  72% { transform: translate3d(18%,0,0); }
}
@keyframes pk-rig-tiger-head-ice {
  0%,100% { transform: rotate(0); }
  15% { transform: rotate(8deg) translateY(2%); }
  34% { transform: rotate(-7deg) translateY(-1%); }
  43% { transform: rotate(-12deg) translateY(-1%); }
  55% { transform: rotate(-5deg); }
  72% { transform: rotate(5deg); }
}
@keyframes pk-rig-wolf-frozen {
  0%,18%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); filter: none; }
  30% { transform: translate3d(-1%,1%,0) scale(.99); filter: saturate(.5) brightness(1.08); }
  41% { transform: translate3d(29%,-15%,0) rotate(10deg) scale(.95); filter: saturate(.35) hue-rotate(-20deg) brightness(1.12); }
  53% { transform: translate3d(21%,-5%,0) rotate(5deg); }
  68% { transform: translate3d(24%,1%,0) rotate(8deg); filter: saturate(.7); }
}
@keyframes pk-rig-ice-burst {
  0% { opacity: 0; transform: translateY(-25%) scale(.25) rotate(-18deg); }
  24% { opacity: 1; }
  62% { opacity: .9; transform: translateY(6%) scale(1.02) rotate(4deg); }
  100% { opacity: 0; transform: translateY(22%) scale(1.3); }
}
@keyframes pk-rig-camera-ice {
  0%,100% { transform: translate3d(0,0,0) scale(1); filter: saturate(1); }
  25% { transform: translate3d(0,1%,0) scale(.994); filter: saturate(1.12); }
  48% { transform: translate3d(-1.5%,-1.2%,0) scale(1.045); filter: saturate(1.3) brightness(1.05); }
  70% { transform: translate3d(1%,.4%,0) scale(1.02); }
}

@keyframes pk-rig-tiger-moon {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  10% { transform: translate3d(-7%,2%,0) rotate(5deg) scaleX(1.04) scaleY(.96); }
  21% { transform: translate3d(5%,-8%,0) rotate(-8deg) scale(1.03); }
  30% { transform: translate3d(18%,-18%,0) rotate(-17deg) scale(1.06); }
  42% { transform: translate3d(44%,-8%,0) rotate(-4deg) scale(1.1); }
  50% { transform: translate3d(56%,-3%,0) rotate(3deg) scale(1.04); }
  60% { transform: translate3d(35%,-4%,0) rotate(-5deg); }
  76% { transform: translate3d(9%,1%,0) rotate(2deg); }
}
@keyframes pk-rig-tiger-head-moon {
  0%,100% { transform: rotate(0); }
  12% { transform: rotate(9deg); }
  28% { transform: rotate(-15deg) translate(-2%,-1%); }
  44% { transform: rotate(-23deg); }
  56% { transform: rotate(-4deg); }
  72% { transform: rotate(6deg); }
}
@keyframes pk-rig-moon-sweep {
  0% { opacity: 0; transform: rotate(-18deg) scale(.45); }
  20% { opacity: 1; }
  74% { opacity: .9; transform: rotate(18deg) scale(1.08); }
  100% { opacity: 0; transform: rotate(28deg) scale(1.3); }
}
@keyframes pk-rig-afterimage-drift {
  0% { opacity: 0; transform: translateX(0) scale(.96); }
  22% { opacity: .32; }
  54% { opacity: .2; transform: translateX(42%) scale(1); }
  100% { opacity: 0; transform: translateX(68%) scale(1.02); }
}
@keyframes pk-rig-moon-impact {
  0% { opacity: 0; transform: scale(.2); filter: hue-rotate(20deg); }
  24% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.7); filter: hue-rotate(80deg); }
}

@keyframes pk-rig-tiger-storm {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  8% { transform: translate3d(-2%,6%,0) rotate(2deg) scaleX(1.05) scaleY(.93); }
  17% { transform: translate3d(0,-14%,0) rotate(-4deg); }
  30% { transform: translate3d(8%,-66%,0) rotate(-15deg) scale(1.04); }
  40% { transform: translate3d(24%,-58%,0) rotate(-12deg); }
  48% { transform: translate3d(37%,-18%,0) rotate(4deg) scale(1.03); }
  54% { transform: translate3d(48%,4%,0) rotate(8deg) scaleX(1.08) scaleY(.91); }
  67% { transform: translate3d(35%,-2%,0); }
  82% { transform: translate3d(12%,0,0) rotate(-1deg); }
}
@keyframes pk-rig-tiger-head-storm {
  0%,100% { transform: rotate(0); }
  10% { transform: rotate(6deg); }
  22% { transform: rotate(-2deg) translateY(-3%); }
  38% { transform: rotate(-9deg) translateY(-4%); }
  50% { transform: rotate(12deg) translateY(3%); }
  66% { transform: rotate(-5deg); }
}
@keyframes pk-rig-camera-storm {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  12% { transform: translate3d(0,1.5%,0) scale(1.02); }
  30% { transform: translate3d(-1%,0,0) scale(1.055); }
  46% { transform: translate3d(1.4%,0,0) scale(1.03); }
  58% { transform: translate3d(-1.2%,.4%,0) scale(1.05); }
  72% { transform: translate3d(.8%,-.3%,0) scale(1.025); }
}
@keyframes pk-rig-lightning-fall {
  0% { opacity: 0; transform: scaleY(.18); }
  16% { opacity: 1; }
  36% { opacity: .75; }
  54% { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1.05); }
}
@keyframes pk-rig-impact-storm {
  0% { opacity: 0; transform: scale(.15) rotate(-30deg); }
  18% { opacity: 1; transform: scale(1.3) rotate(5deg); }
  72% { opacity: .8; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(2) rotate(25deg); filter: hue-rotate(40deg); }
}

@keyframes pk-rig-tiger-brace {
  0%,100% { transform: translate3d(0,0,0); }
  35% { transform: translate3d(-4%,2%,0) rotate(3deg) scaleY(.97); }
  70% { transform: translate3d(-1%,0,0) rotate(-1deg); }
}
@keyframes pk-rig-wolf-ready {
  0% { transform: translate3d(0,0,0); }
  32% { transform: translate3d(4%,8%,0) rotate(-3deg) scaleX(1.04) scaleY(.9); }
  58% { transform: translate3d(1%,4%,0) rotate(2deg); }
  82% { transform: translate3d(2%,6%,0) rotate(-1deg); }
  100% { transform: translate3d(0,5%,0) rotate(0); }
}
@keyframes pk-rig-wolf-snarl {
  0%,100% { transform: rotate(0); }
  26% { transform: rotate(13deg) translate(-2%,5%); }
  44% { transform: rotate(-6deg) translate(1%,2%); }
  68% { transform: rotate(10deg) translate(-1%,4%); }
}
@keyframes pk-rig-alert {
  0% { opacity: 0; transform: scale(.2) translateY(10px); }
  28% { opacity: 1; transform: scale(1.18) translateY(0); }
  55% { transform: scale(.95); }
  100% { opacity: .95; transform: scale(1); }
}
@keyframes pk-rig-growl {
  0% { opacity: 0; transform: scale(.35); }
  26% { opacity: .9; }
  100% { opacity: 0; transform: scale(1.8); }
}

@keyframes pk-rig-wolf-feint {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  10% { transform: translate3d(13%,5%,0) rotate(3deg) scaleX(1.05) scaleY(.94); }
  22% { transform: translate3d(5%,8%,0) rotate(-2deg); }
  34% { transform: translate3d(18%,2%,0) rotate(4deg); }
  48% { transform: translate3d(-24%,-10%,0) rotate(-7deg) scale(1.03); }
  59% { transform: translate3d(-68%,-19%,0) rotate(-11deg) scale(1.08); }
  68% { transform: translate3d(-61%,-9%,0) rotate(-4deg); }
  82% { transform: translate3d(-18%,0,0) rotate(2deg); }
}
@keyframes pk-rig-wolf-pounce {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  13% { transform: translate3d(3%,11%,0) rotate(-3deg) scaleX(1.06) scaleY(.88); }
  29% { transform: translate3d(-17%,-28%,0) rotate(-13deg) scale(1.06); }
  45% { transform: translate3d(-49%,-47%,0) rotate(-18deg) scale(1.1); }
  57% { transform: translate3d(-72%,-22%,0) rotate(-8deg); }
  67% { transform: translate3d(-59%,2%,0) rotate(5deg) scaleX(1.08) scaleY(.92); }
  81% { transform: translate3d(-18%,1%,0) rotate(1deg); }
}
@keyframes pk-rig-wolf-claw {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  12% { transform: translate3d(10%,4%,0) rotate(10deg) scale(1.02); }
  25% { transform: translate3d(14%,-6%,0) rotate(17deg); }
  38% { transform: translate3d(-24%,-21%,0) rotate(-19deg) scale(1.06); }
  50% { transform: translate3d(-62%,-11%,0) rotate(-23deg) scale(1.08); }
  60% { transform: translate3d(-45%,-2%,0) rotate(9deg); }
  76% { transform: translate3d(-12%,2%,0) rotate(-3deg); }
}
@keyframes pk-rig-wolf-howl {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  12% { transform: translate3d(4%,4%,0) rotate(2deg) scaleX(1.05) scaleY(.92); }
  26% { transform: translate3d(1%,-7%,0) rotate(-8deg) scale(1.05); }
  40% { transform: translate3d(6%,-4%,0) rotate(-5deg); }
  54% { transform: translate3d(-55%,-18%,0) rotate(-12deg) scale(1.08); }
  64% { transform: translate3d(-69%,-8%,0) rotate(-5deg); }
  80% { transform: translate3d(-17%,1%,0) rotate(2deg); }
}
@keyframes pk-rig-wolf-howl-head {
  0%,100% { transform: rotate(0); }
  22% { transform: rotate(17deg) translateY(-9%); }
  41% { transform: rotate(22deg) translateY(-12%); }
  52% { transform: rotate(-14deg) translateX(-3%); }
  63% { transform: rotate(-22deg) translateX(-4%); }
  78% { transform: rotate(6deg); }
}
@keyframes pk-rig-wolf-circle {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  12% { transform: translate3d(-16%,-2%,0) rotate(-7deg); }
  24% { transform: translate3d(-32%,5%,0) rotate(-13deg) scaleX(1.02); }
  36% { transform: translate3d(-14%,-2%,0) rotate(7deg); }
  48% { transform: translate3d(-70%,-18%,0) rotate(-14deg) scale(1.07); }
  58% { transform: translate3d(-54%,-4%,0) rotate(7deg); }
  73% { transform: translate3d(-15%,1%,0) rotate(-2deg); }
}
@keyframes pk-rig-wolf-bite {
  0%,100% { transform: rotate(0); }
  18% { transform: rotate(8deg) translateX(4%); }
  36% { transform: rotate(-15deg) translateX(10%); }
  55% { transform: rotate(-21deg) translateX(13%); }
  66% { transform: rotate(-5deg); }
  82% { transform: rotate(3deg); }
}
@keyframes pk-rig-tiger-hurt {
  0%,12%,100% { transform: translate3d(0,0,0) rotate(0); }
  20% { transform: translate3d(-2%,1%,0) scale(.985); }
  34% { transform: translate3d(-17%,-6%,0) rotate(-8deg) scale(.97); }
  48% { transform: translate3d(-12%,2%,0) rotate(5deg); }
  63% { transform: translate3d(-18%,0,0) rotate(-5deg); }
  80% { transform: translate3d(-5%,0,0) rotate(2deg); }
}
@keyframes pk-rig-tiger-head-hurt {
  0%,100% { transform: rotate(0); }
  25% { transform: rotate(14deg) translate(2%,3%); }
  48% { transform: rotate(-12deg) translate(-2%,1%); }
  68% { transform: rotate(7deg); }
}
@keyframes pk-rig-enemy-slash {
  0% { opacity: 0; transform: translateY(20%) rotate(-22deg) scaleY(.2); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-12%) rotate(9deg) scaleY(1.05); }
}
@keyframes pk-rig-enemy-impact {
  0% { opacity: 0; transform: scale(.2); filter: hue-rotate(150deg); }
  27% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.65); filter: hue-rotate(190deg); }
}
@keyframes pk-rig-camera-enemy {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  30% { transform: translate3d(1.6%,.6%,0) scale(1.035); }
  52% { transform: translate3d(-1.4%,-.6%,0) scale(1.02); }
  72% { transform: translate3d(.7%,.2%,0) scale(1.028); }
}
@keyframes pk-rig-speed-flash {
  0% { opacity: 0; transform: translateX(16%) skewX(-18deg); }
  22% { opacity: .58; }
  100% { opacity: 0; transform: translateX(-36%) skewX(-18deg); }
}

@keyframes pk-rig-tiger-victory {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  22% { transform: translate3d(1%,-10%,0) rotate(-3deg) scale(1.035); }
  43% { transform: translate3d(0,0,0) rotate(1deg); }
  62% { transform: translate3d(-1%,-7%,0) rotate(3deg); }
  78% { transform: translate3d(0,0,0) rotate(-1deg); }
}
@keyframes pk-rig-tiger-victory-head {
  0%,100% { transform: rotate(0); }
  17% { transform: rotate(-6deg); }
  35% { transform: rotate(6deg); }
  53% { transform: rotate(-4deg); }
  70% { transform: rotate(3deg); }
}
@keyframes pk-rig-wolf-defeat {
  0% { transform: translate3d(0,0,0) rotate(0) scale(1); opacity: 1; }
  36% { transform: translate3d(20%,-5%,0) rotate(17deg) scale(.98); opacity: .8; }
  100% { transform: translate3d(44%,19%,0) rotate(38deg) scale(.84); opacity: .22; }
}
@keyframes pk-rig-confetti-show { 0%,100% { opacity: 1; } }
@keyframes pk-rig-confetti-fall {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateY(410px) translateX(22px) rotate(480deg); }
}

@keyframes pk-rig-tiger-rush {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  10% { transform: translate3d(-5%,6%,0) rotate(3deg) scaleY(.92); }
  22% { transform: translate3d(14%,-3%,0) rotate(-4deg) scaleX(1.03); }
  38% { transform: translate3d(70%,-1%,0) rotate(-7deg) scaleX(1.05) scaleY(.96); }
  48% { transform: translate3d(74%,1%,0) rotate(-4deg); }
  60% { transform: translate3d(58%,2%,0) rotate(2deg); }
  76% { transform: translate3d(22%,0,0) rotate(0); }
}
@keyframes pk-rig-tiger-head-rush {
  0%,100% { transform: rotate(0); }
  14% { transform: rotate(5deg) translateY(1%); }
  32% { transform: rotate(-8deg) translateY(-1%); }
  46% { transform: rotate(-10deg) translateY(-2%); }
  58% { transform: rotate(-4deg); }
  74% { transform: rotate(3deg); }
}
@keyframes pk-rig-spike-rise {
  0% { opacity: 0; transform: translateY(105%) scaleY(.15); }
  18% { opacity: 1; }
  44% { transform: translateY(0) scaleY(1.08); }
  60% { transform: translateY(0) scaleY(1); }
  86% { opacity: 1; transform: translateY(0) scaleY(1); }
  100% { opacity: 0; transform: translateY(-5%) scaleY(1); }
}
@keyframes pk-rig-wolf-knockback {
  0%,22%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  36% { transform: translate3d(20%,-13%,0) rotate(13deg) scale(.97,1.03); }
  50% { transform: translate3d(15%,2%,0) rotate(8deg); }
  64% { transform: translate3d(20%,4%,0) rotate(10deg); }
  80% { transform: translate3d(9%,1%,0) rotate(3deg); }
}
@keyframes pk-rig-wolf-head-knockback {
  0%,100% { transform: rotate(0); }
  24% { transform: rotate(-7deg); }
  40% { transform: rotate(18deg) translate(5%,-3%); }
  58% { transform: rotate(-13deg); }
  76% { transform: rotate(6deg); }
}
@keyframes pk-rig-camera-rush {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  30% { transform: translate3d(1.2%,-.6%,0) scale(1.02); }
  45% { transform: translate3d(-1.8%,.9%,0) scale(1.045); }
  62% { transform: translate3d(1.1%,-.5%,0) scale(1.03); }
  82% { transform: translate3d(-.4%,.2%,0) scale(1.012); }
}
@keyframes pk-rig-tiger-leap {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  14% { transform: translate3d(-4%,7%,0) rotate(2deg) scaleY(.9) scaleX(1.04); }
  26% { transform: translate3d(16%,-34%,0) rotate(-8deg) scale(1.02); }
  40% { transform: translate3d(44%,-54%,0) rotate(-14deg) scale(1.04); }
  50% { transform: translate3d(54%,-56%,0) rotate(-8deg) scale(1.02); }
  58% { transform: translate3d(58%,-12%,0) rotate(3deg) scaleY(.98); }
  64% { transform: translate3d(58%,6%,0) rotate(6deg) scaleY(.86) scaleX(1.07); }
  72% { transform: translate3d(57%,2%,0) rotate(2deg) scaleY(.94); }
  84% { transform: translate3d(28%,-1%,0) rotate(0); }
}
@keyframes pk-rig-tiger-head-leap {
  0%,100% { transform: rotate(0); }
  16% { transform: rotate(6deg) translateY(2%); }
  30% { transform: rotate(-6deg) translateY(-1%); }
  44% { transform: rotate(-8deg) translateY(-1%); }
  60% { transform: rotate(7deg) translateY(1%); }
  70% { transform: rotate(4deg); }
}
@keyframes pk-rig-wolf-slammed {
  0%,30%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  48% { transform: translate3d(3%,-3%,0) rotate(-4deg); }
  58% { transform: translate3d(10%,9%,0) rotate(6deg) scaleY(.68) scaleX(1.04); }
  66% { transform: translate3d(24%,12%,0) rotate(14deg) scaleY(.76); }
  78% { transform: translate3d(33%,5%,0) rotate(18deg) scaleY(.9); }
  90% { transform: translate3d(14%,1%,0) rotate(5deg); }
}
@keyframes pk-rig-wolf-head-slammed {
  0%,100% { transform: rotate(0); }
  50% { transform: rotate(-8deg); }
  62% { transform: rotate(21deg) translate(4%,5%); }
  78% { transform: rotate(-12deg); }
}
@keyframes pk-rig-leap-ring {
  0% { opacity: 0; transform: translateX(-50%) scale(.16); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) scale(2.5); }
}
@keyframes pk-rig-frost-burst {
  0% { opacity: 0; transform: translateX(-50%) scale(.3) rotate(-16deg); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) scale(2) rotate(14deg); }
}
@keyframes pk-rig-camera-leap {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  30% { transform: translate3d(0,-1.2%,0) scale(1.012); }
  58% { transform: translate3d(0,.4%,0) scale(1.01); }
  66% { transform: translate3d(-1.6%,1.1%,0) scale(1.05); }
  80% { transform: translate3d(1%,-.5%,0) scale(1.03); }
}
@keyframes pk-rig-dark-show {
  0% { opacity: 0; }
  18% { opacity: .92; }
  72% { opacity: .84; }
  100% { opacity: 0; }
}
@keyframes pk-rig-tiger-shadow {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  14% { transform: translate3d(-7%,3%,0) rotate(-3deg) scaleY(.94); }
  28% { transform: translate3d(-9%,1%,0) rotate(-5deg) scale(1.02); }
  40% { transform: translate3d(-6%,-2%,0) rotate(-7deg) scale(1.05); }
  54% { transform: translate3d(34%,-6%,0) rotate(-12deg) scale(1.06); }
  64% { transform: translate3d(52%,-4%,0) rotate(-6deg); }
  76% { transform: translate3d(46%,0,0) rotate(1deg); }
  88% { transform: translate3d(18%,0,0); }
}
@keyframes pk-rig-tiger-head-shadow {
  0%,100% { transform: rotate(0); }
  18% { transform: rotate(5deg) translateY(1%); }
  34% { transform: rotate(-4deg) translateY(-1%); }
  54% { transform: rotate(-10deg) translateY(-2%); }
  66% { transform: rotate(-7deg); }
  80% { transform: rotate(4deg); }
}
@keyframes pk-rig-pillar-rise {
  0% { opacity: 0; transform: translateY(48%) scaleY(.06); }
  32% { opacity: 1; transform: translateY(0) scaleY(1.08); }
  52% { transform: translateY(0) scaleY(1); }
  74% { opacity: 1; transform: translateY(0) scaleY(1); }
  100% { opacity: 0; transform: translateY(-16%) rotate(9deg) scaleY(1.02); }
}
@keyframes pk-rig-blizzard-spin {
  0% { opacity: 0; transform: rotate(0) scale(.45); }
  16% { opacity: .95; }
  80% { opacity: .88; }
  100% { opacity: 0; transform: rotate(410deg) scale(1.3); }
}
@keyframes pk-rig-wolf-frozen-shatter {
  0%,34%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  44% { transform: translate3d(0,0,0) rotate(2deg) scale(1.02); filter: brightness(1.08) saturate(1.35); }
  52% { transform: translate3d(-3%,1%,0) rotate(-4deg) scale(.99); filter: brightness(1.2) saturate(1.5); }
  60% { transform: translate3d(38%,-14%,0) rotate(20deg) scale(.95); }
  72% { transform: translate3d(30%,4%,0) rotate(13deg); }
  88% { transform: translate3d(12%,1%,0) rotate(4deg); }
}
@keyframes pk-rig-wolf-head-frozen {
  0%,40%,100% { transform: rotate(0); }
  52% { transform: rotate(-10deg); }
  62% { transform: rotate(24deg) translate(4%,-3%); }
  78% { transform: rotate(-14deg); }
}
@keyframes pk-rig-shadow-impact {
  0% { opacity: 0; transform: scale(.18) rotate(-30deg); }
  24% { opacity: 1; transform: scale(1.1) rotate(4deg); }
  100% { opacity: 0; transform: scale(2.2) rotate(36deg); }
}
@keyframes pk-rig-camera-shadow {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  26% { transform: translate3d(0,0,0) scale(1.008); }
  58% { transform: translate3d(1.4%,-.4%,0) scale(1.03); }
  68% { transform: translate3d(-2%,.8%,0) scale(1.06); }
  84% { transform: translate3d(1%,-.3%,0) scale(1.035); }
}
@keyframes pk-rig-tiger-defeat {
  0% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  16% { transform: translate3d(-3%,2%,0) rotate(-5deg); }
  36% { transform: translate3d(-5%,7%,0) rotate(-12deg) scaleY(.97); }
  58% { transform: translate3d(-4%,13%,0) rotate(-21deg) scaleY(.93); }
  76% { transform: translate3d(-3%,16%,0) rotate(-25deg) scaleY(.9); }
  100% { transform: translate3d(-2%,17%,0) rotate(-27deg) scale(.9); filter: brightness(.82) saturate(.72); }
}
@keyframes pk-rig-tiger-head-defeat {
  0% { transform: rotate(0); }
  22% { transform: rotate(-8deg) translateY(2%); }
  50% { transform: rotate(-16deg) translateY(5%); }
  74% { transform: rotate(-10deg) translateY(4%); }
  100% { transform: rotate(-11deg) translateY(4%); }
}
@keyframes pk-rig-wolf-victory {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  24% { transform: translate3d(0,-4%,0) rotate(-3deg) scale(1.03); }
  48% { transform: translate3d(0,-6%,0) rotate(-5deg) scale(1.06); }
  72% { transform: translate3d(0,-3%,0) rotate(-2deg) scale(1.03); }
}
@keyframes pk-rig-defeat-glow {
  0% { opacity: 0; }
  28% { opacity: .9; }
  100% { opacity: .55; }
}

/* Trial opponent picker + ice-croc unit */
.trial-gate-opponents {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.trial-gate-opponents a {
  flex: 1 1 84px;
  min-width: 0;
  padding: 8px 4px;
  border: 1px solid rgba(20, 112, 102, .18);
  border-radius: 9px;
  color: #23665d;
  background: #f4fffb;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.trial-gate-opponents a.is-active {
  border-color: #169a82;
  color: #fff;
  background: linear-gradient(180deg, #28b99b, #11866f);
  box-shadow: 0 5px 14px rgba(17, 134, 111, .24);
}
.pk-fight-cinema.is-intro {
  border-color: rgba(134, 255, 202, .88);
  box-shadow: 0 0 0 4px rgba(66, 236, 165, .09), 0 22px 60px rgba(0, 20, 32, .6), 0 0 48px rgba(62, 237, 158, .3);
}
.pk-battle .battle-kit-image {
  object-fit: cover;
  object-position: 50% 42%;
}

/* Per-skill hit reactions on the stage fighters */
.pk-combatant.enemy.hit-slash .battle-wolf-image,
.pk-combatant.enemy.hit-slash .enemy-art { animation: pk-hit-slash .54s cubic-bezier(.16,.76,.2,1) both; }
.pk-combatant.enemy.hit-slam .battle-wolf-image,
.pk-combatant.enemy.hit-slam .enemy-art { animation: pk-hit-slam .62s cubic-bezier(.14,.78,.18,1) both; }
.pk-combatant.enemy.hit-freeze .battle-wolf-image,
.pk-combatant.enemy.hit-freeze .enemy-art { animation: pk-hit-freeze .72s ease-out both; }
.pk-combatant.player.hit-sweep .battle-pet-image { animation: pk-hit-sweep .66s cubic-bezier(.14,.78,.2,1) both; }
.pk-combatant.player.hit-bite .battle-pet-image { animation: pk-hit-bite .6s cubic-bezier(.18,.8,.2,1) both; }
.pk-combatant.player.hit-crush .battle-pet-image { animation: pk-hit-crush .74s cubic-bezier(.16,.82,.2,1) both; }

@keyframes pk-hit-slash {
  0%, 100% { transform: translateX(0) rotate(0); filter: none; }
  18% { transform: translateX(17px) rotate(-5deg) scale(.985); filter: brightness(1.55); }
  42% { transform: translateX(9px) rotate(4deg); }
  68% { transform: translateX(13px) rotate(-2deg); }
}
@keyframes pk-hit-slam {
  0%, 100% { transform: translate(0, 0) rotate(0) scale(1); }
  16% { transform: translate(-20px, -22px) rotate(10deg) scale(.96); }
  38% { transform: translate(-8px, 8px) rotate(-4deg) scale(1.03); }
  58% { transform: translate(-12px, 3px) rotate(2deg); }
  78% { transform: translate(-5px, 0) rotate(-1deg); }
}
@keyframes pk-hit-freeze {
  0% { transform: scale(1); filter: none; }
  14% { transform: scale(.96) translateY(5px); filter: brightness(1.9) saturate(.15) drop-shadow(0 0 18px #9ff6ff); }
  46% { transform: scale(.98) translateY(3px); filter: brightness(1.4) saturate(.35); }
  64% { transform: translateX(4px) scale(.98); }
  76% { transform: translateX(-3px) scale(.98); }
  100% { transform: scale(1); filter: none; }
}
@keyframes pk-hit-sweep {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  16% { transform: translate(-46px, -10px) rotate(-16deg); }
  42% { transform: translate(-30px, 3px) rotate(-7deg); }
  66% { transform: translate(-37px, -2px) rotate(-11deg); }
  86% { transform: translate(-12px, 0) rotate(-2deg); }
}
@keyframes pk-hit-bite {
  0%, 100% { transform: translate(0, 0) rotate(0) scale(1); }
  15% { transform: translate(18px, -17px) rotate(7deg) scale(.97); }
  33% { transform: translate(7px, 3px) rotate(-3deg); }
  51% { transform: translate(15px, -9px) rotate(4deg); }
  76% { transform: translate(6px, 0) rotate(-1deg); }
}
@keyframes pk-hit-crush {
  0%, 100% { transform: translateY(0) scale(1); }
  18% { transform: translateY(-7px) scale(1.03); }
  34% { transform: translateY(27px) scaleY(.72) scaleX(1.08); filter: brightness(1.15); }
  56% { transform: translateY(19px) scaleY(.8) scaleX(1.05); }
  78% { transform: translateY(9px) scaleY(.92) scaleX(1.02); }
}

/* Per-skill impact overlay: color, direction and camera shake are all different */
.pk-fight-cinema.is-impact.impact-slash .pk-impact-burst,
.pk-fight-cinema.is-impact-player.impact-slash .pk-impact-burst {
  background: radial-gradient(circle at 64% 54%, #fff, #b9fbff 14%, #4ae3ff 34%, transparent 61%);
  animation: pk-impact-burst .34s cubic-bezier(.16,.8,.2,1) both;
}
.pk-fight-cinema.is-impact.impact-slam .pk-impact-burst,
.pk-fight-cinema.is-impact-player.impact-slam .pk-impact-burst {
  background: radial-gradient(circle at 62% 46%, #fff, #dffcff 12%, #65dfff 30%, #3c9dff 42%, transparent 68%);
  animation: pk-impact-burst .5s cubic-bezier(.12,.74,.18,1) both;
}
.pk-fight-cinema.is-impact.impact-freeze .pk-impact-burst,
.pk-fight-cinema.is-impact-player.impact-freeze .pk-impact-burst {
  background: radial-gradient(circle at 58% 50%, #fff, #d7ffff 10%, #8deaff 28%, transparent 58%), repeating-conic-gradient(from 0deg at 58% 50%, rgba(210,255,255,.5) 0 7deg, transparent 7deg 22deg);
  animation: pk-impact-freeze .62s ease-out both;
}
.pk-fight-cinema.is-impact.impact-sweep .pk-impact-burst,
.pk-fight-cinema.is-impact-player.impact-sweep .pk-impact-burst {
  background: radial-gradient(circle at 33% 61%, #fff, #ffe1bd 14%, #ff9c62 34%, transparent 64%);
  animation: pk-impact-sweep .46s cubic-bezier(.18,.8,.2,1) both;
}
.pk-fight-cinema.is-impact.impact-bite .pk-impact-burst,
.pk-fight-cinema.is-impact-player.impact-bite .pk-impact-burst {
  background: radial-gradient(circle at 35% 48%, #fff, #ffe0cf 11%, #ff8f70 31%, #b91f2b 44%, transparent 66%);
  animation: pk-impact-bite .5s cubic-bezier(.2,.76,.16,1) both;
}
.pk-fight-cinema.is-impact.impact-crush .pk-impact-burst,
.pk-fight-cinema.is-impact-player.impact-crush .pk-impact-burst {
  background: radial-gradient(circle at 52% 62%, #fff, #fff1c9 13%, #ffb06e 33%, #d44d35 47%, transparent 72%);
  animation: pk-impact-crush .68s cubic-bezier(.14,.8,.16,1) both;
}
.pk-fight-cinema.is-impact.impact-slam .pk-fight-video,
.pk-fight-cinema.is-impact-player.impact-slam .pk-fight-video { animation: pk-cinema-slam .5s cubic-bezier(.14,.78,.18,1) both; }
.pk-fight-cinema.is-impact.impact-freeze .pk-fight-video,
.pk-fight-cinema.is-impact-player.impact-freeze .pk-fight-video { animation: pk-cinema-freeze .66s ease-out both; }
.pk-fight-cinema.is-impact.impact-sweep .pk-fight-video,
.pk-fight-cinema.is-impact-player.impact-sweep .pk-fight-video { animation: pk-cinema-sweep .46s cubic-bezier(.16,.82,.18,1) both; }
.pk-fight-cinema.is-impact.impact-bite .pk-fight-video,
.pk-fight-cinema.is-impact-player.impact-bite .pk-fight-video { animation: pk-cinema-bite .48s cubic-bezier(.18,.8,.18,1) both; }
.pk-fight-cinema.is-impact.impact-crush .pk-fight-video,
.pk-fight-cinema.is-impact-player.impact-crush .pk-fight-video { animation: pk-cinema-crush .62s cubic-bezier(.12,.82,.16,1) both; }
@keyframes pk-impact-freeze {
  0% { opacity: 0; transform: scale(1.08); }
  18% { opacity: .95; }
  62% { opacity: .5; }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes pk-impact-sweep {
  0% { opacity: 0; transform: translateX(22%); }
  20% { opacity: .9; }
  100% { opacity: 0; transform: translateX(-12%); }
}
@keyframes pk-impact-bite {
  0% { opacity: 0; transform: scale(.86); }
  22% { opacity: .95; }
  100% { opacity: 0; transform: scale(1.08); }
}
@keyframes pk-impact-crush {
  0% { opacity: 0; transform: scale(1.2) translateY(-10%); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: scale(.96) translateY(8%); }
}
@keyframes pk-cinema-slam {
  0%, 100% { transform: translate(0, 0) scale(1.02); }
  18% { transform: translate(-10px, -8px) scale(1.06); }
  38% { transform: translate(9px, 9px) scale(1.05); }
  62% { transform: translate(-5px, -4px) scale(1.04); }
}
@keyframes pk-cinema-freeze {
  0%, 100% { transform: scale(1.02); }
  16% { transform: scale(1.04); }
  42% { transform: scale(1.025); }
  68% { transform: translateX(3px) scale(1.02); }
}
@keyframes pk-cinema-sweep {
  0%, 100% { transform: translate(0, 0) scale(1.02); }
  20% { transform: translate(16px, 4px) rotate(.7deg) scale(1.05); }
  48% { transform: translate(8px, -2px) rotate(-.4deg) scale(1.03); }
}
@keyframes pk-cinema-bite {
  0%, 100% { transform: scale(1.02); }
  14% { transform: scale(1.075) translate(-5px, 3px); }
  32% { transform: scale(1.04) translate(4px, -2px); }
  52% { transform: scale(1.06) translate(-3px, 1px); }
}
@keyframes pk-cinema-crush {
  0%, 100% { transform: scale(1.02); }
  18% { transform: scale(1.1) translateY(-6px); }
  38% { transform: scale(1.11) translateY(9px); }
  60% { transform: scale(1.055) translateY(3px); }
  80% { transform: scale(1.035); }
}





/* Rename card */
.rename-form { display: grid; gap: 8px; }
.rename-form label { color: var(--ink-soft); font-size: 12px; font-weight: 900; }
.rename-form input { width: 100%; min-height: 48px; padding: 0 13px; border: 2px solid rgba(23,133,111,.26); border-radius: 9px; background: #fff; color: var(--ink); font-size: 18px; font-weight: 900; outline: none; }
.rename-form input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(23,133,111,.12); }
.rename-form small { color: var(--muted); font-size: 11px; }

/* Mobile battle: keep video decoding and hit feedback, remove expensive compositing. */
@media (pointer: coarse), (max-width: 760px) {
  .pk-fighter-card,
  .pk-fighter-tag,
  .pk-versus,
  .pk-exit,
  .pk-message,
  .pk-video-caption,
  .pk-live-turn {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .pk-battle .battle-snowfall i:nth-child(n+13) { display: none; }
  .pk-battle .battle-pet-image,
  .pk-battle .battle-wolf-image,
  .pk-battle .battle-aura-ring,
  .pk-crown,
  .pk-crowd i,
  .pk-live-turn.wolf,
  .pk-fight-cinema .pk-king-aura,
  .pk-skill.tier-3 .pk-skill-icon,
  .pk-skill.tier-4 .pk-skill-icon {
    animation: none !important;
  }
  .pk-fight-cinema {
    box-shadow: 0 8px 26px rgba(0, 14, 24, .48);
  }
  .pk-fight-cinema.is-victory,
  .pk-fight-cinema.is-king {
    box-shadow: 0 10px 30px rgba(0, 14, 24, .54);
  }
  .pk-fight-cinema.is-action,
  .pk-fight-cinema.is-idle {
    animation-duration: .08s;
  }
  .pk-fight-video {
    transition-duration: .08s;
    will-change: auto;
    backface-visibility: visible;
  }
  .pk-video-caption {
    background: rgba(3, 25, 36, .78);
  }
}
