:root {
  --bg: #f3f6f1;
  --surface: #fff;
  --text: #1d2a1f;
  --muted: #5d6e60;
  --primary: #2f7d4f;
  --accent: #d9a441;
  --border: #d4ded2;
  --soft: #e3ecdc;
  --primary-dark: #245d39;
  --radius: 12px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 64px;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--primary-dark);
  text-underline-offset: 4px;
}
a:hover {
  color: var(--primary-dark);
}
button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  line-height: 1.35;
}
button:hover {
  background: var(--soft);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.primary,
[data-gf-play] {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
button.primary:hover,
[data-gf-play]:hover {
  background: var(--primary-dark);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
p,
li {
  font-size: 16px;
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 48px;
  font-weight: 700;
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 22px;
}
img {
  max-width: 100%;
  display: block;
}
input,
select,
textarea {
  max-width: 100%;
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: #fff;
  min-height: 44px;
}
textarea {
  width: 100%;
  min-height: 120px;
}
label {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.site-header,
.site-footer,
main {
  max-width: 1120px;
  margin: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.site-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}
.brand,
.site-brand {
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.brand img,
.site-brand img {
  width: 32px;
  height: 32px;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.play-shell {
  padding-top: 24px;
}
.play-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.play-heading h1 {
  margin: 0;
}
.play-heading p {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
}
.stage {
  height: 680px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--soft);
  isolation: isolate;
}
.stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.stage-cover,
.stage-loading {
  position: absolute;
  inset: 0;
}
.stage-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.stage-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.stage-cover .cover-action,
.stage-cover > button {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.stage-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  gap: 24px;
  text-align: center;
}
.stage-loading p {
  margin: 0;
}
.atlas-loader,
.loading-route {
  width: 120px;
  height: 40px;
  border-bottom: 2px dashed var(--muted);
  position: relative;
}
.atlas-loader:after,
.loading-route:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 4px solid #fff;
  background: var(--primary);
  border-radius: 50%;
  animation: travel 1.5s ease-in-out infinite alternate;
}
@keyframes travel {
  to {
    left: 106px;
  }
}
.game-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.game-toolbar [data-gf-fullscreen] {
  margin-left: auto;
}
.game-toolbar [aria-pressed="true"] {
  background: var(--soft);
  border-color: var(--primary);
}
[data-gf-share-msg] {
  font-size: 14px;
  color: var(--muted);
}
.content-section {
  padding-top: 48px;
  padding-bottom: 16px;
}
.content-section > p,
.content-section > ul,
.content-section > ol {
  max-width: 70ch;
}
.intro-grid,
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}
.section-kicker,
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.content-section ul,
.content-section ol {
  padding-left: 24px;
}
.content-section li + li {
  margin-top: 12px;
}
.faq-list {
  max-width: 80ch;
}
.faq-list details {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.faq-list summary {
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
.faq-list p {
  margin: 16px 0 0;
}
.content-section a {
  font-weight: 600;
}
.comments-section {
  border-top: 1px solid var(--border);
  padding-top: 48px;
  margin: 48px 0;
}
.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}
form[data-gf-comment-form] {
  max-width: 70ch;
}
form[data-gf-comment-form] input {
  width: 100%;
}
form[data-gf-comment-form] button {
  margin-top: 12px;
}
.comment-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item time {
  font-size: 12px;
  color: var(--muted);
  margin-left: 16px;
}
.comment-item p {
  margin: 8px 0;
}
.comment-item [data-gf-c-replies] {
  padding-left: 24px;
}
.comment-empty {
  display: none;
}
[data-gf-empty] .comment-empty {
  display: block;
  color: var(--muted);
}
[data-gf-c-owner] {
  font-size: 12px;
  color: var(--primary);
}
.site-footer {
  margin-top: 64px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 32px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer a,
.site-footer p {
  font-size: 14px;
}
.site-footer p {
  margin: 0;
  color: var(--muted);
}
.document,
.page-content {
  max-width: 80ch;
  margin: 48px auto 0;
}
.document h1,
.page-content h1 {
  font-size: 36px;
}
.document h2,
.page-content h2 {
  margin-top: 32px;
}
.document p,
.page-content p {
  line-height: 1.7;
}
.document li,
.page-content li {
  margin-bottom: 8px;
}
.document .updated {
  font-size: 14px;
  color: var(--muted);
}
.site-footer .footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
/* The game's atlas is its central surface. */
.quiz-app {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px;
  background: var(--bg);
  min-height: 100vh;
}
.game-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.game-wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.route-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 18px 0 0 #d9a441;
  margin-right: 18px;
  position: relative;
}
.route-dot:after {
  content: "";
  width: 12px;
  border-top: 1px dashed var(--muted);
  position: absolute;
  left: 9px;
  top: 4px;
}
.mode-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  background: var(--soft);
}
.mode-switch button {
  min-height: 36px;
  font-size: 14px;
  border: 0;
  background: transparent;
}
.mode-switch button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.save-status {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 16px;
  min-height: 18px;
}
.question-header {
  margin-bottom: 16px;
}
.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
}
.question-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.question-title h1 {
  font-size: 28px;
  margin-bottom: 8px;
  max-width: 34ch;
}
.question-title .distance {
  font-size: 14px;
  white-space: nowrap;
  color: var(--muted);
}
.distance strong {
  font-size: 28px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.question-header p {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--muted);
  max-width: 86ch;
}
.route-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 240px;
}
.route-step {
  width: 36px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
}
.route-step.current {
  border-color: var(--primary);
  background: var(--soft);
  color: var(--primary-dark);
}
.route-step.complete {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.play-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}
.map-panel {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--soft);
}
#world-map {
  width: 100%;
  height: 360px;
  background: var(--soft);
  z-index: 0;
}
.map-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
}
.map-caption button {
  font-size: 12px;
  min-height: 32px;
  border: 0;
  padding: 4px 8px;
  background: transparent;
}
.answer-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.answer-panel h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.answer-panel p {
  font-size: 14px;
  line-height: 1.5;
}
.answer-panel label {
  font-size: 12px;
}
.answer-panel select {
  width: 100%;
  font-size: 14px;
  padding: 12px 8px;
  margin-bottom: 12px;
}
.answer-panel > .primary {
  width: 100%;
}
.answer-panel .scoring-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 16px 0 8px;
}
.answer-feedback strong {
  display: block;
  font-size: 18px;
  color: var(--primary-dark);
  margin-top: 12px;
}
.answer-feedback p {
  font-size: 14px;
  margin-top: 8px;
}
.quick-rules {
  font-size: 12px;
  color: var(--muted);
}
.quick-rules summary {
  cursor: pointer;
  min-height: 32px;
  padding-top: 8px;
}
.quick-rules p {
  font-size: 12px;
}
.destination-pin {
  background: transparent;
}
.destination-pin span {
  display: block;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.leaflet-tooltip {
  font-family: inherit;
  font-size: 14px;
  border-radius: 8px;
  padding: 8px 12px;
}
.leaflet-control-zoom a {
  min-width: 36px;
  min-height: 36px;
}
.leaflet-container {
  font-family: inherit;
}
.results {
  max-width: 900px;
  margin: 24px auto;
}
.result-heading {
  text-align: center;
  padding: 16px 0 32px;
}
.result-heading h1 {
  font-size: 36px;
  margin: 8px 0;
}
.result-distance {
  margin: 0 0 16px;
  color: var(--muted);
}
.result-distance strong {
  font-size: 48px;
  letter-spacing: -0.05em;
  color: var(--primary);
}
.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.result-heading #share-status {
  font-size: 14px;
  margin-top: 16px;
}
.result-heading #share-status textarea {
  display: block;
  margin-top: 12px;
}
.review-question {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 16px;
}
.review-question > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.review-question > summary strong {
  font-size: 18px;
  white-space: nowrap;
  color: var(--primary);
}
.review-question > .your-answer {
  margin-top: 16px;
  color: var(--primary);
  font-weight: 600;
}
.review-question > p {
  font-size: 14px;
}
.valid-answers {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.valid-answers li {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 14px;
}
.valid-answers strong {
  font-size: 16px;
  display: block;
}
.tier-label {
  font-size: 12px;
  color: var(--muted);
}
.valid-answers p {
  font-size: 14px;
  margin-top: 4px;
  margin-bottom: 4px;
}
.source-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}
.load-error {
  max-width: 60ch;
  margin: 48px auto;
}
.load-error h1 {
  font-size: 28px;
}
@media (min-width: 1200px) {
  #world-map {
    height: 400px;
  }
  .quiz-app {
    padding: 24px;
  }
  .play-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
