/* Diagon Duels pages (website/): daily puzzles and player profiles, inside the platform's page shell. */
.dd-puzzles { max-width: 960px; margin: 0 auto; padding: 16px; display: grid; gap: 20px; }
.dd-puzzles h1 { margin: 0; }
.dd-kicker { margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.dd-today, .dd-reward, .dd-streak { border: 1px solid var(--line, #c9b98d); border-radius: 12px; padding: 16px 20px; background: var(--panel, rgba(255,255,255,.04)); }
.dd-goal { font-weight: 600; }
.dd-note { opacity: .8; font-size: .92rem; }
.dd-done { font-weight: 600; color: var(--good, #2f8a4a); }
.dd-button { display: inline-block; padding: 8px 16px; border-radius: 8px; border: 1px solid currentColor; text-decoration: none; cursor: pointer; background: transparent; color: inherit; font: inherit; }
.dd-button.primary { background: var(--accent, #7a1f1f); color: #fff; border-color: transparent; }
.dd-ladder { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dd-ladder li { border: 1px solid var(--line, #c9b98d); border-radius: 8px; padding: 6px; text-align: center; font-size: .8rem; }
.dd-ladder li span { display: block; font-weight: 700; font-size: 1rem; }
.dd-ladder li.done { background: var(--accent, #7a1f1f); color: #fff; }
.dd-ladder li.rare { border-color: #c9a227; }
.dd-ladder li.foil { border: 2px solid #9a7bd6; }
.dd-archive { list-style: none; padding: 0; display: grid; gap: 6px; }
.dd-archive span { opacity: .7; }
.dd-cards { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.dd-cards li { display: grid; gap: 6px; justify-items: center; max-width: 180px; text-align: center; }
.dd-cards img { width: 180px; height: auto; border-radius: 8px; }
.dd-cards li.rare img { box-shadow: 0 0 0 2px #c9a227; }
/* A showcased foil moves like the card's foil printing: a holographic sheen and a passing glint over the art (as the
   shared Rare Pulls foil, tcgmix_platform/static/rare-pulls.css). A Puzzle Foil is the shared Shimmer Wave
   (.tcg-puzzle-art, tcgmix_platform/static/site.css). */
.dd-card-art { position: relative; display: block; border-radius: 8px; overflow: hidden; isolation: isolate; }
.dd-card-art img { display: block; }
.dd-card-art.is-foil::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background-image: linear-gradient(135deg, #ff6ed2b3, #6ed7ffb3 20%, #fff5a0b3 40%, #78ffb9b3 60%, #b982ffb3 80%, #ff6ed2b3);
  background-size: 200% 200%; mix-blend-mode: soft-light; animation: dd-foil-sheen 7s linear infinite; }
.dd-card-art.is-foil::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background-image: linear-gradient(115deg, transparent 30%, #ff78d200 34%, #ff78d266 39%, #8ce1ff80 43.5%, #ffffffc2 48.5%, #ffffffc2 51.5%, #fffaaa80 56.5%, #96ffbe66 61%, #be8cff00 66%, transparent 70%);
  background-size: 150% 100%; background-repeat: repeat-x; mix-blend-mode: screen; animation: dd-foil-glint 4s linear infinite; }
.dd-card-art.is-foil { box-shadow: 0 0 0 1px #ffd9a8b3, 0 0 16px #c58cff4d; }
@keyframes dd-foil-sheen { 0% { background-position: 0% 0%; filter: hue-rotate(0deg); } 50% { background-position: 100% 100%; filter: hue-rotate(180deg); } 100% { background-position: 0% 0%; filter: hue-rotate(360deg); } }
@keyframes dd-foil-glint { 0% { background-position: 0% 0; } 100% { background-position: 300% 0; } }
:root[data-reduced-motion] .dd-card-art.is-foil::before, :root[data-reduced-motion] .dd-card-art.is-foil::after { animation: none; }
.dd-new { color: #c9a227; }
.dd-open { display: grid; gap: 10px; justify-items: start; }
.dd-open img { width: 180px; height: auto; }
.dd-sets { display: flex; flex-wrap: wrap; gap: 8px; }
.dd-set { display: grid; justify-items: center; gap: 4px; padding: 6px; border: 1px solid var(--line, #c9b98d); border-radius: 8px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.dd-set.chosen { border: 2px solid #9a7bd6; }
.dd-set img { width: 90px; height: auto; }
.dd-admin table { border-collapse: collapse; width: 100%; }
.dd-admin td, .dd-admin th { border-bottom: 1px solid var(--line, #c9b98d); padding: 4px 8px; text-align: left; }
.dd-error { color: #b3261e; } .dd-warning { color: #a86b00; }
@media (max-width: 600px) { .dd-ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dd-bio { font-style: italic; }
.dd-badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dd-badges li { border: 1px solid #9a7bd6; border-radius: 999px; padding: 2px 10px; font-size: .85rem; }
.dd-stats dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0; }
.dd-stats dt { font-size: .8rem; opacity: .75; } .dd-stats dd { margin: 0; font-weight: 700; }
.dd-profile-edit { display: grid; gap: 10px; }
.dd-profile-edit label { display: grid; gap: 4px; } .dd-profile-edit .dd-check { display: flex; gap: 8px; align-items: center; }
.dd-profile-edit fieldset { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; border: 1px solid var(--line, #c9b98d); border-radius: 8px; }
.dd-profile-edit input:not([type=checkbox]), .dd-profile-edit select { padding: 6px; font: inherit; }
