:root {
  --paper: #fffaf6;
  --paper-strong: #ffffff;
  --blush: #f8eee8;
  --blush-strong: #f1d9d7;
  --peach: #f7c9ad;
  --coral: #e96766;
  --coral-dark: #ba434d;
  --plum: #422d49;
  --plum-soft: #67566d;
  --berry: #7b315d;
  --berry-dark: #5d2147;
  --mint: #bfe5d8;
  --mint-deep: #2b7365;
  --gold: #f0b85a;
  --shadow: 0 24px 70px rgba(84, 48, 69, 0.15);
  --soft-shadow: 0 12px 30px rgba(84, 48, 69, 0.11);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --focus: #006f62;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--blush);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
  overflow-x: hidden;
  color: var(--plum);
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 255, 255, 0.95) 0 8%, transparent 29%),
    radial-gradient(circle at 92% 27%, rgba(247, 201, 173, 0.5) 0 10%, transparent 32%),
    linear-gradient(145deg, #fffaf7 0%, #f8eee8 48%, #f5e4e2 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: #fff;
  background: var(--berry-dark);
  border-radius: 10px;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.ambient-one {
  top: 22%;
  left: -150px;
  background: rgba(191, 229, 216, 0.48);
}

.ambient-two {
  right: -160px;
  bottom: 2%;
  background: rgba(240, 184, 90, 0.22);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, 520px);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 0 10px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--berry-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand span {
  min-width: 0;
}

.brand-tooth {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.sound-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 52px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--plum);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(66, 45, 73, 0.18);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(84, 48, 69, 0.07);
  cursor: pointer;
}

.sound-toggle:hover {
  background: #fff;
  border-color: rgba(66, 45, 73, 0.36);
}

.sound-toggle svg {
  width: 20px;
  height: 20px;
}

.sound-speaker {
  fill: currentColor;
}

