@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: block;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: block;
}

:root {
  /* Google brand colours. The darker 600 shades carry white text. */
  --blue: #4285f4;
  --red: #ea4335;
  --yellow: #fbbc04;
  --green: #34a853;
  --blue-d: #1a73e8;
  --red-d: #d93025;
  --green-d: #1e8e3e;
  --blue-l: #e8f0fe;
  --red-l: #fce8e6;
  --yellow-l: #fef7e0;
  --green-l: #e6f4ea;

  --ink: #1f1f1f;
  --paper: #ffffff;
  --muted: #5f6368;
  --line: #dadce0;

  --border: 5px solid var(--ink);
  --shadow: 10px 10px 0 var(--ink);
  --radius: 28px;

  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Stage: a fixed 1920×1080 canvas scaled to fit ---------- */

#viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  margin: -540px 0 0 -960px;
  transform-origin: 50% 50%;
  background: #fff;
  overflow: hidden;
}

/* ---------- Slides and themes ---------- */

.slide {
  --bg: var(--paper);
  --fg: var(--ink);
  --accent: var(--blue-d);
  position: absolute;
  inset: 0;
  padding: 72px 120px 0;
  background: var(--bg);
  color: var(--fg);
  isolation: isolate;
  visibility: hidden;
  opacity: 0;
}
.slide.is-active {
  visibility: visible;
  opacity: 1;
}
.t-blue { --bg: var(--blue-d); --fg: #fff; --accent: var(--yellow); }
.t-red { --bg: var(--red-d); --fg: #fff; --accent: var(--yellow); }
.t-green { --bg: var(--green-d); --fg: #fff; --accent: var(--yellow); }
.t-yellow { --bg: var(--yellow); --fg: var(--ink); --accent: var(--red-d); }
.t-ink { --bg: #1f1f1f; --fg: #fff; --accent: var(--yellow); }

/* Decorative Google shapes, painted behind the content. */
.deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.s {
  position: absolute;
  width: var(--s);
  height: var(--s);
}
.s.blue { --c: var(--blue); }
.s.red { --c: var(--red); }
.s.yellow { --c: var(--yellow); }
.s.green { --c: var(--green); }
.s.white { --c: #fff; }
.s.ink { --c: var(--ink); }
.s.circle { border-radius: 50%; background: var(--c); }
.s.square { border-radius: 22%; background: var(--c); }
.s.tri { background: var(--c); clip-path: polygon(50% 4%, 100% 96%, 0 96%); }
.s.ring { border-radius: 50%; border: calc(var(--s) * 0.17) solid var(--c); }
.s.half { height: calc(var(--s) / 2); border-radius: var(--s) var(--s) 0 0; background: var(--c); }
.s.plus {
  background:
    linear-gradient(var(--c), var(--c)) center / 100% 32% no-repeat,
    linear-gradient(var(--c), var(--c)) center / 32% 100% no-repeat;
  border-radius: 8px;
}
.s.dots {
  background-image: radial-gradient(var(--c) 32%, transparent 35%);
  background-size: 25% 25%;
}

/* GDGC logo in the bottom-left corner of every slide except the cover. */
#corner-logo {
  position: absolute;
  left: 28px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 12px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: #f7f7f7;
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 0;
}
#corner-logo img:first-child {
  height: 32px;
}
#corner-logo img:last-child {
  height: 26px;
}
#counter {
  position: absolute;
  right: 48px;
  top: 40px;
  z-index: 50;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.85);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#blackout {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
body.is-blackout #blackout {
  opacity: 1;
}

/* ---------- Type ---------- */

