:root {
  font-family: 'Nunito',sans-serif;
  color: #5a3d2a;
  background: #d9b990;
  color-scheme: light;
  --paper: #f8e8c9;
  --ink: #593b2a;
  --gold: #e6bc72;
  --wood: #473225;
  --display: 'Roboto Slab',Georgia,serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none!important;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  height: 100dvh;
  background: radial-gradient(ellipse at 50%
    20%,#f4e4c8c9,#d9b68c66),url('./western.svg') center/cover fixed;
  user-select: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
}
button {
  border: 1px solid #a77c50;
  border-radius: 7px;
  padding: 10px 17px;
  background: linear-gradient(#f8e3bc,#ddbb88);
  box-shadow: 0 3px 0 #9e7148,inset 0 1px #fff8;
  transition: transform .15s,filter .15s;
}
button:hover {
  filter: brightness(1.07);
}
button:active {
  transform: translateY(2px);
}
button:disabled {
  cursor: default;
  opacity: .45;
  filter: grayscale(.35);
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #c78b38;
  outline-offset: 4px;
}
button:focus:not(:focus-visible) {
  outline: none;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
}
.eyebrow {
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  color: #ab8058;
  margin-bottom: 10px;
}
.primary {
  border: 1px solid #d6a354;
  border-bottom-color: #916038;
  background: linear-gradient(#edcb8e,#d6a665);
  box-shadow: 0 4px 0 #8b5b36,inset 0 1px #ffe9b7;
  color: #543421;
  font-family: var(--display);
  font-weight: 800;
  padding: 13px 24px;
}
.quiet {
  background: transparent;
  box-shadow: none;
  border-color: #a67a4d50;
  font-weight: 700;
}
.wide {
  width: 100%;
  margin-top: 12px;
}
main {
  --header-height: 68px;
  height: 100dvh;
  display: grid;
  grid-template-rows: var(--header-height) minmax(0,1fr);
  padding: 0 clamp(15px,2.8vw,44px);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1440px;
  margin: auto;
  height: 100%;
  border-bottom: 1px solid #a67b4c30;
}
.wordmark {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  font: 900 23px var(--display);
  letter-spacing: -1.2px;
}
.wordmark span {
  font-size: 16px;
  color: #ab7340;
  margin-left: 9px;
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.header-actions button {
  padding: 8px 13px;
  font-size: 14px;
  background: #fae7c280;
  border-color: #b38b5b80;
  box-shadow: 0 2px #9e714840;
}
.header-actions .icon-button {
  font-size: 18px;
  line-height: 1;
  padding: 10px;
}
.deck-button b {
  display: inline-grid;
  place-items: center;
  background: #b78a5440;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  margin-left: 7px;
  font-size: 14px;
}
.run-badge {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  color: #a17d57;
}
.home main {
  padding: 0;
  grid-template-rows: 1fr;
}
.home .topbar {
  display: none;
}
.home {
  background: #e5ceb1;
}
#home-screen {
  position: relative;
  width: 100%;
  height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.menu-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.menu-landscape {
  position: absolute;
  inset: -3%;
  background: linear-gradient(90deg,#eedece25,transparent
    65%),url('./assets/saloon-menu.jpg') center/cover;
  transform: translate3d(calc(var(--scene-x,0)*-7px),calc(var(--scene-y,0)*-4px),0)
    scale(1.03);
}
.home-copy {
  position: relative;
  width: 550px;
  margin-left: clamp(45px,10vw,180px);
  padding: 30px 0;
}
.game-title {
  position: relative;
  width: fit-content;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px,8.5vw,140px);
  line-height: .91;
  letter-spacing: -5px;
  text-transform: none;
  color: #67442e;
  text-shadow: 0 3px 0 #ffedc4,0 7px 0 #b6896240;
  margin: 24px 0;
}
.game-title span {
  font-size: 1.2em;
  color: #a4653b;
}
.game-title i {
  font-style: normal;
  font-size: 24px;
  position: absolute;
  right: 5px;
  bottom: -4px;
  color: #b47f48;
}
.home-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 260px;
  gap: 7px;
}
.home-actions .primary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-size: 16px;
}
.home-actions .quiet {
  border: 0;
  text-align: left;
  padding: 9px 3px;
  color: #876449;
  font-size: 14px;
}
.home-record {
  font-size: 14px;
  letter-spacing: 0;
  color: #9f7a54;
  margin: 30px 0 0;
}
.scene-card {
  position: absolute;
  right: 26%;
  bottom: 3%;
  width: 105px;
  height: 147px;
  border: 6px solid #f2d7a3;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg,#975f4b 0 4px,#a66b53 4px 8px);
  box-shadow: 0 12px 20px #63412835;
  color: #f0d09b;
  font-size: 50px;
  transform: translate3d(calc(var(--scene-x,0)*14px),calc(var(--scene-y,0)*8px),0)
    rotate(-22deg);
}
.back-two {
  right: 21%;
  bottom: 6%;
  transform: translate3d(calc(var(--scene-x,0)*20px),calc(var(--scene-y,0)*12px),0)
    rotate(14deg);
}
.scene-chip {
  position: absolute;
  right: 17%;
  bottom: 3%;
  font-size: 75px;
  color: #c99459;
  text-shadow: 0 5px #98643c;
}
@keyframes dust-drift {
  to {
    background-position: 135px -95px;
  }
}
#play-screen {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(160px,220px) minmax(0,590px)
    minmax(160px,220px);
  gap: clamp(15px,3vw,45px);
  justify-content: center;
  align-items: center;
}
.table {
  width: min(590px,calc(100dvh - 225px),100%);
  justify-self: center;
}
.table-caption span {
  opacity: .8;
}
#stats {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
}
.stat {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #a38462;
}
.stat b {
  display: block;
  font-size: 31px;
  font-family: var(--display);
  font-weight: 900;
  color: #66472d;
  letter-spacing: -.7px;
  line-height: 1.4;
}
.stat.score b {
  font-size: 36px;
  color: #9b6038;
}
.stat small {
  font: 700 14px 'Nunito',sans-serif;
  color: #ad8b68;
  margin-left: 3px;
}
progress {
  appearance: none;
  display: block;
  width: calc(100% - 22px);
  height: 7px;
  margin: 12px 11px 21px;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #bfa078;
}
progress::-webkit-progress-bar {
  background: #c7a57e;
}
progress::-webkit-progress-value {
  background: linear-gradient(90deg,#b17b50,#f0c77c);
  border-radius: 9px;
  transition: width .22s;
}
.board-shell {
  position: relative;
  isolation: isolate;
}
#board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  padding: 12px;
  border: 8px solid #b18464;
  border-radius: 18px;
  background: #dab993;
  box-shadow: 0 7px 0 #8b634c, 0 10px 0 #bd9974, 0 22px 50px #79533430, inset 0
    0 18px #8d5f4630;
}
.tile {
  aspect-ratio: 1;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #bb987858;
  box-shadow: inset 0 2px 4px #865e431f;
  touch-action: manipulation;
}
.tile:disabled {
  opacity: 1;
}
.tile:hover {
  background: #ffefc94d;
  filter: none;
}
.gem {
  position: absolute;
  inset: 6%;
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: drop-shadow(0 4px 0 #805c4833);
  transition: transform 100ms;
}
.gem svg {
  width: 90%;
  height: 90%;
  fill: var(--color);
  stroke: var(--dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.gem .shine {
  fill: none;
  stroke: #fff9;
  stroke-width: 5;
}
.gem .detail {
  fill: none;
  stroke-width: 3;
}
.tile[data-color='0'] {
  --color: #94b389;
  --dark: #62856c;
}
.tile[data-color='1'] {
  --color: #8dbfce;
  --dark: #588b9b;
}
.tile[data-color='2'] {
  --color: #edc370;
  --dark: #b78b4e;
}
.tile[data-color='3'] {
  --color: #b6a2bc;
  --dark: #89738e;
}
.tile[data-color='4'] {
  --color: #d99477;
  --dark: #a76b51;
}
.tile:not(:disabled):hover .gem {
  transform: translateY(-3px) scale(1.07);
}
.tile.selected {
  outline: 3px solid #fff1ad;
  outline-offset: -2px;
  z-index: 1;
}
.tile.selected .gem {
  transform: translateY(-3px) rotate(-7deg);
  filter: brightness(1.12);
}
.tile.special .gem {
  inset: 3%;
  background: radial-gradient(ellipse, #fff0bf80, transparent 72%);
  box-shadow: none;
  filter: drop-shadow(0 2px 2px #73513745);
}
.tile[data-special='column'] .gem img {
  rotate: 90deg;
}
.tile.clearing .gem {
  animation: pop 180ms ease-in forwards;
}
@keyframes pop {
  35% {
    transform: scale(1.18);
    filter: brightness(1.7);
  }
  100% {
    transform: scale(.1);
    opacity: 0;
  }
}
.tile.hint {
  outline: 3px solid #fff0a5;
  outline-offset: -2px;
  z-index: 1;
}
.tile.hint .gem {
  animation: hint-nudge 1.5s ease-in-out infinite;
}
@keyframes hint-nudge {
  0%,
  65%,
  100% {
    transform: none;
  }
  15%,
  45% {
    transform: translateX(3px) rotate(5deg);
  }
  30% {
    transform: translateX(-3px) rotate(-5deg);
  }
}
#effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.spark {
  position: absolute;
  width: clamp(11px, 1.9dvh, 18px);
  height: clamp(9px, 1.6dvh, 15px);
  border-radius: 2px;
  background: var(--spark);
  box-shadow: 0 0 5px var(--spark);
}
.floating-score {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #fff2c9;
  font-size: 30px;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 3px 0 #855a43, 0 0 8px #b1794e;
}
.blast {
  position: absolute;
  border: 4px solid #fff3b8;
  border-radius: 50%;
  box-shadow: 0 0 24px #ffcd88;
}
.blast-halo {
  position: absolute;
  border: 12px solid #c99b6760;
  border-radius: 50%;
  filter: blur(3px);
}
.blast-flash {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5cd 0%, #f1ba65b3 23%, #cf744a55 45%, transparent 70%);
}
.blast-dust {
  position: absolute;
  width: 25px;
  height: 20px;
  border-radius: 45% 60% 55% 40%;
  background: radial-gradient(ellipse, #c5a17cbb, #dabd9355 55%, transparent 75%);
}
.blast-ember {
  position: absolute;
  width: 7px;
  height: 4px;
  border-radius: 2px;
  background: #ffe3a0;
  box-shadow: 0 0 7px #df8c45;
}
.rocket-trail {
  position: absolute;
  background: linear-gradient(90deg, transparent, #eeb76880 18%, #fff0bab3 50%, #eeb76880 82%, transparent);
  border-radius: 50%;
  filter: blur(2px);
}
.rocket-trail.vertical {
  background: linear-gradient(0deg, transparent, #eeb76880 18%, #fff0bab3 50%, #eeb76880 82%, transparent);
}
.rocket-streak {
  position: absolute;
  width: 52px;
  height: 12px;
  background: #fff7c8;
  box-shadow: 0 0 12px 4px #efb86d;
  border-radius: 20px;
}
.rocket-streak.vertical {
  width: 12px;
  height: 52px;
}
#message {
  margin: 18px 0 0;
  min-height: 20px;
  text-align: center;
  color: #946d4e;
  font-size: 14px;
}
.play-sidebar {
  min-height: 0;
  height: min(660px, calc(100dvh - 135px));
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  border: 1px solid #b99a7270;
  border-radius: 10px;
  background: #f7e9d1;
  box-shadow: 0 5px 0 #9e795328, 0 10px 30px #9a744323;
  align-self: center;
}
.play-sidebar h2 {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 14px;
  font: 800 19px 'Nunito', sans-serif;
}
.play-sidebar h2 > span {
  font: 600 14px 'Nunito', sans-serif;
  color: #a18463;
  letter-spacing: 0;
}
.sidebar-content {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #baa17d transparent;
  padding: 0 3px 12px;
}
.sidebar-empty {
  font-size: 14px;
  line-height: 1.7;
  color: #aa8d6c;
  padding: 10px 3px;
}
.quest-card {
  padding: 13px 10px;
  background: #fff2d3;
  border: 1px solid #c9b089;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: 0 3px #c8aa7b33;
}
.quest-card h3 {
  font: 800 16px 'Nunito', sans-serif;
  margin: 0 0 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.quest-card h3 > span {
  color: #ad884c;
}
.quest-task {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  font-size: 14px;
  color: #8d7052;
}
.quest-task b {
  white-space: nowrap;
  color: #684e34;
}
.quest-card progress {
  width: 100%;
  margin: 7px 0;
  height: 5px;
}
.quest-card p {
  margin: 0;
  color: #a07b4d;
  font-size: 14px;
  line-height: 1.5;
}
.quest-card.complete {
  background: #e7ebd2;
  border-color: #a6b18c;
}
.quest-card.complete h3 > span {
  color: #6a8457;
}
.score-entry {
  border-bottom: 1px solid #c3aa8550;
  padding: 10px 0;
  font-size: 14px;
}
.score-entry summary {
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: baseline;
  list-style: none;
}
.score-entry summary::-webkit-details-marker {
  display: none;
}
.score-entry summary > span {
  color: #907355;
  font-size: 14px;
}
.score-entry summary > b {
  font-size: 16px;
  color: #976137;
  white-space: nowrap;
}
.score-equation {
  text-align: center;
  margin: 9px 0;
  padding: 7px 3px;
  border: 1px solid #c4a57850;
  border-radius: 5px;
  color: #966538;
  font-size: 14px;
  font-weight: 800;
  background: #fff5dc;
}
.score-lines > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  font-size: 14px;
  color: #a08361;
}
.score-lines b {
  font-size: 14px;
  font-weight: 600;
  color: #765c40;
  white-space: nowrap;
}
.quest-event summary > b {
  color: #7e945c;
}
.quest-event .score-lines > div {
  color: #7d875c;
  line-height: 1.6;
}
#board {
  background: radial-gradient(ellipse at 50% 20%,#f3d4a5,#c39c70);
  border-color: #ac7953;
  box-shadow: inset 0 0 0 1px #f5ddad,0 5px 0 #6f4933,0 9px 0 #b0875b,0 23px
    38px #75462b35;
  padding: 13px;
  gap: 5px;
  border-radius: 15px;
}
.board-corner {
  position: absolute;
  top: -9px;
  color: #785132;
  z-index: 2;
  font-size: 16px;
  text-shadow: 0 1px #f2d5aa;
}
.top-left {
  left: -3px;
}
.top-right {
  right: -3px;
}
.tile {
  background: #9d754a28;
  box-shadow: inset 0 2px 3px #77512e20;
  border-radius: 8px;
}
.gem {
  filter: drop-shadow(0 3px 0 #724a3830) drop-shadow(0 2px 2px #6c4a2820);
}
.gem svg {
  stroke-width: 1.5;
}
.play-sidebar {
  border: 0;
  background: linear-gradient(#faedcf,#edd4af);
  border-radius: 4px;
  box-shadow: 0 1px #fffa,inset 0 0 0 1px #b28c5940,0 8px 24px #81552b12;
  padding: 19px 15px;
  height: min(630px,calc(100dvh - 155px));
}
.play-sidebar h2 {
  font: 800 14px var(--display);
  border-bottom: 1px solid #b68b5730;
  padding-bottom: 14px;
  margin-bottom: 5px;
}
.sidebar-empty {
  font-size: 14px;
  line-height: 1.8;
}
.quest-card h3 {
  font-family: var(--display);
}
.score-entry summary > b {
  font-family: var(--display);
}
#round-end {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f8e6c2c9;
  backdrop-filter: blur(6px);
  animation: reveal .25s ease-out;
}
#round-end > span {
  font-size: 80px;
  color: #bc884b;
  animation: star-arrive .7s ease-out;
}
#round-end h2 {
  font-size: clamp(32px,5vw,62px);
  margin: 0 0 10px;
}
#round-end-score {
  font: 800 20px var(--display);
  color: #a87d4e;
}
#round-end .eyebrow {
  margin: 12px 0;
}
@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}
@keyframes star-arrive {
  from {
    rotate: -35deg;
    scale: .3;
    opacity: 0;
  }
  to {
    rotate: 0deg;
    scale: 1;
    opacity: 1;
  }
}
body.shopping {
  color: #efdec1;
  background: radial-gradient(ellipse at 50% 0,#7c5a40,transparent
    65%),repeating-linear-gradient(0deg,#3a2a20 0 110px,#34251d 111px 113px);
}
.shopping .topbar {
  border-color: #b08a5235;
}
.shopping .wordmark {
  color: #e8cca3;
}
.shopping .run-badge {
  color: #b0936e;
}
.shopping .header-actions button {
  color: #dbc29e;
  background: #65482f;
  border-color: #987346;
  box-shadow: 0 2px #2b1b14;
}
#rewards,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin: 0 0 3px;
}
.section-heading h3 {
  margin: 0;
  font: 800 14px 'Nunito',sans-serif;
  letter-spacing: 0;
  text-transform: none;
  color: #e0c49c;
}
.section-heading h3 > span {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 25px;
  border-radius: 50%;
  background: #d8ae6930;
  font-size: 14px;
  margin-left: 6px;
}
.section-heading .quiet {
  font-size: 14px;
  padding: 7px 12px;
  color: #d7b88a;
  border-color: #b28b5550;
}
.inspect-help {
  color: #a98b68;
  font-size: 14px;
}
.card-row {
  display: flex;
  gap: 24px;
  min-height: 0;
  align-items: center;
  justify-content: safe center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #9e794a #34271c;
  padding: 18px 16px 22px;
  flex: 1;
}
.hand .card + .card {
  margin-left: -28px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 188px;
  height: 274px;
  aspect-ratio: 188/274;
  padding: 0;
  border: 6px solid #ecd0a0;
  border-radius: 10px;
  background: linear-gradient(135deg,#fff1d1,#e9cea0);
  box-shadow: 0 2px 0 #b28a53,0 6px 0 #20160f,0 12px 18px #100b0840;
  color: #634225;
  text-align: center;
  isolation: isolate;
  touch-action: none;
  transition: box-shadow .12s, border-color .12s;
  animation: deal .4s cubic-bezier(.2,.8,.2,1) backwards;
  user-select: none;
}
.card::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid #a17b43;
  border-radius: 4px;
  pointer-events: none;
  z-index: 3;
}
.card:nth-child(2n) {
  animation-delay: 60ms;
}
.card:nth-child(2n+1) {}
.card:nth-child(3) {
  animation-delay: 120ms;
}
.card:nth-child(4) {
  animation-delay: 180ms;
}
.card:hover,
.card:focus-visible {
  z-index: 5;
  rotate: 0deg;

  filter: brightness(1.035);
  box-shadow: 0 2px #b28a53,0 9px #20160f,0 20px 28px #100b0860;
}
.card-number {
  position: absolute;
  top: 9px;
  left: 12px;
  font: 700 14px var(--display);
  color: #87633c;
  z-index: 2;
}
.card-art {
  flex: 1;
  min-height: 0;
  position: relative;
  margin: 8px 7px 0;
  background: radial-gradient(ellipse at 50% 25%,#fff6,transparent
    60%),var(--card-color);
  border: 1px solid #6b4a2d40;
  border-radius: 45% 45% 3px 3px;
  overflow: hidden;
}
.card-tag {
  display: block;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 10px;
  color: #aa7945;
}
.card h4 {
  flex: 0 0 auto;
  font: 800 15px/1.15 var(--display);
  margin: 6px 7px 0;
  min-height: 18px;
}
.card-footer {
  flex: 0 0 auto;
  margin: 9px 10px 10px;
  padding-top: 7px;
  border-top: 1px solid #b38b554d;
  font-size: 14px;
  font-weight: 900;
  color: #8e5c2a;
}
.card-detail {
  display: none;
}
#shop-screen .inventory .card h4 {
  font-size: 14px;
  min-height: 13px;
}
#shop-screen .inventory .card-tag {
  font-size: 14px;
  letter-spacing: 0;
  margin-top: 6px;
}
#shop-screen .inventory .card-footer {
  font-size: 14px;
  margin: 6px 7px 7px;
  padding-top: 4px;
}
.card.sold {
  filter: grayscale(.5);
  opacity: .55;
}
.card.sold .card-footer {
  color: #687a4a;
}
.card.unaffordable .card-footer {
  color: #a25b44;
}
.empty-collection {
  text-align: center;
  color: #a88a65;
  font-size: 14px;
  align-self: center;
  margin: auto;
  line-height: 1.8;
}
.shop-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  border-top: 1px solid #b38a4d35;
  padding-top: 13px;
}
.footer-actions {
  display: flex;
  gap: 10px;
}
#next-info {
  font-size: 14px;
  color: #bfa17b;
}
.sell-zone {
  background: #b0894c0c;
  border: 1px dashed #ad885369;
  color: #a98a63;
  font-size: 14px;
  box-shadow: none;
  padding: 11px 17px;
}
.drop-hover.sell-zone {
  color: #ffe2a3;
  background: #bd8c3d40;
  border-color: #efcb8c;
}
.drop-hover.hand,
.drop-hover.deck-grid {
  background: #ceaa6120;
  outline: 2px dashed #dab66d;
  outline-offset: -3px;
}
.drag-source {
  opacity: .3!important;
}
.card-ghost {
  position: fixed!important;
  z-index: 200;
  pointer-events: none;
  margin: 0!important;
  rotate: 0deg!important;
  animation: none!important;
  max-height: none!important;
  transition: none!important;
  box-shadow: 0 25px 40px #0008!important;
}
.card-dragging {
  cursor: grabbing!important;
}
.card-dragging .card-detail {
  display: none;
}
.card-dragging button {
  cursor: grabbing;
}
.card-dragging #card-tooltip {
  display: none!important;
}
@keyframes deal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
dialog {
  color: var(--ink);
  border: 0;
}
dialog::backdrop {
  background: #251b14a8;
  backdrop-filter: blur(7px);
}
.paper-dialog {
  position: fixed;
  max-height: calc(100dvh - 38px);
  max-width: calc(100vw - 38px);
  border: 1px solid #b28d56;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 0,#fff4d9,#eed5ac);
  box-shadow: 0 0 0 6px #80542f,0 0 0 7px #b4915e,0 28px 100px #0007;
  padding: 35px;
  overflow: auto;
  scrollbar-width: thin;
  animation: reveal .18s ease-out;
}
.paper-dialog h2 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.15;
  font-weight: 900;
  margin: 0 0 12px;
}
.dialog-close {
  position: absolute;
  right: 13px;
  top: 10px;
  background: none;
  box-shadow: none;
  border: 0;
  padding: 3px 8px;
  font-size: 26px;
  font-weight: 400;
  color: #a88054;
  line-height: 1;
}
.dialog-subtitle {
  font-size: 14px;
  line-height: 1.7;
  color: #a17c53;
  margin-bottom: 20px;
}
.menu-dialog {
  width: 380px;
  text-align: center;
  padding: 40px 32px 25px;
}
.menu-dialog .dialog-subtitle {
  margin-bottom: 15px;
}
.settings-list {
  margin: 24px 0 12px;
  border-top: 1px solid #b0885140;
  border-bottom: 1px solid #b0885140;
  padding: 10px 0;
}
.settings-list label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  text-align: left;
  font-size: 14px;
  padding: 9px 0;
  color: #8a6541;
}
.settings-list input[type=checkbox] {
  accent-color: #a2713f;
  width: 17px;
  height: 17px;
  cursor: pointer;
}
.settings-list input[type=range] {
  width: 120px;
  accent-color: #a2713f;
  cursor: pointer;
}
.menu-dialog .quiet {
  padding: 8px;
  border: 0;
  font-size: 14px;
  margin-top: 5px;
}
.save-note {
  font-size: 14px;
  color: #b08d64;
  margin: 20px 0 0;
}
.deck-dialog {
  width: min(1100px,94vw);
  height: min(740px,90dvh);
  display: none;
  flex-direction: column;
  padding: 30px 35px 22px;
}
.deck-dialog[open] {
  display: flex;
}
.deck-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 20px;
}
.deck-heading h2 {
  margin: 0;
}
.deck-heading > span {
  font-size: 14px;
  color: #a17b4c;
}
.deck-dialog .dialog-subtitle {
  margin: 15px 0;
  font-size: 14px;
}
.deck-grid {
  min-height: 0;
  flex: 1;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(155px,1fr));
  gap: 25px 20px;
  justify-items: center;
  align-content: start;
  padding: 15px 10px 20px;
  scrollbar-width: thin;
}
.deck-grid .card {
  width: 155px;
  height: 226px;
  border-width: 5px;
}
.deck-grid .card h4 {
  font-size: 14px;
}
.deck-grid .card-tag {
  font-size: 14px;
  letter-spacing: 0;
  margin-top: 7px;
}
.deck-grid .card-footer {
  font-size: 14px;
  margin: 7px 8px;
}
.deck-grid .empty-collection {
  grid-column: 1/-1;
  margin: 60px 0;
  color: #a17b4c;
}
.deck-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #b0874e40;
  padding-top: 16px;
  margin-top: 10px;
  font-size: 14px;
  color: #a17c53;
}
.inspect-dialog {
  width: 700px;
  overflow: visible;
  padding: 40px;
  display: none;
  grid-template-columns: 220px 1fr;
  gap: 35px;
  align-items: center;
}
.inspect-dialog[open] {
  display: grid;
}
.inspect-dialog .card {
  width: 220px;
  height: 322px;
  pointer-events: none;
  animation: none;
}
.inspect-dialog .card-art {
  min-height: 190px;
}
.inspect-copy h2 {
  font-size: 27px;
}
.inspect-copy > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.8;
  color: #956f49;
}
.inspect-copy #inspect-level {
  font-size: 14px;
  color: #b28b5d;
}
.inspect-copy .quiet {
  border: 0;
  font-size: 14px;
}
.inspect-copy .primary {
  font-size: 14px;
  padding: 12px;
}
.guide-dialog {
  width: 420px;
  text-align: center;
  padding: 35px;
}
.guide-dialog h2 {
  font-size: 28px;
}
.guide-dialog > p:not(.eyebrow) {
  font-size: 14px;
  color: #98734c;
  line-height: 1.8;
  min-height: 80px;
  margin-bottom: 15px;
}
.guide-dialog .quiet {
  font-size: 14px;
  border: 0;
}
#guide-art {
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 12px 0 24px;
}
#guide-art .guide-tile {
  width: 65px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 2px solid #b08855;
  border-radius: 9px;
  background: #f4d9a9;
  box-shadow: 0 4px #b28c5b;
  font-size: 36px;
  color: #9d6e3d;
}
#guide-art .guide-tile svg {
  width: 80%;
  height: 80%;
  fill: #b0bd8f;
  stroke: #73875d;
  stroke-width: 2;
}
.confirm-dialog {
  width: 390px;
  padding: 35px;
  text-align: center;
}
.confirm-dialog > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.8;
  color: #a07b52;
}
.confirm-dialog .quiet {
  border: 0;
  font-size: 14px;
}
#card-tooltip {
  position: fixed;
  z-index: 80;
  width: 240px;
  pointer-events: none;
  background: #fff0d5;
  border: 1px solid #a8804a;
  border-radius: 6px;
  box-shadow: 0 8px 28px #20140e50;
  padding: 17px;
  animation: reveal .12s ease-out;
  color: #785331;
}
#card-tooltip h3 {
  font-size: 15px;
  margin: 0 0 9px;
}
#card-tooltip p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}
#card-tooltip small {
  display: block;
  font-size: 14px;
  color: #a78458;
  margin-top: 10px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  z-index: 180;
  border: 1px solid #c3a06a;
  background: #443124ed;
  color: #f5dfb8;
  border-radius: 8px;
  box-shadow: 0 8px 28px #0003;
  padding: 13px 25px;
  font-size: 14px;
  pointer-events: none;
  animation: reveal .2s ease-out;
}
.paused #play-screen {
  filter: saturate(.8);
}
.paused #play-screen * {
  animation-play-state: paused!important;
}
#purchase-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}
.save-unavailable {
  color: #a76046!important;
}
noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  z-index: 1000;
  padding: 30px;
}
@media (max-width:1100px) {
  #play-screen {
    grid-template-columns: minmax(145px,185px) minmax(0,1fr)
      minmax(145px,185px);
    gap: 15px;
  }
  .play-sidebar {
    padding: 15px 10px;
  }
  .play-sidebar h2 {
    font-size: 14px;
    flex-wrap: wrap;
    gap: 5px;
  }
  .hand .card + .card {
    margin-left: -35px;
  }
  .inspect-help {
    font-size: 14px;
  }
  #next-info {
    font-size: 14px;
  }
  .home-copy {
    margin-left: 7vw;
  }
  .game-title {
    font-size: 10vw;
  }
}
@media (max-height:760px) {
  main {
    --header-height: 56px;
  }
  .table {
    width: min(540px,calc(100dvh - 205px),100%);
  }
  .stat b {
    font-size: 26px;
  }
  .stat.score b {
    font-size: 30px;
  }
  .card-tag {
    margin-top: 6px;
    font-size: 14px;
  }
  .card h4 {
    font-size: 14px;
    min-height: 14px;
    margin-top: 4px;
  }
  .card-footer {
    font-size: 14px;
    padding-top: 4px;
    margin: 6px 8px 8px;
  }
  .card-row {
    padding-top: 14px;
    padding-bottom: 17px;
  }
  .home-copy {
    padding: 10px 0;
  }
  .game-title {
    font-size: clamp(58px,8vw,105px);
    margin: 16px 0;
  }
  .home-actions {
    gap: 4px;
  }
  .home-actions .primary {
    font-size: 14px;
    padding: 11px 18px;
  }
  .home-actions .quiet {
    padding: 6px 3px;
  }
  .home-record {
    margin-top: 18px;
  }
  .paper-dialog {
    max-height: calc(100dvh - 28px);
  }
  .guide-dialog {
    padding: 27px;
  }
  .guide-dialog #guide-art {
    height: 80px;
    margin: 10px 0 16px;
  }
  .guide-dialog > p:not(.eyebrow) {
    min-height: 65px;
  }
  .menu-dialog {
    padding-top: 30px;
  }
  .menu-dialog .settings-list {
    margin: 15px 0 10px;
  }
  .settings-list label {
    padding: 6px 0;
  }
}
@media (max-width:760px) {
  main {
    padding: 0 12px;
  }
  .run-badge {
    display: none;
  }
  .wordmark {
    font-size: 19px;
  }
  .home-copy {
    margin-left: 8vw;
    width: 80vw;
  }
  .menu-landscape {
    background-position: 62% center;
  }
  .menu-landscape::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,#f3dec2e6,#eedece80 55%,transparent);
  }
  .game-title {
    font-size: clamp(62px,13vw,100px);
    letter-spacing: -3px;
  }
  .home-footer span:last-child {
    display: none;
  }
  .scene-card,
  .scene-chip {
    display: none;
  }
  #play-screen {
    grid-template-columns: 100px minmax(0,1fr) 100px;
    gap: 9px;
  }
  .play-sidebar {
    padding: 12px 7px;
  }
  .play-sidebar h2 {
    font-size: 14px;
  }
  .quest-card {
    padding: 8px 5px;
  }
  .quest-card h3 {
    font-size: 14px;
  }
  .quest-task {
    flex-wrap: wrap;
  }
  .score-lines > div {
    flex-wrap: wrap;
  }
  .score-equation {
    font-size: 14px;
  }
  .stat {
    font-size: 14px;
    letter-spacing: 0;
    padding: 0;
  }
  .stat b,
  .stat.score b {
    font-size: 20px;
  }
  .stat small {
    font-size: 14px;
  }
  #board {
    gap: 3px;
    padding: 7px;
    border-width: 5px;
  }
  .board-corner {
    display: none;
  }
  .shop-footer {
    gap: 10px;
  }
  .sell-zone {
    font-size: 14px;
    padding: 9px;
  }
  .footer-actions .primary {
    font-size: 14px;
    padding: 11px 12px;
  }
  .inspect-help {
    display: none;
  }
  .section-heading h3 {
    font-size: 14px;
  }
  #next-info {
    display: none;
  }
  .card-row {
    gap: 16px;
  }
  .inspect-dialog {
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding: 28px;
    max-width: 95vw;
  }
  .inspect-dialog .card {
    width: 150px;
    height: 230px;
  }
  .inspect-dialog .card-art {
    min-height: 115px;
  }
  .inspect-dialog .card h4 {
    font-size: 14px;
  }
  .inspect-copy h2 {
    font-size: 22px;
  }
  .inspect-copy > p:not(.eyebrow) {
    font-size: 14px;
  }
  .deck-dialog {
    padding: 25px 18px;
  }
  .deck-grid {
    grid-template-columns: repeat(auto-fill,minmax(125px,1fr));
    gap: 20px 12px;
  }
  .deck-grid .card {
    width: 125px;
    height: 190px;
  }
  .deck-heading h2 {
    font-size: 25px;
  }
  .deck-heading > span {
    font-size: 14px;
  }
  .deck-dialog .dialog-subtitle {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,
  *::before {
    animation: none!important;
    transition: none!important;
  }
  .menu-landscape,
  .scene-card,
  .scene-chip {
    transform: none!important;
  }
}
body.reduced-motion *,
body.reduced-motion *::before {
  animation: none!important;
  transition: none!important;
}
body.reduced-motion .menu-landscape,
body.reduced-motion .scene-card,
body.reduced-motion .scene-chip {
  transform: none!important;
}
.card-art img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}
.menu-landscape::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#f1ddc5b3,transparent 58%);
}
.home-actions .quiet {
  color: #67452d;
  text-shadow: 0 1px #f8dfb7;
}
.home-record {
  color: #7c5737;
  text-shadow: 0 1px #f5d8b0;
}
.sidebar-empty {
  color: #8a6949;
}
.card-tag {
  color: #8c6032;
}
.dialog-subtitle {
  color: #89643f;
}
.inspect-dialog {
  overflow: auto;
}
@media (max-height:600px) {
  .home-record {
    margin-top: 12px;
    font-size: 14px;
  }
  .home-actions .quiet {
    font-size: 14px;
  }
  .game-title {
    margin-top: 14px;
    margin-bottom: 20px;
  }
}
.hand .card-number {
  display: grid;
  place-items: center;
  top: 5px;
  left: 5px;
  min-width: 22px;
  height: 22px;
  border: 1px solid #b38a50;
  border-radius: 50%;
  background: #f8e4ba;
  font: 900 14px 'Nunito',sans-serif;
  box-shadow: 0 2px 4px #5a321b25;
  color: #714520;
}

