@import url('../practice-motion.css');
@import url('../clean-motion.css');
@import url('./reviews/gallery.css');

.layer.review-profile::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background: url('./reviews/rating-badge.svg') center / contain no-repeat;
}
@media (prefers-reduced-motion:reduce) {
  :root { --digital-tree-art:url('/seasonal/digital-tree.svg#still'); }
}
/* The backing artwork, saved layers and pointer input share a single 16:9 canvas. */
.slide-content .reaction-preview { position:absolute; object-fit:contain; pointer-events:none; }
.slide-content .unity-module-badge { position:absolute; pointer-events:none; user-select:none; }
@media (prefers-reduced-motion:reduce), print {
  .slide-content .unity-module-badge { display:none; }
}
.festival-motion {
  position:absolute; inset:0; z-index:6; overflow:hidden;
  pointer-events:none; user-select:none; contain:layout paint;
}
.festival-snowfall {
  position:absolute; inset:0; pointer-events:none;
  /* Leave the middle clear for titles, prices, evidence and QR codes. */
  mask-image:linear-gradient(90deg,#000 2%,#000a 6%,transparent 11% 89%,#000a 94%,#000 98%),
             linear-gradient(#000a,transparent 10% 90%,#000a);
}
.festival-snow {
  position:absolute; top:0; display:block; height:100%; width:var(--size);
  margin-left:calc(var(--size) * -.5);
  --drift:9px;
  animation:lesson-snowfall var(--period) linear var(--phase) infinite;
}
.festival-snow:nth-child(even) { --drift:-12px; }
.festival-snow::before {
  content:""; display:block; width:100%; aspect-ratio:1;
  background:linear-gradient(135deg,#fff 9%,#e0fff9 38%,#72a6b8 83%);
  mask:url('/v3-deck/materials/snow-pixel.svg') center / contain no-repeat;
}
.festival-snow:nth-child(even)::before {
  background:linear-gradient(135deg,#fff 9%,#f3edff 38%,#a185c4 83%);
}
@keyframes lesson-snowfall {
  0%   { transform:translate(0,calc(-1 * var(--size))); opacity:0; }
  12%  { opacity:.66; }
  48%  { transform:translate(var(--drift),calc(48% - var(--size) * .52)); }
  85%  { opacity:.66; }
  100% { transform:translate(0,100%); opacity:0; }
}
.festival-motion .festival-light {
  position:absolute; display:block; width:var(--size); height:var(--size);
  margin:calc(var(--size) * -.5); opacity:.7;
  animation-delay:var(--phase); animation-duration:var(--period);
  animation-timing-function:ease-in-out; animation-iteration-count:infinite;
  border-radius:50%;
  background:radial-gradient(circle,#fff 0 16%,#ffedaa 22%,#ffc575 36%,#ffab5b33 57%,transparent 72%);
  box-shadow:0 0 15px #ffaf5552;
  animation-name:lesson-lantern;
}
@keyframes lesson-lantern {
  0%,100% {opacity:.33; transform:scale(.78)} 55% {opacity:1; transform:scale(1.28)}
}
@media (prefers-reduced-motion:reduce),print {
  .festival-motion {display:none}
  .festival-motion i {animation:none}
}
.slide-surface.winter-slide {
  background: #0f0b25 !important;
}
.slide-surface.winter-slide[data-art-pending],
.slide-surface.winter-slide > .slide-content[data-art-unavailable] {
  background:linear-gradient(115deg,#e5e0f6,#e3effa 62%,#c9eced) !important;
}
.slide-surface[data-art-pending] > .slide-content,
.slide-surface[data-art-pending] > .slide-resident {
  opacity:0;
}

.winter-slide .winter-frame {
  display: none;
}

.slide-surface.winter-slide .slide-content {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
}
#presenter-ink, body.presenter #presenter-ink, #ink {
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage-wrap:fullscreen {
  padding: 0;
  border: 0;
  background: #0c0a24;
}

.winter-slide .slide-resident {
  right: 22px;
  bottom: 18px;
  box-sizing: border-box;
  width: 106px;
  height: auto;
  padding: 2px 4px;
  border-radius: 4px;
  background: #f4f7fc;
  filter: none;
}

.winter-slide .clean-code-thought {
  background: linear-gradient(140deg, #21193bf2, #191933ed 68%, #313d58f2);
  border-color: #c2d7ff8c;
  box-shadow: inset 0 1px #fff4, 0 4px 16px #0e123450;
}

.winter-slide .clean-code-thought span + span { color: #bdf4ef; }
.winter-slide .clean-campus-caption {
  background: linear-gradient(135deg, #152340dc, #342753d9 74%, #233f55e0);
  border-color: #c5e9ffb0;
  box-shadow: inset 0 1px #fff3, 0 6px 22px #14182d45;
}

.winter-slide .winter-mission-copy {
  color: #342f52;
  background: linear-gradient(130deg, #fff, #e9f4f9 65%, #e8e6fb);
}

.winter-slide .deck-card-main {
  background: linear-gradient(135deg, #fff 12%, #effbfb 49%, #fff5e7 85%, #ffeef1);
  border: 2px solid #c0e4e1;
  box-shadow: inset 0 2px 0 #fff, inset 0 -2px 3px #99b6b331, 0 4px 9px #15364e23;
}
.winter-slide .deck-card-illustration {
  border-radius: 14px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 92%, transparent);
}
.winter-slide .deck-card-copy strong { color: #292353; }
.winter-slide .deck-card-copy > span { color: #342f52; }
.winter-slide .deck-priority-card.is-selected .deck-card-main {
  border-color: #c0748d;
  background: linear-gradient(140deg, #fff 8%, #ffedf1 66%, #fff0d7);
}
.winter-slide .deck-priority-card[data-rank="1"] .deck-card-main {
  border-color: #84b4b0;
  background: linear-gradient(140deg, #fff 8%, #e7f6ee 58%, #e4edf5);
}
.winter-slide .deck-priority-controls { background:#f0f0fb; border-color:#bcbcd7; }
.winter-slide .deck-priority-controls button,.winter-slide .deck-priority-rank { color:#513caa; }
.winter-slide .deck-reaction.is-selected .deck-reaction-selected {
  background: #dcf4ea;
  color: #292353;
  border-color: #fff;
}
.winter-slide .deck-card-main:focus-visible,
.winter-slide .installment-card:focus-visible {
  outline: 3px solid #8fdef7;
  outline-offset: 4px;
}

body.family {
  padding: 0;
  background:#193a4d;
}
body.family #audience-stage {
  width: min(100%, calc(100vh * 16 / 9));
  width: min(100%, calc(100dvh * 16 / 9));
}
.family #demo-toolbar {
  bottom: max(8px, env(safe-area-inset-bottom));
}
.family .drawing-options {
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 90px);
  overflow: auto;
}
body.family:has(#waiting:not([hidden])) {
  background:linear-gradient(120deg,#fbfcf8 16%,#edf4f6 54%,#d5e6f0 66%,#f3f7fa 66.3%,#d9e5ef 67%,#e4eaf4 93%);
}
body.family:has(#waiting:not([hidden]))::before {
  content:"";
  position:fixed; top:50%; right:8%; transform:translateY(-50%); pointer-events:none;
  width:min(34vw,54vh); aspect-ratio:7 / 6; border-radius:28px;
  border:1px solid #fff; box-shadow:0 15px 35px #304e6821;
  background:var(--digital-tree-art,url('/seasonal/digital-tree.svg')) center / 94% auto no-repeat,
    radial-gradient(circle,#79839e29 .8px,transparent 1px) 0 0 / 12px 12px,
    linear-gradient(135deg,#f3fcf7,#eee9f9);
}
.family #waiting {
  position:relative;
  justify-self: start;
  max-width: min(54%,740px);
  margin-inline-start: 8vw;
  padding:clamp(22px,3.2vw,48px) clamp(24px,4vw,60px);
  border:1px solid #fffc;
  border-radius:clamp(18px,2.5vw,36px);
  background:linear-gradient(145deg,#fff,#f6fbfa 57%,#f4f2fa);
  box-shadow:inset 0 2px #fff,0 8px 30px #28495c15;
  color: #1e455c;
  font-size: clamp(20px,3vw,52px);
  font-weight: 650;
  letter-spacing: -.04em;
  text-align: left;
  text-wrap: balance;
}
.family #demo-toolbar,
.family .drawing-options {
  color:#34385f;
  border-color:#b9b9d7;
  background:linear-gradient(145deg,#fff,#eef1f9 49%,#e7e3f5);
  box-shadow:inset 0 1px #fff,0 6px 24px #0c0a2452;
}
.family #demo-toolbar button,.family #demo-toolbar summary,.family .drawing-icon { color:#393b67; }
.family .drawing-icon { stroke:currentColor; }
.family #demo-toolbar button:hover,.family #demo-toolbar summary:hover { background:#dedcf0; }
.family #demo-toolbar button[aria-pressed=true],.family #drawing-tools[open]>summary {
  color:white; background:linear-gradient(145deg,#66598c,#44375f);
}
.family #drawing-tools[open] .drawing-icon { color:white; }
.family .drawing-options input[type=range] { accent-color:#68558e; }
.family .drawing-icon .drawing-spark { stroke:#48796d; }
.family #drawing-tools[open] .drawing-spark { stroke:#bce9de; }
.family #ink-notice,.family .family-status { color:#f4f3fb; background:#241b3ff5; }
@media (max-width: 600px) {
  body.family:has(#waiting:not([hidden]))::before {top:5%;right:50%;transform:translateX(50%);width:min(75vw,37vh);border-radius:20px}
  .family #waiting { align-self: end;max-width: 85%;margin-bottom: 8vh; }
}
@media (forced-colors: active) {
  .winter-slide .slide-resident { background: white; forced-color-adjust: none; }
}
