:root {
  --paper: #fbf6ec;
  --paper-deep: #f4ead9;
  --ink: #3f2d22;
  --muted: #8e7664;
  --line: rgba(91, 59, 37, 0.13);
  --cocoa: #5d3b29;
  --terracotta: #c86f45;
  --sand: #e8b965;
  --green: #72845c;
  --green-deep: #54664a;
  --white: #fffdf7;
  --shadow: 0 18px 45px rgba(83, 52, 30, 0.14);
}

* { box-sizing: border-box; }

html { background: #d8d0c5; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.52), transparent 27%),
    linear-gradient(140deg, #d8d2c8, #bfb7ad);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  display: grid;
  place-items: center;
}

button { color: inherit; font: inherit; }
button, .panorama-scroll { -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid rgba(200, 111, 69, .32); outline-offset: 2px; }

.phone-shell {
  position: relative;
  width: min(100%, 440px);
  min-height: 100vh;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(70, 42, 26, .08), 0 25px 70px rgba(44, 30, 22, .2);
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 0 20px 104px;
  animation: screen-in .34s ease;
}
.screen.active-screen { display: block; }
.hidden { display: none !important; }

.app-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 247, .78);
  box-shadow: 0 5px 16px rgba(81, 51, 31, .06);
  cursor: pointer;
}

.mini-beetle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 48% 48% 52% 52%;
  color: #f5debd;
  background: var(--cocoa);
  font-size: 11px;
  font-weight: 700;
}

.brand-lockup { text-align: center; }
.brand-lockup strong { display: block; font-family: "STKaiti", "KaiTi", serif; font-size: 23px; letter-spacing: 2px; }
.brand-lockup span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .5px; margin-top: 2px; }

.chapter-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 4px 2px 14px;
}
.eyebrow { display: block; color: #ad805c; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.chapter-strip strong { display: block; margin-top: 2px; font-family: "STKaiti", "KaiTi", serif; font-size: 20px; }
.chapter-distance { display: flex; align-items: baseline; gap: 3px; color: var(--muted); }
.chapter-distance b { color: var(--cocoa); font-family: Georgia, serif; font-size: 21px; }
.chapter-distance span { font-size: 10px; }

.growth-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: -2px 2px 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.47);
}
.growth-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 48% 48% 52% 52%;
  color: #f5debd;
  background: linear-gradient(145deg, #754c36, #4e3124);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px rgba(255,255,255,.18);
}
.growth-avatar i {
  position: absolute;
  right: -4px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  color: white;
  background: var(--green-deep);
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: normal;
}
.growth-main { min-width: 0; }
.growth-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.growth-heading strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.growth-heading span { flex: none; color: var(--muted); font-size: 8px; }
.growth-track { height: 5px; margin: 6px 0 4px; overflow: hidden; border-radius: 6px; background: #eadfce; }
.growth-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d9a65c, #7d9563); transition: width .7s ease; }
.growth-main small { display: block; color: var(--muted); font-size: 8px; }
.growth-energy { min-width: 42px; text-align: right; }
.growth-energy strong { display: block; color: var(--cocoa); font-family: Georgia, serif; font-size: 18px; line-height: 1; }
.growth-energy span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }

.focus-scene {
  --session-ball-size: 145px;
  position: relative;
  height: min(58vh, 560px);
  min-height: 450px;
  overflow: hidden;
  border-radius: 28px;
  background: #e9c078;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.scene-world,
.scene-background,
.scene-background-next,
.midground-drift,
.ground-flow,
.foreground-pebbles {
  position: absolute;
  inset: 0;
}
.scene-world { overflow: hidden; background: #e9c078; }
.scene-background,
.scene-background-next {
  width: 106%;
  height: 106%;
  left: -3%;
  top: -3%;
  object-fit: cover;
  object-position: center 54%;
  transform: scale(1.08) translate3d(0, 0, 0);
  filter: saturate(.98);
  transition: filter 1.2s ease;
}
.scene-background-next {
  z-index: 1;
  opacity: 0;
  transition: opacity .85s ease;
}
.scene-background-next.is-visible { opacity: 1; }
.focus-scene.focusing .scene-background {
  animation: desert-drift 32s ease-in-out infinite;
  filter: saturate(1.04);
}
.midground-drift {
  top: 42%;
  left: -8%;
  width: 116%;
  height: 43%;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(ellipse at 18% 70%, rgba(255,235,186,.45) 0 9%, transparent 31%),
    radial-gradient(ellipse at 58% 63%, rgba(255,225,164,.34) 0 13%, transparent 37%),
    radial-gradient(ellipse at 91% 74%, rgba(255,238,196,.32) 0 8%, transparent 29%);
  filter: blur(1px);
  transition: opacity 1.4s ease;
}
.focus-scene.focusing .midground-drift {
  opacity: .24;
  animation: midground-drift 17s ease-in-out infinite;
}
.distant-wind {
  position: absolute;
  height: 1px;
  width: 92px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,245,211,.72), transparent);
  opacity: 0;
  transform: rotate(-8deg);
}
.wind-one { left: 74%; top: 41%; }
.wind-two { left: 28%; top: 31%; width: 60px; animation-delay: -3.2s !important; }
.focus-scene.focusing .distant-wind { animation: wind-streak 6.5s ease-in-out infinite; }
.ground-flow {
  top: 61%;
  height: 42%;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(171deg, transparent 0 26px, rgba(255,230,166,.34) 27px 29px, transparent 30px 56px);
  background-position: 0 0;
  transition: opacity 1.1s ease;
}
.focus-scene.focusing .ground-flow { opacity: .56; animation: sand-flow 7s linear infinite; }
.foreground-pebbles {
  top: auto;
  height: 31%;
  pointer-events: none;
  overflow: hidden;
}
.foreground-pebbles i {
  position: absolute;
  right: -28px;
  bottom: 12%;
  width: 9px;
  height: 5px;
  border-radius: 60% 45% 50% 40%;
  background: rgba(91,55,31,.42);
  opacity: 0;
}
.foreground-pebbles i:nth-child(2) { bottom: 23%; width: 6px; height: 4px; animation-delay: -1.2s !important; }
.foreground-pebbles i:nth-child(3) { bottom: 8%; width: 13px; height: 7px; animation-delay: -2.3s !important; }
.foreground-pebbles i:nth-child(4) { bottom: 30%; width: 5px; height: 3px; animation-delay: -3.1s !important; }
.focus-scene.focusing .foreground-pebbles i { animation: pebble-pass 3.8s linear infinite; }

