:root {
  color-scheme: light;
  --ink: #17231d;
  --cream: #f5f0e4;
  --lime: #d9ff57;
  --coral: #ff705d;
  --blue: #5e77ff;
  --line: rgba(23, 35, 29, 0.18);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--cream); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 90% 8%, rgba(94, 119, 255, .13), transparent 26rem),
    linear-gradient(rgba(23, 35, 29, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 29, .045) 1px, transparent 1px),
    var(--cream);
  background-size: auto, 32px 32px, 32px 32px, auto;
}

button, a { font: inherit; }
button { color: inherit; }

.shell { min-height: 100vh; padding: 0 clamp(1.25rem, 4vw, 4rem) 2rem; }

.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { color: inherit; font-size: 1.55rem; letter-spacing: -.07em; text-decoration: none; }
.brand strong { color: var(--blue); }
.topbar p { margin: 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

.welcome {
  position: relative;
  width: min(900px, 100%);
  min-height: calc(100vh - 120px);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 0 8rem;
}

.eyebrow, .now-playing {
  margin: 0 0 1rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(3.35rem, 9vw, 7.7rem); line-height: .87; letter-spacing: -.075em; }
h1 em { color: var(--blue); font-family: Georgia, serif; font-weight: 400; }
.intro { max-width: 550px; margin: 2.1rem auto 2.4rem; font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.55; }

.bored-button {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  padding: 1.15rem 1.3rem 1.15rem 1.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 6px 7px 0 var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.bored-button span:last-child { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; color: white; background: var(--ink); }
.bored-button:hover { transform: translate(2px, 2px); box-shadow: 4px 5px 0 var(--ink); }
.bored-button:active { transform: translate(6px, 7px); box-shadow: 0 0 0 var(--ink); }
.bored-button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.hint { margin-top: 1.5rem; color: rgba(23, 35, 29, .62); font-size: .78rem; }
kbd { padding: .15rem .4rem; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.45); }
.spark { position: absolute; width: 52px; height: 52px; border: 3px solid var(--ink); }
.spark-one { top: 22%; left: 2%; background: var(--coral); transform: rotate(12deg); }
.spark-two { right: 3%; bottom: 25%; border-radius: 50%; background: var(--lime); }

.player { padding-top: 2rem; }
.player-bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.player-bar h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -.04em; }
.now-playing { margin-bottom: .25rem; color: var(--blue); }
.controls { display: flex; align-items: center; gap: .65rem; }
.controls button, .controls a { padding: .7rem 1rem; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: inherit; text-decoration: none; cursor: pointer; }
.controls button:hover, .controls a:hover { color: white; background: var(--ink); }
.controls .icon-button { width: 42px; height: 42px; padding: 0; font-size: 1.4rem; }

.frame-wrap { position: relative; min-height: calc(100vh - 205px); overflow: hidden; border: 2px solid var(--ink); border-radius: 22px; background: white; box-shadow: 6px 7px 0 var(--ink); }
.frame-wrap iframe { display: block; width: 100%; height: calc(100vh - 205px); min-height: 520px; border: 0; opacity: 0; transition: opacity .25s; }
.frame-wrap.ready iframe { opacity: 1; }
.frame-status { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: .8rem; text-align: center; background: white; }
.frame-wrap.ready .frame-status { display: none; }
.loader { width: 38px; height: 38px; border: 4px solid #e3e3e3; border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

[hidden] { display: none !important; }

@media (max-width: 700px) {
  .shell { padding-inline: 1rem; }
  .topbar { height: 68px; }
  .topbar p, .hint, .spark { display: none; }
  .welcome { min-height: calc(100vh - 68px); padding-block: 3rem; }
  .intro { margin-block: 1.7rem 2rem; }
  .player { padding-top: 1rem; }
  .player-bar { align-items: flex-end; margin-bottom: 1rem; }
  .controls { flex-wrap: wrap; justify-content: flex-end; }
  .controls a { display: none; }
  .controls button { padding: .55rem .75rem; font-size: .82rem; }
  .frame-wrap, .frame-wrap iframe { min-height: calc(100vh - 170px); height: calc(100vh - 170px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

