:root {
  color-scheme: light;
  --ink: #20202a;
  --muted: #626574;
  --accent: #e60012;
  --accent-dark: #b9000e;
  --accent-soft: #fff1f2;
  --gold: #f3c96a;
  --paper: #ffffff;
  --page: #f7f7f9;
  --line: #eadde0;
  --shadow: 0 12px 34px rgb(41 16 20 / 7%);
  --heading-font: "Outfit", "Segoe UI", sans-serif;
  --body-font: "DM Sans", "Segoe UI", sans-serif;
}

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

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

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.7 var(--body-font);
  letter-spacing: 0.005em;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

button,
a {
  touch-action: manipulation;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: #181820;
  color: white;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Shared site header and navigation */
header {
  position: sticky;
  z-index: 1000;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px max(20px, calc((100% - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 4px 20px rgb(230 0 18 / 5%);
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.logo img {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid #f3c9ce;
  border-radius: 9px;
  background: #111;
  object-fit: cover;
}

.brand-title {
  color: var(--accent-dark);
  font: 800 1.2rem/1.2 var(--heading-font);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

#navMenu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
}

#navMenu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: #454651;
  font: 600 0.94rem/1.3 var(--heading-font);
  text-decoration: none;
}

#navMenu a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent-dark);
  font-size: 1.7rem;
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--accent-soft);
}

/* Homepage hero and download information */
.hero {
  padding: 42px 20px 38px;
  border-bottom: 1px solid #f0d8db;
  background: linear-gradient(135deg, #fff5f6, #fff 76%);
  text-align: center;
}

.hero-logo {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border: 2px solid var(--gold);
  border-radius: 20px;
  background: #111;
  object-fit: cover;
  box-shadow: 0 8px 24px rgb(123 20 31 / 14%);
}

.hero h1,
.page-hero h1 {
  max-width: 900px;
  margin: 0 auto 14px;
  color: #a80d19;
  font: 700 clamp(1.8rem, 4.5vw, 2.8rem)/1.14 var(--heading-font);
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.hero p,
.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.download-box {
  width: min(100%, 440px);
  margin: 20px auto 10px;
  padding: 22px 24px;
  border: 2px solid #f0c6cb;
  border-radius: 15px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.apk-info {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-bottom: 13px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e8c8cc;
  color: var(--muted);
  font-size: 0.82rem;
}

.apk-info div {
  min-width: 0;
  flex: 1;
  text-align: center;
  overflow-wrap: anywhere;
}

.apk-info span {
  color: var(--ink);
  font-weight: 700;
}

.download-btn {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--accent-dark);
  border-radius: 9px;
  background: linear-gradient(135deg, #ef3947, #ce0010);
  box-shadow: 0 5px 14px rgb(230 0 18 / 20%);
  color: white;
  font: 700 1rem/1.2 var(--heading-font);
  letter-spacing: 0.025em;
  text-decoration: none;
}

.download-btn:hover {
  background: var(--accent-dark);
}

.safe-text {
  margin-top: 10px;
  color: #a3232d;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Homepage screenshot carousel */
.home-slider {
  width: min(calc(100% - 28px), 420px);
  margin: 18px auto 22px;
}

.slider-frame {
  position: relative;
}

.slider-viewport {
  width: 100%;
  height: min(620px, 70vh);
  height: min(620px, 70svh);
  min-height: 300px;
  overflow: hidden;
  border-radius: 12px;
  background: #100608;
  touch-action: pan-y;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}

.home-slide {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  flex: 0 0 100%;
  margin: 0;
  background: #100608;
}

.home-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slider-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: flex;
  width: 40px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid #f1d8db;
  border-radius: 9px;
  background: rgb(255 255 255 / 92%);
  color: var(--accent-dark);
  font: 700 1.8rem/1 var(--heading-font);
  cursor: pointer;
}

.slider-frame .slider-arrow:first-child {
  left: 8px;
}

.slider-frame .slider-arrow:last-child {
  right: 8px;
}

.slider-arrow:hover {
  background: white;
}

.slider-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c8c8ce;
  cursor: pointer;
}

.slider-dot.is-current {
  background: var(--accent);
  box-shadow: 0 0 0 3px #ffd8dc;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* Home article layout */
main {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.toc,
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 6px 24px rgb(28 19 20 / 4%);
}

.toc {
  position: sticky;
  top: 88px;
  padding: 14px;
}

.toc h2 {
  margin: 0 0 4px;
  color: #34343e;
  font: 600 0.96rem/1.35 var(--heading-font);
}

.toc ul {
  margin: 0;
  padding-left: 17px;
}

.toc li {
  margin: 0;
  padding: 0;
}

.toc a {
  display: flex;
  min-height: 40px;
  align-items: center;
  color: #4d4e59;
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent-dark);
}

.content {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.card {
  padding: 25px 27px;
  scroll-margin-top: 90px;
}

.card h2,
.page-shell h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0dfe1;
  color: #b20d19;
  font: 650 1.35rem/1.3 var(--heading-font);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.card h3,
.page-shell h3 {
  margin: 20px 0 6px;
  color: #8f1520;
  font: 600 1.08rem/1.35 var(--heading-font);
}

.card p,
.page-shell p {
  margin: 10px 0;
  color: #3d3d48;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.card ul,
.card ol,
.page-shell ul,
.page-shell ol {
  padding-left: 22px;
  color: #3d3d48;
}

.card li,
.page-shell li {
  padding: 3px 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.notice,
.contact-note {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid #f2d8a2;
  border-left: 4px solid #e5aa35;
  border-radius: 8px;
  background: #fff9ea;
  color: #574728;
}

.feature-list li {
  padding: 5px 0;
}

/* Responsive information table */
.info-section {
  overflow: hidden;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 8px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.info-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: white;
}

.info-table th,
.info-table td {
  padding: 11px 13px;
  border: 1px solid #f0d5d8;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.info-table thead th {
  width: 34%;
  background: var(--accent-soft);
  color: #8d1520;
  font-weight: 700;
}

.info-table tbody th {
  width: 34%;
  background: #fffafa;
  color: #393943;
  font-weight: 650;
}

.info-table td {
  width: 66%;
  color: #34343e;
}

/* Inner pages and blog list */
.page-hero {
  padding: 38px 20px;
  border-bottom: 1px solid #f0d8db;
  background: linear-gradient(135deg, #fff4f5, white);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 10px;
}

.page-shell {
  width: min(100%, 1020px);
  margin: 24px auto;
  padding: 0 20px 36px;
}

.page-shell .card {
  margin: 16px 0;
  padding: 27px;
}

.detail-section {
  margin-top: 24px;
}

.guide-list {
  display: grid;
  gap: 13px;
}

.guide-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 17px;
  border: 1px solid #f0cdd1;
  border-radius: 11px;
  background: white;
}

.guide-link h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #a80d19;
  font: 650 1.08rem/1.4 var(--heading-font);
}

.guide-link span {
  color: var(--muted);
  line-height: 1.5;
}

.read-more-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  padding: 9px 17px;
  border: 1px solid var(--accent-dark);
  border-radius: 8px;
  background: linear-gradient(135deg, #ef3947, #ce0010);
  color: white;
  font: 700 0.96rem/1.2 var(--heading-font);
  text-decoration: none;
}

.read-more-btn:hover {
  background: var(--accent-dark);
}

/* Shared page footer */
footer {
  margin-top: 30px;
  padding: 28px 18px;
  border-top: 1px solid #f0d8db;
  background: white;
  color: var(--muted);
  text-align: center;
}

.footer-brand {
  margin-bottom: 5px;
  color: var(--accent-dark);
  font: 700 1.08rem/1.35 var(--heading-font);
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Mobile navigation and compact screens */
@media (max-width: 900px) {
  header {
    padding: 10px 18px;
  }

  .menu-toggle {
    display: flex;
  }

  #navMenu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 9px 18px 14px;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 12px 24px rgb(20 10 12 / 12%);
    overscroll-behavior: contain;
  }

  #navMenu.open {
    display: flex;
  }

  #navMenu a {
    width: 100%;
    min-height: 46px;
    padding: 8px 6px;
  }

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

  .toc {
    position: static;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 76px;
  }

  .hero {
    padding: 34px 14px 30px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.72rem, 7.6vw, 2.25rem);
  }

  .hero p,
  .page-hero p {
    font-size: 0.96rem;
  }

  .download-box {
    padding: 18px 14px;
  }

  .apk-info {
    gap: 4px;
    font-size: 0.74rem;
  }

  .safe-text {
    font-size: 0.78rem;
  }

  .home-slider {
    width: calc(100% - 24px);
    max-width: 380px;
    margin: 15px auto 18px;
  }

  .slider-viewport {
    height: min(54vh, 430px);
    height: min(54svh, 430px);
    min-height: 250px;
  }

  main {
    padding: 20px 13px 38px;
  }

  .page-hero {
    padding: 30px 15px;
  }

  .page-shell {
    margin: 18px auto;
    padding: 0 13px 25px;
  }

  .card,
  .page-shell .card {
    padding: 19px 16px;
    border-radius: 12px;
  }

  .card h2,
  .page-shell h2 {
    font-size: 1.22rem;
  }

  .info-table th,
  .info-table td {
    padding: 9px 10px;
    font-size: 0.9rem;
  }

  .guide-link {
    padding: 14px;
  }

  footer {
    margin-top: 20px;
    padding: 23px 14px;
  }
}

@media (max-width: 360px) {
  header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand-title {
    font-size: 1.08rem;
  }

  .logo {
    gap: 8px;
  }

  .logo img {
    width: 38px;
    height: 38px;
  }

  .home-slider {
    width: calc(100% - 20px);
  }

  .slider-viewport {
    height: min(50vh, 360px);
    height: min(50svh, 360px);
    min-height: 230px;
  }

  .download-box {
    padding: 16px 11px;
  }

  .info-table th,
  .info-table td {
    padding: 8px;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}



/* AU6 clean ivory and gold theme */
:root {
  color-scheme: light;
  --ink: #29231c;
  --muted: #756b5d;
  --accent: #a87a24;
  --accent-dark: #805716;
  --accent-soft: #fbf4e5;
  --gold: #c99b3b;
  --paper: #ffffff;
  --page: #f7f4ed;
  --line: #e8dfcc;
  --shadow: 0 12px 34px rgb(66 48 20 / 8%);
}

body { background: #f7f4ed; color: #29231c; }
a { color: #805716; }
header {
  border-bottom: 1px solid #e8dfcc;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 4px 18px rgb(66 48 20 / 7%);
}
.logo img { border: 1px solid #d7b76d; }
.brand-title, .menu-toggle { color: #805716; }
#navMenu a { color: #40372b; }
#navMenu a:hover, .toc a:hover { color: #a30f1c; }
.menu-toggle:hover { background: #fbf4e5; }

.hero, .page-hero {
  border-bottom: 1px solid #e9d8ad;
  background: radial-gradient(ellipse at 50% 0, #fff8e9, #fff 72%);
}
.hero h1, .page-hero h1 { color: #6d4b14; }
.hero p, .page-hero p { color: #62584b; }
.hero-logo { border: 2px solid #c99b3b; }
.download-box {
  border: 1px solid #e2cf9e;
  background: #fff;
  box-shadow: 0 12px 30px rgb(88 63 20 / 10%);
}
.apk-info { border-bottom-color: #eadfc5; }
.apk-info span { color: #29231c; }
.download-btn, .read-more-btn {
  border: 1px solid #8f111b;
  background: linear-gradient(135deg, #c51e2b, #92121d);
  color: #fff;
  box-shadow: 0 5px 14px rgb(146 18 29 / 18%);
}
.download-btn:hover, .read-more-btn:hover { background: #79101a; }
.safe-text { color: #765817; }

.slider-viewport, .home-slide { background: #160b08; }
.slider-arrow { border-color: #e0ca92; background: rgb(255 255 255 / 94%); color: #805716; }
.slider-arrow:hover { background: #fff8e9; }
.slider-dot { background: #d0c9bb; }
.slider-dot.is-current { background: #a87a24; box-shadow: 0 0 0 3px #f3e6c5; }

.toc, .card {
  border: 1px solid #e8dfcc;
  background: #fff;
  box-shadow: 0 6px 24px rgb(66 48 20 / 5%);
}
.toc h2 { color: #5a431d; }
.toc a { color: #51483c; }
.card h2, .page-shell h2 { border-bottom-color: #eee4d1; color: #7f5b1c; }
.card h3, .page-shell h3 { color: #8f1720; }
.card p, .page-shell p, .card ul, .card ol, .page-shell ul, .page-shell ol { color: #403b34; }
.card strong, .page-shell strong { color: #6f4e17; }
.notice, .contact-note {
  border: 1px solid #ead9ae;
  border-left: 4px solid #c99b3b;
  background: #fff9eb;
  color: #55472e;
}
.info-table { background: #fff; }
.info-table th, .info-table td { border-color: #e8dfcc; }
.info-table thead th { background: #fbf4e5; color: #704d14; }
.info-table tbody th { background: #fffdf8; color: #39342d; }
.info-table td { color: #34302a; }
.guide-link { border-color: #e8dfcc; background: #fffdf8; }
.guide-link h2 { color: #805716; }
.guide-link span { color: #756b5d; }
details { border-bottom: 1px solid #e8dfcc; }
details summary { color: #704d14; cursor: pointer; }
details p { color: #403b34; }
footer { border-top: 1px solid #e8dfcc; background: #fff; color: #756b5d; }
.footer-brand { color: #805716; }
@media (max-width: 900px) {
  #navMenu { border-bottom-color: #e8dfcc; background: #fff; }
}
@media (max-width: 900px) {
  header { isolation: isolate; }
  #navMenu {
    z-index: 1001;
    visibility: visible;
    pointer-events: auto;
  }
  #navMenu:not(.open) { display: none; }
  #navMenu.open { display: flex; }
  .menu-toggle { position: relative; z-index: 1002; }
}

/* Phone layout refinements */
@media (max-width: 768px) {
  html { scroll-padding-top: 72px; }
  body { font-size: 15.5px; }
  header {
    min-height: 62px;
    padding: 8px 14px;
    gap: 10px;
  }
  .logo { gap: 9px; }
  .logo img { width: 40px; height: 40px; }
  .brand-title { font-size: 1.08rem; }
  .menu-toggle {
    display: flex;
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border: 1px solid #e8dfcc;
    background: #fffdf8;
    font-size: 1.55rem;
  }
  #navMenu {
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    max-height: calc(100svh - 64px);
    padding: 8px 14px 14px;
    border: 1px solid #e8dfcc;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: 0 14px 26px rgb(50 36 12 / 16%);
  }
  #navMenu a {
    min-height: 48px;
    padding: 9px 10px;
    border-bottom: 1px solid #f1eadb;
    font-size: 1rem;
  }
  #navMenu a:last-child { border-bottom: 0; }
  .hero { padding: 28px 16px 26px; }
  .hero-logo { width: 72px; height: 72px; border-radius: 16px; }
  .hero h1, .page-hero h1 { max-width: 24ch; line-height: 1.16; }
  .hero p, .page-hero p { max-width: 58ch; }
  .download-box { max-width: 480px; margin-top: 17px; padding: 18px; }
  .apk-info { gap: 8px; }
  .apk-info div { overflow-wrap: anywhere; }
  .download-btn, .read-more-btn { min-height: 48px; }
  .home-slider { width: min(calc(100% - 28px), 390px); }
  .slider-viewport { height: min(58svh, 520px); min-height: 280px; }
  main { padding: 20px 14px 38px; }
  .page-shell { width: min(100%, 720px); margin: 18px auto; padding: 0 14px 30px; }
  .layout { gap: 14px; }
  .toc { padding: 12px 14px; }
  .toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .toc a { min-height: 42px; }
  .content { gap: 12px; }
  .card, .page-shell .card { padding: 20px 17px; }
  .card p, .page-shell p { line-height: 1.65; }
  .table-wrap { margin-inline: 0; }
  .info-table th, .info-table td { padding: 9px 10px; }
  footer { padding: 22px 14px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .hero { padding: 24px 13px 22px; }
  .hero h1, .page-hero h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .hero p, .page-hero p { font-size: .94rem; }
  .page-hero { padding: 27px 14px; }
  .download-box { padding: 15px 12px; border-radius: 12px; }
  .apk-info { align-items: flex-start; font-size: .72rem; }
  .apk-info div { line-height: 1.4; }
  .home-slider { width: calc(100% - 22px); margin: 12px auto 16px; }
  .slider-viewport { height: min(56svh, 450px); min-height: 245px; border-radius: 10px; }
  .slider-arrow { width: 36px; height: 40px; }
  main { padding: 16px 10px 30px; }
  .page-shell { padding: 0 10px 24px; }
  .toc ul { grid-template-columns: minmax(0, 1fr); }
  .toc a { min-height: 38px; }
  .card, .page-shell .card { padding: 17px 14px; border-radius: 11px; }
  .card h2, .page-shell h2 { font-size: 1.16rem; }
  .info-table th, .info-table td { padding: 8px; font-size: .86rem; }
  .notice, .contact-note { padding: 11px 12px; }
  .guide-link { padding: 13px; }
}

@media (max-width: 360px) {
  .brand-title { font-size: 1rem; }
  .logo img { width: 36px; height: 36px; }
  .menu-toggle { width: 42px; height: 42px; flex-basis: 42px; }
  .apk-info { font-size: .67rem; }
  .download-box { padding: 13px 10px; }
  .slider-viewport { height: 48svh; min-height: 220px; }
}

/* Keep mobile navigation usable if JavaScript is unavailable. */
@media (max-width: 900px) {
  #navMenu { display: flex; }
  html.has-menu-js #navMenu:not(.open) { display: none; }
  html.has-menu-js #navMenu.open { display: flex; }
}
