:root {
  --ink: #3d4a63;
  --ink-soft: #66738c;
  --line: #52627d;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --mint: #dff3ed;
  --sea: #3fb6d6;
  --sea-deep: #1f8fb8;
  --coral: #f28b6c;
  --coral-deep: #d9694a;
  --gold: #f6c453;
  --lavender: #cbbaf4;
  --common: #8fb8a8;
  --rare: #8f7fd0;
  --legendary: #e9a93a;
  --top: 60px;
  --radius: 18px;
  --shadow: 0 6px 0 rgba(61, 74, 99, .18), 0 14px 30px rgba(20, 60, 90, .22);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(ellipse at 50% 40%, #6fd0ea 0%, var(--sea) 45%, var(--sea-deep) 100%);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
img { display: block; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

/* ---------- 上方列 ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--top);
  display: flex; align-items: center; gap: 10px;
  padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  background: rgba(255, 250, 240, .92);
  border-bottom: 3px solid var(--line);
  backdrop-filter: blur(6px);
}
.logo {
  margin: 0; font-size: 22px; font-weight: 900; letter-spacing: .04em; white-space: nowrap;
  color: var(--coral-deep);
  text-shadow: 2px 2px 0 #fff;
}
.logo span { color: var(--sea-deep); }
.stats { display: flex; gap: 6px; margin-left: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 11px; border-radius: 999px;
  background: var(--mint); border: 2px solid var(--line);
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.pill i { font-style: normal; color: var(--ink-soft); }
.pill-star { background: #fff2c9; color: #a26a00; }
.pill-key { background: #fff2c9; }
.pill-key.empty { background: #eceff3; color: #9aa4b5; }
.pill-key.shake { animation: shake .45s ease-in-out 2; }
.pill-streak { background: #ffe3d6; color: #c2502c; }
.pill-quiz { background: #f1ebff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px;
  border: 3px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink);
  font-weight: 900; font-size: 16px; text-decoration: none;
  box-shadow: 0 4px 0 var(--line);
  cursor: pointer; transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.btn:focus-visible, .zone:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-lg { min-height: 54px; font-size: 19px; padding: 0 34px; }
.btn-dex { background: var(--gold); min-height: 40px; }

/* ---------- 地圖 ---------- */
.stage {
  position: fixed; inset: var(--top) 0 0 0;
  display: flex; align-items: center; justify-content: center;
}
.map {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100vw, calc((100dvh - var(--top)) * 16 / 9));
  container-type: inline-size;
}
.map-img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
@media (orientation: portrait) {
  .stage { align-items: flex-start; }
  .map {
    aspect-ratio: 9 / 16;
    width: min(100vw, calc((100dvh - var(--top)) * 9 / 16));
  }
}

.zone {
  position: absolute; z-index: 2;
  width: 5.2cqw; padding: 0; border: 0; background: none;
  transform: translate(-50%, -78%);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
}
.zone .chest {
  width: 100%;
  filter: drop-shadow(0 4px 0 rgba(61, 74, 99, .35));
  animation: bob 2.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  transition: transform .15s;
}
.zone::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 45%; width: 150%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 244, 190, .95) 0%, rgba(255, 230, 140, .45) 35%, transparent 68%);
  animation: glow 2.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.zone:hover .chest { transform: scale(1.12) rotate(-4deg); }
