:root {
  color-scheme: light;
  font: 100%/1.45 "Segoe UI", Roboto, system-ui, sans-serif;
  --felt: #193e33;
  --paper: #f5eedc;
  --ink: #24291e;
  --red: #9c302a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, a { font: inherit; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #b44b15; outline-offset: 4px; }
.table {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  padding: 2rem 1.25rem;
  background: var(--felt);
  color: var(--ink);
}
.card {
  position: relative;
  width: min(31rem, calc(100vw - 2.5rem));
  padding: clamp(2.75rem, 8vmin, 3.5rem) clamp(1.55rem, 7vw, 3.15rem);
  border-radius: .85rem;
  background: var(--paper);
}
.corner {
  position: absolute;
  top: .65rem;
  left: .85rem;
  text-align: center;
  color: var(--red);
  font: bold 1.35rem/1 Georgia, serif;
}
.corner::after {
  content: "";
  display: block;
  width: .36rem;
  height: .5rem;
  margin: .13rem auto 0;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.corner.bottom { inset: auto .85rem .65rem auto; transform: rotate(180deg); }
h1 {
  margin: 0 0 1.25rem;
  font: bold clamp(3.75rem, 10vw, 5.7rem)/.97 Georgia, "Times New Roman", serif;
  letter-spacing: -.065em;
}
.setup { border-top: 1px solid #c6bfad; padding-top: 1.15rem; }
.card p { margin: .35rem 0 .9rem; }
.action, .secondary {
  padding: .65rem 1rem;
  border: 1px solid var(--felt);
  border-radius: .25rem;
  min-height: 44px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
}
.action { color: #fff; background: var(--felt); }
.secondary { color: var(--felt); background: transparent; }
.action:hover { background: #275142; }
.secondary:hover { background: #e9e2d0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.card #status { color: var(--red); }
.card #status:empty { margin: 0; }
.card details { margin-top: .5rem; font-size: .9rem; }
summary { color: #454d40; cursor: pointer; padding-block: .65rem; }
.card details p { margin: 0; overflow-wrap: anywhere; }
.player {
  color-scheme: dark;
  color: #f5eedc;
  background: #101411;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.player header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: env(safe-area-inset-top) max(.75rem, env(safe-area-inset-right)) 0 max(.75rem, env(safe-area-inset-left));
  background: #1c241e;
  font-size: .875rem;
}
.player a, .player button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none;
  color: inherit;
  border: 0;
  text-decoration: none;
}
#full { margin-left: auto; }
#state { color: #e9d6af; }
#stage {
  position: relative;
  container-type: size;
  display: grid;
  place-items: center;
  min-height: 0;
  flex: 1;
  background: #101411;
}
#canvas {
  display: block;
  --aspect: 1.77778;
  width: min(100cqw, calc(100cqh * var(--aspect))) !important;
  height: min(100cqh, calc(100cqw / var(--aspect))) !important;
  touch-action: none;
}
#canvas:focus { outline: none; }
#rotate { display: none; }
@media (pointer: coarse) and (orientation: portrait) {
  #rotate {
    display: block;
    position: absolute;
    bottom: max(1rem, env(safe-area-inset-bottom));
    text-align: center;
    font-size: .875rem;
    color: #c2c9c1;
  }
}
