/* =========================================================================
   Meditation and sleep  ·  /meditation-and-sleep  (prefix ms-)
   -------------------------------------------------------------------------
   Loaded after home.css, whose night palette (on .wk), type (wk-h1, wk-h2,
   wk-h3, wk-lead, wk-mono), buttons, dawn, paper, FAQ, ledger and close this
   page shares. See app/Views/marketing/meditation_sleep.php for the idea and
   the rules.

   The places are the game's own scenes (200 x 150, standing on their bottom
   edge, `xMidYMax slice`), moving with the hx- animations in app.css. A frame
   that is 4:3 shows a whole place; anything wider loses its top, anything
   narrower its sides, so each place keeps its heart in the middle.

   Public pages are always light-themed in the app's sense, so every color
   here is art direction. Animations always run: there is deliberately no
   prefers-reduced-motion override (owner decision, October 2026).
   ========================================================================= */

.ms { --ms-deep: #0c0a26; --ms-dusk: #1c0c35; --ms-glass: rgba(255,255,255,.045); --ms-edge: rgba(245,237,226,.1); }
/* The player hides its parts with the hidden attribute; their own display would beat it. */
.ms [hidden] { display: none !important; }
.ms main > section { position: relative; isolation: isolate; }
.ms .wk-wrap { z-index: 1; }

/* ---- Hero: the northern lights in a lit window ------------------------- */
.ms-hero {
  overflow: hidden;
  padding: clamp(2rem, 5vh, 4rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(60% 50% at 82% 4%, rgba(88,232,205,.16), transparent 70%),
    radial-gradient(55% 60% at 12% 0%, rgba(122,63,134,.42), transparent 72%),
    linear-gradient(180deg, #150830 0%, var(--night) 78%, #130627 100%);
}
.ms-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.ms-h1 { font-size: clamp(2.5rem, 5.1vw, 5rem); }
.ms-hero .wk-lead { max-width: 34em; }
.ms-btn-ic { display: inline-grid; margin: 0 .55rem 0 -.3rem; }
.ms-btn-ic svg { width: 1.1rem; height: 1.1rem; }

.ms-frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden;
  container-type: size; background: #0f1430;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 100px -40px rgba(0,0,0,.95), 0 0 90px -14px rgba(88,232,205,.32);
}
.ms-scene, .ms-place, .ms-card-art { position: absolute; inset: 0; overflow: hidden; }
.ms-scene > svg, .ms-place > svg, .ms-card-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ms-frame-cap { margin-top: .9rem; text-align: center; color: var(--cream-mute); font-size: .62rem; }

/* The companion on the place's ground line (about y 119 of 150, as in the game). */
.ms-pet { position: absolute; left: 50%; z-index: 2; pointer-events: none; }
.ms-pet .fly { position: relative; display: block; width: 100%; }
.ms-pet--ground { width: 22%; bottom: 17.7%; transform: translateX(-50%); }
.ms-pet-glow {
  position: absolute; left: 50%; top: 55%; width: 150%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,236,170,.4), rgba(255,236,170,0) 62%);
  animation: ms-glow 5s ease-in-out infinite alternate;
}
@keyframes ms-glow { from { opacity: .5; } to { opacity: 1; } }

/* ---- Section heads ------------------------------------------------------ */
.ms-head { max-width: 46rem; }
.ms-head .wk-h2 { max-width: 16em; }
.ms-head .wk-lead { margin-top: 1.1rem; }

/* ---- Listen: the player ------------------------------------------------- */
.ms-listen {
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(246,200,110,.07), transparent 72%),
    #130627;
}
.ms-listen .mk-star { opacity: .3; }
.ms-player { max-width: 1080px; margin: clamp(2rem, 4vw, 3rem) auto 0; }

