:root {
  --green: #18453B; --green-edge: #0D2721; --green-soft: #E6EEEB; --green-mid: #D5E3DD;
  --red: #8E1A12; --red-edge: #5C0F0A; --red-soft: #F6E7E5;
  --ink: #14211D; --ink-soft: #4A5551; --line: #C9D6D1; --shadow: #B4C8C0;
  --bg: #FFFFFF; --card: #FFFFFF;
  --radius: 22px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 21px/1.42 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--green); }
.screen {
  max-width: 620px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; gap: 18px;
  padding: calc(env(safe-area-inset-top) + 14px) 20px calc(env(safe-area-inset-bottom) + 28px);
}
.screen.fixed { height: 100dvh; padding-bottom: 0; gap: 0; }
h1 { font-size: 32px; line-height: 1.15; margin: 2px 0 0; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 26px; line-height: 1.2; margin: 0; font-weight: 800; }
p { margin: 0; }
.app-name { color: var(--green); font-weight: 800; font-size: 26px; letter-spacing: -0.01em; }
.hello { font-size: 34px; font-weight: 800; line-height: 1.1; }
.soft { color: var(--ink-soft); }
.small { font-size: 18px; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.spacer { flex: 1; }

/* Buttons: big, labeled, and they move when pressed, so a press is felt. */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  min-height: 72px; padding: 14px 20px; border-radius: 20px; border: 0;
  font-weight: 700; font-size: 24px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.btn svg { width: 30px; height: 30px; flex: none; }
.btn.primary { background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--green-edge); }
.btn.red { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-edge); }
.btn.secondary { background: #fff; color: var(--green); border: 2.5px solid var(--green); box-shadow: 0 5px 0 var(--shadow); }
.btn.quiet { background: var(--green-soft); color: var(--green); min-height: 64px; font-size: 21px; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 transparent; }
.btn[disabled] { opacity: 0.45; }
.back {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 56px; padding: 8px 18px 8px 10px;
  border-radius: 16px; border: 2.5px solid var(--green); background: #fff; color: var(--green); font-weight: 700; font-size: 22px;
  box-shadow: 0 4px 0 var(--shadow);
}
.back svg { width: 26px; height: 26px; }
.link { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; font-size: 18px; min-height: 48px; }

/* Home: one big tile per thing to do. */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px;
  min-height: 140px; padding: 18px; border-radius: var(--radius); border: 0; text-align: left; cursor: pointer;
  background: var(--green-soft); color: var(--ink); font-weight: 750; font-size: 22px; line-height: 1.2;
  box-shadow: 0 5px 0 var(--shadow); transition: transform 0.06s ease;
}
.tile:active { transform: translateY(4px); box-shadow: 0 1px 0 transparent; }
.tile .ic { width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.tile .ic svg { width: 28px; height: 28px; }
.tile.red .ic { background: var(--red); }
.hero {
  background: var(--green); color: #fff; border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 6px 0 var(--green-edge); border: 0; text-align: left; cursor: pointer; width: 100%;
}
.hero .title { font-size: 28px; font-weight: 800; line-height: 1.15; display: flex; gap: 12px; align-items: center; }
.hero .title svg { width: 36px; height: 36px; flex: none; }
.hero .sub { font-size: 20px; opacity: 0.92; }
.hero .go { align-self: flex-start; background: #fff; color: var(--green); border-radius: 14px; padding: 10px 16px; font-weight: 800; font-size: 20px; }
.hero:active { transform: translateY(4px); box-shadow: 0 1px 0 transparent; }
.hero.night { background: #1F2D52; box-shadow: 0 6px 0 #121B33; }
.hero.night .go { color: #1F2D52; }

/* Cards */
.card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 4px 0 var(--shadow);
}
.card.strong { border: 3px solid var(--green); }
.card.alarm { border: 3px solid var(--red); background: var(--red-soft); }
.answer { font-size: 25px; line-height: 1.38; }
.label { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--green); }
.cite { color: var(--ink-soft); font-size: 18px; }
.divider { height: 2px; background: var(--line); border: 0; margin: 2px 0; }
.note-box { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--green-mid); font-weight: 700; font-size: 19px; }
.note-box svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.thinking { display: flex; gap: 14px; align-items: center; font-weight: 700; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulse 1.1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: 0.15s; } .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

/* Text boxes */
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-weight: 700; }
.input, textarea.input {
  width: 100%; min-height: 72px; padding: 16px 18px; border-radius: 18px; border: 2.5px solid var(--ink-soft);
  background: #fff; font-size: 24px; outline: none;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.35; }
.input:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.oops { color: var(--red); font-weight: 700; }
.calm { color: var(--ink); font-weight: 700; }

/* Lists */
.list { display: flex; flex-direction: column; gap: 12px; }
.row-btn {
  display: flex; gap: 16px; align-items: center; width: 100%; text-align: left; padding: 16px; border-radius: 20px;
  border: 2px solid var(--line); background: #fff; box-shadow: 0 4px 0 var(--shadow); cursor: pointer;
}
.row-btn:active { transform: translateY(3px); box-shadow: none; }
.row-btn .ic { width: 58px; height: 58px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.row-btn .ic.play { background: var(--green); color: #fff; }
.row-btn .ic svg { width: 26px; height: 26px; }
.row-btn .t { font-weight: 750; font-size: 22px; line-height: 1.2; }
.row-btn .s { color: var(--ink-soft); font-size: 17px; margin-top: 3px; }
.day { font-weight: 800; color: var(--ink-soft); margin-top: 8px; }

/* Playing a recording or video */
video { width: 100%; max-height: 330px; background: #000; border-radius: 18px; }
.progress { height: 12px; border-radius: 6px; background: var(--green-soft); overflow: hidden; }
.progress > div { height: 100%; background: var(--green); width: 0; }
.line { padding: 16px; border-radius: 18px; border: 2px solid var(--line); background: #fff; cursor: pointer; text-align: left; width: 100%; }
.line .who { color: var(--ink-soft); font-size: 17px; font-weight: 700; }
.line.now { border-color: var(--green); background: var(--green-soft); }
.page-img { width: 100%; border-radius: 18px; border: 2px solid var(--line); }
.step-img { width: 100%; max-height: 320px; object-fit: contain; border-radius: 18px; background: var(--green-soft); }
.big-step { font-size: 30px; font-weight: 800; line-height: 1.22; }

/* Show me the words */
.words-top { display: flex; align-items: center; gap: 12px; padding: 14px 0 12px; border-bottom: 2px solid var(--line); }
.words-top .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--red); transition: transform 0.15s ease; }
.words-top .state { font-weight: 800; font-size: 24px; color: var(--red); }
.words-top .state.ok { color: var(--green); }
.words-top .time { margin-left: auto; font-weight: 800; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.words-note { padding: 10px 0; font-size: 19px; }
.words { flex: 1; overflow-y: auto; padding: 18px 2px 24px; -webkit-overflow-scrolling: touch; }
.words p { font-weight: 500; margin: 0 0 0.75em; line-height: 1.3; }
.words p b { font-weight: 850; }
.words .waiting { color: var(--ink-soft); }
.words-bottom {
  display: flex; flex-direction: column; gap: 14px; padding: 16px 0 calc(env(safe-area-inset-bottom) + 14px);
  border-top: 2px solid var(--line); background: var(--bg);
}
.newest { position: sticky; bottom: 10px; margin: 0 auto; display: flex; gap: 8px; align-items: center; background: var(--green); color: #fff; border: 0; border-radius: 30px; min-height: 58px; padding: 0 22px; font-weight: 800; font-size: 20px; }
.newest svg { width: 24px; height: 24px; }

/* The record button */
.rec-wrap { display: grid; place-items: center; padding: 10px 0; }
.rec-ring { width: 210px; height: 210px; border-radius: 50%; background: var(--red-soft); display: grid; place-items: center; transition: transform 0.15s ease; }
.rec-dot { width: 150px; height: 150px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; }
.rec-dot svg { width: 60px; height: 60px; }
.clock { font-size: 56px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }

/* A question that needs an answer, over the page */
.sheet-back { position: fixed; inset: 0; background: rgba(20, 33, 29, 0.45); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { width: 100%; max-width: 620px; background: #fff; border-radius: 26px 26px 0 0; padding: 26px 20px calc(env(safe-area-inset-bottom) + 22px); display: flex; flex-direction: column; gap: 14px; }

.toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 12px); transform: translateX(-50%); background: var(--green); color: #fff; padding: 14px 22px; border-radius: 18px; font-weight: 700; z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* The app's bottom buttons: Record, Add, Ask — always in reach */
.screen.with-dock { padding-bottom: calc(env(safe-area-inset-bottom) + 230px); }
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--bg); border-top: 2px solid var(--line);
  padding: 14px 20px calc(env(safe-area-inset-bottom) + 14px); display: flex; flex-direction: column; gap: 14px;
}
.dock > * { max-width: 580px; margin: 0 auto; width: 100%; }
.dock .btn.red { min-height: 84px; font-size: 28px; }

/* The front door and the warm touches: the lake, a serif, a little Michigan */
.serif { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }
.landing { min-height: 100dvh; background: #fff; }
.front {
  position: relative; min-height: 88dvh; display: flex; align-items: flex-end; color: #fff;
  background: #2b5d7a url(/img/torch-lake.jpg) center 35% / cover no-repeat;
}
.front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 30, 48, 0.05) 25%, rgba(8, 30, 48, 0.72) 100%); }
.front-inner { position: relative; width: 100%; max-width: 620px; margin: 0 auto; padding: 24px 20px calc(env(safe-area-inset-bottom) + 28px); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 700; opacity: 0.92; margin: 0; }
.front-title { font-size: 54px; line-height: 1.02; margin: 10px 0 6px; font-weight: 600; letter-spacing: -0.01em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.front-sub { font-size: 23px; margin: 0 0 22px; opacity: 0.96; }
.signin-card { background: rgba(255, 255, 255, 0.95); color: var(--ink); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28); }
.signin-title { font-weight: 800; font-size: 22px; }
.places { max-width: 980px; margin: 0 auto; padding: 22px 20px; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .places { grid-template-columns: repeat(3, 1fr); } }
.place { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 4px 14px rgba(20, 33, 29, 0.08); }
.place img { width: 100%; height: 170px; object-fit: cover; display: block; }
.place figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.place b { font-size: 21px; font-weight: 600; color: #1d3554; }
.place span { color: var(--ink-soft); font-size: 16px; }
.gamenight { position: relative; color: #fff; background: #1d2a33 url(/img/hoop.jpg) center / cover no-repeat; }
.gamenight::before { content: ""; position: absolute; inset: 0; background: rgba(12, 18, 24, 0.62); }
.gamenight-inner { position: relative; max-width: 620px; margin: 0 auto; padding: 34px 20px; }
.gamenight h2 { font-size: 30px; font-weight: 600; margin: 8px 0 4px; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.team { border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.team b { font-size: 21px; font-weight: 600; }
.team .eyebrow { font-size: 10px; }
.team.duke { background: #012169; }
.team.msu { background: #18453B; }
.landing-foot { text-align: center; padding: 28px 20px calc(env(safe-area-inset-bottom) + 28px); color: var(--ink-soft); font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.landing-foot .credits { font-size: 12px; max-width: 560px; }
.pill { background: #fff; border: 1.5px solid var(--line); border-radius: 30px; padding: 12px 22px; font-weight: 700; color: #1d3554; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); }
.lake-band {
  position: relative; border-radius: 22px; overflow: hidden; min-height: 116px; padding: 18px 20px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  background: #2b5d7a url(/img/torch-lake.jpg) center 40% / cover no-repeat;
}
.lake-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 30, 48, 0.05), rgba(8, 30, 48, 0.6)); }
.lake-band > * { position: relative; }
.lake-band span { font-size: 34px; font-weight: 600; line-height: 1.1; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.lake-band small { font-size: 16px; font-weight: 700; opacity: 0.95; letter-spacing: 0.02em; }

/* Printouts for Greg: big print on the page and on paper */
.printout { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 22px; font-size: 21px; line-height: 1.5; }
.printout h1 { font-size: 30px; margin: 0 0 4px; }
.printout h2 { font-size: 24px; border-bottom: 2px solid var(--green); padding-bottom: 4px; margin: 22px 0 8px; }
.printout ul { padding-left: 22px; margin: 0; }
.printout li { margin: 6px 0; }
.print-for { color: var(--ink-soft); font-size: 16px; margin-bottom: 8px; }
.print-foot { color: var(--ink-soft); font-size: 15px; margin-top: 24px; }
@media print {
  body { background: #fff; }
  .back, .no-print, .dock, .toast { display: none !important; }
  .screen { padding: 0; max-width: none; min-height: 0; }
  .printout { border: 0; padding: 0; font-size: 18pt; }
  .printout h1 { font-size: 26pt; } .printout h2 { font-size: 20pt; }
}