.kicker {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.title {
  font-size: 108px;
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.045em;
  max-width: 1500px;
}
.title em,
.accent {
  font-style: normal;
  color: var(--accent);
}
.lede {
  margin-top: 32px;
  font-size: 48px;
  line-height: 1.25;
  font-weight: 500;
  max-width: 1300px;
}
.caption {
  position: absolute;
  left: 120px;
  bottom: 140px;
  font-size: 46px;
  font-weight: 700;
}
/* Word masks: each word rises out of its own line box. */
.wm {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.04em 0.03em 0.14em;
  margin: -0.04em -0.03em -0.14em;
}
.w {
  display: inline-block;
  white-space: pre;
}
code,
.mono {
  font-family: var(--mono);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
}
.dots {
  display: inline-flex;
  gap: 7px;
}
.dots i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.dots i:nth-child(1) { background: var(--blue); }
.dots i:nth-child(2) { background: var(--red); }
.dots i:nth-child(3) { background: var(--yellow); }
.dots i:nth-child(4) { background: var(--green); }

/* Placeholder text the presenter must replace before the session. */
.todo {
  outline: 4px dashed var(--red);
  outline-offset: 6px;
  border-radius: 6px;
}

/* ---------- Building blocks ---------- */

.card {
  background: #fff;
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
}
.sticker {
  position: absolute;
  padding: 18px 30px;
  border: var(--border);
  border-radius: 20px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
}
.fill-blue { background: var(--blue-d); color: #fff; }
.fill-red { background: var(--red-d); color: #fff; }
.fill-yellow { background: var(--yellow); color: var(--ink); }
.fill-green { background: var(--green-d); color: #fff; }
.c-blue { background: var(--blue); }
.c-red { background: var(--red); }
.c-yellow { background: var(--yellow); color: var(--ink) !important; }
.c-green { background: var(--green); }

.grid2 {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ---------- Cover ---------- */

#cover .brand {
  margin-bottom: 70px;
}
.cover-title {
  font-size: 160px;
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.cover-title em {
  font-style: normal;
  color: var(--yellow);
}
.cover-sub {
  margin-top: 44px;
  font-size: 50px;
  font-weight: 600;
}

/* ---------- About me ---------- */

/* Adventure Time style character card. */
/* The card and the text block share a vertical centre (480px, above the ground line). */
.me-card {
  position: absolute;
  left: 120px;
  top: 117px;
  width: 540px;
  padding: 20px 22px 22px;
  border: 6px solid var(--ink);
  border-radius: 30px;
  background: var(--sun);
  box-shadow: var(--shadow);
}
.mc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mc-name {
  font-family: var(--display);
  font-size: 50px;
  line-height: 1;
  color: #fff;
  text-shadow: var(--outline);
}
.mc-type {
  padding: 4px 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}
.mc-photo {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: 50% 18%;
  border: 5px solid var(--ink);
  border-radius: 16px;
}
.mc-class {
  margin: 14px 0 12px;
  padding: 6px 16px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  font-size: 26px;
  font-weight: 600;
  text-align: center;
}
.mc-stats {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: #fff;
}
.mc-stat {
  display: grid;
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
}
.mc-stat i {
  height: 20px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) 0 calc(var(--v) * 100%), #eee 0);
}
.mc-move {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}
.me-body {
  position: absolute;
  left: 750px;
  top: 244px;
  right: 110px;
}
.me-name {
  font-size: 118px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.me-name .l {
  display: inline-block;
}
.me-tag {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.3;
}
.me-tag li + li {
  margin-top: 18px;
}
.me-tag em {
  font-style: normal;
  font-weight: 800;
  color: var(--finn);
}


/* ---------- Poll and goals ---------- */

/* Room poll: the cards leave a column on the right for the cheering Gunter. */
#room .poll {
  margin-right: 380px;
  gap: 32px;
}
#room .poll .card {
  min-height: 200px;
  font-size: 38px;
  gap: 26px;
}
#room .big-num {
  width: 92px;
  height: 92px;
}
/* Feet on the dune line; the bubble sits just above his head. */
#g-room {
  left: 1450px;
  top: 586px;
  width: 420px;
  aspect-ratio: 960 / 840;
}
#b-room {
  left: 1470px;
  top: 440px;
}
.gc-body {
  transform-box: view-box;
  transform-origin: 330px 872px;
  animation: gc-bounce 0.7s ease-in-out infinite alternate;
}
.gc-fl {
  transform-box: view-box;
}
.gc-fl-l {
  transform-origin: 88px 480px;
  animation: gc-wave-l 0.35s ease-in-out infinite alternate;
}
.gc-fl-r {
  transform-origin: 580px 480px;
  animation: gc-wave-r 0.35s ease-in-out infinite alternate;
}
.gc-jaw {
  transform-box: view-box;
  transform-origin: 200px 300px;
  animation: gc-chatter 0.35s ease-in-out infinite alternate;
}
@keyframes gc-bounce {
  from { transform: translateY(0) scaleY(1); }
  to { transform: translateY(-34px) scaleY(1.03); }
}
@keyframes gc-wave-l {
  from { transform: rotate(-14deg); }
  to { transform: rotate(10deg); }
}
@keyframes gc-wave-r {
  from { transform: rotate(14deg); }
  to { transform: rotate(-10deg); }
}
@keyframes gc-chatter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .gc-body, .gc-fl, .gc-jaw { animation: none; }
}
.poll .card {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 190px;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
}
.big-num {
  flex: none;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: var(--border);
  display: grid;
  place-items: center;
  font-size: 56px;
  font-weight: 800;
  color: #fff;
}
.goal {
  min-height: 250px;
  padding: 36px 44px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 46px;
  line-height: 1.15;
  font-weight: 700;
}
.goal b {
  display: block;
  font-size: 80px;
  line-height: 1;
  margin-bottom: 12px;
}

/* ---------- Problem ---------- */

#problem .scene {
  position: absolute;
  left: 120px;
  right: 120px;
  top: 380px;
  height: 500px;
}
.device {
  position: absolute;
  top: 0;
  width: 620px;
}
.device .screen {
  height: 350px;
  border-radius: 26px;
  border: 16px solid var(--ink);
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  font-size: 44px;
  font-weight: 800;
}
.device .screen small {
  display: block;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}
.device .base {
  height: 30px;
  margin: 0 -44px;
  border-radius: 0 0 20px 20px;
  background: var(--ink);
}
.device .caption-d {
  margin-top: 24px;
  font-size: 42px;
  font-weight: 800;
  text-align: center;
}
#dev-mine { left: 0; }
#dev-mine .screen { background: var(--green-l); }
#dev-friend { right: 0; }
#dev-friend .screen { background: var(--red-l); color: var(--red-d); }
.gap-line {
  position: absolute;
  left: 690px;
  right: 690px;
  top: 170px;
  border-top: 10px dashed var(--line);
}
.gap-x {
  position: absolute;
  left: 50%;
  top: 110px;
  width: 130px;
  height: 130px;
  margin-left: -65px;
  border-radius: 50%;
  border: var(--border);
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 76px;
  font-weight: 800;
}
#problem .flood {
  position: absolute;
  inset: 0;
  background: var(--blue-d);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 120px;
  z-index: 5;
}
.flood .big {
  font-size: 150px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #fff;
}
.flood .big em {
  font-style: normal;
  color: var(--yellow);
}
.flood .small {
  margin-top: 50px;
  font-size: 50px;
  font-weight: 600;
  color: #fff;
}