.ms-tabs { display: flex; gap: .6rem; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ms-tabs::-webkit-scrollbar { display: none; }
.ms-tab {
  flex: 0 0 auto; display: grid; gap: .15rem; text-align: left; cursor: pointer;
  padding: .7rem 1.15rem; border-radius: 16px; font: inherit; color: var(--cream-dim);
  background: var(--ms-glass); border: 1px solid var(--ms-edge);
  transition: background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.ms-tab b { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; color: inherit; }
.ms-tab .wk-mono { font-size: .58rem; color: var(--cream-mute); }
.ms-tab:hover { color: var(--cream); border-color: rgba(245,237,226,.24); }
.ms-tab[aria-selected="true"] {
  color: var(--cream); background: rgba(246,200,110,.08); border-color: rgba(246,200,110,.5);
  box-shadow: 0 0 26px -8px rgba(246,200,110,.55);
}
.ms-tab[aria-selected="true"] .wk-mono { color: var(--lantern); }
.ms-tab:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

.ms-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden;
  container-type: size; background: #0d1130;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 50px 100px -45px rgba(0,0,0,.95), 0 0 80px -16px rgba(110,240,210,.22);
}
/* A soft dark foot under the words and the bar. */
.ms-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,4,22,0), rgba(8,4,22,.42) 45%, rgba(8,4,22,.86));
  opacity: .55; transition: opacity .8s;
}
.ms-stage.is-playing::after, .ms-stage.is-ended::after { opacity: 1; }
.ms-place { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.ms-place.is-on { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }
/* A place out of sight costs nothing: its motion waits. */
.ms-place:not(.is-on) * { animation-play-state: paused !important; }

/* Night sounds' place: just the night, the moon and two hills. */
.ms-nightsky {
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 55% at 72% 22%, rgba(150,170,255,.18), transparent 70%),
    linear-gradient(180deg, #0a0c2a 0%, #151a45 55%, #232a5c 100%);
}
.ms-nightsky .mk-star { opacity: .55; }
.ms-moon {
  position: absolute; right: 18%; top: 14%; width: clamp(38px, 11cqh, 84px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fffbea 0%, #f3ead0 52%, #d9cfb0 100%);
  box-shadow: 0 0 40px 10px rgba(255,246,214,.28), 0 0 120px 40px rgba(190,200,255,.12);
}
.ms-hill { position: absolute; bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.ms-hill--b { left: -15%; width: 80%; height: 30%; bottom: -8%; background: #1a1f4a; }
.ms-hill--f { right: -20%; width: 95%; height: 26%; bottom: -10%; background: #12163a; }

/* The companion floats a little above the middle of the ground, and breathes. */
.ms-pet--float {
  width: clamp(80px, 36cqh, 230px); bottom: 15%;
  transform: translateX(-50%) scale(var(--ms-b, 1));
  transition: transform var(--ms-bt, 1.2s) ease-in-out;
}
.ms-breath {
  position: absolute; left: 50%; bottom: 15%; z-index: 1; pointer-events: none;
  width: clamp(130px, 62cqh, 420px); aspect-ratio: 1;
  transform: translate(-50%, 22%) scale(var(--ms-r, .55));
  opacity: 0; transition: transform var(--ms-bt, 1.2s) ease-in-out, opacity 1s;
}
.ms-breath i {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(134,242,218,.0) 38%, rgba(134,242,218,.16) 58%, rgba(134,242,218,0) 71%);
  box-shadow: inset 0 0 0 1px rgba(134,242,218,.22);
}
.ms-stage.is-breathing .ms-breath { opacity: 1; }

/* The words being said, one sentence at a time. */
.ms-caption {
  position: absolute; left: 7%; right: 7%; bottom: clamp(3.4rem, 15cqh, 5.2rem); z-index: 4; margin: 0;
  text-align: center; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.02rem, 4.4cqh, 1.6rem); line-height: 1.35; color: var(--cream);
  text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 0 24px rgba(8,4,22,.9);
  opacity: 0; transform: translateY(6px); transition: opacity .7s, transform .7s var(--ease);
  min-height: 1.35em;
}
.ms-caption.is-shown { opacity: 1; transform: none; }

/* Press play: the big button in the middle before anything starts. */
.ms-big {
  position: absolute; inset: 0; z-index: 5; width: 100%; cursor: pointer; border: 0; font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem;
  padding-bottom: 22cqh;   /* in the sky, clear of the companion */
  color: var(--cream); background: radial-gradient(60% 60% at 50% 38%, rgba(8,4,22,.42), rgba(8,4,22,.12));
}
.ms-big-ic {
  display: grid; place-items: center; width: clamp(64px, 22cqh, 96px); aspect-ratio: 1; border-radius: 50%;
  background: var(--lantern); color: #1b0a31;
  box-shadow: 0 0 0 1px rgba(255,226,166,.6), 0 0 0 10px rgba(246,200,110,.12), 0 18px 60px -8px rgba(246,200,110,.9);
  transition: transform .3s var(--ease);
  animation: ms-beckon 3.6s ease-in-out infinite;
}
.ms-big-ic svg { width: 42%; height: 42%; margin-left: 6%; }
.ms-big:hover .ms-big-ic { transform: scale(1.06); }
.ms-big:focus-visible .ms-big-ic { outline: 3px solid var(--mint); outline-offset: 4px; }
.ms-big-l { font-family: var(--serif); font-size: clamp(1.2rem, 5cqh, 1.7rem); text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.ms-big small { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-dim); }
@keyframes ms-beckon {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,226,166,.6), 0 0 0 10px rgba(246,200,110,.12), 0 18px 60px -8px rgba(246,200,110,.75); }
  50%      { box-shadow: 0 0 0 1px rgba(255,226,166,.8), 0 0 0 18px rgba(246,200,110,.06), 0 18px 70px -6px rgba(246,200,110,1); }
}
.ms-stage.is-started .ms-big { display: none; }

/* The bar: pause, what's playing, how far along. */
.ms-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; align-items: center; gap: .8rem; padding: .8rem 1.1rem 1rem;
}
.ms-pp {
  flex: 0 0 auto; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(245,237,226,.35); background: rgba(8,4,22,.35); color: var(--cream);
  transition: border-color .25s, box-shadow .25s;
}
.ms-pp:hover { border-color: var(--mint); box-shadow: 0 0 18px rgba(110,240,210,.4); }
.ms-pp svg { width: 1.05rem; height: 1.05rem; }
.ms-pp .ms-pp-play svg { margin-left: 2px; }
.ms-pp-play { display: none; }
.ms-stage.is-paused .ms-pp-play { display: grid; }
.ms-stage.is-paused .ms-pp-pause { display: none; }
.ms-now { flex: 1 1 auto; min-width: 0; color: var(--cream); font-family: var(--serif); font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-time { flex: 0 0 auto; color: var(--cream-dim); font-size: .64rem; }
.ms-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(245,237,226,.1); }
.ms-prog b { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--mint), var(--lantern)); box-shadow: 0 0 10px rgba(110,240,210,.6); }

