:root {
  --bg-color: #faf8f5;
  --bg-secondary: #f5f0eb;
  --bg-card: #fffdf8;
  --text-primary: #2c2c2e;
  --text-secondary: #6e6e73;
  --text-light: #8e8e93;
  --primary-color: #9b7ed8;
  --primary-light: #b8a0e0;
  --primary-pale: #f0e8ff;
  --gold-color: #f0e6c0;
  --gold-light: #f5efd5;
  --gold-pale: #fdf9ee;
  --accent-pink: #e8b4c8;
  --accent-warm: #fff8ee;
  --shadow-soft: 0 2px 10px rgba(155, 126, 216, 0.15);
  --shadow-card: 0 4px 16px rgba(44, 44, 46, 0.06);
  --shadow-purple: 0 4px 16px rgba(155, 126, 216, 0.14);
  --shadow-gold: 0 4px 12px rgba(240, 230, 192, 0.35);
  --page-width: 520px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-color);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-primary);
  background:
    linear-gradient(180deg, rgba(248, 245, 255, 0.86) 0%, rgba(255, 248, 240, 0.94) 48%, var(--bg-secondary) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

#app {
  min-height: 100vh;
}

.app-frame {
  width: 100%;
  max-width: var(--page-width);
  min-height: 100vh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 18px calc(96px + env(safe-area-inset-bottom));
}

.page {
  min-height: calc(100vh - 96px);
  animation: fadeIn 0.38s ease both;
}

