/* Solvira Games — approved direction B: joined graphic panels and original game art. */
:root {
  --forest: #20352d;
  --gold: #ffd046;
  --paper: #f7f3e9;
  --stone: #ead8cb;
  --ink: #20352d;
  --muted: #53655a;
  --line: #c6cec2;
  --white: #f7f3e9;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4.45vw, 4rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; }
main { flex: 1; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
p + p { margin-top: 1rem; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.05em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.1vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.025em; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, video:focus-visible { outline: 3px solid #94651e; outline-offset: 6px; }
.wrap { width: min(82rem, calc(100% - var(--gutter)*2)); margin-inline: auto; }
.site-main { width: min(86rem, calc(100% - 4rem)); margin: 2rem auto 0; }
.eyebrow { font-size: .69rem; letter-spacing: .14em; line-height: 1.6; font-weight: 650; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 20; background: var(--gold); color: var(--ink); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { background: var(--forest); color: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 92px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand img { width: 177px; }
.site-nav { display: flex; align-items: center; gap: 2.4rem; }
.site-nav a, .site-nav>span { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .875rem; font-weight: 600; }
.site-nav a:hover, .site-nav [aria-current] { color: var(--gold); }
.site-nav [aria-current] { text-decoration: underline; text-underline-offset: .55em; }
.site-header a:focus-visible { outline-color: var(--gold); }
.site-footer { padding-block: 1.6rem; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; font-size: .75rem; }
.footer-nav a, .footer-nav>span { display: inline-flex; align-items: center; min-height: 44px; }
.studio-opening { display: grid; grid-template-columns: minmax(0, 1.87fr) minmax(0, 1fr); }
.title-panel { position: relative; isolation: isolate; background: var(--gold); padding: 29px 47px 30px; overflow: hidden; }
.title-panel h1 { position: relative; z-index: 1; margin-top: 17px; font-size: clamp(3.625rem, 6.1vw, 5.5rem); line-height: .91; letter-spacing: -.066em; }
.title-panel h1 span { display: block; }
.title-panel h1 em { display: block; font-family: Georgia, "Times New Roman", serif; font-size: .8em; line-height: 1.07; font-weight: 400; letter-spacing: -.06em; margin-top: 6px; }
.joint { position: absolute; width: 108px; height: 108px; right: -1px; bottom: 0; background: var(--forest); border-radius: 108px 0 0 0; pointer-events: none; z-index: 0; }
.studio-panel { padding: 29px 38px 31px; background: var(--forest); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-width: 0; }
.studio-mark { display: flex; justify-content: flex-end; }
.studio-mark img { height: 128px; width: auto; }
.studio-panel>p { max-width: 340px; font-size: 1.125rem; line-height: 1.55; }
.portfolio-grid { display: grid; gap: 2rem; }
.game-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.87fr); grid-template-rows: auto 1fr; position: relative; background: var(--stone); min-width: 0; text-decoration: none; }
.game-card-copy { grid-column: 1; grid-row: 1; padding: 37px 39px 0; min-width: 0; }
.game-card-meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.1rem; }
.game-card h2, .game-card h3 { font-size: clamp(2.44rem, 4.1vw, 3.69rem); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.06em; line-height: 1; margin-top: 38px; }
.game-subtitle { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.125rem; margin-top: 12px; line-height: 1.45; }
.game-description { font-size: 1rem; line-height: 1.65; max-width: 19rem; margin-top: 22px; }
.game-cover { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #bfc8e5; }
.game-cover img { width: 100%; height: auto; }
.card-action { grid-column: 1; grid-row: 2; align-self: start; display: flex; align-items: center; gap: 26px; padding: 21px 39px 32px; min-height: 44px; font-size: .875rem; font-weight: 650; }
.card-action>span { font-size: 26px; font-weight: 400; line-height: 1; transition: transform .18s ease; }
.game-card:hover .card-action>span { transform: translate(3px, -3px); }
.outpost-card { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); background: var(--forest); color: var(--paper); }
.outpost-card .game-cover { grid-column: 1; background: #aebec4; }
.outpost-card .game-card-copy, .outpost-card .card-action { grid-column: 2; }
.outpost-card h2, .outpost-card h3 { font-family: var(--font); font-weight: 800; line-height: .98; letter-spacing: -.065em; font-size: clamp(2.65rem, 4.6vw, 4.125rem); margin-top: 28px; }
.outpost-card .card-action { color: var(--gold); }
.game-status { font-size: .69rem; color: var(--gold); white-space: nowrap; }
.page-banner { display: grid; grid-template-columns: minmax(0, 1.87fr) minmax(0, 1fr); margin-bottom: 2rem; }
.page-banner-title { background: var(--gold); padding: 2.5rem 3rem; }
.page-banner-title h1 { margin-top: 1rem; }
.page-banner-copy { display: flex; align-items: center; background: var(--forest); color: var(--paper); padding: 2.5rem; }
.page-banner-copy p { max-width: 24rem; }
/* Both game pages share the same masthead, large media and gameplay structure. */
.game-masthead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.game-title-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 320px; padding: 3rem; background: var(--gold); }
.game-title-panel>p, .game-title-panel h1 { position: relative; z-index: 1; }
.game-title-panel h1 { margin-top: 1.25rem; font-size: clamp(3.4rem, 5.7vw, 5.4rem); line-height: .98; letter-spacing: -.065em; }
.afterstone-game h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.game-title-panel .game-subtitle { margin-top: .8rem; font-size: 1.2rem; }
.game-summary-panel { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: 3rem; background: var(--forest); color: var(--paper); }
.game-summary-panel>p:first-child { max-width: 36rem; font-size: 1.125rem; line-height: 1.7; }
.release-status { display: inline-block; color: var(--gold); border: 1px solid #ffd04675; padding: .45rem .8rem; font-size: .75rem; margin-top: 1.5rem; }
.store-section { display: grid; grid-template-columns: repeat(2, 184px); gap: 16px; margin-top: 1.5rem; }
.store-badge { display: grid; place-items: center; width: 184px; height: 76px; background: #000; border: 1px solid #a7aea9; border-radius: 8px; text-decoration: none; }
.store-badge img { width: 144px; height: auto; }
.store-badge:hover { border-color: var(--gold); }
.store-badge:focus-visible { outline-color: var(--gold); }
.game-media { margin: 0; }
.game-media>img { width: 100%; height: auto; }
.game-media video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: #253541; }
.caption { color: var(--muted); font-size: .75rem; padding-block: .9rem; }
.gameplay-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); margin-top: 2rem; }
.gameplay-heading { background: var(--forest); color: var(--paper); padding: 2.5rem; }
.gameplay-heading .eyebrow { color: var(--gold); margin-bottom: 1.4rem; }
.gameplay-heading h2 { max-width: 23rem; font-weight: 750; font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.1; }
.mechanics { background: #eee4d8; padding: 2.5rem; }
.mechanic { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1.25rem; padding-bottom: 1.7rem; margin-bottom: 1.7rem; border-bottom: 1px solid #c9c7b8; }
.mechanic:last-child { padding-bottom: 0; margin-bottom: 0; border: 0; }
.mechanic-number { font-size: 1.25rem; font-weight: 750; color: #7d5d19; line-height: 1.4; }
.mechanic h3 { font-size: 1.25rem; line-height: 1.35; }
.mechanic p { margin-top: .75rem; color: var(--muted); font-size: .95rem; }
.gallery-section { margin-top: 3rem; }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.6rem; }
.gallery-heading h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.gallery-heading p { max-width: 24rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.gallery img { width: 100%; height: auto; }
.gallery figcaption { margin-top: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; }
.gallery figcaption strong { font-size: .9rem; font-weight: 600; }
.gallery figcaption span { color: var(--muted); font-size: .75rem; }
/* Company pages retain their factual content within the same graphic system. */
.studio-page .title-panel { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.studio-page .title-panel h1 { max-width: 10ch; font-size: clamp(4rem, 7vw, 6.5rem); }
.studio-page .studio-panel { min-height: 320px; justify-content: center; align-items: center; }
.studio-page .studio-mark img { height: 175px; }
.studio-profile { padding: 3rem; background: var(--stone); }
.studio-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 1rem 4rem; }
.studio-copy h2 { grid-row: 1 / span 2; max-width: 12ch; }
.studio-copy p { grid-column: 2; max-width: 40rem; margin: 0; color: var(--muted); }
.contact-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.contact-heading { position: relative; isolation: isolate; overflow: hidden; background: var(--gold); padding: 3rem; }
.contact-heading>*:not(.joint) { position: relative; z-index: 1; }
.contact-heading h1 { margin-top: 1.5rem; font-size: clamp(4rem, 7.8vw, 7rem); line-height: .96; letter-spacing: -.055em; }
.contact-heading h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.contact-intro { max-width: 20rem; margin-top: 1.8rem; font-size: 1rem; }
.contact-panel { background: var(--forest); color: var(--paper); padding: 3rem; min-width: 0; }
.contact-panel h2 { font-size: .69rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.6; font-weight: 600; color: #cbd4cd; }
.contact-mail-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; color: var(--gold); text-decoration: none; margin-top: .6rem; font-size: clamp(1.3rem, 2.5vw, 2.2rem); line-height: 1.4; letter-spacing: -.035em; }
.contact-mail-link>span:first-child { min-width: 0; }
.contact-mail-link:hover>span:first-child { text-decoration: underline; }
.contact-mail-link:focus-visible { outline-color: var(--gold); }
.contact-arrow { flex-shrink: 0; }
.contact-location { border-top: 1px solid #ffffff36; margin-top: 1.8rem; padding-top: 1.8rem; }
.company-address { font-style: normal; margin: 1rem 0 0; color: #d0d8d1; line-height: 1.85; }
.company-address strong, .company-address span { display: block; }
.company-address strong { color: var(--paper); margin-bottom: .6rem; font-size: 1.05rem; font-weight: 600; }
.contact-support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); background: var(--stone); gap: 3rem; padding: 2.5rem 3rem; }
.contact-support h2 { font-size: 1.7rem; }
.contact-support p { font-size: .95rem; color: var(--muted); }
.contact-support .small-note { font-size: .8rem; margin-top: .7rem; }
.legal-page { max-width: 72rem; }
.legal-heading { background: var(--gold); padding: 2.5rem 3rem; }
.legal-heading h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); margin-top: 1rem; }
.policy-date { font-size: .8rem; margin-top: 1.25rem; }
.prose { max-width: 52rem; margin-inline: auto; padding: 2.7rem 2rem 1rem; line-height: 1.8; }
.prose .policy-intro { font-size: 1.05rem; color: var(--ink); }
.prose section { margin-top: 1.8rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.prose h2 { font-size: 1.3rem; line-height: 1.4; letter-spacing: -.02em; font-weight: 650; margin-bottom: 1rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose a { overflow-wrap: anywhere; }
.provider-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; padding: 0; margin: .8rem 0 0; font-size: .9rem; }
.provider-links a { display: inline-flex; align-items: center; min-height: 44px; }
.error-panel { position: relative; background: var(--gold); padding: clamp(2rem, 6vw, 5rem); }
.error-panel h1 { margin-top: 1.3rem; }
.error-panel p:not(.eyebrow) { margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: 2rem; padding: .85rem 1.3rem; background: var(--forest); color: var(--paper); text-decoration: none; font-size: .95rem; font-weight: 600; }
.error-panel .button { margin-top: 2rem; }
.button:hover { color: var(--gold); }
@media (max-width: 1100px) {
  .title-panel { padding: 29px 30px; }
  .studio-panel { padding: 29px; }
  .studio-panel>p { font-size: 1rem; }
  .studio-mark img { height: 108px; }
  .joint { width: 80px; height: 80px; }
  .game-card-copy { padding: 30px 27px 0; }
  .card-action { padding-inline: 27px; }
  .game-card h2, .game-card h3 { margin-top: 30px; }
  .game-description { font-size: .9rem; }
  .game-masthead { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .game-title-panel, .game-summary-panel, .contact-heading, .contact-panel { padding: 2rem; }
  .store-section { grid-template-columns: repeat(2, 168px); gap: 12px; }
  .store-badge { width: 168px; }
  .gameplay-heading, .mechanics { padding: 2rem; }
}
@media (max-width: 900px) {
  .game-masthead { grid-template-columns: 1fr; }
  .game-title-panel { min-height: 0; padding-bottom: 5rem; }
  .game-title-panel h1 { max-width: none; font-size: clamp(3.25rem, 7vw, 4.5rem); }
  .game-summary-panel { padding-block: 2rem; }
  .gameplay-section { grid-template-columns: 1fr; }
  .gameplay-heading h2 { max-width: 30rem; }
  .studio-copy { gap: 1rem 2rem; }
  .contact-hero { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .contact-support { gap: 2rem; padding: 2rem; }
}
@media (max-width: 900px) {
  .site-main { width: calc(100% - 2rem); margin-top: 1rem; }
  .header-inner { min-height: 76px; gap: 1.5rem; }
  .brand img { width: 145px; }
  .site-nav { gap: 1.3rem; }
  .site-nav a, .site-nav>span { font-size: .8rem; }
  .studio-opening, .page-banner { grid-template-columns: 1fr; }
  .title-panel { padding: 28px 27px 31px; }
  .title-panel h1 { font-size: clamp(3.1rem, 9.8vw, 4.6rem); margin-top: 24px; }
  .eyebrow { font-size: .625rem; }
  .joint { width: 64px; height: 64px; }
  .studio-panel { flex-direction: row; align-items: center; gap: 26px; padding: 23px 27px; }
  .studio-mark { order: 2; flex: 0 0 56px; }
  .studio-mark img { width: 56px; height: auto; }
  .studio-panel>p { font-size: .875rem; max-width: none; }
  .portfolio-grid { gap: 1rem; }
  .game-card, .outpost-card { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .game-card .game-cover { grid-column: 1; grid-row: 1; }
  .game-card .game-card-copy { grid-column: 1; grid-row: 2; padding: 29px 27px 27px; }
  .afterstone-card .game-card-copy { border-top: 8px solid var(--gold); }
  .game-card h2, .game-card h3 { margin-top: 19px; font-size: 2.875rem; }
  .game-subtitle { font-size: 1.05rem; margin-top: 8px; }
  .game-description { font-size: .95rem; max-width: 23rem; margin-top: 17px; }
  .game-card .card-action { grid-column: 1; grid-row: 1; z-index: 1; align-self: end; justify-self: end; margin: 0 16px 16px 0; padding: 4px 14px; min-height: 40px; gap: 20px; background: var(--forest); color: var(--paper); border: 1px solid var(--paper); font-size: .75rem; }
  .game-card .card-action>span { color: var(--gold); font-size: 23px; }
  .outpost-card h2, .outpost-card h3 { font-size: 3.125rem; }
  .page-banner { margin-bottom: 1rem; }
  .page-banner-title, .page-banner-copy { padding: 2rem; }
  .page-banner-title h1 { font-size: 3.5rem; }
  .studio-page .title-panel { padding: 2rem; min-height: 220px; }
  .studio-page .title-panel h1 { font-size: 4rem; }
  .studio-page .studio-panel { min-height: 180px; }
  .studio-page .studio-mark { flex: none; }
  .studio-page .studio-mark img { height: 118px; width: auto; }
  .studio-profile { padding: 2rem; }
  .studio-copy { display: block; }
  .studio-copy h2 { max-width: 18ch; margin-bottom: 1.5rem; }
  .studio-copy p+p { margin-top: 1rem; }
  .contact-hero, .contact-support { grid-template-columns: 1fr; }
  .contact-heading h1 { font-size: clamp(3.75rem, 11vw, 5rem); }
  .contact-intro { margin-top: 1.3rem; }
  .contact-mail-link { font-size: clamp(1.3rem, 5.8vw, 2rem); }
  .contact-support { gap: 1rem; }
  .legal-heading { padding: 2rem; }
  .legal-heading h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
  .prose { padding: 2rem 1rem 1rem; }
  .gallery-heading { display: block; }
  .gallery-heading p { margin-top: 1rem; }
  .gallery { gap: 1rem; }
}
@media (max-width: 600px) {
  .game-title-panel { padding: 2rem 1.5rem 4.5rem; }
  .game-title-panel h1 { font-size: clamp(2.8rem, 11vw, 4rem); }
  .game-summary-panel { padding: 1.75rem 1rem; }
  .game-summary-panel>p:first-child { font-size: 1rem; }
  .store-section { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 340px; gap: 12px; }
  .store-badge { width: 100%; height: 64px; }
  .store-badge img { width: 120px; }
  .caption { font-size: .7rem; }
  .gameplay-section { margin-top: 1.5rem; }
  .gameplay-heading, .mechanics { padding: 1.75rem 1.5rem; }
  .mechanic { grid-template-columns: 1.5rem minmax(0, 1fr); gap: .9rem; }
  .mechanic-number { font-size: 1rem; }
  .mechanic h3 { font-size: 1.1rem; }
  .mechanic p { font-size: .9rem; }
  .gallery-section { margin-top: 2rem; }
  .gallery { grid-template-columns: 1fr; gap: 1.75rem; }
  .contact-heading, .contact-panel, .contact-support { padding: 1.75rem 1.5rem; }
}
@media (max-width: 430px) {
  .header-inner { gap: 1rem; min-height: 70px; }
  .brand img { width: 122px; }
  .site-nav { gap: 1rem; }
  .site-nav a, .site-nav>span { font-size: .7rem; }
  .title-panel { padding: 26px 24px 27px; }
  .title-panel h1 { font-size: clamp(2.8rem, 14.35vw, 3.5rem); }
  .studio-panel { padding: 23px 24px; gap: 23px; }
  .studio-panel>p { font-size: .8125rem; }
  .studio-mark { flex-basis: 47px; }
  .studio-mark img { width: 47px; }
  .game-card .game-card-copy { padding-inline: 24px; }
  .game-card h2, .game-card h3 { font-size: 2.65rem; }
  .game-status { font-size: .65rem; }
  .footer-inner { font-size: .7rem; gap: 1rem; }
}
@media (max-width: 340px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { gap: .8rem; }
  .brand img { width: 109px; }
  .site-nav { gap: .75rem; }
  .title-panel { padding-inline: 20px; }
  .studio-panel { padding-inline: 20px; gap: 16px; }
  .store-section { grid-template-columns: 1fr; max-width: 184px; }
  .game-title-panel { padding-inline: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .joint { display: none; }
  .site-main { width: 100%; margin: 0; }
  .title-panel, .studio-panel, .game-title-panel, .game-summary-panel, .contact-heading, .contact-panel, .contact-support, .legal-heading, .gameplay-heading, .mechanics { color: black; background: white; }
  .company-address, .company-address strong, .contact-panel h2, .contact-mail-link { color: black; }
  .prose { max-width: none; padding: 1rem 0; }
  .prose section { break-inside: avoid; }
}
