@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("./fonts/nunito-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("./fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #fff9f4;
  --bg-alt: #fdf3ef;
  --border: rgba(186, 164, 152, 0.3);
  --text: #463936;
  --text-soft: #6f625c;
  --text-muted: #9b8f89;
  --primary: #efb8c8;
  --secondary: #d8cbf7;
  --shadow-lg: 0 24px 60px rgba(144, 111, 93, 0.12);
  --shadow-sm: 0 6px 18px rgba(144, 111, 93, 0.08);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(239, 184, 200, 0.46), transparent 30%),
    radial-gradient(circle at top right, rgba(216, 203, 247, 0.38), transparent 28%),
    radial-gradient(circle at bottom left, rgba(202, 234, 219, 0.34), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  color: var(--text);
  font-family:
    "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

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

.start-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(115, 90, 77, 0.18);
  backdrop-filter: blur(16px);
}

.start-modal[hidden] {
  display: none !important;
}

.start-modal__card {
  position: relative;
  width: min(470px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(216, 203, 247, 0.45), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 250, 0.97), rgba(249, 241, 234, 0.98));
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.start-modal__card::before,
.start-modal__card::after {
  position: absolute;
  font-size: 1rem;
  color: rgba(187, 142, 161, 0.8);
  pointer-events: none;
}

.start-modal__card::before {
  content: "✦";
  top: 18px;
  right: 20px;
}

.start-modal__card::after {
  content: "☁";
  left: 22px;
  bottom: 18px;
  color: rgba(178, 189, 232, 0.7);
}

.start-modal__eyebrow {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.start-modal__title {
  margin: 10px 0 0;
  font-family:
    "Nunito", ui-rounded, "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.start-modal__rules {
  margin: 14px 0 24px;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 1rem;
}

.start-modal__status {
  margin: -8px 0 20px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.start-modal__status[hidden] {
  display: none !important;
}

.start-modal__field {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  text-align: left;
}

.start-modal__field-label {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.start-modal__select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.start-modal__actions {
  display: grid;
  gap: 12px;
}

.start-modal__actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.button--primary {
  background: linear-gradient(135deg, var(--primary), #f4d7c5);
  color: #5e4844;
}

.button--secondary {
  background: linear-gradient(135deg, var(--secondary), #d8e9fb);
  color: #574a63;
}
