:root {
  --ink: #30405d;
  --muted: #7081a4;
  --paper: rgba(255, 255, 255, 0.82);
  --paper-strong: #fffaf1;
  --sun: #ffd56c;
  --sun-deep: #ffae4f;
  --mint: #8ce3cc;
  --aqua: #74d3ff;
  --rose: #ff96bd;
  --violet: #a88bff;
  --cream: #fff7d7;
  --brown: #7a4b21;
  --shadow: 0 22px 50px rgba(70, 92, 139, 0.22);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.95), transparent 22rem),
    linear-gradient(145deg, #bdefff 0%, #d9e7ff 42%, #fff0c3 100%);
}

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

.app-shell {
  display: grid;
  min-height: 100vh;
  padding: 18px;
  place-items: center;
}

.phone-frame {
  position: relative;
  display: flex;
  width: min(100%, 430px);
  min-height: min(820px, calc(100vh - 36px));
  overflow: hidden;
  isolation: isolate;
  flex-direction: column;
  padding: 16px 16px 14px;
  border: 9px solid rgba(255, 255, 255, 0.62);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.72), transparent 12rem),
    linear-gradient(180deg, rgba(125, 217, 255, 0.82) 0%, rgba(211, 245, 255, 0.96) 42%, rgba(255, 236, 175, 0.9) 100%),
    linear-gradient(135deg, #c6f4ff, #fff4c9);
  box-shadow: var(--shadow);
}

.phone-frame::before {
  position: absolute;
  inset: auto -18% -14% -18%;
  z-index: -1;
  height: 38%;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.7), transparent 8rem),
    linear-gradient(160deg, #b6edbc, #72d7a6);
  content: "";
}

.sky-orb {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  filter: blur(1px);
}

.sky-orb-a {
  top: 96px;
  left: -22px;
  width: 92px;
  height: 36px;
}

.sky-orb-b {
  top: 176px;
  right: -28px;
  width: 128px;
  height: 46px;
}

.sky-orb-c {
  bottom: 190px;
  left: 24px;
  width: 78px;
  height: 30px;
}

.sun-badge {
  position: absolute;
  top: 74px;
  right: 76px;
  z-index: -1;
  display: grid;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffae45;
  background: radial-gradient(circle, #fff3a6 0 45%, #ffd166 46% 100%);
  box-shadow: 0 8px 24px rgba(255, 178, 79, 0.28);
  font-size: 30px;
  place-items: center;
}

.top-bar {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: 52px 1fr 46px;
}

.top-bar::before {
  position: absolute;
  top: 13px;
  right: 14px;
  left: 14px;
  z-index: -1;
  height: 58px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42);
  content: "";
}

