@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  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: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  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;
}

:root {
  color-scheme: dark;
  --bg-0: #07061a;
  --bg-1: #100c30;
  --bg-2: #1b1450;
  --ink: #f5f2ff;
  --ink-2: rgba(236, 232, 255, 0.8);
  --ink-3: rgba(226, 220, 255, 0.66);
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.07);
  --well: rgba(6, 4, 24, 0.55);
  --dawn-1: #ffe1b8;
  --dawn-2: #ffab84;
  --dawn-3: #f2708f;
  --dawn: linear-gradient(135deg, var(--dawn-1) 0%, var(--dawn-2) 48%, var(--dawn-3) 100%);
  --ok: #8ff0c0;
  --warn: #ffcf8a;
  --danger: #ff8d9b;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 0 0 1px var(--line),
    0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 18px 40px -24px rgba(40, 20, 120, 0.6);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-0);
  color: var(--ink);
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'tnum' 1, 'cv11' 1;
  overflow-x: hidden;
}

body.is-ringing {
  overflow: hidden;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--dawn-1);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* ---------- Gökyüzü ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--bg-2) 0%, rgba(27, 20, 80, 0) 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 70%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.glow-a {
  width: 620px;
  height: 620px;
  left: -180px;
  top: -220px;
  background: radial-gradient(circle, rgba(118, 86, 255, 0.55), rgba(118, 86, 255, 0) 70%);
}

.glow-b {
  width: 760px;
  height: 520px;
  right: -260px;
  bottom: -300px;
  background: radial-gradient(circle, rgba(255, 150, 120, 0.42), rgba(255, 150, 120, 0) 70%);
}

.glow-c {
  width: 420px;
  height: 420px;
  right: 18%;
  top: 8%;
  background: radial-gradient(circle, rgba(80, 160, 255, 0.22), rgba(80, 160, 255, 0) 70%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Çerçeve ---------- */

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) max(48px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 0 0 1px var(--line), 0 10px 24px -10px rgba(255, 140, 120, 0.5);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sound-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--line) inset;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}

.sound-chip:hover {
  background: var(--glass-2);
  color: var(--ink);
}

.sound-chip:active {
  transform: scale(0.97);
}

.sound-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 0 rgba(255, 207, 138, 0.6);
  animation: beacon 1.8s var(--ease-out) infinite;
}

.sound-chip[data-state='ready'] .dot {
  background: var(--ok);
  animation: none;
  box-shadow: 0 0 10px rgba(143, 240, 192, 0.7);
}

.sound-chip[data-state='ready'] {
  cursor: default;
}

.sound-chip[data-state='none'] .dot {
  background: var(--danger);
  animation: none;
}

@keyframes beacon {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 207, 138, 0.55);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(255, 207, 138, 0);
  }
}

.sample-banner {
  margin: -8px 0 20px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 207, 138, 0.09);
  box-shadow: 0 0 0 1px rgba(255, 207, 138, 0.22) inset;
  color: #ffe3bd;
  font-size: 14px;
}

.sample-banner a {
  color: var(--dawn-1);
  font-weight: 700;
  margin-left: 4px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-block: auto;
}

.panel-list {
  display: flex;
  flex-direction: column;
}

.panel-list .empty {
  flex: 1;
  align-content: center;
}

.panel-list .alarms {
  margin-bottom: 22px;
}

.panel {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.025) 100%);
  box-shadow: var(--shadow-panel);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  padding: clamp(20px, 3.2vw, 36px);
}

.section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Şimdiki saat ---------- */

.now {
  text-align: center;
  padding: 4px 0 2px;
}

.now-date {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.now-date::first-letter {
  text-transform: uppercase;
}

.now-time {
  margin: 2px 0 6px;
  font-size: clamp(68px, 10vw, 112px);
  font-weight: 250;
  line-height: 1;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 20%, #c9c0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 32px rgba(140, 110, 255, 0.28));
}

.now-sec {
  display: inline-block;
  margin-left: 0.18em;
  font-size: 0.26em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: 0.15em;
  color: var(--ink-3);
  -webkit-text-fill-color: var(--ink-3);
}

.now-next {
  display: inline-flex;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px var(--line) inset;
}

.now-next.has-next {
  color: var(--ink-2);
}

.now-next strong {
  margin: 0 0.25em;
  font-weight: 700;
  color: var(--dawn-1);
}

.divider {
  height: 1px;
  margin: 28px 0 24px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--line-2), rgba(255, 255, 255, 0));
}

/* ---------- Saat seçici ---------- */

.setter {
  margin-top: 16px;
}

.picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 18px);
}