/* The end: what that was, and where to get the rest. */
.ms-end {
  position: absolute; inset: 0; z-index: 7; padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(70% 70% at 50% 50%, rgba(8,4,22,.72), rgba(8,4,22,.5));
  animation: ms-fade .8s var(--ease) both;
}
.ms-end[hidden] { display: none; }
.ms-end .wk-mono { color: var(--lantern); font-size: .64rem; }
.ms-end .wk-h3 { margin: .35em 0 .3em; font-size: clamp(1.5rem, 7cqh, 2.6rem); }
.ms-end p:not(.wk-mono) { margin: 0 auto; max-width: 30em; color: var(--cream-dim); line-height: 1.55; font-size: clamp(.9rem, 3.4cqh, 1.05rem); }
.ms-end-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1.4rem; margin-top: 1.3rem; }
.ms-end .wk-play { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.ms-end .wk-play-ic svg { width: 1rem; height: 1rem; }
@keyframes ms-fade { from { opacity: 0; } to { opacity: 1; } }

/* Night sounds: a tile for each, lit while it plays. */
.ms-mixer { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .6rem; margin-top: 1rem; }
.ms-mixer[hidden] { display: none; }
.ms-snd {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; cursor: pointer;
  padding: .85rem .5rem .7rem; border-radius: 16px; font: inherit; color: #fff;
  background: linear-gradient(160deg, var(--t1), var(--t2)); border: 1px solid rgba(255,255,255,.08);
  opacity: .58; filter: saturate(.7); transition: opacity .3s, filter .3s, box-shadow .3s, transform .3s var(--ease);
}
.ms-snd svg { width: 38px; height: 38px; }
.ms-snd b { font-size: .8rem; font-weight: 600; line-height: 1.2; text-align: center; }
.ms-snd:hover { opacity: .85; transform: translateY(-2px); }
.ms-snd[aria-pressed="true"] { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--lantern), 0 10px 30px -10px rgba(246,200,110,.7); }
.ms-snd:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.ms-note { margin: 1rem 0 0; color: var(--cream-mute); font-size: .9rem; line-height: 1.6; max-width: 52em; }

