/* Hush & Hearth landing page: the sections, top to bottom */

/* Hero, with the lantern reveal: the shot sits drained and a warm circle brings its color back */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 16px clamp(3.5rem, 7vw, 5rem); text-align: center; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--dusk), transparent 70%); }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .55; background-image:
  radial-gradient(1px 1px at 8% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 8%, #fff 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 35% 26%, var(--teal) 50%, transparent 51%), radial-gradient(1px 1px at 61% 12%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 74% 30%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 14%, var(--parchment) 50%, transparent 51%),
  radial-gradient(1px 1px at 93% 34%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 48% 6%, #fff 50%, transparent 51%); }
.hero-text { position: relative; max-width: 760px; margin: 0 auto; }
.title { font-family: var(--pixel); font-size: clamp(2.9rem, 10vw, 5.6rem); line-height: 1; margin: .15em 0 .25em; text-shadow: 0 0 34px rgba(255, 179, 92, .28); }
.tagline { font-family: var(--head); font-size: clamp(1.5rem, 3.6vw, 2.15rem); color: var(--parchment); margin-bottom: .6em; }
.pitch { max-width: 60ch; margin: 0 auto 1.4rem; font-size: 1.1rem; }

.reveal { --x: 50%; --y: 45%; --r: 170px; position: relative; max-width: 1180px; margin: clamp(2rem, 5vw, 3rem) auto 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0, 0, 0, .55); touch-action: pan-y; }
.reveal img { display: block; width: 100%; }
.reveal .drained { filter: grayscale(1) sepia(.5) hue-rotate(215deg) saturate(1.7) brightness(.6) contrast(1.05); }
.reveal .lit { position: absolute; inset: 0; height: 100%;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0 50%, rgba(0, 0, 0, .55) 72%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0 50%, rgba(0, 0, 0, .55) 72%, transparent 100%); }
.reveal::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle var(--r) at var(--x) var(--y), rgba(255, 179, 92, .16), transparent 75%); }
.reveal figcaption { position: absolute; z-index: 1; left: 50%; bottom: 12px; transform: translateX(-50%); width: max-content; max-width: 92%; padding: .3rem .95rem; border-radius: 999px; background: rgba(21, 18, 42, .78); color: var(--parchment); font-family: var(--head); font-size: 1.05rem; }
.reveal .touch { display: none; }
@media (hover: hover) and (pointer: fine) { .reveal { cursor: none; } }
@media (hover: none) { .reveal .mouse { display: none; } .reveal .touch { display: inline; } }
@media (prefers-reduced-motion: reduce) {
  .reveal .lit, .reveal::after, .reveal figcaption { display: none; }
  .reveal .drained { filter: none; }
}

/* The game */
.pillars { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { --accent: var(--amber); padding: 1.5rem; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); }
.pillar.teal { --accent: var(--teal); }
.pillar.gold { --accent: var(--gold); }
.pillar h3::before { content: ""; display: inline-block; width: 9px; height: 9px; margin: 0 .55rem .2rem 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px var(--accent); }
.pillar p { margin: 0; }

