/* ==========================================================
   DELISH KITCHEN Quiz — styles
   Scoped to .dk-* classes. Mobile-first, max 480px.
   ========================================================== */

:root {
  --dk-yellow: #ffe02b;
  --dk-yellow-deep: #ffc800;
  --dk-yellow-soft: #fff2a3;
  --dk-ink: #1a1a1a;
  --dk-ink-soft: #4a4a4a;
  --dk-ink-mute: #8a8a8a;
  --dk-cream: #fff8d6;
  --dk-paper: #ffffff;
  --dk-red: #e53935;
  --dk-blue: #2b6bff;
  --dk-green: #2e7d32;
  --dk-radius: 20px;
  --dk-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --dk-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--dk-yellow);
  color: var(--dk-ink);
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    "Yu Gothic",
    "YuGothic",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

button {
  font-family: inherit;
}

/* ============ App shell / phone viewport ============ */
.dk-app {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.dk-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.dk-bg-dot {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}
.dk-bg-dot-1 {
  width: 360px;
  height: 360px;
  background: #ffd84a;
  top: -120px;
  right: -100px;
}
.dk-bg-dot-2 {
  width: 300px;
  height: 300px;
  background: #ffe97a;
  bottom: -140px;
  left: -80px;
}
.dk-bg-dot-3 {
  width: 240px;
  height: 240px;
  background: #fff49c;
  top: 35%;
  left: 40%;
}

.dk-phone {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dk-phone::-webkit-scrollbar {
  display: none;
}

/* Transition wrapper — each screen fades + slides in */
.dk-screen-anim {
  animation: dk-screen-in 0.42s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform, opacity;
}
@keyframes dk-screen-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dk-screen {
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100svh;
}

/* ============ Top bar ============ */
.dk-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}
.dk-topbar-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--dk-ink-soft);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============ START SCREEN ============ */
.dk-start-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px 0;
}
.dk-start-logo {
  margin-bottom: 18px;
}
.dk-start-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--dk-ink-soft);
  background: rgba(0, 0, 0, 0.06);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.dk-start-h1 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--dk-ink);
  letter-spacing: -0.01em;
  /* Japanese text: only break at explicit spaces, never mid-word */
  word-break: keep-all;
  overflow-wrap: break-word;
}
.dk-start-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dk-ink-soft);
  margin: 0;
  text-wrap: pretty;
}
.dk-start-foods {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.dk-start-foods span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: dk-bob 2.6s ease-in-out infinite;
}
.dk-start-food-ico {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.14),
    inset 0 0 0 2px rgba(0, 0, 0, 0.04);
}
.dk-start-food-ico img {
  width: 48px;
  height: 48px;
  /* original SVG fill is #8E8E93 — turn it deep ink-grey for contrast on white */
  filter: brightness(0) saturate(100%) invert(12%) sepia(0%) saturate(0%)
    hue-rotate(0deg);
}
.dk-start-foods span:nth-child(1) {
  animation-delay: 0s;
}
.dk-start-foods span:nth-child(2) {
  animation-delay: 0.2s;
}
.dk-start-foods span:nth-child(3) {
  animation-delay: 0.4s;
}
.dk-start-foods span:nth-child(4) {
  animation-delay: 0.6s;
}
.dk-start-foods span:nth-child(5) {
  animation-delay: 0.8s;
}
@keyframes dk-bob {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-6px) rotate(var(--r, 0deg));
  }
}

.dk-start-info {
  background: var(--dk-paper);
  border-radius: var(--dk-radius);
  padding: 6px 18px;
  box-shadow: var(--dk-shadow);
  margin-top: 4px;
}
.dk-start-info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}
.dk-start-info-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--dk-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--dk-ink);
  flex-shrink: 0;
}
.dk-start-info-k {
  font-size: 10px;
  font-weight: 700;
  color: var(--dk-ink-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.dk-start-info-v {
  font-size: 14px;
  font-weight: 700;
  color: var(--dk-ink);
  margin-top: 2px;
}

.dk-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}
.dk-divider-soft {
  background: rgba(0, 0, 0, 0.06);
  margin: 14px 0;
}

.dk-start-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dk-ink-soft);
  margin-top: auto;
  padding-top: 14px;
  letter-spacing: 0.5px;
}
.dk-start-footer strong {
  font-weight: 900;
  color: var(--dk-ink);
}
img.dk-wordmark {
  display: inline-block;
  height: 18px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  /* The PNG ships in greyscale; nudge it to pure ink */
  filter: brightness(0) saturate(100%);
  opacity: 0.85;
}

