/* Shared by the author preview and the exported game. All rules stay inside an applied root. */
.game-appearance {
  --game-accent: #d5b579;
  --game-accent-rgb: 213, 181, 121;
  --game-accent-ink: #000000;
  --game-button-height: 46px;
  --game-button-font-size: 13px;
  --ga-button-bg: var(--game-accent);
  --ga-button-color: var(--game-accent-ink);
  --ga-button-border: var(--game-accent);
  --ga-button-radius: 4px;
  --ga-button-shadow: 0 8px 24px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .2);
  --ga-button-hover-bg: var(--game-accent);
  --ga-button-hover-shadow: 0 12px 32px rgba(var(--game-accent-rgb), .32);
}

.game-appearance[data-button-style="glass"] {
  --ga-button-bg: linear-gradient(135deg, #25333a, #111b22);
  --ga-button-color: #f7f7f4;
  --ga-button-border: rgba(var(--game-accent-rgb), .66);
  --ga-button-radius: 13px;
  --ga-button-shadow: inset 0 1px rgba(255, 255, 255, .22), 0 10px 28px rgba(0, 0, 0, .25);
  --ga-button-hover-bg: linear-gradient(rgba(var(--game-accent-rgb), .26), rgba(var(--game-accent-rgb), .26)), linear-gradient(#0b1117, #0b1117);
  --ga-button-hover-shadow: inset 0 1px rgba(255, 255, 255, .28), 0 12px 28px rgba(var(--game-accent-rgb), .17);
}

.game-appearance[data-button-style="minimal"] {
  --ga-button-bg: #080a0c;
  --ga-button-color: #f8f4ec;
  --ga-button-border: rgba(var(--game-accent-rgb), .8);
  --ga-button-radius: 2px;
  --ga-button-shadow: inset 0 -2px rgba(var(--game-accent-rgb), .85);
  --ga-button-hover-bg: linear-gradient(rgba(var(--game-accent-rgb), .16), rgba(var(--game-accent-rgb), .16)), linear-gradient(#080a0c, #080a0c);
  --ga-button-hover-shadow: inset 0 -3px var(--game-accent);
}

.game-appearance[data-button-style="neon"] {
  --ga-button-bg: #050c12;
  --ga-button-color: #f3fbfd;
  --ga-button-border: var(--game-accent);
  --ga-button-radius: 1px;
  --ga-button-shadow: inset 0 0 13px rgba(var(--game-accent-rgb), .12), 0 0 14px rgba(var(--game-accent-rgb), .34);
  --ga-button-hover-bg: linear-gradient(rgba(var(--game-accent-rgb), .22), rgba(var(--game-accent-rgb), .22)), linear-gradient(#050c12, #050c12);
  --ga-button-hover-shadow: inset 0 0 22px rgba(var(--game-accent-rgb), .18), 0 0 22px rgba(var(--game-accent-rgb), .65);
}

.game-appearance :is(.ga-button, .menu-actions button, .choice-button, .primary-button, .quiet-button, .icon-button, .osm-control) {
  min-height: var(--game-button-height);
  padding: 10px 19px;
  border: 1px solid var(--ga-button-border);
  border-radius: var(--ga-button-radius);
  background: var(--ga-button-bg);
  color: var(--ga-button-color);
  box-shadow: var(--ga-button-shadow);
  font-size: var(--game-button-font-size);
  line-height: 1.3;
  font-weight: 600;
  text-shadow: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}

.game-appearance[data-button-style="glass"] :is(.ga-button, .menu-actions button, .choice-button, .primary-button, .quiet-button, .icon-button, .osm-control) {
  backdrop-filter: blur(14px);
}

.game-appearance[data-button-style="neon"] :is(.ga-button, .menu-actions button, .choice-button, .primary-button, .quiet-button, .icon-button, .osm-control) {
  letter-spacing: .07em;
  text-shadow: 0 0 9px rgba(var(--game-accent-rgb), .6);
}

.game-appearance :is(.ga-button, .menu-actions button, .choice-button, .primary-button, .quiet-button, .icon-button, .osm-control):hover:not(:disabled) {
  background: var(--ga-button-hover-bg);
  border-color: var(--game-accent);
  box-shadow: var(--ga-button-hover-shadow);
  filter: none;
  transform: translateY(-2px);
}

.game-appearance :is(.ga-button, .menu-actions button, .choice-button, .primary-button, .quiet-button, .icon-button, .osm-control):focus-visible,
.game-appearance .ga-progress:focus-within {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #0b1117, 0 0 0 6px #ffffff;
}

.game-appearance :is(.ga-button, .menu-actions button, .choice-button, .primary-button, .quiet-button, .icon-button, .osm-control):disabled,
.game-appearance .choice-button.is-blocked {
  opacity: .48;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.game-appearance .choice-button small { color: inherit; opacity: .78; }
.game-appearance[data-choice-layout="column"] :is(.stage-actions, .ga-choice-actions) { flex-direction: column; align-items: stretch; }
.game-appearance[data-choice-layout="column"] :is(.stage-actions, .ga-choice-actions) .choice-button { width: 100%; }
.game-appearance[data-video-fit="contain"] :is(.story-video, .stage-image) { object-fit: contain; }
.game-appearance[data-video-fit="cover"] :is(.story-video, .stage-image) { object-fit: cover; }
.game-appearance[data-transition="none"] :is(.stage-shade, .stage-content) { transition: none; }

.game-appearance .ga-progress {
  position: relative;
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 0;
  background: rgba(255, 255, 255, .25);
  isolation: isolate;
}

.game-appearance .ga-progress-fill {
  display: block;
  width: var(--ga-progress, 0%);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--game-accent);
  box-shadow: 0 0 9px rgba(var(--game-accent-rgb), .46);
  pointer-events: none;
}

.game-appearance .ga-progress-input {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  transform: translateY(-50%);
}

.game-appearance .ga-progress-input:disabled { cursor: not-allowed; }
.game-appearance[data-progress-style="segments"] .ga-progress {
  height: 9px;
  border-radius: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 13px, transparent 13px 17px);
}
.game-appearance[data-progress-style="segments"] .ga-progress-fill {
  background: repeating-linear-gradient(90deg, var(--game-accent) 0 13px, transparent 13px 17px);
  box-shadow: none;
}
.game-appearance[data-progress-style="pill"] .ga-progress {
  height: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .55);
}
.game-appearance[data-progress-style="pill"] .ga-progress-fill {
  background: linear-gradient(90deg, rgba(var(--game-accent-rgb), .7), var(--game-accent));
}

@media (prefers-reduced-motion: reduce) {
  .game-appearance :is(.ga-button, .menu-actions button, .choice-button, .primary-button, .quiet-button, .icon-button, .osm-control),
  .game-appearance :is(.stage-shade, .stage-content) { transition: none; }
}
