:root {
  --pink-1: #ff6254;
  --pink-2: #ff2856;
  --text: #2f3035;
  --muted: #8c8e95;
  --panel: #ffffff;
  --work: #56dfa9;
  --work-bg: #e3faf1;
  --rest: #ff315b;
  --rest-bg: #ffe1e7;
  --round: #657df7;
  --round-bg: #e4e9ff;
  --round-rest: #f2c84e;
  --round-rest-bg: #fff7df;
  --neutral-bg: #f2f2f3;
  --shadow: 0 18px 50px rgba(20, 22, 35, .12);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; min-height: 100%; background: #f2f3f6; color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}
body { min-height: 100dvh; overscroll-behavior-y: none; }
button, input, select { font: inherit; }
button { touch-action: manipulation; }
.app-shell {
  width: min(100%, 540px); min-height: 100dvh; margin: 0 auto; background: var(--panel);
  box-shadow: var(--shadow); overflow: hidden;
}
.hero {
  position: relative; min-height: 40dvh;
  padding: max(18px, env(safe-area-inset-top)) 22px 84px;
  color: #fff; background: linear-gradient(155deg, var(--pink-1), var(--pink-2) 75%);
}
.topbar { display:flex; align-items:center; justify-content:space-between; min-height:56px; }
.brand { display:flex; align-items:center; min-width:0; }
.brand-logo { display:block; max-width:156px; max-height:48px; object-fit:contain; object-position:left center; }
.icon-btn {
  width:44px; height:44px; border:1px solid rgba(255,255,255,.35); border-radius:14px;
  color:#fff; background:rgba(255,255,255,.12); font-size:21px; font-weight:800;
}
.hero-center { display:grid; place-items:center; padding:42px 0 22px; text-align:center; }
.phase-label { min-height:28px; margin-bottom:14px; font-size:clamp(16px,4vw,20px); font-weight:800; letter-spacing:.12em; }
.main-time { font-variant-numeric:tabular-nums; font-size:clamp(78px,22vw,126px); line-height:.95; font-weight:700; letter-spacing:-.055em; }
.progress-label { min-height:24px; margin-top:16px; color:rgba(255,255,255,.84); font-weight:700; }
.panel {
  position:relative; margin-top:-42px; padding:88px 20px calc(28px + env(safe-area-inset-bottom));
  border-radius:30px 30px 0 0; background:#fff;
}
.main-action {
  position:absolute; left:50%; top:0; transform:translate(-50%,-50%);
  display:grid; place-items:center; width:112px; height:112px; border:10px solid #fff; border-radius:50%;
  background:#fff; box-shadow:0 7px 22px rgba(255,40,86,.23); color:var(--pink-2);
  font-size:42px; font-weight:900; cursor:pointer;
}
.main-action:active { transform:translate(-50%,-50%) scale(.97); }
.status-message {
  margin:-12px 0 16px; padding:12px 14px; border-radius:14px; background:#f7f7f8;
  color:#777a82; text-align:center; font-size:14px; line-height:1.35;
}
.settings { display:grid; gap:12px; }
.setting-row {
  width:100%; min-height:78px; display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:10px;
  padding:14px 18px; border:0; border-radius:18px; text-align:left; cursor:pointer; color:var(--text);
}
.setting-row:disabled { cursor:not-allowed; opacity:.58; }
.setting-icon { width:34px; height:34px; display:grid; place-items:center; border:3px solid currentColor; border-radius:50%; font-weight:900; }
.setting-name { font-size:clamp(18px,5vw,23px); font-weight:800; }
.setting-value { font-variant-numeric:tabular-nums; font-size:clamp(22px,7vw,31px); font-weight:800; }
.setting-row.work { background:var(--work-bg); }
.setting-row.work .setting-icon,.setting-row.work .setting-value { color:var(--work); }
.setting-row.rest { background:var(--rest-bg); }
.setting-row.rest .setting-icon,.setting-row.rest .setting-value { color:var(--rest); }
.setting-row.neutral { background:var(--neutral-bg); }
.setting-row.neutral .setting-icon,.setting-row.neutral .setting-value { color:#b7b8bc; }
.setting-row.rounds { background:var(--round-bg); }
.setting-row.rounds .setting-icon,.setting-row.rounds .setting-value { color:var(--round); }
.setting-row.round-rest { background:var(--round-rest-bg); }
.setting-row.round-rest .setting-icon,.setting-row.round-rest .setting-value { color:var(--round-rest); }

.controls { display:grid; grid-template-columns:1fr; gap:10px; margin-top:16px; }
.secondary-btn { min-height:48px; border:0; border-radius:14px; background:#f2f2f4; color:#555861; font-weight:800; }
.secondary-btn.strong { background:#ffe6ec; color:#d91747; }
.help { margin-top:14px; color:#767982; font-size:13px; line-height:1.45; }
.help summary { cursor:pointer; font-weight:800; }

.setting-dialog, .sound-dialog {
  width:min(calc(100% - 24px), 480px); max-height:min(88dvh, 760px); border:0; border-radius:24px; padding:0;
  box-shadow:0 30px 90px rgba(0,0,0,.28);
}
.setting-dialog::backdrop, .sound-dialog::backdrop { background:rgba(21,22,29,.5); backdrop-filter:blur(4px); }
.setting-dialog form { padding:22px; }
.setting-dialog h2 { margin:0 0 20px; text-align:center; font-size:22px; }
.stepper { display:grid; grid-template-columns:66px 1fr 66px; align-items:center; gap:12px; }
.step-btn { height:60px; border:0; border-radius:18px; background:#f1f2f5; color:#303238; font-size:34px; font-weight:700; }
.dialog-value { text-align:center; font-size:38px; font-variant-numeric:tabular-nums; font-weight:800; }

.sound-dialog form { max-height:min(88dvh,760px); overflow:auto; padding:20px; }
.sound-dialog-head { display:flex; gap:12px; justify-content:space-between; align-items:flex-start; }
.sound-dialog-head h2 { margin:0; font-size:24px; }
.sound-dialog-head p { margin:5px 0 0; color:#7b7d84; font-size:14px; }
.close-btn { flex:0 0 auto; width:38px; height:38px; border:0; border-radius:12px; background:#f1f2f4; font-size:27px; line-height:1; }
.sound-master { margin-top:18px; padding:15px; border-radius:16px; background:#fff0f3; }
.sound-master label { display:flex; justify-content:space-between; gap:14px; font-weight:800; }
.sound-master input { width:100%; margin-top:12px; accent-color:var(--pink-2); }
.toggle-grid { display:grid; gap:8px; margin:12px 0 16px; }
.toggle-row { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:48px; padding:10px 13px; border-radius:14px; background:#f6f6f7; font-weight:750; }
.toggle-row input { width:22px; height:22px; accent-color:var(--pink-2); }
.sound-list { display:grid; gap:9px; }
.sound-row {
  display:grid; grid-template-columns:minmax(0,1fr) 140px 42px; gap:8px; align-items:center;
  padding:12px; border:1px solid #ececef; border-radius:16px; background:#fff;
}
.sound-label { min-width:0; }
.sound-label strong { display:block; font-size:15px; }
.sound-label small { display:block; margin-top:2px; color:#8b8d94; line-height:1.25; }
.sound-row select { width:100%; min-height:42px; border:1px solid #dfe0e4; border-radius:11px; padding:0 8px; background:#fff; color:#33363d; }
.test-sound { width:42px; height:42px; border:0; border-radius:11px; background:#ffe4ea; color:#dc1948; font-weight:900; }
.dialog-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:24px; }
.dialog-actions button { min-height:50px; border:0; border-radius:14px; font-weight:800; }
.dialog-secondary { background:#eff0f3; color:#50525a; }
.dialog-primary { background:var(--pink-2); color:#fff; }
.sticky-actions { position:sticky; bottom:-20px; padding:12px 0 2px; background:linear-gradient(to bottom, rgba(255,255,255,.85), #fff 28%); }

body.running .hero { min-height:49dvh; }

@media (max-width: 430px) {
  .sound-row { grid-template-columns:minmax(0,1fr) 118px 40px; padding:10px; }
  .sound-label strong { font-size:14px; }
  .sound-label small { font-size:11px; }
}
@media (min-width:541px) {
  body { padding:20px; }
  .app-shell { border-radius:32px; min-height:calc(100dvh - 40px); }
}
@media (max-height:730px) {
  .hero { min-height:34dvh; padding-bottom:70px; }
  .hero-center { padding-top:18px; }
  .main-time { font-size:72px; }
  .panel { padding-top:76px; }
  .setting-row { min-height:64px; }
  .main-action { width:96px; height:96px; font-size:36px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior:auto!important; transition:none!important; } }

.mode-note {
  margin: -2px 2px 10px;
  color: #777a82;
  font-size: 12px;
  line-height: 1.35;
}




/* v1.11: nagy, egy kézzel is könnyen nyomható UGRÁS gomb */
.skip-btn {
  width: 100%;
  min-height: 92px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 22px;
  border: 0;
  border-radius: 24px;
  background: #22242a;
  color: #fff;
  box-shadow: 0 12px 28px rgba(34, 36, 42, .24);
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.skip-btn .skip-icon {
  flex: 0 0 auto;
  font-size: 38px;
  line-height: 1;
}

.skip-btn .skip-copy {
  display: grid;
  text-align: left;
  line-height: 1.05;
}

.skip-btn strong {
  font-size: clamp(24px, 7vw, 32px);
  letter-spacing: .03em;
}

.skip-btn small {
  margin-top: 7px;
  color: rgba(255,255,255,.76);
  font-size: 14px;
  font-weight: 750;
}

.skip-btn:active:not(:disabled) {
  transform: scale(.975);
  box-shadow: 0 6px 16px rgba(34, 36, 42, .22);
}

.skip-btn:disabled {
  opacity: .32;
  cursor: not-allowed;
  box-shadow: none;
}

/* Futás közben a gomb a képernyő alján marad, hogy hüvelykujjal azonnal elérhető legyen. */
body.running .skip-btn {
  position: sticky;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 20;
  background: #17191e;
  outline: 4px solid rgba(255,255,255,.92);
}

/* Kis kijelzőn se legyen túl apró a tap target. */
@media (max-width: 430px) {
  .skip-btn {
    min-height: 88px;
    border-radius: 22px;
    padding-inline: 18px;
  }

  .skip-btn .skip-icon {
    font-size: 34px;
  }

  .skip-btn small {
    font-size: 13px;
  }
}