/* ---- The tour ----------------------------------------------------------- */
.ms-tour {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: linear-gradient(180deg, #130627 0%, #170932 100%);
}
.ms-tour-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ms-tour .wk-h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.ms-video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(50% 60% at 70% 20%, rgba(88,232,205,.18), transparent 70%),
    radial-gradient(60% 60% at 20% 90%, rgba(122,63,134,.5), transparent 70%),
    #120728;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 90px -45px rgba(0,0,0,.95);
}
.ms-video-play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: transparent; }
.ms-video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms-video-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,4,22,0) 50%, rgba(8,4,22,.35)); }
.ms-video-btn {
  position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 4.6rem; height: 4.6rem; border-radius: 50%;
  background: rgba(17,5,33,.82); color: var(--lantern);
  box-shadow: 0 0 0 1px rgba(246,200,110,.55), 0 14px 40px -10px rgba(0,0,0,.8);
  transition: transform .3s var(--ease), background .3s;
}
.ms-video-btn svg { margin-left: 4px; }
.ms-video-play:hover .ms-video-btn { transform: translate(-50%, -50%) scale(1.07); background: rgba(17,5,33,.95); }
.ms-video-play:focus-visible { outline: 3px solid var(--mint); outline-offset: -3px; }
.ms-video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ms-video-note { margin: .8rem 0 0; color: var(--cream-mute); font-size: .78rem; text-align: right; }

/* ---- Meditate ----------------------------------------------------------- */
.ms-sec { padding: clamp(4.5rem, 9vw, 7.5rem) 0; content-visibility: auto; contain-intrinsic-size: auto 1400px; }
.ms-meditate { background: linear-gradient(180deg, #170932 0%, var(--ms-dusk) 55%, #160a30 100%); }
.ms-meditate .wk-glow { top: 6%; }
.ms-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2.2rem, 4.5vw, 3.2rem);
}
.ms-card {
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--ms-glass); border: 1px solid var(--ms-edge);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.9);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.ms-card:hover { transform: translateY(-4px); border-color: rgba(246,200,110,.32); box-shadow: 0 40px 70px -40px rgba(0,0,0,.95), 0 0 50px -20px rgba(246,200,110,.35); }
.ms-card .ms-card-art { position: relative; inset: auto; aspect-ratio: 16 / 10; background: #10142e; }
.ms-card-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.05rem 1.2rem 1.25rem; flex: 1 1 auto; }
.ms-card-body .wk-mono { font-size: .6rem; }
.ms-card-body h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.55rem; letter-spacing: -.01em; color: var(--cream); line-height: 1.1; }
.ms-card-body p:not(.wk-mono) { margin: 0; color: var(--cream-dim); font-size: .93rem; line-height: 1.6; }
.ms-mins { margin-top: auto; padding-top: .55rem; color: var(--lantern) !important; font-size: .6rem !important; }
.ms-also { margin: 1.5rem 0 0; color: var(--cream-mute); font-size: .98rem; line-height: 1.6; max-width: 46em; }

.ms-points {
  list-style: none; padding: 1.8rem 0 0; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem;
  border-top: 1px solid var(--ms-edge);
}
.ms-points li { display: flex; gap: .7rem; align-items: flex-start; color: var(--cream-dim); font-size: .95rem; line-height: 1.55; }
.ms-points .ico, .ms-points svg { flex: 0 0 auto; margin-top: .2rem; color: var(--mint); }
.ms-points b { color: var(--cream); font-weight: 600; }

/* Calm courses: a card per course, its place as it looks on the last day, and every day by name. */
.ms-course { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.ms-course-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem clamp(2rem, 5vw, 4rem); align-items: end; }
.ms-course-body .wk-h3 { margin-bottom: 0; }
.ms-course-body > p { color: var(--cream-dim); font-size: 1.02rem; line-height: 1.7; margin: 0; }
.ms-grid--courses { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); }
/* 4:3 shows the whole place, so whatever the days add (the cairn, the moon, the roses) is in the picture. */
.ms-card--course .ms-card-art { aspect-ratio: 4 / 3; }
.ms-days { list-style: none; padding: 0; margin: .8rem 0 0; }
.ms-days li {
  display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; align-items: baseline; gap: .5rem;
  padding: .45rem 0; border-top: 1px solid var(--ms-edge); color: var(--cream-dim); font-size: .92rem; line-height: 1.4;
}
.ms-days li .wk-mono { color: var(--lantern); font-size: .62rem; }
.ms-days b { font-weight: 500; color: var(--cream); }
.ms-days .wk-tag { margin-left: 0; }

