/* ==========================================================================
   Andar Bahar: Card Game — proof-of-ownership website
   Shared stylesheet. No external fonts or CDNs (Hostinger / offline friendly).
   ========================================================================== */

:root {
  --felt: #0b5d3b;
  --felt-dark: #094a30;
  --card: #f5f1e8;
  --card-border: #d2cdc1;
  --ink: #222222;
  --ink-soft: #55514a;
  --muted: #7a756c;
  --red: #c0392b;
  --link: #0a5f7a;
  --radius: 12px;
  --shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  --content-width: 820px;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--felt);
  background-image: radial-gradient(
    ellipse at 50% 0%,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 55%
  );
  background-attachment: fixed;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  padding: 8px 0 40px;
}

section {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 30px;
  margin: 22px 0;
}

/* ---------- Header ---------- */

.site-header {
  color: var(--card);
  text-align: center;
  padding: 40px 20px 26px;
}

.site-header .app-icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow);
  background: var(--card);
  display: block;
  margin: 0 auto 16px;
}

.site-header h1 {
  margin: 0 0 4px;
  font-size: 1.9rem;
  letter-spacing: 0.2px;
}

.site-header .byline {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.site-header .suits {
  margin-top: 14px;
  font-size: 1.2rem;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Nav ---------- */

.site-nav {
  text-align: center;
  padding-bottom: 6px;
}

.site-nav a {
  color: var(--card);
  text-decoration: none;
  font-size: 0.95rem;
  margin: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a:focus {
  border-bottom-color: var(--card);
}

/* ---------- Typography ---------- */

h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  color: var(--ink);
  border-bottom: 2px solid var(--card-border);
  padding-bottom: 8px;
}

h2::before {
  content: "\2660\00a0";
  color: var(--red);
}

h3 {
  margin: 20px 0 8px;
  font-size: 1.05rem;
}

p {
  margin: 0 0 12px;
}

a {
  color: var(--link);
}

ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ---------- Notice box ---------- */

.notice {
  border-left: 4px solid var(--red);
  background: #fbecea;
  border-radius: 6px;
  padding: 16px 18px;
}

.notice h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.notice p:last-child {
  margin-bottom: 0;
}

/* ---------- App info list ---------- */

.info-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 22px;
  margin: 0;
}

.info-grid dt {
  font-weight: 700;
  color: var(--ink-soft);
}

.info-grid dd {
  margin: 0;
}

/* ---------- Screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shots figure {
  margin: 0;
  min-width: 0;
  text-align: center;
}

.shots img {
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 2400;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: #fff;
}

.shots figcaption {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Ownership statement ---------- */

.ownership {
  background: #eef4ef;
  border: 1px solid #cfe0d4;
}

.ownership h2::before {
  content: "\2663\00a0";
}

/* ---------- Footer ---------- */

.site-footer {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 0.9rem;
  padding: 26px 20px 46px;
}

.site-footer a {
  color: #cfe8f0;
}

.site-footer p {
  margin: 4px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  section {
    padding: 20px 18px;
  }

  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .info-grid dd {
    margin-bottom: 10px;
  }

  .site-header h1 {
    font-size: 1.55rem;
  }
}

/* ---------- Accessibility ---------- */

a:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid #ffd54a;
  outline-offset: 2px;
}

/* ---------- Print (this doubles as a printable ownership record) ---------- */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .site-nav a {
    color: #000;
  }

  section {
    box-shadow: none;
    border-color: #999;
    break-inside: avoid;
  }

  .site-nav {
    display: none;
  }
}