.avatar-button,
.icon-button,
.resource-pill,
.bubble-button,
.mode-card,
.play-button {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.avatar-button:active,
.icon-button:active,
.resource-pill:active,
.bubble-button:active,
.mode-card:active,
.play-button:active {
  transform: translateY(2px) scale(0.98);
}

.avatar-button {
  display: grid;
  width: 52px;
  height: 52px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 19px;
  background: linear-gradient(145deg, #fff, #fff3cf);
  box-shadow: 0 7px 0 #d8bd75, 0 13px 18px rgba(92, 131, 172, 0.18);
  place-items: center;
}

.avatar-face {
  font-size: 25px;
}

.resource-group {
  display: flex;
  min-width: 0;
  gap: 8px;
}

.resource-pill {
  display: flex;
  min-width: 0;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 6px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--brown);
  background: linear-gradient(180deg, #fffef8, #fff1bf);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9), 0 6px 0 #d8bd75, 0 11px 16px rgba(92, 131, 172, 0.12);
  font-weight: 900;
}

.resource-icon {
  display: grid;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ff7da8, #ff4f7d);
  font-size: 15px;
  place-items: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.coin-pill .resource-icon {
  color: #84501c;
  background: linear-gradient(145deg, #fff2a1, #ffc85c);
}

.resource-plus {
  display: grid;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fff;
  background: var(--mint);
  font-weight: 1000;
  place-items: center;
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 17px;
  color: var(--brown);
  background: linear-gradient(180deg, #fffef8, #fff1bf);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82), 0 6px 0 #d8bd75, 0 11px 16px rgba(92, 131, 172, 0.12);
  font-size: 23px;
  place-items: center;
}

.quick-actions {
  position: absolute;
  top: 94px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-left {
  left: 14px;
}

.quick-right {
  right: 14px;
}

.bubble-button {
  display: grid;
  width: 58px;
  min-height: 64px;
  padding: 8px 6px;
  border: 3px solid rgba(255, 255, 255, 0.74);
  border-radius: 23px;
  color: #6a471f;
  background: linear-gradient(180deg, #fffdf5, #ffedb1);
  box-shadow: 0 6px 0 #d8bd75, 0 12px 20px rgba(92, 131, 172, 0.14);
  font-size: 12px;
  font-weight: 900;
  place-items: center;
}

.bubble-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 2px;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff4bd, #ffe078);
  font-size: 19px;
  place-items: center;
}

.quick-right .bubble-icon {
  background: linear-gradient(145deg, #dffbff, #8de7ff);
}

.hero-panel {
  display: flex;
  align-items: center;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 34px 54px 14px;
  text-align: center;
}

.daily-banner {
  display: inline-grid;
  min-width: 162px;
  margin-bottom: 12px;
  padding: 8px 14px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  color: #725124;
  background: linear-gradient(180deg, #fffef7, #ffe79a);
  box-shadow: 0 6px 0 #d4ad54, 0 12px 18px rgba(202, 139, 50, 0.14);
  transform: rotate(-1.6deg);
}

.daily-banner span {
  font-size: 11px;
  font-weight: 1000;
}

.daily-banner strong {
  font-size: 15px;
  font-weight: 1000;
}

.title-stack {
  animation: floatTitle 3.8s ease-in-out infinite;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #6c59bc;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 900;
}

h1 {
  margin: 0;
  color: #5a7a45;
  font-size: clamp(42px, 12vw, 60px);
  font-weight: 1000;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow:
    0 4px 0 #fff,
    0 7px 0 rgba(95, 126, 62, 0.16),
    0 14px 24px rgba(52, 95, 148, 0.16);
}

.subtitle {
  max-width: 230px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.mascot-card {
  position: relative;
  width: 188px;
  height: 184px;
  margin: 22px 0 12px;
}

.mascot-shadow {
  position: absolute;
  right: 22px;
  bottom: 12px;
  left: 22px;
  height: 28px;
  border-radius: 50%;
  background: rgba(69, 113, 90, 0.16);
  filter: blur(3px);
}

.mascot {
  position: absolute;
  inset: 0;
  animation: bobMascot 2.7s ease-in-out infinite;
}

.mascot-head {
  position: absolute;
  top: 16px;
  left: 27px;
  width: 134px;
  height: 106px;
  border: 4px solid #fff;
  border-radius: 44% 44% 50% 50%;
  background:
    radial-gradient(circle at 32% 34%, rgba(255, 255, 255, 0.96), transparent 16px),
    linear-gradient(145deg, #f9ffff, #d9f8ff);
  box-shadow: 0 18px 25px rgba(92, 131, 172, 0.18);
}

.mascot-head::before {
  position: absolute;
  top: -18px;
  left: 21px;
  width: 88px;
  height: 38px;
  border: 4px solid #fff;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 62%, #fff 0 13px, transparent 14px),
    radial-gradient(circle at 42% 40%, #fff 0 16px, transparent 17px),
    radial-gradient(circle at 66% 62%, #fff 0 13px, transparent 14px),
    linear-gradient(145deg, #fff, #e4fbff);
  content: "";
}

.mascot-ear {
  position: absolute;
  top: 34px;
  width: 38px;
  height: 54px;
  border: 4px solid #fff;
  border-radius: 60% 60% 45% 45%;
  background: linear-gradient(145deg, #fff7de, #ffd993);
}

.mascot-ear.left {
  left: 12px;
  transform: rotate(-18deg);
}

.mascot-ear.right {
  right: 12px;
  transform: rotate(18deg);
}

.mascot-eye {
  position: absolute;
  top: 42px;
  width: 12px;
  height: 15px;
  border-radius: 50%;
  background: #37476b;
}

.eye-left {
  left: 40px;
}

.eye-right {
  right: 40px;
}

.mascot-cheek {
  position: absolute;
  top: 62px;
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 139, 173, 0.46);
}

.cheek-left {
  left: 25px;
}

.cheek-right {
  right: 25px;
}

.mascot-mouth {
  position: absolute;
  top: 62px;
  left: 60px;
  width: 15px;
  height: 9px;
  border-bottom: 3px solid #37476b;
  border-radius: 0 0 999px 999px;
}

.mascot-body {
  position: absolute;
  right: 36px;
  bottom: 22px;
  left: 36px;
  height: 72px;
  border: 4px solid #fff;
  border-radius: 34px 34px 38px 38px;
  background: linear-gradient(145deg, #aeeecf, #73d7b2);
  box-shadow: 0 17px 24px rgba(72, 140, 119, 0.22);
}

.mascot-body span {
  position: absolute;
  top: 19px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
}

.mascot-body span:nth-child(1) {
  left: 23px;
}

.mascot-body span:nth-child(2) {
  left: 51px;
  top: 34px;
}

.mascot-body span:nth-child(3) {
  right: 21px;
}

.play-button {
  display: flex;
  width: min(100%, 254px);
  height: 68px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #73451a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), transparent 46%),
    linear-gradient(145deg, var(--sun), var(--sun-deep));
  box-shadow:
    0 11px 0 #e68e35,
    0 24px 30px rgba(213, 129, 44, 0.24);
  font-size: 24px;
  font-weight: 1000;
}

.play-spark,
.play-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.46);
  place-items: center;
}

.play-arrow {
  font-size: 34px;
  line-height: 1;
}

.level-card {
  display: grid;
  width: min(100%, 260px);
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 213, 0.86));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7), 0 5px 0 rgba(214, 188, 117, 0.72);
  text-align: left;
}

.level-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.level-card strong {
  font-size: 15px;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(105, 126, 160, 0.14);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #83e6c5, #ffd66b);
  transition: width 280ms ease;
}

.mode-dock {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(4, 1fr);
}

.home-task-strip {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 11px;
}

.task-chip {
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  color: #6a471f;
  background: linear-gradient(180deg, #fffdf6, #ffefb7);
  box-shadow: 0 5px 0 #d8bd75, 0 10px 16px rgba(92, 131, 172, 0.1);
  font-size: 12px;
  font-weight: 1000;
}

.mode-card {
  display: grid;
  min-height: 92px;
  padding: 9px 5px 8px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf7, #e8f8ff);
  box-shadow: 0 7px 0 #bddbe7, 0 12px 18px rgba(92, 131, 172, 0.12);
  place-items: center;
}

.mode-card.active {
  background: linear-gradient(180deg, #fff8c9, #fff);
  box-shadow: 0 7px 0 #e2b75b, 0 12px 18px rgba(92, 131, 172, 0.12);
}

.mode-icon {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 15px;
  background: linear-gradient(145deg, #e9faff, #b9f0ff);
  font-size: 20px;
  place-items: center;
}

.mode-card.active .mode-icon {
  background: linear-gradient(145deg, #ffe27f, #ffc55c);
}

.mode-card strong {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 1000;
}

.mode-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.safe-note {
  display: flex;
  justify-content: space-between;
  padding: 11px 8px 0;
  color: rgba(48, 64, 93, 0.54);
  font-size: 11px;
  font-weight: 800;
}

.phone-frame.is-hidden {
  display: none;
}

.game-window {
  gap: 11px;
  padding-bottom: 16px;
}

.game-top-bar {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: 46px 1fr 46px;
}

.game-level-pill {
  display: grid;
  height: 48px;
  align-content: center;
  justify-items: center;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  color: #65451d;
  background: linear-gradient(180deg, #fffdf6, #ffeaa3);
  box-shadow: 0 6px 0 #d8bd75, 0 10px 18px rgba(92, 131, 172, 0.14);
  font-weight: 1000;
}

.game-level-pill small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.game-hud-panel {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.2fr 1fr;
}

.target-card,
.star-card {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 23px;
  color: #60431f;
  background: linear-gradient(180deg, #fffdf6, #fff0b8);
  box-shadow: 0 6px 0 #d8bd75, 0 11px 18px rgba(92, 131, 172, 0.12);
}

.target-icon {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 15px;
  background: #fff;
  box-shadow: inset 0 -4px 0 rgba(115, 160, 119, 0.1);
  font-size: 24px;
  place-items: center;
}

.target-card strong,
.star-card strong {
  font-size: 22px;
  line-height: 1;
}

.star-card {
  display: grid;
  align-content: center;
  justify-items: center;
}

.star-strip {
  display: flex;
  gap: 2px;
  color: #ffc247;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.star-strip .lost {
  color: rgba(120, 137, 164, 0.28);
  text-shadow: none;
}

.tool-row {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, 1fr);
}

.tool-button {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  color: #5f4b28;
  background: linear-gradient(180deg, #ffffff, #e9f8ff);
  box-shadow: 0 5px 0 #bbdceb, 0 10px 16px rgba(92, 131, 172, 0.1);
  font-size: 12px;
  font-weight: 1000;
}

.tool-button span {
  display: grid;
  width: 24px;
  height: 24px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #74d3ff, #49aee5);
  place-items: center;
}

.game-board-wrap {
  --board-size: min(336px, calc(100vw - 82px));
  display: grid;
  justify-content: center;
  gap: 7px;
  margin-top: 0;
  padding: 10px 9px 14px;
  border: 5px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background:
    radial-gradient(circle at 26% 16%, rgba(255, 255, 255, 0.64), transparent 4.4rem),
    linear-gradient(180deg, rgba(255, 251, 232, 0.93), rgba(211, 242, 255, 0.9));
  box-shadow: 0 8px 0 rgba(170, 197, 171, 0.58), 0 17px 26px rgba(92, 131, 172, 0.16);
}

.board-title-card {
  display: grid;
  min-height: 32px;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  color: #6d532c;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 1000;
  text-align: center;
}

.column-hints {
  display: grid;
  width: var(--board-size);
  margin-left: 38px;
  gap: 5px;
  grid-template-columns: repeat(var(--grid-size), 1fr);
}

.column-hints span,
.row-hints span {
  display: grid;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 11px;
  color: #5d4a2a;
  background: linear-gradient(180deg, #ffffff, #fff0b9);
  box-shadow: 0 3px 0 #d8bd75;
  font-size: 13px;
  font-weight: 1000;
  place-items: center;
}

.column-hints span {
  height: 30px;
}

.board-row {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.row-hints {
  display: grid;
  width: 30px;
  height: var(--board-size);
  gap: 5px;
  grid-template-rows: repeat(var(--grid-size), 1fr);
}

.game-grid {
  display: grid;
  width: var(--board-size);
  height: var(--board-size);
  gap: 5px;
  grid-template-columns: repeat(var(--grid-size), 1fr);
  grid-template-rows: repeat(var(--grid-size), 1fr);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.game-grid.is-dragging .tile-empty,
.game-grid.is-dragging .tile-marked-empty {
  filter: brightness(1.03) saturate(1.06);
}

.tile {
  --tile-bg: #fff9ce;
  position: relative;
  display: grid;
  overflow: hidden;
  min-width: 0;
  touch-action: none;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.75), transparent 1.4rem),
    var(--tile-bg);
  box-shadow:
    inset 0 -6px 0 rgba(91, 106, 139, 0.09),
    0 5px 0 rgba(98, 126, 136, 0.16),
    0 9px 14px rgba(92, 131, 172, 0.12);
  font-weight: 1000;
  place-items: center;
}

.tile:active {
  transform: translateY(2px);
}

.tile::after {
  position: absolute;
  right: 9px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  content: "";
}

.tile-empty {
  color: rgba(70, 90, 126, 0.24);
}

.tile-empty-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(70, 90, 126, 0.18);
}

.tile-x {
  color: #48699c;
  font-size: clamp(22px, 8vw, 34px);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9);
}

.tile-sheep {
  display: grid;
  width: 72%;
  height: 72%;
  border-radius: 40% 40% 48% 48%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.96), transparent 18px),
    linear-gradient(145deg, #fffefa, #e3fbff);
  box-shadow:
    inset 0 -5px 0 rgba(102, 182, 162, 0.12),
    0 8px 18px rgba(94, 162, 132, 0.22);
  font-size: clamp(24px, 8vw, 36px);
  place-items: center;
}

.tile-wrong {
  color: #fff;
  font-size: clamp(24px, 8vw, 38px);
  text-shadow: 0 2px 0 rgba(154, 27, 61, 0.5);
}

.tile-marked-empty {
  filter: saturate(0.92);
}

.tile-found-sheep {
  border-color: rgba(255, 255, 255, 0.95);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.88), transparent 1.4rem),
    linear-gradient(145deg, #d7fff2, #8deac9);
  box-shadow:
    inset 0 -6px 0 rgba(62, 137, 112, 0.14),
    0 5px 0 rgba(73, 147, 113, 0.2),
    0 12px 20px rgba(64, 170, 126, 0.22);
}

.tile-wrong-sheep {
  border-color: rgba(255, 255, 255, 0.95);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.24), transparent 1.4rem),
    linear-gradient(145deg, #ff8faa, #ff4e78);
  box-shadow:
    inset 0 -6px 0 rgba(134, 24, 54, 0.2),
    0 5px 0 rgba(151, 36, 67, 0.28),
    0 12px 20px rgba(218, 70, 110, 0.25);
}

.tile-coordinate {
  position: absolute;
  top: 4px;
  left: 6px;
  display: none;
  color: rgba(71, 83, 111, 0.54);
  font-size: 9px;
  font-weight: 1000;
}

.coordinate-visible .tile-coordinate {
  display: block;
}

.region-1 {
  --tile-bg: linear-gradient(145deg, #fff5be, #ffe4a1);
}

.region-2 {
  --tile-bg: linear-gradient(145deg, #d8f7ff, #a7eaff);
}

.region-3 {
  --tile-bg: linear-gradient(145deg, #e4ffdc, #b6efb8);
}

.region-4 {
  --tile-bg: linear-gradient(145deg, #ffe2ed, #ffc0d4);
}

.region-5 {
  --tile-bg: linear-gradient(145deg, #efe5ff, #d2c1ff);
}

.region-6 {
  --tile-bg: linear-gradient(145deg, #e6fff7, #b8f1dd);
}

.region-7 {
  --tile-bg: linear-gradient(145deg, #fff0d5, #ffd1a4);
}

.region-8 {
  --tile-bg: linear-gradient(145deg, #e5edff, #c6d8ff);
}

.game-footer {
  display: block;
  margin-top: auto;
}

.game-tip {
  padding: 8px 12px;
  border-radius: 16px;
  color: rgba(79, 63, 35, 0.76);
  background: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.is-shaking {
  animation: shake 320ms ease both;
}

.toast-root {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 20;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(48, 64, 93, 0.88);
  box-shadow: 0 14px 30px rgba(48, 64, 93, 0.24);
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast-root.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.modal-root[hidden] {
  display: none;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  padding: 18px;
  background: rgba(31, 47, 76, 0.34);
  backdrop-filter: blur(8px);
  place-items: center;
}

.modal-card {
  position: relative;
  width: min(360px, 100%);
  padding: 26px 22px 22px;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background: linear-gradient(180deg, #fff, #fff4d8);
  box-shadow: var(--shadow);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #ff8fad, #ff638e);
  font-size: 24px;
  font-weight: 900;
  place-items: center;
}

.modal-eyebrow {
  margin: 0 0 5px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 1000;
}

.modal-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.modal-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.modal-primary,
.modal-secondary,
.modal-extra {
  min-width: 138px;
  height: 46px;
  border-radius: 999px;
  font-weight: 1000;
}

.modal-primary {
  color: #704115;
  background: linear-gradient(145deg, var(--sun), var(--sun-deep));
  box-shadow: 0 7px 0 #e68e35;
}

.modal-secondary {
  min-width: 104px;
  color: #53637d;
  background: linear-gradient(145deg, #fff, #eaf8ff);
  box-shadow: 0 7px 0 #cddcea;
}

.modal-extra {
  color: #ffffff;
  background: linear-gradient(145deg, #2eb4ff, #148ded);
  box-shadow: 0 7px 0 #0870c2;
}

.modal-extra[disabled] {
  color: rgba(255, 255, 255, 0.74);
  background: linear-gradient(145deg, #aeb8cc, #8d99ad);
  box-shadow: 0 7px 0 #737f92;
}

.modal-mask.modal-win {
  overflow: hidden;
  background: rgba(20, 20, 22, 0.86);
  backdrop-filter: blur(1px);
}

.modal-card.modal-win {
  width: min(390px, 100%);
  padding: 22px 20px 26px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  isolation: isolate;
}

.modal-win .modal-close {
  display: none;
}

.modal-confetti {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.modal-confetti i {
  position: absolute;
  top: var(--oy);
  left: var(--ox);
  width: var(--w);
  height: var(--h);
  border-radius: 3px;
  opacity: 0;
  background: var(--c);
  transform: translate(0, 0) rotate(0deg);
  animation: modalConfettiFall 1700ms cubic-bezier(0.16, 0.86, 0.36, 1) var(--d) infinite both;
}

.modal-win-tools {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin: 0 8px 42px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 46px;
  font-weight: 900;
}

.modal-win-tools span:nth-child(2) {
  margin-right: 92px;
}

.modal-win-title {
  position: relative;
  z-index: 1;
  margin: 0 auto 72px;
  color: #ffffff;
  font-size: clamp(34px, 9vw, 47px);
  font-weight: 1000;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.modal-win-mascot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 170px;
  height: 188px;
  margin: 0 auto 24px;
  place-items: end center;
  animation: winMascotPop 680ms cubic-bezier(0.2, 1.18, 0.36, 1) both;
}

.modal-win-crown {
  position: absolute;
  top: -34px;
  display: grid;
  width: 116px;
  height: 72px;
  border: 8px solid #ffffff;
  border-radius: 22px 22px 18px 18px;
  color: #ffd631;
  background: linear-gradient(180deg, #ffe666, #ffc400);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.14);
  font-size: 0;
  place-items: center;
}

.modal-win-crown::before {
  color: #ffd631;
  content: "♛";
  font-size: 88px;
  line-height: 0.9;
  text-shadow: 0 5px 0 rgba(208, 143, 0, 0.18);
  transform: translateY(-7px);
}

.modal-win-sheep {
  display: grid;
  width: 154px;
  height: 154px;
  border: 7px solid #ffffff;
  border-radius: 48% 48% 52% 52%;
  background: #ffffff;
  box-shadow:
    inset 0 -10px 0 rgba(0, 0, 0, 0.05),
    0 16px 20px rgba(0, 0, 0, 0.28);
  font-size: 100px;
  place-items: center;
}

.modal-win-rewards {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 42px;
  margin: 6px 0 24px;
}

.reward-coin {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  font-size: 31px;
  font-weight: 1000;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}

.reward-coin .coin-icon {
  width: 54px;
  height: 54px;
}

.modal-actions.modal-win {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 0;
}

.modal-actions.modal-win .modal-secondary,
.modal-actions.modal-win .modal-extra {
  min-width: 0;
  width: 100%;
  height: 60px;
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 7px 0 #0870c2;
}

.modal-actions.modal-win .modal-primary {
  grid-column: 1 / -1;
  justify-self: center;
  width: 190px;
  height: 64px;
  margin-top: 18px;
  color: #ffffff;
  background: linear-gradient(180deg, #ffc83d, #ffae00);
  box-shadow: 0 7px 0 #d98d00;
  font-size: 27px;
}

@keyframes bobMascot {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatTitle {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px) rotate(-1deg);
  }

  40% {
    transform: translateX(5px) rotate(1deg);
  }

  60% {
    transform: translateX(-4px) rotate(-1deg);
  }

  80% {
    transform: translateX(3px) rotate(1deg);
  }
}

@keyframes modalConfettiFall {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.4);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1);
  }
}

@keyframes winMascotPop {
  0% {
    opacity: 0;
    transform: translateY(44px) scale(0.62);
  }

  62% {
    opacity: 1;
    transform: translateY(-8px) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tileMarkPulse {
  0% {
    transform: scale(0.96);
  }

  58% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes tileXPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(-10deg);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.14) rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes sheepFoundPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) translateY(5px);
  }

  42% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.62) translateY(-7px);
  }

  74% {
    transform: translate(-50%, -50%) scale(0.88) translateY(2px);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translateY(0);
  }
}

@keyframes sheepRibbonBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.15) rotate(0deg);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r));
  }
}

/* 简洁学习版风格：白底、纯色块、极简工具位 */
.simple-game-window {
  width: min(100%, 430px);
  min-height: min(820px, calc(100vh - 36px));
  padding: 42px 14px 18px;
  overflow: hidden;
  color: #6d6d72;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.simple-game-window::before,
.simple-game-window .sky-orb {
  display: none;
}

.simple-game-header {
  position: relative;
  display: grid;
  min-height: 64px;
  align-items: center;
  justify-items: center;
}

.simple-game-header h2 {
  margin: 0;
  color: #85858a;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.game-subtitle-label {
  display: none;
  align-items: center;
  gap: 10px;
  color: #3f3f45;
  font-size: 16px;
  font-weight: 900;
}

.game-subtitle-label::before,
.game-subtitle-label::after {
  display: block;
  width: 44px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #d8d8dd);
  content: "";
}

.game-subtitle-label::after {
  background: linear-gradient(90deg, #d8d8dd, transparent);
}

.simple-game-window.daily-mode .simple-game-header {
  min-height: 82px;
  align-content: center;
  gap: 2px;
}

.simple-game-window.daily-mode .simple-game-header h2 {
  color: #151519;
  font-size: clamp(23px, 6vw, 30px);
  font-weight: 1000;
  letter-spacing: 0.01em;
}

.simple-game-window.daily-mode .game-subtitle-label {
  display: flex;
}

.grid-size-label {
  display: none;
}

.simple-gear-button {
  position: absolute;
  left: 20px;
  top: 4px;
  display: grid;
  width: 48px;
  height: 48px;
  color: #9a9a9e;
  background: transparent;
  font-size: 46px;
  line-height: 1;
  place-items: center;
}

.simple-resource-row {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1.45fr 1fr;
  margin: 2px 26px 14px;
}

.coin-counter,
.heart-counter {
  display: flex;
  height: 42px;
  align-items: center;
  border-radius: 14px;
  background: #e8ebf5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.coin-counter {
  justify-content: flex-start;
  gap: 16px;
  padding: 0 22px 0 4px;
  color: #6f7380;
  font-size: 24px;
  font-weight: 800;
}

.coin-icon {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #e0a400;
  background: #ffc400;
  box-shadow: inset -5px 0 0 rgba(232, 166, 0, 0.42);
  font-size: 0;
  place-items: center;
}

.coin-icon::before {
  width: 5px;
  height: 20px;
  border-radius: 999px;
  background: rgba(198, 142, 0, 0.5);
  content: "";
}

.heart-counter {
  grid-column: 2;
  justify-content: center;
  padding: 0 22px;
}

.heart-strip {
  display: flex;
  gap: 7px;
  color: #ff3339;
  font-size: 38px;
  line-height: 1;
}

.heart-strip .lost {
  color: #d8dbe6;
}

.rule-capsule {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr;
  min-height: 78px;
  margin: 0 0 8px;
  overflow: hidden;
  border-radius: 36px;
  background: #ffffff;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(210, 210, 214, 0.5);
}

.rule-capsule > div {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 0 10px;
  color: #606066;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.rule-capsule > div + div {
  border-left: 2px solid #e7e7ea;
}

.status-pill-row {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 14px;
}

.remaining-pill,
.daily-time-pill {
  display: flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 17px 8px 10px;
  border-radius: 18px;
  color: #6c79a3;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  font-size: 14px;
  font-weight: 800;
}

.daily-time-pill[hidden] {
  display: none;
}

.remaining-pill strong,
.daily-time-pill strong {
  color: #ff2f46;
  font-size: 20px;
}

.mini-sheep,
.timer-icon {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2f3f7;
  font-size: 20px;
  place-items: center;
}

.timer-icon {
  background: #fff4d3;
  font-size: 22px;
}

.simple-game-window .game-board-wrap {
  --board-size: min(372px, calc(100vw - 58px));
  display: grid;
  width: calc(var(--board-size) + var(--board-extra, 20px));
  justify-content: center;
  gap: 0;
  margin: 0 auto;
  padding: var(--board-padding, 10px);
  border: 0;
  border-radius: 7px;
  background: #f3f3f3;
  box-shadow: none;
}

.simple-game-window .column-hints,
.simple-game-window .row-hints {
  display: none;
}

.simple-game-window .game-grid {
  display: grid;
  width: var(--board-size);
  height: var(--board-size);
  gap: var(--tile-gap, 10px);
  grid-template-columns: repeat(var(--grid-size), minmax(0, 1fr));
  grid-template-rows: repeat(var(--grid-size), minmax(0, 1fr));
  touch-action: none;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
}

.simple-game-window .tile {
  --tile-bg: #9edc8d;
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  border: 0;
  border-radius: var(--tile-radius, 8px);
  background: var(--tile-bg);
  box-shadow: none;
  font-weight: 900;
  place-items: center;
}

.simple-game-window .tile::after,
.simple-game-window .tile-empty-dot {
  display: none;
}

.simple-game-window .tile:active {
  transform: none;
}

.simple-game-window .region-1,
.simple-game-window .region-6 {
  --tile-bg: #a4dc91;
}

.simple-game-window .region-2,
.simple-game-window .region-8 {
  --tile-bg: #9271d0;
}

.simple-game-window .region-3,
.simple-game-window .region-5,
.simple-game-window .region-7 {
  --tile-bg: #e999bb;
}

.simple-game-window .region-4 {
  --tile-bg: #a9c5dc;
}

.simple-game-window .region-9 {
  --tile-bg: #f0c879;
}

.simple-game-window .region-10 {
  --tile-bg: #8fd2c8;
}

.simple-game-window .region-11 {
  --tile-bg: #d6a8e4;
}

.simple-game-window .region-12 {
  --tile-bg: #b8d78b;
}

.simple-game-window.colorblind-enabled .region-1,
.simple-game-window.colorblind-enabled .region-6 {
  --tile-bg: #9bd7d0;
}

.simple-game-window.colorblind-enabled .region-2,
.simple-game-window.colorblind-enabled .region-8 {
  --tile-bg: #f1c05c;
}

.simple-game-window.colorblind-enabled .region-3,
.simple-game-window.colorblind-enabled .region-5,
.simple-game-window.colorblind-enabled .region-7 {
  --tile-bg: #b4abd8;
}

.simple-game-window.colorblind-enabled .region-4 {
  --tile-bg: #7fb6df;
}

.simple-game-window.colorblind-enabled .region-9 {
  --tile-bg: #e6d16e;
}

.simple-game-window.colorblind-enabled .region-10 {
  --tile-bg: #7fc8ee;
}

.simple-game-window.colorblind-enabled .region-11 {
  --tile-bg: #c0c0c0;
}

.simple-game-window.colorblind-enabled .region-12 {
  --tile-bg: #df9f73;
}

.simple-game-window .tile-x {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: max(var(--mark-min-size, 18px), var(--mark-size, 70%));
  height: max(var(--mark-min-size, 18px), var(--mark-size, 70%));
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: tileXPop 240ms cubic-bezier(0.2, 1.2, 0.3, 1) both;
}

.simple-game-window .tile-x::before,
.simple-game-window .tile-x::after,
.simple-game-window .tile-wrong::before,
.simple-game-window .tile-wrong::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 86%;
  height: var(--mark-stroke, 19%);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 3px 7px rgba(74, 82, 96, 0.1);
  content: "";
  transform-origin: center;
}

.simple-game-window .tile-x::before,
.simple-game-window .tile-wrong::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.simple-game-window .tile-x::after,
.simple-game-window .tile-wrong::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.simple-game-window .tile-wrong {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: max(var(--mark-min-size, 18px), var(--mark-size, 72%));
  height: max(var(--mark-min-size, 18px), var(--mark-size, 72%));
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: tileXPop 240ms cubic-bezier(0.2, 1.2, 0.3, 1) both;
}

.simple-game-window .tile-wrong::before,
.simple-game-window .tile-wrong::after {
  background: #ff3048;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.86),
    0 4px 8px rgba(126, 20, 36, 0.22);
}

.simple-game-window .tile-marked-empty {
  animation: tileMarkPulse 180ms ease-out both;
  filter: none;
}

.simple-game-window .tile-found-sheep {
  z-index: 2;
  overflow: visible;
  background: var(--tile-bg);
  box-shadow: none;
}

.simple-game-window .tile-wrong-sheep {
  background: var(--tile-bg);
  box-shadow: none;
}

.simple-game-window .tile-sheep {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: var(--sheep-box-size, 74%);
  height: var(--sheep-box-size, 74%);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  font-size: var(--sheep-font-size, clamp(34px, 10vw, 58px));
  line-height: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  animation: sheepFoundPop 900ms cubic-bezier(0.19, 1.18, 0.32, 1) both;
  transform-origin: center;
}

.tile-sheep-ribbons {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

.tile-sheep-ribbons i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 5px;
  border-radius: 999px;
  opacity: 0;
  background: var(--c);
  animation: sheepRibbonBurst 780ms cubic-bezier(0.12, 0.86, 0.3, 1) var(--d) both;
}

.simple-game-window .tile-coordinate {
  top: 5px;
  left: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
}

.colorblind-tool {
  position: absolute;
  right: 15px;
  bottom: 154px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #3f3f43;
  font-size: 17px;
  font-weight: 800;
  text-shadow:
    0 1px 0 #fff,
    0 2px 3px rgba(0, 0, 0, 0.25);
}

.floating-icon-button {
  display: grid;
  width: 48px;
  height: 44px;
  border-radius: 11px;
  color: #111;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  font-size: 26px;
  place-items: center;
}

.simple-game-window .game-footer {
  position: relative;
  display: grid;
  min-height: 138px;
  align-items: end;
  justify-content: center;
  grid-template-columns: 84px 84px;
  gap: 42px;
  margin-top: auto;
  padding-bottom: 8px;
}

.side-action {
  position: absolute;
  bottom: 18px;
  display: grid;
  width: 106px;
  height: 78px;
  align-content: center;
  justify-items: center;
  gap: 2px;
  color: #ffffff;
  background: #cdd3e8;
  font-size: 19px;
  font-weight: 800;
}

.side-action span {
  font-size: 34px;
  line-height: 1;
}

.side-action-left {
  left: -22px;
  border-radius: 0 999px 999px 0;
}

.side-action-right {
  right: -22px;
  border-radius: 999px 0 0 999px;
}

.unlock-card,
.hint-card {
  display: grid;
  width: 74px;
  min-height: 96px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  font-weight: 800;
}

.lock-box {
  display: grid;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: #dedede;
  color: #ffffff;
  font-size: 31px;
  place-items: center;
}

.unlock-card strong {
  min-width: 54px;
  padding: 4px 6px;
  border-radius: 999px;
  color: #ffffff;
  background: #989898;
  font-size: 15px;
}

.hint-icon {
  display: grid;
  width: 58px;
  height: 58px;
  border: 2px solid #e8e8ee;
  border-radius: 12px;
  background: #ffffff;
  font-size: 38px;
  place-items: center;
  transform: rotate(-8deg);
}

.hint-card strong {
  min-width: 58px;
  padding: 4px 6px;
  border-radius: 999px;
  color: #ffffff;
  background: #0798f2;
  font-size: 17px;
}

/* 极简大厅：白底靶环、中央羊羊、少入口 */
.main-lobby {
  min-height: min(820px, calc(100vh - 36px));
  padding: 34px 24px 22px;
  border-color: rgba(255, 255, 255, 0.88);
  color: #66666d;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.main-lobby::before {
  display: none;
}

.target-rings {
  position: absolute;
  inset: 98px -168px 170px -168px;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 18%, rgba(214, 214, 214, 0.78) 18.5% 24%, transparent 24.5% 41%, rgba(214, 214, 214, 0.78) 41.5% 47%, transparent 47.5% 64%, rgba(214, 214, 214, 0.78) 64.5% 70%, transparent 70.5%);
  opacity: 0.78;
  pointer-events: none;
}

.lobby-top {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 72px;
  align-items: start;
  grid-template-columns: 72px 1fr 72px;
}

.lobby-gear,
.repair-entry,
.lobby-icon-entry,
.main-level-button,
.survival-button,
.daily-challenge-card button,
.lobby-coin-pill,
.lobby-energy-pill {
  transition:
    transform 150ms ease,
    filter 150ms ease;
}

.lobby-gear:active,
.repair-entry:active,
.lobby-icon-entry:active,
.main-level-button:active,
.survival-button:active,
.daily-challenge-card button:active,
.lobby-coin-pill:active,
.lobby-energy-pill:active {
  transform: translateY(2px) scale(0.98);
}

.lobby-gear {
  display: grid;
  width: 52px;
  height: 52px;
  color: #99999e;
  background: transparent;
  font-size: 50px;
  line-height: 1;
  place-items: center;
}

.repair-entry {
  display: grid;
  justify-self: center;
  min-width: 94px;
  justify-items: center;
  gap: 0;
  color: #8a8a90;
  background: transparent;
  font-size: 17px;
  font-weight: 800;
}

.repair-entry span {
  color: #94949a;
  font-size: 44px;
  line-height: 0.92;
}

.lobby-resources {
  position: absolute;
  top: 90px;
  left: 24px;
  z-index: 3;
  display: grid;
  justify-items: start;
  gap: 16px;
}

.lobby-coin-pill,
.lobby-energy-pill {
  display: flex;
  align-items: center;
  height: 42px;
  border-radius: 14px;
  background: #e8ebf5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.lobby-coin-pill {
  gap: 16px;
  min-width: 108px;
  padding: 0 22px 0 4px;
  color: #6f7380;
  font-size: 24px;
  font-weight: 800;
}

.lobby-energy-pill {
  position: relative;
  gap: 4px;
  min-width: 150px;
  padding: 0 0 0 3px;
  color: #6f7380;
  font-size: 20px;
  font-weight: 900;
}

.lobby-energy-pill span {
  display: grid;
  width: 34px;
  height: 34px;
  color: #0a96ff;
  font-size: 31px;
  place-items: center;
}

.lobby-energy-pill strong {
  color: #6e7380;
  text-shadow: 0 2px 0 #ffffff;
}

.lobby-energy-pill i {
  position: absolute;
  right: -11px;
  display: grid;
  width: 36px;
  height: 36px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  background: #4bd132;
  font-size: 31px;
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
  place-items: center;
}

.lobby-icon-entry {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 92px;
  justify-items: center;
  gap: 4px;
  color: #ffffff;
  background: transparent;
  font-size: 20px;
  font-weight: 900;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.45),
    0 0 4px rgba(0, 0, 0, 0.28);
}

.lobby-icon-entry .entry-emoji {
  display: grid;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
  font-size: 39px;
  text-shadow: none;
  place-items: center;
}

.lobby-skin-entry {
  top: 228px;
  left: 18px;
}

.lobby-profile-entry {
  top: 236px;
  right: 18px;
}

.lobby-hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 390px;
  justify-items: center;
  align-content: end;
  margin-top: 4px;
  pointer-events: none;
}

.lobby-sheep-shadow {
  position: absolute;
  bottom: 4px;
  width: 174px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  filter: blur(3px);
}

.lobby-sheep {
  position: relative;
  display: grid;
  width: 236px;
  height: 282px;
  place-items: center;
  animation: lobbySheepFloat 3.4s ease-in-out infinite;
}

.lobby-sheep-face {
  display: grid;
  width: 208px;
  height: 208px;
  border-radius: 46% 46% 50% 50%;
  background:
    radial-gradient(circle at 50% 76%, rgba(255, 207, 190, 0.72), transparent 42px),
    #fff;
  box-shadow:
    inset 0 -14px 0 rgba(0, 0, 0, 0.05),
    0 18px 28px rgba(0, 0, 0, 0.14);
  font-size: 146px;
  place-items: center;
}

.lobby-heart {
  position: absolute;
  bottom: 68px;
  color: #b9b9be;
  font-size: 54px;
  font-weight: 900;
}

.daily-challenge-card {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(318px, 92%);
  justify-items: center;
  gap: 8px;
  margin: -18px auto 18px;
  padding: 18px 18px 16px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(218, 218, 222, 0.62);
  text-align: center;
}

.daily-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.daily-title-row h2 {
  margin: 0;
  color: #414147;
  font-size: 25px;
  font-weight: 1000;
  letter-spacing: 0.02em;
}

.daily-title-row span {
  font-size: 32px;
}

.daily-challenge-card p {
  margin: -4px 0 4px;
  color: #55555b;
  font-size: 18px;
  font-weight: 800;
}

.daily-challenge-card button {
  display: grid;
  width: 252px;
  min-height: 62px;
  align-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #ffbd28, #ff9d00);
  box-shadow: 0 7px 0 #db8700, 0 12px 16px rgba(255, 157, 0, 0.22);
  font-size: 22px;
  font-weight: 1000;
  line-height: 1.18;
}

.daily-challenge-card button small {
  font-size: 14px;
  opacity: 0.82;
}

.daily-challenge-card time {
  color: #6e6e74;
  font-size: 17px;
  font-weight: 700;
}

.main-level-button {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(330px, 88%);
  min-height: 78px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 999px;
  color: #ffffff;
  background: #1e91e9;
  box-shadow:
    inset 0 -6px 0 rgba(0, 0, 0, 0.08),
    0 10px 18px rgba(30, 145, 233, 0.3);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.08em;
  place-items: center;
}

.main-level-button i {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.42);
}

.survival-button {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(258px, 74%);
  min-height: 64px;
  align-items: center;
  grid-template-columns: 44px 1fr 44px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #69cf1d, #45b700);
  box-shadow:
    inset 0 -6px 0 rgba(0, 0, 0, 0.08),
    0 8px 15px rgba(69, 183, 0, 0.22);
}

.survival-button span {
  display: grid;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 31px;
  place-items: center;
}

.survival-button strong {
  font-size: 27px;
  font-weight: 1000;
  line-height: 1;
}

.survival-button small {
  grid-column: 2;
  margin-top: -2px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 800;
}

@keyframes lobbySheepFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 390px) {
  .app-shell {
    padding: 0;
  }

  .phone-frame {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .hero-panel {
    padding-right: 50px;
    padding-left: 50px;
  }

  .quick-actions {
    top: 88px;
  }

  .main-lobby {
    min-height: 100vh;
    padding-top: 34px;
  }

  .target-rings {
    inset: 100px -194px 166px -194px;
  }

  .lobby-hero {
    min-height: 372px;
  }

  .lobby-sheep {
    width: 218px;
    height: 266px;
  }

  .lobby-sheep-face {
    width: 192px;
    height: 192px;
    font-size: 134px;
  }

  .daily-challenge-card {
    width: min(304px, 92%);
    margin-top: -14px;
  }

  .main-level-button {
    min-height: 74px;
    font-size: 38px;
  }

  .bubble-button {
    width: 52px;
    min-height: 58px;
    font-size: 11px;
  }

  .mode-card {
    border-radius: 18px;
  }

  .game-board-wrap {
    --board-size: min(318px, calc(100vw - 78px));
  }

  .simple-game-window {
    min-height: 100vh;
    padding-top: 36px;
  }

  .simple-game-window .game-board-wrap {
    --board-size: min(344px, calc(100vw - 46px));
  }

  .simple-resource-row {
    margin-right: 22px;
    margin-left: 22px;
  }

  .rule-capsule > div {
    font-size: 17px;
  }

  .game-rule-card {
    padding: 13px;
  }

  .game-rule-card h2 {
    font-size: 22px;
  }
}
