/* Layout: a sticker-bombed notebook. Everything is a fat-bordered sticker,
   slightly crooked, with a hard black shadow. The next quiz is the biggest
   sticker on the page. Nothing sits straight on purpose. */

@font-face {
  font-family: "Bagel Fat One";
  src: url("fonts/bagel-fat-one-400.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Comic Neue";
  src: url("fonts/comic-neue-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Comic Neue";
  src: url("fonts/comic-neue-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("fonts/silkscreen-400.woff2") format("woff2");
  font-display: swap;
}

:root {
  --page: #ffd6f0;
  --page-dots: #ff9fd6;
  --page-ink: #1a0b2e;
  --paper: #fffdf5;
  --ink: #1a0b2e;
  --pink: #ff4fa3;
  --lime: #b8ff3d;
  --cyan: #46e6ff;
  --orange: #ff9a2e;
  --purple: #b18cff;
  --yellow: #ffe83b;
  --red: #ff3b3b;
  --shadow: #1a0b2e;
  --heading-shadow: #ff4fa3;

  --font-display: "Bagel Fat One", "Arial Black", Impact, sans-serif;
  --font-body: "Comic Neue", "Comic Sans MS", "Chalkboard SE", sans-serif;
  --font-pixel: "Silkscreen", "Courier New", monospace;

  --sticker-border: 3px solid var(--ink);
  --sticker-shadow: 6px 6px 0 var(--shadow);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #1b0b3a;
    --page-dots: #3d1f7a;
    --page-ink: #fff6c9;
    --shadow: #ff4fa3;
    --heading-shadow: #7b3dff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #1b0b3a;
  --page-dots: #3d1f7a;
  --page-ink: #fff6c9;
  --shadow: #ff4fa3;
    --heading-shadow: #7b3dff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--page);
  background-image: radial-gradient(var(--page-dots) 2px, transparent 2.5px);
  background-size: 26px 26px;
  color: var(--page-ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-x: hidden;
}

a { color: inherit; }
:focus-visible { outline: 4px dashed var(--pink); outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- ticker ---- */

.ticker {
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 3px solid var(--lime);
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: inline-block;
  padding-block: 0.45rem;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-track span { padding-inline: 1.5rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- floating emoji ---- */

.floating-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.floating-emoji {
  position: absolute;
  bottom: -3rem;
  font-size: 2rem;
  opacity: 0.55;
  animation: float-up linear infinite;
}
@keyframes float-up {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-115vh) rotate(360deg); }
}
.burst-emoji {
  position: fixed;
  font-size: 1.6rem;
  pointer-events: none;
  z-index: 10;
  animation: burst-fly 900ms ease-out forwards;
}
@keyframes burst-fly {
  to { transform: translate(var(--burst-x), var(--burst-y)) rotate(var(--burst-turn)) scale(0.4); opacity: 0; }
}

/* ---- page ---- */

.page {
  position: relative;
  z-index: 1;
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: 1.25rem;
  padding-block: 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--lime);
  color: var(--ink);
  border: var(--sticker-border);
  box-shadow: var(--sticker-shadow);
  border-radius: 1rem;
  padding: 0.35rem 1rem 0.5rem;
  transform: rotate(-3deg);
}
.logo:hover { animation: wiggle 400ms ease-in-out; }
.logo-main { font-family: var(--font-display); font-size: 2rem; line-height: 1; letter-spacing: 0.01em; }
.logo-sub { font-family: var(--font-pixel); font-size: 0.65rem; }

.masthead-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 16rem;
  justify-content: flex-end;
  min-width: 0;
}
.search { flex: 1 1 auto; max-width: 22rem; min-width: 0; }
.search input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: var(--sticker-border);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 0.55rem 1.1rem;
}
.search input::placeholder { color: #7a6a96; }

.chunky-button {
  font: inherit;
  font-size: 1.2rem;
  color: var(--ink);
  background: var(--yellow);
  border: var(--sticker-border);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.chunky-button:hover { transform: translate(-2px, -2px) rotate(-4deg); box-shadow: 6px 6px 0 var(--shadow); }
.chunky-button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }

/* ---- tabs ---- */

.section-tabs { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.section-tab {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: var(--sticker-border);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 0.35rem 1rem;
}
.section-tab:nth-child(odd) { transform: rotate(-1.5deg); }
.section-tab:nth-child(even) { transform: rotate(1.5deg); }
.section-tab:hover { background: var(--cyan); }
.section-tab[aria-current="page"] { background: var(--pink); color: var(--paper); }
.section-tab-count { font-family: var(--font-pixel); font-size: 0.7rem; margin-left: 0.4rem; }

/* ---- main ---- */

main { display: flex; flex-direction: column; gap: 2.75rem; }
.block { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }

.block-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1;
  font-weight: 400;
  text-shadow: 3px 3px 0 var(--heading-shadow);
  transform: rotate(-1deg);
  transform-origin: left center;
}
.block-subheading { margin: -0.6rem 0 0; font-family: var(--font-pixel); font-size: 0.75rem; opacity: 0.85; }

.sticker {
  background: var(--paper);
  color: var(--ink);
  border: var(--sticker-border);
  border-radius: 1.25rem;
  box-shadow: var(--sticker-shadow);
}

/* ---- boss fight (next quiz) ---- */

.boss {
  background: var(--yellow);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
  transform: rotate(-0.6deg);
}
.boss-text { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.boss-eyebrow {
  align-self: flex-start;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  background: var(--ink);
  color: var(--lime);
  padding: 0.2rem 0.6rem;
  border-radius: 0.4rem;
  transform: rotate(-2deg);
}
.boss-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 0.92;
  text-shadow: 4px 4px 0 var(--pink);
  text-wrap: balance;
}
.boss-verdict { margin: 0; font-size: 1.35rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.chip {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}
.chip:nth-child(1) { background: var(--cyan); }
.chip:nth-child(3) { background: var(--lime); }
.chip:nth-child(4) { background: var(--purple); }
.boss-note { margin: 0; font-weight: 400; max-width: 58ch; }

.boss-side { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.starburst {
  position: relative;
  width: 11.5rem;
  height: 11.5rem;
  display: grid;
  place-items: center;
}
.starburst-shape,
.starburst-shape::before {
  position: absolute;
  inset: 1.4rem;
  background: var(--pink);
  border: var(--sticker-border);
  border-radius: 1.2rem;
}
.starburst-shape { animation: spin 14s linear infinite; }
.starburst-shape::before { content: ""; inset: -3px; transform: rotate(45deg); }
.starburst.is-cooked .starburst-shape,
.starburst.is-cooked .starburst-shape::before { background: var(--red); }
.starburst-text {
  position: relative;
  text-align: center;
  color: var(--paper);
  font-family: var(--font-display);
  line-height: 0.9;
  transform: rotate(-8deg);
  text-shadow: 3px 3px 0 var(--shadow);
}
.starburst-number { display: block; font-size: 4.2rem; }
.starburst-unit { display: block; font-size: 1.3rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.live-timer {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  background: var(--ink);
  color: var(--lime);
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---- cooked-o-meter ---- */

.cooked-meter { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.35rem; }
.cooked-meter-label { font-family: var(--font-pixel); font-size: 0.75rem; display: flex; justify-content: space-between; gap: 1rem; }
.cooked-meter-bar {
  position: relative;
  height: 1.6rem;
  border: var(--sticker-border);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), var(--yellow) 40%, var(--orange) 70%, var(--red));
}
.cooked-meter-pointer {
  position: absolute;
  top: 50%;
  font-size: 2rem;
  line-height: 1;
  transform: translate(-50%, -50%);
  animation: bob 900ms ease-in-out infinite alternate;
}
@keyframes bob { to { transform: translate(-50%, -70%) rotate(12deg); } }

/* ---- sticker rows (assessments, notices) ---- */

.stack { display: flex; flex-direction: column; gap: 0.9rem; list-style: none; margin: 0; padding: 0; }

.assessment-row {
  display: grid;
  grid-template-columns: 7rem 6rem minmax(0, 1fr) auto;
  gap: 0.3rem 1rem;
  align-items: center;
  padding: 0.75rem 1.1rem;
}
.stack > li:nth-child(odd) { transform: rotate(-0.4deg); }
.stack > li:nth-child(even) { transform: rotate(0.4deg); }
.stack > li:hover { transform: rotate(0deg) translate(-2px, -2px); }

.assessment-date, .notice-date { font-family: var(--font-pixel); font-size: 0.8rem; }
.course-badge {
  justify-self: start;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.15rem 0.5rem;
  border-radius: 0.4rem;
}
.assessment-name { font-family: var(--font-display); font-size: 1.25rem; margin-right: 0.5rem; }
.assessment-detail { font-weight: 400; }
.countdown-pill {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  white-space: nowrap;
}
.countdown-pill.is-urgent { background: var(--red); color: var(--paper); animation: wiggle 500ms ease-in-out infinite; }
.countdown-pill.is-past { background: #d9d2e6; }
.is-past { filter: saturate(0.6); }

.graveyard > summary {
  cursor: pointer;
  list-style: none;
  align-self: flex-start;
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  background: var(--purple);
  color: var(--ink);
  border: var(--sticker-border);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 0.4rem 1.1rem;
  transform: rotate(1deg);
}
.graveyard > summary::-webkit-details-marker { display: none; }
.graveyard[open] > summary { margin-bottom: 1rem; background: var(--cyan); }

/* ---- doom picker ---- */

.doom { padding: 1.1rem 1.25rem; background: var(--cyan); display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.25rem; transform: rotate(0.5deg); }
.doom-button { font-family: var(--font-display); font-size: 1.15rem; background: var(--pink); color: var(--paper); }
.doom-result { margin: 0; flex: 1 1 16rem; min-width: 0; }
.doom-result a { text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* ---- courses ---- */

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.course-card { display: flex; }
.course-card > a {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem 1.1rem;
  text-decoration: none;
  min-height: 11.5rem;
}
.course-card:nth-child(6n + 1) > a { background: var(--pink); transform: rotate(-1.5deg); }
.course-card:nth-child(6n + 2) > a { background: var(--lime); transform: rotate(1deg); }
.course-card:nth-child(6n + 3) > a { background: var(--cyan); transform: rotate(-0.8deg); }
.course-card:nth-child(6n + 4) > a { background: var(--orange); transform: rotate(1.6deg); }
.course-card:nth-child(6n + 5) > a { background: var(--purple); transform: rotate(-1.2deg); }
.course-card:nth-child(6n + 6) > a { background: var(--yellow); transform: rotate(0.9deg); }
.course-card > a:hover { animation: wiggle 400ms ease-in-out; }
.course-card.is-empty > a { background: var(--paper); border-style: dashed; }
.course-emoji { font-size: 2rem; line-height: 1; }
.course-card .course-badge { align-self: flex-start; }
.course-title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.05; }
.course-staff { font-weight: 400; font-size: 0.95rem; }
.course-status { margin-top: auto; font-family: var(--font-pixel); font-size: 0.72rem; }

@keyframes wiggle {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -3deg; }
  75% { rotate: 3deg; }
}

/* ---- notices ---- */

.notice-row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  gap: 0.3rem 1rem;
  align-items: start;
  padding: 0.85rem 1.1rem;
}
.notice-title { font-size: 1.1rem; }
.notice-title .course-badge { margin-right: 0.5rem; vertical-align: middle; }
.notice-body { margin: 0.25rem 0 0; font-weight: 400; max-width: 65ch; }
.notice-due { display: block; width: fit-content; margin-top: 0.45rem; }
.notice-links { display: flex; gap: 0.5rem; }
.link-button {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  text-decoration: none;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  box-shadow: 3px 3px 0 var(--shadow);
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}
.link-button:hover { background: var(--pink); color: var(--paper); }

/* ---- phone bottom bar (hidden on wide screens) ---- */

.bottom-tabs { display: none; }

/* ---- jump chips on a course page ---- */

.jump-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump-bar:empty { display: none; }
.jump-chip {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--shadow);
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}
.jump-chip:hover { background: var(--cyan); }

/* ---- course page ---- */

.back-link { align-self: flex-start; text-decoration: none; }
.course-page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.95;
  text-shadow: 4px 4px 0 var(--pink);
  text-wrap: balance;
}
.course-page-meta { margin: 0; font-family: var(--font-pixel); font-size: 0.8rem; }

.empty-message { margin: 0; padding: 1rem 1.25rem; align-self: flex-start; transform: rotate(-1deg); }

/* ---- calendar ---- */

.calendar-frame {
  width: 100%;
  height: max(32rem, calc(100vh - 16rem));
  background: #ffffff;
  padding: 0;
}

/* ---- footer ---- */

.footer {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  font-size: 0.95rem;
}
.footer p { margin: 0; }
.footer-mossad {
  flex-basis: 100%;
  align-self: flex-start;
  width: fit-content;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  background: var(--ink);
  color: var(--lime);
  padding: 0.3rem 0.7rem;
  border-radius: 0.5rem;
  transform: rotate(-1deg);
}
.footer-updated { font-family: var(--font-pixel); font-size: 0.72rem; }

/* ---- phones ----
   One thumb, one column: sections live in a bar at the bottom, the header is
   a single slim row, cards sit straight, and long text opens on tap. */

@media (max-width: 680px) {
  :root { --sticker-shadow: 4px 4px 0 var(--shadow); }

  body { font-size: 1rem; }
  .page {
    padding-inline: 0.9rem;
    padding-block: 0.9rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
    gap: 1.1rem;
  }
  main { gap: 2rem; }

  /* header: logo, search and theme on one row */
  .masthead { flex-wrap: nowrap; gap: 0.6rem; }
  .logo { padding: 0.25rem 0.6rem 0.3rem; border-radius: 0.8rem; box-shadow: 3px 3px 0 var(--shadow); flex: none; }
  .logo-main { font-size: 1.15rem; }
  .logo-sub { display: none; }
  .masthead-tools { gap: 0.5rem; flex: 1 1 auto; }
  .search { max-width: none; }
  .search input { padding: 0.4rem 0.85rem; font-size: 1rem; box-shadow: 3px 3px 0 var(--shadow); }
  .chunky-button { box-shadow: 3px 3px 0 var(--shadow); }
  #theme-button { padding: 0.3rem 0.6rem; font-size: 1.05rem; flex: none; }

  /* sections move to the bottom bar */
  .section-tabs { display: none; }
  .bottom-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    background: var(--ink);
    border-top: 3px solid var(--lime);
    padding: 0.3rem 0.25rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
  }
  .bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.3rem 0.1rem;
    border-radius: 0.7rem;
    text-decoration: none;
    color: var(--paper);
    min-width: 0;
  }
  .bottom-tab-emoji { font-size: 1.35rem; line-height: 1.1; }
  .bottom-tab-label { font-family: var(--font-pixel); font-size: 0.58rem; white-space: nowrap; }
  .bottom-tab[aria-current="page"] { background: var(--pink); }

  .block { gap: 0.8rem; }
  .block-heading { font-size: 1.7rem; transform: none; }
  .block-subheading { margin-top: -0.45rem; }

  /* next quiz: title, then badge and timer side by side */
  .boss { grid-template-columns: minmax(0, 1fr); padding: 1rem; gap: 0.9rem; transform: none; border-radius: 1rem; }
  .boss-text { gap: 0.55rem; }
  .boss-title { font-size: clamp(2rem, 10.5vw, 2.8rem); text-shadow: 3px 3px 0 var(--pink); }
  .boss-verdict { font-size: 1.05rem; }
  .boss-side { flex-direction: row; justify-content: flex-start; gap: 0.9rem; }
  .starburst { width: 6.2rem; height: 6.2rem; flex: none; }
  .starburst-shape, .starburst-shape::before { inset: 0.8rem; border-radius: 0.7rem; }
  .starburst-shape::before { inset: -3px; }
  .starburst-number { font-size: 2.3rem; }
  .starburst-unit { font-size: 0.8rem; }
  .live-timer { white-space: normal; font-size: 0.75rem; }

  /* long text: two lines until tapped */
  .clampable:not(.is-open) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .has-body, .boss-note { cursor: pointer; }
  .has-body .notice-text::after,
  .boss-note:not(.is-open)::after { font-family: var(--font-pixel); font-size: 0.62rem; opacity: 0.6; }
  .has-body:not(:has(.clampable.is-open)) .notice-text::after { content: "tap for more ▾"; display: block; margin-top: 0.3rem; }

  /* cards sit straight and tighter */
  .stack { gap: 0.65rem; }
  .stack > li:nth-child(odd), .stack > li:nth-child(even), .stack > li:hover { transform: none; }
  .sticker { border-radius: 0.9rem; }

  .assessment-row { grid-template-columns: auto minmax(0, 1fr) auto; padding: 0.6rem 0.8rem; gap: 0.25rem 0.6rem; }
  .assessment-row .course-badge { grid-column: 1; grid-row: 1; }
  .assessment-date { grid-column: 2; grid-row: 1; }
  .assessment-row .countdown-pill { grid-column: 3; grid-row: 1; }
  .assessment-what { grid-column: 1 / -1; grid-row: 2; }
  .assessment-name { font-size: 1.1rem; }

  .notice-row { grid-template-columns: minmax(0, 1fr) auto; padding: 0.65rem 0.8rem; gap: 0.2rem 0.6rem; }
  .notice-date { grid-column: 1; grid-row: 1; font-size: 0.68rem; opacity: 0.75; }
  .notice-links { grid-column: 2; grid-row: 1 / span 2; align-self: start; flex-direction: column; }
  .notice-text { grid-column: 1; grid-row: 2; }
  .notice-title { font-size: 1rem; line-height: 1.3; }
  .notice-body { font-size: 0.92rem; }

  .graveyard > summary { font-size: 1rem; transform: none; }
  .doom { padding: 0.8rem 0.9rem; transform: none; }

  /* courses: two compact cards per row */
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
  .course-card > a { min-height: 0; padding: 0.7rem 0.75rem 0.8rem; gap: 0.35rem; transform: none !important; }
  .course-emoji { font-size: 1.4rem; }
  .course-title { font-size: 1rem; }
  .course-staff { display: none; }
  .course-status { font-size: 0.6rem; }

  /* course page: chips scroll sideways instead of wrapping */
  .course-page-title { font-size: 1.9rem; text-shadow: 3px 3px 0 var(--pink); }
  .jump-bar { flex-wrap: nowrap; overflow-x: auto; margin-inline: -0.9rem; padding: 0.15rem 0.9rem 0.45rem; scrollbar-width: none; }
  .jump-bar::-webkit-scrollbar { display: none; }

  .footer { margin-top: 0.5rem; font-size: 0.85rem; }
  .floating-emoji { opacity: 0.3; font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .starburst-shape, .cooked-meter-pointer, .floating-emoji, .countdown-pill.is-urgent { animation: none; }
  .floating-layer { display: none; }
}
