/* ============================================================
  index.css.scss
  ------------------------------------------------------------
  Dragon Rider dark fantasy theme
  - Cinematic black / deep crimson / muted gold palette
  - Mobile-first minisite layout
  - Bootstrap-first controls with custom fantasy styling
============================================================ */

@font-face {

  font-family: "HOD";

  src: url("hod.woff2") format("woff2");

  font-weight: 400;

  font-style: normal;

  font-display: swap;

}

:root {
  --main-bg: #07070a;
  --main-bg2: #13090b;
  --body-text: rgba(185, 155, 97, 0.94);
  --muted-text: rgba(146, 116, 67, 0.78);
  --accent-color: #a78345;
  --accent-hover: #c6a15a;
  --border-color: rgba(167, 131, 69, 0.3);
  --metal-dark: #6f5125;
  --metal-mid: #a78345;
  --metal-light: #c7ad73;
  --metal-edge: #e0d0a5;
  --panel-bg: rgba(10, 8, 10, 0.72);
  --panel-bg-strong: rgba(18, 10, 12, 0.88);
  --ember-color: #c44a2d;
  --crimson-color: #5f1818;
  --overlay-bg: rgba(0, 0, 0, 0.72);
  --radius-sm: 12px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  background:
    radial-gradient(820px 520px at 50% -10%, rgba(196, 74, 45, 0.32), transparent 62%),
    radial-gradient(700px 520px at 12% 18%, rgba(167, 131, 69, 0.12), transparent 64%),
    radial-gradient(780px 620px at 86% 92%, rgba(95, 24, 24, 0.34), transparent 66%),
    linear-gradient(180deg, var(--main-bg), var(--main-bg2) 58%, #050506);
  background-attachment: fixed;
  color: var(--body-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

#main {
  position: relative;
  /* no isolation/z-index here: a stacking context on #main would trap the
     Bootstrap modals (z 10050) below the body-level .modal-backdrop (z 10040) */
  min-height: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#app {
  width: 100%;
  min-height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

#app.inited {
  opacity: 1;
  visibility: visible;
}

#app.inited + #loading-spinner {
  display: none !important;
}

#loading-spinner {
  position: fixed;
  inset: 0;
  background-color: var(--overlay-bg);
  z-index: 9999;
}

.demo-notice-bar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 8px 16px;
  background: rgba(5, 4, 5, 0.92);
  border-bottom: 1px solid rgba(167, 131, 69, 0.36);
  color: var(--body-text);
  font-size: 0.9rem;
  line-height: 1.3;
}

.demo-notice-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.demo-notice-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border: 1px solid rgba(167, 131, 69, 0.44);
  border-radius: 999px;
  background: rgba(167, 131, 69, 0.12);
  color: var(--metal-light);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.demo-notice-text {
  color: rgba(185, 155, 97, 0.88);
  font-weight: 600;
}

.demo-notice-cta,
.demo-waiting-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(167, 131, 69, 0.72);
  border-radius: 0;
  background: rgba(95, 24, 24, 0.88);
  color: var(--metal-light);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.demo-notice-cta:hover,
.demo-notice-cta:focus,
.demo-waiting-cta-button:hover,
.demo-waiting-cta-button:focus {
  color: var(--metal-edge);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.demo-waiting-cta,
.demo-result-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid rgba(167, 131, 69, 0.36);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(10, 8, 10, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 46px rgba(0, 0, 0, 0.38);
  text-align: left;
}

.demo-result-cta-copy,
.demo-waiting-cta > div {
  min-width: 0;
}

.demo-waiting-cta-title,
.demo-result-cta h3 {
  margin: 0 0 6px;
  color: var(--metal-light);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 850;
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
  text-shadow: none;
  white-space: normal;
}

.demo-result-cta h3 {
  margin-top: 10px;
  font-size: clamp(1.05rem, 0.92rem + 0.5vw, 1.28rem);
}

.demo-waiting-cta-text,
.demo-result-cta p {
  margin: 0;
  color: rgba(185, 155, 97, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

#app.has-demo-notice-bar header {
  top: 46px;
}

#app.has-demo-notice-bar .section {
  padding-top: 122px;
}

#app.has-demo-notice-bar .dragon-bg--upload {
  padding-top: 70px;
}

#app.has-demo-notice-bar .hero-section {
  padding-top: 0;
}

#app.has-demo-notice-bar .hero-content {
  padding-top: clamp(8.25rem, 25svh, 13rem);
}

header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 0;
  padding-top: 1.1rem;
}
header .container h1 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
p,
li {
  color: var(--body-text);
  font-family: inherit;
}

