:root {
  --bg-gradient-start: #ffdde1;
  --bg-gradient-end: #ee9ca7;
  --accent: #ff5c9a;
  --accent-soft: rgba(255, 92, 154, 0.12);
  --accent-strong: #ff2f7d;
  --card-bg: rgba(255, 255, 255, 0.92);
  --text-main: #40223b;
  --text-soft: #6d4b63;
  --shadow-soft: 0 18px 45px rgba(148, 46, 92, 0.25);
  --radius-lg: 28px;
  --radius-md: 18px;
  --transition-fast: 0.2s ease-out;
  --transition-normal: 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text',
    'Segoe UI', sans-serif;
  color: var(--text-main);
  overflow-x: hidden;
}

.background-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, #fff1f3 0, transparent 50%),
    radial-gradient(circle at 100% 100%, #ffe5f3 0, transparent 50%),
    linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  z-index: -2;
}

.floating-hearts::before,
.floating-hearts::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(255, 255, 255, 0.14) 0,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.16) 0,
      transparent 45%
    );
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

.kiss-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 25;
  pointer-events: none;
}

.kiss-overlay.visible {
  display: flex;
}

.kiss-icon {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #fff7fb, #ffd1e8 55%, #ff8ec4);
  box-shadow: 0 28px 70px rgba(172, 45, 104, 0.75);
  position: relative;
  overflow: hidden;
  animation: kissFly 1.1s ease-out forwards;
}

.kiss-icon::before,
.kiss-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.kiss-icon::before {
  width: 110px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb6c8, #ff6f91);
  transform: translate(-55%, -40%) rotate(-8deg);
  box-shadow: 0 10px 25px rgba(171, 61, 109, 0.6);
}

.kiss-icon::after {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 6px solid #ffe3ff;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: translate(5%, -58%) rotate(35deg);
}

@keyframes kissFly {
  0% {
    transform: scale(0.2) translateY(40px);
    opacity: 0;
  }
  35% {
    transform: scale(1.05) translateY(0);
    opacity: 1;
  }
  70% {
    transform: scale(0.98) translateY(-8px);
    opacity: 1;
  }
  100% {
    transform: scale(1.1) translateY(-20px);
    opacity: 0;
  }
}

.screen {
  min-height: 100vh;
  padding: 24px 16px 32px;
  display: none;
}

.screen.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.card {
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  max-width: 960px;
  width: 100%;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.intro-card {
  text-align: center;
  padding: 28px 20px 32px;
}

#intro-screen.screen.active {
  align-items: center;
}

.intro-heart-wrapper {
  margin-bottom: 18px;
}

.heart-placeholder {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 30% 20%, #fff3f7 0, #ffc0d9 40%, #ff8bb8);
  box-shadow: 0 16px 40px rgba(217, 79, 126, 0.45);
  position: relative;
  overflow: hidden;
}

.heart {
  position: relative;
  width: 80px;
  height: 70px;
  transform: scale(1) rotate(-12deg);
  transform-origin: center;
  animation: heartbeat 1.1s infinite;
}

.heart::before,
.heart::after {
  content: '';
  position: absolute;
  top: 0;
  width: 40px;
  height: 64px;
  border-radius: 40px 40px 0 0;
  background: linear-gradient(145deg, #ff70a3, #ff2f7d);
}

.heart::before {
  left: 40px;
  transform: rotate(45deg);
  transform-origin: 0 100%;
}

.heart::after {
  left: 0;
  transform: rotate(-45deg);
  transform-origin: 100% 100%;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1) rotate(-12deg);
  }
  20% {
    transform: scale(1.13) rotate(-12deg);
  }
  40% {
    transform: scale(1) rotate(-12deg);
  }
  60% {
    transform: scale(1.18) rotate(-12deg);
  }
}

.intro-question {
  font-size: 1.8rem;
  margin: 16px 0 18px;
}

.intro-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hint-text {
  font-size: 0.85rem;
  color: var(--text-soft);
  opacity: 0.9;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-fast), color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 61, 141, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 16px 32px rgba(255, 61, 141, 0.7);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 6px 14px rgba(255, 61, 141, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(150, 83, 120, 0.22);
}