.push-rig {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 39px;
  height: 325px;
  transform-origin: 50% 100%;
}
.scene-milestone {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: rgba(255,252,240,.94);
  background: rgba(72,66,42,.22);
  font-size: 8px;
  letter-spacing: .7px;
  text-shadow: 0 1px 4px rgba(42,28,18,.28);
  backdrop-filter: blur(5px);
}
.push-rig::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 25%;
  bottom: 0;
  width: 64%;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(70,40,22,.42), rgba(70,40,22,0) 70%);
  filter: blur(2px);
}
.focus-ball-stage {
  position: absolute;
  z-index: 1;
  left: 31%;
  bottom: 7px;
  width: var(--session-ball-size);
  aspect-ratio: 1;
  filter: drop-shadow(0 9px 7px rgba(71,39,18,.25));
  transition: width .8s cubic-bezier(.2,.8,.2,1), transform .19s cubic-bezier(.22,.75,.24,1);
}
.focus-ball-visual {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center;
}
.xiaojia-focus-frame {
  position: absolute;
  z-index: 2;
  left: 1.5%;
  bottom: 7px;
  width: 45%;
  aspect-ratio: 77 / 128;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center bottom;
  transition: transform 190ms cubic-bezier(.22,.75,.24,1);
}
/* The character frames carry the weight shift; a global bob made the ball feel weightless. */
.focus-scene.focusing .push-rig { animation: none; }
.focus-scene.paused .push-rig,
.focus-scene.paused .scene-background,
.focus-scene.paused .midground-drift,
.focus-scene.paused .distant-wind,
.focus-scene.paused .ground-flow,
.focus-scene.paused .foreground-pebbles i,
.focus-scene.paused .dust-cloud {
  animation-play-state: paused !important;
}
.effort-sparkle {
  position: absolute;
  z-index: 5;
  right: 30px;
  top: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0;
  background: #fff4c9;
  box-shadow: 10px 8px 0 -1px rgba(255,244,201,.7), -7px 14px 0 -1px rgba(255,244,201,.58);
}
.focus-scene.effort-moment .effort-sparkle { animation: sparkle-pop 3s ease both; }
.dust-cloud {
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: 24px;
  width: 13px;
  height: 8px;
  border-radius: 50%;
  opacity: 0;
  background: rgba(255,224,161,.72);
  filter: blur(1px);
  box-shadow: 13px -6px 0 -3px rgba(255,236,189,.62), 28px 2px 0 -4px rgba(255,222,151,.62);
}
.dust-two { left: 48px; bottom: 15px; transform: scale(.72); animation-delay: -.8s !important; }
.dust-three { left: 15px; bottom: 36px; transform: scale(.52); animation-delay: -1.5s !important; }
.focus-scene.focusing .dust-cloud { animation: dust-puff 2.1s ease-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .focus-ball-stage,
  .xiaojia-focus-frame { transition: none; }
  .focus-scene.focusing .push-rig { animation: none; }
}