/* ---------- How the web works ---------- */

.section-title em {
  font-style: normal;
  color: var(--accent);
}
.section-title {
  font-size: 160px;
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.05em;
  max-width: 1200px;
}

/* Client and server */
.cs {
  position: absolute;
  left: 120px;
  right: 120px;
  top: 400px;
  height: 460px;
}
.cs > * {
  position: absolute;
}
.cs-side {
  top: 0;
  width: 440px;
  height: 440px;
  padding: 30px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-side h3 {
  margin-top: auto;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}
.cs-side p {
  font-size: 34px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.15;
}
#cs-client { left: 0; background: var(--blue-l); }
#cs-server { right: 0; background: var(--green-l); }
.mini-browser {
  height: 190px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.mini-browser .bar {
  height: 40px;
  background: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}
.mini-browser .bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}
.mini-browser .page {
  height: 142px;
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 800;
}
.mini-rack {
  height: 190px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: var(--ink);
}
.mini-rack i {
  border-radius: 8px;
  background: #3c4043;
  position: relative;
}
.mini-rack i::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--green);
}
.msg {
  left: 520px;
  width: 640px;
  padding: 22px 30px;
  border: var(--border);
  border-radius: 999px;
  box-shadow: 8px 8px 0 var(--ink);
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}
.msg span {
  font-weight: 500;
}
.msg.req {
  top: 70px;
  background: var(--yellow);
}
.msg.res {
  top: 270px;
  background: var(--green);
  color: #fff;
}

