/* ================================================================
   ANDROID TIMER CSS v4
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #000;
  --surface: #1c1c1c;
  --item-h:  76px;
  --font-c:  60px;   /* center item */
  --font-s:  44px;   /* side items */
  --white:   #ffffff;
  --mid:     rgba(255,255,255,0.42);
  --dim:     rgba(255,255,255,0.16);
  --line:    rgba(255,255,255,0.13);
}

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: 'Google Sans', 'Roboto', sans-serif;
  overflow: hidden;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.screen { position: fixed; inset: 0; display: none; flex-direction: column; }
.screen.active { display: flex; }

.timer-ui { display: none; flex-direction: column; height: 100%; }
.timer-ui.active-ui { display: flex; }

/* ── Android layout ─────────────────────────────────────── */
#android-timer { background: var(--bg); }

/* Flex column: [flex-spacer-top] [labels] [slots] [flex-spacer-bottom] [button] [nav] */
/* The two spacers share the vertical space equally → slots sit in center */
.android-top-space { flex: 1; }

/* ── Labels ─────────────────────────────────────────────── */
.android-labels {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 8px;
}
.lbl-col {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.03em;
}
.lbl-sep { width: 28px; flex-shrink: 0; } /* mirrors .slot-separator width */

/* ── Slots row ──────────────────────────────────────────── */
.android-slots {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  height: calc(var(--item-h) * 3);
  position: relative;
}

/* Separator lines bracketing center row */
.android-slots::before,
.android-slots::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
  z-index: 5;
  pointer-events: none;
}
.android-slots::before { top:    var(--item-h); }
.android-slots::after  { bottom: var(--item-h); }

/* ── Slot wrapper — fade masks ──────────────────────────── */
.slot-wrapper {
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.slot-wrapper::before,
.slot-wrapper::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: calc(var(--item-h) * 1.1);
  pointer-events: none;
  z-index: 4;
}
.slot-wrapper::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
}
.slot-wrapper::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
}

/* ── Slot ───────────────────────────────────────────────── */
.slot {
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.slot:active { cursor: grabbing; }

.slot-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

/* ── Slot items ─────────────────────────────────────────── */
.slot-item {
  height: var(--item-h);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--font-s);
  font-weight: 300;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  transition: color 0.1s, font-size 0.1s;
}
.slot-item.near {
  color: var(--mid);
}
.slot-item.selected {
  color: var(--white);
  font-size: var(--font-c);
  font-weight: 700;
}

/* ── Colon separator ────────────────────────────────────── */
.slot-separator {
  width: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  padding-bottom: 4px;
}

/* ── Bottom spacer (smaller than top, pushes button lower) ─ */
.android-spacer { flex: 0.6; }

/* ── Iniciar button ─────────────────────────────────────── */
.android-start-wrap {
  display: flex;
  justify-content: center;
  padding: 0 80px 20px;
  flex-shrink: 0;
}
.android-start-btn {
  width: 100%;
  max-width: 220px;
  height: 48px;
  border-radius: 24px;
  border: none;
  background: #1a3566;
  color: #6baeff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: 'Google Sans', 'Roboto', sans-serif;
  transition: opacity 0.15s, transform 0.1s;
}
.android-start-btn:active { opacity: 0.8; transform: scale(0.97); }

/* ── Bottom nav ─────────────────────────────────────────── */
.android-nav {
  display: flex;
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-bottom: env(safe-area-inset-bottom);
  flex-shrink: 0;
}
.nav-item {
  flex: 1;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  padding: 10px 4px 8px;
  transition: color 0.15s;
}
.nav-icon {
  width: 52px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transition: background 0.15s;
}
.nav-icon svg { width: 22px; height: 22px; }
.nav-item span { font-size: 10px; font-weight: 500; color: inherit; }
.nav-item.active { color: #fff; }
.nav-item.active .nav-icon { background: rgba(255,255,255,0.12); }