.sound-wave,
.sound-muted {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.sound-muted,
.sound-toggle[aria-pressed="false"] .sound-wave {
  display: none;
}

.sound-toggle[aria-pressed="false"] .sound-muted {
  display: block;
}

#sound-label {
  display: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.page-shell {
  width: min(100% - 32px, 520px);
  margin: 12px auto 0;
}

.surprise-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  padding: 20px;
  overflow: hidden;
  background: rgba(255, 250, 246, 0.94);
  border: 1px solid rgba(90, 43, 72, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.surprise-card::before {
  position: absolute;
  top: -60px;
  right: -70px;
  width: 170px;
  height: 170px;
  background: rgba(191, 229, 216, 0.32);
  border-radius: 50%;
  content: "";
}

.visual-column,
.content-column {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.visual-column {
  min-width: 0;
}

.date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  max-width: calc(100% - 24px);
  padding: 7px 11px;
  color: var(--berry-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(123, 49, 93, 0.14);
  border-radius: 999px;
  box-shadow: 0 5px 15px rgba(66, 45, 73, 0.09);
  font-size: clamp(0.66rem, 3vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.reception-scene {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 45%),
    var(--blush-strong);
  border-radius: 23px;
  isolation: isolate;
}

.wall-dots {
  position: absolute;
  inset: 0 0 43%;
  opacity: 0.36;
  background-image: radial-gradient(rgba(123, 49, 93, 0.18) 1.3px, transparent 1.3px);
  background-size: 17px 17px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 25%, #000 80%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 25%, #000 80%, transparent);
}

.plant {
  position: absolute;
  right: 7%;
  bottom: 67px;
  z-index: 2;
  width: 55px;
  height: auto;
  overflow: visible;
}

.plant-stem {
  fill: none;
  stroke: var(--mint-deep);
  stroke-linecap: round;
  stroke-width: 4;
}

.plant-leaf {
  fill: #69a895;
  stroke: var(--mint-deep);
  stroke-linejoin: round;
  stroke-width: 2;
}

.plant-leaf-two {
  fill: #8fc3b3;
}

.plant-leaf-three {
  fill: #9ccdbf;
}

.plant-pot {
  fill: var(--paper);
  stroke: var(--berry);
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.clock {
  position: absolute;
  top: 42px;
  right: 23px;
  width: 43px;
  height: 43px;
  background: var(--paper);
  border: 4px solid rgba(123, 49, 93, 0.78);
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(66, 45, 73, 0.12);
}

.clock::before,
.clock::after {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 4px;
  background: rgba(66, 45, 73, 0.35);
  content: "";
  transform: translateX(-50%);
}

.clock::before {
  top: 3px;
}

.clock::after {
  bottom: 3px;
}

.clock-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 6px;
  height: 6px;
  background: var(--coral-dark);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.clock-hand {
  position: absolute;
  bottom: 50%;
  left: calc(50% - 1px);
  width: 2px;
  background: var(--plum);
  border-radius: 2px;
  transform-origin: 50% 100%;
}

.clock-hour {
  height: 11px;
  transform: rotate(60deg);
}

.clock-minute {
  height: 15px;
  transform: rotate(0);
}

.desk {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 75px;
}

.desk-top {
  position: absolute;
  top: 0;
  left: -2%;
  width: 104%;
  height: 17px;
  background: var(--berry-dark);
  border-radius: 10px 10px 4px 4px;
}

.desk-front {
  position: absolute;
  inset: 14px 3% 0;
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(255, 255, 255, 0.13) 47% 48%, transparent 48%),
    var(--berry);
  border-radius: 0 0 18px 18px;
}

.desk-accent {
  position: absolute;
  top: 34px;
  right: 13%;
  width: 46%;
  height: 9px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.reception-bell {
  position: absolute;
  bottom: 70px;
  left: 13%;
  z-index: 5;
  width: 59px;
  height: auto;
  filter: drop-shadow(0 6px 4px rgba(66, 45, 73, 0.14));
  transform-origin: 50% 100%;
}

.bell-top {
  fill: var(--gold);
  stroke: var(--plum);
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.bell-shine {
  fill: none;
  stroke: #ffe5a7;
  stroke-linecap: round;
  stroke-width: 4;
}

.bell-base,
.bell-button {
  fill: var(--paper);
  stroke: var(--plum);
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.status-plaque {
  position: absolute;
  top: 47%;
  left: 50%;
  z-index: 6;
  display: flex;
  width: min(72%, 250px);
  min-height: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 17px 13px;
  color: var(--plum);
  background: var(--paper);
  border: 2px solid rgba(66, 45, 73, 0.73);
  border-radius: 13px;
  box-shadow: 0 10px 18px rgba(66, 45, 73, 0.19);
  text-align: center;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  transition:
    color 300ms ease,
    background 300ms ease,
    border-color 300ms ease,
    transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.plaque-pin {
  position: absolute;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border: 1px solid rgba(66, 45, 73, 0.45);
  border-radius: 50%;
}

.plaque-pin-left {
  left: 9px;
}

.plaque-pin-right {
  right: 9px;
}

.plaque-small {
  margin-bottom: 4px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plaque-main {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 5vw, 1.35rem);
  line-height: 1.08;
}

body[data-state="READY"] .status-plaque {
  border-color: var(--coral-dark);
  transform: translate(-50%, -50%) rotate(1deg) scale(1.02);
}

body[data-state="COMPLETED"] .status-plaque {
  color: #fff;
  background: var(--berry);
  border-color: var(--berry-dark);
  transform: translate(-50%, -50%) rotate(-2deg) scale(1.06);
}

.reception-phone {
  position: absolute;
  bottom: 66px;
  left: 8%;
  z-index: 5;
  width: 70px;
  height: auto;
  transform-origin: 78% 80%;
}

.reception-phone.phone-settling {
  animation: phone-settle 780ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.celebration-sparkles {
  position: absolute;
  inset: 20% 11% 29%;
  z-index: 7;
  pointer-events: none;
}

.celebration-sparkles span {
  position: absolute;
  display: none;
  width: 13px;
  height: 13px;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
}

.celebration-sparkles span:nth-child(1) {
  top: 7%;
  left: 4%;
}

.celebration-sparkles span:nth-child(2) {
  top: 0;
  right: 4%;
  width: 17px;
  height: 17px;
  background: var(--coral);
}

.celebration-sparkles span:nth-child(3) {
  bottom: 2%;
  left: 1%;
  width: 10px;
  height: 10px;
  background: var(--mint-deep);
}

.celebration-sparkles span:nth-child(4) {
  right: 0;
  bottom: 0;
  background: var(--gold);
}

body[data-state="COMPLETED"] .celebration-sparkles span {
  display: block;
  animation: sparkle-in 700ms both;
}

body[data-state="COMPLETED"] .celebration-sparkles span:nth-child(2) {
  animation-delay: 100ms;
}

body[data-state="COMPLETED"] .celebration-sparkles span:nth-child(3) {
  animation-delay: 180ms;
}

body[data-state="COMPLETED"] .celebration-sparkles span:nth-child(4) {
  animation-delay: 260ms;
}

.content-column {
  align-self: center;
  padding: 0 3px 6px;
}

.hero-kicker {
  margin: 0 0 8px;
  color: var(--berry);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 10vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.99;
  white-space: pre-line;
}

.hero-subtitle {
  max-width: 56ch;
  margin: 15px 0 0;
  color: var(--plum-soft);
  font-size: clamp(0.98rem, 3.8vw, 1.08rem);
}

.status-summary {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.status-summary li {
  position: relative;
  padding: 11px 12px 11px 38px;
  color: var(--berry-dark);
  background: linear-gradient(135deg, #ffffff, #f8f1f5);
  border: 2px solid rgba(123, 49, 93, 0.28);
  border-radius: 13px;
  box-shadow: 0 7px 16px rgba(84, 48, 69, 0.1);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.015em;
}

.status-summary li::before {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 12px;
  height: 12px;
  background: var(--mint-deep);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--mint-deep);
  content: "";
  transform: translateY(-50%);
}

body[data-state="COUNTDOWN"] .status-summary li:first-child::before {
  animation: ready-pulse 1.7s ease-in-out infinite;
}

body[data-state="COUNTDOWN"] .status-summary li:first-child {
  color: #763348;
  background: linear-gradient(135deg, #fff0f0, #ffffff);
  border-color: #d76a78;
  box-shadow: 0 8px 20px rgba(215, 81, 100, 0.2);
}

body[data-state="COUNTDOWN"] .status-summary li:first-child::before {
  background: #d75164;
  box-shadow: 0 0 0 1px #b83c50;
}

body[data-state="COUNTDOWN"] .status-summary li:nth-child(2) {
  color: #6b4912;
  background: linear-gradient(135deg, #fff4d8, #ffffff);
  border-color: #d6a23f;
}

body[data-state="COUNTDOWN"] .status-summary li:nth-child(2)::before {
  background: var(--gold);
  box-shadow: 0 0 0 1px #a56b11;
}

body[data-state="COUNTDOWN"] .status-summary li:nth-child(3) {
  color: #164d45;
  background: linear-gradient(135deg, #e7faf4, #ffffff);
  border-color: #2f8f62;
  box-shadow: 0 8px 20px rgba(47, 143, 98, 0.2);
}

body[data-state="COUNTDOWN"] .status-summary li:nth-child(3)::before {
  background: var(--mint-deep);
  box-shadow: 0 0 0 1px #1d5e52;
}

body[data-state="READY"] .status-summary li {
  background: linear-gradient(135deg, #fff1e7, #ffffff);
  border-color: var(--coral-dark);
  box-shadow: 0 7px 18px rgba(186, 67, 77, 0.15);
}

body[data-state="COMPLETED"] .status-summary li {
  color: #164d45;
  background: linear-gradient(135deg, #e5f8f1, #ffffff);
  border-color: var(--mint-deep);
  box-shadow: 0 7px 18px rgba(43, 115, 101, 0.14);
}

.state-panel {
  margin-top: 23px;
}

.panel-label {
  margin: 0 0 9px;
  color: var(--plum-soft);
  font-size: 0.76rem;
  font-weight: 750;
}

.shift-progress-wrap {
  margin-bottom: 18px;
  padding: 14px;
  background: linear-gradient(145deg, #f5fcff, #ffffff);
  border: 2px solid #89cff0;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(80, 167, 209, 0.15);
}

.shift-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #174c67;
  font-size: 0.8rem;
  font-weight: 850;
}

.shift-progress-copy strong {
  font-variant-numeric: tabular-nums;
}

.shift-progress {
  position: relative;
  height: 15px;
  overflow: hidden;
  background: #dff4ff;
  border: 1px solid #71b9dc;
  border-radius: 999px;
  box-shadow: inset 0 2px 5px rgba(36, 115, 153, 0.14);
}

.shift-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background:
    linear-gradient(90deg, #a9ddf5, #65bce7 70%, #bce9ff);
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(101, 188, 231, 0.65);
  transition: width 500ms linear;
}

.shift-progress-fill::after {
  position: absolute;
  inset: 2px 5px auto;
  height: 3px;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  content: "";
}

.countdown {
  display: grid;
  grid-template-columns: minmax(58px, 1fr) auto minmax(58px, 1fr) auto minmax(58px, 1fr);
  align-items: start;
  gap: 4px;
  max-width: 500px;
}

.countdown-days-summary {
  margin: 0 0 8px;
  color: var(--berry-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.time-unit {
  min-width: 0;
  padding: 10px 3px 8px;
  background: var(--paper-strong);
  border: 1px solid rgba(123, 49, 93, 0.14);
  border-radius: 13px;
  box-shadow: 0 7px 16px rgba(84, 48, 69, 0.07);
  text-align: center;
}

.time-unit strong {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.28rem, 7vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.time-unit span {
  display: block;
  margin-top: 5px;
  color: var(--plum-soft);
  font-size: clamp(0.55rem, 2.5vw, 0.68rem);
  font-weight: 700;
}

.time-separator {
  padding-top: 8px;
  color: var(--coral-dark);
  font-size: 1.42rem;
  font-weight: 900;
}

.countdown-message {
  min-height: 4.2em;
  margin: 13px 2px 0;
  color: var(--berry-dark);
  font-size: 0.9rem;
  font-weight: 650;
}

.compact-button {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
}

.system-message {
  margin-top: 12px;
  padding: 22px 18px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.18), transparent 25%),
    linear-gradient(145deg, #9c233d, #5d1530);
  border: 3px solid #f0b85a;
  border-radius: 17px;
  box-shadow: 0 14px 30px rgba(93, 21, 48, 0.3);
  text-align: center;
  animation: alert-pop 420ms cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
}

.system-message strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.55rem, 8vw, 2.25rem);
  letter-spacing: 0.035em;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.24);
}

.system-message p {
  margin: 0;
  padding-top: 12px;
  color: #fff8df;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
}

.ready-callout {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 13px 14px;
  color: var(--berry-dark);
  background: #f9e5dc;
  border: 1px solid rgba(186, 67, 77, 0.22);
  border-radius: 14px;
}

.ready-callout p {
  margin: 0;
  font-weight: 700;
}

.ready-pulse {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  margin-top: 6px;
  background: var(--coral-dark);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--coral-dark);
  animation: ready-pulse 1.7s ease-in-out infinite;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 15px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-button {
  color: #fff;
  background: var(--berry);
  border: 2px solid var(--berry);
  box-shadow: 0 10px 22px rgba(93, 33, 71, 0.24);
}

.primary-button:hover {
  background: var(--berry-dark);
  border-color: var(--berry-dark);
  box-shadow: 0 13px 27px rgba(93, 33, 71, 0.3);
  transform: translateY(-2px);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.primary-button svg {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.action-hint {
  margin: 10px 2px 0;
  color: var(--plum-soft);
  font-size: 0.76rem;
  text-align: center;
}

.completed-panel {
  padding-top: 3px;
}

.final-ribbon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.final-ribbon span {
  width: 33px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.final-ribbon svg {
  width: 27px;
  height: 27px;
  fill: var(--gold);
  stroke: var(--berry-dark);
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.completed-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 6.2vw, 1.8rem);
  line-height: 1.15;
}

.completed-panel h2:focus {
  outline: 4px solid var(--focus);
  outline-offset: 5px;
  border-radius: 4px;
}

.final-message {
  margin: 10px 0 13px;
  color: var(--plum-soft);
  white-space: pre-line;
}

.report-card,
.after-shift-plan,
.closing-sign {
  margin-top: 20px;
}

.report-card {
  padding: 16px;
  background: rgba(191, 229, 216, 0.34);
  border: 1px solid rgba(43, 115, 101, 0.28);
  border-radius: 16px;
}

.report-card h3,
.after-shift-plan h3,
.closing-sign h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.report-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-list li {
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(43, 115, 101, 0.3);
  font-size: 0.82rem;
}

.report-result {
  margin: 12px 0 0;
  color: var(--berry-dark);
  font-size: 0.86rem;
  font-weight: 850;
}

.final-list {
  display: grid;
  gap: 7px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.after-shift-plan .final-list li {
  padding-left: 0;
}

.after-shift-plan .final-list li::before {
  display: none;
}

.closing-sign {
  padding: 17px;
  color: #fff;
  background: var(--berry);
  border: 2px solid var(--berry-dark);
  border-radius: 16px;
  text-align: center;
}

.closing-sign p {
  margin: 0;
  font-size: 0.86rem;
  white-space: pre-line;
}

.closing-sign h3 {
  color: #fff;
}

.final-list li {
  position: relative;
  padding-left: 25px;
  font-size: 0.9rem;
  font-weight: 650;
}

.final-list li::before {
  position: absolute;
  top: 0.44em;
  left: 4px;
  width: 9px;
  height: 9px;
  background: var(--mint-deep);
  border-radius: 50% 50% 50% 0;
  content: "";
  transform: rotate(-45deg);
}

.secondary-button {
  color: var(--berry-dark);
  background: transparent;
  border: 2px solid var(--berry);
}

.completed-panel > .secondary-button {
  margin-top: 20px;
}

.secondary-button:hover {
  color: #fff;
  background: var(--berry);
  box-shadow: 0 10px 20px rgba(93, 33, 71, 0.16);
  transform: translateY(-2px);
}

.secondary-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.after-work-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 4px 0;
  padding: 14px;
  color: var(--plum);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(66, 45, 73, 0.1);
  border-radius: var(--radius-lg);
}

.after-work-icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  background: var(--mint);
  border-radius: 16px;
}

.after-work-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--berry-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.after-work-icon img {
  width: 34px;
  height: 34px;
}

.after-work-icon .heart {
  fill: var(--coral);
  stroke-width: 1.5;
}

.after-work-card h2 {
  margin: 0 0 2px;
  font-size: 0.85rem;
}

.after-work-card p {
  margin: 0;
  color: var(--plum-soft);
  font-size: 0.78rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100% - 32px, 520px);
  margin: 0 auto;
  padding: 20px 0 max(24px, env(safe-area-inset-bottom));
  color: #6a596f;
  font-size: 0.7rem;
  text-align: center;
}

.footer-dot {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  background: var(--coral-dark);
  border-radius: 50%;
}

.test-panel {
  position: fixed;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 200;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 20px);
  padding: 12px;
  overflow: auto;
  color: #fff;
  background: rgba(48, 33, 52, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
}

.test-panel > div:first-child {
  display: grid;
  gap: 1px;
}

.test-panel strong {
  font-size: 0.77rem;
}

.test-panel span {
  color: #eadfe8;
  font-size: 0.67rem;
}

.test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.test-actions button {
  min-height: 52px;
  padding: 6px 9px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 750;
  cursor: pointer;
}

.test-actions button:hover,
.test-actions button[aria-pressed="true"] {
  color: var(--plum);
  background: #fff;
}

body.celebration-flash .surprise-card {
  animation: card-celebration 800ms ease both;
}

body.celebration-flash .reception-bell {
  animation: bell-ring 650ms ease both;
}

@keyframes ready-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px var(--coral-dark), 0 0 0 4px rgba(186, 67, 77, 0);
  }
  50% {
    box-shadow: 0 0 0 2px var(--coral-dark), 0 0 0 10px rgba(186, 67, 77, 0.14);
  }
}

@keyframes sparkle-in {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0);
  }
  65% {
    opacity: 1;
    transform: scale(1.35) rotate(150deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(220deg);
  }
}

@keyframes card-celebration {
  0%,
  100% {
    box-shadow: var(--shadow);
  }
  35% {
    box-shadow: 0 25px 80px rgba(123, 49, 93, 0.28), 0 0 0 8px rgba(240, 184, 90, 0.16);
  }
}

@keyframes bell-ring {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-10deg);
  }
  40% {
    transform: rotate(9deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  80% {
    transform: rotate(4deg);
  }
}

@keyframes phone-settle {
  0% {
    transform: translate(-22px, -25px) rotate(-22deg);
  }
  55% {
    transform: translate(3px, 2px) rotate(5deg);
  }
  75% {
    transform: translate(-2px, -1px) rotate(-2deg);
  }
  100% {
    transform: translate(0, 0) rotate(0);
  }
}

@keyframes alert-pop {
  0% {
    opacity: 0;
    transform: scale(0.82) rotate(-2deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.035) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes sign-turn {
  0% {
    opacity: 0.45;
    transform: translate(-50%, -50%) rotateY(90deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotateY(0) rotate(-2deg) scale(1.04);
  }
}

body.celebration-flash .status-plaque {
  animation: sign-turn 650ms ease both;
}

@media (min-width: 390px) {
  .page-shell {
    width: min(100% - 32px, 520px);
  }

  .surprise-card {
    padding: 25px;
  }

  #sound-label {
    display: inline;
  }

  .countdown {
    gap: 6px;
  }
}

@media (max-width: 389px) {
  .topbar {
    gap: 8px;
  }

  .brand {
    max-width: calc(100% - 60px);
    flex: 1 1 auto;
    font-size: 0.61rem;
    letter-spacing: 0.1em;
    line-height: 1.2;
  }

  .brand span {
    display: block;
    max-width: none;
    white-space: normal;
  }

  .sound-toggle {
    width: 52px;
    justify-content: center;
    padding: 8px;
  }
}

@media (min-width: 720px) {
  .topbar {
    padding-top: 28px;
  }

  .page-shell {
    margin-top: 18px;
  }

  .surprise-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    min-height: 0;
    padding: 32px;
  }

  .reception-scene {
    min-height: 250px;
  }

  .plant {
    right: 8%;
    bottom: 79px;
    width: 65px;
  }

  .clock {
    top: 48px;
    right: 30px;
    width: 50px;
    height: 50px;
  }

  .desk {
    height: 87px;
  }

  .reception-bell {
    bottom: 82px;
    left: 12%;
    width: 66px;
  }

  .reception-phone {
    bottom: 79px;
    width: 80px;
  }

  .status-plaque {
    width: min(72%, 290px);
    min-height: 84px;
    padding: 17px 20px 15px;
  }

  .plaque-main {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  }

  .content-column {
    padding: 8px 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 7vw, 3.4rem);
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .action-hint {
    max-width: 340px;
  }

  .after-work-card {
    max-width: 520px;
    margin: 18px auto 0;
    padding: 16px 19px;
  }

  .test-panel {
    right: 18px;
    bottom: 18px;
    left: auto;
    width: min(580px, calc(100% - 36px));
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

@media (min-width: 1000px) {
  .surprise-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .reception-scene {
    min-height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #confetti-canvas {
    display: none;
  }
}
