:root {
  color-scheme: light;
  --ink: #15151f;
  --muted: #646174;
  --red: #ef2b2d;
  --red-dark: #a9131a;
  --green: #15955d;
  --amber: #f7b531;
  --cream: #fff7ea;
  --card: #ffffff;
  --line: #eaded2;
  --shadow: 0 24px 70px rgba(116, 24, 29, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(239, 43, 45, 0.18), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(247, 181, 49, 0.18), transparent 30rem),
    linear-gradient(135deg, var(--cream), #fffdf8 68%, #f7ede5);
  color: var(--ink);
}
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 28px 0 22px; }
nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 34px; color: var(--muted); font-size: 0.95rem; }
nav a { color: var(--red-dark); font-weight: 900; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: stretch; }
.intro, .timer-card, .settings, .info-card, .faq { background: rgba(255,255,255,0.9); border: 1px solid rgba(234,222,210,0.96); border-radius: 28px; box-shadow: var(--shadow); }
.intro { padding: clamp(28px, 5vw, 54px); }
.eyebrow { margin: 0 0 12px; color: var(--red-dark); text-transform: uppercase; font-size: 0.78rem; font-weight: 1000; letter-spacing: 0.14em; }
h1 { margin: 0; font-size: clamp(2.55rem, 7vw, 5.25rem); line-height: 0.92; letter-spacing: -0.07em; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.65; max-width: 58ch; }
.preset-row, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
button, input { font: inherit; }
.pill, .secondary, .primary { border: 0; border-radius: 999px; padding: 13px 18px; font-weight: 950; cursor: pointer; transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease; }
.pill { background: #fff3eb; color: var(--red-dark); border: 1px solid #f0d5c9; }
.pill.active, .pill:hover { background: var(--red); color: white; transform: translateY(-1px); }
.timer-card { padding: clamp(24px, 4vw, 42px); display: flex; flex-direction: column; justify-content: center; text-align: center; min-height: 460px; }
.status-line { color: var(--red-dark); font-weight: 1000; letter-spacing: 0.12em; text-transform: uppercase; }
.round-line { margin-top: 8px; color: var(--muted); font-weight: 900; }
.time-display { font-variant-numeric: tabular-nums; font-size: clamp(4.6rem, 16vw, 10.5rem); line-height: 1; font-weight: 1000; letter-spacing: -0.08em; margin: 16px 0; }
.progress-wrap { height: 18px; overflow: hidden; background: #f3e4db; border-radius: 999px; border: 1px solid #e8d0c4; }
#progressBar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--red), #ff7a3a, var(--amber)); border-radius: inherit; transition: width 0.2s linear; }
.cue-note { min-height: 54px; margin: 18px auto 0; color: var(--muted); line-height: 1.45; max-width: 43ch; }
.primary { background: var(--red); color: white; box-shadow: 0 12px 28px rgba(239, 43, 45, 0.25); }
.primary:hover, .secondary:hover { transform: translateY(-1px); }
.secondary { background: #fff3eb; color: var(--red-dark); border: 1px solid #efd4c7; }
.actions { justify-content: center; }
.settings, .content-grid, .faq { margin-top: 24px; }
.settings { padding: 26px; }
h2 { margin: 0 0 18px; font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -0.04em; }
.settings-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
label { display: grid; gap: 8px; color: var(--muted); font-weight: 850; }
input { width: 100%; border: 1px solid #e3cfc4; border-radius: 16px; padding: 13px 14px; background: white; color: var(--ink); font-weight: 950; }
.hint { color: var(--muted); line-height: 1.6; margin: 16px 0 0; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card, .faq { padding: 26px; }
.info-card p, li, .faq p { color: var(--muted); line-height: 1.65; }
ol { padding-left: 22px; }
.guide-table { display: grid; gap: 10px; }
.guide-table > div { display: grid; grid-template-columns: 1fr 0.7fr 1.2fr; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: #fff7f1; color: var(--muted); }
.guide-table strong { color: var(--ink); }
.faq { margin-bottom: 26px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 950; color: var(--ink); }
footer { text-align: center; color: var(--muted); padding: 26px 16px 38px; }
.is-rest .status-line, .is-rest .time-display { color: var(--green); }
.is-rest #progressBar { background: linear-gradient(90deg, var(--green), #50c989); }
.is-prep .status-line, .is-prep .time-display { color: #a35d00; }
.is-finished .time-display { color: var(--red-dark); }
.site-nav{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-16px 0 24px;padding:12px 16px;background:rgba(255,255,255,.86);border:1px solid #e1e5ee;border-radius:24px;box-shadow:0 10px 24px rgba(22,31,54,.06);backdrop-filter:blur(12px)}
.site-brand{display:inline-flex;align-items:center;gap:10px;color:#172033;text-decoration:none;font-weight:800}.brand-mark{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#172033;color:#fff;font-weight:900}.site-nav a:not(.site-brand){color:#4b5565;text-decoration:none;font-weight:700;font-size:.95rem}.site-nav a:hover{text-decoration:underline}
@media (max-width: 900px) {
  main { width: min(100% - 22px, 700px); }
  nav { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .hero-grid, .content-grid, .settings-grid { grid-template-columns: 1fr; }
  .timer-card { min-height: 380px; }
  .guide-table > div { grid-template-columns: 1fr; }
  .pill, .secondary, .primary { width: 100%; }
  .site-nav{margin-top:-8px;padding:10px 12px;border-radius:20px}.site-nav a:not(.site-brand){font-size:.9rem}.brand-mark{width:30px;height:30px}.site-brand span:last-child{max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