#shop-screen .primary {
  min-height: 58px;
  min-width: 220px;
  padding: 15px 28px;
  border: 2px solid #a67237;
  border-radius: 12px;
  background: linear-gradient(#ffe3a6, #dba55f);
  box-shadow: inset 0 2px #fff1c9, inset 0 -3px #bf8645, 0 5px #694426, 0 9px
    16px #160c0750;
  font-size: 19px;
  text-shadow: 0 1px #ffe6b9;
}
#shop-screen .primary:active {
  transform: translateY(3px);
  box-shadow: inset 0 2px #fff1c9, 0 2px #694426;
}
#reroll,
.sell-zone {
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid #b68b52;
  border-radius: 10px;
  background: linear-gradient(#715338, #513924);
  box-shadow: inset 0 1px #c7a06c66, 0 3px #2d2017;
  color: #f6dfb8;
  font-size: 14px;
  font-weight: 800;
}
.sell-zone.drop-hover {
  background: #8d4832;
  border-color: #ffd797;
  color: #fff0ce;
}
.card-ghost {
  translate: none!important;
}
.card-number:empty {
  display: none;
}
@media (max-height: 650px) {
  #shop-screen .primary {
    min-height: 46px;
    min-width: 180px;
    padding: 10px 20px;
    font-size: 16px;
  }
  #reroll,
  .sell-zone {
    min-height: 42px;
    padding: 9px 16px;
    font-size: 14px;
  }
}

