/* ===================== LESSONS ===================== */
.back {
  position: absolute;
  left: 34px;
  top: 28px;
  width: 56px;
  height: 56px;
  font-size: 38px;
  line-height: 50px;
  z-index: 8;
  border-radius: 8px;
}
.lessons-lights .back,
.arcade-lights .back {
  background: #0e2133e6;
  border: 1.5px solid #fbf1dc44;
  color: var(--cream);
}
.lessons-magpie .back,
.arcade-magpie .back {
  background: #2b2622;
  color: var(--paper);
  border-radius: 0;
}

.ls-head,
.ls-title {
  color: var(--cream);
  font: 500 54px/1 Fraunces;
  font-variation-settings:
    "opsz" 144,
    var(--soft);
}
.ls-head {
  position: absolute;
  left: 112px;
  top: 28px;
}
.ls-sub {
  position: absolute;
  left: 114px;
  top: 88px;
  font-size: 19px;
  font-weight: 500;
  color: #d9e6f0;
}
.ls-list {
  position: absolute;
  left: 60px;
  right: 60px;
  top: 140px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 296px;
  gap: 14px;
}
.ls-sheet {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 18px 18px;
  background: #0e2d49;
  box-shadow: inset 0 0 0 1.5px #ffffff55;
  color: var(--cream);
  position: relative;
}
.ls-sheet:active {
  transform: translateY(2px);
}
.ls-sheet.next {
  box-shadow: inset 0 0 0 3px var(--amber);
}
.ls-sheet.done {
  background: #164a72;
}
.ls-num {
  font: 500 64px/1 Fraunces;
  font-variation-settings:
    "opsz" 144,
    var(--soft);
  color: var(--amber);
}
.ls-name {
  font: 500 27px/1.08 Fraunces;
  font-variation-settings:
    "opsz" 40,
    var(--soft);
  margin-top: 12px;
}
.ls-blurb {
  font-size: 16px;
  line-height: 1.25;
  margin-top: 8px;
  color: #d9e6f0;
  font-weight: 500;
}

