@font-face {
  font-family: Bricolage;
  src: url("/fonts/bricolage.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --paper: #fbf8ef;
  --ink: #253a35;
  --red: #bd422d;
  --teal: #246e60;
  --line: #d8d1bd;
  --body: "Avenir Next", Avenir, system-ui, sans-serif;
  --display: Bricolage, var(--body);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23766238' opacity='.05' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #147c99;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.46;
  cursor: default;
}
button {
  touch-action: manipulation;
}
button svg {
  flex: none;
  vertical-align: middle;
}
header {
  background: #fbf8efd9;
  border-bottom: 1px solid var(--line);
}
.bar {
  width: min(1150px, 92%);
  height: 80px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  background: none;
  border: 0;
  display: flex;
  gap: 0.18em;
  align-items: center;
  padding: 0;
  white-space: nowrap;
  font: 800 clamp(22px, 2.3vw, 31px)/1 var(--display);
  letter-spacing: -1.7px;
}
.brand b {
  color: var(--red);
  font-weight: 800;
}
.brand img {
  width: 53px;
  margin-right: 5px;
}
.bar nav {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.nav,
.round {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.nav {
  background: none;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 15px;
  padding: 11px 16px;
}
.nav.active {
  background: #e9eee4;
  color: #246352;
}
.round {
  width: 43px;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffaf0;
}
.settings {
  display: flex;
  gap: 9px;
}
.bar button:hover,
.subtle:hover {
  filter: brightness(0.96);
}
main {
  width: min(1150px, 92%);
  margin: 0 auto;
  padding: clamp(22px, 3.2vw, 45px) 0 42px;
  outline: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(46px, 6.3vw, 88px);
  line-height: 0.97;
  font-weight: 800;
}
h2 {
  font-size: clamp(26px, 3.1vw, 42px);
  line-height: 1.12;
}
h3 {
  font-size: 24px;
  line-height: 1.1;
}
p {
  line-height: 1.5;
}
button {
  transition:
    transform 0.15s,
    background 0.15s;
}
button:active:not(:disabled) {
  transform: translateY(2px);
}
.hero {
  border: 1.5px solid #cdbfa6;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 323px;
  border-radius: 23px;
  background-color: #f0ebd7;
  overflow: hidden;
  box-shadow: 0 4px 0 #e5dfcf;
}
.hero:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: repeating-linear-gradient(
    -48deg,
    #bd5b48 0 15px,
    #f6efe0 15px 32px,
    #507e77 32px 47px,
    #f6efe0 47px 64px
  );
  opacity: 0.84;
}
.hero-copy {
  padding: clamp(26px, 3.4vw, 49px);
  align-self: center;
  z-index: 2;
}
.hero h1 span {
  color: var(--red);
}
.hero p {
  font-size: clamp(16px, 1.5vw, 20px);
  margin: 14px 0 24px;
  max-width: 420px;
}
.hero-art {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
  filter: drop-shadow(1px 6px 1px #4433200c);
}
.postmark {
  position: absolute;
  top: 19px;
  right: 22px;
  width: 74px;
  height: 74px;
  opacity: 0.51;
  transform: rotate(13deg);
  color: #6c8073;
}
.postmark svg {
  width: 100%;
  height: 100%;
}
.primary,
.secondary,
.subtle,
.choice,
.chip,
.letter-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 750;
  border-radius: 12px;
  min-height: 47px;
  padding: 11px 18px;
}
.primary {
  color: #fffaf1;
  background: var(--red);
  border: 1.5px solid #993c2a;
  box-shadow: 0 3px 0 #963d2b;
  font-family: var(--display);
  font-size: 19px;
}
.primary:hover {
  background: #ab3928;
}
.secondary,
.choice,
.chip,
.letter-key {
  background: #fffdf6;
  border: 1.5px solid #c7bdab;
  box-shadow: 0 2px 0 #dcd4c3;
}
.subtle {
  border: 0;
  background: transparent;
  color: var(--teal);
}
.station-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 36px 0 20px;
}
.station-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.divider {
  flex: 1;
  border-bottom: 2px dotted #cfc7b0;
  margin-left: 14px;
}
.station-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.station {
  --tint: #ddece3;
  --accent: #2e6657;
  text-align: left;
  background: #fffdf5;
  border: 1.5px solid #d5cebb;
  box-shadow: 0 3px 0 #e2dccc;
  border-radius: 17px;
  padding: 8px 8px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.station:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.write {
  --tint: #f8e4d7;
  --accent: #ab4a33;
}
.count {
  --tint: #f4e9c8;
  --accent: #91611a;
}
.listen {
  --tint: #e9e2ef;
  --accent: #775487;
}
.artbox {
  height: clamp(100px, 10.3vw, 154px);
  width: 100%;
  display: grid;
  place-items: center;
  background: var(--tint);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.artbox:before {
  content: "";
  position: absolute;
  width: 78%;
  height: 65%;
  border: 1.5px dashed var(--accent);
  border-radius: 50%;
  opacity: 0.16;
  transform: rotate(-12deg);
}
.artbox img {
  position: absolute;
  inset: 5% 0;
  width: 100%;
  height: 90%;
  object-fit: contain;
  transform: rotate(-7deg);
  filter: drop-shadow(0px 3px 1px #3e32242c);
}
.write .artbox img,
.listen .artbox img {
  transform: rotate(6deg);
}
.station h3 {
  margin: 15px 8px 3px;
  font-size: clamp(20px, 2vw, 27px);
}
.station p {
  color: #59665e;
  margin: 0 8px;
  font-size: 14px;
  font-weight: 500;
}
.under {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #6b786b;
  margin-top: 25px;
  font-size: 14px;
}
.under svg {
  color: #aa4934;
}
.game {
  max-width: 840px;
  margin: 0 auto;
}
.gamebar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.gamebar h2 {
  font-size: 24px;
}
.dots {
  display: flex;
  gap: 7px;
}
.dots i {
  width: 11px;
  height: 11px;
  border-radius: 100%;
  background: #d6d4c2;
}
.dots i.on {
  background: #488978;
}
.work,
.finish {
  border: 1.5px solid var(--line);
  border-radius: 23px;
  background: #fffcf3;
  box-shadow: 0 4px 0 #e5dfcf;
  padding: clamp(18px, 3.5vw, 40px);
  text-align: center;
}
.work h1,
.finish h1,
.album h1 {
  font-size: clamp(30px, 4vw, 53px);
  line-height: 1.08;
}
.work .prompt {
  color: #53655d;
  margin: 8px auto 15px;
  max-width: 530px;
}
.task-area {
  position: relative;
  border: 1px dashed #c7c6b4;
  border-radius: 16px;
  background: #f1f1e3;
  padding: clamp(15px, 2.8vw, 30px);
  min-height: 148px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 13px;
  margin: 14px 0;
}
.choices,
.actions,
.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.actions {
  margin-top: 16px;
}
.choice {
  font: 700 24px var(--display);
  min-width: 64px;
}
.choice:hover,
.secondary:hover,
.letter-key:hover {
  background: #f5eddc;
}
.bigword,
.blend {
  font: 650 clamp(58px, 9vw, 104px)/1.2 var(--display);
  letter-spacing: 0.025em;
}
.blend {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  touch-action: none;
  padding: 7px 20px 17px;
  position: relative;
}
.blend:after {
  content: "";
  height: 3px;
  position: absolute;
  bottom: 6px;
  left: 10%;
  right: 10%;
  border-radius: 10px;
  background: #a4beaa;
}
.blend span.lit {
  color: var(--red);
}
.helper,
.feedback {
  min-height: 26px;
  font-weight: 650;
  line-height: 1.4;
}
.feedback {
  color: #306d58;
  margin-top: 14px;
}
.feedback:empty {
  display: none;
}
.mic-live {
  background: #ffe1d6;
  color: #a43222;
}
.envelope {
  width: min(100%, 400px);
  background: #fff9e7;
  border: 2px solid #caba97;
  border-radius: 8px;
  padding: 18px;
  position: relative;
  box-shadow: 2px 4px #dbd3bd;
}
.envelope:before {
  content: "✦";
  position: absolute;
  right: 10px;
  top: 6px;
  color: #b04b34;
  font-size: 20px;
}
.typed {
  display: block;
  width: 100%;
  font: 600 clamp(36px, 7vw, 68px)/1.2 var(--display);
  letter-spacing: 0.09em;
  color: var(--ink);
  text-align: center;
  border: none;
  background: transparent;
  outline: 0;
}
.letter-key {
  font: 700 24px var(--display);
  padding: 8px 14px;
}
.tray {
  min-height: 77px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #f9e5c9;
  border: 2px dashed #ae8761;
  border-radius: 15px;
  width: min(100%, 480px);
}
.parcel {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.1;
}
.empty {
  color: #7e6c54;
}
.equation {
  font: 700 30px var(--display);
}
.big-icon {
  display: inline-grid;
  place-items: center;
  width: 65px;
  height: 65px;
  border: 1.5px solid #c5baa6;
  border-radius: 16px;
  background: #fff9ec;
}
.big-icon svg {
  width: 36px;
  height: 36px;
}
.token-star {
  color: #a6751d;
}
.token-mail {
  color: #ad4937;
}
.token-heart {
  color: #a84e79;
}
.recipient {
  width: 82px;
  height: 82px;
  object-fit: contain;
}
.writing-board {
  width: min(100%, 360px);
  height: clamp(185px, 27vh, 290px);
  touch-action: none;
  user-select: none;
}
.ruling {
  fill: none;
  stroke: #cfcebd;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.guides path,
.ink path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.guides path {
  stroke: #a2b6a7;
  stroke-width: 5;
  stroke-dasharray: 1 9;
}
.ink path {
  stroke: #2d7466;
  stroke-width: 6;
}
.nib {
  fill: #bd442c;
  stroke: #fff9ee;
  stroke-width: 2;
}
.finish img {
  height: 124px;
  max-width: 100%;
  object-fit: contain;
}
.finish p,
.album p {
  margin: 12px 0;
}
.stamps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.collectible {
  background: #f0ecdf;
  border: 1px dashed #bdbaa6;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}
.collectible img {
  width: 100%;
  max-width: 115px;
  aspect-ratio: 1;
  object-fit: contain;
}
.collectible.locked img {
  filter: grayscale(1);
  opacity: 0.29;
}
.collectible span {
  display: block;
  font-weight: 700;
}
.stampchoice {
  flex-direction: column;
}
.stampchoice img {
  width: 62px;
  height: 62px;
}
.album {
  max-width: 820px;
  margin: auto;
}
.album-head {
  margin-bottom: 18px;
}
dialog {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  border-radius: 20px;
  width: min(92vw, 480px);
  padding: 26px;
}
dialog::backdrop {
  background: #223b3463;
}
dialog h2 {
  font-size: 27px;
  margin: 5px 25px 14px 0;
}
dialog p {
  margin: 10px 0;
}
dialog .close {
  float: right;
  border: 0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 26px;
  background: #eee9d9;
}
.muted {
  color: #616e64;
}
@media (max-width: 850px) {
  .bar {
    gap: 14px;
    height: 68px;
  }
  .hero {
    min-height: 280px;
  }
  .hero-copy {
    padding: 25px;
  }
  .station-grid {
    gap: 10px;
  }
  .station h3 {
    margin-left: 4px;
  }
  .station p {
    margin: 0 4px;
  }
  .station-head {
    margin-top: 28px;
  }
  .nav {
    padding: 10px;
  }
  .hero-art img {
    width: 106%;
    left: -3%;
  }
  .postmark {
    width: 50px;
    height: 50px;
  }
  .artbox {
    height: 102px;
  }
}
@media (max-width: 620px) {
  .bar,
  main {
    width: 93%;
  }
  .bar {
    gap: 6px;
  }
  .brand {
    font-size: 21px;
    letter-spacing: -1px;
  }
  .brand img {
    width: 35px;
    margin-right: 0;
  }
  .nav span {
    display: none;
  }
  .nav {
    padding: 9px;
  }
  .round {
    height: 37px;
    width: 37px;
  }
  .bar nav,
  .settings {
    gap: 3px;
  }
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 233px;
    border-radius: 16px;
  }
  .hero-copy {
    padding: 19px 0 24px 17px;
  }
  .hero h1 {
    font-size: clamp(38px, 9.5vw, 54px);
  }
  .hero p {
    font-size: 15px;
    margin: 10px 0 15px;
  }
  .hero-art img {
    width: 140%;
    left: -25%;
    object-position: 50% 62%;
  }
  .hero .primary {
    font-size: 16px;
    min-height: 44px;
    padding: 9px 12px;
  }
  .postmark {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  .station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .artbox {
    height: 107px;
  }
  .station {
    padding-bottom: 13px;
  }
  .station h3 {
    margin-top: 10px;
  }
  .station-head {
    margin: 25px 0 14px;
  }
  .station-head h2 {
    font-size: 26px;
  }
  .gamebar h2 {
    font-size: 19px;
  }
  .gamebar .subtle {
    font-size: 0;
    gap: 0;
  }
  .work {
    padding: 16px 11px;
  }
  .stamps {
    gap: 8px;
  }
  .collectible {
    padding: 8px;
  }
  .under {
    font-size: 13px;
  }
  .primary,
  .secondary,
  .choice {
    padding: 10px 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

.big-icon.selected {
  outline: 3px solid #408574;
  outline-offset: 1px;
  background: #e3eee2;
}
.writing-board.posted {
  pointer-events: none;
}
.pack-space {
  width: min(100%, 530px);
  display: flex;
  align-items: center;
  gap: 15px;
}
.pack-space .tray {
  flex: 1;
}
.supply,
.loose-parcel {
  display: inline-grid;
  place-items: center;
  color: #865325;
  background: #f3d293;
  border: 1.5px solid #bb935b;
  border-radius: 8px;
}
.supply {
  padding: 10px;
  touch-action: none;
  z-index: 1;
  position: relative;
  box-shadow: 2px 3px #bb9e69;
}
.loose-parcel {
  padding: 5px;
}
.loose-parcel:hover,
.supply:hover {
  background: #ffe1a5;
}
#countAid {
  width: min(100%, 440px);
}
.hands {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hands svg {
  width: 65px;
  height: 65px;
}
.number-line {
  display: flex;
  margin: 5px 0;
  border: 1px solid #bdcabb;
  overflow: hidden;
  border-radius: 8px;
}
.number-line span {
  flex: 1;
  text-align: center;
  padding: 7px 0;
  font-weight: 750;
  background: #faf9ee;
  color: #586358;
  border-right: 1px solid #bfc9ba;
}
.number-line span:last-child {
  border: 0;
}
.number-line .passed {
  background: #dce9d8;
}
.number-line .here {
  background: #2b6d5e;
  color: white;
}
