body {
  font-family: "IBM Plex Mono", sans-serif;
  overflow: hidden;
}
.page {
  min-height: 100vh;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
}
nav {
  margin-bottom: 2rem;
}
.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5rem;
  align-items: center;
}
.editorial-left {
  max-width: 620px;
}
.eyebrow {
  font-weight: 600;
  letter-spacing: 0.24em;
  margin-bottom: 2rem;
}
.editorial-left h1 {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  font-weight: 650;
}
.hero-text {
  margin-top: 2rem;
  max-width: 520px;
  line-height: 2;
  color: var(--muted);
  font-size: 1rem;
}
.meta-row {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #7a7a7a;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #bbb;
}
.timer-card {
  position: relative;
  padding: 2rem;
  border-radius: 38px;
  background: linear-gradient(
    135deg,
    rgba(200, 200, 200, 0.8),
    rgba(27, 209, 200, 0.6)
  );
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}
.timer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.9),
    transparent 35%
  );
  pointer-events: none;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.tabs {
  display: flex;
  gap: 0.8rem;
}
.tab {
  height: 48px;
  padding: 0 1.25rem;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: #444;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tab:hover {
  transform: translateY(-2px);
}
.tab.active {
  background: #111;
  color: #fff;
}
.status-pill {
  height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
}
.timer-stage {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 0, 0, 0.08);
}
.ring::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.display-wrap {
  position: relative;
  z-index: 3;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.55)
  );
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 20px 40px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(18px);
}
.tiny-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1rem;
}
.time {
  font-size: clamp(3rem, 5vw, 5rem);
  letter-spacing: -0.08em;
  font-weight: 700;
  color: #111;
}
.ms {
  margin-top: 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  color: #777;
}
.bubble {
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7dd3fc, #f9a8d4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.timer-inputs {
  display: none;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.timer-inputs input {
  width: 90px;
  height: 56px;
  border: none;
  outline: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
}
.controls {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.btn {
  min-width: 130px;
  height: 58px;
  border: none;
  border-radius: 18px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
}
.primary {
  background: #111;
  color: #fff;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}
.secondary {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #222;
}
.laps {
  margin-top: 2rem;
  max-height: 180px;
  overflow: auto;
}
.lap {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
}
.shortcuts {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: #888;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.shortcuts span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
kbd {
  min-width: 24px;
  height: 24px;
  padding: 0 0.45rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: "IBM Plex Mono", monospace;
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .timer-card {
    padding: 1.4rem;
  }
  .timer-stage {
    height: 300px;
  }
  .ring {
    width: 260px;
    height: 260px;
  }
  .display-wrap {
    width: 210px;
    height: 210px;
  }
  .time {
    font-size: 3rem;
  }
  .editorial-left h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }
  .controls {
    flex-wrap: wrap;
  }
}
