/* Wizi public site. All type and game art are served locally. */
:root {
  color-scheme: dark;
  --bg: #111016;
  --surface: #1b1823;
  --surface-raised: #241e2e;
  --border: #3a3146;
  --muted: #c3bacb;
  --gold: #f3cb83;
  --gold-light: #ffe3ad;
  --text: #faf4ed;
  --focus: #99d9ff;
  --serif: Georgia, "Times New Roman", serif;
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
img { max-width: 100%; height: auto; }
a { color: var(--gold-light); text-underline-offset: .24em; }
a:hover { color: #fff3d4; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.08; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4.7vw, 3.65rem); }
h3 { font-size: 1.13rem; }
small, .muted { color: var(--muted); }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -200px; left: 16px; z-index: 20; padding: 10px 16px; background: var(--text); color: var(--bg); }
.skip:focus { top: 12px; }

.site-header { position: relative; z-index: 10; background: #141119; border-bottom: 1px solid var(--border); }
.header-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: bold 1.55rem/1 var(--serif); letter-spacing: .09em; color: var(--gold-light); text-decoration: none; }
.brand img { display: block; width: 38px; height: 38px; border-radius: 9px; }
.desktop-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.desktop-nav > a:not(.btn) { color: var(--muted); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.desktop-nav > a:not(.btn):is(:hover, [aria-current="page"]) { color: var(--text); text-decoration: underline; }
.mobile-nav, .btn.mobile-top-play { display: none; }
.mobile-nav summary {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 6px 10px;
  list-style: none;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .77rem;
  white-space: nowrap;
}
.mobile-nav summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.mobile-nav[open] .mobile-menu {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  display: grid;
  gap: 4px;
  padding: 12px max(16px, calc((100% - 1200px) / 2));
  background: #181420;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 30px #0007;
}
.mobile-menu a { padding: 9px 12px; color: var(--text); text-decoration: none; }
.mobile-menu a[aria-current="page"] { color: var(--gold-light); }
.language-switch { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 2px 6px; padding-block: 0 9px; }
.language-switch a { padding: 3px 7px; color: var(--muted); text-decoration: none; font-size: .72rem; white-space: nowrap; border-radius: 6px; }
.language-switch a:is(:hover, [aria-current="true"]) { color: var(--gold-light); background: var(--surface-raised); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  text-align: center;
  font: inherit;
  font-size: .93rem;
  font-weight: 750;
  line-height: 1.2;
  transition: background-color .15s, border-color .15s;
}
.btn.primary { background: var(--gold); border-color: var(--gold); color: #231721; }
.btn.primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn.secondary, .btn.ghost { border-color: #60506c; background: #251e2e; color: var(--text); }
.btn.secondary:hover, .btn.ghost:hover { background: #372b42; border-color: #8d7799; }
.btn.small { min-height: 44px; padding: 8px 13px; font-size: .84rem; }
.btn.big { min-height: 52px; }
.btn:disabled { opacity: .6; }
.eyebrow { margin: 0 0 13px; color: var(--gold); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.lede { max-width: 62ch; font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); }

.landing-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 87% 65%, #3b2755 0, transparent 62%), #16121e;
}
.landing-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 68px);
  padding-block: clamp(42px, 7vw, 105px);
}
.landing-copy h1 { margin: 0 0 19px; font-size: clamp(2.8rem, 5.2vw, 5rem); line-height: .99; text-wrap: balance; }
.landing-copy h1 em { display: block; font-weight: inherit; color: var(--gold-light); }
.landing-copy .lede { max-width: 38ch; margin-bottom: 22px; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin: 8px 0 0; color: var(--muted); font-size: .8rem; }
.landing-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  list-style: none;
  padding: 0;
  margin: 21px 0 0;
  color: var(--text);
  font-size: .79rem;
  font-weight: 600;
}
.landing-facts li { display: flex; align-items: center; gap: 7px; }
.landing-facts li::before { content: ""; width: 4px; height: 4px; transform: rotate(45deg); background: var(--gold); }
.landing-visual { position: relative; }
.game-frame {
  position: relative;
  padding: clamp(5px, .7vw, 10px);
  border: 1px solid #816288;
  border-radius: 17px;
  background: #20192d;
  box-shadow: 0 25px 55px #0b0716a0;
}
.game-frame img { display: block; width: 100%; border-radius: 10px; }

.landing-section { padding-block: clamp(48px, 7vw, 96px); }
.landing-section-head { max-width: 67ch; }
.landing-section-head h2 { margin-bottom: 14px; text-wrap: balance; }
.landing-section-head > p:not(.eyebrow) { color: var(--muted); }
.round-section { background: #15121c; }
.round-grid, .mode-grid, .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.round-grid { list-style: none; padding: 0; margin: 27px 0 21px; }
.round-card {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}
.round-card img, .origin-cards img { display: block; border: 1px solid #766082; border-radius: 8px; }
.round-card p, .mode-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.round-card h3, .mode-card h3 { overflow-wrap: anywhere; }
.text-action { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.modes-section { border-block: 1px solid var(--border); background: #1b1624; }
.modes-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.65fr); align-items: center; gap: 38px; }
.modes-layout .landing-section-head > p { margin-bottom: 0; }
.mode-card { padding: 16px 18px 19px; border-left: 1px solid #5a4666; }
.mode-symbol { display: block; margin-bottom: 11px; color: var(--gold); font: 1.55rem/1 var(--serif); }
.origin-section { background: radial-gradient(ellipse at 17% 48%, #2c203c 0, transparent 45%); }
.origin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: center; gap: 40px; }
.origin-cards { display: flex; justify-content: center; gap: 11px; padding: 12px 4px; }
.origin-cards img { width: min(39%, 148px); box-shadow: 0 14px 32px #0008; }
.origin-cards img:first-child { transform: rotate(-9deg); }
.origin-cards img:last-child { transform: rotate(8deg); }
.landing-section-head .origin-byline { margin-bottom: 0; color: var(--gold-light); font-weight: 700; font-size: .88rem; }

.section-tight { padding-block: 0 clamp(36px, 6vw, 72px); }
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 4vw, 44px);
  background: radial-gradient(ellipse at 100% 0, #3e2855, transparent 70%), var(--surface);
  border: 1px solid #5a4666;
  border-radius: 16px;
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.cta-band p { margin: 0; color: var(--muted); }
.cta-actions { justify-content: flex-end; flex-shrink: 0; }

.site-footer { padding: 34px 0 22px; background: #141119; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-grid a { display: block; width: fit-content; margin-bottom: 6px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-grid .brand { display: inline-flex; margin-bottom: 12px; color: var(--gold-light); font-size: 1.4rem; }
.footer-grid p { max-width: 34ch; color: var(--muted); font-size: .88rem; }
.footer-heading { margin-bottom: 10px; color: var(--text); font-weight: 750; font-size: .86rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 23px; padding-top: 13px; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }

.page-hero { padding-block: clamp(36px, 6vw, 76px); background: radial-gradient(ellipse at 86% 30%, #342447, transparent 60%), #17131f; border-bottom: 1px solid var(--border); }
.page-hero h1 { margin: 8px 0 13px; overflow-wrap: anywhere; }
.page-hero .lede { margin-bottom: 0; }
.page-body { padding-block: clamp(26px, 5vw, 58px) clamp(42px, 7vw, 87px); }
.prose { max-width: 76ch; overflow-wrap: anywhere; }
.prose h2 { margin: 32px 0 13px; font-size: clamp(1.55rem, 3vw, 2rem); }
.prose h3 { margin-top: 20px; }
.prose p, .prose li { color: var(--muted); }
.prose li { padding-bottom: 7px; }
.prose ul, .prose ol { padding-left: 23px; }
.prose code { color: var(--gold-light); }
.notice { padding: 15px 20px; margin: 20px 0; border-left: 3px solid var(--gold); border-radius: 0 9px 9px 0; background: var(--surface-raised); }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; max-width: 76ch; margin-top: 15px; }
.rule-card { display: flex; align-items: center; gap: 16px; padding: 14px; }
.rule-card img { width: 79px; max-width: 26%; border-radius: 8px; }
.rule-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.prose .rules-list { list-style: none; padding: 0; counter-reset: rules; }
.rules-list li { position: relative; padding: 13px 15px 13px 48px; margin-bottom: 9px; counter-increment: rules; }
.rules-list li::before { content: counter(rules); position: absolute; top: 12px; left: 16px; color: var(--gold); font-weight: 800; }
.rules-list strong { color: var(--text); }

.rule-card, .rules-list li, .tile, .panel, .download-card, .faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.panel, .tile, .download-card { padding: clamp(17px, 3vw, 30px); }
.panel p, .tile p, .download-card p { color: var(--muted); }
.panel p:last-child, .tile p:last-child, .download-card p:last-child { margin-bottom: 0; }
.tile-icon, .download-card .platform { display: block; margin-bottom: 9px; color: var(--gold); font-size: 1.5rem; }
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.download-card h2 { font-size: clamp(1.55rem, 2.5vw, 2.05rem); overflow-wrap: anywhere; }
.download-card-web { display: flex; justify-content: space-between; align-items: center; gap: 20px; grid-column: 1 / -1; background: #251d33; border-color: #776080; }
.download-card-web p { max-width: 62ch; }
.download-card-preferred { border-color: #836c55; }
.status { display: inline-block; margin-bottom: 12px; padding: 3px 9px; border: 1px solid #776040; border-radius: 20px; background: #3b2e23; color: var(--gold-light); font-size: .76rem; font-weight: 700; }
.status-live { background: #243c33; color: #c0efcd; border-color: #507a5f; }

.faq-list { max-width: 76ch; }
.faq-list details { margin-bottom: 9px; padding: 14px 17px; }
.faq-list summary { display: flex; justify-content: space-between; gap: 15px; list-style: none; cursor: pointer; font-weight: 700; }
.faq-list summary::after { content: "+"; color: var(--gold-light); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > p { margin: 11px 0 0; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.legal-note { font-size: .87rem; color: var(--muted); }
.privacy-table { width: 100%; border-collapse: collapse; font-size: .89rem; }
.privacy-table th, .privacy-table td { padding: 9px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.privacy-table th { width: 30%; color: var(--gold-light); }
.mt20 { margin-top: 20px; }
.mt28 { margin-top: 28px; }
.site-banner-preview { padding: 8px; background: #4b2625; color: var(--text); text-align: center; font-size: .86rem; font-weight: 700; }

.site-updates { margin-block: 0 35px; }
.signup-form { flex: 0 1 415px; min-width: 0; }
.signup-label { display: block; margin-bottom: 5px; font-size: .85rem; font-weight: 700; }
.signup-row { display: flex; gap: 8px; }
.signup-row input { flex: 1; min-width: 0; min-height: 48px; padding: 9px 12px; border-radius: 9px; border: 1px solid #776080; background: var(--bg); color: var(--text); font: inherit; }
.signup-row .btn, .list-action .btn { flex: none; cursor: pointer; }
.signup-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-note { margin-top: 6px !important; font-size: .8rem; }
.list-action { margin: 16px 0 8px; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .btn.mobile-top-play { display: inline-flex; margin-inline-start: auto; }
  .round-card { grid-template-columns: 1fr; align-content: start; gap: 13px; }
  .round-card img { width: min(72%, 160px); justify-self: center; }
}

@media (max-width: 760px) {
  .wrap { width: min(650px, calc(100% - 36px)); }
  .header-row { min-height: 63px; gap: 8px; }
  .language-switch { justify-content: center; padding-bottom: 7px; }
  .landing-layout, .modes-layout { grid-template-columns: 1fr; }
  .landing-layout { gap: 25px; padding-block: 32px 30px; }
  .landing-copy h1 { font-size: clamp(2.75rem, 10vw, 4.5rem); text-wrap: initial; }
  .landing-copy .lede { margin-bottom: 16px; }
  .landing-facts { margin-top: 15px; }
  .landing-section-head h2 { text-wrap: pretty; }
  .modes-layout { gap: 17px; }
  .origin-layout { grid-template-columns: 1fr; gap: 24px; }
  .origin-layout .landing-section-head { grid-row: 1; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-actions { justify-content: flex-start; flex-shrink: 1; }
  .site-updates { align-items: stretch; }
  .signup-form { flex: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .grid3, .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 510px) {
  .header-row .brand { font-size: 1.18rem; gap: 6px; }
  .header-row .brand img { width: 32px; height: 32px; }
  .btn.mobile-top-play { min-height: 44px; padding-inline: 8px; }
  .language-switch { gap: 0 2px; }
  .language-switch a { padding-inline: 3px; font-size: .69rem; }
  .hero-actions .primary { flex-basis: 100%; }
  .hero-actions .secondary { width: 100%; }
  .round-grid, .mode-grid, .rule-grid { grid-template-columns: 1fr; gap: 10px; }
  .round-card { grid-template-columns: minmax(70px, 28%) 1fr; align-items: center; }
  .round-card img { width: 100%; }
  .mode-card { padding-block: 10px; }
  .download-card-web { align-items: flex-start; flex-direction: column; }
  .signup-row { flex-direction: column; }
}

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