/* ===================================================================== */
/* surprise.css · «Surprises around the exam, never inside it» (his rule */
/* 2026-11-02; js/surprise.js): a friend of the gang, a Draly Souk toy   */
/* visiting, at the edge of a simulation's cover, its break with no      */
/* clock, its results, a word test passed and «Tarea hecha». In the      */
/* page's flow (never over a button), small, a tap closes it. Its own    */
/* warm card beside the exam's sober look; New HSK (is-teen) = petrol.   */
/* ===================================================================== */
.ds-slot { display: grid; gap: 10px; justify-items: start; margin: 14px 0 0; text-align: left; }
.ds-slot:empty { display: none; }
.ds-card {
  --ds-rojo: #5a1010; --ds-oro: #b88b2c; --ds-ink: #1c1a17; --ds-ink-2: #5b4f43;
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; min-height: 76px;
  margin: 8px 0 0; padding: 8px 46px 8px 8px; border-radius: 16px; cursor: pointer; text-align: left; color: var(--ds-ink);
  font-family: inherit; background: linear-gradient(160deg, #fffaf0 0%, #f8ecd0 100%); box-shadow: inset 0 0 0 1.5px #d9b866, 0 10px 22px -16px rgba(60, 30, 5, .55);
}
.ds-pic { flex: none; position: relative; width: 70px; height: 76px; display: grid; place-items: end center; }
.ds-pic img { display: block; max-width: 100%; max-height: 96px; width: auto; height: auto; margin-top: -20px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(40, 20, 5, .25)); }
.ds-say { margin: 0; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ds-say b { font-weight: 900; font-size: .9rem; line-height: 1.2; color: var(--ds-rojo); }
.ds-say span { font-weight: 700; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.ds-x {
  position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: transparent; color: var(--ds-ink-2); cursor: pointer;
}
.ds-x svg { width: 16px; height: 16px; }
.ds-x:focus-visible, .ds-go:focus-visible { outline: 3px solid var(--ds-rojo); outline-offset: 2px; }

/* a toy of the Draly Souk */
.ds-toy { align-items: center; }
.ds-toy-pic { width: 78px; height: 86px; border-radius: 14px; place-items: center; background: radial-gradient(circle at 50% 40%, #fff6dc 0%, #f1dca6 70%); }
.ds-toy-pic img { max-height: 82px; margin-top: 0; }
.ds-toy-pic.is-shadow { background: radial-gradient(circle at 50% 45%, #3b2a10 0%, #1d1408 75%); }
.ds-toy-pic.is-shadow img { filter: brightness(0) drop-shadow(0 0 1.5px rgba(255, 220, 130, .95)) drop-shadow(0 0 9px rgba(255, 196, 64, .7)); }
.ds-toy-pic.is-shadow i {
  position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 2rem;
  color: #f3d27a; text-shadow: 0 0 10px rgba(255, 196, 64, .9); pointer-events: none;
}
.ds-toy-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ds-k { margin: 0; font-weight: 800; font-size: .86rem; line-height: 1.2; color: var(--ds-rojo); }
.ds-t { margin: 0; font-weight: 600; font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere; }
.ds-t b { font-weight: 900; }
.ds-go {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 8px 14px; border-radius: 12px;
  font-weight: 900; font-size: .95rem; line-height: 1.2; text-decoration: none; color: #3d0707;
  background: radial-gradient(circle at 30% 20%, #f6e2a4 0%, #d4ac52 60%, #b88b2c 100%); box-shadow: 0 5px 12px -8px rgba(90, 16, 16, .6);
}

/* New HSK: teenagers, the cooler look (petrol, gold names, no bubble feel) */
.ds-card.is-teen { color: #f3f1ea; background: linear-gradient(160deg, #123a3f 0%, #0b2427 100%); box-shadow: inset 0 0 0 1.5px rgba(232, 200, 120, .55), 0 10px 22px -14px rgba(0, 0, 0, .6); }
.ds-card.is-teen .ds-say b, .ds-card.is-teen .ds-k { color: #e8c878; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
.ds-card.is-teen .ds-x { color: rgba(243, 241, 234, .8); }
.ds-card.is-teen .ds-toy-pic:not(.is-shadow) { background: radial-gradient(circle at 50% 40%, #2c5a60 0%, #143338 75%); }

/* the cover: under the start button, centred like it */
.y-cover-go .ds-slot, .hsk-section-intro .ds-slot { justify-items: center; }
.y-res-card .ds-slot, .hsk-results-card .ds-slot { justify-items: start; }
/* the kid moments outside the sims (js/tv-prueba.js pass, js/tv-video.js «Tarea hecha»): under the buttons, centred, above
   the confetti canvas */
.tvv-ok .ds-slot, .tvp-done .ds-slot { position: relative; width: 100%; max-width: 380px; justify-items: center; margin-top: 4px; }

/* the exam is running: nothing of this shows */
html[data-ds-quiet] .ds-card, html[data-ds-quiet] .ds-slot, html[data-ds-quiet] .dorado { display: none !important; }

@media (hover: hover) { .ds-go:hover { filter: brightness(1.05); } .ds-x:hover { color: var(--ds-rojo); } }
@media (max-width: 380px) {
  .ds-card { padding-right: 40px; gap: 8px; }
  .ds-pic { width: 58px; }
  .ds-toy-pic { width: 66px; height: 76px; }
  .ds-say span { font-size: .96rem; }
}
