/* latin-ext */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-01.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-02.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-01.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-02.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-06.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-05.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-04.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-03.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-06.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-05.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-04.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-03.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-06.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-05.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-04.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-03.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-06.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-05.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-04.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barusu-font-03.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0914;
  --surface: #141024;
  --surface-hover: #1c1733;
  --border: #2a2347;
  --text: #ece9f6;
  --muted: #9e97b8;
  --accent: #8b5cf6;
  --crimson: #e11d48;
  --silver: #cbd5e1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: radial-gradient(circle at 20% 0%, #1d1438 0%, var(--bg) 55%);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; width: 100%; }

header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  background: rgba(11, 9, 20, 0.88);
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.brand span {
  background: linear-gradient(135deg, var(--crimson), var(--accent));
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #fff;
}

.nav-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.94rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; font-weight: 600; }

.hero {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--border);
}

.badge {
  display: inline-block;
  border: 1px solid rgba(225, 29, 72, 0.45);
  background: rgba(225, 29, 72, 0.12);
  color: #fda4af;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); line-height: 1.2; margin-bottom: 12px; }
h2 { font-size: 1.5rem; margin-bottom: 8px; }
.jp-sub { color: var(--muted); font-size: 1.02rem; margin-bottom: 18px; }
.hero-desc { max-width: 720px; color: var(--silver); margin-bottom: 26px; }
.section-lead { color: var(--muted); margin-bottom: 22px; }

section { padding: 44px 0; border-bottom: 1px solid var(--border); }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  transition: 0.2s;
}
.btn-primary { background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; }
.btn-primary:hover { opacity: 0.92; text-decoration: none; }
.btn-secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--surface-hover); text-decoration: none; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.15s;
}
.tab-btn:hover { color: var(--text); border-color: var(--accent); }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05040a;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption {
  margin-top: 12px;
  font-size: 0.87rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent); }
.card-tag {
  font-size: 0.77rem;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; }

.arc-item, .update-item {
  background: var(--surface);
  border-left: 3px solid var(--crimson);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.update-item { border-left-color: var(--accent); }
.update-meta { font-size: 0.8rem; color: #c4b5fd; margin-bottom: 4px; }
.arc-item h3, .update-item h3 { font-size: 1.05rem; margin-bottom: 5px; }
.arc-item p, .update-item p { color: var(--muted); font-size: 0.92rem; }

.dl-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.dl-table th, .dl-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.dl-table th { color: #c4b5fd; background: rgba(139, 92, 246, 0.08); }
.dl-table tr:last-child td { border-bottom: none; }

.legal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.legal-box h2 { font-size: 1.25rem; margin-bottom: 12px; }
.legal-box p { color: var(--silver); margin-bottom: 12px; font-size: 0.94rem; }

.error-box {
  text-align: center;
  padding: 80px 20px;
}
.error-code {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--crimson), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.84rem;
  border-top: 1px solid var(--border);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.footer-links { display: flex; gap: 16px; }

.puck-404 {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.28);
  border: 1px solid rgba(139, 92, 246, 0.35);
  animation: floatPuck 3.8s ease-in-out infinite;
}

@keyframes floatPuck {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
}

.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent); color: #fff; }

.hero-banner {
  margin: 0 0 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  aspect-ratio: 21 / 9;
  background: var(--surface);
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.gallery-card figcaption {
  padding: 10px 14px;
  font-size: 0.86rem;
  color: var(--muted);
}
.hash-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 4px;
  word-break: break-all;
}

#char-grid .card {
  padding: 0;
  overflow: hidden;
}
.char-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #141026;
  border-bottom: 1px solid var(--border);
}
.char-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}
#char-grid .card:hover .char-thumb img {
  transform: scale(1.04);
}
.char-body {
  padding: 18px 20px 20px;
}

/* =========================================
   BARUSU RESPONSIVE LAYOUT
   ========================================= */

html {
  width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  overflow-x: clip;
}