.card:active {
  transform: none;
}
.inspect-dialog .primary,
.menu-dialog .primary {
  min-height: 52px;
  font-size: 16px;
}

body {
  font-size: 16px;
  font-weight: 600;
  color: #3e2e23;
}
.play-sidebar {
  border-color: #bd9c70;
}
.play-sidebar h2 {
  flex-wrap: wrap;
  gap: 4px;
  color: #34271f;
}
.play-sidebar h2 > span,
.stat small {
  color: #634b37;
}
.quest-card h3,
.score-entry summary > span,
.score-lines > div,
.quest-task,
.quest-card p,
.sidebar-empty,
.score-lines b {
  color: #4a3829;
}
.quest-task,
.score-lines > div {
  flex-wrap: wrap;
  line-height: 1.5;
}
.quest-card p {
  line-height: 1.55;
}
.quest-card h3 {
  line-height: 1.35;
}
.stat {
  color: #604734;
}
.stat b,
.score-equation {
  color: #402a1b;
}
.dialog-subtitle,
.settings-list label,
.save-note,
.deck-heading > span,
.deck-bottom,
.inspect-copy > p:not(.eyebrow),
.inspect-copy #inspect-level,
#guide-text,
#guide-step {
  color: #55402e;
  line-height: 1.5;
}
#card-tooltip {
  width: 290px;
  color: #3c2b20;
}
#card-tooltip small {
  color: #67503a;
}
.card {
  color: #35261d;
}
.card h4 {
  font: 800 17px/1.25 'Nunito', sans-serif;
}
.card-tag {
  display: none;
}
.card-footer {
  font-size: 15px;
  color: #53351e;
}
.shop-heading .eyebrow,
.shop-result,
#next-info,
.inspect-help {
  color: #e6d2b2;
}
.hand .card + .card {
  margin-left: 0;
}
#shop-screen .inventory .card h4 {
  font: 800 15px/1.2 'Nunito', sans-serif;
}
#shop-screen .inventory .card-footer {
  font-size: 14px;
}
.deck-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.deck-grid .card {
  width: 180px;
  height: 260px;
}
.deck-grid .card h4 {
  font: 800 16px/1.25 'Nunito', sans-serif;
}
.deck-grid .card-footer {
  font-size: 14px;
}
#shop-screen .primary {
  min-width: 245px;
  font-size: 19px;
}
.shop-footer {
  flex-wrap: wrap;
}
#next-info {
  flex: 1;
  text-align: center;
  min-width: 180px;
}
@media (max-height: 700px) {
  #shop-screen .primary {
    min-width: 220px;
    min-height: 48px;
    font-size: 17px;
  }
  .inspect-help {
    display: none;
  }
}