.btn-ghost:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(150, 83, 120, 0.2);
}

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

.main-shell {
  width: 100%;
  max-width: 1040px;
  margin: 18px auto 0;
}

.gift-box-label {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--text-soft);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(219, 92, 142, 0.35);
}

.countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.85rem;
}

.countdown-timer {
  font-weight: 600;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(196, 72, 120, 0.4);
}

.top-menu {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.menu-tab {
  border-radius: 999px;
  border: none;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-soft);
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-fast),
    transform var(--transition-fast), color var(--transition-fast);
}

.menu-tab.active {
  background: rgba(255, 255, 255, 1);
  color: var(--accent-strong);
}

.menu-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.95);
}

.content {
  max-width: 960px;
  margin: 0 auto;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.fade-in {
  animation: fadeInUp 0.5s var(--transition-normal);
}

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

h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.section-description {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.compliment-text {
  min-height: 64px;
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--text-soft);
}

.input {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  font-size: 0.95rem;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  min-width: 0;
}

.input:focus {
  box-shadow: 0 0 0 2px rgba(255, 87, 146, 0.3);
}

.placeholder-image {
  border-radius: var(--radius-md);
  background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.2)
    ),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.7) 0,
      rgba(255, 255, 255, 0.7) 2px,
      rgba(255, 255, 255, 0.1) 2px,
      rgba(255, 255, 255, 0.1) 6px
    );
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: 0.85rem;
}

.slot-img,
.intro-heart-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.puzzle-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.puzzle-image {
  width: 100%;
}

.puzzle-text {
  margin: 4px 0 0;
}

.puzzle-hint-btn {
  margin-top: 6px;
  font-size: 0.8rem;
  padding-inline: 12px;
}

.puzzle-hint-text {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-soft);
  font-style: italic;
}

.puzzle-input-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: nowrap;
}

.puzzle-input-row .input {
  flex: 1;
}

.puzzle-progress {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.puzzle-feedback {
  font-size: 0.9rem;
  font-weight: 500;
}

.puzzle-feedback.correct {
  color: #1ba34a;
}

.puzzle-feedback.wrong {
  color: #c92a4b;
}

.bouquet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 14px;
}

.wrapper-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.wrapper-label {
  color: var(--text-soft);
}

.wrapper-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wrapper-option {
  border-radius: 999px;
  border: none;
  padding: 4px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-soft);
  transition: background-color var(--transition-fast),
    color var(--transition-fast), transform var(--transition-fast);
}

.wrapper-option:hover {
  background: #fff;
  transform: translateY(-1px);
}

.wrapper-option.selected {
  background: var(--accent);
  color: #fff;
}

.result-card {
  text-align: center;
}

.result-heart-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.small-heart {
  width: 90px;
  height: 90px;
  box-shadow: 0 10px 26px rgba(217, 79, 126, 0.35);
}

.result-title {
  margin-top: 0;
  margin-bottom: 8px;
}

.receipt {
  margin: 14px auto 10px;
  max-width: 420px;
  text-align: left;
  background: #fffdf8;
  border-radius: 20px;
  padding: 14px 16px 12px;
  border: 1px dashed rgba(210, 169, 150, 0.8);
  box-shadow: 0 14px 32px rgba(183, 118, 113, 0.28);
  position: relative;
  overflow: hidden;
}

.receipt::before,
.receipt::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background-image: radial-gradient(
    circle at 10px -4px,
    #f7e0d0 10px,
    transparent 11px
  );
  background-size: 20px 10px;
}

.receipt::before {
  top: -5px;
}

.receipt::after {
  bottom: -5px;
  transform: scaleY(-1);
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: #8c5a53;
}

.receipt-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.receipt-date {
  font-variant-numeric: tabular-nums;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.86rem;
  border-top: 1px dashed rgba(218, 183, 160, 0.6);
}

.receipt-line span:last-child {
  text-align: right;
  color: var(--text-soft);
}

.receipt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(189, 138, 115, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
}

.receipt-total-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.receipt-total-value {
  color: var(--accent-strong);
}