/* ============ Primary / Ghost buttons ============ */
.dk-primary-btn {
  width: 100%;
  background: var(--dk-ink);
  color: var(--dk-yellow);
  border: none;
  border-radius: 999px;
  padding: 18px 24px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow:
    0 8px 0 rgba(0, 0, 0, 0.15),
    0 12px 28px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
  will-change: transform;
}
.dk-primary-btn:hover {
  transform: translateY(-1px);
}
.dk-primary-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.15),
    0 6px 16px rgba(0, 0, 0, 0.15);
}

.dk-ghost-btn {
  width: 100%;
  background: transparent;
  color: var(--dk-ink);
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.dk-ghost-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* ============ QUIZ SCREEN ============ */
.dk-quiz-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dk-quiz-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dk-quiz-counter {
  font-family:
    "SF Pro Display",
    -apple-system,
    sans-serif;
  color: var(--dk-ink);
}
.dk-quiz-counter strong {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.dk-quiz-counter span {
  font-size: 13px;
  font-weight: 700;
  color: var(--dk-ink-mute);
  margin-left: 2px;
}

.dk-qcard {
  background: var(--dk-paper);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--dk-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dk-qcard-media {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff2a3 0%, #ffe02b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.dk-qcard-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(0, 0, 0, 0.06) 1.5px,
    transparent 1.5px
  );
  background-size: 14px 14px;
  opacity: 0.7;
}
.dk-qcard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.dk-qcard-emoji {
  font-size: 72px;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.15));
  position: relative;
  z-index: 1;
  animation: dk-wobble 3s ease-in-out infinite;
}
@keyframes dk-wobble {
  0%,
  100% {
    transform: rotate(-4deg) scale(1);
  }
  50% {
    transform: rotate(4deg) scale(1.04);
  }
}
.dk-qcard-text {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 800;
  margin: 0;
  color: var(--dk-ink);
  text-wrap: pretty;
}

/* ============ Choices ============ */
.dk-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dk-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--dk-paper);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dk-ink);
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.12s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
}
.dk-choice:hover:not(:disabled) {
  border-color: var(--dk-ink);
  transform: translateY(-1px);
}
.dk-choice:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04);
}
.dk-choice-letter {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dk-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: var(--dk-ink);
  transition: background 0.2s ease;
}
.dk-choice-label {
  flex: 1;
}
.dk-choice-mark {
  position: absolute;
  right: 16px;
  font-size: 24px;
  font-weight: 900;
  animation: dk-pop 0.4s cubic-bezier(0.2, 1.4, 0.3, 1);
}
.dk-choice-mark-ok {
  color: var(--dk-red);
}
.dk-choice-mark-ng {
  color: var(--dk-blue);
}

/* post-reveal states */
.dk-choice-right {
  background: #ffe9e7;
  border-color: var(--dk-red);
  padding-right: 48px;
}
.dk-choice-right .dk-choice-letter {
  background: var(--dk-red);
  color: #fff;
}
.dk-choice-wrong {
  background: #edf1ff;
  border-color: var(--dk-blue);
  padding-right: 48px;
  opacity: 0.95;
}
.dk-choice-wrong .dk-choice-letter {
  background: var(--dk-blue);
  color: #fff;
}
.dk-choice-dim {
  opacity: 0.45;
  cursor: default;
}
.dk-choice:disabled {
  cursor: default;
}

@keyframes dk-pop {
  from {
    transform: scale(0.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============ Reveal panel (below choices) ============ */
.dk-reveal {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: dk-screen-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.dk-reveal-stamp {
  text-align: center;
  padding-top: 4px;
}
.dk-reveal-verdict {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-top: -10px;
  animation: dk-screen-in 0.45s 0.2s both;
}

.dk-reveal-card {
  background: var(--dk-paper);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--dk-shadow);
}
.dk-reveal-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dk-reveal-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  color: var(--dk-ink);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.dk-reveal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dk-ink);
}
.dk-reveal-dot-alt {
  background: var(--dk-yellow-deep);
  box-shadow: 0 0 0 3px rgba(255, 200, 0, 0.25);
}
.dk-reveal-section-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--dk-ink);
  margin: 0;
  text-wrap: pretty;
}
.dk-reveal-trivia {
  background: var(--dk-cream);
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--dk-ink-soft);
  font-weight: 600;
}