#shop-screen > *,
#rewards,
.inventory,
.section-heading,
.card-row {
  min-width: 0;
}
.card-row {
  max-width: 100%;
}
.section-heading .inspect-help {
  text-align: right;
}
.card.sold {
  opacity: 1;
  filter: none;
}
.card.sold .card-art {
  filter: grayscale(.7);
  opacity: .7;
}
.card.sold .card-footer {
  color: #3e5634;
}
.card-footer small {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  margin-top: 3px;
}

.hand-controls {
  display: flex;
  gap: 8px;
}
.hand-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  font: 700 28px 'Nunito', sans-serif;
  color: #f3dfbf;
  background: #65482f;
  border-color: #a78150;
}

.guide-image {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border: 3px solid #bd975e;
  border-radius: 8px;
}
.guide-stat {
  min-width: 125px;
  font: 800 30px 'Nunito', sans-serif;
  color: #3e2e23;
}
.guide-stat small {
  display: block;
  font-size: 16px;
  margin-top: 6px;
}

#play-screen .table {
  grid-column: 2;
  grid-row: 1;
}
.quests-panel {
  grid-column: 1;
  grid-row: 1;
}
.history-panel {
  grid-column: 3;
  grid-row: 1;
}
.score-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 4px 22px;
  text-align: center;
}
.score-empty img {
  width: min(170px, 100%);
  height: 150px;
  object-fit: contain;
  margin-bottom: 18px;
}
.score-empty h3 {
  margin: 0 0 12px;
  font: 800 18px/1.35 'Nunito', sans-serif;
  color: #44301f;
}
.score-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #654b34;
}
.history-panel:has(.score-empty) {
  height: auto;
  min-height: 370px;
}
@media (max-height:650px) {
  .score-empty {
    padding-top: 18px;
  }
  .score-empty img {
    height: 100px;
    margin-bottom: 10px;
  }
  .history-panel:has(.score-empty) {
    min-height: 300px;
  }
}