@keyframes desert-drift {
  0%, 100% { transform: scale(1.08) translate3d(0, 0, 0); }
  50% { transform: scale(1.092) translate3d(-2.2%, -.3%, 0); }
}
@keyframes midground-drift {
  0%, 100% { transform: translate3d(1.4%, 0, 0) scale(1); }
  50% { transform: translate3d(-2.4%, .5%, 0) scale(1.015); }
}
@keyframes wind-streak {
  0%, 68%, 100% { opacity: 0; transform: translateX(24px) rotate(-8deg) scaleX(.7); }
  76% { opacity: .72; }
  90% { opacity: 0; transform: translateX(-125px) rotate(-8deg) scaleX(1.2); }
}
@keyframes sand-flow {
  from { background-position: 0 0; }
  to { background-position: -358px 0; }
}
@keyframes pebble-pass {
  0% { opacity: 0; transform: translateX(0) scale(.75); }
  8% { opacity: .62; }
  92% { opacity: .48; }
  100% { opacity: 0; transform: translateX(-430px) scale(1.18); }
}
@keyframes pushing-breath {
  0%, 100% { transform: translateY(1px) rotate(-.25deg); }
  50% { transform: translateY(-2px) rotate(.2deg); }
}
@keyframes ball-roll {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes beetle-effort {
  0%, 100% { transform: translate(-1px, 1px) rotate(-.45deg); }
  50% { transform: translate(2px, -2px) rotate(.35deg); }
}
@keyframes effort-push-frame {
  0%, 9% { opacity: 1; }
  10%, 89% { opacity: 0; }
  90%, 100% { opacity: 1; }
}
@keyframes effort-prepare-frame {
  0%, 9% { opacity: 0; }
  10%, 29% { opacity: 1; }
  30%, 69% { opacity: 0; }
  70%, 89% { opacity: 1; }
  90%, 100% { opacity: 0; }
}
@keyframes effort-wipe-frame {
  0%, 29% { opacity: 0; }
  30%, 69% { opacity: 1; }
  70%, 100% { opacity: 0; }
}
@keyframes wipe-breath {
  0%, 100% { transform: translateY(1px) rotate(-.3deg); }
  50% { transform: translateY(-1px) rotate(.2deg); }
}
@keyframes sparkle-pop {
  0%, 12%, 100% { opacity: 0; transform: scale(.4) rotate(0); }
  30%, 70% { opacity: .85; transform: scale(1.1) rotate(35deg); }
}
@keyframes dust-puff {
  0%, 18% { opacity: 0; transform: translate(8px, 2px) scale(.45); }
  28% { opacity: .74; }
  100% { opacity: 0; transform: translate(-54px, -16px) scale(1.55); }
}
@media (prefers-reduced-motion: reduce) {
  .focus-scene *,
  .focus-scene *::before,
  .focus-scene *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  .ground-flow,
  .midground-drift,
  .distant-wind,
  .foreground-pebbles,
  .dust-cloud { display: none; }
}
.scene-shade {
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(50,32,20,.24), transparent 34%),
    linear-gradient(0deg, rgba(44,28,18,.56), transparent 36%);
  pointer-events: none;
}

.timer-cluster {
  position: absolute;
  z-index: 4;
  inset: 27px 0 auto;
  color: var(--white);
  text-align: center;
  text-shadow: 0 2px 18px rgba(35, 23, 15, .35);
}
.focus-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  background: rgba(53, 36, 23, .23);
  backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: 1px;
}
.focus-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #e8c37a; box-shadow: 0 0 0 4px rgba(232,195,122,.17); }
.timer-cluster strong { display: block; margin: 7px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 58px; font-weight: 400; letter-spacing: -2px; line-height: 1; }
.timer-cluster > span:last-child { display: block; font-size: 11px; margin-top: 7px; opacity: .9; }

.scene-caption {
  position: absolute;
  z-index: 4;
  left: 20px;
  right: 20px;
  bottom: 26px;
  color: var(--white);
}
.wind-indicator { font-size: 9px; letter-spacing: .7px; opacity: .82; }
.wind-indicator i { display: inline-block; width: 18px; margin-right: 5px; border-top: 1px solid currentColor; border-radius: 50%; vertical-align: 3px; }
.scene-caption p { max-width: 320px; margin: 7px 0 0; font-family: "STKaiti", "KaiTi", serif; font-size: 17px; line-height: 1.55; text-shadow: 0 2px 10px rgba(30, 19, 12, .55); }
.focus-progress { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.22); }
.focus-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #f0c975, #a6c079); transition: width .5s ease; }