/* ============ Stamp animation ============ */
.dk-stamp-draw {
  animation: dk-draw 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) 0.1s forwards;
}
.dk-stamp-draw-2 {
  animation-delay: 0.5s;
}
@keyframes dk-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.dk-stamp-wrap {
  animation: dk-pop-in 0.4s cubic-bezier(0.2, 1.4, 0.3, 1);
}
@keyframes dk-pop-in {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============ RESULT SCREEN ============ */
.dk-screen-result {
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}
.dk-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  position: relative;
  z-index: 1;
}
.dk-result-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--dk-ink-soft);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dk-result-scoreblock {
  background: var(--dk-ink);
  color: var(--dk-yellow);
  border-radius: 24px;
  padding: 24px 20px 18px;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--dk-shadow-lg);
}
.dk-result-score-row {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.dk-result-score-num {
  font-size: 96px;
  line-height: 0.9;
  font-weight: 900;
  font-family:
    "SF Pro Display",
    -apple-system,
    sans-serif;
  letter-spacing: -0.04em;
  animation: dk-count 0.8s cubic-bezier(0.2, 1.4, 0.3, 1);
}
.dk-result-score-total {
  font-size: 32px;
  font-weight: 900;
  opacity: 0.8;
  color: #fff;
}
.dk-result-score-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-top: 4px;
  opacity: 0.9;
}
.dk-result-answers {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.dk-result-ansdot {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 48px;
}
.dk-result-ansmark {
  font-size: 18px;
  font-weight: 900;
}
.dk-result-ansdot-ok {
  background: rgba(255, 224, 43, 0.25);
  color: var(--dk-yellow);
}
.dk-result-ansdot-ng {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}
.dk-result-ansdot-ok .dk-result-ansmark {
  color: var(--dk-yellow);
}
.dk-result-ansdot-ng .dk-result-ansmark {
  color: rgba(255, 255, 255, 0.7);
}

@keyframes dk-count {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.dk-result-card {
  background: var(--dk-paper);
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--dk-shadow);
  position: relative;
  z-index: 1;
}
.dk-result-card-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--dk-ink-mute);
  margin-bottom: 10px;
}
.dk-result-card-emoji {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 6px;
  animation: dk-wobble 3s ease-in-out infinite;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.12));
}
.dk-result-card-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--dk-ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.dk-result-card-comment {
  font-size: 14px;
  color: var(--dk-ink-soft);
  font-weight: 600;
  line-height: 1.6;
}

/* ============ X share + app promo ============ */
.dk-share-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.dk-share-bonus {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--dk-yellow);
  color: var(--dk-ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.1),
    inset 0 0 0 1.5px var(--dk-ink);
  animation: dk-bonus-bob 2.4s ease-in-out infinite;
  position: relative;
}
.dk-share-bonus::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: var(--dk-yellow);
  transform: translateX(-50%) rotate(45deg);
  border-right: 1.5px solid var(--dk-ink);
  border-bottom: 1.5px solid var(--dk-ink);
  border-bottom-right-radius: 2px;
}
.dk-share-bonus-emoji { font-size: 16px; line-height: 1; }
.dk-share-bonus-text { white-space: nowrap; }
.dk-share-bonus strong { font-weight: 900; font-size: 13px; }
@keyframes dk-bonus-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.dk-share-btn {
  display: block;
  text-decoration: none;
  width: 100%;
  background: #000;
  color: #fff;
  padding: 18px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow:
    0 8px 0 rgba(0, 0, 0, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.12s ease;
}
.dk-share-btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.dk-share-btn-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.dk-share-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 6px 16px rgba(0, 0, 0, 0.2);
}

.dk-result-appcard {
  background: var(--dk-paper);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--dk-shadow);
  position: relative;
  z-index: 1;
}
.dk-result-appcard-left {
  flex-shrink: 0;
}
.dk-result-appcard-mid {
  flex: 1;
  min-width: 0;
}
.dk-result-appcard-k {
  font-size: 10px;
  font-weight: 900;
  color: var(--dk-ink);
  background: var(--dk-yellow);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.dk-result-appcard-v {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--dk-ink);
}
.dk-result-appcard-qr {
  flex-shrink: 0;
}
.dk-qr {
  width: 60px;
  height: 60px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  background: #fff;
  border: 4px solid #fff;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* ============ Confetti ============ */
.dk-confetti {
  position: absolute;
  top: -20px;
  animation: dk-fall linear infinite;
}
@keyframes dk-fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0.8;
  }
}