/* IP addresses */
.ipcards {
  position: absolute;
  left: 120px;
  right: 120px;
  top: 390px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.ipc {
  padding: 0;
  overflow: hidden;
  min-height: 430px;
}
.ipc .ip {
  padding: 30px 32px;
  font-size: 46px;
  font-weight: 800;
  border-bottom: var(--border);
  white-space: nowrap;
}
.ipc h3 {
  padding: 26px 32px 0;
  font-size: 50px;
  font-weight: 800;
}
.ipc p {
  padding: 10px 32px 30px;
  font-size: 36px;
  line-height: 1.25;
  font-weight: 500;
}

/* Ports */
.building {
  position: absolute;
  left: 600px;
  top: 420px;
  width: 1200px;
  padding: 30px 40px 0;
  background: var(--green-l);
}
.bld-head {
  font-size: 44px;
  font-weight: 800;
}
.bld-head span {
  font-size: 36px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 12px;
}
.doors {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: end;
}
.door {
  height: 300px;
  border: var(--border);
  border-bottom: 0;
  border-radius: 120px 120px 0 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.door b {
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 800;
}
.door span {
  font-size: 32px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  line-height: 1.1;
}
.door.ours {
  background: var(--yellow);
}
.door.ours span {
  color: var(--ink);
}
.req-pill {
  position: absolute;
  left: 120px;
  top: 640px;
  padding: 18px 30px;
  border: var(--border);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 800;
  white-space: nowrap;
}

/* DNS */
.dns {
  position: absolute;
  left: 120px;
  right: 120px;
  top: 470px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pill-big {
  padding: 26px 40px;
  border: var(--border);
  border-radius: 999px;
  box-shadow: 8px 8px 0 var(--ink);
  background: #fff;
  font-family: var(--mono);
  font-size: 50px;
  font-weight: 800;
  white-space: nowrap;
}
.pill-big.ip {
  background: var(--green);
  color: #fff;
}
.arrow {
  font-size: 90px;
  font-weight: 800;
  line-height: 1;
}
.dns-book {
  width: 380px;
  text-align: center;
  background: var(--blue-l);
}
.dns-book h3 {
  font-size: 70px;
  font-weight: 800;
  line-height: 1;
}
.dns-book p {
  margin-top: 10px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
}

/* URL anatomy */
.url {
  position: absolute;
  left: 120px;
  right: 120px;
  top: 420px;
  display: flex;
  justify-content: center;
}
.useg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.useg .u {
  font-family: var(--mono);
  font-size: 118px;
  font-weight: 800;
  line-height: 1.1;
  white-space: pre;
}
.useg .bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  margin-top: 10px;
}
.useg .ul {
  position: absolute;
  top: calc(100% + 30px);
  left: 50%;
  margin-left: -200px;
  width: 400px;
  font-size: 44px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  line-height: 1.1;
}
.useg .ul small {
  display: block;
  font-size: 32px;
  font-weight: 500;
  opacity: 0.75;
}
.u1 .u { color: var(--blue); }
.u1 .bar { background: var(--blue); }
.u2 .u { color: var(--red); }
.u2 .bar { background: var(--red); }
.u3 .u { color: var(--yellow); }
.u3 .bar { background: var(--yellow); }
.u4 .u { color: var(--green); }
.u4 .bar { background: var(--green); }

/* ---------- Hands-on ---------- */

.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.steps .card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 30px;
  align-items: center;
  min-height: 240px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
}
.steps .n {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: var(--border);
  display: grid;
  place-items: center;
  font-size: 52px;
  color: #fff;
}
.steps code {
  display: inline-block;
  margin-top: 14px;
  font-size: 34px;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 8px 18px;
}

.code {
  position: relative;
  margin-top: 48px;
  width: 1340px;
  background: var(--ink);
  color: #e8eaed;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 12px 12px 0 var(--yellow);
  padding: 40px 52px;
  font-family: var(--mono);
  font-size: 40px;
  line-height: 1.55;
}
.code .ln {
  display: block;
  white-space: pre;
  position: relative;
}
.code .mark {
  position: absolute;
  left: -20px;
  right: -20px;
  top: 0;
  bottom: 0;
  border-radius: 12px;
  background: rgba(251, 188, 4, 0.25);
  outline: 4px solid var(--yellow);
}
.code .t-kw { color: #f28b82; }
.code .t-fn { color: #8ab4f8; }
.code .t-str { color: #81c995; }
.code .t-dec { color: #fdd663; }
.code-note {
  position: absolute;
  left: 1500px;
  width: 340px;
  padding: 14px 22px;
  border: var(--border);
  border-radius: 18px;
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
}

/* ---------- It works ---------- */

.browser {
  position: absolute;
  left: 120px;
  top: 330px;
  width: 1080px;
  border: var(--border);
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow: 14px 14px 0 var(--ink);
}
.browser .bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  background: var(--ink);
}
.browser .bar i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.browser .bar i:nth-child(1) { background: var(--red); }
.browser .bar i:nth-child(2) { background: var(--yellow); }
.browser .bar i:nth-child(3) { background: var(--green); }
.browser .url-bar {
  margin-left: 20px;
  flex: 1;
  background: #fff;
  border-radius: 999px;
  padding: 10px 28px;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
}
.browser .page {
  height: 380px;
  display: grid;
  place-items: center;
  font-size: 58px;
  font-weight: 800;
  padding: 0 40px;
  text-align: center;
  background: var(--green-l);
}
.works-notes {
  position: absolute;
  left: 1270px;
  top: 330px;
  width: 530px;
  display: grid;
  gap: 26px;
}
.works-notes p {
  padding: 18px 24px;
  border: var(--border);
  border-radius: 20px;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
}
.works-notes .ok { background: var(--green); color: #fff; }
.works-notes .warn { background: var(--red-l); color: var(--red-d); }
.works-next {
  position: absolute;
  left: 120px;
  bottom: 120px;
  padding: 16px 34px;
  border: var(--border);
  border-radius: 999px;
  background: var(--blue-d);
  color: #fff;
  box-shadow: 8px 8px 0 var(--ink);
  font-size: 48px;
  font-weight: 800;
}

/* ---------- Story chapters ---------- */

.story .title {
  font-size: 92px;
}
.story-body {
  position: absolute;
  left: 120px;
  right: 120px;
  top: 300px;
  height: 610px;
  display: grid;
  grid-template-columns: 860px 1fr;
  gap: 60px;
}
.beats {
  list-style: none;
  display: grid;
  align-content: start;
  gap: 24px;
}
.beat {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: start;
}
.beat .tag {
  margin-top: 4px;
  justify-self: start;
  padding: 6px 18px;
  border: 4px solid var(--ink);
  border-radius: 14px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}
.beat p {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 600;
}
.beat.need .tag { background: var(--blue-d); }
.beat.problem .tag { background: var(--red-d); }
.beat.tool .tag { background: var(--green-d); }
.beat .session {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 22px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 30px;
  font-weight: 800;
}

.visual {
  position: relative;
  width: 780px;
  height: 600px;
}
.visual > * {
  position: absolute;
}
.node {
  background: #fff;
  border: var(--border);
  border-radius: 22px;
  box-shadow: 7px 7px 0 var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}
.node small {
  display: block;
  font-size: 26px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 6px;
}
.node.ghost {
  border-style: dashed;
  border-color: var(--red);
  color: var(--red-d);
  background: transparent;
  box-shadow: none;
}
.link {
  height: 0;
  border-top: 7px solid var(--ink);
  transform-origin: 0 50%;
}
.link.dashed {
  border-top-style: dashed;
  border-top-color: var(--line);
}
.badge {
  padding: 6px 16px;
  border: 4px solid var(--ink);
  border-radius: 12px;
  font-size: 28px;
  font-weight: 800;
  white-space: nowrap;
}
.badge.bad { background: var(--red); color: #fff; }
.badge.good { background: var(--green); color: #fff; }
.badge.info { background: var(--yellow); color: var(--ink); }
.label {
  font-size: 30px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}
.label.bad { color: var(--red-d); }
.label.good { color: var(--green-d); }
.dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid var(--ink);
}
.frame {
  border: 5px dashed var(--blue);
  border-radius: 30px;
  background: var(--blue-l);
  z-index: -1;
}
.frame-label {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  background: var(--blue-d);
  padding: 2px 14px;
  border-radius: 10px;
}
.term {
  background: var(--ink);
  color: #e8eaed;
  border-radius: 18px;
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 600;
  padding: 22px 30px;
  white-space: nowrap;
  box-shadow: 7px 7px 0 var(--yellow);
}
.term .p { color: #81c995; }
.term .cur {
  display: inline-block;
  width: 20px;
  height: 36px;
  background: #e8eaed;
  vertical-align: -6px;
}

/* Chapter 2 */
.laptop .scr {
  width: 220px;
  height: 140px;
  border: 13px solid var(--ink);
  border-radius: 16px;
  background: var(--blue-l);
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
}
.laptop .kb {
  height: 20px;
  margin: 0 -24px;
  border-radius: 0 0 12px 12px;
  background: var(--ink);
}
.rack {
  width: 230px;
  padding: 18px;
  border-radius: 20px;
  background: var(--ink);
  display: grid;
  gap: 12px;
  box-shadow: 7px 7px 0 var(--green);
}
.rack i {
  display: block;
  height: 46px;
  border-radius: 8px;
  background: #3c4043;
  position: relative;
}
.rack i::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
}
.dialog {
  width: 420px;
  background: #fff;
  border: 4px solid var(--red);
  border-radius: 18px;
  padding: 18px 24px;
  font-size: 30px;
  font-weight: 800;
  box-shadow: 6px 6px 0 var(--red-d);
}
.dialog span {
  font-family: var(--mono);
  color: var(--muted);
}

/* Chapter 3 */
.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: var(--border);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 46px;
  font-weight: 800;
}
.file {
  padding: 14px 24px;
  background: #fff;
  border: 4px solid var(--red);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--red-d);
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--red-d);
  white-space: nowrap;
}

/* Chapter 4 */
.machine {
  width: 360px;
  height: 420px;
  background: #fff;
  border: var(--border);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 26px;
}
.machine h3 {
  font-size: 34px;
  font-weight: 800;
}
.machine .env {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--muted);
}
.machine .slot {
  position: absolute;
  left: 26px;
  right: 26px;
  top: 140px;
  height: 160px;
}
.machine .status {
  position: absolute;
  left: 26px;
  bottom: 26px;
  display: grid;
}
.machine .status > * {
  grid-area: 1 / 1;
  justify-self: start;
}
.chip-app {
  position: absolute;
  inset: 30px 60px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
}
.container {
  position: absolute;
  inset: 0;
  border: 5px solid var(--blue-d);
  border-radius: 18px;
  background: var(--blue);
  padding: 12px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 10px;
  align-content: center;
}
.container b {
  display: grid;
  place-items: center;
  height: 56px;
  border-radius: 12px;
  background: #fff;
  font-size: 26px;
  font-weight: 800;
  white-space: nowrap;
}
.container b:last-child {
  grid-column: 1 / -1;
}

/* Chapter 5 */
.checklist {
  width: 560px;
  display: grid;
  gap: 18px;
}
.checklist li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 36px;
  font-weight: 700;
  padding: 16px 24px;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
}
.checklist .box {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 4px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
}
.pipe-node {
  width: 168px;
  height: 120px;
  border-radius: 20px;
  border: var(--border);
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 800;
}
.packet {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--yellow);
  border: 4px solid var(--ink);
}