.container {
  min-width: 0;
}

main,
section,
.card,
.arc-item,
.update-item {
  min-width: 0;
}

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

p, h1, h2, h3, a, td, th {
  overflow-wrap: anywhere;
}

/* Navigation */

.nav {
  min-width: 0;
}

.brand {
  min-width: 0;
}

.brand img {
  flex-shrink: 0;
}

.nav-right {
  min-width: 0;
}

.nav-links {
  min-width: 0;
}

/* Responsive grids */

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

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

/* Images */

.hero-banner img {
  object-position: center;
}

.video-wrap {
  max-width: 100%;
}

.video-wrap iframe {
  max-width: 100%;
}

/* Buttons */

.btn,
.tab-btn {
  max-width: 100%;
}

.cta-group {
  align-items: center;
}

/* Tables */

.dl-table {
  min-width: 680px;
}

/* Tablet */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 40px;
  }

  section {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

/* Mobile */

@media (max-width: 640px) {

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  header {
    padding: 12px 0;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand {
    font-size: 0.92rem;
    gap: 7px;
    flex-wrap: wrap;
  }

  .brand img {
    width: 22px;
    height: 22px;
  }

  .brand span {
    font-size: 0.7rem;
  }

  .nav-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    font-size: 0.84rem;
  }

  .nav-links a {
    padding: 6px 4px;
    text-align: center;
    background: var(--surface);
    border-radius: 7px;
  }

  .lang-switch {
    align-self: flex-end;
  }

  .hero {
    padding: 28px 0;
  }

  h1 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  h2 {
    font-size: 1.3rem;
  }

  .jp-sub {
    font-size: 0.94rem;
  }

  .hero-desc {
    font-size: 0.94rem;
  }

  .hero-banner {
    aspect-ratio: 16 / 9;
    border-radius: 11px;
    margin-bottom: 18px;
  }

  section {
    padding: 30px 0;
  }

  .grid,
  .gallery-preview {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .card {
    padding: 16px;
  }

  #char-grid .card {
    padding: 0;
  }

  .char-body {
    padding: 15px;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-group .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .tabs {
    gap: 7px;
  }

  .tab-btn {
    font-size: 0.82rem;
    padding: 9px 11px;
  }

  .video-wrap {
    border-radius: 10px;
  }

  .video-caption {
    flex-direction: column;
    font-size: 0.8rem;
  }

  .arc-item,
  .update-item {
    padding: 14px;
  }

  .footer-row {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .puck-404 {
    width: min(220px, 70vw);
    height: auto;
    aspect-ratio: 1;
  }

  .error-code {
    font-size: 3.5rem;
  }
}

/* Very narrow phones */

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

  .brand {
    font-size: 0.82rem;
  }

  .nav-links {
    font-size: 0.78rem;
  }

  .tab-btn {
    font-size: 0.76rem;
    padding: 8px 9px;
  }
}


.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  margin-bottom: 20px;
}

.table-scroll .dl-table {
  width: 100%;
}


/* === Mobile scaling & overflow fix === */
html, body {
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

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

main, section, .container, .grid > *, .gallery-preview > *, .nav > *, .nav-right > * {
  min-width: 0;
}

h1, h2, h3, p, .card, .arc-item {
  overflow-wrap: break-word;
}

.dl-table {
  min-width: 0;
  width: 100%;
}

.table-scroll .dl-table {
  min-width: 560px;
}

@media (max-width: 640px) {
  .grid,
  .gallery-preview {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-banner {
    aspect-ratio: 16 / 9;
  }

  .nav {
    gap: 10px;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* === Display headings font === */
h1, h2, .brand {
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 0.01em;
}

/* === Hero banner 2:1 fit === */
.hero-banner {
  aspect-ratio: 2 / 1;
}
.hero-banner img {
  object-position: center;
}
@media (max-width: 640px) {
  .hero-banner {
    aspect-ratio: 16 / 9;
  }
}
