:root {
      color-scheme: light;
      --ink: #21382f;
      --muted: #68766d;
      --paper: #f5f2e9;
      --card: #fffdf7;
      --green: #2f5945;
      --green-dark: #213e31;
      --line: #e6e3d8;
      --gold: #efb642;
      font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    }

    * { box-sizing: border-box; }

    body {
      min-width: 0;
      min-height: 100vh;
      margin: 0;
      background: var(--paper);
      color: var(--ink);
    }

    button { font: inherit; }

    .selection-screen {
      width: min(1120px, 100%);
      margin: 0 auto;
      padding: 48px 32px 32px;
    }

    .topline {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 30px;
      color: var(--green);
      font-size: 13px;
      font-weight: 750;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .topline svg { width: 25px; height: 25px; }

    .intro {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 28px;
      margin-bottom: 30px;
    }

    h1 {
      margin: 0;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(42px, 6vw, 68px);
      font-weight: 500;
      letter-spacing: -.055em;
      line-height: .98;
    }

    .intro p {
      max-width: 310px;
      margin: 0 0 5px;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.6;
    }

    .egg-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 14px;
    }

    .egg-card {
      display: flex;
      min-width: 0;
      flex-direction: column;
      align-items: stretch;
      padding: 12px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--card);
      color: inherit;
      text-align: left;
      cursor: pointer;
      transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }

    .egg-card:hover, .egg-card:focus-visible {
      transform: translateY(-4px);
      border-color: #9bac9c;
      box-shadow: 0 12px 28px #293e2a12;
      outline: none;
    }

    .egg-art {
      display: grid;
      min-height: 154px;
      place-items: center;
      border-radius: 12px;
      background: #f3efe3;
    }

    .egg-art svg { width: 132px; max-width: 100%; height: 132px; }
    .egg-copy { display: flex; flex: 1; flex-direction: column; padding: 15px 3px 4px; }

    .egg-number {
      margin-bottom: 6px;
      color: #8b948b;
      font-size: 10px;
      font-weight: 750;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .egg-name {
      min-height: 46px;
      font-family: Georgia, "Times New Roman", serif;
      font-size: 19px;
      font-weight: 500;
      line-height: 1.15;
    }

    .egg-description {
      min-height: 38px;
      margin: 7px 0 14px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }

    .egg-time {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 4px;
      margin-top: auto;
      padding-top: 12px;
      border-top: 1px solid var(--line);
      color: var(--green);
      font-size: 12px;
      font-weight: 700;
    }

    .egg-time strong {
      font-family: Georgia, "Times New Roman", serif;
      font-size: 25px;
      font-weight: 500;
      letter-spacing: -.04em;
    }

    .method-note {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-top: 20px;
      padding: 15px 17px;
      border: 1px solid #e8dfc7;
      border-radius: 13px;
      background: #f8f4e9;
      color: #59675d;
      font-size: 12px;
      line-height: 1.55;
    }

    .method-note svg { flex: 0 0 auto; width: 18px; height: 18px; color: #a37b2d; }
    .method-note strong { color: var(--ink); }

    .timer-screen {
      display: none;
      min-height: 100vh;
      min-height: 100svh;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 32px 24px;
      background: var(--green-dark);
      color: #fffdf6;
      text-align: center;
    }

    .timer-screen.active { display: flex; }
    .selection-screen.hidden { display: none; }

    .timer-kicker {
      margin: 0 0 12px;
      color: #c2d0c0;
      font-size: 12px;
      font-weight: 750;
      letter-spacing: .17em;
      text-transform: uppercase;
    }

    .timer-title {
      margin: 0;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(32px, 5vw, 48px);
      font-weight: 500;
      letter-spacing: -.04em;
    }

    .clock-wrap {
      position: relative;
      display: grid;
      width: min(72vw, 370px);
      aspect-ratio: 1;
      margin: 20px 0;
      place-items: center;
    }

    .clock-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
    .clock-track, .clock-progress { fill: none; stroke-width: 3; }
    .clock-track { stroke: #ffffff20; }
    .clock-progress {
      stroke: var(--gold);
      stroke-linecap: round;
      stroke-dasharray: 100;
      stroke-dashoffset: 0;
      transition: stroke-dashoffset .4s linear;
    }

    .clock-time {
      font-variant-numeric: tabular-nums;
      font-size: clamp(68px, 14vw, 112px);
      font-weight: 300;
      letter-spacing: -.075em;
      line-height: 1;
    }

    .timer-message {
      min-height: 24px;
      margin: 0;
      color: #d3ddd1;
      font-size: 15px;
    }

    .timer-screen.finished .clock-time { color: #f5c45c; }
    .timer-screen.finished .timer-message { color: #fffdf6; }

    .timer-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 25px; }

    .timer-button {
      min-width: 138px;
      min-height: 48px;
      padding: 13px 20px;
      border: 1px solid #ffffff50;
      border-radius: 999px;
      background: transparent;
      color: #fffdf6;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: background .2s ease, color .2s ease;
    }

    .timer-button:hover, .timer-button:focus-visible { background: #ffffff18; outline: 2px solid #f5c45c; outline-offset: 3px; }
    .timer-button.primary { border-color: var(--gold); background: var(--gold); color: var(--green-dark); }
    .timer-button.primary:hover { background: #ffd16c; }
    [hidden] { display: none !important; }

    @media (max-width: 900px) {
      .egg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .egg-art { min-height: 150px; }
    }

    @media (max-width: 620px) {
      .selection-screen { padding: 24px 16px 22px; }
      .topline { margin-bottom: 24px; }
      .intro { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 23px; }
      .intro p { max-width: 380px; }
      .egg-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
      .egg-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 9px;
        border-radius: 15px;
      }
      .egg-art { min-height: 112px; }
      .egg-art svg { width: 104px; height: 104px; }
      .egg-copy { padding: 6px 3px; }
      .egg-name { min-height: 0; font-size: 18px; }
      .egg-description { min-height: 0; margin: 5px 0 9px; }
      .egg-time { padding-top: 8px; }
      .egg-time strong { font-size: 22px; }
      .method-note { margin-top: 14px; padding: 13px; }
      .timer-screen { padding: 24px 18px; }
      .clock-wrap { width: min(72vw, 330px); margin: 16px 0; }
      .timer-controls { width: min(100%, 360px); gap: 10px; margin-top: 20px; }
      .timer-button { flex: 1 1 150px; }
    }

    @media (max-width: 380px) {
      .selection-screen { padding: 20px 14px; }
      .topline { margin-bottom: 20px; font-size: 11px; }
      .intro { gap: 10px; margin-bottom: 18px; }
      .intro h1 { font-size: clamp(38px, 12vw, 46px); }
      .intro p { font-size: 14px; }
      .egg-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
      .egg-card {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 8px;
        border-radius: 14px;
      }
      .egg-art { min-height: 88px; }
      .egg-art svg { width: 82px; height: 82px; }
      .egg-copy { padding: 4px 2px; }
      .egg-number { margin-bottom: 4px; font-size: 9px; }
      .egg-name { font-size: 17px; }
      .egg-description { min-height: 0; margin: 4px 0 8px; font-size: 11px; }
      .egg-time { padding-top: 7px; font-size: 11px; }
      .egg-time strong { font-size: 20px; }
      .method-note { gap: 9px; font-size: 11px; }
      .timer-screen { padding: 20px 16px; }
      .timer-kicker { margin-bottom: 8px; font-size: 10px; }
      .timer-title { font-size: 32px; }
      .clock-wrap { width: min(68vw, 250px); margin: 14px 0; }
      .clock-time { font-size: clamp(58px, 17vw, 76px); }
      .timer-message { font-size: 14px; }
      .timer-controls { flex-direction: column; align-items: stretch; margin-top: 18px; }
      .timer-button { width: 100%; flex: 0 0 auto; }
    }

    @media (max-height: 560px) and (orientation: landscape) {
      .timer-screen { justify-content: flex-start; gap: 8px; padding: 12px 20px; }
      .timer-kicker { margin: 0; }
      .clock-wrap { width: min(42vh, 220px); margin: 4px 0; }
      .timer-title { font-size: 30px; }
      .timer-controls { margin-top: 6px; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
    }