.unit {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.digits {
  width: 2.1em;
  padding: 0.12em 0.08em;
  border: 0;
  border-radius: 22px;
  background: var(--well);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45) inset, 0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: clamp(56px, 8vw, 76px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
  caret-color: var(--dawn-2);
  transition: box-shadow 0.2s var(--ease-out);
}

.digits:focus {
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45) inset, 0 0 0 2px rgba(255, 196, 160, 0.75) inset,
    0 0 0 6px rgba(255, 171, 132, 0.12);
}

.digits::selection {
  background: rgba(255, 171, 132, 0.35);
}

.colon {
  padding-bottom: 24px;
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 300;
  color: var(--ink-3);
}

.unit-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.step {
  display: grid;
  place-items: center;
  width: 48px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-3);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out), transform 0.12s var(--ease-out);
}

.step svg,
.primary svg,
.del svg,
.note-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step svg {
  width: 22px;
  height: 22px;
}

.step:hover {
  background: var(--glass-2);
  color: var(--ink);
}

.step:active {
  transform: scale(0.92);
}

.quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px var(--line) inset;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out), transform 0.12s var(--ease-out);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
}

.chip:active {
  transform: scale(0.96);
}

.preview {
  margin: 18px 0 14px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-2);
}

.primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: var(--dawn);
  color: #2b1029;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 -2px 0 rgba(120, 30, 70, 0.18) inset,
    0 16px 36px -14px rgba(255, 128, 120, 0.75), 0 4px 10px -4px rgba(0, 0, 0, 0.5);
  transition: transform 0.16s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s var(--ease-out);
}

.primary svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.6;
}

.primary:hover {
  filter: brightness(1.05) saturate(1.05);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 -2px 0 rgba(120, 30, 70, 0.18) inset,
    0 22px 44px -14px rgba(255, 128, 120, 0.85), 0 4px 10px -4px rgba(0, 0, 0, 0.5);
}

.primary:active {
  transform: scale(0.985);
}

.form-msg {
  min-height: 22px;
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.form-msg.is-ok {
  color: var(--ok);
}

.form-msg.is-warn {
  color: var(--warn);
}

/* ---------- Liste ---------- */

.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.list-count {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}

.alarms {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alarm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 0 0 1px var(--line), 0 12px 24px -18px rgba(0, 0, 0, 0.8);
  animation: rise 0.36s var(--ease-out) both;
  transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

.alarm.flash {
  animation: rise 0.36s var(--ease-out) both, flash 1.1s var(--ease-out);
}

@keyframes flash {
  0%,
  30% {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 0 0 1.5px rgba(255, 196, 160, 0.8),
      0 0 0 6px rgba(255, 171, 132, 0.14), 0 12px 24px -18px rgba(0, 0, 0, 0.8);
  }
}

.alarm-main {
  display: grid;
  min-width: 0;
}

.alarm-time {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  transition: color 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

.alarm-meta {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alarm.is-off {
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.alarm.is-off .alarm-time {
  color: var(--ink-3);
}

.alarm.is-off .alarm-meta {
  color: var(--ink-3);
}

.alarm.is-missed .alarm-meta {
  color: rgba(255, 207, 138, 0.8);
}

.switch {
  position: relative;
  flex: none;
  width: 56px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) inset, 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.switch::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--dawn);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}

.switch[aria-checked='true']::before {
  opacity: 1;
}

.switch[aria-checked='true'] {
  box-shadow: 0 0 18px -4px rgba(255, 140, 120, 0.7);
}

.knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #e9e5f7);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 0.5px rgba(0, 0, 0, 0.1);
  transition: transform 0.32s var(--ease-spring);
}

.switch[aria-checked='true'] .knob {
  transform: translateX(24px);
}

.switch:active .knob {
  width: 30px;
}

.switch[aria-checked='true']:active .knob {
  transform: translateX(20px);
}

.del {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-3);
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out), transform 0.12s var(--ease-out);
}

.del svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.del:hover {
  background: rgba(255, 141, 155, 0.12);
  color: var(--danger);
}

.del:active {
  transform: scale(0.92);
}

.empty {
  display: grid;
  justify-items: center;
  padding: 18px 12px 26px;
  text-align: center;
}

.empty-art {
  width: 200px;
  height: 140px;
  filter: drop-shadow(0 18px 30px rgba(255, 150, 120, 0.18));
}

.empty-title {
  margin: 8px 0 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.empty-text {
  max-width: 300px;
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin-top: auto;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(10, 8, 34, 0.45);
  box-shadow: 0 0 0 1px var(--line) inset;
  font-size: 13.5px;
  color: var(--ink-2);
}

.note p {
  margin: 0;
}

.note strong {
  color: var(--ink);
  font-weight: 700;
}

.note-sub {
  margin-top: 6px !important;
  color: var(--ink-2);
}

.note-icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--dawn-1);
}

.wake {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}

