/* KidCal — game HUD / adventure journal */
:root {
  --bg0: #0B1020;
  --bg1: #121A33;
  --panel: #1A2447;
  --panel2: #243056;
  --ink: #E8EEFF;
  --muted: #9AA8C7;
  --line: rgba(232, 238, 255, 0.12);
  --yellow: #F5E54A;
  --green: #3DDA6D;
  --indigo: #5B6CFF;
  --magenta: #C45CFF;
  --cyan: #4AD7F5;
  --danger: #FF5C7A;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --tap: 76px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(91, 108, 255, 0.35), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(61, 218, 109, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 50%, #0E152C);
  color: var(--ink);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.app {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 18px 56px;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.greeting h1 {
  margin: 0;
  font-size: clamp(32px, 5.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.greeting .sub {
  margin-top: 6px;
  font-size: 17px;
  color: var(--muted);
  font-weight: 650;
}

.badge {
  background: rgba(245, 229, 74, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(245, 229, 74, 0.45);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  background: rgba(0,0,0,0.25);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 8px;
  border-radius: 12px;
  min-height: 48px;
  cursor: pointer;
}
.tab.active {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  color: var(--yellow);
  box-shadow: var(--shadow);
  border: 1px solid rgba(245, 229, 74, 0.35);
}

.countdown {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(91, 108, 255, 0.35), rgba(196, 92, 255, 0.22)),
    var(--panel);
  border: 1px solid rgba(245, 229, 74, 0.55);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.04);
  margin-bottom: 22px;
  min-height: 124px;
  position: relative;
  overflow: hidden;
}
.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 10px,
    rgba(245, 229, 74, 0.03) 10px, rgba(245, 229, 74, 0.03) 20px
  );
  pointer-events: none;
}
.countdown > * { position: relative; }
.countdown .num {
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  color: var(--yellow);
  text-shadow: 0 0 18px rgba(245, 229, 74, 0.35);
  font-variant-numeric: tabular-nums;
}
.countdown .label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.countdown .title {
  font-size: clamp(24px, 4.2vw, 32px);
  font-weight: 850;
  line-height: 1.1;
  margin-top: 4px;
}
.countdown .hint {
  margin-top: 8px;
  font-size: 15px;
  color: #C9D4F0;
  font-weight: 650;
}

.section { margin-bottom: 24px; }
.section h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(74, 215, 245, 0.45), transparent);
}

.tiles { display: grid; gap: 12px; }

