[hidden] { display: none !important; }

@property --sq-fade-start {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --sq-fade-end {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.sq-arena {
  container: arena / inline-size;
  background: var(--surface, #fffdf8);
  border: 2px solid #24402d;
  border-radius: 18px;
  box-shadow: 0 7px 0 #c6bc9f, 0 22px 44px rgba(27, 40, 28, 0.14);
  overflow: hidden;
  scroll-margin-top: 64px;
}

/* Deep Forest Canopy Console Tab Bar */
.sq-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-block-end: 2px solid #152a1d;
  background: linear-gradient(180deg, #244330 0%, #1c3525 100%);
  padding-inline: 12px 10px;
}

.sq-tabs {
  flex: 1;
  min-inline-size: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: inline proximity;
  scroll-padding-inline: 1.5rem;
  gap: 4px;
  scrollbar-width: none;
  --sq-fade-size: 1.75rem;
  mask:
    linear-gradient(black, black) no-clip subtract,
    linear-gradient(to right, black, transparent) 0 0 / var(--sq-fade-start) 100% no-repeat no-clip,
    linear-gradient(to right, transparent, black) 100% 0 / var(--sq-fade-end) 100% no-repeat no-clip;
  animation: sq-fade-s linear both, sq-fade-e linear both;
  animation-timeline: scroll(self inline);
  animation-range: 0 var(--sq-fade-size), calc(100% - var(--sq-fade-size)) 100%;
}
.sq-tabs::-webkit-scrollbar { display: none; }
.sq-tabs.is-more-start { --sq-fade-start: var(--sq-fade-size); }
.sq-tabs.is-more-end { --sq-fade-end: var(--sq-fade-size); }

@keyframes sq-fade-s { to { --sq-fade-start: var(--sq-fade-size); } }
@keyframes sq-fade-e { from { --sq-fade-end: var(--sq-fade-size); } }

.sq-tab {
  position: relative;
  flex: none;
  scroll-snap-align: start;
  min-block-size: 48px;
  padding: 11px 14px;
  background: transparent;
  border: 0;
  color: #b7d0be;
  font: 600 0.875rem/1 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s ease;
}
.sq-tab:hover { color: #fffdf8; }
.sq-tab[aria-selected="true"] { color: #fffdf8; }
.sq-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset-inline: 8px;
  inset-block-end: 0;
  border-block-end: 4px solid #f2b453;
  border-radius: 3px 3px 0 0;
}
.sq-tab-long { display: inline; }
.sq-tab-short { display: none; }

.sq-sfx-btn {
  flex: none;
  inline-size: 38px;
  block-size: 38px;
  min-block-size: 38px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 253, 248, 0.24);
  background: rgba(255, 253, 248, 0.10);
  color: #f4efe0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, opacity .15s ease;
}
.sq-sfx-btn:hover {
  border-color: #f2b453;
  background: rgba(255, 253, 248, 0.18);
  color: #ffffff;
}
.sq-sfx-btn[aria-pressed="false"] { color: #9db6a5; opacity: 0.72; }
.sq-sfx-btn .sq-ic-off { display: none; }
.sq-sfx-btn[aria-pressed="false"] .sq-ic-on { display: none; }
.sq-sfx-btn[aria-pressed="false"] .sq-ic-off { display: block; }

.sq-timer-track {
  block-size: 6px;
  background: #e5dfcc;
  overflow: hidden;
}
.sq-timer-bar {
  block-size: 100%;
  inline-size: 100%;
  transform-origin: left center;
  transform: scaleX(1);
  background: linear-gradient(90deg, #257a47, #53b374);
  transition: transform 0.25s linear, background-color 0.25s ease;
}
.sq-timer-bar.is-warn { background: linear-gradient(90deg, #c97316, #f0ad44); }
.sq-timer-bar.is-urgent { background: linear-gradient(90deg, #b42318, #e64d42); }

.sq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  min-block-size: 432px;
}

.sq-stage {
  padding: 20px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-inline-size: 0;
  background:
    radial-gradient(circle at 96% 6%, rgba(242, 180, 83, 0.16) 0%, transparent 42%),
    radial-gradient(circle at 4% 96%, rgba(37, 122, 71, 0.06) 0%, transparent 45%),
    var(--surface, #fffdf8);
}

.sq-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg, #f8f4e8);
  border: 1.5px solid var(--border, #d8cfb8);
}

.sq-stats {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px;
}
.sq-stat-item { display: flex; flex-direction: column; }
.sq-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted, #526152);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sq-stat-val {
  font-family: var(--font-mono);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink, #1b281c);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.sq-stat-val.is-gold { color: var(--accent-ink, #7d450a); }
.sq-stat-val.is-warn { color: #b42318; }

.sq-timer-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--canopy, #1e3928);
  color: #fffdf8;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 0 rgba(21, 42, 29, 0.35);
}
.sq-timer-pill.is-warn { background: #fdf0d5; color: #7d450a; border: 1.5px solid #d9822b; box-shadow: none; }
.sq-timer-pill.is-urgent { background: #fee4e2; color: #912018; border: 1.5px solid #d92d20; box-shadow: none; }

/* Mobile Horizontal Mini-Canopy Gauge */
.sq-mini-gauge {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 12px;
  background: linear-gradient(90deg, #e5f1e4 0%, #f8f4e8 60%, #fdf0d5 100%);
  border: 1.5px solid var(--border-strong, #bfb395);
}
.sq-mini-track {
  position: relative;
  flex: 1;
  block-size: 13px;
  border-radius: 999px;
  background: #d9cdb3;
  box-shadow: inset 0 1px 2px rgba(43, 35, 22, 0.22);
  overflow: visible;
}
.sq-mini-fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #257a47, #53b374);
  transition: inline-size .35s ease;
}
.sq-mini-tide {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 0%;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.72);
  transition: inline-size .2s linear;
}
.sq-mini-crown {
  position: absolute;
  inset-block: -4px;
  inset-inline-start: 64.3%;
  inline-size: 3px;
  border-radius: 2px;
  background: var(--accent, #d9822b);
}
.sq-mini-squirrel {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0px;
  transform: translateY(-50%);
  inline-size: 28px;
  block-size: 28px;
  border-radius: 50%;
  border: 2px solid var(--canopy, #1e3928);
  background: var(--accent-soft, #fdf0d5);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(27, 40, 28, 0.2);
  transition: inset-inline-start .35s ease;
  z-index: 2;
}
.sq-mini-squirrel img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.sq-mini-meta {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--canopy, #1e3928);
  white-space: nowrap;
}

.sq-card-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.sq-intro-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sq-intro-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sq-mascot-badge {
  flex: none;
  inline-size: 78px;
  block-size: 78px;
  border-radius: 16px;
  border: 2.5px solid var(--canopy, #1e3928);
  background: radial-gradient(circle at 30% 25%, #fff7e2, #f7dfb1);
  object-fit: cover;
  box-shadow: 0 4px 0 rgba(191, 179, 149, 0.75);
}
.sq-mode-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 0.95vw, 1.8125rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 5px;
  color: var(--ink, #1b281c);
}
.sq-mode-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted, #526152);
  max-inline-size: 56ch;
}
.sq-start-btn {
  min-block-size: 50px;
  padding-inline: 26px;
  font-size: 1rem;
}
.sq-pill-row { display: flex; flex-wrap: wrap; gap: 7px; }
.sq-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg, #f8f4e8);
  border: 1px solid var(--border, #d8cfb8);
  font-size: 0.75rem;
  font-weight: 600;
  color: #3e4e3f;
}

.sq-prompt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark, #1b5c35);
}
.sq-prompt-meta span:last-child {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft, #fdf0d5);
  color: var(--accent-ink, #7d450a);
  border: 1px solid rgba(217, 130, 43, 0.35);
}
.sq-prompt-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.18rem + 1.25vw, 2.0625rem);
  font-weight: 700;
  line-height: 1.16;
  margin: 4px 0 12px;
  color: var(--ink, #1b281c);
}

.sq-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.sq-input {
  flex: 1;
  min-inline-size: 0;
  min-block-size: 50px;
  padding: 11px 16px;
  border: 2px solid var(--border-strong, #bfb395);
  border-radius: 12px;
  font: 600 1rem/1.2 var(--font-body);
  color: var(--ink, #1b281c);
  background: var(--bg, #f8f4e8);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.sq-input:focus {
  border-color: var(--primary, #257a47);
  background: var(--surface, #fffdf8);
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 122, 71, 0.16);
}
.sq-submit-btn {
  flex: none;
  min-block-size: 50px;
  padding-inline: 20px;
  border-radius: 12px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .sq-input.is-shake { animation: sq-shake .32s ease; }
  .sq-feedback.is-pop { animation: sq-pop .26s cubic-bezier(.22, 1, .36, 1); }
}
@keyframes sq-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  55% { transform: translateX(5px); }
  80% { transform: translateX(-3px); }
}
@keyframes sq-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sq-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 8px;
}
.sq-utility-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.sq-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-block-size: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border, #d8cfb8);
  background: var(--bg, #f8f4e8);
  color: var(--ink, #1b281c);
  font: 600 0.8125rem/1 var(--font-body);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.sq-chip-btn:hover {
  border-color: var(--primary, #257a47);
  color: var(--primary-dark, #1b5c35);
  background: var(--surface-moss, #e4f0e4);
}
.sq-chip-btn.is-hint {
  color: var(--accent-ink, #7d450a);
  background: var(--accent-soft, #fdf0d5);
  border-color: rgba(217, 130, 43, 0.45);
}

.sq-hint-note {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent-soft, #fdf0d5);
  border: 1.5px solid rgba(217, 130, 43, 0.5);
  color: #633809;
  font-size: 0.84375rem;
  line-height: 1.45;
}

.sq-msg {
  margin: 0;
  font-size: 0.84375rem;
  font-weight: 600;
  color: #b42318;
  flex: 1 1 180px;
}

.sq-feedback {
  margin-block-start: 10px;
  padding: 15px 18px;
  border-radius: 14px;
  background: #edf6ee;
  border: 1.5px solid #9ec4a4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sq-fb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sq-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--canopy, #1e3928);
  color: #fffdf8;
}
.sq-tier-badge.is-gem { background: var(--accent-soft, #fdf0d5); color: #7d450a; border: 1.5px solid var(--accent, #d9822b); }
.sq-tier-badge.is-miss { background: #fee4e2; color: #912018; }
.sq-fb-pts {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--primary-dark, #1b5c35);
  font-variant-numeric: tabular-nums;
}
.sq-fb-sub { margin: 0; font-size: 0.875rem; color: #364b3b; }
.sq-fb-gems { margin: 0; font-size: 0.84375rem; font-weight: 500; color: var(--ink, #1b281c); }
.sq-fb-tip { margin: 0; font-size: 0.8125rem; color: var(--muted, #526152); }
.sq-fb-tip a { font-weight: 700; }

.sq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sq-actions .share-toast:empty { display: none; }

.sq-summary-band {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-soft, #fdf0d5);
  border: 1.5px solid rgba(217, 130, 43, 0.5);
  color: var(--accent-ink, #7d450a);
  font-weight: 700;
  font-size: 0.84375rem;
}
.sq-round-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}
.sq-round-list li {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg, #f8f4e8);
  border: 1px solid var(--border, #d8cfb8);
  font-size: 0.84375rem;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.sq-round-list strong { color: var(--ink, #1b281c); }
.sq-round-list span {
  font-family: var(--font-mono);
  color: var(--primary-dark, #1b5c35);
  font-weight: 700;
  white-space: nowrap;
}

.sq-next-guide {
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--surface-moss, #e4f0e4);
  border: 1.5px solid #a9caa9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sq-next-guide-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-dark, #1b5c35);
  margin-block-end: 2px;
}
.sq-next-guide p { margin: 0; font-size: 0.84375rem; color: var(--ink, #1b281c); }

/* Warm Leaderboard Box with Subtle Podium Accent */
.sq-board {
  margin-block-start: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg, #f8f4e8);
  border: 1.5px solid var(--border, #d8cfb8);
}
.sq-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-block-end: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink, #1b281c);
}
.sq-board-head span:last-child {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-dark, #1b5c35);
}
.sq-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8125rem;
}
.sq-board-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--muted, #526152);
}
.sq-board-list li:first-child {
  background: var(--accent-soft, #fdf0d5);
  color: var(--accent-ink, #7d450a);
  font-weight: 700;
}
.sq-board-list li span:last-child {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.sq-board-list li.is-me {
  background: var(--surface-moss, #e4f0e4);
  color: var(--primary-dark, #1b5c35);
  font-weight: 700;
}

/* Signature Woodland Canopy Altitude Gauge */
.sq-gauge-rail {
  border-inline-start: 1.5px solid var(--border-strong, #bfb395);
  background: linear-gradient(180deg, #d7ecf7 0%, #e5f2e6 34%, #edf2e2 76%, #e7dfc9 100%);
  padding: 16px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.sq-gauge-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--canopy, #1e3928);
}
.sq-tree-track {
  position: relative;
  flex: 1;
  min-block-size: 284px;
  border-radius: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 300' preserveAspectRatio='none'%3E%3Cellipse cx='38' cy='26' rx='30' ry='18' fill='%232e7d4b' opacity='.24'/%3E%3Cellipse cx='64' cy='38' rx='24' ry='14' fill='%233d995d' opacity='.20'/%3E%3Cpath d='M36 96 L84 84 M36 150 L76 142 M36 204 L74 196' stroke='%236c4e32' stroke-width='4' stroke-linecap='round' opacity='.26'/%3E%3Cellipse cx='86' cy='82' rx='22' ry='11' fill='%232e7d4b' opacity='.22'/%3E%3Cellipse cx='78' cy='140' rx='18' ry='9' fill='%233d995d' opacity='.18'/%3E%3Cellipse cx='74' cy='194' rx='16' ry='8' fill='%232e7d4b' opacity='.16'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%,
    linear-gradient(180deg, #cbe6f7 0%, #e4f2eb 28%, #f8f6ec 64%, #efe8d4 100%);
  border: 1.5px solid #a9bca9;
  box-shadow: inset 0 2px 6px rgba(27, 40, 28, 0.08);
  overflow: hidden;
}
.sq-trunk {
  position: absolute;
  inset-block: 12px 0;
  inset-inline-start: 28px;
  inline-size: 14px;
  border-radius: 7px 7px 0 0;
  background:
    repeating-linear-gradient(180deg, rgba(44, 28, 15, 0.22) 0 4px, transparent 4px 18px),
    linear-gradient(90deg, #6b4b2e 0%, #8c6540 55%, #5b3e24 100%);
  box-shadow: inset -2px 0 0 rgba(43, 28, 14, 0.25);
}
.sq-climb-fill {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 31px;
  inline-size: 8px;
  block-size: 0%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(0deg, #1b5c35 0%, #37a362 65%, #f2b453 100%);
  box-shadow: 0 0 8px rgba(55, 163, 98, 0.45);
  transition: block-size .4s cubic-bezier(.22, 1, .36, 1);
}
.sq-tide-water {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 0%;
  background: linear-gradient(180deg, rgba(14, 134, 168, 0.56), rgba(11, 91, 122, 0.84));
  border-block-start: 3px solid #38bdf8;
  transition: block-size .2s linear;
  pointer-events: none;
}
.sq-squirrel {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-end: 6px;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--canopy, #1e3928);
  background: var(--accent-soft, #fdf0d5);
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(27, 40, 28, 0.26);
  transition: inset-block-end .4s cubic-bezier(.22, 1, .36, 1);
  z-index: 2;
}
.sq-squirrel img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.sq-marks {
  position: absolute;
  inset: 12px 10px 10px 58px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.sq-mark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #465748;
  border-block-end: 1px dashed rgba(67, 88, 70, 0.28);
  padding-block-end: 3px;
}
.sq-mark strong {
  font-family: var(--font-mono);
  color: var(--ink, #1b281c);
  font-weight: 700;
}
.sq-mark:first-child span::after {
  content: " ⚑";
  color: var(--accent, #d9822b);
}
.sq-mark.is-crown {
  background: rgba(253, 240, 213, 0.88);
  border: 1px solid rgba(217, 130, 43, 0.45);
  border-radius: 6px;
  padding: 2px 6px;
  margin-inline: -4px;
}
.sq-mark.is-crown strong,
.sq-mark.is-crown span { color: var(--accent-ink, #7d450a); font-weight: 700; }

.sq-hoard-chip {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted, #526152);
  background: var(--surface, #fffdf8);
  border: 1.5px solid var(--border-strong, #bfb395);
  border-radius: 10px;
  padding: 8px 11px;
  text-align: center;
}
.sq-hoard-chip strong,
.sq-hoard-chip span {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.sq-hoard-chip strong {
  color: var(--accent-ink, #7d450a);
}

.sq-sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@container arena (inline-size < 720px) {
  .sq-grid { grid-template-columns: minmax(0, 1fr); min-block-size: 0; }
  .sq-gauge-rail { display: none; }
  .sq-mini-gauge { display: flex; }
  .sq-grid[data-sq-state="intro"] .sq-hud,
  .sq-grid[data-sq-state="intro"] .sq-mini-gauge,
  .sq-grid[data-sq-state="hoard"] .sq-hud,
  .sq-grid[data-sq-state="hoard"] .sq-mini-gauge { display: none; }
  .sq-stage { padding: 14px 14px 16px; gap: 10px; }
  .sq-tabs-bar { padding-inline: 6px; }
  .sq-tab { padding: 10px 9px; font-size: 0.8125rem; }
  .sq-tab-long { display: none; }
  .sq-tab-short { display: inline; }
  .sq-hud { padding: 8px 10px; }
  .sq-stats { gap: 14px; }
  .sq-stat-val { font-size: 1.0625rem; }
  .sq-intro-box { gap: 10px; }
  .sq-intro-hero { gap: 12px; }
  .sq-mascot-badge { inline-size: 54px; block-size: 54px; border-radius: 12px; }
  .sq-mode-title { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.45rem); margin-block-end: 2px; }
  .sq-mode-desc { font-size: 0.84375rem; line-height: 1.42; }
  .sq-pill-row { gap: 5px; }
  .sq-pill { font-size: 0.75rem; padding: 3px 9px; }
  .sq-board { padding: 9px 10px; margin-block-start: 2px; }
  .sq-board-head { margin-block-end: 5px; font-size: 0.75rem; }
  .sq-board-list { gap: 3px; font-size: 0.78125rem; }
  [data-sq-home-board-list] li:nth-child(n+4) { display: none; }
  .sq-start-btn { inline-size: 100%; }
  .sq-submit-btn { padding-inline: 14px; font-size: 0.875rem; }
  .sq-actions .btn { flex: 1 1 130px; }
}

@media (max-width: 760px) {
  .sq-grid { grid-template-columns: minmax(0, 1fr); min-block-size: 0; }
  .sq-gauge-rail { display: none; }
  .sq-mini-gauge { display: flex; }
  .sq-grid[data-sq-state="intro"] .sq-hud,
  .sq-grid[data-sq-state="intro"] .sq-mini-gauge,
  .sq-grid[data-sq-state="hoard"] .sq-hud,
  .sq-grid[data-sq-state="hoard"] .sq-mini-gauge { display: none; }
  .sq-stage { padding: 14px 14px 16px; gap: 10px; }
  .sq-tab { padding: 10px 9px; font-size: 0.8125rem; }
  .sq-tab-long { display: none; }
  .sq-tab-short { display: inline; }
  .sq-start-btn { inline-size: 100%; }
}

@media (pointer: coarse) {
  .sq-sfx-btn { inline-size: 44px; block-size: 44px; min-block-size: 44px; }
}