.focus-controls { padding: 17px 2px 4px; }
.duration-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 13px; }
.duration {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 4px 9px;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: .2s ease;
}
.duration strong { display: block; font-family: Georgia, serif; font-size: 19px; }
.duration span { display: block; color: var(--muted); font-size: 9px; margin-top: 2px; }
.duration.active { color: var(--white); border-color: var(--cocoa); background: var(--cocoa); box-shadow: 0 7px 15px rgba(92,58,39,.18); transform: translateY(-1px); }
.duration.active span { color: rgba(255,255,255,.72); }
.custom-duration strong { font-family: inherit; }
.focus-intent { display: block; margin: 0 1px 13px; }
.focus-intent > span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 10px; }
.focus-intent input { box-sizing: border-box; width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; outline: none; color: var(--cocoa); background: rgba(255,255,255,.55); font: 13px "STKaiti", "KaiTi", serif; }
.focus-intent input::placeholder { color: rgba(118,80,47,.48); }
.focus-intent input:focus { border-color: #b18961; box-shadow: 0 0 0 3px rgba(177,137,97,.13); }
.focus-intent input:disabled { color: var(--muted); background: rgba(239,225,199,.45); }
.session-intent { max-width: 220px; margin-top: 3px; overflow: hidden; color: rgba(255,250,240,.86); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.primary-action {
  width: 100%;
  height: 63px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  border-radius: 19px;
  color: var(--white);
  background: linear-gradient(135deg, #704834, #4e3328);
  box-shadow: 0 11px 22px rgba(77, 49, 34, .22), inset 0 1px rgba(255,255,255,.14);
  cursor: pointer;
}
.action-symbol { display: grid; place-items: center; width: 30px; height: 30px; padding-left: 2px; border-radius: 50%; background: rgba(255,255,255,.13); font-size: 10px; }
.primary-action strong { display: block; text-align: left; font-size: 15px; }
.primary-action small { display: block; margin-top: 2px; color: rgba(255,255,255,.65); font-size: 9px; font-weight: 400; }
.primary-action.running { background: linear-gradient(135deg, #7e8c62, #52634b); }

.active-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.active-actions button { height: 39px; border: 1px solid var(--line); border-radius: 13px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }

.page-header {
  height: 102px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 2px 12px;
}
.page-header h1 { margin: 4px 0 0; font-family: "STKaiti", "KaiTi", serif; font-size: 26px; font-weight: 700; }
.route-total { display: flex; align-items: baseline; color: var(--muted); }
.route-total strong { font-family: Georgia, serif; color: var(--cocoa); font-size: 28px; }
.route-total span { margin-left: 3px; font-size: 11px; }
.page-intro { margin: 0 2px 15px; color: var(--muted); font-size: 11px; line-height: 1.65; }

.panorama-card { overflow: hidden; border-radius: 25px; background: #e4b66c; box-shadow: var(--shadow); }
.panorama-scroll { position: relative; overflow-x: auto; scrollbar-width: none; cursor: grab; }
.panorama-scroll::-webkit-scrollbar { display: none; }
.panorama-scroll:active { cursor: grabbing; }
.panorama-art { position: relative; width: 1160px; height: 410px; }
.panorama-art > img { width: 100%; height: 100%; object-fit: cover; }
.panorama-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(54,35,22,.22), transparent 36%); pointer-events: none; }
.route-line { position: absolute; z-index: 2; left: 105px; right: 95px; bottom: 62px; height: 3px; border-radius: 3px; background: rgba(255,248,226,.46); transform: rotate(-1deg); overflow: hidden; }
.route-line span { display: block; width: 0; height: 100%; background: #9cac73; transition: width .6s ease; }
.map-node {
  position: absolute;
  z-index: 3;
  width: 100px;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: center;
  text-shadow: 0 2px 8px rgba(52,34,22,.5);
}
.map-node i { display: block; width: 17px; height: 17px; margin: 0 auto 6px; border: 4px solid rgba(255,255,255,.8); border-radius: 50%; background: #9c7650; box-shadow: 0 0 0 5px rgba(255,255,255,.18); }
.map-node span { display: block; font-family: "STKaiti", "KaiTi", serif; font-size: 14px; }
.map-node small { font-size: 9px; opacity: .78; }
.map-node.reached i { background: #7f9666; }
.node-start { left: 58px; bottom: 40px; }
.node-sprout { left: 335px; bottom: 64px; }
.node-camp { left: 685px; bottom: 54px; }
.node-oasis { right: 43px; bottom: 68px; }
.current-marker { position: absolute; z-index: 4; left: 92px; bottom: 100px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 6px rgba(255,255,255,.24), 0 5px 12px rgba(62,38,22,.25); transition: left .6s ease; }
.current-marker span { position: absolute; left: -37px; bottom: 19px; width: 86px; padding: 5px 7px; border-radius: 9px; color: var(--cocoa); background: rgba(255,253,247,.88); font-size: 9px; text-align: center; white-space: nowrap; text-shadow: none; backdrop-filter: blur(5px); }
.drag-hint { padding: 10px; color: rgba(70,46,31,.65); background: rgba(255,248,233,.84); font-size: 9px; text-align: center; letter-spacing: .6px; }

.postcard-section { padding-top: 24px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.section-title h2 { margin: 3px 0 0; font-family: "STKaiti", "KaiTi", serif; font-size: 20px; }
.section-title > span { color: var(--muted); font-size: 10px; }
.postcard-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.postcard { position: relative; min-width: 0; padding: 7px 7px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fffaf0; box-shadow: 0 7px 16px rgba(79,51,32,.06); color: var(--cocoa); text-align: left; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.postcard.unlocked:hover { transform: translateY(-2px); box-shadow: 0 10px 19px rgba(79,51,32,.12); }
.postcard:focus-visible { outline: 3px solid rgba(200,111,69,.32); outline-offset: 2px; }
.postcard-image { height: 86px; border-radius: 9px; background-position: center; background-size: cover; }
.postcard-image.departure { background-image: url("./assets/concepts/gungun-key-visual-v1.png"); }
.postcard-image.saxaul { background-image: url("./assets/scenes/focus-desert-saxaul-100km-v1.png"); }
.postcard-image.restoration { background-image: url("./assets/scenes/focus-desert-restoration-200km-v1.png"); }
.postcard-image.oasis { background-image: url("./assets/scenes/focus-desert-oasis-300km-v1.png"); }
.postcard span { display: block; margin-top: 7px; overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.postcard small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.postcard.locked .postcard-image { filter: grayscale(.85) sepia(.25); opacity: .38; }
.postcard.locked { cursor: default; }
.journey-postcard-sheet { padding: 17px 17px 21px; }
.journey-postcard-art { display: block; width: 100%; height: 238px; margin-bottom: 17px; border-radius: 16px; object-fit: cover; box-shadow: 0 10px 22px rgba(74,49,30,.16); }
.journey-postcard-sheet h2 { margin: 5px 0 0; color: var(--cocoa); font-family: "STKaiti", "KaiTi", serif; font-size: 25px; }
.journey-postcard-sheet p { margin: 11px 4px 18px; color: var(--muted); font-family: "STKaiti", "KaiTi", serif; font-size: 14px; line-height: 1.65; }
.postcard.locked::after { content: "锁"; position: absolute; top: 38px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--white); background: rgba(61,43,32,.68); font-size: 9px; }

.records-header { align-items: center; padding-top: 18px; }
.record-hero { display: flex; align-items: center; gap: 19px; min-height: 165px; padding: 22px; border-radius: 24px; color: var(--white); background: linear-gradient(135deg, #6e7e58, #485943); box-shadow: var(--shadow); }
.record-ring { width: 108px; height: 108px; flex: 0 0 auto; display: grid; place-content: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; box-shadow: inset 0 0 0 8px rgba(255,255,255,.07); text-align: center; }
.record-ring strong { font-family: Georgia, serif; font-size: 35px; font-weight: 400; line-height: 1; }
.record-ring span { margin-top: 4px; font-size: 9px; opacity: .7; }
.record-copy > span { font-size: 9px; letter-spacing: 1px; opacity: .67; }
.record-copy strong { display: block; margin-top: 4px; font-family: "STKaiti", "KaiTi", serif; font-size: 19px; }
.record-copy p { margin: 8px 0 0; font-size: 10px; line-height: 1.65; opacity: .76; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 14px 0; }
.stats-grid article { padding: 15px 10px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.48); }
.stats-grid span { display: block; color: var(--muted); font-size: 9px; }
.stats-grid strong { display: inline-block; margin: 6px 3px 0 0; font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.stats-grid small { color: var(--muted); font-size: 8px; }

.ball-journal-card { margin-bottom: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 21px; background: #fffaf1; }
.largest-ball-summary { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(232,185,101,.17), rgba(114,132,92,.1)); }
.largest-ball-visual { display: grid; place-items: center; width: 58px; height: 58px; flex: none; }
.largest-ball-summary > div:last-child { min-width: 0; }
.largest-ball-summary span { display: block; color: var(--muted); font-size: 8px; }
.largest-ball-summary strong { display: block; margin-top: 3px; overflow: hidden; font-family: "STKaiti", "KaiTi", serif; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.largest-ball-summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.ball-orb {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 27%, rgba(255,255,255,.34), transparent 16%),
    radial-gradient(circle at 48% 54%, #a36a3e, #5c3825 72%);
  box-shadow: inset -4px -4px 7px rgba(48,27,17,.25), 0 5px 9px rgba(69,40,24,.17);
}
.ball-orb::after { content: ""; position: absolute; inset: 28%; border: 1px solid rgba(67,39,24,.34); border-radius: 50%; box-shadow: 5px 2px 0 -4px rgba(238,202,137,.65); }
.ball-tier-2 { width: 36px; height: 36px; }
.ball-tier-3 { width: 42px; height: 42px; }
.ball-tier-4 { width: 49px; height: 49px; }
.ball-tier-5 { width: 56px; height: 56px; background: radial-gradient(circle at 32% 25%, rgba(255,255,255,.4), transparent 15%), radial-gradient(circle at 48% 54%, #aa7545, #4d3021 74%); }
.ball-history { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ball-entry { min-width: 0; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: rgba(255,255,255,.5); text-align: left; cursor: pointer; }
.ball-entry-visual { display: grid; place-items: center; width: 48px; height: 48px; }
.ball-entry-copy { min-width: 0; }
.ball-entry-copy strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ball-entry-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.ball-entry-copy small { display: block; margin-top: 3px; color: var(--green-deep); font-size: 8px; }
.ball-history-empty { display: grid; place-items: center; gap: 9px; padding: 22px 10px 8px; color: var(--muted); text-align: center; }
.ball-history-empty p { margin: 0; font-family: "STKaiti", "KaiTi", serif; font-size: 12px; line-height: 1.65; }

.week-card { padding: 18px; border: 1px solid var(--line); border-radius: 21px; background: #fffaf1; }
.week-chart { height: 122px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 8px; }
.day-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.day-bar i { display: block; width: 100%; min-height: 5px; border-radius: 8px 8px 3px 3px; background: linear-gradient(#96a575, #6f825e); opacity: .86; }
.day-bar span { color: var(--muted); font-size: 8px; }

.sound-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.48); }
.sound-orb { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--terracotta); }
.sound-card > div:nth-child(2) { flex: 1; }
.sound-card strong { display: block; font-size: 12px; }
.sound-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.sound-preview {
  min-width: 54px;
  height: 29px;
  padding: 0 8px;
  border: 1px solid rgba(114,132,92,.2);
  border-radius: 12px;
  color: var(--green-deep);
  background: rgba(114,132,92,.08);
  font-size: 8px;
  cursor: pointer;
}
.sound-preview:disabled { cursor: default; filter: grayscale(1); opacity: .38; }
.sound-card.playing .sound-orb { animation: sound-orb-breathe 2.6s ease-in-out infinite; }
.sound-card.playing .sound-orb::after {
  content: "";
  position: absolute;
  width: 49px;
  height: 49px;
  border: 1px solid rgba(176,104,65,.22);
  border-radius: 50%;
  animation: sound-ring 2.6s ease-out infinite;
}
.sound-card.wind-cue .sound-orb { background: #7c8e78; }
.sound-card.wind-cue .sound-preview { color: #fff; background: var(--green-deep); }
.sound-orb { position: relative; }
.toggle { width: 43px; height: 25px; padding: 3px; border: 0; border-radius: 20px; background: #cfc5b7; cursor: pointer; }
.toggle i { display: block; width: 19px; height: 19px; border-radius: 50%; background: white; transition: transform .2s; }
.toggle.on { background: var(--green); }
.toggle.on i { transform: translateX(18px); }

.bottom-nav {
  position: absolute;
  z-index: 8;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px;
  border: 1px solid rgba(87,58,39,.1);
  border-radius: 24px;
  background: rgba(255,253,248,.88);
  box-shadow: 0 14px 35px rgba(61,39,25,.18);
  backdrop-filter: blur(18px);
}
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 17px; color: #a18c79; background: transparent; font-size: 9px; cursor: pointer; }
.nav-item.active { color: var(--cocoa); background: #f3e8d7; font-weight: 700; }
.nav-item i { position: relative; width: 21px; height: 21px; }
.nav-focus { border: 2px solid currentColor; border-radius: 50%; }
.nav-focus::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: currentColor; }
.nav-journey::before { content: ""; position: absolute; left: 1px; right: 1px; top: 9px; border-top: 2px dashed currentColor; transform: rotate(-16deg); }
.nav-journey::after { content: ""; position: absolute; right: 0; top: 1px; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.nav-records { border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; }
.nav-records::before, .nav-records::after { content: ""; position: absolute; bottom: 3px; width: 4px; border-radius: 4px 4px 0 0; background: currentColor; }
.nav-records::before { left: 5px; height: 8px; box-shadow: 6px -5px 0 currentColor, 12px -11px 0 currentColor; }

.completion-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(48, 34, 25, .58);
  backdrop-filter: blur(9px);
}
.completion-sheet { width: min(100%, 410px); max-height: calc(100vh - 32px); overflow: auto; border-radius: 29px; background: var(--paper); box-shadow: 0 30px 80px rgba(35,22,14,.34); animation: completion-in .42s cubic-bezier(.2,.8,.2,1); }
.custom-duration-sheet {
  position: relative;
  width: min(100%, 380px);
  padding: 29px 25px 24px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(35,22,14,.34);
  text-align: center;
  animation: completion-in .36s cubic-bezier(.2,.8,.2,1);
}
.custom-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}
.custom-eyebrow { color: #ad805c; font-size: 9px; font-weight: 700; letter-spacing: 1.7px; }
.custom-duration-sheet h2 { margin: 7px 0 0; font-family: "STKaiti", "KaiTi", serif; font-size: 25px; }
.interruption-sheet { padding-top: 25px; text-align: center; }
.interruption-beetle { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 13px; border-radius: 48% 48% 52% 52%; color: #f5debd; background: linear-gradient(145deg, #754c36, #4e3124); box-shadow: inset 0 1px rgba(255,255,255,.18), 0 10px 20px rgba(82,50,29,.17); font-size: 18px; font-weight: 700; }
.interruption-sheet p { margin: 9px 0 21px; color: var(--muted); font-family: "STKaiti", "KaiTi", serif; font-size: 15px; line-height: 1.65; }
.custom-duration-intro { margin: 7px 0 20px; color: var(--muted); font-size: 10px; }
.duration-stepper { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 13px; margin: 0 10px 18px; }
.duration-stepper button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--cocoa);
  background: rgba(255,255,255,.6);
  font-size: 23px;
  cursor: pointer;
}
.duration-stepper button:disabled { cursor: default; opacity: .35; }
.duration-stepper div { display: flex; align-items: baseline; justify-content: center; gap: 5px; color: var(--cocoa); }
.duration-stepper strong { font-family: Georgia, serif; font-size: 42px; line-height: 1; }
.duration-stepper span { color: var(--muted); font-size: 11px; }
.duration-range { width: 100%; accent-color: var(--cocoa); cursor: pointer; }
.duration-range-labels { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font-size: 8px; }
.custom-duration-note { min-height: 20px; margin: 16px 0 18px; color: var(--green-deep); font-family: "STKaiti", "KaiTi", serif; font-size: 13px; }
.ball-detail-sheet { padding-top: 25px; }
.ball-detail-visual { display: grid; place-items: center; height: 104px; margin-top: 8px; }
.ball-detail-visual .ball-orb { transform: scale(1.45); }
.ball-detail-sheet h2 { margin-top: 3px; }
.ball-detail-date { margin: 5px 0 18px; color: var(--muted); font-size: 9px; }
.ball-detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ball-detail-stats div { padding: 13px 5px; }
.ball-detail-stats div + div { border-left: 1px solid var(--line); }
.ball-detail-stats span { display: block; color: var(--muted); font-size: 8px; }
.ball-detail-stats strong { display: inline-block; margin: 4px 2px 0 0; font-family: Georgia, serif; font-size: 20px; }
.ball-detail-stats small { color: var(--muted); font-size: 8px; }
.ball-detail-copy { margin: 17px 0 4px; color: var(--muted); font-family: "STKaiti", "KaiTi", serif; font-size: 13px; line-height: 1.65; }
.completion-visual { position: relative; height: 370px; overflow: hidden; border-radius: 29px 29px 0 0; }
.completion-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.completion-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,29,20,.16), transparent 30%, rgba(42,28,19,.58)); }
.close-completion { position: absolute; z-index: 3; right: 15px; top: 15px; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: white; background: rgba(54,36,24,.3); font-size: 22px; cursor: pointer; backdrop-filter: blur(8px); }
.completion-title { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; color: white; text-shadow: 0 2px 13px rgba(35,22,14,.44); }
.completion-title span { font-size: 10px; letter-spacing: 2px; }
.completion-title h2 { margin: 6px 0 0; font-family: "STKaiti", "KaiTi", serif; font-size: 29px; }
.completion-content { padding: 20px 24px 23px; }
.result-row { display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; align-items: center; text-align: center; }
.result-row i { width: 1px; height: 34px; background: var(--line); }
.result-row span { display: block; color: var(--muted); font-size: 9px; }
.result-row strong { display: block; margin-top: 4px; font-family: Georgia, serif; font-size: 18px; }
.session-ball-result {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding: 13px 15px 13px 11px;
  overflow: hidden;
  border: 1px solid rgba(154,101,60,.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232,185,101,.16), rgba(255,255,255,.5));
}
.completion-ball-halo {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,193,100,.34), rgba(239,193,100,.06) 58%, transparent 60%);
}
.completion-ball-halo::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(154,101,60,.13);
  border-radius: 50%;
  animation: ball-halo-breathe 2.8s ease-in-out infinite;
}
.session-ball-result > div:last-child { min-width: 0; }
.session-ball-result span { display: block; color: var(--muted); font-size: 8px; letter-spacing: 1px; }
.session-ball-result strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-ball-result small { display: block; margin-top: 4px; color: var(--green-deep); font-size: 8px; }
.completion-growth-card {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(114,132,92,.17);
  border-radius: 16px;
  background: rgba(114,132,92,.07);
}
.completion-growth-heading { display: flex; align-items: center; justify-content: space-between; }
.completion-growth-heading span { margin-right: 5px; color: var(--muted); font-size: 8px; }
.completion-growth-heading strong { font-family: Georgia, serif; font-size: 17px; font-weight: 400; }
.completion-growth-heading em {
  padding: 4px 8px;
  border-radius: 12px;
  color: var(--green-deep);
  background: rgba(114,132,92,.12);
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: normal;
}
.completion-growth-track { height: 6px; margin-top: 9px; overflow: hidden; border-radius: 8px; background: rgba(114,132,92,.14); }
.completion-growth-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #87976d, #b3bd83);
  transition: width 1.1s .55s cubic-bezier(.2,.8,.2,1);
}
.completion-growth-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; }
.level-up-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px 12px;
  border: 1px solid rgba(114,132,92,.22);
  border-radius: 13px;
  color: var(--green-deep);
  background: rgba(114,132,92,.1);
  animation: level-up-pop .62s cubic-bezier(.2,.9,.2,1);
}
.level-up-banner span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: white; background: var(--green); font-size: 12px; }
.level-up-banner strong { font-size: 11px; }
.unlock-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(200,142,67,.2);
  border-radius: 15px;
  color: #76502f;
  background: linear-gradient(120deg, rgba(236,190,101,.18), rgba(255,250,240,.7));
}
.unlock-banner > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: none;
  border-radius: 50%;
  color: #fff8df;
  background: #ae7740;
  box-shadow: 0 5px 10px rgba(112,72,38,.18);
}
.onboarding-overlay {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(44,30,20,.6);
  backdrop-filter: blur(10px);
}
.onboarding-sheet {
  position: relative;
  width: min(100%, 390px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 30px;
  background: #fffaf0;
  box-shadow: 0 30px 80px rgba(35,22,14,.35);
}
.onboarding-skip { position: absolute; z-index: 2; right: 16px; top: 15px; border: 0; color: rgba(97,68,45,.65); background: transparent; font-size: 11px; cursor: pointer; }
.onboarding-progress { position: absolute; z-index: 2; left: 22px; top: 22px; display: flex; gap: 5px; }
.onboarding-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(108,74,48,.23); transition: width .25s ease, background .25s ease; }
.onboarding-dot.active { width: 18px; border-radius: 6px; background: #8b7857; }
.onboarding-slide { display: none; padding: 0 25px 24px; text-align: center; animation: screen-in .35s ease both; }
.onboarding-slide.active { display: block; }
.onboarding-visual { display: grid; place-items: center; height: 300px; margin: 0 -25px 23px; overflow: hidden; }
.onboarding-desert { background: linear-gradient(155deg, #95c1d2 0%, #f8e6b9 56%, #d78f3e 100%); }
.onboarding-desert img { width: 93%; transform: translateY(25px); filter: drop-shadow(0 15px 16px rgba(75,43,22,.2)); }
.onboarding-ball-journal { align-content: center; grid-template-columns: repeat(3, 68px); gap: 17px; background: radial-gradient(circle at 50% 42%, #fff7e6, #eed8b3); }
.onboarding-ball-journal .ball-orb { width: 65px; height: 65px; box-shadow: 0 10px 18px rgba(89,54,25,.17); }
.onboarding-ball-journal .ball-orb:nth-child(1) { transform: translateY(18px); }
.onboarding-ball-journal .ball-orb:nth-child(3) { transform: translateY(9px); }
.onboarding-route { position: relative; display: flex; align-items: center; justify-content: center; gap: 11px; color: #fffaf0; background: linear-gradient(145deg, #c18a49, #7d976c); font-family: Georgia, serif; font-size: 19px; }
.onboarding-route::before { content: ""; position: absolute; width: 230px; border-top: 2px dashed rgba(255,250,240,.72); transform: rotate(-8deg); }
.onboarding-route > * { position: relative; z-index: 1; }
.onboarding-route i { width: 11px; height: 11px; border: 3px solid #fffaf0; border-radius: 50%; background: #8b754c; }
.onboarding-route strong { color: #eef1c7; }
.onboarding-eyebrow { display: block; color: #94744f; font-size: 10px; letter-spacing: 2px; }
.onboarding-slide h2 { margin: 8px 0 10px; color: var(--cocoa); font-family: "STKaiti", "KaiTi", serif; font-size: 27px; }
.onboarding-slide p { min-height: 46px; margin: 0; color: var(--muted); font-family: "STKaiti", "KaiTi", serif; font-size: 14px; line-height: 1.7; }
.onboarding-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 25px 25px; }
.onboarding-actions button { height: 48px; border-radius: 14px; cursor: pointer; }
.onboarding-back { border: 1px solid var(--line); color: var(--muted); background: transparent; }
.onboarding-next { border: 0; color: white; background: var(--green-deep); box-shadow: 0 8px 17px rgba(77,95,66,.2); }
.onboarding-back.hidden + .onboarding-next { grid-column: 1 / -1; }
.unlock-scene-preview {
  width: 54px;
  height: 42px;
  flex: none;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(112,72,38,.14);
}
.unlock-banner small { display: block; color: rgba(118,80,47,.66); font-size: 8px; }
.unlock-banner strong { display: block; margin-top: 2px; font-size: 10px; }
.completion-content > p { margin: 17px 0; color: var(--muted); font-family: "STKaiti", "KaiTi", serif; font-size: 15px; line-height: 1.7; text-align: center; }
.share-action, .secondary-action { width: 100%; height: 50px; border-radius: 15px; cursor: pointer; }
.share-action { border: 0; color: white; background: var(--green-deep); box-shadow: 0 8px 18px rgba(77,95,66,.2); }
.share-action span { margin-right: 7px; color: #d9d79c; }
.share-action:disabled { cursor: wait; opacity: .88; }
.secondary-action { margin-top: 8px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 11px; }
.completion-next-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.completion-next-actions button { height: 48px; border-radius: 14px; cursor: pointer; font-size: 11px; }
.continue-action { border: 0; color: white; background: var(--cocoa); }
.break-action { border: 1px solid var(--line); color: var(--green-deep); background: rgba(255,255,255,.45); }
.break-sheet { text-align: center; }
.break-timer { display: block; margin: 13px 0 7px; color: var(--cocoa); font: 48px/1 Georgia, serif; letter-spacing: 2px; }
.break-sheet p { margin: 0 0 22px; color: var(--muted); font-family: "STKaiti", "KaiTi", serif; font-size: 14px; line-height: 1.65; }

@keyframes screen-in { from { opacity: 0; transform: translateY(5px); } }
@keyframes completion-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes level-up-pop {
  0% { opacity: 0; transform: translateY(8px) scale(.96); }
  65% { transform: translateY(-2px) scale(1.02); }
}
@keyframes reward-rise {
  from { opacity: 0; transform: translateY(9px); }
}
@keyframes ball-halo-breathe {
  50% { transform: scale(1.08); opacity: .5; }
}
@keyframes sound-orb-breathe {
  50% { transform: scale(.95); filter: saturate(.85); }
}
@keyframes sound-ring {
  from { opacity: .7; transform: scale(.72); }
  to { opacity: 0; transform: scale(1.12); }
}
.completion-overlay:not(.hidden) .completion-title { animation: reward-rise .5s .12s both; }
.completion-overlay:not(.hidden) .result-row { animation: reward-rise .5s .24s both; }
.completion-overlay:not(.hidden) .session-ball-result { animation: reward-rise .55s .38s both; }
.completion-overlay:not(.hidden) .completion-growth-card { animation: reward-rise .55s .52s both; }
.completion-overlay:not(.hidden) .level-up-banner,
.completion-overlay:not(.hidden) .unlock-banner { animation: level-up-pop .62s .68s both; }
.completion-overlay:not(.hidden) .completion-content > p { animation: reward-rise .5s .76s both; }
.completion-overlay:not(.hidden) .share-action,
.completion-overlay:not(.hidden) .secondary-action { animation: reward-rise .5s .88s both; }
.completion-overlay.no-reward .completion-ball-halo { filter: grayscale(.75); opacity: .52; }
.completion-overlay.no-reward .session-ball-result { background: rgba(255,255,255,.42); }

@media (min-width: 700px) {
  body { padding: 24px; }
  .phone-shell { min-height: min(920px, calc(100vh - 48px)); height: min(920px, calc(100vh - 48px)); border-radius: 36px; }
  .screen { min-height: 100%; height: 100%; overflow-y: auto; }
}

@media (max-width: 380px) {
  .screen { padding-left: 14px; padding-right: 14px; }
  .focus-scene { min-height: 420px; }
  .timer-cluster strong { font-size: 52px; }
  .completion-visual { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .completion-overlay:not(.hidden) .completion-title,
  .completion-overlay:not(.hidden) .result-row,
  .completion-overlay:not(.hidden) .session-ball-result,
  .completion-overlay:not(.hidden) .completion-growth-card,
  .completion-overlay:not(.hidden) .level-up-banner,
  .completion-overlay:not(.hidden) .unlock-banner,
  .completion-overlay:not(.hidden) .completion-content > p,
  .completion-overlay:not(.hidden) .share-action,
  .completion-overlay:not(.hidden) .secondary-action { animation: none; }
  .completion-ball-halo::after { animation: none; }
  .completion-growth-track i { transition: none; }
  .sound-card.playing .sound-orb,
  .sound-card.playing .sound-orb::after { animation: none; }
}
