:root {
  color-scheme: light;
  --masthead-height: clamp(52px, 7vw, 86px);
  --navy: #101b29;
  --night: #131f30;
  --cream: #f8f1e3;
  --mint: #bdebd4;
  --ink: #182336;
  --studio-footer-surface: #e6eef4;
  background: var(--studio-footer-surface);
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
}
.studio-desktop {
  background-color: #b7cbd8;
  background-image:
    radial-gradient(circle at 1px 1px, #42576b12 .55px, transparent .85px),
    radial-gradient(ellipse at 48% -15%, #e5edf2 0%, transparent 63%),
    linear-gradient(135deg, #c7d7e1, #aec4d2 72%, #bdd0dc);
  background-size: 5px 5px, 100% 100%, 100% 100%;
}
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #ed853b; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.62; }
section, article { scroll-margin-top: 2rem; }
nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
nav a { font-weight: 650; }
.brand {
  display: inline-grid;
  grid-template-columns: auto minmax(0, max-content);
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  font-weight: 800;
  letter-spacing: -.025em;
  font-size: 1.45rem;
  line-height: 1.15;
}
.brand-caption {
  grid-column: 2;
  color: #5b5d63;
  font-size: .76rem;
  font-weight: 550;
  letter-spacing: .025em;
}
.switch {
  display: inline-block;
  width: 48px;
  height: 28px;
  padding: 4px;
  border-radius: 20px;
  background: #a9adb1;
  transition: background-color .22s ease;
}
.switch::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f7f8fa;
  box-shadow: 0 1px 3px #14203159;
  transition: transform .22s ease;
}
.brand-toggle[aria-pressed="true"] .switch { background: #288858; }
.brand-toggle[aria-pressed="true"] .switch::after { transform: translateX(20px); }
@media (prefers-reduced-motion: reduce) {
  .switch, .switch::after { transition: none; }
}
.skip { position: fixed; background: white; padding: 10px; z-index: 2; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.button { display: inline-flex; align-items: center; min-height: 48px; border: 1px solid transparent; border-radius: 7px; padding: 10px 18px; font-weight: 750; text-decoration: none; }
.button-ink { background: var(--ink); color: white; }
.button:hover { text-decoration: underline; }
.off { background: var(--cream); }
.section { padding-block: clamp(56px, 8vw, 100px); }
.section-intro { margin-bottom: 27px; }
.section-intro p { margin-top: 12px; font-size: 1.08rem; }
.off-grid, .game-grid { display: grid; gap: 20px; }
.off-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { overflow: hidden; border-radius: 16px; background: #fffaf1; border: 1px solid #ded2bf; }
.card-copy { padding: clamp(20px, 3vw, 30px); }
.newspaper { background: #e9f3ff; border-color: #afcbe9; }
.newspaper h3 { color: #0041a6; }
.books-card { background: #f1eafb; border-color: #cebfe2; }
.books-card h3 { color: #54327d; }
.paper-header-links [data-notebook-section="extra"] { color: #0041a6; }
.paper-header-links [data-notebook-section="books"] { color: #54327d; }
.paper-header-links [data-notebook-section="mythinkbox"] { color: #00666b; }
.extra-visit {
  background: #0041a6;
  color: #fff;
  border-color: #00317c;
  box-shadow: inset 0 -3px #ffdf00;
}
.extra-visit:hover { background: #003480; }
.mythinkbox-card {
  grid-column: 1 / -1;
  border-color: #8cbfc6;
  background: linear-gradient(125deg, #c4edf0, #e6f5ff 66%, #f1eaff);
}
.mythinkbox-card:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
}
.mythinkbox-art { display: block; width: 100%; height: auto; max-height: 245px; object-fit: contain; }
.mythinkbox-print {
  position: relative;
  isolation: isolate;
  width: min(100%, 367.5px);
  margin-inline: auto;
  background-image: linear-gradient(#10748319 1px, transparent 1px), linear-gradient(90deg, #10748319 1px, transparent 1px);
  background-size: 14px 14px;
}
.mythinkbox-print[data-print-ready] .mythinkbox-layer { clip-path: inset(100% 0 0); }
.mythinkbox-print-head {
  position: absolute;
  z-index: 1;
  width: clamp(8px, 10%, 24px);
  aspect-ratio: 1;
  border: 1px solid #102b34;
  border-radius: 25%;
  background:
    radial-gradient(circle at 50% 50%, #193137 0 18%, #7d949d 21% 31%, transparent 35%),
    linear-gradient(135deg, #b8cbd1, #546b73 70%);
  box-shadow: 1px 2px 3px #12374470;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.mythinkbox-print-head::before {
  content: "";
  position: absolute;
  inset: 15% 14% auto;
  height: 10%;
  border-radius: 50%;
  background: #b6f5f2;
}
.mythinkbox-copy {
  padding: clamp(10px, 1.6vw, 20px);
}
.mythinkbox-name { font-size: .8rem; font-weight: 700; color: #00666b; }
.mythinkbox-copy h3 {
  margin: .2rem 0 .55rem;
  color: #145063;
  font: 700 clamp(1.35rem, 3vw, 2rem)/1.15 Georgia, serif;
}
.mythinkbox-description { max-width: 55ch; }
.card .mythinkbox-printers { margin-top: .45rem; font-size: .83rem; color: #195869; }
.notebook-tabs a[data-notebook-section="mythinkbox"] { --tab-paper: #ace0e4; }
.card h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.13; letter-spacing: -.042em; }
.card p { margin-top: 10px; }
.card .button { margin-top: 18px; }
.newspaper .card-copy { padding: 10px clamp(12px, 2vw, 20px) 12px; }
.newspaper .card-copy > p { margin-top: 5px; line-height: 1.35; }
.newspaper .card-copy .button {
  min-height: 34px;
  margin-top: 7px;
  padding: 4px 10px;
  font-size: .86rem;
}
.on { background: var(--night); color: #fffbf5; }
.on h2 { color: #182e4b; }
.on p { color: #314963; }
.tabletop {
  --stand-height: clamp(34px, 10cqw, 80px);
  --tear: polygon(0 0, 97% 0, 96% 2%, 99% 4%, 97% 6%, 98% 8%,
    96% 10%, 98% 12%, 95% 15%, 97% 17%, 96% 19%, 100% 23%,
    98% 25%, 99% 27%, 96% 30%, 98% 32%, 95% 35%, 97% 38%,
    96% 40%, 99% 43%, 97% 45%, 100% 48%, 98% 51%, 99% 53%,
    96% 56%, 97% 59%, 95% 62%, 98% 65%, 96% 67%, 99% 70%,
    97% 73%, 100% 75%, 98% 78%, 99% 80%, 96% 83%, 97% 86%,
    95% 88%, 98% 91%, 96% 93%, 99% 96%, 97% 100%, 0 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(25px, 4.8vw, 76px) minmax(0, 1fr);
  width: min(1480px, 100%);
  min-height: calc(100vh - var(--masthead-height));
  align-items: start;
  margin-inline: auto;
  padding: clamp(14px, 3vw, 46px);
  padding-top: clamp(7px, 1.5vw, 23px);
}
.board {
  position: relative;
  display: grid;
  min-width: 0;
  filter: drop-shadow(0 3px 2px #18212b70) drop-shadow(6px 14px 12px #182f4749);
}
.board-off {
  --board-color: var(--cream);
  --face: linear-gradient(110deg, #fffefa, #faf7ef);
}
.board-on {
  --board-color: #dbe8f5;
  --monitor-frame: #222830;
  --bezel: clamp(8px, 1.45cqw, 21px);
  --chin: clamp(20px, 3.2cqw, 45px);
  padding-bottom: var(--stand-height);
  color: var(--ink);
}
.board-off::before, .board-off::after {
  content: "";
  position: absolute;
  clip-path: var(--tear);
  pointer-events: none;
}
.board-off::before {
  inset: 1px -1px -2px 0;
  background: #f4ecdf;
  z-index: -1;
}
.board-off::after {
  inset: 2px -3px -4px 1px;
  background: #e9dfd0;
  z-index: -2;
}
.board-face {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 4vw, 60px);
  padding-top: clamp(11px, 2vw, 30px);
  background-color: var(--board-color);
  isolation: isolate;
}
.board-off .board-face, .board-off .board-face::before { clip-path: var(--tear); }
.board-off .board-face::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--face);
  box-shadow: inset 0 1px #ffffff70;
}
.board-header { display: grid; align-content: start; gap: 10px; }
.board-heading { margin: 0; justify-self: center; }
.board-header .paper-header-links { justify-content: center; }
.board-footer { margin-top: auto; padding-top: 24px; }
.board-footer a { font-weight: 700; }
.board .section { padding: 16px 0 0; }
.board .off, .board .on { background: transparent; }
.board .off-grid { grid-template-columns: 1fr; }
.rip-channel { z-index: 1; min-width: 0; pointer-events: none; }
.rip-channel button { pointer-events: auto; }
.tabletop:has(.rip-note) {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 15%) minmax(0, 1fr);
}
.rip-note {
  margin-top: clamp(40px, 14vw, 190px);
  padding: 12px;
  background: white;
  color: var(--ink);
  overflow-wrap: anywhere;
}
@media (max-width: 820px), (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) {
  .tabletop, .tabletop:has(.rip-note) {
    --tear: polygon(0 0, 100% 0, 100% 98%, 96% 99%, 92% 98%, 88% 99%, 84% 97%,
      80% 98%, 75% 97%, 71% 99%, 66% 98%, 61% 100%, 57% 98%, 53% 99%,
      48% 97%, 43% 98%, 38% 97%, 33% 99%, 29% 98%, 24% 99%, 20% 98%,
      16% 100%, 12% 98%, 8% 99%, 4% 97%, 0 98%);
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
  }
  .board-off .board-face { padding-bottom: 40px; }
  .rip-note { margin: 0; }
}

.board .game-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 38px);
}
.game { min-width: 0; }
.game p { margin: 13px 4px 0; max-width: 54ch; }
.tablet {
  position: relative;
  border-radius: clamp(14px, 2vw, 24px);
  padding: clamp(8px, 1.1vw, 15px);
  border: 1px solid #697078;
  background: linear-gradient(145deg, #333940, #0a1017 44%, #151c24);
  box-shadow: 0 3px 0 #070b10, 0 13px 16px #0508117d;
}
.tablet::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #536171;
}
.tablet-screen {
  display: grid;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid #3d424d;
  border-radius: clamp(7px, 1vw, 12px);
  background: #141c29;
}
.tablet-screen img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.game-note {
  --note-paper: #c8ecd2;
  --note-fold: #f1fff3;
  --note-tilt: -1.5deg;
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 92%;
  margin: 15px 4% 0 auto;
  padding: 9px 23px 10px 12px;
  border-radius: 1px;
  background: linear-gradient(180deg, #fff5, transparent 48%), var(--note-paper);
  box-shadow: 0 1px 2px #151d2530, 0 5px 7px -5px #151d2566;
  transform: rotate(var(--note-tilt));
  color: #182336;
  overflow-wrap: anywhere;
  font: 750 clamp(.79rem, 1.45vw, 1.04rem)/1.2 "Avenir Next", Avenir, system-ui, sans-serif;
}
.game-note::before, .game-note::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  scale: var(--curl-x, 1) var(--curl-y, 1);
  pointer-events: none;
}
.game-note::before {
  z-index: -1;
  bottom: -3px;
  border-radius: 100% 0 0;
  background: #17233170;
  filter: blur(3px);
}
.game-note::after {
  background: linear-gradient(135deg, #17233132, var(--note-fold) 57%, #fff 85%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 55% 73%, 78% 47%);
}
.game-champions .game-note, .game-note[data-game-section="champions"] { --note-paper: #c6dcf8; --note-fold: #edf5ff; }
.game-mouse .game-note, .game-note[data-game-section="mouse"] { --note-paper: #f2d399; --note-fold: #fff1ca; }
.game-clown .game-note, .game-note[data-game-section="clown"] { --note-paper: #ffc5da; --note-fold: #ffeaf2; }
:is(.game:nth-child(even) .game-note, .game-header-links .game-note:nth-child(even)) {
  --curl-x: -1;
  --note-tilt: 1.5deg;
  margin-inline: 4% auto;
  padding-inline: 23px 12px;
}
:is(.game:nth-child(even) .game-note, .game-header-links .game-note:nth-child(even))::before,
:is(.game:nth-child(even) .game-note, .game-header-links .game-note:nth-child(even))::after {
  right: auto;
  left: 0;
}
:is(.game-mouse, .game-clown) .game-note,
.game-header-links .game-note:nth-child(n+3) { --curl-y: -1; }
:is(.game-mouse .game-note, .game-clown .game-note, .game-header-links .game-note:nth-child(n+3))::before { top: -3px; bottom: auto; }
:is(.game-mouse .game-note, .game-clown .game-note, .game-header-links .game-note:nth-child(n+3))::after { top: 0; bottom: auto; }

/* Use the same corner treatment as the monitor's sticky-note rail. */
.game h3.game-note {
  --note-curl-size: 12px;
  --note-curl-base: var(--board-color);
}
.game:nth-child(even) h3.game-note { --note-curl-size: 14px; }
.game.game-mouse h3.game-note { --note-curl-size: 16px; }
.game.game-clown h3.game-note { --note-curl-size: 11px; }
.game h3.game-note::before, .game h3.game-note::after {
  width: var(--note-curl-size);
  height: var(--note-curl-size);
}
.game h3.game-note::after, .game-tabs .game-note::after {
  background: linear-gradient(135deg, #303b48, var(--note-curl-base) 57%);
}

.books-intro { padding-bottom: 16px; }
.book-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  padding: 8px clamp(15px, 3vw, 34px) 0;
}
.book-item { min-width: 0; width: 75%; justify-self: center; margin: 0; }
.book-item figcaption { margin-top: 16px; font-size: .705rem; line-height: 1.4; }
.book-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 2px 5px 5px 2px;
  border-left: 5px solid #0005;
  box-shadow: 3px 3px #e9dfcb, 5px 5px #382a2b, 8px 9px 9px #382a2b36;
}
.fifth-tilt {
  container-type: inline-size;
  grid-template-rows: auto auto;
  align-content: end;
  gap: 7%;
  background: #090f1a;
  color: #f3f1dc;
  padding: 0 8% 11%;
}
.fifth-title {
  z-index: 1;
  text-align: center;
  text-transform: uppercase;
  font: 700 clamp(.24rem, 16cqi, 1.575rem)/1.02 Georgia, serif;
  letter-spacing: .055em;
  text-wrap: balance;
}
.tilted-earth {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.18);
}
.book-series {
  z-index: 1;
  text-transform: uppercase;
  font: 650 clamp(.2rem, 8cqi, .6375rem) system-ui, sans-serif;
  letter-spacing: .11em;
}
.champions-cover {
  background: #faf3e4;
  border-left-color: #30291e38;
}
.champions-paper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .11;
  filter: grayscale(.7) contrast(.75);
}
.champions-mark {
  position: relative;
  display: block;
  width: 99%;
  height: auto;
  filter: drop-shadow(0 1px 1px #12294b59);
}
.book-shelf { padding-bottom: 22px; }
@media (max-width: 365px) {
  .book-shelf { grid-template-columns: 1fr; }
  .book-cover { max-width: 190px; }
}

.extra-scene {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.27;
  background: linear-gradient(165deg, #e9f5fd 0%, #daeaf4 56%, #e8dcc5 56%, #f1e5ce 100%);
  overflow: hidden;
}
.extra-mac {
  position: absolute;
  width: 69%;
  left: 22%;
  top: 8%;
  filter: drop-shadow(3px 7px 5px #1b2c3f45);
}
.extra-mac-display {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4%;
  padding-bottom: 9%;
  aspect-ratio: 16 / 10;
  border: clamp(5px, 1vw, 11px) solid #162030;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(145deg, #fff5de, #e1f2ff);
}
.extra-mac::after {
  content: "";
  position: absolute;
  left: -8%;
  width: 116%;
  height: clamp(5px, 1vw, 10px);
  background: linear-gradient(#e7eaf0, #838e9e);
  border-radius: 2px 2px 40% 40%;
}
.extra-logo { width: 34%; max-height: 86%; object-fit: contain; }
.extra-pip {
  position: relative;
  display: block;
  width: 41%;
  max-height: 94%;
  aspect-ratio: 1;
}
.extra-pip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pip-body {
  clip-path: polygon(0 0, 100% 0, 100% 20%, 75% 20%, 75% 32%, 76% 34%, 75% 39%, 79% 41%, 83% 43%, 100% 43%, 100% 100%, 0 100%);
}
.pip-hand {
  clip-path: polygon(75% 20%, 100% 20%, 100% 43%, 83% 43%, 79% 41%, 75% 39%, 76% 34%, 75% 32%);
  transform-origin: 81% 41%;
  animation: pip-wave 1.45s ease-in-out infinite;
}
@keyframes pip-wave {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pip-hand { animation: none; }
}
.fifth-globe {
  position: absolute;
  top: 2.9%;
  left: 3.4%;
  width: 82%;
  height: auto;
  aspect-ratio: 1;
  pointer-events: none;
}
.extra-phone {
  position: absolute;
  z-index: 1;
  display: grid;
  left: 8%;
  top: 32%;
  width: 20%;
  aspect-ratio: 1 / 2;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  border: clamp(3px, .65vw, 7px) solid #172331;
  border-radius: clamp(11px, 2vw, 22px);
  background: #fffaf1;
  box-shadow: 2px 7px 10px #1b2c3f59;
  transform: rotate(-4deg);
  overflow: hidden;
}
.extra-phone::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 34%;
  top: 3%;
  width: 32%;
  height: 4%;
  background: #172331;
  border-radius: 20px;
}
.extra-phone-screen {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4%;
  padding: 23% 8% 8%;
  line-height: 1;
  font-size: clamp(.48rem, 1.25vw, .95rem);
  text-align: center;
}
.extra-phone-screen strong { font-family: Georgia, serif; }
.extra-phone-screen img { width: 74%; max-height: 100%; object-fit: contain; border: 1px solid #dfd4c1; }
.extra-phone-print,
.extra-mac-print {
  background: #0041a6;
  color: white;
  padding: 5% 5%;
  border-radius: 3px;
  font-size: .7em;
}
.extra-mac-print {
  position: absolute;
  bottom: 5%;
  padding: 2% 4%;
  white-space: nowrap;
  font-size: clamp(.48rem, 1.15vw, .85rem);
  font-weight: 700;
  line-height: 1.1;
}
.extra-print {
  position: absolute;
  z-index: 1;
  right: 8%;
  bottom: 6%;
  width: 41%;
  aspect-ratio: 1.06;
  filter: drop-shadow(2px 7px 6px #1b2c3f4a);
}
.extra-print-paper {
  position: absolute;
  z-index: 1;
  left: 18%;
  bottom: 49%;
  width: 64%;
  height: 70%;
  object-fit: cover;
  object-position: top;
  border: 1px solid #c9c3b7;
  border-bottom-color: #665f54;
  box-shadow: 0 2px 2px #101b2955;
}
.extra-printer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 58%;
  object-fit: fill;
}

.board-on .board-face {
  z-index: 1;
  border: solid var(--monitor-frame);
  border-width: var(--bezel) var(--bezel) var(--chin) 0;
  border-radius: 0 clamp(14px, 2.2vw, 28px) clamp(14px, 2.2vw, 28px) 0;
  background: linear-gradient(145deg, #f3f8ff, var(--board-color) 54%, #cddded) padding-box;
  box-shadow: inset 1px 0 #a2bbd44d, inset 0 0 14px #050c1650;
}
.board-on .board-face::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: calc(var(--chin) * -.55);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bdebd4;
}
.monitor-stand {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48%;
  height: var(--stand-height);
}
.monitor-reflection {
  position: absolute;
  inset: auto -8% -13px -6%;
  height: 18px;
  background: radial-gradient(ellipse at 48% 17%, #33495757, transparent 74%);
  transform: skewX(14deg);
  filter: blur(3px);
  pointer-events: none;
}
.monitor-stand::before,
.monitor-stand::after {
  content: "";
  position: absolute;
  left: 0;
}
.monitor-stand::before {
  top: 0;
  width: 42%;
  height: 90%;
  background: linear-gradient(#232a34, #5d6978);
  clip-path: polygon(0 0, 70% 0, 100% 100%, 0 100%);
}
.monitor-stand::after {
  bottom: 0;
  width: 100%;
  height: 15%;
  border-radius: 0 70% 5px 0;
  background: linear-gradient(#596676, #20272f);
}
@media (max-width: 820px), (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) {
  .board-on .board-face {
    border-left-width: 9px;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    box-shadow: inset 0 0 14px #050c16a0, 0 4px #12161c;
  }
  .monitor-stand { left: 26%; }
  .monitor-stand::before {
    left: 30%;
    width: 40%;
    clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  }
  .monitor-stand::after { border-radius: 65% 65% 5px 5px; }
}

.tabletop {
  --monitor-break: polygon(100% 0%, 3% 0%, 4% 2%, 1% 4%, 3% 6%, 2% 8%, 4% 10%, 2% 12%, 5% 15%, 3% 17%, 4% 19%, 0% 23%, 2% 25%, 1% 27%, 4% 30%, 2% 32%, 5% 35%, 3% 38%, 4% 40%, 1% 43%, 3% 45%, 0% 48%, 2% 51%, 1% 53%, 4% 56%, 3% 59%, 5% 62%, 2% 65%, 4% 67%, 1% 70%, 3% 73%, 0% 75%, 2% 78%, 1% 80%, 4% 83%, 3% 86%, 5% 88%, 2% 91%, 4% 93%, 0% 95%, 0% 100%, 100% 100%);
}
.board-on::before {
  content: "";
  position: absolute;
  inset: 0 0 var(--stand-height);
  z-index: 1;
  clip-path: var(--monitor-break);
  background: linear-gradient(90deg, #394350, #7b8896 4%, var(--monitor-frame) 6%);
}
.board-on .board-face {
  clip-path: var(--monitor-break);
}
@media (max-width: 820px), (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) {
  .tabletop {
    --monitor-break: polygon(0% 100%, 100% 100%, 100% 2%, 96% 1%, 92% 2%, 88% 1%, 84% 3%, 80% 2%, 75% 3%, 71% 1%, 66% 2%, 61% 0%, 57% 2%, 53% 1%, 48% 3%, 43% 2%, 38% 3%, 33% 1%, 29% 2%, 24% 1%, 20% 2%, 16% 0%, 12% 2%, 8% 1%, 4% 3%, 0% 2%);
  }
  .board-on::before {
    inset: 0 0 var(--stand-height);
    background: linear-gradient(#576575, var(--monitor-frame) 6%);
  }
}

.extra-printer-name {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 19%;
  transform: translateX(-50%);
  padding: .22em .55em;
  border: 1px solid #172331;
  border-radius: 3px;
  background: #fff3d4;
  color: #172331;
  font: 700 clamp(.62rem, 1.55vw, 1.13rem)/1.05 Georgia, serif;
  white-space: nowrap;
}

.tabletop {
  transition: grid-template-columns .48s cubic-bezier(.22,.72,.24,1);
  container-type: inline-size;
}
.board {
  transition: opacity .28s ease;
}
.board-off {
  filter: drop-shadow(0 2px 2px #2c302f43) drop-shadow(5px 10px 10px #233a4b3f);
}
.board-off .board-face {
  padding-left: clamp(33px, 5vw, 70px);
}
.notebook-binding-reflection {
  position: absolute;
  inset: 17px auto 5px -16px;
  width: 18px;
  background: radial-gradient(ellipse 9px 4px at 11px 11px, transparent 61%, #4f687c70 78%, transparent 99%) 0 0 / 18px 20px;
  opacity: .55;
  filter: blur(1.5px);
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000 78%, transparent);
  pointer-events: none;
}
.notebook-binding {
  --ring-wire: radial-gradient(ellipse 12.4px 5.05px at 14px 10px, transparent 72%, #5c6975 78%, #cad2d8 86%, #56626f 94%, transparent 100%);
  position: absolute;
  z-index: 2;
  inset: 12px auto 12px -13px;
  width: 32px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 3px 1.05px at 24px 9px, #e5ebef 62%, #74818d 82%, transparent 100%) 0 0 / 32px 20px,
    radial-gradient(ellipse 3.8px 3.25px at 25px 10px, #252b34 0 62%, #827b68 71%, #dfd7c7 88%, transparent 100%) 0 0 / 32px 20px;
}
.notebook-binding::before,
.notebook-binding::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ring-wire) 0 0 / 32px 20px;
}
.notebook-binding::before {
  clip-path: inset(0 19px 0 0);
}
.notebook-binding::after {
  clip-path: inset(0 7px 0 13px);
  mask-image: repeating-linear-gradient(to bottom, #000 0 10px, transparent 10px 20px);
}
.board-on::before {
  background: var(--monitor-frame);
}
.brand-toggle {
  justify-self: start;
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.brand-toggle:hover .brand-wordmark { text-decoration: underline; }
.brand-toggle:focus-visible { outline: 3px solid #ed853b; outline-offset: 5px; }

.tabletop[data-view="paper"],
.tabletop[data-view="paper"]:has(.rip-note) {
  grid-template-columns: minmax(0, 1fr) 0px minmax(0, 0fr);
}
.tabletop[data-view="monitor"],
.tabletop[data-view="monitor"]:has(.rip-note) {
  grid-template-columns: minmax(0, 0fr) 0px minmax(0, 1fr);
}
.tabletop[data-view="paper"] .board-on,
.tabletop[data-view="monitor"] .board-off,
.tabletop:not([data-view="split"])[data-view] .rip-channel {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  overflow: hidden;
  visibility: hidden;
}
.tabletop[data-view="paper"] .board-off { grid-column: 1; }
.tabletop[data-view="monitor"] .board-on { grid-column: 3; }
.tabletop:not([data-view="split"])[data-view] .section {
  width: min(100%, 1050px);
  margin-inline: auto;
}
@container (min-width: 810px) {
  .tabletop[data-view="paper"] .off-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px), (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) {
  .tabletop[data-view="paper"],
  .tabletop[data-view="monitor"],
  .tabletop[data-view="paper"]:has(.rip-note),
  .tabletop[data-view="monitor"]:has(.rip-note) {
    grid-template-columns: minmax(0, 1fr);
  }
  .tabletop[data-view="monitor"] .board-on { grid-column: 1; }
  .board-on .board-face { border-left-width: var(--bezel); }
  .tabletop:not([data-view="split"])[data-view] .board {
    animation: panel-arrival .35s ease-out;
  }
}
@keyframes panel-arrival {
  from { opacity: .65; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .tabletop, .board { transition: none; }
  .tabletop:not([data-view="split"])[data-view] .board { animation: none; }
}

.board-off::before, .board-off::after, .board-off .board-face, .board-off .board-face::before,
.board-on::before, .board-on .board-face {
  transition: clip-path .46s ease, border-radius .46s ease;
}
.tabletop[data-view="paper"] .board-off::before,
.tabletop[data-view="paper"] .board-off::after,
.tabletop[data-view="paper"] .board-off .board-face,
.tabletop[data-view="paper"] .board-off .board-face::before {
  clip-path: var(--paper-complete);
  border-radius: 3px 12px 12px 3px;
}
.tabletop[data-view="monitor"] .board-on::before {
  clip-path: var(--monitor-complete);
  inset: 0 0 var(--stand-height);
  border-radius: 22px;
}
.tabletop[data-view="monitor"] .board-on .board-face {
  clip-path: var(--monitor-complete);
  border-left-width: max(var(--bezel), 21px);
  border-radius: clamp(14px, 2.2vw, 28px);
  box-shadow: inset 0 0 14px #050c16a0, 0 4px #12161c;
}
.tabletop[data-view="monitor"] .monitor-stand { left: 29%; width: 42%; }
.tabletop[data-view="monitor"] .monitor-stand::before {
  left: 31%;
  width: 38%;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}
.tabletop[data-view="monitor"] .monitor-stand::after { border-radius: 65% 65% 5px 5px; }

@media (prefers-reduced-motion: reduce) {
  .board-off::before, .board-off::after, .board-off .board-face, .board-off .board-face::before,
  .board-on::before, .board-on .board-face { transition: none; }
}

.tabletop {
  --paper-complete: polygon(0 0, 100% 0, 100% 2%, 100% 4%, 100% 6%, 100% 8%, 100% 10%, 100% 12%, 100% 15%, 100% 17%, 100% 19%, 100% 23%, 100% 25%, 100% 27%, 100% 30%, 100% 32%, 100% 35%, 100% 38%, 100% 40%, 100% 43%, 100% 45%, 100% 48%, 100% 51%, 100% 53%, 100% 56%, 100% 59%, 100% 62%, 100% 65%, 100% 67%, 100% 70%, 100% 73%, 100% 75%, 100% 78%, 100% 80%, 100% 83%, 100% 86%, 100% 88%, 100% 91%, 100% 93%, 100% 96%, 100% 100%, 0 100%);
  --monitor-complete: polygon(100% 0%, 0% 0%, 0% 2%, 0% 4%, 0% 6%, 0% 8%, 0% 10%, 0% 12%, 0% 15%, 0% 17%, 0% 19%, 0% 23%, 0% 25%, 0% 27%, 0% 30%, 0% 32%, 0% 35%, 0% 38%, 0% 40%, 0% 43%, 0% 45%, 0% 48%, 0% 51%, 0% 53%, 0% 56%, 0% 59%, 0% 62%, 0% 65%, 0% 67%, 0% 70%, 0% 73%, 0% 75%, 0% 78%, 0% 80%, 0% 83%, 0% 86%, 0% 88%, 0% 91%, 0% 93%, 0% 96%, 0% 100%, 100% 100%);
}
@media (max-width: 820px), (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) {
  .tabletop {
    --paper-complete: polygon(0 0, 100% 0, 100% 100%, 96% 100%, 92% 100%, 88% 100%, 84% 100%, 80% 100%, 75% 100%, 71% 100%, 66% 100%, 61% 100%, 57% 100%, 53% 100%, 48% 100%, 43% 100%, 38% 100%, 33% 100%, 29% 100%, 24% 100%, 20% 100%, 16% 100%, 12% 100%, 8% 100%, 4% 100%, 0 100%);
    --monitor-complete: polygon(0% 100%, 100% 100%, 100% 0%, 96% 0%, 92% 0%, 88% 0%, 84% 0%, 80% 0%, 75% 0%, 71% 0%, 66% 0%, 61% 0%, 57% 0%, 53% 0%, 48% 0%, 43% 0%, 38% 0%, 33% 0%, 29% 0%, 24% 0%, 20% 0%, 16% 0%, 12% 0%, 8% 0%, 4% 0%, 0% 0%);
  }
}

.board-off .board-face { z-index: 1; }
.notebook-tabs, .game-tabs {
  position: absolute;
  display: grid;
}
.notebook-tabs {
  z-index: 2;
  pointer-events: none;
  right: -24px;
  top: clamp(22px, 4vw, 60px);
  gap: 9px;
}
.notebook-tabs a {
  pointer-events: auto;
  cursor: pointer;
  --tab-paper: #eec977;
  width: clamp(48px, 7cqw, 74px);
  min-height: 60px;
  padding-left: calc(100% - 23px);
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  text-decoration: none;
  border: 1px solid #654f3835;
  border-radius: 0 5px 5px 0;
  color: #29313c;
  background: linear-gradient(90deg, #0002 0, transparent 70%), var(--tab-paper);
  box-shadow: 1px 2px 2px #47362742;
  font: 700 .73rem/1 system-ui, sans-serif;
}
.notebook-tabs a:nth-child(2) { --tab-paper: #a9cae1; }
.notebook-tabs a[data-notebook-section="all"] { --tab-paper: #b8cea4; }

.tabletop[data-view="paper"] { padding-right: max(32px, 3vw); }


@media (max-width: 820px), (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) {
  .notebook-tabs { right: -18px; }
  .notebook-tabs a { width: 40px; min-height: 49px; padding-left: 23px; }
  .board-off .board-face { padding-right: max(34px, 4vw); }
}

.board-on::before, .board-on .board-face {
  border-bottom-right-radius: clamp(13px, 2.2cqw, 28px);
}
@media (max-width: 820px), (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) {
  .board-on::before, .board-on .board-face { border-bottom-left-radius: clamp(13px, 2.2cqw, 28px); }
}
@media (max-width: 480px) {
  .board-off .board-face { padding-right: 19px; }
  .board-header nav { gap: 8px 14px; }
}

.book-item { position: relative; }
.book-shelf {
  padding-top: clamp(32px, 5cqw, 51px);
  padding-right: clamp(46px, 8cqw, 63px);
}
.bookmark-tassel {
  position: absolute;
  z-index: 2;
  top: 0;
  right: -4%;
  width: clamp(65px, 10cqw, 130px);
  max-width: 65%;
  height: auto;
  transform: translateY(-39%);
  filter: drop-shadow(1px 2px 2px #15191e50);
  pointer-events: none;
}
.champions-cover-tassel {
  top: 13px;
  right: 0;
  width: clamp(54px, 7.8cqw, 72px);
  transform: translate(91%, -12%) scaleY(1.3);
  transform-origin: center top;
  filter: drop-shadow(1px 2px 2px #192d4940);
}
@media (max-width: 420px) {
  .book-shelf { grid-template-columns: 1fr; }
  .book-item { max-width: 190px; }
}
.notebook-tabs a:hover { text-decoration: underline; }
.notebook-tabs a[aria-current="true"] {
  box-shadow: inset -3px 0 #29313c, 1px 2px 2px #47362742;
}
.tabletop[data-view="paper"] .board-off .board-face {
  padding-right: max(61px, 4vw);
}
.board-off:not([data-section="all"]) .off-grid {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 740px);
  margin-inline: auto;
}
.board-off[data-section="extra"] .section-intro,
.board-off[data-section="books"] .section-intro,
.board-off[data-section="mythinkbox"] .section-intro {
  display: none;
}

.board-on[data-section]:not([data-section="all"]) .game-grid {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, var(--focused-grid-width, 690px));
  margin-inline: auto;
}
.board-on[data-section]:not([data-section="all"]) .section-intro { display: none; }
@media (max-width: 480px) {
  .board-off .board-face { padding-right: 42px; }
}

.tabletop[data-view="split"] .board-on .board-face { padding-left: max(43px, 4vw); }
.tabletop[data-view="split"] .board-off .board-face { padding-right: max(48px, 4vw); }

@media (max-width: 480px) {
  .notebook-tabs { right: -13px; }
  .notebook-tabs a { padding-left: 26px; }
  .tabletop[data-view="split"] .board-on { margin-left: 22px; }
}

.view-switch {
  display: grid;
  justify-items: center;
  width: min(100%, 56px);
  margin: calc(clamp(239px, 18vw, 253px) + 50px) auto 0;
}
.view-switch button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: 800 1.1rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.view-switch button[data-switch-view]:hover { text-decoration: underline; }
.view-switch .view-switch-lever {
  display: grid;
  place-items: center;
  width: 34px;
  height: 72px;
  border-radius: 20px;
  background: #a9adb1;
  cursor: grab;
  touch-action: none;
  transition: background-color .14s ease;
}
.view-switch-lever::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f7f8fa;
  box-shadow: 0 1px 3px #14203159;
  transform: translateY(var(--lever-travel, 0px));
  transition: transform .14s ease;
}
.view-switch .view-switch-lever:active { cursor: grabbing; }
.view-switch .view-switch-lever:active::before { transition: none; }
.view-switch[data-position="paper"] .view-switch-lever::before { transform: translateY(-18px); }
.view-switch[data-position="monitor"] .view-switch-lever { background: #288858; }
.view-switch[data-position="monitor"] .view-switch-lever::before { transform: translateY(18px); }
.brand-toggle[aria-pressed="true"] .brand-wordmark,
.brand-toggle[aria-pressed="true"] .switch {
  animation: return-to-split-pulse 3.4s ease-in-out infinite;
}
@keyframes return-to-split-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .58; }
}
@media (min-width: 821px) and ((orientation: portrait) or (min-width: 1001px) or (min-height: 501px)) {
  .tabletop[data-view="split"]:not(:has(.rip-note)) {
    grid-template-columns: minmax(0, 1fr) clamp(94px, 9vw, 130px) minmax(0, 1fr);
  }
  .tabletop[data-view="split"] :is(.board-off, .board-on) { align-self: stretch; }
  .tabletop[data-view="split"] .board-off {
    margin-bottom: var(--stand-height);
  }
  .tabletop[data-view="split"] .board-off .board-face { padding-bottom: clamp(12px, 1.5vw, 20px); }
  .tabletop[data-view="split"] .board-off .section-intro { margin-bottom: 16px; }
  .tabletop[data-view="split"] .board-off .off-grid { gap: 12px; }
  .tabletop[data-view="split"] .books-intro { padding: 10px 12px 6px; }
  .tabletop[data-view="split"] .mythinkbox-description {
    font-size: .86rem;
    line-height: 1.35;
    margin-top: 6px;
  }
  .tabletop[data-view="split"] .book-shelf {
    grid-template-columns: repeat(2, minmax(0, 110px));
    justify-content: center;
    padding: 14px 24px 12px;
  }
  .tabletop[data-view="split"] .book-item figcaption {
    margin-top: 8px;
    font-size: .57rem;
    line-height: 1.25;
  }
  .tabletop[data-view="split"] .book-shelf .bookmark-tassel { max-width: 45%; }
  .tabletop[data-view="split"] .mythinkbox-art { max-height: 122px; }
  .tabletop[data-view="split"] .mythinkbox-copy { padding: 9px 10px; }
}
@media (max-width: 820px), (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) {
  .view-switch { margin: 0 auto; }
  .tabletop[data-view="split"] .board-on { margin-left: 26px; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .tabletop[data-view="monitor"] .board .game-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .view-switch-lever, .view-switch-lever::before { transition: none; }
  .brand-toggle[aria-pressed="true"] .brand-wordmark,
  .brand-toggle[aria-pressed="true"] .switch { animation: none; }
}

.cover-sky, .cover-sky span, .champions-cover::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cover-sky-sunrise {
  background: radial-gradient(circle at 23% 45%, #fff2bf 0 8%, transparent 8.5%),
    linear-gradient(#9ebcdc, #eac7bc 38%, #ffdda5 55%, #f9efdc 67%);
}
.cover-sky span:not(:first-child) { opacity: 0; animation: cover-sky-cycle 12s linear infinite; }
.board-on[data-section="champions"] { --focused-grid-width: 900px; }
.champions-scene {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 16 / 10;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 12px);
  padding: 3%;
  background: #f9efdc;
}
.champions-scene .cover-sky { z-index: -1; }
.champions-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent, #fff8ec45), url("books/champions-newspaper.jpg") center / cover;
  opacity: .18;
  pointer-events: none;
}
.champions-hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  padding: 2%;
  background: radial-gradient(ellipse, #fff9e8dd, transparent 73%);
}
.champions-hero img {
  display: block;
  width: min(82%, 460px);
  height: 100%;
  object-fit: contain;
}
.champions-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(2px, 1.5cqi, 8px);
  min-width: 0;
  min-height: 0;
}
.champions-story-track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: minmax(0, 1fr);
  --story-gap: clamp(3px, 2cqi, 12px);
  grid-auto-columns: calc((100% - 2 * var(--story-gap)) / 3);
  gap: var(--story-gap);
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #426895a6 transparent;
  overscroll-behavior-inline: contain;
}
.champions-story-track > li {
  min-width: 0;
  min-height: 0;
  scroll-snap-align: start;
}
.champions-story {
  display: grid;
  grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2px, 1.2cqi, 8px);
  height: 100%;
  min-width: 0;
  overflow: hidden;
  padding: clamp(2px, 1.6cqi, 10px);
  border: 1px solid #1d407347;
  border-radius: clamp(3px, 2cqi, 10px);
  background: #fffdf5f5;
  color: #172b4a;
  text-decoration: none;
}
.champions-story:not(:has(.champions-story-image)) { grid-template-rows: 1fr; }
.champions-story:hover .champions-story-title { text-decoration: underline; }
.champions-story .champions-story-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 4px;
}
.champions-story-copy { min-width: 0; min-height: 0; overflow: hidden; }
.champions-story-title, .champions-story-teaser {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.champions-story-title {
  -webkit-line-clamp: 2;
  font: 700 clamp(.53rem, 3cqi, 1.07rem)/1.2 Georgia, serif;
}
.champions-story-teaser {
  display: none;
  margin-top: 3px;
  -webkit-line-clamp: 3;
  font: 400 clamp(.68rem, 2cqi, .88rem)/1.35 "Avenir Next", Avenir, system-ui, sans-serif;
}
.champions-carousel-controls:not([hidden]) {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.champions-carousel-controls button {
  display: grid;
  place-items: center;
  width: clamp(16px, 9cqi, 36px);
  height: clamp(14px, 9cqi, 34px);
  padding: 0;
  border: 1px solid #1d407347;
  border-radius: 4px;
  background: #fffdf5;
  color: #0041a6;
  cursor: pointer;
  font: 700 clamp(.69rem, 4cqi, 1.1rem)/1 system-ui, sans-serif;
}
.champions-carousel-controls button:hover { background-color: #e0ecff; }
.champions-carousel-controls button[aria-disabled="true"] { opacity: .5; cursor: default; }
.champions-carousel-controls button:focus-visible,
.champions-story-track:focus-visible,
.champions-scene a:focus-visible { outline: 2px solid #0041a6; outline-offset: -2px; }
@container (min-width: 420px) {
  .champions-story-teaser { display: -webkit-box; }
}
@container (max-width: 419px) {
  .champions-carousel {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr);
  }
  .champions-carousel-controls:not([hidden]) {
    flex-direction: column;
    gap: 2px;
    align-self: center;
  }
  .champions-carousel-controls button { height: clamp(12px, 8cqi, 25px); }
}
@media (max-width: 600px) {
  .tabletop[data-view="monitor"] .champions-scene { min-height: 172px; }
  .tabletop[data-view="monitor"] .champions-carousel-controls button { width: 29px; height: 26px; }
}
.cover-sky .cover-sky-day {
  background: radial-gradient(circle at 54% 20%, #fff7d0 0 6%, transparent 6.5%),
    linear-gradient(#a8d9f4, #eaf4f7 57%, #f9efdc);
}
.cover-sky .cover-sky-sunset {
  animation-delay: 3s !important;
  background: radial-gradient(circle at 79% 45%, #ffdc9b 0 8%, transparent 8.5%),
    linear-gradient(#aaa9d0, #e6aaa8 38%, #ffd1a2 56%, #f6eadc 70%);
}
.cover-sky .cover-sky-evening {
  animation-delay: 6s !important;
  background: radial-gradient(circle at 70% 23%, #f0eadc 0 7%, transparent 7.5%),
    linear-gradient(#34466e, #6c82a5 50%, #c1c9d9 78%, #e3e4e7);
}
@keyframes cover-sky-cycle {
  0%, 50%, 100% { opacity: 0; }
  8%, 25% { opacity: 1; }
  33% { opacity: 0; }
}
.champions-cover::after {
  content: "";
  background: radial-gradient(ellipse at center, #fffbf0ef, #fffaf1b3 38%, transparent 67%);
}
.champions-mark { z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .cover-sky span:not(:first-child) { animation: none; }
}

.extra-full-description { display: none; }
.tabletop[data-view="paper"] .extra-full-description { display: block; }
.tabletop[data-view="split"] .board-off::before {
  inset: 1px -4px -3px 0;
  background: repeating-linear-gradient(177deg, #fffdf5 0 1px, #eee7d9 1px 2px, #faf6ed 2px 3px);
}
.tabletop[data-view="split"] .board-off::after {
  inset: 2px -7px -6px 1px;
  background: repeating-linear-gradient(176deg, #eee7db 0 1px, #f8f5eb 1px 2px, #dcd1c0 2px 3px);
}
.tabletop[data-view="split"] .board-on::before {
  background: linear-gradient(90deg, #2d3e4d 0%, #7794a6 3%, #a7bdcb 5%, #3b4a57 8%, var(--monitor-frame) 10%);
}
.tabletop[data-view="split"] .board-on .board-face {
  clip-path: polygon(100% 0%, calc(3% + clamp(4px, 1.3cqw, 9px)) 0%, calc(4% + clamp(4px, 1.3cqw, 9px)) 2%, calc(1% + clamp(4px, 1.3cqw, 9px)) 4%, calc(3% + clamp(4px, 1.3cqw, 9px)) 6%, calc(2% + clamp(4px, 1.3cqw, 9px)) 8%, calc(4% + clamp(4px, 1.3cqw, 9px)) 10%, calc(2% + clamp(4px, 1.3cqw, 9px)) 12%, calc(5% + clamp(4px, 1.3cqw, 9px)) 15%, calc(3% + clamp(4px, 1.3cqw, 9px)) 17%, calc(4% + clamp(4px, 1.3cqw, 9px)) 19%, calc(0% + clamp(4px, 1.3cqw, 9px)) 23%, calc(2% + clamp(4px, 1.3cqw, 9px)) 25%, calc(1% + clamp(4px, 1.3cqw, 9px)) 27%, calc(4% + clamp(4px, 1.3cqw, 9px)) 30%, calc(2% + clamp(4px, 1.3cqw, 9px)) 32%, calc(5% + clamp(4px, 1.3cqw, 9px)) 35%, calc(3% + clamp(4px, 1.3cqw, 9px)) 38%, calc(4% + clamp(4px, 1.3cqw, 9px)) 40%, calc(1% + clamp(4px, 1.3cqw, 9px)) 43%, calc(3% + clamp(4px, 1.3cqw, 9px)) 45%, calc(0% + clamp(4px, 1.3cqw, 9px)) 48%, calc(2% + clamp(4px, 1.3cqw, 9px)) 51%, calc(1% + clamp(4px, 1.3cqw, 9px)) 53%, calc(4% + clamp(4px, 1.3cqw, 9px)) 56%, calc(3% + clamp(4px, 1.3cqw, 9px)) 59%, calc(5% + clamp(4px, 1.3cqw, 9px)) 62%, calc(2% + clamp(4px, 1.3cqw, 9px)) 65%, calc(4% + clamp(4px, 1.3cqw, 9px)) 67%, calc(1% + clamp(4px, 1.3cqw, 9px)) 70%, calc(3% + clamp(4px, 1.3cqw, 9px)) 73%, calc(0% + clamp(4px, 1.3cqw, 9px)) 75%, calc(2% + clamp(4px, 1.3cqw, 9px)) 78%, calc(1% + clamp(4px, 1.3cqw, 9px)) 80%, calc(4% + clamp(4px, 1.3cqw, 9px)) 83%, calc(3% + clamp(4px, 1.3cqw, 9px)) 86%, calc(5% + clamp(4px, 1.3cqw, 9px)) 88%, calc(2% + clamp(4px, 1.3cqw, 9px)) 91%, calc(4% + clamp(4px, 1.3cqw, 9px)) 93%, 0% 95%, 0% 100%, 100% 100%);
}
@media (max-width: 820px), (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) {
  .tabletop[data-view="split"] .board-on::before {
    background: linear-gradient(#344553, #7896a9 2%, #a7bdcb 4%, var(--monitor-frame) 7%);
  }
  .tabletop[data-view="split"] .board-on .board-face {
    clip-path: polygon(0% 100%, 100% 100%, 100% calc(2% + 6px), 96% calc(1% + 6px), 92% calc(2% + 6px), 88% calc(1% + 6px), 84% calc(3% + 6px), 80% calc(2% + 6px), 75% calc(3% + 6px), 71% calc(1% + 6px), 66% calc(2% + 6px), 61% calc(0% + 6px), 57% calc(2% + 6px), 53% calc(1% + 6px), 48% calc(3% + 6px), 43% calc(2% + 6px), 38% calc(3% + 6px), 33% calc(1% + 6px), 29% calc(2% + 6px), 24% calc(1% + 6px), 20% calc(2% + 6px), 16% calc(0% + 6px), 12% calc(2% + 6px), 8% calc(1% + 6px), 4% calc(3% + 6px), 0% calc(2% + 6px));
  }
}

.board-footer { display: none; }
.tabletop[data-view="paper"] .board-off .board-footer,
.tabletop[data-view="monitor"] .board-on .board-footer { display: block; }

.seas-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #b9e1e9;
}
.seas-scene img { position: absolute; height: auto; object-fit: fill; pointer-events: none; }
.seas-sky { position: absolute; inset: 0; animation: seas-sky-cycle 48s linear infinite; }
.seas-sunset {
  inset: 0;
  width: 100%;
  height: 52% !important;
  mask-image: linear-gradient(#000 60%, transparent 71%);
  opacity: 0;
  animation: seas-sunset-cycle 48s linear infinite;
}
.seas-scene .seas-sun, .seas-scene .seas-moon { width: 11%; }
.seas-sun {
  position: absolute;
  left: 5%;
  top: 27%;
  aspect-ratio: 1;
  border: 1px solid #d4a556;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #ffe69d 0 56%, #ffd37b 72%, #f2bb64);
  animation: seas-sun-cross 48s linear infinite;
}
.seas-moon { left: 4%; top: 28%; opacity: 0; animation: seas-moon-cross 48s linear infinite; }
.seas-scene .seas-bay {
  bottom: 0;
  width: 100%;
  height: 69%;
  mask-image: linear-gradient(transparent, #000 23%);
  animation: seas-water-light 48s linear infinite;
}
.seas-scene .seas-port {
  bottom: 25%;
  left: -2%;
  width: 74%;
  opacity: 0;
  animation: seas-port-entry 48s linear infinite;
}
.seas-water {
  position: absolute;
  inset: 58% -8% 0;
  background: repeating-radial-gradient(ellipse at center, transparent 0 15px, #b4e8e71c 16px 18px, transparent 20px 45px) 0 0 / 132px 23px;
  mask-image: linear-gradient(transparent, #000 36%);
  animation: seas-wave-drift 8s linear infinite;
}
.seas-scene .seas-ship {
  bottom: 12%;
  left: 27%;
  width: 48%;
  transform-origin: 50% 76%;
  animation: seas-ship-bob 5.8s ease-in-out infinite, seas-water-light 48s linear infinite;
}
.seas-sprite { position: absolute; overflow: hidden; opacity: 0; }
.seas-sprite img { top: 0; left: 0; }
.seas-gull {
  left: -12%;
  top: 12%;
  width: 11%;
  aspect-ratio: 174 / 154;
  animation: seas-gull-cross 19s linear infinite;
}
.seas-gull img { width: 800%; animation: seas-gull-frames .8s steps(8) infinite; }
.seas-whale {
  right: 5%;
  bottom: 13%;
  width: 22%;
  aspect-ratio: 200 / 150;
  animation: seas-whale-surface 31s linear infinite;
}
.seas-whale img { width: 700%; animation: seas-whale-frames 31s steps(7) infinite; }
@keyframes seas-sky-cycle {
  0%, 100% { background-color: #f7d8ac; }
  18%, 38% { background-color: #a5d4e5; }
  53% { background-color: #eaa183; }
  68%, 89% { background-color: #293c60; }
}
@keyframes seas-sunset-cycle {
  0%, 39%, 69%, 100% { opacity: 0; }
  51%, 58% { opacity: .75; }
}
@keyframes seas-sun-cross {
  0% { left: 3%; top: 28%; opacity: .8; }
  15% { left: 22%; top: 8%; opacity: 1; }
  28% { left: 47%; top: 3%; }
  48% { left: 76%; top: 18%; opacity: 1; }
  60%, 96% { left: 88%; top: 36%; opacity: 0; }
  97% { left: 3%; top: 33%; opacity: 0; }
  100% { left: 3%; top: 28%; opacity: .8; }
}
@keyframes seas-moon-cross {
  0%, 56% { left: 6%; top: 29%; opacity: 0; }
  65% { left: 20%; top: 13%; opacity: .95; }
  82% { left: 51%; top: 4%; opacity: .95; }
  96%, 100% { left: 87%; top: 22%; opacity: 0; }
}
@keyframes seas-water-light {
  0%, 100% { filter: brightness(.97) saturate(.9); }
  24%, 40% { filter: brightness(1.05); }
  68%, 87% { filter: brightness(.62) saturate(.75) hue-rotate(12deg); }
}
@keyframes seas-port-entry {
  0%, 26%, 87%, 100% { opacity: 0; transform: translateX(-4%); }
  39%, 71% { opacity: 1; transform: translateX(0); }
  68%, 87% { filter: brightness(.65); }
}
@keyframes seas-wave-drift { to { background-position: 132px 0; } }
@keyframes seas-ship-bob {
  0%, 100% { transform: translateY(1%) rotate(-1deg); }
  50% { transform: translateY(-3%) rotate(1.3deg); }
}
@keyframes seas-gull-cross {
  0%, 22% { opacity: 0; transform: translate(0, 0); }
  23% { opacity: 1; }
  37% { transform: translate(1060%, 12%); opacity: 1; }
  38%, 100% { opacity: 0; transform: translate(1070%, 12%); }
}
@keyframes seas-gull-frames { to { transform: translateX(-100%); } }
@keyframes seas-whale-surface {
  0%, 65%, 85%, 100% { opacity: 0; }
  67%, 82% { opacity: 1; }
}
@keyframes seas-whale-frames {
  0%, 66% { transform: translateX(0); }
  84%, 100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .seas-scene *, .seas-scene *::before { animation: none; }
}


.tablet-screen.clown-art { background: #141b29; }
.tablet-screen.clown-art img { object-fit: contain; }
.mouse-scene {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  animation: mouse-room-light 9s ease-in-out infinite;
}
.mouse-lantern {
  position: absolute;
  width: 24%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffe2a57a, #ffc55c38 38%, transparent 70%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: mouse-lamplight 3.8s ease-in-out infinite;
}
.mouse-lantern-upper { left: 58.3%; top: 34%; }
.mouse-lantern-lower { left: 26%; top: 59%; animation-delay: -2.7s; }
.mouse-nose {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: mouse-nose-twitch 12s ease-in-out infinite;
}
.mouse-nose-left {
  clip-path: ellipse(.72% .93% at 37.2% 61.45%);
}
.mouse-nose-right {
  clip-path: ellipse(.73% 1% at 66.9% 58%);
  animation-delay: -6s;
}
@keyframes mouse-room-light {
  0%, 100% { filter: brightness(.84); }
  44% { filter: brightness(1.08); }
  68% { filter: brightness(.94); }
}
@keyframes mouse-lamplight {
  0%, 100% { opacity: .38; }
  28% { opacity: .85; }
  49% { opacity: .55; }
  69% { opacity: .8; }
}
@keyframes mouse-nose-twitch {
  0%, 69%, 73%, 79%, 100% { transform: translate(0); }
  71%, 76% { transform: translate(.2%, -.22%); }
}
@media (prefers-reduced-motion: reduce) {
  .mouse-scene, .mouse-scene * { animation: none; }
}

.phone-tile-link { display: none; }

@media (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) {
  .tabletop[data-view] .board .game-grid,
  .tabletop[data-view] .board .off-grid {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 640px);
    margin-inline: auto;
  }
  .tabletop .book-shelf { grid-template-columns: minmax(0, 1fr); }
  .tabletop[data-view="split"] .board-on { margin-left: 0; }
  .tabletop .view-switch {
    width: auto;
    grid-template-columns: repeat(3, 44px);
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  .tabletop[data-view="split"] {
    --phone-tile-height: clamp(78px, 14.8svh, 140px);
    min-height: calc(100svh - var(--masthead-height));
    align-content: start;
    row-gap: 7px;
    padding: 5px 12px 12px 17px;
  }
  .tabletop[data-view="split"] .board-on {
    --stand-height: 22px;
    --bezel: 6px;
    --chin: 11px;
    margin-left: 0;
  }
  .tabletop[data-view="split"] .board-off .board-face { padding: 5px 10px 13px 23px; }
  .tabletop[data-view="split"] .board-on .board-face { padding: 5px 8px 9px; }
  .tabletop[data-view="split"] .board-header { gap: 2px; }
  .tabletop[data-view="split"] .board-header nav { gap: 4px 8px; min-height: 24px; align-items: center; }
  .tabletop[data-view="split"] .board-header nav a { font-size: .71rem; line-height: 1.15; }
  .tabletop[data-view="split"] .brand-toggle {
    justify-self: center;
    min-height: 36px;
    padding: 3px 0;
    font-size: 1.05rem;
    column-gap: 7px;
  }
  .tabletop[data-view="split"] .brand-toggle .switch {
    width: 34px;
    height: 20px;
    padding: 3px;
  }
  .tabletop[data-view="split"] .brand-toggle .switch::after { width: 14px; height: 14px; }
  .tabletop[data-view="split"] .brand-caption { font-size: .64rem; }
  .tabletop[data-view="split"] .notebook-tabs,
  .tabletop[data-view="split"] .section-intro,
  .tabletop[data-view="split"] .card-copy,
  .tabletop[data-view="split"] .book-item figcaption,
  .tabletop[data-view="split"] .game > p,
  .tabletop[data-view="split"] .game-note { display: none; }
  .tabletop[data-view="split"] .board .section { padding: 2px 0 0; }
  .tabletop[data-view="split"] .section-intro { margin-bottom: 5px; text-align: center; }
  .tabletop[data-view="split"] .board .section-intro h2 { font-size: 1.2rem; line-height: 1.1; }
  .tabletop[data-view="split"] .board .off-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .tabletop[data-view="split"] .mythinkbox-copy {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 4px 8px;
  }
  .tabletop[data-view="split"] .mythinkbox-name { font-size: .67rem; }
  .tabletop[data-view="split"] .mythinkbox-card:not([hidden]) { display: flex; align-items: stretch; }
  .tabletop[data-view="split"] .mythinkbox-print { flex: 0 0 64px; align-self: center; }
  .tabletop[data-view="split"] .mythinkbox-copy h3 { margin: 0; font-size: .82rem; }
  .tabletop[data-view="split"] .mythinkbox-description { display: none; }
  .tabletop[data-view="split"] .board .game-grid { gap: 7px; }
  .tabletop[data-view="split"] :is(.card, .game) { position: relative; }
  .tabletop[data-view="split"] .phone-tile-link {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 4;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }
  .tabletop[data-view="split"] .extra-scene { height: var(--phone-tile-height); aspect-ratio: auto; }
  .tabletop[data-view="split"] .book-shelf {
    height: var(--phone-tile-height);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 5px 11px 8px 5px;
    align-items: center;
  }
  .tabletop[data-view="split"] .book-item { width: min(100%, calc(var(--phone-tile-height) * .42)); }
  .tabletop[data-view="split"] .book-cover { border-left-width: 2px; box-shadow: 2px 2px #d0c6b4; }
  .tabletop[data-view="split"] .bookmark-tassel { max-width: 42%; }
  .tabletop[data-view="split"] .tablet { padding: 3px; border-radius: 6px; }
  .tabletop[data-view="split"] .tablet::before { display: none; }
  .tabletop[data-view="split"] .tablet-screen {
    height: clamp(63px, 13.5svh, 110px);
    aspect-ratio: auto;
    border-radius: 3px;
  }
  .tabletop[data-view="split"] .champions-scene {
    gap: 2px;
  }
  .tabletop[data-view="split"] .champions-carousel { gap: 1px; }
  .tabletop[data-view="split"] .champions-story {
    gap: 1px;
    padding: 1px;
  }
  .tabletop[data-view="split"] .champions-story-title {
    -webkit-line-clamp: 1;
    font-size: clamp(.46rem, 3.5cqi, .58rem);
  }
  .tabletop[data-view="split"] .view-switch {
    width: auto;
    grid-template-columns: 44px 44px 44px;
    align-items: center;
    justify-content: center;
  }
  .tabletop[data-view="split"] .view-switch .view-switch-lever { width: 24px; height: 34px; }
  .tabletop[data-view="split"] .view-switch-lever::before { width: 16px; height: 16px; }
  .tabletop[data-view="split"] .view-switch[data-position="paper"] .view-switch-lever::before { transform: translateY(-7px); }
  .tabletop[data-view="split"] .view-switch[data-position="monitor"] .view-switch-lever::before { transform: translateY(7px); }
}
@media (max-width: 360px) and (max-height: 650px) and (orientation: portrait) {
  .tabletop[data-view="split"] {
    --phone-tile-height: clamp(65px, 13svh, 85px);
    row-gap: 4px;
    padding-block: 3.5px 7px;
  }
  .tabletop[data-view="split"] .board .game-grid { gap: 5px; }
  .tabletop[data-view="split"] .tablet-screen { height: clamp(63px, 11.5svh, 74px); }
}

.site-masthead {
  display: grid;
  place-items: end center;
  height: var(--masthead-height);
  padding: 5px 10px 3px;
}
.studio-nameplate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: .36em .92em .43em;
  border: 1px solid #576d7c60;
  border-radius: .35em;
  background: linear-gradient(115deg, #f7fbfe65, #d6e5ed40 64%, #f9fdff50);
  box-shadow: inset 0 1px #fff9, inset 0 -1px #7893a142, 0 3px 7px #29435426;
  color: #1c3444;
  font: 850 clamp(1.08rem, 3.4vw, 2.5rem)/1.1 "Avenir Next", Avenir, system-ui, sans-serif;
  letter-spacing: -.028em;
  text-align: center;
  text-shadow: 0 1px #ffffffbf;
}
.studio-nameplate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1.5vw, 14px);
  overflow: visible;
}
.studio-nameplate h1 { position: relative; font: inherit; }
.masthead-switch {
  --switch-offset: 0px;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(46px, 6.2vw, 60px);
  height: clamp(22px, 3.5vw, 30px);
  border: 0;
  border-radius: 999px;
  background: #a9adb1;
  cursor: grab;
  touch-action: none;
  transition: background-color .14s ease;
}
.masthead-switch::before {
  content: "";
  width: clamp(15px, 2.5vw, 22px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f7f8fa;
  box-shadow: 0 1px 3px #14203159;
  transform: translateX(clamp(-15px, calc(var(--switch-offset) + var(--lever-travel, 0px)), 15px));
  transition: transform .14s ease;
}
.masthead-switch:active { cursor: grabbing; }
.masthead-switch:active::before { transition: none; }
.masthead-switch[data-position="paper"] { --switch-offset: -12px; }
.masthead-switch[data-position="monitor"] { --switch-offset: 12px; background: #288858; }
.masthead-switch:focus-visible { outline: 3px solid #ed853b; outline-offset: 3px; }
.studio-nameplate::before,
.studio-nameplate::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.studio-nameplate::before { background: linear-gradient(125deg, #fffaf055, #eadcc53d); }
.studio-nameplate::after { background: linear-gradient(120deg, #d5e8f149, #eef8fc5e 46%, #a9cada57); }
body:has(.tabletop[data-view="paper"]) .studio-nameplate::before,
body:has(.tabletop[data-view="monitor"]) .studio-nameplate::after { opacity: 1; }
@media (max-width: 600px) and (orientation: portrait) {
  :root { --masthead-height: 38px; }
  .studio-nameplate { padding: 3px 10px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-nameplate::before, .studio-nameplate::after,
  .masthead-switch, .masthead-switch::before { transition: none; }
}


.masthead-control {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: clamp(3px, .6vw, 8px);
  color: #324b5a;
  font-size: clamp(.58rem, .9vw, .76rem);
  font-weight: 700;
  letter-spacing: .02em;
}
.studio-lettering { display: grid; }
.studio-lettering span { grid-area: 1 / 1; }
.studio-letterpress {
  color: #39586b;
  text-shadow: 0 1px #f8fcffdd, 0 -1px #27465855;
  transition: opacity .42s ease;
}
.studio-pixels {
  z-index: 1;
  color: #1b5272;
  text-shadow: none;
  clip-path: inset(0 0 0 100%);
  transition: clip-path .42s ease;
}
@supports (background-clip: text) {
  .studio-pixels {
    color: transparent;
    background:
      repeating-linear-gradient(90deg, transparent 0 3px, #92b8c967 3px 4px),
      repeating-linear-gradient(0deg, #174763 0 3px, #527b94 3px 4px);
    background-clip: text;
  }
}
body:has(.tabletop[data-view="paper"]) .studio-pixels { clip-path: inset(0 0 0 100%); }
body:has(.tabletop[data-view="monitor"]) .studio-pixels { clip-path: inset(0); }
body:has(.tabletop[data-view="monitor"]) .studio-letterpress { opacity: 0; }
.site-masthead.masthead-intro {
  position: relative;
  z-index: 5;
  --entrance-scale: 1.42;
}
.site-masthead.masthead-intro + .tabletop {
  animation: masthead-reveal-site 3.2s ease both;
}
.masthead-intro .studio-nameplate { animation: masthead-arrive 3.2s cubic-bezier(.32,.02,.2,1) both; }
.masthead-intro .studio-letterpress { animation: masthead-ink-to-etch 3.2s ease both; }
.masthead-intro .studio-pixels { animation: masthead-pixel-wipe 3.2s ease both; }
.masthead-intro .masthead-switch { animation: masthead-switch-power 3.2s ease both; }
.masthead-intro .masthead-switch::before { animation: masthead-switch-sweep 3.2s ease both; }
@keyframes masthead-arrive {
  0%, 72% { transform: translateY(calc(50svh - var(--masthead-height) + .6em)) scale(var(--entrance-scale)); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes masthead-reveal-site {
  0%, 81% { opacity: 0; visibility: hidden; }
  82% { opacity: 0; visibility: visible; }
  100% { opacity: 1; visibility: visible; }
}
@keyframes masthead-ink-to-etch {
  0%, 67% { color: #3e3228; text-shadow: 0 1px #fff8e6, 0 -1px #5f4c3a45; }
  90%, 100% { color: #39586b; text-shadow: 0 1px #f8fcffdd, 0 -1px #27465855; }
}
@keyframes masthead-pixel-wipe {
  0%, 16%, 40%, 46% { clip-path: inset(0 0 0 100%); }
  25%, 32%, 56%, 63% { clip-path: inset(0); }
  72%, 100% { clip-path: inset(0 0 0 100%); }
}
@keyframes masthead-switch-sweep {
  0%, 72%, 100% { transform: translateX(0); }
  10%, 16%, 40%, 46% { transform: translateX(-12px); }
  25%, 32%, 56%, 63% { transform: translateX(12px); }
}
@keyframes masthead-switch-power {
  0%, 16%, 40%, 46%, 72%, 100% { background-color: #a9adb1; }
  25%, 32%, 56%, 63% { background-color: #288858; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .site-masthead.masthead-intro { --entrance-scale: 1.07; }
}
@media (prefers-reduced-motion: reduce) {
  .site-masthead.masthead-intro + .tabletop,
  .masthead-intro .studio-nameplate, .masthead-intro .studio-letterpress, .masthead-intro .studio-pixels,
  .masthead-intro .masthead-switch, .masthead-intro .masthead-switch::before { animation: none; }
  .studio-letterpress, .studio-pixels { transition: none; }
}

.notebook-tabs a[href="/about.html"] { --tab-paper: #edc0a3; }
.site-masthead { position: relative; }
.masthead-contact {
  position: absolute;
  right: 1rem;
  align-self: center;
  color: #243f52;
  font-size: .82rem;
  font-weight: 750;
}
@media (max-width: 820px) {
  .site-masthead:has(.masthead-contact) { height: auto; }
  .masthead-contact { position: static; margin: .1rem 0 .2rem; }
}

/* The narrow rail grips the right bezel and keeps the screen glass clear. */
.tabletop:not([data-view="paper"]) {
  --note-rail-width: clamp(43px,4vw,53px);
  --note-rail-grip: 8px;
  --note-base-height: clamp(73px, 7vw, 104px);
  --note-rail-height: calc(var(--note-base-height) * 6 + 109px);
  padding-right: calc(var(--note-rail-width) - var(--note-rail-grip) + 12px);
}
.tabletop[data-view="monitor"] { padding-left: clamp(14px, 3vw, 46px); }
.tabletop[data-view] .board-on .game-tabs {
  z-index: 4;
  isolation: isolate;
  display: grid;
  top: clamp(8px, calc(100% - var(--stand-height) - var(--note-rail-height) - 12px), calc(200px + clamp(12px, 2.4vw, 32px)));
  right: calc(var(--note-rail-grip) - var(--note-rail-width));
  width: var(--note-rail-width);
  padding: 5px 4px 6px calc(var(--note-rail-grip) + 3px);
  gap: 5px;
}
.game-tabs { --note-holder-surface: #53616d; }
.game-tabs::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid #313b4a;
  border-radius: 3px 6px 6px 3px;
  background: linear-gradient(90deg, #626f7b 0, #43505d var(--note-rail-grip), var(--note-holder-surface) 100%);
  box-shadow: inset 1px 0 #c5d0d881, 2px 3px 5px #16233355;
  pointer-events: none;
}
.tabletop[data-view] .board-on .game-tabs .game-note {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: none;
  height: var(--note-base-height);
  margin: 0;
  padding: 5px 3px;
  writing-mode: vertical-rl;
  text-align: center;
  text-decoration: none;
  font: 750 clamp(.63rem, .82vw, .79rem)/1.08 "Avenir Next", Avenir, system-ui, sans-serif;
  overflow-wrap: normal;
}
.tabletop[data-view] .board-on .game-tabs .game-note[data-game-section="mouse"] { height: calc(var(--note-base-height) + 58px); }
.tabletop[data-view] .board-on .game-tabs .game-note[data-game-section="champions"] { height: calc(var(--note-base-height) + 15px); }
.game-tabs .game-note:nth-child(even) { --note-tilt: 1.5deg; --curl-x: -1; }
.game-tabs .game-note:nth-child(even)::before,
.game-tabs .game-note:nth-child(even)::after { left: 0; right: auto; }
.game-tabs .game-note::before, .game-tabs .game-note::after { width: 9px; height: 9px; }
.game-tabs .game-note { --note-curl-base: var(--note-holder-surface); }
.tabletop[data-view] .board-on .game-tabs .game-note:hover { text-decoration: underline; }
.game-tabs .game-note[aria-current] { outline: 1px solid #354458; outline-offset: -2px; }
.game-tabs [href="/about.html"] { --note-paper: #f4d399; --note-fold: #fff0c2; }
.game-tabs [href^="/Off-On-Consulting.html"] { --note-paper: #dcd2f1; --note-fold: #f7efff; }
.notebook-tabs [href^="/Off-On-Consulting.html"] { --tab-paper: #dcd2f1; min-height: 74px; }

.board-header :is(.paper-header-links, .monitor-header-links) { --header-divider-gap: 6px; }
.board-header :is(.paper-header-links, .monitor-header-links) a { position: relative; }
.board-header :is(.paper-header-links, .monitor-header-links) a + a::before {
  content: "|" / "";
  position: absolute;
  inset-inline-end: calc(100% + var(--header-divider-gap) / 2);
  top: 50%;
  transform: translate(50%, -50%);
  color: #586b7c;
  font-weight: 450;
  pointer-events: none;
}
@container (max-width: 360px) {
  .board-header .monitor-header-links a:nth-child(3n + 1)::before { content: none; }
}
@container (max-width: 260px) {
  .tabletop[data-view="paper"] .board-header .paper-header-links {
    display: grid;
    grid-template-columns: repeat(3,max-content);
  }
  .tabletop[data-view="paper"] .board-header .paper-header-links a:nth-child(3n + 1)::before { content: none; }
}

.board-on .board-header { container-type: inline-size; }
.tabletop .board-on .board-header .monitor-header-links {
  justify-content: center;
  align-items: center;
  gap: .2rem var(--header-divider-gap);
  text-align: center;
}
.tabletop .board-on .board-header .monitor-header-links a {
  padding-block: .26rem;
  font-size: clamp(.69rem, 3cqi, .80rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  white-space: nowrap;
}
@container (max-width: 360px) {
  .tabletop .board-on .board-header .monitor-header-links {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    --header-divider-gap: 4.5px;
  }
  .tabletop .board-on .board-header .monitor-header-links a {
    letter-spacing: -.015em;
  }
}
.board-on .game h3.game-note a { text-decoration: none; }
.board-on .game h3.game-note a:hover { text-decoration: underline; }
@media (max-width: 600px) and (orientation: portrait) {
  .tabletop[data-view="split"], .tabletop[data-view="monitor"] {
    --note-rail-width: 72px;
    --note-base-height: 66px;
    --note-rail-height: 287px;
  }
  .tabletop[data-view="split"] .board-off { margin-right: calc(12px - var(--note-rail-width) + var(--note-rail-grip)); }
  .tabletop[data-view] .board-on .game-tabs {
    grid-template-columns: repeat(2, minmax(0,1fr));
    align-items: stretch;
    gap: 4px;
  }
  .tabletop[data-view] .board-on .game-tabs .game-note { height: auto; min-height: var(--note-base-height); padding-inline: 4px; padding-block: 2px; }
  .tabletop[data-view] .board-on .game-tabs .game-note[data-game-section="clown"] { min-height: calc(var(--note-base-height) + 66px); }
}

.consulting-card {
  display: grid;
  gap: .45rem;
  align-content: start;
  justify-items: start;
  width: min(100%, 1050px);
  margin: clamp(.85rem, 2vw, 1.7rem) auto 0;
  padding: clamp(.85rem, 2.25vw, 1.65rem);
  border: 1px solid var(--consult-border);
  border-left: 4px solid var(--consult-accent);
  border-radius: .45rem;
  background: var(--consult-bg);
  color: var(--consult-ink);
  box-shadow: 0 3px 8px #1c344420;
}
.consulting-card h3 { font-size: clamp(1.1rem, 1.8vw, 1.62rem); line-height: 1.18; }
.consulting-card p { max-width: 60ch; line-height: 1.45; }
.consulting-card a { font-weight: 800; }
.consulting-card-off {
  --consult-bg: linear-gradient(112deg, #fae4d6, #fff4e9);
  --consult-border: #d7af97;
  --consult-accent: #aa6142;
  --consult-ink: #553023;
}
.consulting-card-on {
  --consult-bg: linear-gradient(115deg, #19344c, #254d67);
  --consult-border: #385d75;
  --consult-accent: #91ccde;
  --consult-ink: #f4faff;
}
@media (min-width: 821px) {
  .tabletop[data-view="split"] .consulting-card { margin-top: auto; }
  .tabletop[data-view="split"] .board-face:has(.consulting-card) > :is(.off, .on) { margin-bottom: 1rem; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .consulting-card { padding: .62rem; gap: .3rem; margin-top: .55rem; }
  .consulting-card p, .consulting-card a { font-size: .8rem; }
}

/* Small navigation switches use the same track and thumb as the masthead. */
:is(.card, .game, .consulting-card):has(> .project-switch) { position: relative; }
.project-switch {
  display: grid;
  place-items: center;
  position: absolute;
  top: .45rem;
  right: .45rem;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: .5rem;
}
.project-switch:focus-visible { outline-offset: -2px; }
.project-switch-track {
  position: relative;
  width: 31px;
  height: 17px;
  border: 1px solid #555e66;
  border-radius: 999px;
  background: #a9adb1;
  box-shadow: 0 0 0 2px #ffffffdf, 0 2px 5px #1626357a;
  transition: filter .14s ease, transform .14s ease;
}
.project-switch-track::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 11px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f7f8fa;
  box-shadow: 0 1px 2px #14203159;
}
.project-switch:is(:hover, :focus-visible) .project-switch-track { filter: brightness(1.12); transform: scale(1.08); }
.consulting-card h3 { padding-right: 2.4rem; }
@media (max-width: 600px) and (orientation: portrait) {
  .project-switch { top: 0; right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .project-switch-track { transition: none; }
}

/* Size the notebook links to their own panel, including split view. */
.board-off .board-header { container-type: inline-size; }
.tabletop .board-off .board-header .paper-header-links {
  justify-content: center;
  align-items: center;
  column-gap: var(--header-divider-gap);
  row-gap: .2rem;
  min-height: 1.65rem;
}
.tabletop .board-off .board-header .paper-header-links a {
  white-space: nowrap;
  font-size: clamp(.69rem, 3.32cqi, .98rem);
  line-height: 1.15;
}

.board-on .studio-linkedin {
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(.52rem,1.3vw,.9rem);
  width: min(100%, 30rem);
  min-height: clamp(46px,5vw,68px);
  margin: clamp(.7rem,1.5vw,1.3rem) auto;
  padding: .58rem .7rem;
  border: 1px solid #a8c4dc;
  border-radius: .55rem;
  background: #f0f7ff;
  color: #17486f;
  font-size: clamp(.9rem,1.65vw,1.4rem);
  font-weight: 750;
  text-align: center;
}
.studio-linkedin-icon {
  display: grid;
  place-items: center;
  width: clamp(1.5rem,2.6vw,2.3rem);
  flex-shrink: 0;
  aspect-ratio: 1;
  border-radius: .22rem;
  background: #0a66c2;
  color: #fff;
  font: 900 clamp(1rem,1.8vw,1.5rem)/1 Arial,sans-serif;
  letter-spacing: -.05em;
}
@container (max-width: 280px) {
  .tabletop[data-view="split"] .board-off .board-header .paper-header-links {
    margin-inline: -21px -7px;
    --header-divider-gap: 4.5px;
  }
  .tabletop[data-view="split"] .board-off .board-header .paper-header-links a {
    font-size: clamp(.625rem, 3.6cqi, .69rem);
    letter-spacing: -.015em;
  }
}

.project-switch[aria-current="true"] .project-switch-track { background: #288858; border-color: #1a6340; }
.project-switch[aria-current="true"] .project-switch-track::after { left: 16px; }