/* Chapter 6 */
.server-mini {
  border-radius: 18px;
  background: var(--ink);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.server-mini .load {
  height: 22px;
  border-radius: 999px;
  background: #3c4043;
  overflow: hidden;
}
.server-mini .load i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: var(--green);
  transform-origin: 0 50%;
}

/* Chapter 7 */
.k-node {
  width: 240px;
  height: 330px;
  border: var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 7px 7px 0 var(--ink);
  padding: 20px;
}
.k-node h4 {
  font-size: 28px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 18px;
}
.k-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.k-grid i {
  display: grid;
  place-items: center;
  height: 70px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-style: normal;
  font-size: 34px;
  font-weight: 800;
}
.k-grid i.empty {
  background: transparent;
  border: 3px dashed var(--line);
}
.k-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 26px;
  border: var(--border);
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 6px 6px 0 var(--green);
}
.k-banner span {
  color: #81c995;
  font-weight: 700;
}

/* Toolbox */
.toolbox {
  position: absolute;
  left: 120px;
  right: 120px;
  bottom: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.toolbox .tb-label {
  flex: none;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 10px;
}
.tool-slot {
  position: relative;
  flex: 1;
  height: 66px;
  border-radius: 16px;
  border: 4px dashed var(--line);
}
.tool-chip {
  position: absolute;
  inset: -4px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
}

/* ---------- Quiz (Kahoot-style) ---------- */

.quiz .title {
  font-size: 84px;
  max-width: 1640px;
}
.opts {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 180px;
  padding: 28px 36px;
  border-radius: 26px;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.45);
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
}
.opt:nth-child(1) { background: var(--red-d); }
.opt:nth-child(2) { background: var(--blue-d); }
.opt:nth-child(3) { background: var(--yellow); color: var(--ink); }
.opt:nth-child(4) { background: var(--green-d); }
.opt .key {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
  font-size: 46px;
  font-weight: 800;
}
.opt .tick {
  position: absolute;
  right: -22px;
  top: -22px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: var(--border);
  background: #fff;
  color: var(--green-d);
  display: grid;
  place-items: center;
  font-size: 52px;
  font-weight: 800;
}
.why {
  margin-top: 44px;
  font-size: 44px;
  line-height: 1.25;
  font-weight: 700;
}
.confetti {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 20;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
}

/* ---------- Big picture ---------- */