.ls-title {
  position: absolute;
  left: 112px;
  top: 32px;
  font-size: 42px;
}
.ls-dots {
  position: absolute;
  right: 60px;
  top: 50px;
  display: flex;
  gap: 8px;
}
.ls-dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--cream);
}
.ls-dots i.on {
  background: var(--amber);
  box-shadow: none;
}
.ls-copy {
  position: absolute;
  left: 60px;
  top: 116px;
  width: 340px;
  color: var(--cream);
  font-size: 24px;
  line-height: 1.32;
  font-weight: 500;
}
.ls-copy p {
  margin-bottom: 16px;
}
.ls-copy p.em {
  font: 500 28px/1.2 Fraunces;
  font-variation-settings:
    "opsz" 40,
    var(--soft);
  color: var(--amber);
}
.ls-pic {
  position: absolute;
  left: 430px;
  top: 96px;
  right: 40px;
  bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  color: var(--cream);
}
.ls-next {
  position: absolute;
  right: 50px;
  bottom: 26px;
  width: 220px;
  height: 62px;
  background: #2d5474;
  color: #ffffff77;
  border-radius: 8px;
  font: 600 25px Fraunces;
  font-variation-settings:
    "opsz" 40,
    var(--soft);
  transition:
    background 180ms ease-out,
    color 180ms ease-out;
}
.ls-next.ready {
  background: var(--amber);
  color: var(--plum);
}
.ls-big {
  font: 500 50px/1.05 Fraunces;
  font-variation-settings:
    "opsz" 144,
    var(--soft);
  color: var(--amber);
  text-align: center;
  min-height: 54px;
  font-variant-numeric: lining-nums;
}
.ls-do {
  height: 60px;
  padding: 0 26px;
  background: var(--amber);
  color: var(--plum);
  border-radius: 8px;
  font: 600 23px Fraunces;
  font-variation-settings:
    "opsz" 40,
    var(--soft);
  flex: none;
}
.ls-row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.ls-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
}
.ls-stepper b {
  font: 500 40px Fraunces;
  width: 64px;
  text-align: center;
  color: var(--amber);
}
.ls-step {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #0e2d49;
  box-shadow: inset 0 0 0 1.5px #ffffff77;
  font-size: 32px;
  color: var(--cream);
}
.ls-resize {
  position: relative;
  display: inline-block;
}
.ls-handle {
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  touch-action: none;
  box-shadow: 0 4px 14px #0007;
  z-index: 3;
}
.ls-slice {
  position: relative;
  display: inline-block;
  margin-right: 30px;
}
.ls-bar {
  position: absolute;
  left: -16px;
  right: -44px;
  height: 0;
  border-top: 4px dashed var(--amber);
  touch-action: none;
  z-index: 3;
}
.ls-bar span {
  position: absolute;
  right: 0;
  top: -22px;
  width: 56px;
  height: 40px;
  background: var(--amber);
  color: var(--plum);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ls-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 44px;
}
.ls-sums {
  font: 500 32px/1.28 Fraunces;
  font-variation-settings:
    "opsz" 72,
    var(--soft);
  text-align: center;
  font-variant-numeric: lining-nums;
}
.ls-sums .tot {
  color: var(--amber);
  font-size: 38px;
}
.ls-pic:has(.ls-slice) {
  flex-direction: row;
  gap: 36px;
  justify-content: center;
  align-items: center;
}
.ls-chips {
  display: flex;
  gap: 8px;
  margin-top: 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.ls-chips span {
  padding: 8px 14px;
  background: var(--amber);
  color: var(--plum);
  font-weight: 700;
  border-radius: 6px;
  font-size: 20px;
}
.ls-turn.turning {
  animation: turn 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes turn {
  from {
    transform: rotate(-90deg);
    opacity: 0.4;
  }
}
.ls-chart {
  display: grid;
  grid-template-columns: repeat(12, 36px);
  grid-auto-rows: 36px;
  gap: 3px;
}
.ls-chart i {
  background: #ffffff22;
  display: block;
  transition:
    opacity 500ms,
    background 200ms;
}
.ls-chart i.mid {
  background: #ffffff55;
}
.ls-chart i.pick {
  background: var(--amber);
}
.ls-chart.quiet i {
  background: var(--amber);
}
.ls-chart i.gone {
  opacity: 0.1;
}
.ls-q {
  font: 500 34px/1.15 Fraunces;
  font-variation-settings:
    "opsz" 72,
    var(--soft);
  text-align: center;
  max-width: 620px;
  margin-top: 50px;
}
.ls-choices {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.ls-choice {
  width: 150px;
  height: 104px;
  background: var(--cream);
  color: var(--plum);
  border-radius: 9px;
  font: 500 46px Fraunces;
  font-variation-settings:
    "opsz" 72,
    var(--soft);
}
.ls-choice.good {
  background: var(--amber);
}
.ls-choice.nope {
  opacity: 0.4;
}
.ls-why {
  font-size: 23px;
  font-weight: 500;
  text-align: center;
  min-height: 32px;
  margin-top: 10px;
}
.ls-nines {
  display: grid;
  grid-template-columns: repeat(2, 220px);
  grid-auto-rows: 58px;
  font: 500 30px Fraunces;
  font-variant-numeric: lining-nums;
  min-height: 300px;
}
.ls-nines b {
  color: var(--amber);
  font-weight: 500;
}
.ls-cards {
  display: grid;
  grid-template-columns: repeat(2, 300px);
  grid-auto-rows: 170px;
  gap: 12px;
}
.ls-card {
  background: #0e2d49;
  box-shadow: inset 0 0 0 1.5px #ffffff77;
  color: var(--cream);
  font: 500 54px Fraunces;
  font-variation-settings:
    "opsz" 144,
    var(--soft);
  padding: 14px;
  border-radius: 8px;
}
.ls-card.open {
  font: 500 22px/1.25 Fraunces;
  font-variation-settings:
    "opsz" 40,
    var(--soft);
  background: var(--amber);
  color: var(--plum);
}

/* Lessons on blueprint paper draw in outline. */
.lessons-lights .arr-group {
  background: transparent !important;
  box-shadow: inset 0 0 0 1.5px #ffffff88 !important;
}
.lessons-lights .cell::after {
  background: transparent !important;
  box-shadow: inset 0 0 0 1.5px #ffffffaa !important;
}
.lessons-lights .cell.on::after {
  background: linear-gradient(#ffd98e, #ffaf4e) !important;
  box-shadow: none !important;
}
.lessons-lights .g2 .cell.on::after {
  background: var(--cream) !important;
}
.lessons-lights .cell.ghost::after {
  background: transparent !important;
  box-shadow: inset 0 0 0 1.5px #ffffff55 !important;
}

/* Safecracking school: ink and gold. */
.lessons-magpie {
  font-family: "Familjen Grotesk", sans-serif;
  --amber: #e9b23c;
  --cream: #fbefd6;
}
.lessons-magpie .ls-head,
.lessons-magpie .ls-title {
  font: 400 44px/1 "Bowlby One";
  color: var(--paper);
}
.lessons-magpie .ls-sub {
  color: var(--paper);
}
.lessons-magpie .ls-sheet {
  background: #2b2622;
  box-shadow: none;
}
.lessons-magpie .ls-sheet.next {
  box-shadow: inset 0 0 0 3px var(--gold);
}
.lessons-magpie .ls-sheet.done {
  background: #3b3530;
}
.lessons-magpie .ls-num {
  font: 400 56px/1 "Bowlby One";
  color: var(--gold);
}
.lessons-magpie .ls-name {
  font: 400 25px/1.06 "Bowlby One";
  color: var(--paper);
}
.lessons-magpie .ls-blurb {
  color: var(--paper);
}
.lessons-magpie .ls-copy p.em {
  font: 700 26px/1.2 "Familjen Grotesk";
  color: var(--gold);
}
.lessons-magpie .ls-big,
.lessons-magpie .ls-q,
.lessons-magpie .ls-sums {
  font-family: "Bowlby One";
  font-weight: 400;
  font-variation-settings: normal;
}
.lessons-magpie .ls-big {
  font-size: 42px;
  color: var(--gold);
}
.lessons-magpie .ls-q {
  font: 700 32px/1.15 "Familjen Grotesk";
}
.lessons-magpie .ls-sums {
  font-size: 28px;
}
.lessons-magpie .ls-sums .tot {
  font-size: 32px;
  color: var(--gold);
}
.lessons-magpie .ls-next {
  background: #2b2622;
  border-radius: 0;
  font: 400 24px "Bowlby One";
  color: #fbefd666;
}
.lessons-magpie .ls-next.ready {
  background: var(--red);
  color: var(--paper);
}
.lessons-magpie .ls-do,
.lessons-magpie .ls-chips span {
  background: var(--gold);
  color: var(--ink);
  border-radius: 0;
  font: 400 21px "Bowlby One";
}
.lessons-magpie .ls-step {
  background: #2b2622;
  box-shadow: none;
  border-radius: 0;
  color: var(--paper);
}
.lessons-magpie .ls-stepper b {
  font: 400 36px "Bowlby One";
  color: var(--gold);
}
.lessons-magpie .ls-handle,
.lessons-magpie .ls-bar span {
  background: var(--gold);
  color: var(--ink);
}
.lessons-magpie .ls-bar {
  border-top-color: var(--gold);
}
.lessons-magpie .ls-choice {
  background: var(--gold);
  color: var(--ink);
  border-radius: 0;
  font: 400 40px "Bowlby One";
}
.lessons-magpie .ls-choice.good {
  background: var(--red);
  color: var(--paper);
}
.lessons-magpie .ls-card {
  background: #2b2622;
  box-shadow: none;
  color: var(--paper);
  font: 400 44px "Bowlby One";
  border-radius: 0;
}
.lessons-magpie .ls-card.open {
  font: 700 20px/1.25 "Familjen Grotesk";
  background: var(--gold);
  color: var(--ink);
}
.lessons-magpie .ls-nines {
  font: 400 26px "Bowlby One";
}
.lessons-magpie .ls-dots i {
  box-shadow: inset 0 0 0 2px var(--paper);
}
.lessons-magpie .arr-row {
  border-bottom-color: #4a433c !important;
}
.lessons-magpie .ls-chart i {
  background: #ffffff22;
}
.lessons-magpie .ls-chart i.mid {
  background: #ffffff55;
}
.lessons-magpie .ls-chart i.pick,
.lessons-magpie .ls-chart.quiet i {
  background: var(--gold);
}
.lessons-magpie .ls-chart.quiet i.gone {
  background: var(--gold);
  opacity: 0.08;
}
.lessons-magpie .ls-chart i.gone {
  opacity: 0.08;
}

/* ===================== ARCADE ===================== */
.ar-head {
  position: absolute;
  left: 112px;
  top: 26px;
  color: var(--cream);
  font: 500 58px/1 Fraunces;
  font-variation-settings:
    "opsz" 144,
    var(--soft);
  text-shadow: 0 1px 10px #0d2a3d99;
}
.ar-list {
  position: absolute;
  left: 70px;
  right: 70px;
  top: 130px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ar-tile {
  height: 380px;
  background: var(--cream);
  color: var(--plum);
  border-radius: 10px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: flex-start;
  box-shadow: 0 14px 40px #06101a88;
}
.ar-tile b {
  font: 500 42px/1.02 Fraunces;
  font-variation-settings:
    "opsz" 144,
    var(--soft);
}
.ar-tile span {
  font-size: 20px;
  line-height: 1.28;
  margin-top: 12px;
  font-weight: 500;
}
.ar-tile em {
  margin-top: auto;
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  color: #a65a12;
}
.arcade-magpie {
  font-family: "Familjen Grotesk", sans-serif;
  color: var(--paper);
}
.arcade-magpie .ar-head {
  font: 400 54px/1 "Bowlby One";
  color: var(--paper);
  text-shadow: none;
}
.arcade-magpie .ar-tile {
  background: var(--gold);
  color: var(--ink);
  border-radius: 0;
  box-shadow: none;
}
.arcade-magpie .ar-tile b {
  font: 400 36px/1.04 "Bowlby One";
}
.arcade-magpie .ar-tile em {
  color: var(--red);
}

.ar-end {
  position: absolute;
  left: 50%;
  top: 170px;
  width: 560px;
  transform: translateX(-50%);
  background: var(--cream);
  color: var(--plum);
  padding: 30px 34px;
  border-radius: 12px;
  box-shadow: 0 18px 50px #06101a99;
  z-index: 9;
  animation: rise 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ar-end h2 {
  font: 500 52px/1 Fraunces;
  font-variation-settings:
    "opsz" 144,
    var(--soft);
}
.ar-end p {
  font-size: 22px;
  margin: 12px 0 20px;
  font-weight: 500;
}
.ar-end-row {
  display: flex;
  gap: 10px;
}
.ar-btn {
  flex: 1;
  height: 64px;
  background: var(--amber);
  border-radius: 8px;
  font: 600 21px Fraunces;
  font-variation-settings:
    "opsz" 40,
    var(--soft);
  color: var(--plum);
}
.ar-btn.alt {
  background: #efe0c4;
}
.arcade-magpie .ar-end {
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
}
.arcade-magpie .ar-end h2 {
  font: 400 44px/1.02 "Bowlby One";
}
.arcade-magpie .ar-btn {
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
  font: 400 20px "Bowlby One";
}
.arcade-magpie .ar-btn.alt {
  background: var(--gold);
  color: var(--ink);
}

/* Speed */
.gs-left {
  position: absolute;
  left: 60px;
  top: 100px;
  width: 430px;
  color: var(--cream);
}
.gs-prompt {
  font-size: 22px;
  font-weight: 600;
  text-shadow: 0 1px 8px #0d2a3dcc;
}
.gs-q {
  font: 500 112px/1.05 Fraunces;
  font-variation-settings:
    "opsz" 144,
    var(--soft);
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.gs-label {
  font-size: 18px;
  font-weight: 600;
  margin-top: 30px;
  text-shadow: 0 1px 8px #0d2a3dcc;
}
.gs-score {
  font: 500 92px/1 Fraunces;
  font-variation-settings:
    "opsz" 144,
    var(--soft);
  color: var(--amber);
}
.gs-bar {
  margin-top: 22px;
  width: 400px;
  height: 16px;
  background: #0e2133cc;
  overflow: hidden;
}
.gs-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59a45, var(--amber));
  transform-origin: left;
}
.gs-grid {
  position: absolute;
  right: 40px;
  top: 60px;
  width: 620px;
  height: 700px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  background: #56293a;
  padding: 14px;
  box-shadow: 0 16px 44px #06101a99;
}
.gs-tile {
  background: linear-gradient(#1a3550, #13283d);
  box-shadow: inset 0 0 0 3px #2a1420;
  color: var(--cream);
  font: 500 44px Fraunces;
  font-variant-numeric: lining-nums;
}
.gs-tile.good {
  background: linear-gradient(#ffd98e, #ffaf4e);
  color: var(--plum);
}
.gs-tile.nope {
  opacity: 0.35;
}
.arcade-magpie .gs-q {
  font: 400 92px/1.05 "Bowlby One";
  color: var(--paper);
}
.arcade-magpie .gs-score {
  font: 400 80px/1 "Bowlby One";
  color: var(--gold);
}
.arcade-magpie .gs-prompt,
.arcade-magpie .gs-label {
  color: var(--paper);
  text-shadow: none;
}
.arcade-magpie .gs-left {
  color: var(--paper);
}
.arcade-magpie .gs-bar {
  background: #2b2622;
}
.arcade-magpie .gs-bar i {
  background: var(--red);
}
.arcade-magpie .gs-grid {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.arcade-magpie .gs-tile {
  background: #2b2622;
  box-shadow: none;
  font: 400 38px "Bowlby One";
  color: var(--paper);
  border-radius: 50%;
}
.arcade-magpie .gs-tile.good {
  background: var(--gold);
  color: var(--ink);
}

/* Find */
.gf-left {
  position: absolute;
  left: 60px;
  top: 110px;
  width: 370px;
  color: var(--cream);
}
.gf-env {
  background: var(--cream);
  color: var(--plum);
  padding: 22px 24px 20px;
  box-shadow: 0 12px 34px #06101a88;
  border-radius: 6px;
}
.gf-title {
  font: 500 44px/1.05 Fraunces;
  font-variation-settings:
    "opsz" 144,
    var(--soft);
}
.gf-sub {
  font-size: 20px;
  font-weight: 600;
  margin-top: 6px;
  color: #a65a12;
}
.gf-tip {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  margin-top: 22px;
  min-height: 90px;
  text-shadow: 0 1px 8px #0d2a3dcc;
}
.gf-prog {
  font-size: 17px;
  font-weight: 600;
  margin-top: 8px;
  text-shadow: 0 1px 8px #0d2a3dcc;
}
.gf-grid {
  position: absolute;
  right: 36px;
  top: 50px;
  display: grid;
  grid-template-columns: 30px repeat(12, 51px);
  grid-auto-rows: 30px;
  gap: 3px;
  background: #56293a;
  padding: 12px;
  box-shadow: 0 16px 44px #06101a99;
  color: var(--cream);
}
.gf-grid {
  grid-auto-rows: auto;
}
.gf-ax,
.gf-corner {
  font: 600 15px/30px Fraunces;
  text-align: center;
  height: 30px;
}
.gf-cell {
  height: 51px;
  background: linear-gradient(#1a3550, #13283d);
  box-shadow: inset 0 0 0 2px #2a1420;
  font: 600 20px Fraunces;
  color: var(--plum);
}
.gf-cell.hit {
  background: linear-gradient(#ffd98e, #ffaf4e);
}
.gf-cell.miss {
  animation: shake 300ms;
}
@keyframes shake {
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
.arcade-magpie .gf-left {
  color: var(--paper);
}
.arcade-magpie .gf-env {
  background: var(--gold);
  color: var(--ink);
  border-radius: 0;
  box-shadow: none;
}
.arcade-magpie .gf-title {
  font: 400 38px/1.05 "Bowlby One";
}
.arcade-magpie .gf-sub {
  color: var(--ink);
}
.arcade-magpie .gf-tip,
.arcade-magpie .gf-prog {
  text-shadow: none;
}
.arcade-magpie .gf-grid {
  background: transparent;
  box-shadow: none;
  color: var(--paper);
}
.arcade-magpie .gf-cell {
  background: #2b2622;
  box-shadow: none;
  color: var(--ink);
  font: 400 17px "Bowlby One";
}
.arcade-magpie .gf-cell.hit {
  background: var(--gold);
}

/* Missing number */
.gl-visual {
  position: absolute;
  left: 100px;
  top: 100px;
  width: 110px;
  height: 660px;
  background: #2a1826;
  box-shadow: inset 0 0 0 3px #c9a26b;
}
.gl-mark {
  position: absolute;
  right: 8px;
  height: 55px;
  line-height: 55px;
  font: 600 20px Fraunces;
  color: #c9a26b;
}
.gl-pointer {
  position: absolute;
  left: 8px;
  width: 56px;
  height: 55px;
  bottom: 0;
  background: var(--amber);
  transition: bottom 460ms cubic-bezier(0.3, 0.8, 0.3, 1);
  box-shadow: 0 0 14px #ffc36b88;
}
.gl-mid {
  position: absolute;
  left: 240px;
  top: 150px;
  width: 520px;
  color: var(--cream);
  text-shadow: 0 1px 10px #0d2a3dcc;
}
.gl-prog {
  font-size: 19px;
  font-weight: 600;
}
.gl-eq {
  font: 500 88px/1.1 Fraunces;
  font-variation-settings:
    "opsz" 144,
    var(--soft);
  font-variant-numeric: lining-nums;
  margin: 8px 0 14px;
}
.gl-eq i {
  font-style: normal;
  color: var(--amber);
}
.gl-eq em {
  font-style: normal;
  color: var(--amber);
}
.gl-say {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.3;
  min-height: 66px;
}
.gl-keys {
  position: absolute;
  right: 40px;
  top: 90px;
  width: 340px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 158px;
  gap: 12px;
}
.gl-key {
  background: var(--cream);
  color: var(--plum);
  border-radius: 50%;
  aspect-ratio: 1;
  align-self: center;
  font: 500 38px Fraunces;
  box-shadow: 0 5px 0 #b9a98d;
}
.arcade-magpie .gl-visual {
  left: 40px;
  top: 130px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: #2b2622;
  box-shadow: inset 0 0 0 12px #3b3530;
}
.arcade-magpie .gl-mark {
  transform: translate(-50%, -50%);
  right: auto;
  height: auto;
  line-height: 1;
  font: 400 22px "Bowlby One";
  color: var(--paper);
}
.arcade-magpie .gl-pointer {
  left: 50%;
  top: 50%;
  bottom: auto;
  width: 8px;
  height: 118px;
  background: var(--red);
  box-shadow: none;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%);
  transition: transform 460ms cubic-bezier(0.3, 0.8, 0.3, 1);
}
.arcade-magpie .gl-mid {
  left: 420px;
  top: 130px;
  width: 360px;
  color: var(--paper);
  text-shadow: none;
}
.arcade-magpie .gl-eq {
  font: 400 50px/1.1 "Bowlby One";
}
.arcade-magpie .gl-eq i,
.arcade-magpie .gl-eq em {
  color: var(--gold);
}
.arcade-magpie .gl-key {
  background: var(--gold);
  color: var(--ink);
  font: 400 34px "Bowlby One";
  box-shadow: none;
}

/* ===================== COLLECTIONS ===================== */
.directory .back {
  background: #0e2133e6;
  border: 1.5px solid #fbf1dc44;
  color: var(--cream);
}
.dir-title {
  position: absolute;
  left: 112px;
  top: 24px;
  color: var(--cream);
  font: 500 46px/1 Fraunces;
  font-variation-settings:
    "opsz" 144,
    var(--soft);
  text-shadow: 0 1px 10px #0d2a3d99;
}
.dir-title small {
  display: block;
  font: 600 17px Figtree;
  margin-top: 4px;
}
.dir-grid {
  position: absolute;
  left: 34px;
  top: 110px;
  width: 780px;
  bottom: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 122px;
  gap: 7px;
  padding: 10px;
  background: #2a1826ee;
}
.dir-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 3px;
  background: linear-gradient(#ffd98e, #ffaf4e);
  color: var(--plum);
}
.dir-item img {
  width: 70px;
  height: 70px;
}
.dir-item small {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 3px;
  min-height: 26px;
}
.dir-item.unknown {
  background: linear-gradient(#1a3550, #13283d);
  color: var(--cream);
}
.dir-item.unknown span {
  font: 500 44px Fraunces;
  flex: 1;
  display: flex;
  align-items: center;
  opacity: 0.6;
}
.dir-detail {
  position: absolute;
  right: 24px;
  top: 110px;
  width: 322px;
  background: var(--cream);
  color: var(--plum);
  padding: 20px 22px;
  border-radius: 10px;
  box-shadow: 0 14px 40px #06101a99;
}
.dir-detail h2 {
  font: 600 32px/1.05 Fraunces;
  font-variation-settings:
    "opsz" 72,
    var(--soft);
}
.dir-detail p {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 500;
  margin-top: 6px;
}

/* ===================== GROWN-UPS ===================== */
.grown-screen {
  color: #1d1a17;
  font-family: Figtree, sans-serif;
}
.gate {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 460px;
  transform: translateX(-50%);
  text-align: center;
}
.gate h1 {
  font: 500 44px Fraunces;
  font-variation-settings:
    "opsz" 144,
    var(--soft);
}
.gate p {
  font-size: 18px;
  margin-top: 6px;
}
.gate-back {
  position: absolute;
  left: -300px;
  top: 0;
  height: 48px;
  padding: 0 16px;
  background: #e6e0d2;
  border-radius: 8px;
  font-weight: 600;
}
.gate-words {
  font-weight: 700;
  font-size: 22px;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.gate-show {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}
.gate-show span {
  width: 60px;
  height: 64px;
  border-bottom: 4px solid #1d1a17;
  font: 500 44px Fraunces;
}
.gate-pad {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  justify-content: center;
  grid-auto-rows: 84px;
  gap: 10px;
}
.gate-key {
  background: #e6e0d2;
  border-radius: 10px;
  font: 600 30px Figtree;
}
.gate-key:last-child {
  grid-column: 2;
}
.g-panel {
  position: absolute;
  inset: 0;
  padding: 26px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.g-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.g-top h1 {
  font: 500 42px Fraunces;
  font-variation-settings:
    "opsz" 144,
    var(--soft);
}
.g-btn {
  height: 46px;
  padding: 0 18px;
  background: #1d1a17;
  color: #f4f1ea;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
}
.g-btn.danger {
  background: #fff;
  color: #a4321c;
  box-shadow: inset 0 0 0 1.5px #a4321c;
}
.g-stats {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 16px 0 20px;
}
.g-stat {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
}
.g-stat b {
  display: block;
  font: 600 25px Fraunces;
  font-variant-numeric: lining-nums;
}
.g-stat span {
  font-size: 13px;
  line-height: 1.2;
  display: block;
  margin-top: 2px;
  color: #4b463f;
}
.g-cols {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 28px;
}
.g-cols h2 {
  font: 600 22px Fraunces;
  margin: 0 0 8px;
}
.g-cols section > h2:not(:first-child) {
  margin-top: 16px;
}
.g-cols p {
  font-size: 15px;
  line-height: 1.42;
  margin-bottom: 8px;
  color: #33302b;
}
.g-grid {
  display: grid;
  grid-template-columns: 22px repeat(12, 34px);
  grid-auto-rows: 34px;
  gap: 3px;
}
.g-grid i {
  background: #ddd6c6;
  display: block;
}
.g-ax {
  font: 600 13px/34px Figtree;
  text-align: center;
  color: #4b463f;
}
i.solid {
  background: #2c6e49 !important;
}
i.good {
  background: #6aa84f !important;
}
i.new {
  background: #e9b23c !important;
}
i.due {
  background: #d9662b !important;
}
i.dark {
  background: #ddd6c6 !important;
}
.g-legend {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 14px;
  flex-wrap: wrap;
}
.g-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.g-legend i {
  width: 14px;
  height: 14px;
  display: inline-block;
}
.g-tricky {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.g-tricky span {
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
}
.g-tricky small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #4b463f;
}
.g-link {
  word-break: break-all;
  background: #fff;
  padding: 9px 11px;
  border-radius: 6px;
  font-weight: 600;
  -webkit-user-select: text;
  user-select: text;
}
.g-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.g-small {
  font-size: 13px !important;
}
.g-copied {
  font-size: 14px;
  font-weight: 600;
  color: #2c6e49;
}

/* ===================== PORTRAIT ===================== */
.portrait .ls-list {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 232px;
  left: 40px;
  right: 40px;
}
.portrait .ls-copy {
  left: 40px;
  top: 100px;
  width: 740px;
  font-size: 22px;
}
.portrait .ls-pic {
  left: 40px;
  right: 40px;
  top: 290px;
  bottom: 110px;
}
.portrait .ar-list {
  grid-template-columns: 1fr;
  left: 60px;
  right: 60px;
}
.portrait .ar-tile {
  height: 280px;
}
.portrait .gs-left {
  left: 60px;
  top: 90px;
  width: 700px;
}
.portrait .gs-score {
  font-size: 60px;
}
.portrait .gs-q {
  font-size: 90px;
}
.portrait .gs-label {
  margin-top: 8px;
}
.portrait .gs-grid {
  left: 60px;
  right: 60px;
  width: auto;
  top: 480px;
  height: 660px;
}
.portrait .gf-left {
  left: 60px;
  top: 90px;
  width: 700px;
}
.portrait .gf-tip {
  min-height: 60px;
  margin-top: 10px;
}
.portrait .gf-grid {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  top: 370px;
}
.portrait .gl-visual {
  top: 90px;
  left: 60px;
  height: 520px;
}
.portrait .gl-mark {
  height: 43px;
  line-height: 43px;
}
.portrait .gl-pointer {
  height: 43px;
}
.portrait .gl-mid {
  left: 200px;
  top: 110px;
  width: 580px;
}
.portrait .gl-keys {
  left: 60px;
  right: 60px;
  width: auto;
  top: 640px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 110px;
}
.portrait .arcade-magpie .gl-visual {
  top: 90px;
  left: 40px;
  width: 300px;
  height: 300px;
}
.portrait .arcade-magpie .gl-mid {
  left: 360px;
  top: 100px;
  width: 420px;
}
.portrait .dir-grid {
  left: 24px;
  width: 772px;
  top: 330px;
}
.portrait .dir-detail {
  left: 240px;
  right: 24px;
  width: auto;
  top: 90px;
  height: 226px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.portrait .g-stats {
  grid-template-columns: repeat(4, 1fr);
}
.portrait .g-cols {
  grid-template-columns: 1fr;
}

.arcade-magpie .gs-tile { aspect-ratio: 1; height: auto; width: 100%; align-self: center; }
.gs-left { left: 60px; }