.tile {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: center;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border-radius: var(--radius);
  padding: 14px 16px;
  min-height: var(--tap);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.tile .emo {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: #0F1836;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 2px rgba(61, 218, 109, 0.15);
}
.tile .body .when {
  font-size: 13px;
  font-weight: 850;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tile .body .name {
  font-size: clamp(19px, 3.4vw, 24px);
  font-weight: 800;
  line-height: 1.18;
  margin-top: 3px;
  color: var(--ink);
}
.tile.c0 { border-left: 4px solid var(--yellow); }
.tile.c1 { border-left: 4px solid var(--green); }
.tile.c2 { border-left: 4px solid var(--indigo); }
.tile.c3 { border-left: 4px solid var(--magenta); }
.tile.c4 { border-left: 4px solid var(--cyan); }
.tile.c5 { border-left: 4px solid var(--danger); }

.weekend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.weekend-card {
  background: linear-gradient(180deg, #1E2B55, #162040);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  min-height: 168px;
  border: 1px solid var(--line);
}
.weekend-card .day {
  font-size: 12px;
  font-weight: 850;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.weekend-card .date {
  font-size: 22px;
  font-weight: 850;
  margin: 4px 0 12px;
}
.weekend-card .mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #D7E0FA;
}
.mini-row .e { font-size: 20px; }
.empty {
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}

.week-list .tile { min-height: 64px; }
.week-list .tile .emo { width: 52px; height: 52px; font-size: 26px; border-radius: 14px; }
.week-list .tile .body .name { font-size: 18px; }
.day-label {
  font-size: 13px !important;
  margin: 18px 0 8px !important;
  color: var(--muted) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800 !important;
}

/* Week grid */
.week-grid {
  display: grid;
  gap: 10px;
}
.day-card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  min-height: 88px;
}
.day-card.is-today {
  border-color: rgba(245, 229, 74, 0.55);
  box-shadow: var(--shadow), 0 0 0 1px rgba(245, 229, 74, 0.25);
}
.day-card.is-disney {
  border-color: rgba(196, 92, 255, 0.55);
  background: linear-gradient(135deg, rgba(91,108,255,0.25), rgba(196,92,255,0.18)), var(--panel);
}
.day-card .day-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.day-card .dow {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.day-card .dom {
  font-size: 20px;
  font-weight: 850;
}
.day-card .tag {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(245,229,74,0.12);
  border: 1px solid rgba(245,229,74,0.35);
  border-radius: 999px;
  padding: 3px 8px;
}
.day-card .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0F1836;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 750;
  max-width: 100%;
}
.chip .e { font-size: 16px; }
.chip .t {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 42vw;
}

/* Quest map */
.quest-sub {
  margin: -4px 0 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}
.quest-map {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.quest-node {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  position: relative;
}
.quest-node .rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quest-node .dot {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: #0F1836;
  border: 2px solid var(--green);
  box-shadow: 0 0 16px rgba(61, 218, 109, 0.25);
  z-index: 1;
}
.quest-node .dot.fly { border-color: var(--yellow); box-shadow: 0 0 16px rgba(245,229,74,0.3); }
.quest-node .dot.park { border-color: var(--magenta); box-shadow: 0 0 16px rgba(196,92,255,0.3); }
.quest-node .dot.home { border-color: var(--cyan); }
.quest-node .line {
  flex: 1;
  width: 3px;
  min-height: 18px;
  background: linear-gradient(180deg, var(--green), rgba(61,218,109,0.15));
  margin: 4px 0;
}
.quest-node:last-child .line { display: none; }
.quest-card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.quest-card .q-when {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.quest-card .q-title {
  font-size: 22px;
  font-weight: 850;
  margin-top: 4px;
  line-height: 1.15;
}
.quest-card .q-bits {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quest-card .q-bit {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.quest-card .q-bit .when {
  color: var(--yellow);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  min-width: 4.5em;
}
.quest-card .q-bit .title {
  color: var(--ink);
  font-weight: 750;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  margin-top: 8px;
  padding: 12px;
  letter-spacing: 0.04em;
}

@media (max-width: 520px) {
  .weekend { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: 96px 1fr; }
  .countdown .num { font-size: 60px; }
}



/* PIN gate */
body.pin-locked {
  overflow: hidden;
}
body.pin-locked .app {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  filter: blur(10px);
  opacity: 0.25;
}

.pin-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(900px 500px at 20% -10%, rgba(91, 108, 255, 0.4), transparent 55%),
    radial-gradient(700px 420px at 90% 10%, rgba(245, 229, 74, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 55%, #0E152C);
}

.pin-panel {
  width: min(400px, 100%);
  background:
    linear-gradient(180deg, rgba(36, 48, 86, 0.95), rgba(26, 36, 71, 0.98));
  border: 1px solid rgba(245, 229, 74, 0.45);
  border-radius: 24px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.04);
  padding: 28px 22px 24px;
  text-align: center;
}

.pin-panel.shake {
  animation: pin-shake 0.4s ease;
}

@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(8px); }
}

.pin-badge {
  display: inline-block;
  background: rgba(245, 229, 74, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(245, 229, 74, 0.45);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pin-title {
  margin: 0;
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.pin-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 650;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 10px;
}

.pin-dots span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(245, 229, 74, 0.55);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.pin-dots span.filled {
  background: var(--yellow);
  box-shadow: 0 0 14px rgba(245, 229, 74, 0.45);
}

.pin-msg {
  min-height: 1.3em;
  margin: 6px 0 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.pin-msg.is-error {
  color: var(--danger);
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.pin-key {
  appearance: none;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  font-weight: 800;
  min-height: var(--tap);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  -webkit-user-select: none;
  user-select: none;
}

.pin-key:active:not(:disabled) {
  transform: translateY(1px);
  border-color: rgba(245, 229, 74, 0.45);
  color: var(--yellow);
}

.pin-key:disabled {
  opacity: 0.45;
  cursor: default;
}

.pin-key-action {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 420px) {
  .pin-panel { padding: 24px 16px 20px; }
  .pin-key { font-size: 26px; min-height: 68px; }
}

/* ========== THEME: PIXEL (Minecraft-adjacent, no IP art) ========== */
[data-theme="pixel"] {
  --bg0: #1a1a1a;
  --bg1: #2d2d2d;
  --panel: #3a2f28;
  --panel2: #4a3b30;
  --ink: #f4f4f4;
  --muted: #b8c4a8;
  --line: rgba(255,255,255,0.12);
  --yellow: #55FFFF; /* diamond cyan as time accent */
  --green: #5B8C3E;
  --indigo: #3B6E3B;
  --magenta: #C57B4A;
  --cyan: #55FFFF;
  --danger: #C74E4E;
  --shadow: 4px 4px 0 #0d0d0d;
  --radius: 0;
  --font: "Courier New", ui-monospace, Menlo, Monaco, monospace;
}
[data-theme="pixel"] body,
[data-theme="pixel"] {
  background:
    linear-gradient(#7EC850 0 28%, #8B6B4A 28% 34%, #5A4634 34% 100%) fixed;
  image-rendering: pixelated;
}
[data-theme="pixel"] .app {
  background: transparent;
}
[data-theme="pixel"] .badge {
  background: #3B6E3B;
  color: #F7E98E;
  border: 3px solid #1a1a1a;
  border-radius: 0;
  box-shadow: 3px 3px 0 #0d0d0d;
  letter-spacing: 0.04em;
}
[data-theme="pixel"] .tabs {
  background: #2a211c;
  border: 3px solid #1a1a1a;
  border-radius: 0;
  box-shadow: 4px 4px 0 #0d0d0d;
}
[data-theme="pixel"] .tab {
  border-radius: 0;
  font-size: 13px;
}
[data-theme="pixel"] .tab.active {
  background: #5B8C3E;
  color: #F7E98E;
  border: 3px solid #1a1a1a;
  box-shadow: inset -2px -2px 0 #3B6E3B, inset 2px 2px 0 #8FCB6A;
}
[data-theme="pixel"] .countdown {
  background: #2a211c;
  border: 4px solid #1a1a1a;
  border-radius: 0;
  box-shadow: 6px 6px 0 #0d0d0d;
}
[data-theme="pixel"] .countdown::before {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(0,0,0,0.08) 7px, rgba(0,0,0,0.08) 8px),
    repeating-linear-gradient(90deg, transparent, transparent 7px, rgba(0,0,0,0.08) 7px, rgba(0,0,0,0.08) 8px);
}
[data-theme="pixel"] .countdown .num { color: #55FFFF; text-shadow: 3px 3px 0 #0d0d0d; }
[data-theme="pixel"] .countdown .label { color: #8FCB6A; }
[data-theme="pixel"] .section h2 { color: #F7E98E; letter-spacing: 0.08em; }
[data-theme="pixel"] .section h2::after { background: linear-gradient(90deg, #5B8C3E, transparent); }
[data-theme="pixel"] .tile,
[data-theme="pixel"] .weekend-card,
[data-theme="pixel"] .quest-card {
  background: #3a2f28;
  border: 3px solid #1a1a1a;
  border-radius: 0;
  box-shadow: 4px 4px 0 #0d0d0d;
}
[data-theme="pixel"] .tile { border-left-width: 3px; }
[data-theme="pixel"] .tile.c0 { border-left: 6px solid #55FFFF; }
[data-theme="pixel"] .tile.c1 { border-left: 6px solid #5B8C3E; }
[data-theme="pixel"] .tile.c2 { border-left: 6px solid #C57B4A; }
[data-theme="pixel"] .tile.c3 { border-left: 6px solid #F7E98E; }
[data-theme="pixel"] .tile.c4 { border-left: 6px solid #7EC850; }
[data-theme="pixel"] .tile.c5 { border-left: 6px solid #C74E4E; }
[data-theme="pixel"] .tile .emo {
  border-radius: 0;
  background: #2a211c;
  border: 3px solid #1a1a1a;
  box-shadow: inset 2px 2px 0 #4a3b30;
}
[data-theme="pixel"] .tile .body .when { color: #55FFFF; }
[data-theme="pixel"] .quest-node .dot {
  border-radius: 0;
  border: 3px solid #1a1a1a;
  background: #5B8C3E;
  box-shadow: 3px 3px 0 #0d0d0d;
}
[data-theme="pixel"] .quest-node .dot.fly { background: #55FFFF; color: #1a1a1a; }
[data-theme="pixel"] .quest-node .dot.park { background: #C57B4A; }
[data-theme="pixel"] .quest-node .dot.home { background: #F7E98E; color: #1a1a1a; }
[data-theme="pixel"] .quest-node .line { background: #5B8C3E; width: 4px; }
[data-theme="pixel"] .quest-card .q-bit .when { color: #55FFFF; }
[data-theme="pixel"] .weekend-card .day { color: #8FCB6A; }

/* ========== THEME: ANIME (trainer journal / manga panel) ========== */
[data-theme="anime"] {
  --bg0: #FFF8F2;
  --bg1: #FFEDE0;
  --panel: #FFFFFF;
  --panel2: #FFFDFB;
  --ink: #1A1423;
  --muted: #6B5E78;
  --line: rgba(26, 20, 35, 0.14);
  --yellow: #FF3D7F; /* electric sakura/magenta as TIME accent */
  --green: #17C3B2;
  --indigo: #5B4BFF;
  --magenta: #FF3D7F;
  --cyan: #5B4BFF;
  --danger: #E63946;
  --shadow: 0 10px 0 rgba(26, 20, 35, 0.12);
  --radius: 20px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}
[data-theme="anime"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 61, 127, 0.18), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(91, 75, 255, 0.16), transparent 42%),
    linear-gradient(180deg, #FFF8F2, #FFE8F4 50%, #E8F7FF);
  color: var(--ink);
}
[data-theme="anime"] .badge {
  background: #fff;
  color: #5B4BFF;
  border: 2.5px solid #1A1423;
  box-shadow: 3px 3px 0 #1A1423;
}
[data-theme="anime"] .tabs {
  background: #fff;
  border: 2.5px solid #1A1423;
  box-shadow: 4px 4px 0 #1A1423;
}
[data-theme="anime"] .tab { color: #6B5E78; }
[data-theme="anime"] .tab.active {
  background: #1A1423;
  color: #FF3D7F;
  border: 2px solid #1A1423;
  box-shadow: none;
}
[data-theme="anime"] .countdown {
  background: linear-gradient(135deg, #FFF0F7, #EDE7FF);
  border: 3px solid #1A1423;
  box-shadow: 6px 6px 0 #1A1423;
  color: #1A1423;
}
[data-theme="anime"] .countdown::before {
  background: radial-gradient(circle at 20% 30%, rgba(255,61,127,0.15), transparent 40%);
}
[data-theme="anime"] .countdown .num {
  color: #FF3D7F;
  text-shadow: 3px 3px 0 #1A1423;
}
[data-theme="anime"] .countdown .label { color: #5B4BFF; }
[data-theme="anime"] .countdown .title { color: #1A1423; }
[data-theme="anime"] .countdown .hint { color: #6B5E78; }
[data-theme="anime"] .section h2 {
  color: #5B4BFF;
  letter-spacing: 0.16em;
}
[data-theme="anime"] .section h2::after {
  background: linear-gradient(90deg, #FF3D7F, transparent);
  height: 3px;
}
[data-theme="anime"] .tile,
[data-theme="anime"] .weekend-card,
[data-theme="anime"] .quest-card {
  background: #fff;
  border: 2.5px solid #1A1423;
  box-shadow: 5px 5px 0 #1A1423;
}
[data-theme="anime"] .tile .emo {
  background: #FFE8F4;
  border: 2px solid #1A1423;
  box-shadow: none;
  border-radius: 14px;
}
[data-theme="anime"] .tile .body .when { color: #FF3D7F; }
[data-theme="anime"] .tile .body .name { color: #1A1423; }
[data-theme="anime"] .tile.c0 { border-left: 6px solid #FF3D7F; }
[data-theme="anime"] .tile.c1 { border-left: 6px solid #5B4BFF; }
[data-theme="anime"] .tile.c2 { border-left: 6px solid #17C3B2; }
[data-theme="anime"] .tile.c3 { border-left: 6px solid #FFB703; }
[data-theme="anime"] .tile.c4 { border-left: 6px solid #E63946; }
[data-theme="anime"] .tile.c5 { border-left: 6px solid #8338EC; }
[data-theme="anime"] .weekend-card .day { color: #5B4BFF; }
[data-theme="anime"] .weekend-card .date { color: #1A1423; }
[data-theme="anime"] .mini-row { color: #1A1423; }
[data-theme="anime"] .empty { color: #6B5E78; }
[data-theme="anime"] .day-label { color: #5B4BFF !important; }
[data-theme="anime"] .quest-node .dot {
  background: #fff;
  border: 3px solid #1A1423;
  box-shadow: 3px 3px 0 #1A1423;
}
[data-theme="anime"] .quest-node .dot.fly { background: #EDE7FF; }
[data-theme="anime"] .quest-node .dot.park { background: #FFE8F4; }
[data-theme="anime"] .quest-node .dot.home { background: #E8F7FF; }
[data-theme="anime"] .quest-node .line {
  background: repeating-linear-gradient(
    180deg, #1A1423, #1A1423 6px, transparent 6px, transparent 10px
  );
  width: 3px;
}
[data-theme="anime"] .quest-card .q-when { color: #5B4BFF; }
[data-theme="anime"] .quest-card .q-title { color: #1A1423; }
[data-theme="anime"] .quest-card .q-bit .when { color: #FF3D7F; }
[data-theme="anime"] .quest-card .q-bit .title { color: #1A1423; }
[data-theme="anime"] .footer { color: #6B5E78; }
[data-theme="anime"] .greeting h1 { color: #1A1423; }
[data-theme="anime"] .greeting .sub { color: #6B5E78; }


/* iPad Safari: faster taps, no double-tap zoom delay on PIN keys */
.pin-pad, .pin-key {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.pin-key {
  cursor: pointer;
}


/* iPad Safari: never let label text steal the tap target */
.pin-key > * { pointer-events: none; }
.pin-gate, .pin-panel, .pin-pad, .pin-key { pointer-events: auto; }
.pin-entry-label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pin-entry {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 8px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(245, 229, 74, 0.45);
  background: rgba(11, 16, 32, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}
.pin-entry:focus {
  outline: 2px solid rgba(245, 229, 74, 0.65);
  outline-offset: 2px;
}


.pin-unlock-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(245, 229, 74, 0.65);
  background: rgba(245, 229, 74, 0.18);
  color: var(--yellow);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}