.wake input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.wake-box {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  box-shadow: 0 0 0 1.5px var(--line-2) inset;
  transition: background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.wake input:checked + .wake-box {
  background: var(--dawn);
  box-shadow: none;
}

.wake input:checked + .wake-box::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #2b1029;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.wake input:focus-visible + .wake-box {
  outline: 2px solid var(--dawn-1);
  outline-offset: 3px;
}

/* ---------- Bildirim ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: rgba(24, 19, 60, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px var(--line-2) inset, 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  font-size: 14px;
  font-weight: 600;
  transform: translateX(-50%);
  animation: toast-in 0.3s var(--ease-out);
}

.toast.is-out {
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

.toast-btn {
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 225, 184, 0.14);
  color: var(--dawn-1);
  font-weight: 700;
}

.toast-btn:hover {
  background: rgba(255, 225, 184, 0.22);
}

/* ---------- Çalma ekranı ---------- */

.ring {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: hidden;
  animation: ring-in 0.45s var(--ease-out);
}

@keyframes ring-in {
  from {
    opacity: 0;
  }
}

.ring-sky {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(255, 196, 150, 0.95) 0%, rgba(255, 140, 130, 0.75) 30%, rgba(242, 112, 143, 0) 70%),
    radial-gradient(80% 60% at 50% 110%, #f2708f 0%, rgba(140, 60, 180, 0.6) 45%, rgba(20, 14, 60, 0) 80%),
    linear-gradient(180deg, #0e0a2c 0%, #2a1658 50%, #6b2b78 100%);
  animation: dawn-breathe 3.2s ease-in-out infinite alternate;
}

@keyframes dawn-breathe {
  to {
    transform: translateY(-4%) scale(1.04);
    filter: saturate(1.15) brightness(1.08);
  }
}

.ring-body {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.ring-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 236, 220, 0.85);
}

.ring-dial {
  position: relative;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  margin: 26px 0 8px;
}

.pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 232, 210, 0.6) inset;
  animation: pulse 2.4s var(--ease-out) infinite;
}

.p2 {
  animation-delay: 0.8s;
}

.p3 {
  animation-delay: 1.6s;
}

@keyframes pulse {
  from {
    transform: scale(0.55);
    opacity: 0.9;
  }
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}

.ring-bell {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 18px;
  box-sizing: content-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 20px 40px -10px rgba(80, 20, 80, 0.6);
  fill: #fff6ec;
  stroke: #fff6ec;
  stroke-width: 2.6;
  stroke-linecap: round;
  transform-origin: 50% 20%;
  animation: bell 1.4s ease-in-out infinite;
}

.ring-bell path:last-child {
  fill: none;
}

@keyframes bell {
  0%,
  50%,
  100% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-12deg);
  }
  30% {
    transform: rotate(8deg);
  }
  40% {
    transform: rotate(-5deg);
  }
}

.ring-time {
  margin: 8px 0 0;
  font-size: clamp(88px, 24vw, 144px);
  font-weight: 250;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fff;
  text-shadow: 0 20px 60px rgba(90, 20, 80, 0.5);
}

.ring-sub {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 236, 220, 0.85);
}

.ring-unmute {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  min-height: 40px;
  padding: 8px 16px 8px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 240, 230, 0.92);
}

.ring-unmute svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ring-unmute:hover {
  background: rgba(255, 255, 255, 0.16);
}

.stop {
  width: min(100%, 300px);
  min-height: 68px;
  margin-top: 32px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f4eefc);
  color: #3a1236;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 0 #fff inset, 0 -3px 0 rgba(120, 60, 120, 0.12) inset, 0 24px 50px -12px rgba(60, 10, 60, 0.7);
  transition: transform 0.16s var(--ease-out);
}

.stop:hover {
  transform: translateY(-1px);
}

.stop:active {
  transform: scale(0.97);
}

.stop:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 5px;
}

/* ---------- Uyum ---------- */

@media (hover: none) {
  .step:hover,
  .chip:hover,
  .del:hover,
  .sound-chip:hover {
    background: transparent;
  }
  .chip:hover {
    background: rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 880px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-block: 0;
  }
  .note {
    margin-top: 22px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding-bottom: 18px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .sound-chip {
    padding: 8px 12px;
  }
  .panel {
    border-radius: 24px;
  }
  .divider {
    margin: 22px 0 20px;
  }
  .alarm {
    padding: 12px 8px 12px 16px;
    gap: 8px;
  }
  .alarm-time {
    font-size: 30px;
  }
  .del {
    width: 40px;
  }
  .note {
    padding: 14px;
  }
}

@media (max-width: 360px) {
  .sound-chip-text {
    font-size: 12px;
  }
  .step {
    width: 42px;
  }
  .digits {
    font-size: 48px;
  }
  .now-time {
    font-size: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .pulse {
    display: none;
  }
}