.zone-label {
  margin-top: -2px;
  padding: 1px 9px; border-radius: 999px;
  background: var(--cream); border: 2px solid var(--line);
  font-size: clamp(11px, 1.05cqw, 15px); font-weight: 900; white-space: nowrap;
  box-shadow: 0 2px 0 var(--line);
}
.zone-label small { font-weight: 700; color: var(--ink-soft); margin-left: 3px; }
.zone.done .chest { filter: grayscale(.7) opacity(.75); animation: none; }
.zone.done::before { display: none; }
.zone.done .zone-label { background: #e7f6dc; }
.zone.done .zone-label::after { content: " ✓"; color: #3c9a4c; }
.zone.hint .chest { animation: hint .6s ease-in-out 4; }
.zone.opening .chest { animation: shake .45s ease-in-out; }
.zone.opened .chest { animation: none; transform: scale(1.15); }

.walker {
  position: absolute; z-index: 3;
  width: 6cqw;
  transform: translate(-50%, -92%);
  transition: left .75s ease-in-out, top .75s ease-in-out;
  pointer-events: none;
}
.walker img { width: 100%; filter: drop-shadow(0 5px 0 rgba(61, 74, 99, .3)); }
.walker.walking img { animation: hop .25s ease-in-out infinite alternate; }
.walker::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: -2%; height: 8%;
  background: rgba(30, 60, 70, .28); border-radius: 50%; z-index: -1;
}

@media (orientation: portrait) {
  .zone { width: 10.5cqw; }
  .zone-label { font-size: clamp(11px, 3.1cqw, 15px); }
  .walker { width: 13cqw; }
}

/* ---------- 今日任務 ---------- */
.mission {
  position: fixed; z-index: 16;
  left: max(12px, env(safe-area-inset-left)); top: calc(var(--top) + 10px);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  max-width: min(440px, calc(100vw - 24px));
  padding: 6px 12px 6px 6px; border-radius: 14px;
  background: rgba(255, 250, 240, .94); border: 2px solid var(--line);
  box-shadow: 0 3px 0 var(--line);
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer;
}
.mission-tag {
  background: var(--rare); color: #fff; border-radius: 9px;
  padding: 2px 8px; font-size: 12px; font-weight: 900; white-space: nowrap;
}
.mission-prog { color: var(--coral-deep); white-space: nowrap; }
.mission.done { background: rgba(231, 246, 220, .95); }
.mission.done .mission-tag { background: #3c9a4c; }
.mission.done .mission-prog { color: #3c9a4c; }

/* ---------- 每日登入 ---------- */
.daily-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 4px 0 14px; }
.daily-track .day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 58px; border-radius: 12px;
  background: #f1f3f6; border: 2px dashed #b9c2d0; color: var(--ink-soft);
  font-size: 15px; font-weight: 900;
}
.daily-track .day small { font-size: 11px; font-weight: 700; }
.daily-track .day.gift { background: #fff2c9; border-color: var(--legendary); color: #a26a00; }
.daily-track .day.past { background: var(--mint); border-style: solid; border-color: var(--common); color: var(--ink); }
.daily-track .day.today { background: var(--coral); border: 3px solid var(--line); color: #fff; transform: scale(1.08); }
.daily-track .day.today small { color: #fff; }
.daily-gift { font-weight: 900; color: #a26a00; background: #fff2c9; border-radius: 12px; padding: 6px 10px; }
.modal-intro p.daily-mission { font-size: 15px; color: var(--ink-soft); }

/* ---------- 訪客人數 ---------- */
.visitors {
  position: fixed; z-index: 16;
  right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom));
  padding: 5px 13px; border-radius: 999px;
  background: rgba(255, 250, 240, .9); border: 2px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  box-shadow: 0 2px 0 var(--line);
}
.visitors b { color: var(--ink); font-weight: 900; }
@media (max-width: 600px) {
  .visitors { bottom: auto; top: calc(var(--top) + 8px); right: 8px; font-size: 12px; padding: 3px 10px; }
}

/* ---------- 豬哥亮對話框 ---------- */
.guide {
  position: fixed; z-index: 15;
  left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: flex-end;
  max-width: min(460px, calc(100vw - 24px));
  pointer-events: none;
}
.guide-hero { width: 118px; margin-right: -14px; position: relative; z-index: 1; filter: drop-shadow(0 4px 0 rgba(61, 74, 99, .3)); }
.guide-hero.pop { animation: pop .35s ease-out; }
.bubble {
  margin-bottom: 14px; padding: 10px 16px 12px 22px;
  background: var(--paper); border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 16px; font-weight: 700; line-height: 1.5;
}
.bubble-name { display: block; font-size: 13px; color: var(--coral-deep); }
.bubble-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rps-btn {
  pointer-events: auto;
  min-height: 32px; padding: 0 10px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--gold); box-shadow: 0 2px 0 var(--line);
  font-size: 13px; font-weight: 900; cursor: pointer; white-space: nowrap;
}
.rps-btn.used { background: #eceff3; color: var(--ink-soft); }

/* ---------- 猜拳 ---------- */
.modal-rps { width: min(460px, calc(100vw - 24px)); text-align: center; }
.modal-rps h2 { font-size: 24px; font-weight: 900; color: var(--coral-deep); }
.rps-sub { margin: 6px 0 12px; font-weight: 700; color: var(--ink-soft); }
.rps-arena { display: flex; align-items: flex-end; justify-content: center; gap: 18px; }
.rps-side { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 900; }
.rps-side small { font-size: 14px; color: var(--ink-soft); }
.rps-hero { width: 96px; margin-bottom: -10px; }
.rps-hand {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: var(--mint); border: 3px solid var(--line); font-size: 52px; line-height: 1;
}
.rps-hand.shaking { animation: rpsShake .3s ease-in-out 3; }
.rps-hand.win { background: #c9f0c6; }
.rps-hand.lose { background: #ffd2c7; }
.rps-vs { font-size: 26px; font-weight: 900; color: var(--coral-deep); margin-bottom: 52px; }
.rps-result { min-height: 3em; margin: 12px 0; font-size: 18px; font-weight: 900; line-height: 1.5; }
.rps-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rps-choice {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 84px; border: 3px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 4px 0 var(--line); font-size: 38px; cursor: pointer;
}
.rps-choice small { font-size: 14px; font-weight: 900; }
.rps-choice:hover:not(:disabled) { background: #fff2c9; }
.rps-choice:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.rps-choice:disabled { opacity: .45; cursor: default; }
@keyframes rpsShake { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-12deg); } }
.bubble p { margin: 0; }

@media (max-width: 600px) {
  :root { --top: 54px; }
  .topbar { gap: 6px; padding: 0 10px; }
  .logo { font-size: 17px; }
  .pill { font-size: 12px; padding: 3px 7px; }
  .pill-quiz, .pill-star { display: none; }
  .stats { gap: 4px; }
  .pill .lbl { display: none; }
  .btn-dex { white-space: nowrap; }
  /* 手機上任務只顯示小徽章，點了由豬哥亮念出任務內容 */
  .mission { left: 8px; top: calc(var(--top) + 8px); font-size: 12px; gap: 5px; padding: 3px 8px 3px 3px; flex-wrap: nowrap; }
  .mission-text { display: none; }
  .mission-tag { font-size: 11px; }
  .daily-track { gap: 3px; }
  .daily-track .day { min-height: 50px; font-size: 13px; }
  .daily-track .day small { font-size: 10px; }
  .btn-dex { min-height: 38px; padding: 0 12px; font-size: 15px; }
  .guide { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); max-width: none; }
  .guide-hero { width: 84px; margin-right: -10px; }
  .bubble { flex: 1; font-size: 14px; padding: 8px 12px 10px 18px; margin-bottom: 8px; }
  .modal-intro p br { display: none; }
}
@media (max-width: 360px) {
  .logo span { display: none; }
}

/* ---------- 對話視窗共用 ---------- */
.modal {
  border: 4px solid var(--line); border-radius: 24px;
  background: var(--paper); color: var(--ink);
  padding: 24px; max-width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  box-shadow: var(--shadow);
}
.modal[open] { animation: pop .3s ease-out; }
.modal::backdrop { background: rgba(20, 50, 75, .55); backdrop-filter: blur(2px); }
.modal h2 { margin: 0; }

.modal-intro { text-align: center; padding-top: 18px; overflow: visible; }
.intro-hero { width: 170px; margin: -80px auto 0; filter: drop-shadow(0 6px 0 rgba(61, 74, 99, .25)); }
.modal-intro h2 { font-size: 28px; font-weight: 900; color: var(--coral-deep); margin: 4px 0 8px; }
.modal-intro p { font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.intro-rules { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; display: grid; gap: 8px; }
.intro-rules li {
  display: flex; align-items: center; gap: 10px;
  background: var(--mint); border: 2px solid var(--line); border-radius: 14px;
  padding: 6px 12px; font-weight: 700;
}
.intro-rules img, .rule-num { width: 34px; height: 34px; flex: none; }
.rule-num {
  display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--line); font-weight: 900;
}

/* ---------- 卡片 ---------- */
.modal-card { background: transparent; border: 0; box-shadow: none; padding: 8px; overflow: visible; }
.modal-card[open] { animation: none; }
.card-wrap { perspective: 1000px; }
.card {
  position: relative;
  width: min(340px, 78vw, calc((100dvh - 130px) * 512 / 704));
  aspect-ratio: 512 / 704;
  margin: 0 auto;
  background: center / 100% 100% no-repeat;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .3));
}
.modal-card[open] .card { animation: flipin .7s cubic-bezier(.2, .9, .3, 1.2); }
.card.common { background-image: url(img/card-frame-common.svg); }
.card.rare { background-image: url(img/card-frame-rare.svg); }
.card.legendary { background-image: url(img/card-frame-legendary.svg); }
.card.legendary::after {
  content: ""; position: absolute; inset: 3%; border-radius: 9%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .6) 45%, transparent 60%);
  background-size: 250% 100%;
  animation: shine 2.6s ease-in-out infinite;
  pointer-events: none;
}
.card-inner {
  position: absolute; left: 15.2%; right: 15.2%; top: 11.1%; bottom: 12.2%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 7% 7% 5%;
  background: linear-gradient(#fffdf8, #f6f1e4);
  border-radius: 4px;
  container-type: inline-size;
}
.card.rare .card-inner { background: linear-gradient(#fbf9ff, #ece6fb); }
.card.legendary .card-inner { background: linear-gradient(#fffbea, #fbedc4); }
.card-rarity {
  font-size: 7cqw; font-weight: 900; letter-spacing: .1em;
  padding: 1px 10px; border-radius: 999px; color: #fff;
  background: var(--common);
}
.card.rare .card-rarity { background: var(--rare); }
.card.legendary .card-rarity { background: var(--legendary); }
.card-icon { width: 46cqw; margin: 6cqw 0 2cqw; }
.card-cat { font-size: 7cqw; font-weight: 700; color: var(--ink-soft); }
.card-name { font-size: 10.5cqw; font-weight: 900; line-height: 1.25; margin: 2cqw 0 3cqw; }
.card-desc { font-size: 7.4cqw; line-height: 1.55; margin: 0; font-weight: 500; }
.card.long .card-name { font-size: 8.6cqw; }
.card.course .card-icon { width: 30cqw; margin: 4cqw 0 1cqw; }
.card.course .card-desc { font-size: 6.8cqw; }
.card-meta {
  width: 100%; margin-top: 3cqw; padding-top: 3cqw;
  border-top: 2px dashed rgba(82, 98, 125, .3);
  display: flex; flex-direction: column; align-items: center; gap: 1cqw;
  font-size: 6.4cqw; line-height: 1.4;
}
.card-meta b { color: var(--coral-deep); margin-right: 2px; }
.card-meta .status {
  font-size: 5.6cqw; font-weight: 900; color: #fff;
  padding: 0 8px; border-radius: 999px; background: #3c9a4c; margin-bottom: 1cqw;
}
.card-meta .status.past { background: #9aa4b5; }
.card-meta .status.now { background: var(--coral); }
.card-host { margin-top: auto; font-size: 5.6cqw; color: var(--ink-soft); word-break: break-all; }
.card-new {
  position: absolute; z-index: 2; top: 2%; right: -2%;
  background: var(--coral); color: #fff; font-weight: 900; font-size: 15px;
  padding: 3px 10px; border-radius: 10px; border: 3px solid var(--line);
  transform: rotate(10deg);
}
.card-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

/* ---------- 測驗 ---------- */
.modal-quiz { width: min(560px, calc(100vw - 24px)); }
.quiz-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.quiz-hero { width: 96px; flex: none; }
.quiz-tag {
  display: inline-block; font-size: 13px; font-weight: 900; color: #fff;
  background: var(--rare); border-radius: 999px; padding: 2px 10px; margin-bottom: 6px;
}
.quiz-q { font-size: 19px; line-height: 1.5; font-weight: 900; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opt {
  min-height: 56px; padding: 8px 12px;
  border: 3px solid var(--line); border-radius: 14px; background: #fff;
  font-weight: 700; font-size: 16px; line-height: 1.35; text-align: center;
  box-shadow: 0 4px 0 var(--line); cursor: pointer;
}
.quiz-opt:hover:not(:disabled) { background: var(--mint); }
.quiz-opt:disabled { cursor: default; opacity: .6; }
.quiz-opt.right { background: #c9f0c6; opacity: 1; }
.quiz-opt.wrong { background: #ffd2c7; opacity: 1; }
.quiz-feedback { min-height: 1.5em; font-weight: 700; margin: 14px 0 8px; text-align: center; }
.modal-quiz .btn-primary { display: flex; margin: 0 auto; }
@media (max-width: 480px) {
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-hero { width: 72px; }
  .quiz-q { font-size: 17px; }
}

/* ---------- 圖鑑 ---------- */
.modal-dex {
  width: min(900px, calc(100vw - 24px));
  max-width: none;
  height: min(720px, calc(100dvh - 24px));
  padding: 18px 18px 12px;
}
.modal-dex[open] { display: flex; flex-direction: column; }
.dex-head { display: flex; align-items: center; justify-content: space-between; }
.dex-head h2 { font-size: 24px; font-weight: 900; color: var(--coral-deep); }
.btn-x {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--line); background: #fff;
  font-size: 26px; line-height: 1; font-weight: 900; cursor: pointer;
}
.dex-progress { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-weight: 900; }
.bar { flex: 1; height: 16px; border: 3px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--coral)); transition: width .4s; }
.dex-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; flex: none; }
.chip {
  flex: none; min-height: 38px; padding: 0 12px;
  border: 2px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.chip small { color: var(--ink-soft); margin-left: 3px; }
.chip[aria-selected="true"] { background: var(--line); color: #fff; }
.chip[aria-selected="true"] small { color: #dfe6f3; }
.dex-grid {
  flex: 1; overflow-y: auto; min-height: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px;
  padding: 4px 2px 8px; align-content: start;
}
.mini {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 10px 6px; min-height: 150px; height: auto;
  border: 3px solid var(--common); border-radius: 14px; background: #fff;
  text-align: center; cursor: pointer;
}
.mini.rare { border-color: var(--rare); background: #faf8ff; }
.mini.legendary { border-color: var(--legendary); background: #fffaea; }
.mini img { width: 54px; }
.mini b { font-size: 14px; line-height: 1.3; }
.mini span { font-size: 12px; color: var(--ink-soft); }
.mini.locked { border-style: dashed; border-color: #b9c2d0; background: #f1f3f6; cursor: default; }
.mini.locked img { filter: grayscale(1) opacity(.35); }
.mini.locked b { color: #9aa4b5; letter-spacing: .2em; }
.dex-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; font-size: 13px; color: var(--ink-soft); font-weight: 700; flex: none; }
.btn-link { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; min-height: 36px; }
@media (max-width: 480px) {
  .dex-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .mini { min-height: 142px; }
  .mini img { width: 44px; }
  .mini b { font-size: 13px; }
}

/* ---------- 特效 ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.spark {
  position: absolute; width: 12px; height: 12px; border-radius: 3px;
  animation: burst 1s ease-out forwards;
}

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes hint { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3) rotate(6deg); } }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg) scale(1.1); } 75% { transform: rotate(10deg) scale(1.1); } }
@keyframes hop { from { transform: translateY(0); } to { transform: translateY(-7%); } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes flipin {
  0% { transform: rotateY(180deg) scale(.4); opacity: 0; }
  60% { transform: rotateY(-12deg) scale(1.05); opacity: 1; }
  100% { transform: rotateY(0) scale(1); }
}
@keyframes shine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }
@keyframes burst {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  to { transform: translate(var(--x), var(--y)) rotate(540deg); opacity: 0; }
}

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