/* zombo.css */
:root{
  --bg-top: #071a5a;
  --bg-mid: #1a4fb7;
  --ink: #0b1b33;
  --soft-ink: rgba(11,27,51,.75);
  --card: rgba(255,255,255,.72);
  --shadow: 0 14px 32px rgba(10, 18, 40, .18);
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  color: var(--ink);
  font-family: ui-rounded, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    linear-gradient(to bottom,
      var(--bg-top) 0px,
      var(--bg-mid) 120px,
      #ffffff 200px,
      #ffffff 100%);
  overflow-x: hidden;
}

.page{
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px 56px;
  gap: 18px;
}

.hero{
  width: min(1100px, 96vw);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 6px;
}

.logo{
  width: min(980px, 92vw);
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .18));
}

.spinner-area{
  width: min(920px, 96vw);
  display: grid;
  place-items: center;
  gap: 12px;
  position: relative;
  padding: 12px 0 6px;
}

.pinwheel-wrap{
  width: min(320px, 72vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  position: relative;
}

.pinwheel{
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(255,255,255,0) 40%),
    conic-gradient(
      #ffe4ef 0deg 51.43deg,
      #fff7cc 51.43deg 102.86deg,
      #e9e2ff 102.86deg 154.29deg,
      #dcfbff 154.29deg 205.72deg,
      #e6ffe8 205.72deg 257.15deg,
      #fff0da 257.15deg 308.58deg,
      #f3f1d2 308.58deg 360deg
    );
  border: 6px solid rgba(255,255,255,.85);
  box-shadow: var(--shadow);
  animation: spin 1.55s linear infinite;
  position: relative;
}

.pinwheel::after{
  content: "";
  position: absolute;
  inset: 50%;
  width: 20%;
  height: 20%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, rgba(240,240,255,.92));
  border: 2px solid rgba(10, 18, 40, .12);
  box-shadow: 0 10px 16px rgba(10, 18, 40, .12);
}

@keyframes spin{
  to { transform: rotate(360deg); }
}

.hint{
  margin: 0;
  font-size: 0.98rem;
  color: var(--soft-ink);
}

.speaker{
  position: absolute;
  right: 10px;
  top: 10px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  color: #0a2152;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.75));
  box-shadow: 0 14px 28px rgba(10, 18, 40, .18);
  display: grid;
  place-items: center;
  transition: transform .12s ease, box-shadow .12s ease;
}

.speaker:hover{ transform: translateY(-1px); }
.speaker:active{ transform: translateY(0px) scale(.98); }
.speaker:focus-visible{
  outline: 3px solid rgba(26, 79, 183, .35);
  outline-offset: 3px;
}

.icon{ display: none; }
.speaker[data-playing="false"] .icon-off{ display: block; }
.speaker[data-playing="true"] .icon-on{ display: block; }

.poem{
  width: min(820px, 92vw);
  margin-top: 8px;
  background: var(--card);
  border: 1px solid rgba(10, 18, 40, .08);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(10, 18, 40, .08);
  padding: 18px 18px;
  backdrop-filter: blur(8px);
}

.poem p{
  margin: 0;
  line-height: 1.65;
  font-size: 1.05rem;
}

@media (max-width: 520px){
  .poem{ border-radius: 16px; }
}
