@font-face {
  font-family: Lane;
  src: url("/fonts/atkinson-regular.woff");
}
@font-face {
  font-family: Lane;
  src: url("/fonts/atkinson-bold.woff");
  font-weight: 700;
}
:root {
  font-family: Lane, system-ui, sans-serif;
  color: #393449;
  background: #faf7f2;
  font-synthesis: none;
  --ink: #393449;
  --muted: #807789;
  --purple: #7761ab;
  --line: #e8e0e8;
  --pink: #e795b4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 16px;
  transition:
    transform 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
button:hover:not(:disabled) {
  background: #f5edf9;
  box-shadow: 0 3px 0 #ddd0e5;
  transform: translateY(-1px);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid #946fc9;
  outline-offset: 3px;
}
button.selected {
  background: #ebe1f7;
  border-color: #9475bd;
  box-shadow: inset 0 0 0 1px #9475bd;
}
a {
  color: inherit;
  text-decoration: none;
}
.shell {
  max-width: 1500px;
  margin: auto;
  padding: 0 44px;
}
.header {
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.back {
  font-size: 14px;
  color: #756b7d;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-star {
  font-size: 48px;
  color: #b48fbc;
}
.brand h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 0;
}
.brand em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #9d6792;
}
.brand p {
  font-size: 9px;
  letter-spacing: 3px;
  margin: 6px 0 0;
  color: #887b8f;
}
.top-actions {
  display: flex;
  gap: 8px;
}
.top-actions button {
  font-size: 12px;
  background: transparent;
}
.game-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0 22px;
}
.sidebar {
  display: flex;
  flex-direction: column;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #8b7a90;
}
.passport {
  background: #f1e8f0;
  padding: 24px 20px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.passport:after {
  content: "✧";
  position: absolute;
  right: 13px;
  top: 33px;
  font-size: 68px;
  color: #e0cde5;
  pointer-events: none;
}
.passport h2 {
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 20px 0 15px;
  position: relative;
  z-index: 1;
}
.passport h2 em {
  font-family: Georgia, serif;
  color: #a16494;
  font-weight: 400;
}
.passport p {
  font-size: 13px;
  line-height: 1.5;
  color: #77677f;
  min-height: 58px;
}
.stamps {
  display: flex;
  gap: 6px;
  margin: 21px 0 16px;
}
.stamp {
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  border: 1px dashed #baa7c4;
  border-radius: 50%;
  color: #bca5c4;
  font-size: 16px;
}
.stamp.done {
  border: 0;
  background: #9a77b5;
  color: white;
}
.text-button {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  width: 100%;
  text-align: left;
}
.text-button span {
  float: right;
}
.destinations {
  padding: 26px 0 16px;
}
.destinations > .eyebrow {
  padding-left: 12px;
}
#places {
  margin-top: 12px;
}
.place {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  margin: 3px 0;
  padding: 12px;
  border-radius: 12px;
  gap: 11px;
  font-size: 13px;
}
.place .place-icon {
  height: 29px;
  width: 29px;
  background: #eee6f3;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 16px;
}
.place .lock {
  margin-left: auto;
  font-size: 10px;
  color: #827788;
}
.place.active {
  background: #eae3f2;
  font-weight: 700;
}
.pocket {
  border-top: 1px solid var(--line);
  padding: 18px 12px 0;
  margin-top: auto;
  font-size: 13px;
}
.pocket b {
  font-size: 20px;
  color: #957548;
}
.pocket small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.scene-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1px 19px;
}
.scene-title h2 {
  font-size: 27px;
  margin: 5px 0 0;
  letter-spacing: -0.5px;
}
.scene-tag {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #978493;
  border: 1px solid #e2d7e4;
  border-radius: 30px;
  padding: 9px 13px;
}
.stage {
  position: relative;
  border-radius: 23px;
  overflow: hidden;
  background: #eae0f5;
  border: 1px solid #e1d7e7;
  isolation: isolate;
}
canvas {
  width: 100%;
  display: block;
  touch-action: none;
}
.stage-note {
  position: absolute;
  top: 19px;
  left: 21px;
  background: #fff9;
  padding: 8px 13px;
  border-radius: 20px;
  font-size: 11px;
  color: #7c6b89;
  pointer-events: none;
}
.scene-bottom {
  position: absolute;
  bottom: 18px;
  left: 21px;
  right: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.scene-bottom > span {
  font-size: 12px;
  padding: 9px 14px;
  background: #fffc;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.scene-bottom button {
  background: #fffefa;
  font-size: 12px;
  box-shadow: 0 3px 0 #b8a7c244;
  border: 1px solid #ffffff;
  min-height: 42px;
}
kbd {
  font: 10px Lane;
  background: #efe7f2;
  border-radius: 4px;
  padding: 3px 5px;
  margin-left: 8px;
}
.under-stage {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #8c8292;
  margin: 13px 3px 23px;
}
.desktop-tip {
  font-size: 10px;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick-actions button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 17px 15px;
  background: #fffdf9;
  border-color: #e9e0e8;
}
.quick-actions button > span {
  font-size: 26px;
  color: #a780ac;
  width: 28px;
}
.quick-actions b {
  font-size: 13px;
}
.quick-actions small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #938498;
}
.quick-actions i {
  margin-left: auto;
  font-style: normal;
  color: #a894b0;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 19px 0 25px;
  color: #a295a7;
  font-size: 10px;
}
footer span {
  font-size: 9px;
  letter-spacing: 1.5px;
}
.toast {
  position: absolute;
  top: 63px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #393449ed;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  text-align: center;
  max-width: 90%;
  opacity: 0;
  transition: 0.25s;
  pointer-events: none;
  z-index: 5;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.touch-controls {
  display: none;
}
dialog {
  border: 1px solid #e6daec;
  border-radius: 24px;
  width: min(610px, calc(100% - 24px));
  max-height: 90dvh;
  padding: 25px 30px 30px;
  background: #fffcf8;
  color: var(--ink);
  box-shadow: 0 24px 100px #4b35693b;
}
dialog::backdrop {
  background: #33274677;
  backdrop-filter: blur(5px);
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-top button {
  border: 0;
  background: #eee5ef;
  padding: 3px 11px;
  font-size: 24px;
}
dialog h2 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 14px 0;
}
dialog p {
  font-size: 15px;
  line-height: 1.6;
  color: #807087;
}
.primary {
  background: #8061a8;
  color: white;
  border-color: #8061a8;
  font-weight: 700;
}
.primary:hover:not(:disabled) {
  background: #6c5094;
  color: white;
}
.wide {
  width: 100%;
  margin-top: 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.help-grid div,
.info-card {
  background: #f2ebf4;
  border-radius: 13px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.help-grid strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.welcome-art {
  font-size: 62px;
  text-align: center;
  color: #ab84b7;
  letter-spacing: 20px;
  padding: 10px;
  background: linear-gradient(135deg, #f4d9dd, #e3d7f4, #d7ede4);
  border-radius: 16px;
}
.small {
  font-size: 12px !important;
}
.quest-card {
  padding: 14px 0;
  border-bottom: 1px solid #e8dfea;
  display: flex;
  gap: 13px;
}
.quest-card > span {
  background: #eee4f3;
  color: #9c7cac;
  border-radius: 12px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.quest-card b {
  font-size: 15px;
}
.quest-card p {
  font-size: 12px;
  margin: 4px 0;
}
.quest-card button {
  font-size: 11px;
  padding: 7px 12px;
  margin-top: 5px;
}
.reward {
  color: #927440;
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}
.tabs button {
  font-size: 12px;
  padding: 8px 12px;
}
.options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.option {
  font-size: 12px;
  min-height: 75px;
  padding: 11px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.option small {
  font-size: 10px;
  color: #8d7c95;
}
.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 -5px 0 #0001;
}
.avatar-preview {
  width: 140px !important;
  height: 145px;
  margin: 0 auto;
}
.swatches {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.swatches button {
  width: 36px;
  height: 36px;
  padding: 3px;
  border-radius: 50%;
}
.swatches .swatch {
  width: 26px;
  height: 26px;
}
.pad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.note-pad {
  height: 108px;
  font-size: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--pad);
  border: 3px solid transparent;
}
.note-pad small {
  font-size: 12px;
}
.note-pad.lit {
  background: #fff !important;
  border-color: #8061a8;
  box-shadow: 0 0 25px #bca1d8;
  transform: translateY(-5px);
}
.mini-status {
  padding: 13px 16px;
  border-radius: 12px;
  background: #f1e8f3;
  font-size: 14px;
  margin: 14px 0;
  min-height: 46px;
}
.mini-canvas {
  background: #e9e0f5;
  border-radius: 16px;
  max-height: 330px;
  object-fit: contain;
}
.meter-track {
  height: 8px;
  background: #e8ddeb;
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0;
}
.meter-track i {
  display: block;
  background: #a685b8;
  height: 100%;
  transition: width 0.3s;
}
.mini-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.mini-controls button {
  min-width: 85px;
  touch-action: none;
}
.danger {
  color: #a44a65;
}
.secret-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.secret-grid div {
  text-align: center;
  border-radius: 14px;
  padding: 15px;
  background: #f0e8f4;
  color: #907c9c;
}
.secret-grid span {
  display: block;
  font-size: 30px;
  margin-bottom: 5px;
}
.secret-grid small {
  font-size: 10px;
}
.theme {
  background: linear-gradient(120deg, #f2c7d8, #bba3d9);
  width: 40px;
  height: 30px;
  border-radius: 6px;
}
.modal-footnote {
  font-size: 11px;
  color: #95859d;
  text-align: center;
  margin: 14px 0 0;
}
.sparkle-badge {
  font-size: 54px;
  color: #b28ac0;
  text-align: center;
  padding: 12px;
}
.hidden {
  display: none !important;
}
@media (min-width: 1550px) {
  .shell {
    padding-top: 15px;
  }
  .header {
    height: 120px;
  }
  .game-layout {
    padding-top: 40px;
  }
}
@media (max-width: 1150px) {
  .shell {
    padding: 0 24px;
  }
  .game-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 22px;
  }
  .scene-tag,
  .desktop-tip {
    display: none;
  }
  .passport {
    padding: 20px 17px;
  }
  .passport h2 {
    font-size: 28px;
  }
  .quick-actions button {
    gap: 7px;
    padding: 13px 10px;
  }
  .quick-actions small {
    font-size: 9px;
  }
  .quick-actions i {
    display: none;
  }
  .stage-note {
    font-size: 10px;
    top: 12px;
    left: 12px;
  }
  .scene-bottom {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .scene-bottom > span {
    font-size: 10px;
  }
}
@media (max-width: 760px) {
  .shell {
    padding: 0 14px;
  }
  .header {
    height: 86px;
    gap: 8px;
  }
  .back {
    font-size: 19px;
  }
  .back span,
  .brand-star {
    display: none;
  }
  .brand h1 {
    font-size: 23px;
  }
  .brand p {
    font-size: 7px;
    letter-spacing: 2px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions button {
    padding: 8px;
    font-size: 10px;
  }
  .game-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 17px;
  }
  .sidebar {
    display: contents;
  }
  .passport {
    order: 3;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px;
  }
  .passport > .eyebrow,
  .passport h2,
  .passport:after {
    display: none;
  }
  .passport p {
    font-size: 12px;
    min-height: 0;
    margin: 0;
    max-width: 230px;
  }
  .stamps {
    margin: 0;
    gap: 4px;
    align-self: center;
  }
  .stamp {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
  .passport .text-button {
    grid-column: 1/-1;
    margin-top: 6px;
  }
  .destinations {
    order: 0;
    padding: 0;
  }
  .destinations > .eyebrow {
    display: none;
  }
  #places {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    margin: 0;
    padding: 2px;
  }
  .place {
    flex: 1;
    min-width: 67px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 9px;
    white-space: nowrap;
    padding: 9px 5px;
    margin: 0;
  }
  .place .lock {
    margin: 0;
    font-size: 9px;
  }
  .place .place-icon {
    height: 25px;
    width: 25px;
  }
  .pocket {
    order: 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    margin: 0;
  }
  .pocket small {
    margin: 0;
  }
  .play-section {
    order: 1;
    min-width: 0;
  }
  .scene-title {
    padding: 0 2px 13px;
  }
  .scene-title h2 {
    font-size: 24px;
  }
  .scene-title .eyebrow {
    font-size: 8px;
  }
  .stage {
    border-radius: 17px;
  }
  #world {
    height: 410px;
    width: 100%;
    object-fit: cover;
  }
  .stage-note {
    font-size: 9px;
    max-width: 90%;
    padding: 7px 10px;
  }
  .scene-bottom {
    bottom: 86px;
    left: 10px;
    right: 10px;
  }
  .scene-bottom > span {
    max-width: 65%;
    padding: 8px 10px;
    font-size: 10px;
  }
  .scene-bottom button {
    padding: 8px 10px;
    font-size: 11px;
    min-width: 78px;
  }
  kbd {
    display: none;
  }
  .under-stage {
    margin: 10px 0 13px;
    font-size: 10px;
  }
  .quick-actions {
    gap: 6px;
  }
  .quick-actions button {
    padding: 10px 7px;
    gap: 5px;
  }
  .quick-actions button > span {
    font-size: 22px;
    width: 24px;
  }
  .quick-actions b {
    font-size: 11px;
  }
  .quick-actions small {
    font-size: 8px;
  }
  .touch-controls {
    display: flex;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 11px;
    justify-content: space-between;
    align-items: end;
    pointer-events: none;
  }
  .touch-controls button {
    pointer-events: auto;
    touch-action: none;
    background: #fffd;
    padding: 0;
    width: 40px;
    height: 38px;
    font-size: 19px;
    border: 1px solid #d8c7e5;
  }
  .dpad {
    display: grid;
    grid-template-columns: repeat(3, 40px);
    grid-template-rows: 30px 38px;
    gap: 2px;
  }
  .dpad button[data-dir="up"] {
    grid-column: 2;
    height: 30px;
  }
  .dpad button[data-dir="left"] {
    grid-column: 1;
  }
  .dpad button[data-dir="down"] {
    grid-column: 2;
  }
  .dpad button[data-dir="right"] {
    grid-column: 3;
  }
  #glide {
    width: 49px;
    height: 49px;
    border-radius: 50%;
    font-size: 27px;
    color: #9d71b5;
  }
  footer {
    font-size: 9px;
    padding: 14px 0;
  }
  footer span {
    display: none;
  }
  dialog {
    padding: 20px;
  }
  dialog h2 {
    font-size: 27px;
  }
  .options {
    gap: 6px;
  }
  .option {
    font-size: 11px;
  }
  .note-pad {
    height: 95px;
  }
  .pad-grid {
    gap: 6px;
  }
  .toast {
    top: 47px;
    font-size: 12px;
    width: max-content;
  }
  .mini-canvas {
    max-height: 280px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