@media (max-height: 760px) {
  #rewards {
    flex: 0 0 310px;
  }
}

#shop-screen {
  width: 100%;
  max-width: 1150px;
  min-width: 0;
  height: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: auto minmax(0,1fr) auto;
  gap: 12px;
  padding: 12px 0 16px;
  outline: 0;
}
#shop-screen.run-ended {
  grid-template-rows: auto minmax(0,1fr) auto;
}
#shop-screen.empty-result {
  grid-template-rows: auto auto;
  align-content: center;
}
.shop-ending {
  text-align: center;
  align-self: center;
  padding: 20px 12px;
  color: #fff0cf;
}
.result-emblem {
  display: block;
  width: 120px;
  height: 94px;
  margin: 0 auto 14px;
}
#shop-screen.empty-result .result-emblem {
  width: 180px;
  height: 140px;
  margin-bottom: 24px;
}
#shop-screen.run-ended .shop-footer {
  justify-content: center;
  border-top: 0;
}
#shop-screen.run-ended #next-info {
  display: none;
}
#endless:not([hidden]) + #next-round {
  background: linear-gradient(#715338, #513924);
  color: #f6dfb8;
  text-shadow: none;
  box-shadow: inset 0 1px #c7a06c66, 0 5px #2d2017;
  border-color: #b68b52;
}
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 16px;
}
.wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f2d091;
}
.wallet b {
  font: 800 26px 'Nunito',sans-serif;
  font-variant-numeric: tabular-nums;
}
.coin-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.wallet .coin-icon {
  width: 32px;
  height: 32px;
}
.price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
#reroll {
  display: flex;
  align-items: center;
  gap: 18px;
}
.shop-ending h2 {
  margin: 0 0 8px;
  font-size: 28px;
}
.shop-ending p {
  margin: 0 0 8px;
  font-size: 14px;
}
#shop-content {
  display: grid;
  grid-template-rows: minmax(338px,1fr) 280px;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
}
#shop-screen.run-ended #shop-content {
  grid-template-rows: minmax(280px,1fr);
}
#rewards {
  min-height: 338px;
}
#choices {
  padding: 12px 12px 18px;
}
#shop-screen #choices .card {
  width: 208px;
  height: 304px;
  min-height: 304px;
  max-height: none;
  flex-shrink: 0;
}
.inventory {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  border-top: 1px solid #b68b4f30;
  padding-top: 6px;
}
.inventory .card-row {
  gap: 12px;
  justify-content: flex-start;
  padding: 6px 8px 16px;
}
#shop-screen .inventory .card {
  width: 145px;
  min-width: 145px;
  height: 212px;
  min-height: 212px;
  max-height: none;
  flex-shrink: 0;
  aspect-ratio: 145/212;
}
@media (max-height: 700px) {
  #shop-screen {
    gap: 8px;
    padding-top: 8px;
  }
  #shop-content {
    grid-template-rows: 338px 280px;
  }
}

