:root {
  --bg: #fff8f4;
  --pink: #f35f82;
  --orange: #f79457;
  --ink: #352c2a;
  --muted: #746562;
  --border: #efddd6;
  --card: #fff;
  --soft: #fff0e9;
  --radius: 18px;
  --panel-radius: 28px;
  --shadow: 0 18px 65px #8c514414;
  --cta: linear-gradient(110deg, var(--pink), var(--orange));
  --button-height: 50px;
  --progress: #f1e6df;
  --space: 8px;
}
.place-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.place-form label {
  font-weight: 650;
  font-size: 14px;
}
.place-form input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  background: var(--card);
  font-size: 16px;
}
.places {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.places button {
  overflow-wrap: anywhere;
  text-align: left;
}
.mode {
  overflow-wrap: anywhere;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 85% 10%, #ffebe1, transparent 42%), var(--bg);
  color: var(--ink);
  font:
    15px/1.65 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  min-height: 44px;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid #9c3554;
  outline-offset: 4px;
}
.masthead {
  max-width: 1240px;
  margin: auto;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #f9d4c6;
  color: #853c35;
}
.brand-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  border-left: 1px solid var(--border);
  padding-left: 12px;
}
.edition {
  color: var(--muted);
  font-size: 12px;
}
.layout {
  max-width: 1160px;
  margin: 25px auto 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 70px;
  align-items: center;
  padding: 0 30px;
}
.intro {
  min-width: 0;
}
.eyebrow {
  letter-spacing: 3px;
  color: #985340;
  font-size: 12px;
  font-weight: 700;
}
h1 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.28;
  letter-spacing: -2px;
  margin: 20px 0;
}
h1 span {
  color: #d85966;
}
.lead {
  color: var(--muted);
  line-height: 1.95;
  font-size: 16px;
}
.illustration {
  height: 240px;
  position: relative;
  max-width: 430px;
  display: grid;
  place-items: center;
}
.orbit {
  width: 280px;
  height: 160px;
  border: 1px dashed #d9afa0;
  border-radius: 50%;
  position: absolute;
  transform: rotate(-15deg);
}
.dish {
  width: 184px;
  height: 184px;
  border: 14px solid #fff;
  border-radius: 50%;
  background: #ffe8d6;
  box-shadow:
    0 15px 30px #9a57401a,
    inset 0 0 0 2px #f5d7bf;
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
}
.dish span {
  font-size: 98px;
  line-height: 1;
}
.food-tag {
  position: absolute;
  border: 1px solid var(--border);
  background: white;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 12px;
  box-shadow: 0 5px 20px #784a3410;
}
.tag-one {
  left: 4px;
  top: 45px;
  transform: rotate(-8deg);
}
.tag-two {
  right: 0;
  bottom: 35px;
  transform: rotate(6deg);
}
.spark {
  position: absolute;
  right: 40px;
  top: 15px;
  font-size: 40px;
  color: #dd8658;
}
.features {
  display: flex;
  gap: 22px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.features > div {
  display: flex;
  gap: 10px;
  font-size: 12px;
}
.features b {
  color: #c0745d;
  font-weight: 500;
}
.features span {
  color: var(--muted);
}
.features strong {
  color: var(--ink);
  font-weight: 600;
}
.panel {
  width: 100%;
  min-width: 0;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow);
}
.panel-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.progress {
  margin: 13px 0 26px;
  background: var(--progress);
  height: 4px;
  border-radius: 8px;
  overflow: hidden;
}
#progress-fill {
  height: 100%;
  background: var(--pink);
  width: 14.285%;
}
.mode {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  background: #fff2ce;
  color: #6e5013;
}
.mode.real {
  background: #eaf5ef;
  color: #285e44;
}
h2 {
  font-size: 26px;
  line-height: 1.35;
  margin: 12px 0;
}
h3 {
  font-size: 17px;
  margin: 0 0 6px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.subtitle,
.muted {
  color: var(--muted);
  font-size: 14px;
}
.subtitle {
  margin: 8px 0 24px;
}
.welcome-icon {
  font-size: 44px;
  display: block;
  margin: 16px 0;
}
.info,
.notice {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  margin: 18px 0;
}
.notice {
  background: #fff6e4;
  color: #795521;
}
.error {
  background: #fff0ed;
  color: #9b352c;
}
.actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.primary,
.secondary,
.text-button {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  font-weight: 650;
  color: var(--ink);
  min-height: var(--button-height);
}
.primary {
  background: var(--cta);
  border-color: transparent;
  color: #352025;
  box-shadow: 0 5px 16px #f35f8222;
}
.secondary:hover,
.choice:hover,
.restaurant:hover {
  border-color: #cb6b78;
  background: #fff8f5;
}
.text-button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.back {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 0 10px;
  margin-left: -10px;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice {
  padding: 16px 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  position: relative;
  min-height: 78px;
}
.choice strong {
  font-size: 20px;
  display: block;
}
.choice small {
  font-size: 12px;
  color: var(--muted);
}
.choice[aria-pressed="true"] {
  border: 2px solid var(--pink);
  background: #fff0f2;
  padding: 15px 7px;
}
.choice[aria-pressed="true"]:after {
  content: "✓";
  position: absolute;
  right: 8px;
  top: 2px;
  color: #9f3453;
  font-weight: 800;
}
.cuisines {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.cuisines .choice {
  font-size: 14px;
  min-height: 64px;
}
.summary {
  font-size: 13px;
  background: var(--soft);
  padding: 12px;
  border-radius: 12px;
  margin: 16px 0;
}
.panel-foot {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 26px;
}
.restaurants {
  display: grid;
  gap: 12px;
}
.restaurant {
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--ink);
}
.restaurant p {
  margin: 5px 0;
  font-size: 12px;
  color: var(--muted);
}
.restaurant .reason {
  color: #856048;
}
.result-icon {
  text-align: center;
  font-size: 52px;
}
.details {
  margin: 16px 0;
}
.details > div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 13px;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.wheel-wrap {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 28px auto;
}
.wheel-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}
.pointer {
  position: absolute;
  top: -12px;
  left: calc(50% - 14px);
  z-index: 1;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}
.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 4px solid #f8d4c7;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.pool {
  font-size: 12px;
  color: var(--muted);
  padding-left: 20px;
}
.wheel-result {
  text-align: center;
  min-height: 48px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 0 20px 28px;
}
footer span {
  padding: 0 12px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1440px) {
  .layout {
    margin-top: 45px;
    gap: 100px;
    max-width: 1220px;
    grid-template-columns: minmax(0, 1fr) 460px;
  }
}
@media (max-width: 1023px) {
  .layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 640px;
    margin-top: 8px;
  }
  .panel {
    max-width: 480px;
  }
  .intro {
    text-align: center;
  }
  .intro h1 {
    font-size: 40px;
  }
  .lead {
    font-size: 14px;
  }
  .illustration,
  .features {
    display: none;
  }
  .edition {
    display: none;
  }
  .masthead {
    padding: 24px 30px;
  }
  .intro .eyebrow {
    margin-top: 0;
  }
}
@media (max-width: 767px) {
  .masthead {
    padding: 20px;
  }
  .brand-sub {
    font-size: 11px;
  }
  .layout {
    padding: 0 16px;
    margin: 6px auto 32px;
    gap: 20px;
  }
  .intro h1 {
    font-size: 33px;
    margin: 12px 0;
    letter-spacing: -1px;
  }
  .intro .lead {
    font-size: 13px;
    margin-bottom: 0;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }
  .panel {
    padding: 22px;
    border-radius: 24px;
  }
  .progress {
    margin-bottom: 20px;
  }
  h2 {
    font-size: 24px;
  }
  .welcome-icon {
    margin: 8px 0;
  }
  .panel-foot {
    margin-top: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
