html,
body {
  margin: 0;
  min-height: 100vh;
  background: #10161d;
  color: #f4f2ea;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

#free-orcon-root {
  width: min(100vw, calc(100dvh * 16 / 9));
  height: min(100dvh, calc(100vw * 9 / 16));
}

.fo-shell {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(180deg, #0d3c55 0%, #10202d 100%);
}

.fo-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #0d3c55;
}

.fo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
}

.fo-overlay.is-hidden {
  display: none;
}

.fo-overlay--menu {
  background-position: center;
  background-size: cover;
}

.fo-overlay--loading {
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.fo-overlay--end {
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.fo-overlay--pause {
  background: linear-gradient(
    180deg,
    rgba(6, 20, 30, 0.38) 0%,
    rgba(6, 20, 30, 0.72) 100%
  );
}

.fo-panel {
  width: min(100%, 480px);
  padding: 28px 28px 24px;
  border-radius: 20px;
  background: rgba(7, 19, 28, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.fo-interstitial-copy {
  padding: 18px 24px;
  border-radius: 20px;
  background: rgba(7, 19, 28, 0.48);
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.fo-interstitial-copy {
  align-self: flex-start;
  min-width: min(72vw, 760px);
  padding: 24px 36px;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fo-end-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.fo-end-panel {
  position: absolute;
  left: 50.3%;
  top: 60.2%;
  width: min(31.8vw, 610px);
  min-height: min(20.4vh, 220px);
  transform: translateX(-50%);
  border-radius: 20px;
  background: rgb(7, 58, 90);
  border: 4px solid rgb(242, 228, 56);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.fo-end-accent {
  height: min(1.2vh, 12px);
  background: rgb(242, 228, 56);
}

.fo-end-grid {
  display: grid;
  grid-template-columns: 1fr min(0.18vw, 3px) 1fr;
  align-items: center;
  min-height: calc(min(20.4vh, 220px) - min(1.2vh, 12px));
  padding: 26px 30px 22px;
  box-sizing: border-box;
}

.fo-end-divider {
  align-self: stretch;
  background: rgba(242, 228, 56, 0.82);
  border-radius: 999px;
}

.fo-end-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fo-end-col:last-child {
  padding-left: 24px;
}

.fo-end-label {
  color: rgb(242, 228, 56);
  font-size: clamp(1rem, 1.5vw, 2rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fo-end-value {
  color: rgb(248, 252, 255);
  font-size: clamp(1.2rem, 2vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  word-break: break-word;
}

.fo-overlay--end.is-win .fo-end-col:last-child .fo-end-value {
  color: rgb(108, 231, 122);
}

.fo-overlay--end.is-loss .fo-end-col:last-child .fo-end-value {
  color: rgb(255, 110, 98);
}

.fo-end-prompt {
  position: absolute;
  left: 50%;
  top: calc(60.2% + min(22vh, 240px));
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(7, 19, 28, 0.52);
  color: rgb(242, 228, 56);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

.fo-header {
  max-height: 48%;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35));
}

.fo-menu-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8% 0 6%;
  box-sizing: border-box;
  gap: 4%;
}

.fo-menu-actions {
  width: min(38vw, 430px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fo-menu-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: center;
}

.fo-menu-button-image {
  display: block;
  width: 100%;
  height: auto;
}

.fo-menu-button:hover,
.fo-menu-button:focus-visible,
.fo-menu-button.is-selected {
  outline: none;
  transform: scale(1.015);
  filter: drop-shadow(0 0 0.65rem rgba(255, 245, 160, 0.55));
}

.fo-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fo-copy {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
}

.fo-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fo-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  color: #1d1710;
  background: linear-gradient(180deg, #ffd768 0%, #d79b0c 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4),
    0 12px 22px rgba(0, 0, 0, 0.28);
}

.fo-button:hover,
.fo-button:focus-visible,
.fo-button.is-selected {
  transform: translateY(-1px);
  outline: none;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4),
    0 0 0 3px rgba(255, 245, 160, 0.55),
    0 12px 22px rgba(0, 0, 0, 0.28);
}

.fo-button--ghost {
  color: #f7f2e3;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.fo-button--ghost.is-selected {
  box-shadow: 0 0 0 3px rgba(255, 245, 160, 0.4);
}

.fo-status {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fo-loading {
  padding: 16px 22px;
  border-radius: 999px;
  background: rgba(7, 19, 28, 0.84);
  border: 2px solid rgba(255, 255, 255, 0.16);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fo-tip {
  margin-top: 14px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 720px) {
  .fo-overlay {
    padding: 18px;
  }

  .fo-menu-actions {
    width: min(58vw, 360px);
    gap: 8px;
  }

  .fo-panel {
    padding: 22px 20px 18px;
  }
}

@media (max-width: 480px) {
  .fo-menu-stage {
    gap: 3%;
    padding: 6% 0 4%;
  }

  .fo-header {
    max-height: 42%;
  }

  .fo-menu-actions {
    width: min(70vw, 320px);
    gap: 6px;
  }
}