.result-note {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.flowers-panel h3,
.bouquet-drop-area-wrapper h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

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

.flower-item {
  cursor: grab;
}

.flower-item:active {
  cursor: grabbing;
}

.flower-placeholder {
  padding: 10px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(164, 74, 120, 0.25);
}

.flower-placeholder.rose {
  border-left: 5px solid #ff4b93;
}

.flower-placeholder.tulip {
  border-left: 5px solid #ff9c52;
}

.flower-placeholder.daisy {
  border-left: 5px solid #ffc857;
}

.flower-placeholder.peony {
  border-left: 5px solid #9b5de5;
}

.bouquet-drop-area {
  height: 190px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-fast),
    transform var(--transition-fast), border-color var(--transition-fast);
}

.bouquet-drop-area.drag-over {
  box-shadow: 0 16px 40px rgba(186, 74, 129, 0.4);
  transform: translateY(-2px);
}

.bouquet-counter {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.bouquet-flower-badge {
  position: absolute;
  border-radius: 999px;
  padding: 0;
  font-size: 2.4rem;
  line-height: 1;
  color: #fff;
  background: transparent;
  text-shadow: 0 4px 10px rgba(199, 66, 120, 0.7);
  animation: bouquetPop 0.35s var(--transition-normal);
}

@keyframes bouquetPop {
  from {
    transform: scale(0.6) translateY(8px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.option-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast),
    background-color var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(186, 74, 129, 0.4);
}

.option-card.selected {
  border-color: rgba(255, 95, 151, 0.9);
  box-shadow: 0 12px 32px rgba(199, 66, 120, 0.6);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 234, 244, 0.95)
  );
}

.option-image {
  width: 100%;
  margin-bottom: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.survey-step {
  display: none;
}

.survey-step.active {
  display: block;
}

.survey-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.gift-choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 10px 0 14px;
}

.gift-choice-block h4 {
  margin: 0 0 8px;
}

.gift-dnd-area {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}

.gift-items-list {
  min-height: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gift-item {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(182, 74, 128, 0.35);
  font-size: 0.86rem;
  cursor: grab;
}

.gift-item:active {
  cursor: grabbing;
}

.gift-box {
  height: 130px;
  transition: box-shadow var(--transition-fast),
    transform var(--transition-fast), border-color var(--transition-fast);
}

.gift-box.drag-over {
  box-shadow: 0 16px 42px rgba(191, 69, 118, 0.5);
  transform: translateY(-2px);
}

.survey-result {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.8);
  display: none;
}

.survey-result.visible {
  display: block;
}

.survey-summary {
  margin-top: 0;
}

