@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { color-scheme: dark; --ink: #f5f0e9; --muted: #b4acbe; --gold: #d9ba7f; --line: #e9d8ff20; }
* { box-sizing: border-box; }
body { margin: 0; background: #100d19; color: var(--ink); font: 400 15px/1.6 'DM Sans', sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
[hidden] { display: none !important; }
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 78% 35%, #61307838, transparent 52%), radial-gradient(ellipse at 8% 80%, #53361f20, transparent 50%); }
.invitation-page { max-width: 1240px; margin: auto; padding: 0 64px; }
.masthead { height: 114px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 14px; font: 800 23px/1.2 'Manrope', sans-serif; letter-spacing: 5px; }
.wordmark > span:first-child { font: 42px Georgia, serif; color: var(--gold); }
.wordmark small { display: block; margin-top: 6px; font-size: 8px; letter-spacing: 7px; font-weight: 500; }
.edition { font-size: 9px; letter-spacing: 2.5px; color: var(--muted); }
.edition span { color: var(--gold); padding: 0 9px; }
.hero { min-height: 620px; display: grid; grid-template-columns: 1.14fr 1fr; align-items: center; gap: 30px; padding: 58px 0 65px; }
.eyebrow { margin: 0 0 24px; color: var(--gold); font-size: 9px; font-weight: 600; letter-spacing: 2.8px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 13px; }
.eyebrow > span { width: 30px; height: 1px; background: var(--gold); }
h1 { margin: 0; font: 400 clamp(54px, 5.8vw, 82px)/1.02 Georgia, serif; letter-spacing: -3px; }
h1 em { color: var(--gold); font-weight: 400; }
.intro { margin: 28px 0 31px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.install-actions { max-width: 348px; }
.download-button { width: 100%; min-height: 60px; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 16px 21px; border: 1px solid #f5d9a2; border-radius: 5px; background: linear-gradient(115deg, #ecd5ac, #d2ac6c); color: #21172b; font-size: 13px; font-weight: 700; box-shadow: 0 5px 30px #d8b67b16, inset 0 1px #fff7; transition: transform .2s, box-shadow .2s; }
.download-button svg { width: 21px; height: 21px; flex: none; }
.button-arrow { margin-left: auto; font-size: 21px; line-height: 1; }
.download-button:hover { transform: translateY(-2px); box-shadow: 0 8px 35px #d8b67b30; }
.download-button:disabled { opacity: .7; cursor: wait; transform: none; }
.open-game { display: block; text-align: center; margin: 18px 0; color: #e9e0ee; font-size: 12px; }
.open-game span { margin-left: 7px; color: var(--gold); }
.install-note { text-align: center; font-size: 10px; color: #a79cae; min-height: 32px; margin: 0; }
.artwork { position: relative; display: grid; place-items: center; min-height: 440px; }
.orbit { position: absolute; border: 1px solid #c1a2e51c; border-radius: 50%; width: 420px; height: 420px; }
.orbit-two { width: 340px; height: 340px; border-style: dashed; transform: rotate(20deg); }
.invitation-card { position: relative; width: 294px; min-height: 384px; padding: 23px 24px 19px; transform: rotate(8deg); border: 1px solid #d6b98775; border-radius: 16px; background: radial-gradient(ellipse at 65% 35%, #6b47734d, transparent 70%), linear-gradient(140deg, #32243a, #15101f 80%); box-shadow: 20px 30px 70px #0008, inset 0 0 0 6px #ffffff03; }
.invitation-card::before { content: ''; position: absolute; inset: 9px; border: 1px solid #d8bf8924; border-radius: 9px; pointer-events: none; }
.card-top, .card-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--gold); font-size: 8px; letter-spacing: 2px; }
.card-top > span:last-child { font: 27px Georgia, serif; }
.app-medallion { width: 142px; height: 142px; margin: 25px auto 20px; padding: 7px; border-radius: 34px; background: #ead3a612; border: 1px solid #d5b78045; box-shadow: 0 0 45px #b172d824; }
.app-medallion img { width: 100%; height: 100%; object-fit: contain; border-radius: 26px; }
.card-caption { text-align: center; font: 26px/1.25 Georgia, serif; }
.card-caption em { color: #d3b7db; font-size: 24px; }
.card-bottom { margin-top: 27px; padding-top: 17px; border-top: 1px solid #d9ba7f30; font-size: 7px; }
.card-bottom > span:last-child { font-size: 21px; line-height: 1; }
.suit { position: absolute; color: var(--gold); font-family: Georgia, serif; }
.suit-one { left: 3%; bottom: 14%; font-size: 43px; transform: rotate(-22deg); color: #d1b2d7; }
.suit-two { right: 2%; top: 6%; font-size: 43px; transform: rotate(18deg); }
.artwork-caption { position: absolute; bottom: -31px; color: #9686a1; font-size: 7px; letter-spacing: 2px; }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; padding: 32px 0; border-block: 1px solid var(--line); }
.details > div { display: flex; gap: 16px; align-items: flex-start; }
.detail-number { font: italic 22px Georgia, serif; color: #a287b2; margin-top: 3px; }
.details h2 { margin: 0 0 5px; font-size: 12px; font-weight: 600; }
.details p { margin: 0; font-size: 10px; color: var(--muted); }
.share-section { position: relative; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 45px 0; }
.share-section .eyebrow { margin: 0 0 6px; font-size: 8px; }
.share-section h2 { margin: 0; font: 28px Georgia, serif; }
.share-actions { display: flex; align-items: center; gap: 23px; }
.share-button { border: 1px solid #bd9cc943; background: #241a2d88; color: #ede1f1; padding: 12px 18px; border-radius: 5px; font-size: 11px; }
.share-button span { margin-left: 17px; color: var(--gold); }
.copy-button { padding: 10px 0; background: none; border: 0; border-bottom: 1px solid #b19a7566; color: var(--gold); font-size: 11px; }
.share-status { position: absolute; bottom: 10px; right: 0; margin: 0; font-size: 11px; color: var(--gold); }
#manual-copy { flex-basis: 100%; font-size: 12px; }
#invitation-url { display: block; margin-top: 8px; width: 100%; padding: 12px; color: var(--ink); border: 1px solid var(--line); background: #211a2b; border-radius: 5px; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 22px 0 28px; color: #a498ae; font-size: 9px; }
footer > span:first-child { font-size: 8px; letter-spacing: 2px; }
footer > span:nth-child(2) { font: italic 14px Georgia, serif; }
@media (max-width: 1000px) { .invitation-page { padding-inline: 35px; } .orbit-one { width: 340px; height: 340px; } .orbit-two { width: 300px; height: 300px; } .invitation-card { width: 270px; } .hero { gap: 15px; } }
@media (max-width: 700px) {
  .invitation-page { padding: 0 24px; overflow: hidden; }
  .masthead { height: 85px; } .wordmark { font-size: 19px; gap: 9px; } .wordmark > span:first-child { font-size: 33px; } .wordmark small { font-size: 7px; }
  .edition { font-size: 7px; letter-spacing: 1.2px; } .edition span { padding: 0 4px; }
  .hero { grid-template-columns: 1fr; text-align: center; gap: 35px; padding: 40px 0 45px; }
  .hero-copy .eyebrow { justify-content: center; font-size: 8px; margin-bottom: 20px; } .eyebrow > span { width: 20px; }
  h1 { font-size: 60px; letter-spacing: -2px; } .intro { font-size: 12px; margin: 22px 0 25px; } .desktop-break { display: none; }
  .install-actions { margin: auto; } .download-button { min-height: 56px; padding-inline: 15px; font-size: 12px; }
  .artwork { min-height: 355px; margin: 0 0 18px; } .invitation-card { width: 235px; min-height: 310px; padding: 17px 22px; }
  .card-top { font-size: 7px; } .card-top > span:last-child { font-size: 21px; } .app-medallion { width: 113px; height: 113px; margin: 18px auto; border-radius: 26px; } .app-medallion img { border-radius: 19px; }
  .card-caption { font-size: 23px; } .card-caption em { font-size: 21px; } .card-bottom { margin-top: 21px; padding-top: 11px; font-size: 6px; }
  .orbit-one { width: 315px; height: 315px; } .orbit-two { width: 265px; height: 265px; } .suit-one { left: 0; } .suit-two { right: 0; }
  .artwork-caption { bottom: -15px; font-size: 6px; letter-spacing: 1.8px; }
  .details { grid-template-columns: 1fr; padding: 27px 10px; gap: 23px; } .details h2 { font-size: 13px; } .details p { font-size: 11px; } .details > div { gap: 23px; }
  .share-section { justify-content: center; text-align: center; padding: 35px 0 45px; } .share-section h2 { font-size: 29px; } .share-actions { gap: 21px; } .share-status { left: 0; right: 0; }
  footer { flex-wrap: wrap; font-size: 9px; } footer > span:nth-child(2) { display: none; }
}
@media (max-width: 360px) { .invitation-page { padding-inline: 18px; } h1 { font-size: 53px; } .edition { letter-spacing: .4px; } .download-button { gap: 8px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
/* Phones: informative text at 10 px or more (R-18). */
@media (max-width: 700px) {
  .edition { font-size: 10px; letter-spacing: .6px; }
  .hero-copy .eyebrow, .share-section .eyebrow { font-size: 10px; letter-spacing: 1.6px; }
  footer, footer > span:first-child { font-size: 10px; letter-spacing: 1px; }
}
/* Every size: informative lettering at 10 px (R-18); the logotype keeps 8 px. */
.edition, .eyebrow, .share-section .eyebrow, footer, footer > span:first-child { font-size: 10px; }
@media (max-width: 700px) { .wordmark small { font-size: 8px; } }
/* Installed app: the masthead and the page keep clear of the notch and corners. */
.invitation-page { padding-top: env(safe-area-inset-top); padding-left: max(64px, env(safe-area-inset-left)); padding-right: max(64px, env(safe-area-inset-right)); }
@media (max-width: 1000px) { .invitation-page { padding-left: max(35px, env(safe-area-inset-left)); padding-right: max(35px, env(safe-area-inset-right)); } }
@media (max-width: 700px) { .invitation-page { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); } }
@media (max-width: 360px) { .invitation-page { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); } }
