/* The wake coach (web/wake.js): "Turn on from your phone". The same night
   glass and aurora as the link capsule (link.css), as a sky at the top of
   the sheet, in every skin; the steps underneath use the skin's own ink. */

.wake-sheet { --a1: #ffb35c; --a2: #ff6a2b; --a3: #ffe2a8; }
.wake-sheet[data-mood="ice"] { --a1: #5ee7ff; --a2: #7a6bff; --a3: #3fd3a0; }
.wake-sheet[data-mood="ember-low"] { --a1: #ff8a5c; --a2: #6d5a8c; --a3: #2b3550; }

.wake-sky {
  position: relative; height: 172px; margin: 0 0 18px; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: #05070d; box-shadow: 0 18px 40px -22px #000c, 0 0 0 1px #ffffff14 inset, 0 0 46px -20px var(--a1);
  transition: box-shadow .8s;
}
.wake-sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; mix-blend-mode: screen; }
.wake-glow { position: absolute; inset: -50% -20%; z-index: -1; pointer-events: none; }
.wake-glow, .wake-glow::after {
  background:
    radial-gradient(38% 55% at 25% 65%, color-mix(in srgb, var(--a1) 55%, transparent), transparent 70%),
    radial-gradient(34% 50% at 72% 38%, color-mix(in srgb, var(--a2) 55%, transparent), transparent 70%),
    radial-gradient(30% 45% at 50% 95%, color-mix(in srgb, var(--a3) 40%, transparent), transparent 70%);
  filter: blur(16px) saturate(1.25); opacity: .6;
  animation: wake-drift 10s ease-in-out infinite alternate;
  transition: background .8s;
}
@keyframes wake-drift { to { transform: translate3d(7%, -5%, 0) scale(1.12); } }

.wake-body h3 { margin: 2px 0 8px; font-size: 25px; line-height: 1.12; letter-spacing: -.03em; font-weight: 750; text-align: left; }
.wake-kicker { margin: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.wake-say { margin: 0 0 16px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.wake-small { margin: 12px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--ink-soft); }

/* The ways: big tappable cards; the one for this TV glows. */
.wake-ways { display: grid; gap: 10px; }
.wake-way {
  position: relative; display: grid; gap: 4px; text-align: left; padding: 16px 18px; border-radius: 20px; cursor: pointer;
  background: var(--body); border: 1px solid var(--body-edge); box-shadow: var(--shadow); color: var(--ink); font: inherit;
  transition: transform .1s;
}
.wake-way b { font-size: 18px; letter-spacing: -.02em; }
.wake-way small { font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.wake-way.rec { border-color: transparent; box-shadow: 0 0 0 2px var(--a1), 0 14px 30px -18px var(--a2); }
.wake-way.pressed { transform: scale(.98); }
.wake-rec { justify-self: start; margin-bottom: 2px; padding: 3px 8px; border-radius: 99px; font-size: 9.5px; text-transform: uppercase; color: #1a0d05; background: linear-gradient(90deg, var(--a3), var(--a1)); }

/* The steps: numbered, each one ticks off when tapped. */
.wake-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wake-steps button {
  width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: 18px; cursor: pointer;
  background: var(--body); border: 1px solid var(--body-edge); color: var(--ink); font: inherit;
}
.wake-steps b { display: block; font-size: 16px; }
.wake-steps small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.wake-n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--mono);
  background: color-mix(in srgb, var(--a1) 22%, transparent); color: var(--ink); transition: background .2s;
}
.wake-steps button.done .wake-n { background: var(--a1); color: #1a0d05; }
.wake-steps button.done .wake-n::before { content: '✓'; }
.wake-steps button.done .wake-n { font-size: 0; }
.wake-steps button.done .wake-n::before { font-size: 14px; }
.wake-steps button.done b { text-decoration: line-through; text-decoration-color: var(--a1); }

.wake-wait { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; color: var(--ink-soft); }
.wake-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 12px var(--a1); animation: wake-pulse 1.2s ease-in-out infinite; }
@keyframes wake-pulse { 50% { opacity: .3; transform: scale(.7); } }

.wake-ai { margin-top: 4px; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--a1) 9%, var(--body)); border: 1px solid color-mix(in srgb, var(--a1) 30%, transparent); }
.wake-ai-head { margin: 0 0 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.wake-ai ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; }

/* TV settings: the one row that opens the coach. */
.wake-row small { display: block; font: 500 11px/1.3 var(--mono); text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }

@media (prefers-reduced-motion: reduce) {
  .wake-glow, .wake-glow::after, .wake-dot { animation: none; }
}
