/* DUWONDER — the ceremony a child walks into once, for something they earned.
 *
 * Only the milestone card is styled here. There is no overlay layer any more:
 * nothing drifts across the screen waiting to be tapped, so nothing in this
 * file needs pointer-events:none, and nothing sits on top of a game.
 *
 * No webfont is loaded anywhere in this app, so the faces below are ones that
 * really exist on the device. The ceremony is a title card, so it is set in a
 * book serif rather than the rounded sans the rest of the app has been using. */
.duw-big {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  /* dawn over the valley: warm at the centre, going dark at the edges */
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 214, 150, .28), rgba(255, 214, 150, 0) 46%),
    radial-gradient(circle at 50% 46%, rgba(18, 34, 28, .82), rgba(4, 20, 18, .95) 70%);
  pointer-events: auto;
  animation: duw-fade .5s ease-out;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}
.duw-big .duw-inner {
  position: relative;
  text-align: center;
  color: #f3ead9;
  padding: 30px 34px 32px;
  border-top: 1px solid rgba(255, 214, 150, .55);
  border-bottom: 1px solid rgba(255, 214, 150, .28);
  border-radius: 4px;
  background: linear-gradient(rgba(12, 22, 18, .62), rgba(8, 16, 14, .78));
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
  animation: duw-rise .7s cubic-bezier(.16, .84, .28, 1);
  max-width: min(520px, 88vw);
}
/* A specimen, or the animal itself. Whatever is on the card is a photograph. */
.duw-big .duw-crest-art {
  display: block;
  margin: 0 auto 6px;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .55));
}
.duw-big .duw-crest-art img { width: 170px; height: 170px; object-fit: contain; }
.duw-big .duw-crest-dino { width: 190px; }
.duw-big .duw-crest-art .du-dino-svg { width: 100%; height: auto; display: block; }
.duw-big h3 {
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 6.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: .01em;
  color: #f0d9b8;
}
.duw-big p {
  margin: 10px 0 20px;
  font-size: 1.08rem;
  line-height: 1.45;
  color: #d8d2c6;
}
/* The ceremony closes with a button, and a chapter page has no hub.css to make
 * one — so this file brings its own, sized for a small finger. */
.duw-big .duw-inner .pill {
  border: 0; border-radius: 2px; padding: 13px 34px; min-height: 48px;
  font-family: inherit; font-size: 1.02rem; font-weight: 700; line-height: 1;
  letter-spacing: .12em; text-transform: uppercase;
  background: #c8a04a; color: #24150d; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.duw-big .duw-inner .pill:hover { transform: translateY(-2px); background: #d9b055; }
.duw-big .duw-inner .pill:active { transform: scale(.97); }
.duw-big .duw-inner .pill:focus-visible { outline: 3px solid #ffd23f; outline-offset: 3px; }
@keyframes duw-fade { from { opacity: 0; } }
@keyframes duw-rise { from { transform: translateY(34px) scale(.94); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .duw-big, .duw-big .duw-inner { animation: none; }
}
