:root {
  --page-bg: #050504;
  --header-bg: #080705;
  --cream: #efe3cf;
  --gold: #d7ab61;
  --gold-bright: #efc677;
  --line: rgba(198, 148, 66, 0.72);
  --header-height: 96px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  overflow: hidden;
  color: var(--cream);
  background: var(--page-bg);
  font-family: Georgia, "Times New Roman", serif;
}

button {
  font: inherit;
}

.idea-switcher {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto 0;
  height: var(--header-height);
  display: grid;
  grid-template-rows: 50px 46px;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% -60px, rgba(145, 91, 28, 0.16), transparent 250px),
    linear-gradient(180deg, #0b0906 0%, #060504 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.65),
    0 8px 22px rgba(0, 0, 0, 0.45);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(198, 148, 66, 0.22);
}

.brand {
  color: var(--gold-bright);
  font-size: 20pt;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.025em;
  text-shadow: 0 1px 10px rgba(213, 165, 85, 0.18);
}

.control-row {
  display: grid;
  grid-template-columns: minmax(52px, 90px) minmax(180px, auto) minmax(52px, 90px);
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 2vw, 1.6rem);
  padding: 0 0.7rem;
}

.control-label {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--cream);
  font-size: 14pt;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.idea-counter {
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 8.5pt;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arrow-button {
  width: 100%;
  min-width: 52px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.3rem;
  color: var(--gold-bright);
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.arrow-button:hover,
.arrow-button:focus-visible {
  color: #ffe0a2;
  background: rgba(200, 151, 73, 0.11);
  outline: 1px solid rgba(223, 176, 99, 0.45);
  outline-offset: 1px;
}

.arrow-button:active {
  transform: translateY(1px);
}

.arrow-button svg {
  width: min(64px, 100%);
  height: 34px;
  overflow: visible;
  fill: rgba(7, 6, 4, 0.98);
  stroke: currentColor;
  stroke-width: 3.25;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px #000);
}

.content-frame {
  position: fixed;
  inset: var(--header-height) 0 0;
  background: #fff;
}

.content-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #fff;
}

@media (max-width: 520px) {
  :root {
    --header-height: 88px;
  }

  .idea-switcher {
    grid-template-rows: 45px 43px;
  }

  .brand {
    font-size: 20pt;
  }

  .control-row {
    grid-template-columns: 54px minmax(165px, 1fr) 54px;
    gap: 0.25rem;
    padding-inline: 0.3rem;
  }

  .control-label {
    gap: 0.35rem;
    font-size: 14pt;
  }

  .idea-counter {
    display: none;
  }

  .arrow-button {
    min-width: 48px;
    padding-inline: 0;
  }

  .arrow-button svg {
    width: 52px;
    height: 30px;
  }
}

@media (max-width: 370px) {
  .control-label {
    font-size: 12.5pt;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arrow-button {
    transition: none;
  }
}
