/* Dreamweave v1.39: Dreamworld reward experiences. */

/* ---------- The list on Your Journey ---------- */
.dwr-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dwr-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.dwr-card { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 16px; border-radius: 16px; border: 1px solid var(--dw-line, #24345C); background: rgba(10,26,58,.55); }
.dwr-card.is-open { border-color: rgba(217,185,138,.5); background: linear-gradient(160deg, rgba(217,185,138,.08), rgba(10,26,58,.6)); }
.dwr-card__icon { width: 58px; flex: none; }
.dwr-card.is-locked .dwr-card__icon { filter: grayscale(1) brightness(.6); opacity: .6; }
.dwr-card h4 { font-family: var(--dw-serif, Georgia, serif); color: var(--dw-cream, #F0E0C8); font-size: 1.3rem; font-weight: 500; margin: 0 0 .2em; padding: 0; line-height: 1.2; }
.dwr-card p { margin: 0 0 .6em; padding: 0; font-size: .93rem; }
.dwr-card p:last-child { margin: 0; }
.dwr-new { font-family: var(--dw-sans, sans-serif); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; background: #D9B98A; color: #010F2A; border-radius: 99px; padding: 2px 8px; vertical-align: middle; font-weight: 700; }

/* ---------- The player ---------- */
html.dwr-lock, html.dwr-lock body { overflow: hidden !important; }
.dwr-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(1, 8, 24, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow-y: auto; opacity: 0; transition: opacity .25s ease; }
.dwr-overlay.is-in { opacity: 1; }
.dwr-shell { max-width: 980px; margin: 0 auto; padding: 12px 12px 24px; }
.dwr-top { display: flex; align-items: center; gap: 10px; color: #F0E0C8; font-family: "Cormorant", "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; padding: 2px 4px 10px; }
.dwr-top__icon { width: 34px; flex: none; }
.dwr-top__n { flex: 1; min-width: 0; }
.dwr-top__pv { font-family: "Karla", system-ui, sans-serif; font-size: .78rem; color: #D9B98A; border: 1px dashed #D9B98A; border-radius: 99px; padding: 2px 10px; }
.dwr-close { background: none; border: 1px solid #3B4B78; color: #F0E0C8; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; flex: none; }
.dwr-close:hover, .dwr-close:focus-visible { border-color: #D9B98A; outline: none; }
.dwr-app.dwx-app { max-width: none; }
.dwr-app .dwx-stage { min-height: min(680px, calc(100vh - 96px)); min-height: min(680px, calc(100dvh - 96px)); }
@media (max-width: 600px) {
	.dwr-shell { padding: 8px 8px 16px; }
	.dwr-top__pv { display: none; }
	.dwr-app .dwx-pad { padding: 22px; }
	.dwr-app .dwr-top-text { padding-top: 52px; }
}

/* ---------- Shared bits for the rewards ---------- */
.dwr-app .dwr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dwr-app .dwr-layer { position: relative; z-index: 2; }
.dwr-app .dwr-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 18px 22px 22px; text-align: center; }
.dwr-app .dwr-top-text { position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding: 22px 26px; text-align: center; }
.dwr-app .dwr-say { font-family: var(--dwx-serif); color: var(--dwx-cream); font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.4; font-style: italic; max-width: 34ch; margin: 0 auto; text-shadow: 0 2px 18px rgba(1,15,42,.9); transition: opacity .8s ease; }
.dwr-app .dwr-say.is-out { opacity: 0; }
.dwr-app .dwr-hint { font-size: 14px; color: var(--dwx-muted); margin-top: 10px; }
.dwr-app .dwr-center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: inherit; padding: 32px 22px; position: relative; z-index: 2; }
.dwr-app .dwr-field { width: 100%; max-width: 460px; font: inherit; color: var(--dwx-cream); background: rgba(10,26,58,.85); border: 1px solid var(--dwx-line-strong); border-radius: 12px; padding: 12px 14px; }
.dwr-app .dwr-field:focus { outline: 2px solid var(--dwx-gold); outline-offset: 1px; }
.dwr-app textarea.dwr-field { min-height: 110px; resize: vertical; }
.dwr-app .dwr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; width: 100%; }
.dwr-app .dwr-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px; border-radius: 14px; border: 1px solid var(--dwx-line); background: var(--dwx-surface); color: var(--dwx-cream); font: inherit; font-size: 15px; cursor: pointer; text-align: center; transition: border-color .15s, background-color .15s, transform .15s; }
.dwr-app .dwr-opt:hover { border-color: var(--dwx-gold); }
.dwr-app .dwr-opt[aria-pressed="true"] { border-color: var(--dwx-gold); background: var(--dwx-soft); box-shadow: inset 0 0 0 1px var(--dwx-gold); }
.dwr-app .dwr-opt svg { width: 56px; height: 56px; }
.dwr-app .dwr-opt small { color: var(--dwx-muted); font-size: 12.5px; line-height: 1.3; }
.dwr-app .dwr-steps { display: flex; gap: 6px; justify-content: center; margin: 0 0 14px; }
.dwr-app .dwr-steps span { width: 8px; height: 8px; border-radius: 50%; background: var(--dwx-line-strong); }
.dwr-app .dwr-steps span.is-on { background: var(--dwx-gold); }
.dwr-app .dwr-hold { width: 132px; height: 132px; border-radius: 50%; border: 1px solid var(--dwx-gold); background: radial-gradient(circle, rgba(217,185,138,.22), rgba(217,185,138,.04) 65%); color: var(--dwx-cream); font: inherit; font-size: 15px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .2s; }
.dwr-app .dwr-hold.is-down { transform: scale(1.08); background: radial-gradient(circle, rgba(217,185,138,.4), rgba(217,185,138,.08) 65%); }
.dwr-app .dwr-paper { background: #F0E0C8; color: #2a1f14; border-radius: 6px; padding: 28px 30px; max-width: 520px; width: 100%; font-family: var(--dwx-serif); font-size: 1.3rem; line-height: 1.55; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); text-align: left; transform-origin: top center; }
.dwr-app .dwr-paper p { margin: 0 0 .8em; }
.dwr-app .dwr-paper .dwr-sign { font-style: italic; text-align: right; margin: 0; }
.dwr-app .dwr-sound { position: absolute; top: 12px; right: 12px; z-index: 5; }
.dwr-app .dwr-sound label { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--dwx-muted); background: rgba(1,15,42,.6); padding: 6px 10px; border-radius: 99px; cursor: pointer; }

/* Night Room: a dim, warm screen */
.dwr-night-room .dwx-card { background: #0b0603 !important; border-color: #2a1a0c; }
.dwr-night-room { --dwx-cream: #d9a466; --dwx-ink: #c99558; --dwx-gold: #c98a3e; --dwx-muted: #8f6a43; --dwx-line: #2a1a0c; --dwx-line-strong: #4a2f15; --dwx-surface: #140b05; --dwx-soft: #1c1007; }
.dwr-night-room .dwx-btn-primary { color: #0b0603; }
.dwr-night-room .dwr-field { background: #140b05; color: #d9a466; border-color: #4a2f15; }

/* The Lost & Found maze */
.dwr-lost-found .dwr-maze-wrap { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto; touch-action: none; }
.dwr-lost-found canvas { width: 100%; height: 100%; display: block; border-radius: 14px; }

/* Clockwork Garden */
.dwr-clockwork .dwr-cw { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 6px auto 0; }
.dwr-clockwork .dwr-cw svg { width: 100%; height: 100%; display: block; }
.dwr-clockwork .dwr-flower { cursor: pointer; outline: none; }
.dwr-clockwork .dwr-flower:focus-visible .dwr-petals { stroke: #fff; stroke-width: 3; }

/* Wheel of the Year */
.dwr-wheel .dwr-wheel-svg { width: min(100%, 420px); height: auto; display: block; margin: 0 auto; }
.dwr-wheel .dwr-wheel-rot { transition: transform 1.4s cubic-bezier(.3,.7,.2,1); transform-origin: 200px 200px; }

/* Lighthouse */
.dwr-lighthouse .dwr-lh { width: min(100%, 520px); height: auto; display: block; margin: 0 auto; }
.dwr-lighthouse .dwr-sea-pick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.dwr-lighthouse .dwr-log { width: 100%; max-width: 560px; height: auto; display: block; margin: 12px auto 0; }

@media (prefers-reduced-motion: reduce) {
	.dwr-overlay, .dwr-app * { transition: none !important; animation: none !important; }
}