.flow {
  position: absolute;
  left: 120px;
  right: 120px;
  top: 340px;
  height: 600px;
}
.flow > * {
  position: absolute;
}
.f-node {
  width: 200px;
  height: 170px;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  border: var(--border);
  box-shadow: 7px 7px 0 var(--ink);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  gap: 4px;
}
.f-node small {
  font-size: 26px;
  font-weight: 600;
  color: var(--muted);
}
.f-sess {
  width: 200px;
  text-align: center;
}
.f-sess span {
  display: inline-block;
  padding: 4px 14px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  white-space: nowrap;
}
.f-cloud {
  border: 5px dashed #fff;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.14);
}
.f-k8s {
  border: var(--border);
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.f-k8s b {
  grid-column: 1 / -1;
  font-size: 30px;
  text-align: center;
}
.f-k8s i {
  height: 76px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 26px;
  font-weight: 800;
}
.flow .link {
  border-top-color: #fff;
}
.flow-punch {
  left: 0;
  top: 470px;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.flow-punch code {
  padding: 0 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 0.85em;
}

/* ---------- Names, jobs, roadmap ---------- */

.pair {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.pair .card {
  padding: 50px 56px;
  min-height: 560px;
}
.pair h2 {
  font-size: 110px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.pair p {
  margin-top: 26px;
  font-size: 46px;
  line-height: 1.25;
  font-weight: 600;
}
.pair .eg {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 20px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 34px;
  font-weight: 700;
}

.jobs {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.jobs .card {
  padding: 34px 44px;
}
.jobs h3 {
  display: inline-block;
  font-size: 50px;
  font-weight: 800;
  padding: 2px 18px;
  margin-left: -18px;
  border-radius: 14px;
}
.jobs .card:nth-child(1) h3 { background: var(--blue-l); }
.jobs .card:nth-child(2) h3 { background: var(--red-l); }
.jobs .card:nth-child(3) h3 { background: var(--green-l); }
.jobs .card:nth-child(4) h3 { background: var(--yellow-l); }
.jobs p {
  margin-top: 14px;
  font-size: 40px;
  line-height: 1.25;
  font-weight: 500;
}

.road {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  column-gap: 60px;
  row-gap: 26px;
}
.road .item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 26px;
  align-items: start;
}
.road .n {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  border: var(--border);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 42px;
  font-weight: 800;
}
.road h3 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
}
.road p {
  margin-top: 4px;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--muted);
}
.road .here {
  display: inline-block;
  margin-left: 14px;
  padding: 2px 14px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--yellow);
  font-size: 26px;
  vertical-align: 6px;
}

.checks {
  list-style: none;
  margin-top: 60px;
  display: grid;
  gap: 28px;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 54px;
  font-weight: 700;
}
.checks .ck {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: var(--border);
  background: #fff;
  color: var(--green-d);
  display: grid;
  place-items: center;
  font-size: 50px;
  font-weight: 800;
}

.closing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
}
.closing .title {
  font-size: 220px;
}

/* ---------- Presenter view ---------- */

#presenter {
  display: none;
}
body.is-presenter #viewport {
  right: 38%;
  bottom: 30%;
}
body.is-presenter #presenter {
  display: grid;
  position: fixed;
  inset: 0;
  grid-template-columns: 62% 38%;
  grid-template-rows: 70% 30%;
  pointer-events: none;
  font-family: var(--font);
}
#presenter > * {
  pointer-events: auto;
}
.pv-side {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: #1f1f1f;
  color: #f1f3f4;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
.pv-clock {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.pv-clock #pv-elapsed {
  font-size: 48px;
  font-weight: 800;
}
.pv-clock #pv-now {
  font-size: 22px;
  color: #9aa0a6;
}
.pv-pos {
  font-size: 22px;
  color: #9aa0a6;
}
.pv-notes {
  flex: 1;
  overflow: auto;
  font-size: 26px;
  line-height: 1.45;
  white-space: pre-line;
}
.pv-next {
  font-size: 20px;
  color: #9aa0a6;
  border-top: 1px solid #3c4043;
  padding-top: 14px;
}
.pv-next b {
  color: #f1f3f4;
}
.pv-bottom {
  grid-column: 1;
  grid-row: 2;
  background: #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}
.pv-bottom button {
  white-space: nowrap;
  font: 800 22px var(--font);
  padding: 14px 28px;
  border-radius: 14px;
  border: 4px solid var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}
.pv-bottom button.primary {
  background: var(--blue-d);
  color: #fff;
}
.pv-help {
  font-size: 18px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  #blackout {
    transition: none;
  }
}

/* ---------- Adventure Time: Gunter ---------- */

