@import url("https://fonts.googleapis.com/css2?family=Bungee&display=swap");
:root {
  --sky: #3FA9F5;
  --ink: #1F2A44;
  --card: #FFFFFF;
  --muted: #55607A;
  --accent: #FF7A1A;
  --accent-d: #C4540A;
  --hill: #4CBB17;
  --hill-d: #2F7F0C;
  --sub: #0E2A4D;
  --soft: #F2F8FF;
  --line: #C9CED6;
  --gold: #FFE27A;
  --ok: #1E7A45;
  --off: #7A3E9E;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--sky);
  color: var(--ink);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.top { position: relative; display: flex; align-items: center; gap: 12px; padding: 26px 20px 16px; max-width: 560px; margin: 0 auto; overflow: hidden; }
.cloud { position: absolute; display: block; }
.cloud.c1 { top: 2px; right: 10px; }
.cloud.c2 { top: 78px; right: -16px; }
.logo-box { position: relative; flex-shrink: 0; background: var(--accent); border: 4px solid var(--ink); box-shadow: 0 4px 0 var(--ink); padding: 5px; }
.top > div:last-child { position: relative; }
h1 { font-size: 26px; font-weight: 800; margin: 0; line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; }
.sub { margin: 2px 0 0; color: var(--sub); font-size: 14px; font-weight: 700; }
.hill { height: 22px; background: var(--hill); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--hill-d); }
main { max-width: 560px; margin: 0 auto; padding: 20px 16px 0; }
.card { background: var(--card); border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); padding: 18px; margin-bottom: 22px; }
h2 { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); margin: 0 0 10px; }
h2.spaced { margin-top: 22px; }
label { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 36px 12px 12px; font-size: 16px; font-weight: 600;
  border: 3px solid var(--ink); border-radius: 0; background-color: #FFFFFF; color: var(--ink);
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%231F2A44'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
}
button {
  font: inherit; font-weight: 800; min-height: 44px; padding: 10px 16px; border-radius: 0;
  border: 3px solid var(--ink); background: #FFFFFF; color: var(--ink); box-shadow: 0 3px 0 var(--ink); cursor: pointer;
}
button:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
button:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid #FFD54A; outline-offset: 2px; }
button.primary {
  width: 100%; background: var(--accent); color: #FFFFFF; border-width: 4px; text-transform: uppercase; letter-spacing: 0.03em;
  box-shadow: inset 0 -5px 0 var(--accent-d), 0 4px 0 var(--ink);
}
button.ghost { background: #FFFFFF; color: var(--ink); }
button:disabled { opacity: 0.55; cursor: default; }
button.small { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.row { display: flex; gap: 10px; }
.row button { flex: 1; }
.ok { color: var(--ok); font-weight: 800; margin: 0 0 12px; }
.hint { margin-top: 14px; padding: 12px; background: var(--soft); font-size: 14px; border: 3px dashed var(--ink); }
.message { min-height: 1.2em; font-size: 14px; font-weight: 600; color: var(--muted); margin: 12px 0 0; }
.message:empty { display: none; }
.muted { color: var(--muted); }
.summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sum-school { margin: 0; font-weight: 800; font-size: 17px; }
.sum-detail { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
button.done { width: 100%; margin-top: 14px; }

.today { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.today .badge { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: var(--ink); color: var(--gold); padding: 5px 12px; }
.today .pics { display: flex; align-items: flex-end; gap: 6px; }
.today .main { font-size: 25px; font-weight: 800; line-height: 1.2; margin: 0; }
.today .main svg { display: inline-block; vertical-align: middle; margin-left: 6px; }
.today .meta { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.today .off { font-size: 20px; font-weight: 800; color: var(--off); margin: 0; }
.group { margin: 4px 0 0; font-size: 15px; }
.group b { color: var(--muted); font-weight: 700; margin-right: 4px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.more { width: 100%; }
.more summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  background: var(--sky); color: #FFFFFF; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font-size: 15px; font-weight: 800;
}
.more[open] .o, .more:not([open]) .c { display: none; }
.more .full { border: 3px solid var(--ink); margin-top: 12px; background: var(--soft); }
.full { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; text-align: left; padding: 10px 12px 12px; }
.mh { margin: 0 0 3px; font-size: 12px; font-weight: 800; color: #FFFFFF; background: var(--ink); display: inline-block; padding: 2px 7px; }
.mg ul { margin: 0; padding: 0 0 0 16px; font-size: 14px; font-weight: 700; line-height: 1.35; }
@media (max-width: 340px) { .full { grid-template-columns: minmax(0, 1fr); } }

.week-wrap { margin-bottom: 22px; }
.week-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.week-head h2 { margin: 0; font-size: 21px; }
.week { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.week > li { background: #FFFFFF; border: 3px solid var(--ink); }
.week > li.muted { padding: 12px; }
.week .sum, .week summary { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.week .d { width: 44px; flex-shrink: 0; font-weight: 800; font-size: 15px; line-height: 1.15; text-transform: uppercase; }
.week .d small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.week .is-today .d { color: var(--accent-d); }
.week .is-today { border-color: var(--accent-d); }
.week .nm { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.25; }
.week .off { flex: 1; color: var(--off); font-weight: 700; }
.chev { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--ink); font-size: 14px; font-weight: 800; line-height: 1; transition: transform 0.15s; }
.week details[open] .chev { transform: rotate(180deg); }
.week .full { border-top: 3px dashed var(--line); }

footer { max-width: 560px; margin: 0 auto; padding: 4px 20px 28px; color: var(--sub); font-size: 12px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } button:active { transform: none; } }

/* Title font: blocky display face for the two headings only */
h1, .week-head h2 { font-family: "Bungee", "Arial Black", Impact, system-ui, sans-serif; font-weight: 400; letter-spacing: 0.01em; }
h1 { font-size: 24px; line-height: 1.15; }
.week-head h2 { font-size: 21px; }
button, button.ghost, .more summary { background: #F6A623; color: #1F2A44; box-shadow: inset 0 -4px 0 #C97F0E, 0 3px 0 #1F2A44; } button.primary { background: var(--accent); color: #FFFFFF; box-shadow: inset 0 -5px 0 var(--accent-d), 0 4px 0 var(--ink); } .chev { background: #F6A623; }

/* Install banner: slim, dark, plain (shown once, separate from the game-style screens) */
.install { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 10px 8px 10px 12px; background: #111827; color: #FFFFFF; border-radius: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.install img { flex-shrink: 0; width: 40px; height: 40px; border-radius: 9px; }
.install-text { flex: 1; min-width: 0; }
.install-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.2; }
.install-line { margin: 2px 0 0; font-size: 13px; line-height: 1.35; color: #D1D5DB; }
.install-line b { color: #FFFFFF; font-weight: 600; }
.share-ico { display: inline-block; vertical-align: -4px; margin: 0 1px; }
.install .share-ico path { stroke: #60A5FA; }
.install button { font-family: inherit; border: 0; box-shadow: none; text-transform: none; letter-spacing: 0; }
.install button:active { transform: none; box-shadow: none; opacity: 0.8; }
.install .install-btn { flex-shrink: 0; min-height: 36px; padding: 0 16px; border-radius: 999px; background: #007AFF; color: #FFFFFF; font-size: 15px; font-weight: 600; box-shadow: none; }
.install .install-x { flex-shrink: 0; width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 50%; background: transparent; color: #9CA3AF; font-size: 22px; font-weight: 400; line-height: 1; box-shadow: none; }
button.how { display: block; margin-top: 10px; }
.ios-arrow { position: fixed; left: 50%; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; transform: translateX(-50%); animation: bob 1.1s ease-in-out infinite; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.ios-arrow span { background: #111827; color: #FFFFFF; font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 999px; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .ios-arrow { animation: none; } }
