/*
Theme Name: Jungle Haan
Theme URI: https://jungle-haan.com/
Author: Jungle Haan
Description: Mobile-first Jungle Haan guide for Indian players. Rummy, Ludo and Teen Patti pages plus an Android app status page. Colours follow the app icon: jungle green, gold and purple.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: jungle-haan
*/

:root {
  --ink: #16301c;
  --forest: #06351c;
  --deep: #042616;
  --pine: #14843a;
  --pine-deep: #0d5c2b;
  --paper: #f6f3e4;
  --white: #fffdf6;
  --muted: #5c6b58;
  --gold: #f0c033;
  --gold-deep: #e2a81a;
  --purple: #7a32b8;
  --purple-deep: #54207f;
  --line: #e3d7b4;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 12px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
p, h1, h2, h3, ol, ul { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
h1, h2, .card-title h3, .challenge h3 { font-family: var(--serif); letter-spacing: -0.04em; }
button, summary, a { touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 0.18em; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }

.skip,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  left: 12px;
  top: 8px;
  width: auto;
  height: auto;
  clip-path: none;
  overflow: visible;
  background: var(--white);
  color: var(--ink);
  padding: 12px 16px;
  z-index: 80;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.wrap { width: calc(100% - 36px); margin-inline: auto; }
.icon { flex-shrink: 0; vertical-align: -0.16em; }

.masthead {
  background: var(--forest);
  color: var(--white);
  position: relative;
  z-index: 20;
  border-bottom: 1px solid #1d6a38;
}
.headrow {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  color: #fff6d4;
  text-decoration: none;
  font: 900 20px/0.95 var(--sans);
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(240, 192, 51, 0.45);
}
.desknav { display: none; }
.headend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.android-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d7b45a;
  border-radius: 6px;
  color: #ffe9a8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.android-nav[aria-current],
.android-nav:hover { background: rgba(240, 192, 51, 0.14); color: var(--gold); }
.mobilemenu summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.mobilemenu summary > span { grid-area: 1 / 1; display: grid; }
.closeicon,
.mobilemenu[open] .openicon { display: none; }
.mobilemenu[open] .closeicon { display: block; }
.mobilemenu nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--deep);
  border-top: 1px solid #1d6a38;
  box-shadow: 0 16px 24px rgba(4, 30, 16, 0.28);
  padding: 8px 18px 16px;
  display: grid;
}
.mobilemenu:not([open]) nav { display: none; }
.mobilemenu nav a {
  padding: 12px 2px;
  border-bottom: 1px solid #1a4a2e;
  text-decoration: none;
  font-weight: 700;
  color: #f4f7ea;
}
.mobilemenu nav a[aria-current] { color: var(--gold); }

.hero {
  position: relative;
  color: var(--white);
  background: var(--forest);
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
}
.hero-art {
  position: relative;
  height: clamp(196px, 56vw, 270px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(240, 192, 51, 0.42), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(122, 50, 184, 0.55), transparent 36%),
    radial-gradient(circle at 12% 80%, rgba(47, 180, 70, 0.35), transparent 32%),
    linear-gradient(180deg, #128a3c 0%, #06351c 72%);
}
.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(240, 192, 51, 0.35);
}
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  background: linear-gradient(to bottom, rgba(6, 53, 28, 0), #06351c);
}
.hero-art::before { width: 210px; height: 210px; }
.hero-art::after { width: 150px; height: 150px; border-color: rgba(255, 255, 255, 0.16); }
.hero-art:has(.hero-banner)::before,
.hero-art:has(.hero-banner)::after { display: none; }
.hero-art:has(.hero-banner) { overflow: hidden; }
.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.page-banner {
  width: 100%;
  height: auto;
  display: block;
  margin: 12px 0 4px;
  border-radius: 12px;
}
.hero-in { position: relative; padding: 8px 0 28px; }
.hero-shade {
  display: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 700;
  color: #ffd978;
}
.hero h1 {
  font-size: clamp(48px, 13vw, 74px);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 8px 0 12px;
  line-height: 0.9;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 700; }