.page.narrow {
  padding: 0 2px;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(240, 230, 192, 0.42);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.btn {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  box-shadow: 0 4px 12px rgba(155, 126, 216, 0.3);
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(155, 126, 216, 0.25);
}

.btn:disabled {
  opacity: 0.58;
  cursor: default;
}

.btn.secondary {
  color: var(--primary-color);
  background: var(--primary-pale);
  border: 1px solid var(--primary-light);
  box-shadow: none;
}

.btn.danger {
  color: #9b4f63;
  background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
  border: 1px solid rgba(232, 180, 200, 0.6);
  box-shadow: none;
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
  margin-bottom: 14px;
}

.logo-mask {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.logo-title {
  margin-top: 10px;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 700;
  color: #3c3c3c;
}

.logo-subtitle {
  margin-top: 5px;
  font-size: 13px;
  color: var(--primary-color);
}

.intro-section,
.shake-section,
.result-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-section {
  min-height: calc(100vh - 118px);
}

.turtle-shell-area {
  position: relative;
  width: 100%;
  min-height: 330px;
  margin-top: -24px;
  margin-bottom: 9px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.turtle-shell-button {
  position: relative;
  z-index: 2;
  width: min(110vw, 430px);
  min-height: 330px;
  margin: 0 -36px;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.turtle-shell-button:active .turtle-shell-img {
  transform: scale(0.96);
}

.turtle-shell-img {
  width: min(110vw, 430px);
  height: min(110vw, 430px);
  object-fit: contain;
  transition: transform 0.2s ease;
}

.turtle-shell-shadow {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: min(76vw, 300px);
  height: 48px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(160, 120, 180, 0.45) 0%, rgba(140, 100, 160, 0.2) 42%, transparent 72%);
  filter: blur(12px);
}

.status-pill {
  width: min(100%, 330px);
  padding: 9px 14px;
  border-radius: 12px;
  text-align: center;
  color: var(--text-light);
  background: rgba(155, 126, 216, 0.08);
}

.status-pill strong {
  display: block;
  margin-bottom: 2px;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 600;
}

.status-pill span {
  display: block;
  font-size: 12px;
}

.intro-actions {
  width: 100%;
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.shake-section {
  padding-top: 10px;
}

.shake-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  margin-bottom: 8px;
  border-radius: 999px;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-pale) 0%, #ffffff 100%);
  border: 1px solid var(--primary-light);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  font-weight: 600;
}

.toss-area {
  position: relative;
  width: 275px;
  height: 225px;
  margin: 6px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toss-bg {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 74, 0.12) 0%, rgba(155, 126, 216, 0.1) 50%, transparent 72%);
}

.shake-turtle {
  position: absolute;
  z-index: 3;
  width: 250px;
  height: 250px;
  object-fit: contain;
  transition: all 0.4s ease-out;
}

.shake-turtle.turtle-corner {
  width: 110px;
  height: 110px;
  left: -25px;
  bottom: -25px;
}

.shake-turtle.turtle-wobble {
  animation: turtleWobble 0.5s ease-in-out;
}

.coins-container {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.coin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  margin-left: -25px;
  margin-top: -25px;
}

.coin-animating {
  animation: coinFly 0.72s ease-out forwards;
}

.coin-landed {
  left: var(--coin-x);
  top: var(--coin-y);
  margin: 0;
  transform: rotate(var(--coin-rotate));
}

.ancient-coin {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

.ancient-coin-sm {
  width: 50px;
  height: 50px;
}

.coin-rim {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #d4a84a 0%, #c49a3c 25%, #b8892e 50%, #d4a84a 75%, #e4c060 100%);
  border: 1.5px solid #a07828;
  box-shadow: 0 2px 6px rgba(180, 140, 60, 0.4), inset 0 1px 2px rgba(255, 220, 140, 0.5), inset 0 -1px 2px rgba(120, 80, 20, 0.3);
}

.coin-back-side .coin-rim {
  background: linear-gradient(145deg, #c49a3c 0%, #b08530 30%, #a07828 60%, #bc9438 100%);
}

.coin-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-square-hole {
  position: relative;
  width: 28%;
  height: 28%;
  border-radius: 2px;
  background: linear-gradient(180deg, #f8f5ff 0%, #fff8f0 100%);
  border: 1px solid #8a6820;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0.5px 1px rgba(255, 220, 140, 0.4);
}

.hole-extend {
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid #8a6820;
  background: transparent;
}

.hole-extend-top {
  top: -3.5px;
  left: -3.5px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 5px 0 0 0;
}

.hole-extend-bottom {
  top: -3.5px;
  right: -3.5px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 5px 0 0;
}

.hole-extend-left {
  bottom: -3.5px;
  left: -3.5px;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 5px;
}

.hole-extend-right {
  right: -3.5px;
  bottom: -3.5px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 5px 0;
}

.coin-char {
  position: absolute;
  color: #6e4e10;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 0.5px 0.5px rgba(255, 220, 140, 0.4);
}

.coin-char-top {
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.coin-char-bottom {
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.coin-char-left {
  left: 12%;
  top: 50%;
  transform: translateY(-50%);
}

.coin-char-right {
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
}

.coin-moon {
  position: absolute;
  top: 14%;
  left: 50%;
  width: 8px;
  height: 4px;
  transform: translateX(-50%);
  border-bottom: 1px solid #7a5820;
  border-radius: 0 0 50% 50%;
}

.progress-section {
  width: 100%;
  margin-top: 10px;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.progress-title {
  color: var(--text-secondary);
  font-size: 14px;
}

.progress-bar {
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--primary-pale);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transition: width 0.3s ease;
}

.yaos-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-pale) 100%);
  box-shadow: 0 4px 16px rgba(155, 126, 216, 0.12);
}

.yaos-display.large {
  gap: 10px;
  padding: 20px 26px;
}

.yao-slot {
  width: 90px;
  height: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.large .yao-slot {
  width: 120px;
  height: 14px;
}

.yao-line {
  position: relative;
  width: 100%;
  height: 100%;
}

.yang-line {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  box-shadow: 0 0 6px rgba(155, 126, 216, 0.4);
}

.large .yang-line {
  height: 9px;
}

.yin-line {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.yin-left,
.yin-right {
  width: 42%;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  box-shadow: 0 0 6px rgba(155, 126, 216, 0.4);
}

.large .yin-left,
.large .yin-right {
  height: 9px;
}

.yao-changing .yang-line,
.yao-changing .yin-left,
.yao-changing .yin-right {
  animation: yaoGlow 1.2s ease-in-out infinite;
}

.yao-empty {
  color: var(--primary-light);
  font-size: 14px;
}

.result-section {
  padding-top: 38px;
}

.hexagram-display {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.hexagram-name {
  margin-top: 15px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #3c3c3c;
}

.hexagram-nature {
  margin-top: 6px;
  color: var(--primary-color);
  font-size: 14px;
}

.result-reveal-tip {
  width: 100%;
  padding: 20px 0;
  text-align: center;
  color: var(--primary-color);
  animation: revealPulse 1.2s ease-in-out infinite;
}

.result-body {
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.result-body.revealed {
  opacity: 1;
  transform: translateY(0);
}

.guaci-card,
.question-section,
.interpretation-card,
.record-detail {
  width: 100%;
  margin-bottom: 15px;
  padding: 14px;
  border-radius: 12px;
}

.guaci-card {
  background: linear-gradient(135deg, var(--accent-warm) 0%, #f8f5ff 100%);
  border-left: 3px solid var(--primary-color);
}

.section-label {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  font-size: 12px;
  font-weight: 600;
}

.guaci-text {
  margin: 10px 0 0;
  color: #5c5c5c;
  font-size: 14px;
  line-height: 1.75;
}

.question-section {
  background: var(--bg-card);
  border: 1px solid rgba(155, 126, 216, 0.16);
}

.question-label {
  margin: 0 0 5px;
  color: var(--text-secondary);
  font-size: 15px;
  text-align: center;
}

.question-hint {
  margin: 0 0 10px;
  color: #b0b0b5;
  font-size: 12px;
  text-align: center;
}

.question-input,
.nickname-input {
  width: 100%;
  min-height: 45px;
  padding: 0 14px;
  color: #333;
  background: #fff;
  border: 1px solid rgba(155, 126, 216, 0.22);
  border-radius: 999px;
  outline: none;
}

.question-input:focus,
.nickname-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(155, 126, 216, 0.1);
}

.detail-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  font-size: 17px;
}

.interpretation-card {
  background: #fff;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(240, 230, 192, 0.45);
}

.interpretation-title {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
}

.interpretation-text p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.78;
  white-space: pre-wrap;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border: 2px solid var(--gold-pale);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.restart-link {
  margin: 4px auto 20px;
  padding: 10px 16px;
  color: var(--text-light);
  background: transparent;
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 0 20px;
}

.page-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.page-subtitle {
  margin-top: 5px;
  color: var(--primary-color);
  font-size: 13px;
}

.records-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-card {
  width: 100%;
  padding: 14px;
  text-align: left;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.record-card:active {
  transform: scale(0.99);
  box-shadow: 0 2px 8px rgba(155, 126, 216, 0.12);
}

.record-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.record-name {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
}

.record-type {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #a65a7a;
  background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
  border: 1px solid rgba(232, 180, 200, 0.7);
  font-size: 12px;
}

.record-question {
  margin: 0 0 8px;
  padding: 8px 10px;
  overflow: hidden;
  color: var(--text-secondary);
  background: linear-gradient(135deg, #f8f5ff 0%, #fff8f0 100%);
  border-radius: 8px;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-preview {
  margin: 0 0 9px;
  padding: 9px 10px;
  color: var(--text-light);
  background: #fcfbff;
  border: 1px solid #efe7fb;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
}

.record-footer {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 12px;
}

.empty {
  min-height: 320px;
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-mark {
  width: 70px;
  height: 70px;
  margin-bottom: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-pale) 0%, #ffffff 100%);
  box-shadow: var(--shadow-purple);
  font-family: "Songti SC", "STSong", serif;
  font-size: 32px;
}

.empty-title {
  margin: 0 0 6px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

.empty-text {
  margin: 0 0 18px;
  color: var(--text-light);
  font-size: 13px;
}

.user-section {
  margin-top: 25px;
  padding: 18px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-pale) 100%);
  box-shadow: var(--shadow-purple);
}

.user-info {
  display: flex;
  align-items: center;
}

.gua-avatar {
  width: 55px;
  height: 55px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b5eaa;
  background: linear-gradient(135deg, var(--primary-pale) 0%, #e8dff5 100%);
  border: 2px solid #c4b0e0;
  box-shadow: 0 2px 8px rgba(155, 126, 216, 0.2);
  font-family: "Songti SC", "STSong", serif;
  font-size: 27px;
  line-height: 1;
}

.user-detail {
  min-width: 0;
  margin-left: 14px;
}

.user-name {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
}

.user-badge {
  margin-top: 4px;
  color: var(--primary-color);
  font-size: 12px;
}

.identity-tip {
  margin-top: 8px;
  color: var(--primary-light);
  text-align: center;
  font-size: 12px;
  font-style: italic;
}

.stats-section,
.menu-section,
.about-section {
  margin-top: 12px;
  padding: 14px;
  background: #fff;
}

.section-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--primary-pale);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.stat-value.highlight {
  color: var(--primary-color);
}

.stat-label {
  margin-top: 6px;
  color: var(--text-light);
  font-size: 12px;
}

.stat-divider {
  width: 1px;
  height: 25px;
  background: linear-gradient(180deg, transparent, var(--primary-light), transparent);
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: inherit;
  background: linear-gradient(135deg, #ffffff 0%, #fffdf8 100%);
  border: 1px solid rgba(240, 230, 192, 0.38);
  border-radius: 10px;
}

.menu-main {
  min-width: 0;
}

.menu-title {
  display: block;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

.menu-desc {
  display: block;
  margin-top: 2px;
  color: var(--text-light);
  font-size: 12px;
}

.about-section p {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.75;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  width: min(100%, var(--page-width));
  min-height: 74px;
  padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  transform: translateX(-50%);
  background: rgba(255, 253, 248, 0.94);
  border-top: 1px solid rgba(240, 230, 192, 0.56);
  box-shadow: 0 -4px 18px rgba(44, 44, 46, 0.06);
  backdrop-filter: blur(16px);
}

.tabbar-btn {
  min-width: 0;
  min-height: 58px;
  padding: 5px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-light);
  background: transparent;
  font-size: 12px;
}

.tabbar-btn.active {
  color: var(--primary-color);
  font-weight: 600;
}

.tabbar-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

@keyframes turtleWobble {
  0% {
    transform: rotate(0deg) scale(1);
  }
  15% {
    transform: rotate(-15deg) scale(1.08);
  }
  30% {
    transform: rotate(12deg) scale(1.04);
  }
  45% {
    transform: rotate(-10deg) scale(1.06);
  }
  60% {
    transform: rotate(8deg) scale(1.02);
  }
  75% {
    transform: rotate(-4deg) scale(1);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes coinFly {
  0% {
    left: 50%;
    top: 50%;
    transform: scale(0.3) rotate(0deg);
    opacity: 0;
  }
  30% {
    opacity: 1;
    transform: scale(1.15) rotate(360deg);
  }
  70% {
    transform: scale(0.95) rotate(540deg);
  }
  100% {
    left: var(--coin-x);
    top: var(--coin-y);
    margin: 0;
    transform: scale(1) rotate(var(--coin-rotate));
    opacity: 1;
  }
}

@keyframes yaoGlow {
  0%, 100% {
    box-shadow: 0 0 6px rgba(155, 126, 216, 0.4);
  }
  50% {
    box-shadow: 0 0 12px rgba(155, 126, 216, 0.7);
  }
}

@keyframes revealPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 760px) {
  body {
    background:
      linear-gradient(90deg, rgba(240, 232, 255, 0.5), rgba(255, 248, 238, 0.58)),
      linear-gradient(180deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
  }

  .app-frame {
    box-shadow: 0 0 0 1px rgba(240, 230, 192, 0.24);
    background: linear-gradient(180deg, rgba(250, 248, 245, 0.78), rgba(245, 240, 235, 0.78));
  }
}

@media (max-width: 360px) {
  .app-frame {
    padding-left: 14px;
    padding-right: 14px;
  }

  .turtle-shell-area {
    min-height: 300px;
  }

  .toss-area {
    width: 260px;
  }
}