.gunter {
  --eye: #1f1f1f;
  --brow: 0;
  --crown: 0;
  position: absolute;
  aspect-ratio: 608 / 990;
  z-index: 2;
}
.gunter svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.bubble {
  position: absolute;
  z-index: 3;
  padding: 12px 26px;
  border: 5px solid var(--ink);
  border-radius: 28px;
  background: #fff;
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.bubble small {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 600;
  color: var(--muted);
}
/* Tail pointing down-right, towards Gunter under the bubble. */
.bubble::after {
  content: "";
  position: absolute;
  right: 40px;
  bottom: -17px;
  width: 26px;
  height: 26px;
  background: inherit;
  border-right: 5px solid var(--ink);
  border-bottom: 5px solid var(--ink);
  transform: rotate(45deg);
}
/* Tail pointing right, towards Gunter beside the bubble. */
.bubble.tail-side::after {
  right: -17px;
  bottom: auto;
  top: 50%;
  margin-top: -13px;
  transform: rotate(-45deg);
}
.bubble.red {
  background: var(--red);
  color: #fff;
}
.bubble.yellow {
  background: var(--yellow);
}

/* Story chapters: Gunter peeks up beside the toolbox. */
/* Starts right of the corner logo; the chips name themselves, so no label. */
.story .toolbox {
  left: 380px;
  right: 440px;
  gap: 10px;
}
.story .tb-label {
  display: none;
}
.story .tool-chip {
  font-size: 18px;
}
.story .gunter {
  left: 1715px;
  top: 920px;
  width: 125px;
}
.story .bubble,
.quiz .bubble {
  font-size: 36px;
}
.story .bubble {
  right: 225px;
  top: 950px;
}

/* Quizzes: Gunter is the quizmaster. */
.quiz .why {
  max-width: 1340px;
}
.quiz .gunter {
  left: 1690px;
  top: 820px;
  width: 150px;
}
.quiz .bubble {
  right: 250px;
  top: 870px;
}
.u2 .ul,
.u4 .ul {
  top: calc(100% + 130px);
}

/* ======================================================================
   Adventure Time style: cartoon type and Land of Ooo scenery
   ====================================================================== */

@font-face {
  font-family: "Luckiest Guy";
  src: url("fonts/luckiest-guy.woff2") format("woff2");
  font-display: block;
}
@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: block;
}

:root {
  --font: "Fredoka", system-ui, sans-serif;
  --display: "Luckiest Guy", "Fredoka", sans-serif;
  --ink: #2b2b2b;
  --finn: #2f7fd6;
  --pink: #f2609b;
  --sun: #ffd23f;
  /* Thick cartoon outline plus a hard drop shadow, like the show's logo. */
  --outline: 4px 0 0 var(--ink), -4px 0 0 var(--ink), 0 4px 0 var(--ink), 0 -4px 0 var(--ink),
    3px 3px 0 var(--ink), -3px 3px 0 var(--ink), 3px -3px 0 var(--ink), -3px -3px 0 var(--ink),
    9px 9px 0 var(--ink);
}

