.sf-stands-page { padding-bottom: 2rem; }
.sf-stands-page__lede { max-width: 48ch; font-size: 1.12rem; }

.sf-stands__stage {
  position: relative;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  background: #3a4a3c;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: min(74vh, 620px);
}
.sf-stands.is-guide .sf-stands__stage,
.sf-stands.is-over .sf-stands__stage,
.sf-stands.is-settings .sf-stands__stage {
  max-height: min(92dvh, 760px);
  height: min(92dvh, 760px);
  aspect-ratio: auto;
}
.sf-stands.is-guide .sf-stands__canvas,
.sf-stands.is-settings .sf-stands__canvas { visibility: hidden; }
.sf-stands.is-play .sf-stands__canvas { cursor: none; }

.sf-stands__canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  touch-action: none;
  cursor: pointer;
}
.sf-stands__canvas:focus { outline: none; }

.sf-stands__hud {
  position: absolute;
  inset: .55rem .6rem auto;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  pointer-events: none;
  z-index: 2;
}
.sf-stands__hud[hidden] { display: none !important; }

.sf-stands__stats {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  background: rgba(12, 22, 16, .82);
  border: 3px solid var(--ink);
  padding: .28rem .55rem .2rem;
  box-shadow: 2px 2px 0 var(--ink);
  color: #efe6cf;
}
.sf-stands__stat {
  margin: 0;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: .35rem;
}
.sf-stands__stat span { opacity: .7; }
.sf-stands__stat strong {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: .02em;
  color: #efe6cf;
}
.sf-stands__pack {
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  z-index: 2;
  width: 6.6rem;
  padding: .32rem .32rem .28rem;
  background: rgba(10, 18, 14, .9);
  border: 3px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  pointer-events: none;
  color: #efe6cf;
}
.sf-stands__pack[hidden] { display: none !important; }
.sf-stands.is-carry .sf-stands__pack { border-color: var(--mustard, #e3b341); }
.sf-stands__pack-kicker,
.sf-stands__pack-name {
  margin: 0;
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
}
.sf-stands__pack-kicker { opacity: .62; margin-bottom: .2rem; }
.sf-stands__pack-name {
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .04em;
  margin-top: .22rem;
  color: #c9b896;
}
.sf-stands.is-carry .sf-stands__pack-name { color: var(--mustard, #e3b341); }
.sf-stands__pack-view {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(90, 120, 80, .35), rgba(8, 14, 10, .96) 72%);
  border: 2px solid var(--ink);
}

.sf-stands__rise {
  display: flex;
  align-items: stretch;
  gap: .35rem;
  background: rgba(12, 22, 16, .82);
  border: 3px solid var(--ink);
  padding: .28rem .4rem;
  box-shadow: 2px 2px 0 var(--ink);
  color: #efe6cf;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sf-stands__rise-track {
  width: .7rem;
  height: 2.4rem;
  border: 2px solid var(--ink);
  background: #1b120c;
  position: relative;
  overflow: hidden;
}
.sf-stands__rise-track i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background: linear-gradient(#5a3a22, #1a120c);
}

.sf-stands__minimap {
  width: 5.6rem;
  height: 5.6rem;
  border: 3px solid var(--ink);
  background: rgba(7, 17, 12, .82);
  box-shadow: 2px 2px 0 var(--ink);
  image-rendering: pixelated;
}

.sf-stands__tools {
  margin-left: auto;
  display: flex;
  gap: .35rem;
  pointer-events: auto;
}
.sf-stands__icon {
  width: 2.2rem;
  height: 2.2rem;
  border: 3px solid var(--ink);
  background: #efe6cf;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--display);
  cursor: pointer;
  line-height: 1;
  font-size: .78rem;
}
.sf-stands__icon[aria-pressed="true"] { background: var(--mustard, #e8c547); }

.sf-stands__stage:fullscreen,
.sf-stands__stage:-webkit-full-screen,
.sf-stands.is-fullscreen .sf-stands__stage {
  width: 100vw;
  height: 100dvh;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  box-shadow: none;
  background: #3a4a3c;
}
.sf-stands.is-fullscreen .sf-stands__canvas,
.sf-stands__stage:fullscreen .sf-stands__canvas,
.sf-stands__stage:-webkit-full-screen .sf-stands__canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-stands__set {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: .35rem 0 .7rem;
  max-width: 28rem;
}
.sf-stands__set input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: #6f8440;
}
.sf-stands__set strong {
  font-family: var(--display);
  min-width: 3.6rem;
  text-align: right;
}
.sf-stands .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.sf-stands__whisper,
.sf-stands__look {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  padding: .2rem .7rem;
  font-family: var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}
.sf-stands__whisper {
  top: 22%;
  font-size: 1.25rem;
  color: #c9e8c2;
  background: rgba(8, 16, 12, .82);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.sf-stands__look {
  bottom: 1.1rem;
  font-size: .9rem;
  color: #efe6cf;
  background: rgba(8, 16, 12, .72);
  border: 2px solid var(--ink);
  max-width: calc(100% - 8.4rem);
}
.sf-stands__whisper[hidden],
.sf-stands__look[hidden] { display: none !important; }

.sf-stands__hex,
.sf-stands__mud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.sf-stands__hex {
  background: radial-gradient(circle at 50% 55%, rgba(40, 180, 70, 0) 30%, rgba(18, 80, 32, .55) 100%);
  mix-blend-mode: multiply;
}
.sf-stands__mud {
  background: radial-gradient(circle at 50% 110%, #2a1a0c 0%, #1a1008 42%, rgba(10, 8, 4, .2) 70%, transparent 86%);
}
.sf-stands__hex[hidden],
.sf-stands__mud[hidden] { display: none !important; }

.sf-stands__overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: safe center;
  text-align: center;
  padding: 1.2rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 1px 1px, rgba(90, 140, 70, .16) 1.1px, transparent 1.4px) 0 0 / 9px 9px,
    rgba(16, 28, 20, .9);
  color: #efe6cf;
}
.sf-stands__overlay[hidden] { display: none !important; }
.sf-stands__overlay h2 {
  font-size: clamp(1.6rem, 6vw, 4.2rem);
  margin: 0 0 .5rem;
  color: #efe6cf;
}
.sf-stands__overlay p { margin: 0 auto .85rem; max-width: 42ch; }
.sf-stands__overlay .sf-btn { margin: .15rem .2rem; }
.sf-stands__overlay .sf-kicker,
.sf-stands__cover-name { color: var(--mustard, #e8c547); }
.sf-stands__quote {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: .03em;
  font-style: italic;
  color: #c9e8c2;
}
.sf-stands__rules {
  list-style: none;
  margin: 0 auto .9rem;
  padding: 0;
  max-width: 36ch;
  text-align: left;
}
.sf-stands__rules li {
  margin: 0 0 .35rem;
  padding-left: 1rem;
  position: relative;
}
.sf-stands__rules li::before {
  content: "†";
  position: absolute;
  left: 0;
  color: var(--mustard, #e8c547);
}

.sf-stands__overlay--load {
  z-index: 6;
  background:
    radial-gradient(circle at 1px 1px, rgba(90, 140, 70, .2) 1.1px, transparent 1.4px) 0 0 / 9px 9px,
    rgba(7, 17, 12, .92);
}
.sf-stands__load {
  width: 7.2rem;
  height: 7.2rem;
  margin: .4rem auto .7rem;
  position: relative;
}
.sf-stands__load-dial {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.sf-stands__load-track,
.sf-stands__load-fill {
  fill: none;
  stroke-width: 8;
}
.sf-stands__load-track { stroke: rgba(244, 234, 212, .28); }
.sf-stands__load-fill {
  stroke: #6f8440;
  stroke-linecap: square;
  stroke-dasharray: 289.027;
  stroke-dashoffset: 289.027;
  transition: stroke-dashoffset .2s linear;
}
.sf-stands__load strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .04em;
}
.sf-stands__load-note {
  margin: 0 auto;
  font-size: .95rem;
  max-width: 28ch;
}

.sf-stands__overlay--guide {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  text-align: left;
  padding: .5rem .7rem .55rem;
}
.sf-stands__overlay--guide h2 { text-align: left; font-size: clamp(1.4rem, 4vw, 2.4rem); }
.sf-stands__guide {
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.sf-stands__guide-sec { margin: 0 0 .85rem; }
.sf-stands__guide-sec h3 {
  margin: 0 0 .3rem;
  font-family: var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--mustard, #e8c547);
}
.sf-stands__guide-sec p { margin: 0; max-width: 52ch; }
.sf-stands__key,
.sf-stands__controls {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sf-stands__key li,
.sf-stands__controls li {
  margin: 0 0 .35rem;
  font-size: .95rem;
}
.sf-stands__kbd {
  display: inline-block;
  border: 2px solid var(--ink);
  background: #efe6cf;
  color: var(--ink);
  padding: 0 .28rem;
  font-family: var(--sans);
  font-size: .82rem;
}
.sf-stands__guide-actions { margin: .4rem 0 0; text-align: left; }

.sf-stands__final {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  font-family: var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sf-stands__share { margin: 0 auto .8rem; }
.sf-stands__share-label {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
}
.sf-stands__share-card {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
}
.sf-stands__share-pic {
  width: 3.4rem;
  height: 4rem;
  object-fit: cover;
  border: 3px solid var(--ink);
}
.sf-stands__share-row { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: center; }

.sf-stands__touch {
  display: none;
  margin-top: .7rem;
  justify-items: center;
  gap: .35rem;
}
.sf-stands.is-touch .sf-stands__touch { display: grid; }
.sf-stands__pad-row { display: flex; gap: .35rem; }
.sf-stands__pad {
  width: 3.4rem;
  height: 3.4rem;
  border: 3px solid var(--ink);
  background: #6f8440;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 1.3rem;
  font-family: var(--display);
  cursor: pointer;
  touch-action: manipulation;
  color: #0d1410;
}
.sf-stands__pad--act {
  width: auto;
  padding: 0 .7rem;
  background: var(--mustard, #e3b341);
  font-size: .95rem;
}
.sf-stands__pad:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

.sf-wasted-board {
  width: min(100%, 40rem);
  margin: 1.15rem 0 0;
  padding: 1rem 1.1rem 1.15rem;
  text-align: left;
  background: var(--paper-2, #efe6cf);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}
.sf-wasted-board__title {
  margin: 0 0 .45rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--flame);
}
.sf-wasted-board__list {
  list-style: none;
  margin: 0 0 .55rem;
  padding: 0;
  border: 2px solid var(--ink);
  background: rgba(255, 253, 246, .86);
  max-height: 14rem;
  overflow: auto;
}
.sf-wasted-board__list li {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .28rem .6rem;
  font-family: var(--sans);
  font-size: .9rem;
  border-bottom: 1px solid rgba(22, 19, 15, .12);
}
.sf-wasted-board__list li:last-child { border-bottom: 0; }
.sf-wasted-board__list b {
  font-family: var(--display);
  letter-spacing: .06em;
}
.sf-wasted-board__list strong {
  font-family: var(--display);
  font-size: 1.05rem;
}
.sf-wasted-board__empty { display: block !important; opacity: .7; }
.sf-wasted-board__form { position: relative; }
.sf-wasted-board__form p {
  margin: 0 0 .35rem;
  font-size: .88rem;
  max-width: none;
}
.sf-wasted-board__pending { font-family: var(--display); letter-spacing: .04em; }
.sf-wasted-board__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.2rem auto;
  gap: .3rem;
}
.sf-wasted-board__fields input {
  width: 100%;
  min-height: 2.4rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: .25rem .45rem;
  font-family: var(--sans);
  font-size: .9rem;
}
.sf-wasted-board__fields input[name="initials"] {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.sf-wasted-board__fields .sf-btn { margin: 0; min-height: 2.4rem; }
.sf-wasted-board__note {
  min-height: 1.1em;
  margin: .3rem 0 0;
  font-size: .8rem;
}
.sf-wasted-board__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 720px) {
  .sf-stands__stage { max-height: min(62vh, 480px); }
  .sf-stands__minimap { display: none; }
  .sf-stands__pack { width: 5.4rem; right: .4rem; bottom: .4rem; }
}