.gem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.tile:not(.special) .gem {
  filter: none;
}
#guide-art .guide-tile img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

*,
*::before,
*::after {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
img,
svg {
  -webkit-user-drag: none;
}

.game-title {
  width: min(540px, 85vw);
  margin: 0 0 25px;
  line-height: 0;
}
.game-title img {
  display: block;
  width: 100%;
  height: auto;
}
.wordmark img {
  display: block;
  width: 74px;
  height: 54px;
  object-fit: contain;
}
.shortcuts {
  margin: 20px 0 0;
  text-align: left;
}
.shortcuts div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 8px 0;
  font-size: 14px;
}
.shortcuts dt {
  min-width: 95px;
}
.shortcuts dd {
  margin: 0;
}
kbd {
  font: 700 14px 'Nunito', sans-serif;
  background: #ead0a4;
  padding: 2px 6px;
  border-radius: 4px;
  border-bottom: 2px solid #b28c58;
}
@media (max-height:700px) {
  .game-title {
    width: min(380px,70vw);
  }
}

.floating-score {
  z-index: 12;
  width: max-content;
  max-width: 80%;
  padding: 7px 14px;
  border: 1px solid #f2cd87;
  border-radius: 12px;
  background: #4a2f21ee;
  box-shadow: 0 4px 0 #2f2018,0 8px 18px #39251655;
  color: #ffe3a4;
  text-align: center;
  font: 900 clamp(24px,3.6dvh,38px)/1.05 'Nunito',sans-serif;
  text-shadow: 0 2px #5a3424;
}
.floating-score b {
  display: block;
  font: inherit;
}
.floating-score small {
  display: block;
  margin-top: 4px;
  color: #fff1cf;
  font: 800 17px 'Nunito',sans-serif;
}

.match-ring {
  position: absolute;
  border: 3px solid;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 8px #ffedba60;
}