/* Scenery backgrounds. Every scene is a light sky with dark ink text, except the night. */
.slide { --fg: var(--ink); }
.slide.scene-grass { background: linear-gradient(#6fcaf2 0%, #c9efff 75%); }
.slide.scene-paper { background: #fff4d6; }
.slide.scene-ice { background: linear-gradient(#a9dcf7 0%, #eaf8ff 80%); }
.slide.scene-candy { background: linear-gradient(#ffc6e2 0%, #fff0f7 80%); }
.slide.scene-fire { background: linear-gradient(#ffb067 0%, #ffe6b0 80%); }
.slide.scene-jake { background: linear-gradient(#ffd24a 0%, #ffeaa0 85%); }
.slide.scene-night { --fg: #fff; background: linear-gradient(#2a1d4d 0%, #4a3480 90%); }
.deco svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Cartoon titles: white letters with a thick outline, yellow highlights. */
.title,
.cover-title,
.section-title,
.me-name,
.flood .big,
.pair h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.08;
  color: #fff;
  text-shadow: var(--outline);
}
.title { font-size: 86px; }
.story .title { font-size: 74px; }
.quiz .title { font-size: 68px; }
.cover-title { font-size: 132px; line-height: 1; }
.section-title { font-size: 120px; }
.closing .title { font-size: 190px; }
.title em,
.cover-title em,
.section-title em,
.flood .big em {
  color: var(--sun);
}
/* Masks need room for the outline and shadow. */
.wm {
  padding: 0.12em 0.14em 0.22em 0.1em;
  margin: -0.12em -0.14em -0.22em -0.1em;
}

.kicker {
  background: var(--ink);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  border: 4px solid var(--ink);
  transform: rotate(-2deg);
}
.scene-night .kicker {
  background: var(--sun);
  color: var(--ink);
}
.cover-sub,
.lede {
  font-weight: 600;
}
.brand {
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

/* Hand-drawn feel: slightly irregular corners on cards and buttons. */
.card,
.goal,
.opt,
.sticker,
.bubble,
.node,
.machine,
.k-node {
  border-radius: 34px 22px 30px 20px / 22px 32px 20px 30px;
}
.opt {
  border: 5px solid var(--ink);
}

/* Quiz answers sit on the night sky. */
.scene-night .why { color: var(--sun); }

/* The problem flood becomes Finn blue. */
#problem .flood { background: var(--finn); }

/* Big picture on grass: dark lines and cloud outline. */
.flow .link { border-top-color: var(--ink); }
.f-cloud {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

/* ---------- Painted backgrounds from the show ---------- */

.deco .art {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* Overscan to crop the black or white frames some paintings come with. */
.deco .art[data-bg="treefort"] { inset: -5%; }
.deco .art[data-bg="icekingdom"] { inset: -9% -10% -6%; }
.deco .scrim {
  position: absolute;
  inset: 0;
}
.scrim-left {
  background: linear-gradient(90deg, rgba(255, 248, 230, 0.88) 0%, rgba(255, 248, 230, 0.7) 45%, rgba(255, 248, 230, 0) 72%);
}
.scrim-full {
  background: rgba(255, 248, 230, 0.84);
}
.has-art { --fg: var(--ink); }

.char {
  position: absolute;
  z-index: 2;
  filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.25));
}
.cs-side .bmo {
  height: 165px;
  align-self: center;
  object-fit: contain;
}
.story .gunter {
  top: 880px;
  width: 120px;
}

/* ---------- Cover: the DevOps rainbow loop ---------- */

.cover-loop,
.cover-cloud {
  position: absolute;
  overflow: visible;
  z-index: 1;
}
.cover-cloud {
  z-index: 3;
}
.loop-label {
  font-family: var(--display);
  font-size: 34px;
  text-anchor: middle;
  fill: #fff;
  stroke: #1f1f1f;
  stroke-width: 7px;
  paint-order: stroke fill;
  letter-spacing: 1px;
}
.mini-laptop {
  position: absolute;
  z-index: 3;
  width: 250px;
}
.mini-laptop .scr {
  height: 150px;
  border: 10px solid var(--ink);
  border-radius: 16px;
  background: #1e1f24;
  color: #e8eaed;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
}
.mini-laptop .scr .p {
  color: #81c995;
}
.mini-laptop .kb {
  height: 20px;
  margin: 0 -22px;
  border-radius: 0 0 12px 12px;
  background: var(--ink);
}
.cover-tag {
  position: absolute;
  z-index: 4;
  padding: 4px 16px;
  border: 4px solid var(--ink);
  border-radius: 14px;
  background: var(--sun);
  font-size: 30px;
  font-weight: 700;
}
#cover-packet {
  position: absolute;
  z-index: 5;
}
.deco .art[data-bg="grassland"] { inset: -3% -2%; }

/* ---------- Cover: Gunter + BMO in Ooo ---------- */

#cover {
  background: #9bdcf7;
  overflow: hidden;
}
.cv-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
/* Adventure Time logo lettering: chunky, wobbly, heavy ink, hard blue drop. */
.cv-title {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
}
.cv-title .ol {
  display: inline-block;
  -webkit-text-stroke: 22px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 14px 0 #1d5fbf;
  translate: 0 var(--dy, 0);
  rotate: var(--rot, 0deg);
}
.cv-title .ol.sp {
  width: 0.3em;
}
.cv-l1 {
  font-size: 260px;
  color: var(--sun);
  letter-spacing: 0.02em;
}
.cv-l2 {
  margin-top: 4px;
  margin-left: 40px;
  font-size: 160px;
  color: #fff;
  letter-spacing: 0.03em;
}
.cv-sub {
  display: inline-block;
  margin-top: 48px;
  padding: 10px 26px 12px;
  border: 5px solid var(--ink);
  border-radius: 20px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 42px;
  font-weight: 600;
  color: var(--ink);
}
.cv-meta {
  position: absolute;
  left: 120px;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 30px 14px 24px;
  border: 4px solid var(--ink);
  border-radius: 28px;
  /* Matches the logo's own off-white so the artwork sits seamlessly. */
  background: #f7f7f7;
  box-shadow: 5px 5px 0 var(--ink);
}
.cv-emblem {
  height: 64px;
  width: auto;
}
.cv-lockup {
  height: 52px;
  width: auto;
}
.cv-sep {
  align-self: stretch;
  width: 3px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.2;
}
.cv-session {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- Quiz: join QR, answer counts, leaderboard (frozen from the workshop) ---------- */

.jn-qr {
  position: absolute;
  left: 120px;
  top: 330px;
  width: 560px;
  padding: 26px;
  border: var(--border);
  border-radius: 34px 22px 30px 20px / 22px 32px 20px 30px;
  background: #fff;
  box-shadow: var(--shadow);
}
.jn-qr img {
  display: block;
  width: 100%;
}
.jn-side {
  position: absolute;
  left: 780px;
  top: 340px;
  right: 120px;
}
.jn-url {
  margin: 0;
  font-family: var(--display);
  font-size: 110px;
  line-height: 1;
  color: var(--sun);
  text-shadow: var(--outline);
}
.jn-count {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-top: 40px;
  font-size: 48px;
  font-weight: 700;
}
.jn-count b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 150px;
  line-height: 1;
  color: #fff;
  text-shadow: var(--outline);
  font-variant-numeric: tabular-nums;
}
.jn-names {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  max-height: 300px;
  overflow: hidden;
}
.jn-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 22px 6px 6px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 32px;
  font-weight: 700;
}

.live-pill {
  position: absolute;
  left: 470px;
  bottom: 34px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
}
.live-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  animation: live-blink 1.2s ease-in-out infinite;
}
@keyframes live-blink {
  50% { opacity: 0.3; }
}

.pd-list {
  margin: 50px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
  width: 1100px;
}
.pd-row,
.pd-empty {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 34px;
  border: var(--border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 44px;
  font-weight: 700;
}
.pd-1 { background: var(--yellow-l); font-size: 54px; }
.pd-rank {
  width: 70px;
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
}
.pd-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pd-row b {
  font-variant-numeric: tabular-nums;
}
.jn-chip img {
  width: 52px;
  height: 52px;
}
.pd-pic {
  width: 72px;
  height: 72px;
}

/* Closing: the thank-you line wraps before Gunter's speech bubble. */
.closing .lede {
  max-width: 1040px;
}

/* ---------- Lab sign-up ---------- */

.su-steps {
  position: absolute;
  left: 800px;
  top: 380px;
  right: 120px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 36px;
}
.su-steps li {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.15;
}
.su-steps .n {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: var(--border);
  display: grid;
  place-items: center;
  font-size: 50px;
  color: #fff;
}