.survey-congrats {
  color: var(--text-soft);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 6, 22, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.modal-overlay.visible {
  display: flex;
}

.modal {
  background: var(--card-bg);
  padding: 20px 18px 18px;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(120, 34, 78, 0.65);
  max-width: 360px;
  width: 90%;
  text-align: center;
  animation: fadeInUp 0.4s var(--transition-normal);
}

.modal p {
  margin-top: 0;
  margin-bottom: 14px;
}

/* Оверлей мини-игр */
.minigame-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 0 0, #fff1f7 0, transparent 50%),
    radial-gradient(circle at 100% 100%, #ffe9ff 0, transparent 50%),
    rgba(24, 5, 25, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.minigame-overlay.visible {
  display: flex;
}

.minigame-window {
  width: 100%;
  height: 100%;
  max-width: 900px;
  max-height: 700px;
  background: radial-gradient(circle at 50% 0, #fff 0, #ffe9f6 55%, #ffd4f2 100%);
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(107, 30, 82, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.minigame-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 188, 221, 0.8);
}

.minigame-root {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.minigame-exit-btn {
  padding-inline: 14px;
  font-size: 0.85rem;
}

/* Дополнительные элементы шапки */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Тамагочи */

.tama-card {
  margin-top: 4px;
}

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

.tama-level-info {
  flex: 1;
  min-width: 220px;
}

.tama-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  margin: 4px 0;
}

.tama-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7bb0, #ffcf71);
  transition: width 0.4s var(--transition-normal);
}

.tama-xp-label {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.tama-hearts-inline {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  box-shadow: 0 8px 22px rgba(188, 73, 126, 0.32);
}

.tama-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
}

.tama-aquarium-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tama-aquarium {
  position: relative;
  border-radius: 26px;
  height: 220px;
  background: linear-gradient(180deg, #fdfbff 0%, #f0e8ff 35%, #ffe4f5 100%);
  box-shadow: 0 16px 40px rgba(149, 79, 147, 0.35);
  overflow: hidden;
}

.tama-bubbles::before,
.tama-bubbles::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(255, 255, 255, 0.6) 0,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.6) 0,
      transparent 40%
    );
  opacity: 0.7;
  pointer-events: none;
}

.tama-shrimp,
.tama-leech {
  position: absolute;
  width: 56px;
  height: 32px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(144, 62, 120, 0.35);
}

.tama-shrimp {
  background: linear-gradient(135deg, #ff9aa2, #ff6f91);
}

.tama-leech {
  background: linear-gradient(135deg, #a18cd1, #6c5ce7);
}

.tama-arcade-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  pointer-events: none;
}

.tama-arcade-info {
  width: 100%;
  padding: 10px 12px;
  background: linear-gradient(
    0deg,
    rgba(21, 7, 39, 0.68),
    rgba(21, 7, 39, 0.0)
  );
  color: #fff9ff;
  font-size: 0.78rem;
  pointer-events: auto;
}

.tama-arcade-info p {
  margin: 0 0 6px;
}

.tama-arcade-score {
  margin: 4px 0 0;
  font-size: 0.8rem;
}

.tama-actions-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.tama-action {
  flex: 1;
  border-radius: 18px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(145, 70, 122, 0.35);
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tama-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(145, 70, 122, 0.45);
}

.tama-action:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(145, 70, 122, 0.4);
}

.tama-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #fff, #ffd1e8);
}

.action-feed {
  box-shadow: 0 0 0 3px rgba(255, 143, 163, 0.6);
}
.action-feet {
  box-shadow: 0 0 0 3px rgba(197, 143, 255, 0.6);
}
.action-matcha {
  box-shadow: 0 0 0 3px rgba(145, 233, 181, 0.6);
}
.action-walk {
  box-shadow: 0 0 0 3px rgba(255, 210, 133, 0.6);
}
.action-surprise {
  box-shadow: 0 0 0 3px rgba(255, 198, 255, 0.6);
}

.tama-actions-note {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.tama-side-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tama-tabs {
  display: flex;
  gap: 6px;
}

.tama-tab {
  flex: 1;
  border-radius: 999px;
  border: none;
  padding: 6px 10px;
  font-size: 0.86rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-soft);
}

.tama-tab.active {
  background: var(--accent);
  color: #fff;
}

.tama-tab-panel {
  display: none;
}

.tama-tab-panel.active {
  display: block;
}

.tama-mini-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 8px 20px rgba(184, 98, 133, 0.28);
  font-size: 0.86rem;
}

.tama-mini-card h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.tama-mini-note {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.tama-mini-btn {
  margin-top: 4px;
  font-size: 0.82rem;
  padding-inline: 12px;
}

.tama-quiz-info {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.tama-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.tama-shop-item {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 8px;
  font-size: 0.8rem;
  position: relative;
  box-shadow: 0 8px 20px rgba(164, 92, 124, 0.28);
}

.tama-shop-icon {
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe6f0, #fff);
  margin-bottom: 6px;
}

.tama-shop-lock {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--text-soft);
}

@media (max-width: 720px) {
  .screen {
    padding: 18px 12px 24px;
  }

  .card {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .intro-question {
    font-size: 1.5rem;
  }

  .heart-placeholder {
    width: 130px;
    height: 130px;
  }

  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .countdown {
    align-items: flex-start;
  }

  .puzzle-input-row {
    flex-direction: column;
  }

  .bouquet-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wrapper-color-row {
    align-items: flex-start;
  }

  .options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-choices {
    grid-template-columns: minmax(0, 1fr);
  }

  .gift-dnd-area {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .screen {
    padding-top: 32px;
  }

  .intro-card {
    padding: 36px 32px 40px;
  }

  .card {
    padding: 26px 26px 24px;
  }

  .intro-question {
    font-size: 2.1rem;
  }
}