h1 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.25rem);
  line-height: 1.15;
  font-weight: 900;
  white-space: nowrap;
  text-align: center;
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  line-height: 1.25;
  font-weight: 900;
  margin: 0.8rem 0 0.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.3;
  font-weight: 700;
  margin: 0.6rem 0 0.35rem;
}

h4 {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

.container {
  margin: 1rem auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.logo {
  height: 40px;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
}

.logo svg {
  height: 40px;
}

svg g path,
svg g rect {
  fill: var(--accent-color);
}

.section {
  flex: 1 1 auto;
  padding: 76px 0 24px;
  position: relative;
}

.dragon-bg {
  min-height: 100svh;
  background-image: url("images/dragon-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.dragon-bg > .container {
  max-width: 680px;
}

.dragon-bg--upload {
  background-position: left center;
}

.dragon-bg--upload > .container {
  margin-top: 0 !important;
}

.dragon-bg--waiting {
  background-position: center center;
}

.dragon-bg--result {
  background-position: right center;
}

.dragon-bg--share {
  background-position: center bottom;
}

.hero-section {
  min-height: 100svh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg,
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg {
  z-index: -3;
  background: url("images/dragon-hero.jpg") center 38% / cover no-repeat;
}

.hero-vignette {
  z-index: -2;
  display: none;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.hero-brand img {
  display: block;
  width: clamp(150px, 32vw, 210px);
  height: auto;
  filter:
    drop-shadow(0 1px 0 rgba(224, 208, 165, 0.2))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.85));
}

.hero-content {
  flex: 1 1 auto;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: clamp(7.25rem, 23svh, 12rem);
  padding-bottom: clamp(1.6rem, 4.5svh, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}

.hero-title-block {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-overline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: rgba(185, 155, 97, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.82);
  background: linear-gradient(180deg, var(--metal-edge) 0%, var(--metal-light) 32%, var(--metal-mid) 58%, var(--metal-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-overline::before,
.hero-overline::after {
  content: "";
  width: min(17vw, 116px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 131, 69, 0.64), transparent);
}

.hero-title {
  margin: 1.85rem 0 0;
  font-family: "HOD", Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 11.4vw, 5.2rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: #b99b61;
  background:
    linear-gradient(180deg, #efe4bf 0%, #c8b176 18%, #8c632f 45%, #d2bd83 58%, #6f5125 82%, #c8ad70 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.7px rgba(224, 208, 165, 0.48);
  text-shadow:
    0 1px 0 rgba(255, 244, 204, 0.22),
    0 -1px 0 rgba(52, 31, 13, 0.62),
    1px 0 0 rgba(58, 34, 14, 0.52),
    -1px 0 0 rgba(214, 195, 145, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.9),
    0 0 22px rgba(167, 131, 69, 0.18);
}

.hero-subtitle {
  margin: 1.15rem auto 0;
  max-width: 40rem;
  color: rgba(185, 155, 97, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.72rem, 1.85vw, 0.9rem);
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
  background: linear-gradient(180deg, var(--metal-light), var(--metal-mid) 55%, var(--metal-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-action-block {
  position: relative;
  margin: clamp(3.2rem, 10svh, 5.8rem) auto 0;
  width: min(100%, 430px);
}

.hero-cta {
  position: relative;
  width: min(100%, 390px);
  min-height: 56px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 3.8vw, 1.35rem);
}

.hero-footnote {
  margin: 1.25rem 0 0;
  color: rgba(176, 154, 118, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.74rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  background: linear-gradient(180deg, var(--metal-light), var(--metal-mid) 58%, var(--metal-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-intro {
  text-align: center;
  color: var(--muted-text);
  margin: 0 auto;
  max-width: 38rem;
}

.section-copy,
.small {
  color: var(--muted-text);
  line-height: 1.65;
}

.sponsor {
  text-align: left;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--muted-text);
}

.sponsor-content {
  padding: 1rem;
  color: var(--body-text);
  background: var(--panel-bg);
  text-align: left;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.hero-card,
.panel,
.status-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 56px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.file-input {
  cursor: pointer;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px dashed rgba(167, 131, 69, 0.5);
  border-radius: var(--radius-md);
  background:
    radial-gradient(420px 240px at 50% 0%, rgba(167, 131, 69, 0.1), transparent 64%),
    rgba(8, 6, 7, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.file-input:hover {
  border-color: rgba(198, 161, 90, 0.82);
  background:
    radial-gradient(420px 240px at 50% 0%, rgba(167, 131, 69, 0.16), transparent 64%),
    rgba(14, 8, 9, 0.88);
}

.file-input.dragging {
  border-color: var(--accent-hover);
  background:
    radial-gradient(420px 240px at 50% 0%, rgba(196, 74, 45, 0.18), transparent 64%),
    rgba(18, 10, 12, 0.94);
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.preview-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(167, 131, 69, 0.52);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.delete-image {
  position: absolute;
  right: 10px;
  top: 10px;
  color: var(--accent-color);
  font-size: 1.6rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

.image-shell {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-top: 0;
  background: #000000;
  border: 1px solid rgba(167, 131, 69, 0.52);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

.image-shell img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.result-header {
  text-align: left;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

form {
  margin-bottom: 1rem;
}

.form-label,
.form-check-label {
  font-size: 1rem;
}

.btn {
  cursor: pointer;
  min-height: 52px;
  border-radius: 0;
  padding: 12px 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  position: relative;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(167, 131, 69, 0.82);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: rgba(198, 161, 90, 0.95);
  --bs-btn-color: #b99b61;
  --bs-btn-hover-color: #c6a15a;
  background:
    linear-gradient(180deg, rgba(119, 26, 27, 0.96), rgba(72, 14, 16, 0.98)) !important;
  border: 1px solid rgba(167, 131, 69, 0.82) !important;
  color: #b99b61 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -10px 16px rgba(0, 0, 0, 0.22),
    0 12px 30px rgba(0, 0, 0, 0.44);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 5px 10px;
  border-top: 1px solid rgba(198, 161, 90, 0.32);
  border-bottom: 1px solid rgba(167, 131, 69, 0.5);
  pointer-events: none;
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -10px 18px rgba(0, 0, 0, 0.36),
    0 0 26px rgba(196, 74, 45, 0.28),
    0 14px 36px rgba(0, 0, 0, 0.48);
}

.btn-secondary {
  --bs-btn-bg: rgba(255, 255, 255, 0.05);
  --bs-btn-border-color: rgba(167, 131, 69, 0.44);
  --bs-btn-hover-bg: rgba(167, 131, 69, 0.1);
  --bs-btn-hover-border-color: rgba(198, 161, 90, 0.72);
  --bs-btn-color: var(--body-text);
}

.form-control {
  border-radius: var(--radius-sm);
  min-height: 48px;
  border-color: rgba(167, 131, 69, 0.36);
  background-color: rgba(5, 5, 6, 0.72);
  color: var(--body-text);
}

.form-control::placeholder {
  color: rgba(218, 202, 178, 0.48);
}

.form-control:focus {
  border-color: var(--accent-hover);
  background-color: rgba(9, 7, 8, 0.88);
  color: var(--body-text);
  box-shadow: 0 0 0 0.2rem rgba(167, 131, 69, 0.13);
}

.form-check-input {
  background-color: rgba(5, 5, 6, 0.72);
  border-color: rgba(167, 131, 69, 0.5);
}

.form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.error-text {
  color: #ffb4a3;
  display: inline-block;
  margin-top: 0.5rem;
}

a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.modal-content {
  border-radius: var(--radius-md);
  border-color: rgba(167, 131, 69, 0.32);
  background: var(--panel-bg-strong);
  color: var(--body-text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

body.modal-open #loading-spinner {
  display: none !important;
  pointer-events: none;
}

.modal-backdrop {
  z-index: 10040;
}

.modal {
  z-index: 10050;
  pointer-events: auto;
}

.modal-header,
.modal-footer {
  border-color: rgba(167, 131, 69, 0.18);
}

.modal-header .btn-close {
  box-shadow: none;
}

.policy-modal .modal-dialog {
  max-height: calc(100dvh - 1.5rem);
  margin: 0.75rem auto;
  display: flex;
  pointer-events: auto;
}

.policy-modal .modal-content {
  /* viewport-based cap: a percentage here would resolve against the
     auto-height dialog and never constrain the content */
  max-height: calc(100dvh - 3rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
}

.policy-modal .modal-body {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.policy-modal .modal-footer {
  flex: 0 0 auto;
}

/* keep the dragon display typography out of the policy document */
.policy-modal .modal-body h1,
.policy-modal .modal-body h2,
.policy-modal .modal-body h3,
.policy-modal .modal-body h4,
.policy-modal .modal-body h5 {
  margin: 0.8rem 0 0.4rem;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  text-align: start;
  font-weight: 800;
  text-shadow: none;
}

.policy-modal .modal-body h1 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.2;
}

.policy-modal .modal-body h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  line-height: 1.25;
}

.policy-modal .modal-body h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.3;
}

.face-detection-modal .modal-dialog {
  margin: 0.75rem;
}

.face-detection-modal .modal-content {
  border-radius: 18px;
}

.face-detection-modal .modal-header,
.face-detection-modal .modal-body,
.face-detection-modal .modal-footer {
  padding-left: 1rem;
  padding-right: 1rem;
}

.face-detection-modal .modal-header {
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
}

.face-detection-modal .modal-title {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-right: auto;
}

.face-detection-modal .modal-body {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
  font-size: 0.95rem;
}

.face-detection-preview {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.5);
}

.face-detection-preview-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 320px);
  object-fit: contain;
  margin: 0 auto;
}

.face-detection-preview-canvas {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.face-detection-modal-footer {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

.face-detection-modal-footer .btn {
  width: 100%;
  margin: 0;
}

.alert-danger {
  color: #ffd6ce;
  background-color: rgba(127, 29, 29, 0.28);
  border-color: rgba(255, 180, 163, 0.32);
}

footer {
  margin-top: auto;
}

#footer {
  max-width: 680px;
  font-size: 0.85rem;
  text-align: left;
  padding: 16px 0 0;
  border-top: 1px solid rgba(167, 131, 69, 0.16);
  color: var(--muted-text);
}

#footer .container {
  color: var(--muted-text);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  padding-bottom: 1rem;
  align-items: center;
  flex-flow: wrap;
}

.footer-links a {
  padding: 0.25rem 0.5rem;
}

.socials {
  text-decoration: none;
}

.language-selector {
  display: flex;
  justify-content: center;
}

.lang-select {
  padding: 6px 10px;
  border: 1px solid rgba(167, 131, 69, 0.46);
  background: rgba(5, 5, 6, 0.72);
  color: var(--body-text);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
  outline: none;
  min-width: 80px;
  text-align: center;
}

.lang-select:hover {
  background: rgba(167, 131, 69, 0.1);
}

.lang-select:focus {
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 0.2rem rgba(167, 131, 69, 0.13);
}

.lang-select option {
  background: #07070a;
  color: var(--body-text);
  padding: 4px 8px;
}
/* The shared dragon background is applied per non-hero page via `.dragon-bg`.
   Hero keeps its own `images/dragon-hero.jpg` background. */

.transition-opacity {
  transition: opacity 0.3s ease-in-out;
}

.opacity-0 {
  opacity: 0;
}

.opacity-1 {
  opacity: 1;
}

@media (max-width: 768px) {
  .dragon-bg {
    background-attachment: scroll;
  }

  .dragon-bg--upload {
    background-position: 18% center;
  }

  .dragon-bg--waiting {
    background-position: 50% center;
  }

  .dragon-bg--result {
    background-position: 78% center;
  }

  .dragon-bg--share {
    background-position: 55% bottom;
  }
}

@media (max-width: 575.98px) {
  .demo-notice-bar,
  .demo-waiting-cta,
  .demo-result-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .demo-notice-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }

  .demo-notice-content {
    flex-wrap: wrap;
    gap: 6px;
  }

  .demo-notice-cta,
  .demo-waiting-cta-button {
    width: 100%;
  }

  .demo-waiting-cta-title,
  .demo-result-cta h3 {
    text-align: center;
  }

  #app.has-demo-notice-bar header {
    top: 92px;
  }

  #app.has-demo-notice-bar .section {
    padding-top: 168px;
  }

  #app.has-demo-notice-bar .dragon-bg--upload {
    padding-top: 86px;
  }

  #app.has-demo-notice-bar .hero-section {
    padding-top: 0;
  }

  #app.has-demo-notice-bar .hero-content {
    padding-top: clamp(9rem, 25svh, 11rem);
  }

  .hero-brand img {
    width: 150px;
  }

  .hero-content {
    padding-top: clamp(6.4rem, 20svh, 8.5rem);
  }

  .hero-action-block {
    margin-top: clamp(2.8rem, 8svh, 4.2rem);
  }

  .hero-subtitle {
    max-width: 22rem;
  }
}

@media (min-width: 576px) {
  #footer {
    font-size: 1rem;
  }
  .footer-links a {
    padding: 0 0.5rem;
  }
}
@media (min-width: 768px) {
  .face-detection-modal .modal-dialog {
    margin: 1.75rem auto;
  }
  .face-detection-modal .modal-header,
  .face-detection-modal .modal-body,
  .face-detection-modal .modal-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .face-detection-modal .modal-title {
    font-size: 1.2rem;
  }
  .face-detection-modal .modal-body {
    font-size: 1rem;
  }
  .face-detection-preview-image {
    max-height: 400px;
  }
  .face-detection-modal-footer {
    flex-direction: row;
    justify-content: flex-end;
  }
  .face-detection-modal-footer .btn {
    width: auto;
  }
}
