:root {
  color: #243746;
  background: #e8eef0;
  font-family: ui-rounded, "Avenir Next", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; margin: 0; }
a, button { font: inherit; }
button { color: inherit; }

.preview-bar {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.back-link {
  color: inherit;
  font-size: .78rem;
  font-weight: 800;
  text-underline-offset: .2rem;
}

.design-switcher { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.design-switcher a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .65rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: rgb(255 255 255 / .55);
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
}
.design-switcher a span { display: grid; place-items: center; width: 1.25rem; aspect-ratio: 1; border-radius: 50%; color: white; background: #365366; font-size: .65rem; }
.design-switcher a[aria-current="page"] { color: white; background: #365366; }
.design-switcher a[aria-current="page"] span { color: #365366; background: #ffe49a; }

.option-hero,
.option-shop,
.free-games,
footer { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

.option-hero {
  min-height: 28rem;
  margin-top: 1rem;
  padding: clamp(2rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(14rem, .7fr);
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  position: relative;
}

.eyebrow { margin: 0 0 .7rem; font-size: .72rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.option-hero h1 { max-width: 11ch; margin: 0; font: 700 clamp(3.3rem, 8vw, 7rem)/.85 Georgia, serif; letter-spacing: -.055em; }
.option-hero .hero-copy > p:not(.eyebrow) { max-width: 37rem; margin: 1.25rem 0; font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 700; line-height: 1.5; }
.preview-note { display: inline-block; padding: .55rem .8rem; border: 1px solid currentColor; border-radius: 999px; font-size: .72rem; font-weight: 900; }
.hero-emblem { display: grid; place-items: center; min-height: 18rem; }
.hero-emblem span { display: grid; place-items: center; width: min(16rem, 50vw); aspect-ratio: 1; font-size: 7rem; }

.option-shop { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section-heading h2, .free-games h2 { margin: 0; font: 700 clamp(2.1rem, 4vw, 3.5rem)/1 Georgia, serif; letter-spacing: -.035em; }
.section-heading > p { max-width: 20rem; margin: 0; font-weight: 700; }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.asset-card {
  min-width: 0;
  min-height: 23rem;
  padding: 1.25rem;
  border: 2px solid currentColor;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.asset-card:hover, .asset-card:focus-visible { transform: translateY(-.45rem); outline: 3px solid #ffd76b; outline-offset: 3px; }
.asset-front, .asset-back { min-height: 20rem; display: grid; place-items: center; align-content: center; gap: .7rem; text-align: center; }
.asset-symbol { display: grid; place-items: center; width: 7.2rem; aspect-ratio: 1; font-size: 3.5rem; }
.asset-kind { font-size: .68rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.asset-card strong { max-width: 14ch; font: 700 clamp(1.35rem, 2.8vw, 2rem)/1.05 Georgia, serif; }
.asset-price { padding: .35rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 900; }
.asset-action { font-size: .75rem; font-weight: 900; text-decoration: underline; text-underline-offset: .25rem; }
.asset-back { font-weight: 700; line-height: 1.45; }
.asset-back img { width: 100%; max-height: 12rem; border: .4rem solid white; object-fit: cover; }
.drawing-space { display: grid; place-items: center; width: 9rem; aspect-ratio: 1.2; border: .8rem ridge #d7a34d; background: #fffdf5; font: 700 3rem/1 Georgia, serif; }

.free-games { margin-bottom: 4rem; padding: clamp(1.5rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.game-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; }
.game-chips span { padding: .7rem 1rem; border: 2px solid currentColor; border-radius: 999px; font-weight: 900; }
footer { padding: 1rem 0 2rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; font-weight: 800; }

/* Magic: glowing, soft, and enchanted. */
body[data-design="magic"] { color: #30485d; background: radial-gradient(circle at 50% 14%, #fff8df 0 14%, #d8eaf0 40%, #7890a2 100%) fixed; }
body[data-design="magic"] .option-hero { border: 8px solid #6b8191; border-radius: 5rem 5rem 1.5rem 1.5rem; background: rgb(255 252 237 / .72); box-shadow: inset 0 0 3rem rgb(122 157 175 / .28), 0 1.2rem 0 rgb(63 83 99 / .18); }
body[data-design="magic"] .hero-emblem span { border: .8rem double #d6a85c; border-radius: 50%; color: #fff8c7; background: radial-gradient(circle, #86d5e2 0 20%, #577b92 55%, #314c61); box-shadow: 0 0 2rem #fff8cc, inset 0 0 2rem rgb(255 255 255 / .45); text-shadow: 0 0 .8rem white, 0 0 1.7rem #ffd86e; }
body[data-design="magic"] .asset-card { border-color: #71899a; border-radius: 2.5rem 2.5rem 1rem 1rem; background: rgb(255 253 243 / .88); box-shadow: 0 .8rem 0 rgb(64 85 100 / .2); }
body[data-design="magic"] .asset-card.is-revealed { color: #624421; background: #fff0bf; }
body[data-design="magic"] .asset-symbol { border-radius: 50%; color: white; background: linear-gradient(145deg, #6bc5d6, #3e637d); box-shadow: 0 0 1.5rem #fff0a7, inset 0 0 0 .4rem rgb(255 255 255 / .22); }
body[data-design="magic"] .asset-price { background: #d7e8ee; }
body[data-design="magic"] .free-games { border: 2px solid #71899a; border-radius: 2rem; background: rgb(255 253 243 / .7); }

/* Adventure: parchment, maps, and expedition marks. */
body[data-design="adventure"] { color: #3f3a2b; background-color: #d4e0d8; background-image: linear-gradient(rgb(255 255 255 / .25) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .25) 1px, transparent 1px); background-size: 2rem 2rem; }
body[data-design="adventure"] .option-hero { border: 3px dashed #705b36; border-radius: .6rem; background: #f2dfad; box-shadow: 12px 12px 0 #789187; transform: rotate(-.25deg); }
body[data-design="adventure"] .option-hero::after { content: "························· X"; position: absolute; right: 3%; bottom: 8%; color: #a14a37; font: 900 1.2rem/1 ui-monospace, monospace; letter-spacing: .15em; transform: rotate(-8deg); }
body[data-design="adventure"] .hero-emblem span { border: 1rem ridge #a47839; border-radius: 50%; color: #7a4d27; background: repeating-radial-gradient(circle, #f8e8bd 0 1.2rem, #d9bd7a 1.25rem 1.4rem); box-shadow: .8rem .8rem 0 rgb(66 75 62 / .18); }
body[data-design="adventure"] .asset-card { border-color: #705b36; border-radius: .5rem; color: #3f3a2b; background: #f5e6bd; box-shadow: .65rem .65rem 0 #8aa097; }
body[data-design="adventure"] .asset-card:nth-child(1) { transform: rotate(-.6deg); }
body[data-design="adventure"] .asset-card:nth-child(2) { transform: rotate(.45deg); }
body[data-design="adventure"] .asset-card:hover, body[data-design="adventure"] .asset-card:focus-visible { transform: translateY(-.45rem) rotate(0); }
body[data-design="adventure"] .asset-card.is-revealed { background: #fff5d7; }
body[data-design="adventure"] .asset-symbol { border: .45rem double #785e37; border-radius: 50%; color: #5c4930; background: #e6cb8f; }
body[data-design="adventure"] .asset-price { background: #c7d8ca; }
body[data-design="adventure"] .free-games { border: 3px dashed #705b36; background: #f2dfad; box-shadow: 10px 10px 0 #789187; }

/* Heroics: bold banners, shields, and bright gold. */
body[data-design="heroics"] { color: #14294b; background: #dbe6ef; }
body[data-design="heroics"] .preview-bar { color: #14294b; }
body[data-design="heroics"] .option-hero { color: #fff8df; border: .75rem solid #e1b447; border-radius: 1.2rem; background: linear-gradient(135deg, #173761 0 50%, #255681 50%); box-shadow: 0 1rem 0 #9cb1c2; }
body[data-design="heroics"] .option-hero::before, body[data-design="heroics"] .option-hero::after { content: ""; position: absolute; top: 0; width: 2.5rem; height: 9rem; background: #d14f3f; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
body[data-design="heroics"] .option-hero::before { left: 8%; }
body[data-design="heroics"] .option-hero::after { left: calc(8% + 3.3rem); height: 7.4rem; background: #f2ca5c; }
body[data-design="heroics"] .hero-copy { position: relative; z-index: 1; }
body[data-design="heroics"] .hero-emblem span { color: #fff6bf; background: #d14f3f; border: 1rem double #f2ca5c; clip-path: polygon(50% 0, 90% 15%, 82% 70%, 50% 100%, 18% 70%, 10% 15%); text-shadow: 0 .18rem 0 #8b3027; }
body[data-design="heroics"] .asset-card { border: .45rem solid #214d79; border-radius: 1rem; color: #14294b; background: white; box-shadow: 0 .75rem 0 #9cb1c2; }
body[data-design="heroics"] .asset-card::before { content: "DIGITAL TREASURE"; display: block; margin: -.5rem -.5rem .5rem; padding: .45rem; color: white; background: #214d79; font-size: .62rem; font-weight: 900; letter-spacing: .14em; }
body[data-design="heroics"] .asset-card.is-revealed { border-color: #d14f3f; background: #fff5d4; }
body[data-design="heroics"] .asset-symbol { color: #fff6bf; background: #214d79; border: .55rem double #e1b447; clip-path: polygon(50% 0, 92% 18%, 82% 70%, 50% 100%, 18% 70%, 8% 18%); }
body[data-design="heroics"] .asset-price { color: white; background: #d14f3f; }
body[data-design="heroics"] .free-games { color: white; border: .5rem solid #e1b447; border-radius: 1rem; background: #214d79; }

@media (max-width: 760px) {
  .preview-bar, .section-heading, .free-games, footer { align-items: flex-start; flex-direction: column; }
  .design-switcher { justify-content: flex-start; }
  .option-hero { min-height: 0; padding: 3rem 1.25rem 2rem; grid-template-columns: 1fr; }
  .option-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-emblem { min-height: 12rem; }
  .hero-emblem span { width: 11rem; font-size: 5rem; }
  .asset-grid { grid-template-columns: 1fr; }
  .asset-card, .asset-front, .asset-back { min-height: 17rem; }
  .game-chips { justify-content: flex-start; }
  body[data-design="heroics"] .option-hero::before, body[data-design="heroics"] .option-hero::after { display: none; }
}

@media (prefers-reduced-motion: reduce) { .asset-card { transition: none; } }
