:root {
  color-scheme:dark;
  font-family:"Trebuchet MS",Arial,sans-serif;
  color:#fff4e6;
  background:#302b45;
  --ink:#312943;
  --gold:#e5c483;
  --pale:#fff2d8;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,a {
  font:inherit;
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
  min-height:44px;
  color:inherit;
  border:1px solid #b9a2af75;
  background:#433a52;
  padding:.55rem 1.2rem;
  border-radius:4px;
}
button:hover,a:hover {
  filter:brightness(1.12);
}
:focus-visible {
  outline:3px solid #f6d58c;
  outline-offset:3px;
}
[hidden] {
  display:none!important;
}
#app {
  position:relative;
  height:100vh;
  height:100dvh;
  min-height:300px;
  overflow:hidden;
  isolation:isolate;
  background:#bdaeb5;
}
#game {
  width:100%;
  height:100%;
  display:block;
  touch-action:none;
}
header {
  height:50px;
  position:absolute;
  inset:0 0 auto;
  background:#302b43f5;
  border-bottom:1px solid #c3a57188;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  padding:0 max(15px,env(safe-area-inset-right)) 0 max(15px,env(safe-area-inset-left));
  z-index:4;
}
.home {
  color:#eee2dc;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:.4rem;
  min-height:44px;
  font-size:1.55rem;
}
.home span,#sound {
  font-size:.78rem;
}
.wordmark {
  font-family:Georgia,serif;
  font-style:italic;
  letter-spacing:.045em;
  color:var(--pale);
  font-size:1.05rem;
}
#sound {
  padding:.25rem .55rem;
  background:none;
  border:0;
  color:#efe1dc;
}
.cover {
  position:absolute;
  inset:50px 0 0;
  display:flex;
  align-items:center;
  padding:4vw 6vw;
  background:linear-gradient(90deg,#30283ef2 0%,#382c43e6 17%,#42354aa3 35%,transparent 67%);
  pointer-events:none;
}
.cover-inner {
  pointer-events:auto;
  width:min(370px,42vw);
  padding:1rem 0 2rem;
}
.ornament {
  display:flex;
  gap:.7rem;
  align-items:center;
  color:var(--gold);
  font-size:1.28rem;
}
.ornament i {
  height:1px;
  width:42px;
  background:linear-gradient(90deg,#b29a72,#e5c483);
}
h1,h2 {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
}
h1 {
  font-size:clamp(3.8rem,6.7vw,7.4rem);
  line-height:.88;
  letter-spacing:-.072em;
  margin:1.25rem 0 1.4rem;
  text-shadow:0 2px 15px #30243d40;
}
h1 em {
  color:#f5c8cd;
  font-weight:400;
}
.cover p,#copy {
  line-height:1.55;
  font-size:.96rem;
}
.cover p {
  max-width:310px;
  color:#f4e6db;
}
.primary {
  background:#f9dba2;
  color:#362c40;
  border-color:#fff0c3;
  font-weight:700;
  box-shadow:0 3px 0 #9a785a;
}
.primary span {
  padding-left:.8rem;
}
.cover .primary {
  margin:.5rem 0 1rem;
  min-height:49px;
}
.cover small {
  display:block;
  font-size:.74rem;
  color:#e8d6d1;
}
.touch-hint {
  display:none!important;
}
#hud {
  position:absolute;
  inset:62px 14px auto;
  display:flex;
  align-items:flex-start;
  gap:10px;
  pointer-events:none;
}
.status,.location,#pause,#bossHud {
  background:#332d45ed;
  border:1px solid #d8bd93aa;
  border-radius:5px;
  box-shadow:0 3px 13px #302a3d29;
}
.status {
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:8px 11px;
}
.hero-seal {
  width:35px;
  height:35px;
  border:1px solid #d9bd88;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:1.8rem;
  color:#ffdbab;
  background:#6d5066;
}
.vitals {
  width:135px;
}
.line {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  font-size:.68rem;
}
.line b {
  font:italic 1rem Georgia,serif;
}
.line.small {
  margin-top:4px;
  font-size:.59rem;
  color:#e3d5d4;
}
.bar {
  height:5px;
  margin-top:3px;
  background:#625163;
  border-radius:3px;
  overflow:hidden;
}
.bar i {
  display:block;
  height:100%;
  background:#eaa3ad;
}
.bar.xp {
  height:3px;
}
.xp i {
  background:#93e3d5;
}
.location {
  margin-left:auto;
  text-align:right;
  padding:6px 12px;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.location span {
  font-size:.67rem;
  color:#f0d7b1;
}
.location b {
  font:1.1rem Georgia,serif;
  font-variant-numeric:tabular-nums;
}
#pause {
  pointer-events:auto;
  min-width:45px;
  font-weight:bold;
  padding:.45rem;
}
#bossHud {
  position:absolute;
  top:76px;
  left:50%;
  transform:translateX(-50%);
  width:min(285px,65vw);
  padding:5px 12px;
  text-align:center;
  font:italic .92rem Georgia,serif;
}
#bossHud .bar {
  height:4px;
}
#bossHud i {
  background:#c998d6;
}
#stageNotice {
  position:absolute;
  pointer-events:none;
  top:28%;
  width:100%;
  text-align:center;
  font:italic clamp(1.4rem,3vw,2.75rem) Georgia,serif;
  color:#fff2df;
  text-shadow:0 2px 8px #30243d,0 1px 2px #3b2a41;
}
#stick {
  display:none;
  position:absolute;
  left:max(20px,env(safe-area-inset-left));
  bottom:max(22px,env(safe-area-inset-bottom));
  border:2px solid #fff0d0c4;
  border-radius:50%;
  width:108px;
  height:108px;
  align-items:center;
  justify-content:center;
  background:#3d334b69;
  box-shadow:inset 0 0 0 7px #fff6e318;
  touch-action:none;
  user-select:none;
  z-index:2;
}
#stick div {
  pointer-events:none;
  border:1px solid #fff1cfe0;
  border-radius:50%;
  width:43px;
  height:43px;
  background:#f9dabaaf;
  box-shadow:0 2px 6px #33223955;
}
.veil {
  position:absolute;
  inset:50px 0 0;
  background:#2922379c;
  display:grid;
  place-items:center;
  padding:16px;
  z-index:3;
  overflow-y:auto;
}
.panel {
  margin:auto;
  text-align:center;
  width:min(548px,100%);
  padding:clamp(16px,3vw,32px);
  background:#353045fa;
  border:1px solid #c6a77f;
  border-radius:8px;
  box-shadow:inset 0 0 0 4px #393147,inset 0 0 0 5px #a98c713d,0 20px 60px #281c3640;
}
.panel .ornament {
  justify-content:center;
}
.eyebrow {
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.67rem;
  color:#e7c790;
  margin:10px 0 0;
}
h2 {
  font-size:clamp(1.8rem,4vw,3rem);
  line-height:1.05;
  margin:8px 0;
  color:#ffefdb;
}
#copy {
  color:#e7d9d9;
  margin:0 auto 12px;
}
.actions {
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.actions:empty,#choices:empty {
  display:none;
}
#choices {
  display:grid;
  gap:7px;
}
.choice {
  width:100%;
  display:grid;
  grid-template-columns:34px 1fr auto;
  align-items:center;
  text-align:left;
  gap:8px;
  background:#44384f;
  padding:8px 12px;
}
.choice span:first-child {
  font:1.35rem Georgia,serif;
  color:#f2d39c;
}
.choice strong {
  font:1.15rem Georgia,serif;
  display:block;
  color:#fff0db;
}
.choice small {
  display:block;
  font-size:.74rem;
  color:#dfced4;
  margin-top:3px;
}
.choice kbd {
  color:#dabb92;
}
@media (pointer:coarse),(max-width:800px) {
  #app[data-mode=play] #stick {
    display:flex;
  }
  .keys {
    display:none!important;
  }
  .cover .touch-hint {
    display:block!important;
  }
}
@media(max-width:600px) and (orientation:portrait) {
  .cover {
    padding:0 24px max(22px,env(safe-area-inset-bottom));
    align-items:flex-end;
    background:linear-gradient(0deg,#30283ffb,#352a42e8 27%,#382e4399 46%,transparent 67%);
  }
  .cover-inner {
    width:100%;
    padding:0;
  }
  .cover .ornament {
    display:none;
  }
  h1 {
    font-size:clamp(3rem,14vw,4.1rem);
    line-height:.88;
    margin:0 0 .4rem;
  }
  h1 br {
    display:none;
  }
  h1 em {
    display:block;
  }
  .cover p {
    margin:.5rem 0;
    font-size:.86rem;
    max-width:330px;
  }
  .cover .primary {
    margin:.25rem 0 .65rem;
  }
  .vitals {
    width:95px;
  }
  .hero-seal {
    display:none;
  }
  #hud {
    inset:59px 7px auto;
    gap:5px;
  }
  .location {
    padding:6px;
  }
  .location span {
    font-size:.6rem;
  }
  .status {
    padding:6px 8px;
  }
  #stageNotice {
    top:24%;
  }
  .panel {
    padding:18px 12px;
  }
  .veil {
    padding:10px;
  }
}
@media(max-height:500px) {
  header {
    height:44px;
  }
  .cover,.veil {
    top:44px;
  }
  .cover-inner {
    width:43%;
    padding:0;
  }
  .cover .ornament {
    display:none;
  }
  h1 {
    font-size:clamp(2.5rem,7vw,4.2rem);
    margin:.2rem 0 .5rem;
  }
  .cover p {
    font-size:.8rem;
    margin:.5rem 0;
  }
  .cover .primary {
    margin:.1rem 0 .5rem;
    min-height:44px;
  }
  .cover small {
    font-size:.67rem;
  }
  #hud {
    top:50px;
  }
  #stick {
    width:86px;
    height:86px;
    bottom:10px;
  }
  .panel {
    padding:10px 16px;
  }
  .panel .ornament {
    display:none;
  }
  .veil {
    padding:6px;
  }
  .eyebrow {
    margin:0;
  }
  h2 {
    font-size:1.7rem;
    margin:4px;
  }
  #copy {
    margin:4px auto 8px;
    font-size:.82rem;
  }
  .choice {
    padding:4px 10px;
  }
  .choice strong {
    font-size:1rem;
  }
  .choice small {
    margin-top:1px;
  }
  .location {
    padding:4px 9px;
  }
}
.line {
  gap:6px;
  white-space:nowrap;
}
@media(max-width:600px) and (orientation:portrait) {
  .vitals {
    width:104px;
  }
  .line b {
    font-size:.9rem;
  }
  .line {
    font-size:.63rem;
  }
}