/* What's free in a section, and what paid plans add, in one quiet line. */
.ms-tiers { margin: 1.1rem 0 0; color: var(--cream-mute); font-size: .9rem; line-height: 1.9; }
.ms-tiers .wk-tag { margin-left: 0; margin-right: .3rem; }
.ms-tiers .wk-tag:not(:first-child) { margin-left: .6rem; }

/* ---- Sleep -------------------------------------------------------------- */
.ms-sleep {
  overflow: hidden;
  background:
    radial-gradient(60% 40% at 80% 10%, rgba(107,155,245,.12), transparent 70%),
    linear-gradient(180deg, #160a30 0%, var(--ms-deep) 30%, #0b0d2a 100%);
}
.ms-sleep .mk-star { opacity: .45; }
.ms-sleep .wk-mono:not(.ms-mins) { color: #a9c3ff; }
.ms-card--night { background: rgba(120,140,255,.05); border-color: rgba(169,195,255,.12); }
.ms-card--night:hover { border-color: rgba(169,195,255,.36); box-shadow: 0 40px 70px -40px rgba(0,0,0,.95), 0 0 50px -20px rgba(120,150,255,.4); }
.ms-sounds {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid rgba(169,195,255,.14);
}
.ms-sounds .wk-h3 { margin-top: 0; }
.ms-sound-list { color: var(--cream-dim); font-size: 1.02rem; line-height: 1.7; margin: 0 0 1rem; }
.ms-sleep .wk-link { color: #c6d6ff; }
.ms-sleep-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.ms-sleep-points li { color: var(--cream-dim); font-size: .97rem; line-height: 1.6; padding-left: 1.4rem; position: relative; }
.ms-sleep-points li::before { content: ""; position: absolute; left: 0; top: .72em; width: .75rem; height: 1px; background: #a9c3ff; }
.ms-sleep-points b { color: var(--cream); font-weight: 600; }
.ms-timers { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .55rem; color: var(--cream-mute) !important; font-size: .62rem !important; }
.ms-timers i { font-style: normal; opacity: .5; }
.ms-timers .is-free { color: var(--mint); border: 1px solid rgba(134,242,218,.4); border-radius: 999px; padding: .15rem .5rem; margin-right: .4rem; }

/* ---- In between ---------------------------------------------------------- */
.ms-between { background: linear-gradient(180deg, #0b0d2a 0%, #110826 45%, #130627 100%); }
.ms-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.ms-trio > div { padding: 1.4rem 1.4rem 1.5rem; border-radius: 20px; background: var(--ms-glass); border: 1px solid var(--ms-edge); }
.ms-trio-ic {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  color: var(--lantern); background: rgba(246,200,110,.1); box-shadow: 0 0 22px -6px rgba(246,200,110,.5);
}
.ms-trio h3 { margin: .9rem 0 .5rem; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: var(--cream); }
.ms-trio p { margin: 0; color: var(--cream-dim); font-size: .95rem; line-height: 1.6; }
.ms-noticed { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.ms-noticed header { max-width: 44rem; }
.ms-noticed header > p:not(.wk-mono) { color: var(--cream-dim); line-height: 1.7; margin: 0; }

/* ---- Paper -------------------------------------------------------------- */
.ms .wk-ledger { margin-top: clamp(1rem, 3vw, 2.5rem); }
.ms-disclaimer { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.4rem; border-top: 1px solid var(--rule); }

/* ---- Smaller screens ---------------------------------------------------- */
@media (max-width: 960px) {
  .ms-hero-grid, .ms-tour-grid, .ms-course-body, .ms-sounds { grid-template-columns: minmax(0, 1fr); }
  .ms-hero-art { max-width: 560px; width: 100%; margin: 0 auto; }
  .ms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-trio, .ms-points { grid-template-columns: minmax(0, 1fr); }
  .ms-video-note { text-align: left; }
}
@media (max-width: 640px) {
  .ms-grid { grid-template-columns: minmax(0, 1fr); }
  .ms-stage { aspect-ratio: 4 / 5; border-radius: 20px; }
  .ms-frame { border-radius: 20px; }
  .ms-hero .wk-cta .wk-btn { width: 100%; }
  .ms-mixer { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
  .ms-snd { padding: .65rem .25rem .55rem; border-radius: 13px; }
  .ms-snd svg { width: 30px; height: 30px; }
  .ms-snd b { font-size: .68rem; }
}