/* The strip, shown on a made-up desktop above a made-up taskbar */
.strip-band { background: linear-gradient(180deg, transparent, rgba(140, 224, 194, .045) 40%, transparent); }
.desktop { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.wallpaper { position: absolute; inset: 0; background: radial-gradient(circle at 25% 30%, #3d4c7c, transparent 60%), radial-gradient(circle at 85% 75%, #5b3c70, transparent 55%), #1d2240; }
.wallpaper::before { content: ""; position: absolute; left: 9%; top: 10%; width: 56%; height: 52%; border-radius: 8px; background: linear-gradient(rgba(255, 255, 255, .14) 0 9%, rgba(255, 255, 255, .06) 9%); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.strip-view { position: absolute; left: 0; right: 0; bottom: 9%; overflow: hidden; }
.strip-view img { display: block; width: 250%; max-width: none; animation: pan 40s ease-in-out infinite alternate; }
@keyframes pan { to { transform: translateX(-60%); } }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(14, 14, 26, .94); }
.taskbar i { width: 4%; max-width: 18px; aspect-ratio: 1; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.taskbar i:first-child { background: var(--amber); opacity: .85; }
.taskbar b { position: absolute; right: 2.5%; font: 600 clamp(.55rem, 1.4vw, .75rem) var(--body); color: #cfd3e6; }
@media (prefers-reduced-motion: reduce) { .strip-view img { width: 100%; } }

/* How to play */
.loop { list-style: none; counter-reset: step; display: grid; gap: 1rem; padding: 0; margin: 1rem 0 0; }
@media (min-width: 640px) { .loop { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .loop { grid-template-columns: repeat(5, 1fr); } }
.loop li { counter-increment: step; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .02); }
.loop li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .6rem; border: 1px solid var(--amber); border-radius: 50%; color: var(--amber); font-weight: 700; }
.loop b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.35rem; color: var(--parchment); line-height: 1.2; margin-bottom: .2rem; }
.loop span { color: var(--muted); font-size: .95rem; }
.controls-grid { display: grid; gap: 1rem 3rem; }
@media (min-width: 1000px) { .controls-grid { grid-template-columns: 1.3fr 1fr; } }
.controls-grid > *, .two > * { min-width: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.controls { width: 100%; border-collapse: collapse; font-size: .95rem; }
.controls th, .controls td { padding: .5rem .8rem; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(58, 51, 96, .6); }
.controls tbody tr:last-child > * { border-bottom: 0; }
.controls thead th { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .03); }
.controls tbody th { min-width: 9rem; font-weight: 500; color: var(--text); }
.controls td { color: var(--muted); white-space: nowrap; }
kbd { display: inline-block; min-width: 1.75em; margin: .1em .15em .1em 0; padding: .05em .45em; border: 1px solid #4a4275; border-bottom-width: 3px; border-radius: 6px; background: #221d40; color: var(--parchment); font: 600 .8rem/1.5 var(--body); text-align: center; }
.menus { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; padding: 0; margin: 1rem 0 0; color: var(--muted); font-size: .92rem; }
.basics { list-style: none; padding: 0; margin: 1rem 0 0; }
.basics li { --accent: var(--amber); margin-bottom: .75rem; padding: .85rem 1rem .85rem 1.1rem; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: rgba(255, 255, 255, .03); }
.basics li.teal { --accent: var(--teal); }
.basics li.hush { --accent: var(--hush); }
.basics b { color: var(--parchment); font-weight: 600; }

/* The story, on a page of Wren's journal */
.story-band { background: radial-gradient(ellipse at 85% 15%, rgba(140, 224, 194, .06), transparent 60%); }
.story-two { align-items: start; }
.journal { padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: 6px; background: radial-gradient(circle at 20% 10%, #fbf1d6, var(--paper) 60%, #e8d6aa); color: var(--ink); font-family: var(--head); font-size: 1.3rem; line-height: 1.5; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); transform: rotate(-.6deg); }
.journal blockquote { margin: 1.2rem 0 0; padding-left: 1rem; border-left: 3px solid var(--amber); color: #7a3f12; font-size: 1.45rem; }
.story-shots .shot:first-child { margin-top: 0; }
.story-shots .shot img { transform: rotate(.8deg); }
.story-shots .shot:last-child img { transform: rotate(-.5deg); }
.cast { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; padding: 0; margin: 1rem 0 0; }
.cast li { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .02); }
.cast b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.45rem; color: var(--parchment); }
.cast span { color: var(--muted); font-size: .95rem; }
.cast li.missing { border-style: dashed; border-color: var(--hush-dim); }
.cast li.missing b { color: var(--hush); }

/* Creatures: gray until hovered or focused, like trust in the game */
.creatures { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; padding: 0; margin: 2rem 0 0; }
.card { position: relative; padding: 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(circle at 50% 28%, rgba(138, 127, 168, .2), transparent 62%), var(--night-2); transition: border-color .5s, transform .5s; }
.card:hover, .card:focus { border-color: rgba(242, 201, 76, .55); transform: translateY(-3px); }
.card img { display: block; width: 160px; height: 160px; margin: 0 auto .4rem; filter: grayscale(1) brightness(.78) contrast(.9); transition: filter 1s ease, transform 1s ease; }
.card:hover img, .card:focus img { filter: none; transform: scale(1.04); }
.card h3 { text-align: center; font-size: 1.75rem; margin: 0; }
.rarity { position: absolute; top: 1rem; right: 1rem; margin: 0; padding: .1rem .55rem; border: 1px solid var(--teal); border-radius: 999px; color: var(--teal); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rarity.uncommon { border-color: var(--amber); color: var(--amber); }
.rarity.rare { border-color: var(--gold); color: var(--gold); }
.hearts { display: flex; justify-content: center; gap: 5px; margin: .3rem 0 1rem; }
.hearts i { width: 13px; height: 12px; background: var(--hush-dim); clip-path: polygon(50% 100%, 0 50%, 0 17%, 17% 0, 37% 0, 50% 17%, 63% 0, 83% 0, 100% 17%, 100% 50%); transition: background .3s; }
.card:hover .hearts i, .card:focus .hearts i { background: var(--gold); }
.hearts i:nth-child(2) { transition-delay: .12s; }
.hearts i:nth-child(3) { transition-delay: .24s; }
.hearts i:nth-child(4) { transition-delay: .36s; }
.hearts i:nth-child(5) { transition-delay: .48s; }
.card dl { margin: 0; }
.card dt { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card dd { margin: 0 0 .6rem; font-size: .95rem; }

/* The closing call */
.soon { text-align: center; padding-top: 2rem; }
.soon .lead { margin: 1.2rem auto 0; color: var(--muted); }
