/* play.css — experimental layer (paint mode · greeting · spotify · audio doodle).
   Kept separate so it's easy to keep or throw away. Not yet shipped. */

/* ── 1. PAINT MODE — the mylesdoodles palette (from the portrait) ───────── */
html[data-paint="on"] {
  --paper:   #1c6f5e;   /* teal canvas   */
  --paper-2: #195e50;
  --ink:     #f7f0e0;   /* cream ink     */
  --ink-soft:#e9dec6;
  --muted:   #9fc1b6;
  --line:    rgba(247,240,224,.22);
  --accent:  #ff5c8a;   /* hot pink      */
  --accent-d:#ffd23f;   /* yellow        */
}
html[data-paint="on"] body { background: var(--paper); }
html[data-paint="on"] .hero__h em { color: var(--accent-d); font-style: italic; }
html[data-paint="on"] .accent { color: var(--accent-d); }
html[data-paint="on"] .wordmark__dot { background: var(--accent-d); }
html[data-paint="on"] .hero__portrait img {
  box-shadow: 14px 14px 0 -1px var(--accent), 28px 28px 0 -1px var(--accent-d);
}
html[data-paint="on"] .block--invert { background: #10231f; }
html[data-paint="on"] .seed--published:hover { color: #10231f; }
/* paint toggle button */
.paint {
  border: 1px solid var(--line); background: transparent;
  width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer;
  font-size: .9rem; line-height: 1; display: grid; place-items: center;
  transition: transform .4s, border-color .2s; padding: 0;
}
.paint:hover { transform: rotate(-12deg) scale(1.08); border-color: var(--accent); }
html[data-paint="on"] .paint { border-color: var(--accent-d); }

/* ── 2. POLYGLOT GREETING ───────────────────────────────────────────────── */
.greeting {
  display: flex; align-items: baseline; gap: .6rem;
  margin-bottom: 1.2rem; min-height: 2.2rem;
}
.greeting__word {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500; color: var(--ink); line-height: 1;
  transition: opacity .35s ease, transform .35s ease;
}
.greeting__lang {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  transition: opacity .35s ease;
}
.greeting.swap .greeting__word { opacity: 0; transform: translateY(6px); }
.greeting.swap .greeting__lang { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .greeting__word, .greeting__lang { transition: none; }
}

/* ── 3. SPOTIFY — "lately on rotation" ──────────────────────────────────── */
.spin { margin-top: 2.4rem; }
.spin__label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: color-mix(in srgb, var(--paper) 70%, transparent);
  margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem;
}
.spin__dot { width: .5rem; height: .5rem; border-radius: 50%; background: #1db954; }
.spin__dot--idle { background: var(--muted); }
.spin__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .7rem; grid-template-columns: 1fr;
}
@media (min-width: 620px) { .spin__list { grid-template-columns: 1fr 1fr; } }
.spin__row {
  display: flex; align-items: center; gap: .8rem; text-decoration: none;
  padding: .4rem; border-radius: 8px; transition: background .2s;
  color: inherit;
}
.spin__row:hover { background: rgba(255,255,255,.06); }
.spin__art {
  width: 44px; height: 44px; border-radius: 5px; object-fit: cover; flex: none;
  background: rgba(255,255,255,.1);
}
.spin__meta { min-width: 0; }
.spin__t {
  font-family: var(--read); font-size: .95rem; color: var(--paper);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spin__a {
  font-family: var(--mono); font-size: .72rem;
  color: color-mix(in srgb, var(--paper) 65%, transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── 5. RISK REGISTER — easter egg behind the hero period ───────────────── */
.accent--egg {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: var(--accent); line-height: inherit;
  transition: text-shadow .2s;
}
.accent--egg:hover, .accent--egg:focus-visible {
  outline: none; text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent);
}
.riskmodal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.2rem; }
.riskmodal[hidden] { display: none; }
.riskmodal__backdrop {
  position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 62%, transparent);
  backdrop-filter: blur(3px); animation: riskfade .2s ease;
}
.riskmodal__card {
  position: relative; z-index: 1; width: min(640px, 100%);
  max-height: 86vh; overflow: auto;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: 8px; padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: riskpop .25s ease;
}
@keyframes riskfade { from { opacity: 0; } }
@keyframes riskpop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.riskmodal__x {
  position: absolute; top: .8rem; right: 1rem; background: none; border: none;
  font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .2rem;
}
.riskmodal__x:hover { color: var(--accent); }
.riskmodal__kicker {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .5rem;
}
.riskmodal__h {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -.02em; margin-bottom: 1.3rem;
}
.riskmodal__t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.riskmodal__t th {
  text-align: left; font-family: var(--mono); font-size: .64rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-d); padding: 0 .6rem .5rem 0;
  border-bottom: 1.5px solid var(--line);
}
.riskmodal__t td {
  padding: .6rem .6rem .6rem 0; border-bottom: 1px solid var(--line);
  vertical-align: top; color: var(--ink-soft);
}
.riskmodal__t td:first-child { color: var(--ink); }
.riskmodal__foot {
  margin-top: 1.4rem; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .03em; color: var(--muted);
}
@media (max-width: 520px) {
  .riskmodal__t { font-size: .8rem; }
  .riskmodal__t th, .riskmodal__t td { padding-right: .45rem; }
}

/* ── 4. AUDIO DOODLE — the placeholder guitar player ────────────────────── */
.doodle {
  margin-top: 1.8rem; display: flex; align-items: center; gap: 1rem;
  max-width: 30rem;
}
.doodle__btn {
  flex: none; width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  cursor: pointer; display: grid; place-items: center; font-size: 1rem;
  transition: transform .15s;
}
.doodle__btn:hover { transform: scale(1.07); }
.doodle__bars { flex: 1; display: flex; align-items: center; gap: 3px; height: 2.4rem; }
.doodle__bars span {
  flex: 1; background: color-mix(in srgb, var(--paper) 45%, transparent);
  height: 30%; border-radius: 2px; transition: height .12s ease;
}
.doodle.playing .doodle__bars span { background: color-mix(in srgb, var(--paper) 80%, transparent); }
.doodle__cap {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .04em;
  color: color-mix(in srgb, var(--paper) 60%, transparent); margin-top: .5rem;
}