@media (max-width: 760px) {
  .play-grid {
    grid-template-columns: 1fr;
  }
  #world-map {
    height: 280px;
  }
  .answer-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 12px;
    padding: 12px 16px;
  }
  .answer-panel .eyebrow,
  .answer-panel h2,
  .answer-panel #selection-help,
  .answer-panel .answer-feedback,
  .answer-panel .scoring-note,
  .answer-panel .quick-rules {
    grid-column: 1/-1;
  }
  .answer-panel h2 {
    font-size: 18px;
  }
  .answer-panel #selection-help {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .answer-panel label {
    grid-column: 1/-1;
    margin-bottom: 4px;
  }
  .answer-panel select {
    margin-bottom: 0;
  }
  .answer-panel .scoring-note {
    margin-top: 8px;
    margin-bottom: 4px;
  }
  .quick-rules {
    display: none;
  }
  .question-title {
    gap: 12px;
  }
  .question-title h1 {
    font-size: 22px;
  }
  .question-header p {
    font-size: 12px;
  }
  .distance strong {
    font-size: 22px;
  }
  .stage {
    height: 850px;
  }
  .intro-grid,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .valid-answers {
    grid-template-columns: 1fr;
  }
  .quiz-app {
    padding: 12px;
  }
  .mode-switch button {
    padding: 8px 12px;
  }
  .game-wordmark {
    font-size: 18px;
  }
  .game-topline {
    gap: 8px;
  }
  .save-status {
    margin-bottom: 12px;
  }
  .result-heading h1 {
    font-size: 28px;
  }
  .review-question > summary {
    font-size: 14px;
    gap: 12px;
  }
  .result-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 24px;
  }
  .site-header,
  main,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-header {
    min-height: 64px;
    gap: 12px;
  }
  .brand,
  .site-brand {
    font-size: 18px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 12px;
  }
  .play-heading {
    display: block;
    margin-bottom: 16px;
  }
  .play-heading p {
    font-size: 14px;
    margin-top: 8px;
  }
  .play-shell {
    padding-top: 16px;
  }
  .stage {
    border-radius: 8px;
    height: 880px;
  }
  .stage-cover .cover-action,
  .stage-cover > button {
    bottom: 32px;
    min-width: 220px;
  }
  .game-toolbar button {
    padding: 8px 12px;
    font-size: 14px;
  }
  .content-section {
    padding-top: 32px;
  }
  .content-section p,
  .content-section li {
    font-size: 16px;
  }
  .site-footer {
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
  }
  .comment-form-grid {
    grid-template-columns: 1fr;
  }
  .document,
  .page-content {
    margin-top: 32px;
  }
  .document h1,
  .page-content h1 {
    font-size: 28px;
  }
  .game-toolbar [data-gf-fullscreen] {
    margin-left: 0;
  }
  .question-meta {
    font-size: 12px;
  }
  .question-title h1 {
    font-size: 20px;
  }
  .distance strong {
    font-size: 22px;
  }
  .quiz-app {
    padding: 12px 8px;
  }
  .route-progress {
    margin-top: 8px;
  }
  #world-map {
    height: 260px;
  }
  .question-header p {
    line-height: 1.5;
  }
  .game-wordmark .route-dot {
    display: none;
  }
  .result-actions button {
    width: 100%;
  }
  .answer-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }
  .answer-panel select {
    margin-bottom: 8px;
  }
  .answer-panel label {
    grid-column: auto;
  }
  .answer-panel > .primary {
    grid-column: 1/-1;
  }
  .map-caption {
    font-size: 12px;
    padding: 4px 8px;
  }
  .result-distance strong {
    font-size: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10000;
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 8px;
}
.brand-mark {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 4px solid var(--border);
}
.comment-replying {
  display: none;
}
[data-gf-replying] .comment-replying {
  display: flex;
  gap: 12px;
  align-items: center;
}
.stage-loading {
  display: none;
}
.stage[data-gf-state="loading"] .stage-loading {
  display: flex;
}
.stage-cover .cover-action {
  display: flex;
  justify-content: center;
  box-shadow: none;
}
.play-heading > div {
  display: flex;
  align-items: baseline;
  gap: 24px;
}
.play-heading .game-dek {
  max-width: 50ch;
}
.content-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
}
.section-heading h2 {
  font-size: 28px;
}
.section-copy p:last-child {
  margin-bottom: 0;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.info-item h3 {
  font-size: 18px;
}
.score-tiers {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
}
.score-tier {
  flex: 1;
  padding: 12px 8px;
  background: var(--soft);
  text-align: center;
  border-right: 1px solid var(--border);
}
.score-tier:last-child {
  border-right: 0;
  background: var(--soft);
}
.score-tier > span {
  font-size: 12px;
  display: block;
  color: var(--muted);
}
.score-tier strong {
  font-size: 22px;
}
.score-tier small {
  font-size: 12px;
  font-weight: 400;
}
.comment-form label {
  margin-top: 16px;
}
.comment-form input {
  width: 100%;
}
.comment-form textarea {
  margin-bottom: 4px;
}
.form-note,
.optional,
.comment-total {
  font-size: 12px;
  color: var(--muted);
}
.comment-submit {
  display: flex;
  align-items: center;
  gap: 16px;
}
.comment-submit p {
  font-size: 14px;
  margin-bottom: 0;
}
.comment {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.comment-byline {
  display: flex;
  gap: 12px;
  align-items: center;
}
.comment-byline time {
  font-size: 12px;
  color: var(--muted);
}
.comment-replies {
  padding-left: 24px;
}
.owner-label {
  font-size: 12px;
  color: var(--primary);
}
.footer-brand {
  min-width: 180px;
}
.footer-small {
  max-width: 28ch;
}
.game-toolbar .toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.stage:fullscreen {
  height: 100vh;
  width: 100vw;
  border-radius: 0;
}
.stage-cover .play-button {
  min-height: 56px;
  min-width: 240px;
  font-size: 18px;
}
.faq-section .faq-list {
  min-width: 0;
}
.document .document-heading {
  margin-bottom: 32px;
}
@media (max-width: 760px) {
  .content-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .play-heading > div {
    display: block;
  }
  .play-heading .game-dek {
    margin-top: 8px;
  }
  .info-grid {
    gap: 16px;
  }
  .site-footer {
    flex-wrap: wrap;
  }
  .section-heading h2 {
    font-size: 24px;
  }
}
@media (max-width: 400px) {
  .score-tiers {
    flex-wrap: wrap;
  }
  .score-tier {
    min-width: 33%;
    border-bottom: 1px solid var(--border);
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .game-toolbar .toolbar-actions {
    gap: 4px;
  }
  .game-toolbar button {
    font-size: 12px;
  }
}
.stage-cover .cover-action {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.stage.stage-expanded {
  position: fixed;
  inset: 0;
  z-index: 20000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.exit-game-view {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1500;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--primary);
  color: var(--text);
}
.stage:is(.stage-expanded, :fullscreen, :-webkit-full-screen) iframe {
  top: 60px !important;
  height: calc(100% - 60px) !important;
}

.rarity-hint {
  margin: 8px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.rarity-hint summary {
  min-height: 44px;
  padding: 12px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.rarity-hint p {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 14px;
  line-height: 1.5;
}
.game-topline {
  flex-wrap: wrap;
}
.mode-switch {
  flex-shrink: 0;
}
