/* play.dragonspire.io pages. Builds on ds.css (the engraved schematic). */
html, body { min-height: 100%; }
body { background: var(--bg); overflow-x: hidden; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(229,121,63,.14), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(224,176,79,.07), transparent 70%);
}
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--on-gold); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

.bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem clamp(1rem, 4vw, 2.5rem); }
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; min-height: 44px; }
.logo__mark { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linejoin: round; }
.logo__word { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; letter-spacing: .01em; }
.bar nav { display: flex; gap: 1.25rem; font-size: .95rem; flex-wrap: wrap; }
.bar nav a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bar nav a:hover { color: var(--gold); }

/* ---------- the stage: dragon + card + flame ---------- */
.hero { grid-template-columns: minmax(0,1fr); position: relative; z-index: 1; padding: clamp(5rem, 14vh, 8.5rem) 1rem clamp(3rem, 8vh, 5rem); display: grid; place-items: center; }
.hero--sign { min-height: calc(100svh - 80px); padding-top: clamp(4.5rem, 12vh, 7rem); padding-bottom: 3rem; }
.stage { min-width: 0; position: relative; width: min(100%, 600px); }
.stage--sign { width: min(100%, 460px); }

.stage__fire { max-width: none; max-height: none; position: absolute; left: -60px; top: -60px; overflow: visible; pointer-events: none; z-index: 0; }
.stage__dragon { max-width: none;
  position: absolute; z-index: 2; pointer-events: none; user-select: none;
  width: clamp(210px, 38vw, 340px); height: auto;
  right: calc(100% - 52px); top: -134px;       /* mouth sits at the card's top-left corner */
  filter: drop-shadow(0 0 14px rgba(224,176,79,.25));
}
.stage--sign .stage__dragon { width: clamp(190px, 34vw, 290px); top: -112px; right: calc(100% - 46px); }
.card { position: relative; z-index: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.6rem, 5vw, 2.6rem); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.card.ornate::before, .card.ornate::after { width: 22px; height: 22px; }
.card h1 { font-size: var(--step-display); line-height: .95; }
.card .eyebrow { margin-bottom: .6rem; }
.tag { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.6rem; color: var(--gold); margin: .55rem 0 1.1rem; }
.card .lede { margin-bottom: 1.4rem; }
.card h1.sign { margin-bottom: .7rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.4rem; }
.note { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step-small); line-height: 1.6; }
.note strong { color: var(--text); font-weight: 600; }

/* Google sign-in button: Google's published "Sign in with Google" button, light theme. Do not restyle. */
.gsi-material-button {
  -webkit-appearance: none; appearance: none; position: relative; overflow: hidden; cursor: pointer;
  background-color: #fff; border: 1px solid #747775; border-radius: 4px; box-sizing: border-box; color: #1f1f1f;
  font-family: 'Roboto', arial, sans-serif; font-size: 14px; font-weight: 500; height: 40px; letter-spacing: .25px; padding: 0 12px;
  max-width: 400px; min-width: min-content; text-align: center; vertical-align: middle; white-space: nowrap; width: auto;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
}
.gsi-material-button .gsi-material-button-icon { height: 20px; margin-right: 12px; min-width: 20px; width: 20px; }
.gsi-material-button .gsi-material-button-content-wrapper { align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; height: 100%; justify-content: space-between; position: relative; width: 100%; }
.gsi-material-button .gsi-material-button-contents { flex-grow: 1; font-family: 'Roboto', arial, sans-serif; font-weight: 500; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.gsi-material-button .gsi-material-button-state { position: absolute; inset: 0; opacity: 0; transition: opacity .218s; background-color: #303030; }
.gsi-material-button:hover { box-shadow: 0 1px 2px 0 rgba(60,64,67,.30), 0 1px 3px 1px rgba(60,64,67,.15); }
.gsi-material-button:hover .gsi-material-button-state { opacity: .08; }
.gsi-material-button:active .gsi-material-button-state { opacity: .12; }
.gsi-material-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- below the hero ---------- */
.band { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1rem, 4vw, 2rem); }
.band h2 { margin-bottom: 1.4rem; }
.trio { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trio .panel { padding: 1.4rem 1.5rem; }
.trio h3 { font-size: 1.45rem; margin-bottom: .5rem; color: var(--part, var(--gold)); }
.trio p { color: var(--muted); font-size: 1rem; }
.where { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.chip { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.dee { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1.3fr 1fr; }
.dee img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
@media (max-width: 760px) { .dee { grid-template-columns: 1fr; } }
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 1.6rem clamp(1rem, 4vw, 2.5rem) 2.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: var(--muted); font-size: .9rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--gold); }

/* ---------- embers ---------- */
.ember { position: absolute; z-index: 3; width: 4px; height: 4px; border-radius: 50%; background: #FFC477; box-shadow: 0 0 8px 2px rgba(229,121,63,.8); opacity: 0; pointer-events: none; animation: rise var(--d, 4s) ease-out var(--delay, 0s) infinite; }
@keyframes rise { 0% { transform: translate(0,0) scale(1); opacity: 0; } 15% { opacity: .95; } 100% { transform: translate(var(--dx, 10px), -90px) scale(.2); opacity: 0; } }

/* Narrow screens: dragon sits above the card, flame starts at the top-center. */
@media (max-width: 720px) {
  .stage__dragon, .stage--sign .stage__dragon { right: auto; left: 50%; transform: translateX(-50%); top: -120px; width: 220px; }
  .stage--sign .stage__dragon { width: 190px; top: -104px; }
  .hero { padding-top: 7.5rem; }
  .bar nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ember { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