.hero-copy > p { max-width: 42ch; color: #f3f6ea; font-size: 16px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.button,
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  line-height: 1.2;
}
.button {
  border-radius: 6px;
  padding: 11px 14px;
  border: 1px solid transparent;
  background: var(--ink);
  color: white;
}
.button.gold { background: var(--gold); color: #1c2914; }
.button.gold:hover { background: #ffd86a; }
.button.outline { background: transparent; border-color: #8eaf86; color: var(--ink); }
.button.outline:hover { background: #e7f3df; }
.hero-link { color: white; }
.hero-link:hover { text-decoration: underline; text-decoration-color: var(--gold); }

.shelf { padding: 30px 0; }
.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-title h2,
.home-faq h2,
.feature-copy h2 { font-size: 36px; font-weight: 700; }
.section-title p,
.home-faq > div > p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.filters {
  display: flex;
  padding: 3px;
  border: 1px solid #d9cda8;
  border-radius: 8px;
  background: var(--white);
  gap: 2px;
}
.filters button {
  border: 0;
  background: transparent;
  color: #3e5344;
  font-size: 13px;
  font-weight: 700;
  border-radius: 5px;
  min-height: 40px;
  padding: 6px 12px;
}
.filters button[aria-pressed="true"] { background: var(--pine); color: #fff8e4; }

.card-grid { display: grid; gap: 12px; }
.guide-card {
  background: var(--white);
  border: 1px solid #e4d7b0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(80, 55, 10, 0.04);
}
.guide-card > a {
  display: grid;
  grid-template-columns: 36% 1fr;
  min-height: 124px;
  text-decoration: none;
  color: inherit;
}
.cover { background: #12381f; min-height: 124px; position: relative; overflow: hidden; }
.cover svg,
.cover img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.card-text { padding: 12px; }
.category {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine-deep);
}
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 3px 0 5px; }
.card-title h3 { font-size: 27px; }
.card-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #e0d2aa;
  display: grid;
  place-items: center;
  color: var(--pine);
  flex-shrink: 0;
}
.card-text p { color: var(--muted); font-size: 14px; line-height: 1.42; }

.feature-wrap { margin-bottom: 28px; }
.feature {
  display: grid;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d9c7ef;
  background: #f4eefe;
}
.feature-art {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  background: #0d5c2b;
}
.feature-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hand { display: flex; align-items: center; }
.pc {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 46px;
  height: 66px;
  margin-left: -10px;
  padding: 4px 5px;
  border-radius: 6px;
  border: 1px solid #d9d3bf;
  background: #fffdf6;
  color: #17301c;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
  box-shadow: 2px 6px 10px rgba(16, 20, 30, 0.22);
}
.pc i { font-style: normal; font-size: 26px; align-self: center; }
.pc.red { color: #b4232c; }
.feature-art .hand { transform: rotate(-8deg); }
.feature-art .pc:first-child { transform: translateY(6px) rotate(-12deg); margin-left: 0; }
.feature-art .pc:last-child { transform: translateY(6px) rotate(12deg); }
.feature-copy { padding: 20px 18px 22px; }
.feature-copy .eyebrow { color: var(--purple-deep); }
.feature-copy h2 { font-size: 30px; margin: 8px 0; }
.feature-copy p { font-size: 16px; }
.feature-copy summary,
.challenge summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 8px;
  color: var(--pine-deep);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feature-copy details[open] .icon,
.challenge details[open] .icon { transform: rotate(180deg); }
.feature-copy details a,
.prose a { color: var(--pine-deep); font-weight: 700; }

.home-faq { display: grid; gap: 8px; margin-bottom: 24px; }
.home-faq > div > p a,
.related a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.home-faq > div > p a:hover,
.related a:hover { text-decoration: underline; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 16px 36px 16px 0;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.faq summary span::before,
.faq summary span::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 13px;
  height: 2px;
  background: var(--pine);
}
.faq summary span::after { transform: rotate(90deg); }
.faq details[open] summary span::after { display: none; }
.faq details > div { padding: 0 8px 16px 0; color: #3e5646; }
.faq details > div p + p { margin-top: 8px; }

.home-android { margin-bottom: 28px; }
.android-panel {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff8df 0%, #f3e7c0 100%);
}
.panel-icon,
.status-symbol {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--purple-deep);
  background: #f3e2ff;
}
.android-panel h2 { font-size: 24px; }
.android-panel p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.android-panel .button { grid-column: 2; justify-self: start; }

footer { background: var(--forest); color: #e7f3df; }
.footer-top,
.footer-bottom { display: flex; }
.footer-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 0 14px;
}
.footer-top nav,
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-top nav a,
.footer-bottom a {
  color: #e7f0dc;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
}
.footer-bottom {
  border-top: 1px solid #1d5a36;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0 18px;
  color: #c5d8c4;
  font-size: 13px;
}
.footer-bottom a { font-size: 13px; }

.crumb { padding-top: 16px; }
.crumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; color: #5d6e60; font-size: 13px; }
.crumb li + li::before { content: "/"; padding: 0 8px; color: #8b977f; }
.crumb [aria-current] { color: #2d4a34; text-decoration: none; }
.reading,
.detail-outer { padding-bottom: 36px; }
.pagehead,
.game-head { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.pagehead h1,
.game-head h1 { font-size: clamp(38px, 9vw, 52px); margin: 8px 0 10px; }
.pagehead > p,
.game-head p { color: #415747; font-size: 17px; max-width: 62ch; }
.game-head { display: grid; gap: 16px; }
.game-visual {
  grid-column: 1 / -1;
  border-radius: 12px;
  overflow: hidden;
  background: #12381f;
  border: 1px solid #e4d7b0;
}
.game-head > div { grid-column: 1 / -1; }
.game-visual svg,
.game-visual img { width: 100%; height: auto; display: block; }
.prose { color: #243c2c; padding-top: 4px; }
.prose section { padding-top: 24px; }
.prose h2 { font-size: clamp(28px, 7vw, 36px); margin: 0 0 10px; }
.prose h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.prose p + p,
.prose ul + p,
.prose .table-wrap + p { margin-top: 12px; }
.prose ul,
.prose ol { padding-left: 1.15em; }
.prose li + li { margin-top: 6px; }
.lead-in { margin-top: 10px; }

.statusbox {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e2c56a;
  background: linear-gradient(180deg, #fff8e2, #f4e7bf);
}
.statusbox h2 { margin: 4px 0 8px; }
.dated,
.datebar,
.note { color: var(--muted); font-size: 14px; }
.dated { display: block; margin-top: 10px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.spec {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.spec b { display: block; font-size: 16px; }
.spec span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.steps { list-style: none; padding: 0; margin-top: 8px; }
.steps li { position: relative; padding: 4px 0 14px 46px; }
.steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e5f6d8;
  color: var(--pine-deep);
  font-weight: 700;
}
.steps { counter-reset: step; }
.steps h3 { margin-bottom: 4px; }
.mode-list { display: grid; gap: 8px; margin-top: 12px; }
.mode-list article {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-deep);
  border-radius: 8px;
  padding: 12px 12px 12px 14px;
}
.mode-list h3 { margin-bottom: 4px; }

.contents {
  margin-top: 16px;
  background: #fff8e4;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 14px 10px;
}
.contents h2,
.related strong {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contents nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.contents a { padding: 6px 0; font-size: 14px; color: #2f5a3c; text-decoration: none; font-weight: 700; }
.worked-hand { display: grid; gap: 8px; margin-top: 12px; }
.worked-hand > div,
.challenge {
  background: #fff8e6;
  border: 1px solid #ead9a4;
  border-radius: 8px;
  padding: 12px;
}
.worked-hand h3 { font-size: 15px; margin-bottom: 8px; }
.worked-hand .hand { flex-wrap: wrap; gap: 4px; }
.worked-hand .pc { width: 34px; height: 48px; margin-left: 0; font-size: 15px; box-shadow: none; }
.worked-hand .pc i { font-size: 18px; }
.challenge { margin-top: 14px; border-left: 4px solid var(--purple); }
.challenge h3 { font-size: 24px; margin: 6px 0 8px; }
.challenge .eyebrow { color: var(--purple-deep); }
.head-to-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.vs { font-weight: 800; color: var(--purple); letter-spacing: 0.08em; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 280px; }
caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 6px; }
th, td { border-bottom: 1px solid #eadcba; padding: 10px 8px; text-align: left; vertical-align: top; }
thead { background: #f3e2ff; }
.move-example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e2d2a4;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 12px;
}
.move-example > div {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #fff8e4;
  text-align: center;
  padding: 8px;
}
.move-example > div:nth-child(odd) { background: #f4eefe; }
.token {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset -2px -3px 0 rgba(0, 0, 0, 0.15);
}
.token.blue { background: #2f7edb; }
.token.coral { background: #e2553d; }
.move-example b { font-size: 16px; }
.move-example small { font-size: 12px; font-weight: 700; color: #516454; }
.related { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 12px; }
.related > div { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.help-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
}
.email-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}
.email-card a { font-weight: 800; color: var(--pine-deep); }
.callout {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8e9e4;
  color: #6d2c24;
  font-size: 14px;
}
.source { padding: 16px 0; border-top: 1px solid var(--line); }
.source-who { color: var(--muted); font-size: 13px; font-weight: 700; }
.source h3 { margin: 4px 0; font-size: 20px; }
.errorpage { padding: 28px 0 48px; }
.errorpage .button { margin-top: 16px; }

@media (min-width: 720px) {
  body { font-size: 17px; }
  .wrap { width: min(1120px, calc(100% - 48px)); }
  .worked-hand { grid-template-columns: 1fr 1fr; }
  .move-example { grid-template-columns: repeat(4, 1fr); }
  .specs { grid-template-columns: repeat(4, 1fr); }
  .home-faq { grid-template-columns: 0.8fr 1.4fr; gap: 36px; align-items: start; }
  .android-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
  }
  .android-panel .button { margin-left: auto; }
  .panel-icon { width: 48px; height: 48px; }
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .card-grid { grid-template-columns: 1fr; }
  .guide-card > a { grid-template-columns: 220px 1fr; }
}

@media (min-width: 960px) {
  .headrow {
    height: 74px;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
  }
  .brand { font-size: 25px; gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .desknav { display: flex; align-items: center; gap: 28px; height: 100%; }
  .desknav a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: #dce8d6;
    font-size: 14px;
    font-weight: 700;
  }
  .desknav a[aria-current],
  .desknav a:hover { color: #fff4cc; }
  .desknav a[aria-current]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    height: 2px;
    background: var(--gold);
  }
  .mobilemenu { display: none; }
  .android-nav { min-height: 42px; padding: 8px 14px; font-size: 14px; }
  .hero { min-height: 500px; }
  .hero-art {
    position: absolute;
    inset: 0 0 0 54%;
    height: auto;
  }
  .hero-banner { object-position: center center; }
  .hero-fade { display: none; }
  .hero-in {
    display: flex;
    align-items: center;
    min-height: 500px;
    padding: 48px 0;
  }
  .hero-copy { max-width: 540px; position: relative; z-index: 1; }
  .hero h1 { font-size: clamp(60px, 5.4vw, 84px); white-space: nowrap; }
  .hero-copy > p { font-size: 18px; }
  .shelf { padding: 48px 0 36px; }
  .section-title { align-items: flex-end; margin-bottom: 22px; }
  .section-title h2 { font-size: 48px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .guide-card > a { display: flex; flex-direction: column; height: 100%; }
  .cover { aspect-ratio: 2.15; min-height: 0; }
  .card-text { padding: 16px 18px 18px; }
  .card-title h3 { font-size: 32px; }
  .feature { grid-template-columns: 34% 1fr; align-items: stretch; }
  .feature-art { min-height: 250px; }
  .feature-copy { padding: 32px 40px; }
  .feature-copy h2 { font-size: 40px; }
  .pc { width: 62px; height: 90px; font-size: 26px; }
  .pc i { font-size: 38px; }
  .game-head { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 28px; padding: 28px 0; }
  .game-head h1,
  .pagehead h1 { font-size: 64px; }
  .guide-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
  .contents { position: sticky; top: 16px; }
  .contents nav { display: grid; }
  .home-android { margin-bottom: 52px; }
  .home-faq { margin-bottom: 42px; }
}

@media (max-width: 520px) {
  .android-nav .android-extra { display: none; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 24px); }
  .brand { font-size: 18px; }
  .brand img { width: 30px; height: 30px; }
  .hero h1 { font-size: 42px; }
  .card-title h3 { font-size: 23px; }
  .guide-card > a { grid-template-columns: 34% 1fr; }
}

.app-band { margin-top: 18px; }
.app-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.app-head img { width: 56px; height: 56px; border-radius: 14px; }
.app-head h2 { font-family: var(--serif); font-size: 28px; }
.app-head .eyebrow { color: var(--pine-deep); }
.app-head p:last-child { margin-top: 6px; color: #415747; font-size: 15px; }
.fact-list { margin-top: 12px; border-top: 1px solid var(--line); }
.fact-list div {
  display: grid;
  grid-template-columns: minmax(108px, 42%) 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.fact-list dt { color: var(--muted); font-size: 13px; }
.fact-list dd { margin: 0; font-weight: 700; }
.path-grid { display: grid; gap: 8px; margin-top: 12px; }
.path-grid a {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.path-grid strong { font-size: 16px; }
.path-grid span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.status-symbol img { width: 40px; height: 40px; border-radius: 8px; }
.statusbox .fact-list { margin-top: 8px; }
.dock { display: none; }
code { font-size: 0.92em; }

@media (min-width: 760px) {
  .app-head { grid-template-columns: 72px minmax(0, 1fr); }
  .app-head img { width: 72px; height: 72px; }
  .app-head h2 { font-size: 40px; }
  .fact-list { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .path-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { padding-bottom: 86px; }
  .dock {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    position: fixed;
    z-index: 40;
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 8px;
    background: #fffdf8;
    border: 1px solid #e4c56a;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(18, 40, 16, 0.18);
  }
  .dock img { width: 44px; height: 44px; border-radius: 10px; }
  .dock strong { display: block; font-size: 14px; line-height: 1.15; }
  .dock p { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.25; }
  .dock .button { min-height: 36px; padding: 7px 10px; font-size: 13px; white-space: nowrap; }
  .hero-art { height: clamp(188px, 54vw, 240px); }
  .page-banner { margin: 8px 0 2px; border-radius: 10px; }
  .game-visual { grid-column: 1 / -1; }
  .hero-in { padding-bottom: 14px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); margin: 4px 0 8px; }
  .hero-copy > p { font-size: 14px; line-height: 1.4; }
  .hero-actions { margin-top: 12px; gap: 10px; }
  .app-band { margin-top: 12px; }
  .app-head h2 { font-size: 24px; }
  .app-head p:last-child { font-size: 14px; }
  .shelf { padding: 16px 0; }
  .section-title { margin-bottom: 8px; gap: 8px; }
  .section-title h2,
  .home-faq h2,
  .feature-copy h2,
  .app-head h2 { font-size: 26px; }
  .card-grid { gap: 8px; }
  .guide-card > a { grid-template-columns: 1fr; min-height: 0; }
  .cover { aspect-ratio: 16 / 9; min-height: 0; }
  .card-text { padding: 8px 10px; }
  .card-title { margin: 0 0 3px; }
  .card-title h3 { font-size: 20px; }
  .feature-wrap { margin-bottom: 14px; }
  .feature-art { min-height: 148px; }
  .feature-copy { padding: 12px 14px 14px; }
  .feature-copy h2 { font-size: 24px; margin: 4px 0; }
  .home-faq { margin-bottom: 12px; gap: 4px; }
  .faq summary { padding: 11px 32px 11px 0; font-size: 15px; }
  .home-android { margin-bottom: 14px; }
  .android-panel { padding: 12px; }
  .android-panel h2 { font-size: 20px; }
  .crumb { padding-top: 10px; }
  .pagehead,
  .game-head { padding: 10px 0 12px; }
  .pagehead h1,
  .game-head h1 { font-size: clamp(28px, 7.6vw, 36px); margin: 4px 0 6px; }
  .pagehead > p,
  .game-head p { font-size: 15px; }
  .prose section { padding-top: 14px; }
  .prose h2,
  .statusbox h2 { font-size: 22px; margin-bottom: 6px; }
  .reading,
  .detail-outer { padding-bottom: 16px; }
  .contents { margin-top: 10px; padding: 10px 12px; }
  .challenge h3 { font-size: 20px; }
  .footer-top { padding: 16px 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; }
}