/* ============ Tweak panel ============ */
.dk-tweak-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(75vh, 640px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  font-size: 13px;
}
.dk-tweak-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--dk-ink);
  color: #fff;
}
.dk-tweak-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}
.dk-tweak-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dk-yellow);
}
.dk-tweak-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
  padding: 4px 8px;
}
.dk-tweak-close:hover {
  opacity: 1;
}

.dk-tweak-tabs {
  display: flex;
  gap: 4px;
  padding: 10px;
  background: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
  overflow-x: auto;
}
.dk-tweak-tab {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--dk-ink-soft);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.dk-tweak-tab-active {
  background: var(--dk-ink);
  color: var(--dk-yellow);
}

.dk-tweak-body {
  padding: 14px 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dk-tweak-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dk-tweak-field > span {
  font-size: 11px;
  font-weight: 800;
  color: var(--dk-ink-mute);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.dk-tweak-field input[type="text"],
.dk-tweak-field input[type="number"],
.dk-tweak-field textarea {
  width: 100%;
  border: 1.5px solid #e5e5e5;
  background: #fafafa;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--dk-ink);
  outline: none;
  resize: vertical;
}
.dk-tweak-field input:focus,
.dk-tweak-field textarea:focus {
  border-color: var(--dk-ink);
  background: #fff;
}

.dk-tweak-imagerow {
  display: flex;
}
.dk-tweak-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
}
.dk-tweak-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dk-tweak-thumb-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.dk-tweak-upload {
  width: 100%;
  padding: 16px;
  border: 1.5px dashed #ccc;
  border-radius: 10px;
  background: #fafafa;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--dk-ink-soft);
  cursor: pointer;
}
.dk-tweak-upload input {
  display: none;
}
.dk-tweak-upload:hover {
  border-color: var(--dk-ink);
  color: var(--dk-ink);
}

.dk-tweak-seg {
  display: inline-flex;
  background: #f0f0f0;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.dk-tweak-segbtn {
  background: transparent;
  border: none;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  color: var(--dk-ink-soft);
  cursor: pointer;
}
.dk-tweak-segbtn-on {
  background: #fff;
  color: var(--dk-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dk-tweak-choice {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dk-tweak-correct-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #d0d0d0;
  background: #fff;
  color: #d0d0d0;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.dk-tweak-choice-correct .dk-tweak-correct-toggle {
  background: var(--dk-yellow);
  border-color: var(--dk-ink);
  color: var(--dk-ink);
}
.dk-tweak-choice-input {
  flex: 1;
  border: 1.5px solid #e5e5e5;
  background: #fafafa;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}
.dk-tweak-choice-correct .dk-tweak-choice-input {
  border-color: var(--dk-yellow-deep);
  background: #fffbe5;
  font-weight: 700;
}

.dk-tweak-title-row {
  display: grid;
  grid-template-columns: 48px 48px 1fr;
  gap: 6px;
  margin-bottom: 6px;
}
.dk-tweak-title-row input[type="number"] {
  text-align: center;
  padding: 6px;
}
.dk-tweak-title-row input[type="text"] {
  padding: 6px 8px;
  font-size: 12px;
}

/* ============ Desktop: subtle bg gradient, no phone frame ============ */
@media (min-width: 560px) {
  body {
    background:
      radial-gradient(1200px 600px at 50% -20%, #fff2a3 0%, transparent 60%),
      #ffe02b;
  }
}

/* Narrow phones (< 450px) — keep headline on one line, fit the 5-icon row */
@media (max-width: 450px) {
  .dk-start-h1 {
    font-size: 24px;
  }
  .dk-start-foods {
    gap: 6px;
  }
  .dk-start-food-ico {
    width: 60px;
    height: 60px;
  }
  .dk-start-food-ico img {
    width: 36px;
    height: 36px;
  }
}

/* Tiny iPhone (SE) safety */
@media (max-width: 360px) {
  .dk-start-h1 {
    font-size: 22px;
  }
  .dk-qcard-text {
    font-size: 16px;
  }
  .dk-result-score-num {
    font-size: 80px;
  }
  .dk-start-foods {
    gap: 4px;
  }
  .dk-start-food-ico {
    width: 48px;
    height: 48px;
  }
  .dk-start-food-ico img {
    width: 28px;
    height: 28px;
  }
}
