/* ============================================================
  index.css.scss
  ------------------------------------------------------------
  - World Cup black & gold theme
  - System fonts only
  - Bootstrap-first buttons
  - Minimal decoration
============================================================ */
:root {
  --main-bg: #050403;
  --main-bg2: #12100d;
  --body-text: #f8f5ea;
  --muted-text: #b9b2a4;
  --accent-color: #f1bd3a;
  --accent-hover: #ffd86a;
  --accent-deep: #9a650e;
  --border-color: rgba(241, 189, 58, 0.28);
  --overlay-bg: rgba(0, 0, 0, 0.72);
  --panel-bg: rgba(16, 14, 10, 0.9);
  --field-bg: rgba(255, 255, 255, 0.06);
  --gold-gradient: linear-gradient(135deg, #8f5f0b 0%, #f1bd3a 36%, #ffe08a 52%, #c78316 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  background:
    radial-gradient(circle at 76% 12%, rgba(241, 189, 58, 0.2), transparent 28rem),
    radial-gradient(circle at 16% 0%, rgba(255, 216, 106, 0.12), transparent 20rem),
    linear-gradient(180deg, #000000 0%, #080706 44%, #14110c 100%);
  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;
}

body.team-picker-open {
  overflow: hidden;
}

#main {
  position: relative;
  min-height: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(7, 6, 4, 0.94)),
    var(--main-bg);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.72);
}

#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;
}

.demo-notice-bar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 8px 16px;
  background: #111827;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  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(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

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

.demo-notice-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.demo-notice-cta:hover,
.demo-notice-cta:focus {
  background: #e5e7eb;
  color: #111827;
  transform: translateY(-1px);
}

#loading-spinner {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 4, 3, 0.86);
  z-index: 9999;
}

header,
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 16px 0 12px;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  box-shadow: none;
}

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

.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0;
  margin-bottom: 0;
}

.site-header h1,
.site-header .container > .logo:last-child,
.site-header .logo svg {
  display: none;
}

.site-header .logo {
  width: min(54vw, 220px);
  height: 42px;
}

.site-header .logo a {
  display: inline-flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.site-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

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: 800;
  white-space: nowrap;
  text-align: center;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 0 22px rgba(241, 189, 58, 0.32);
}

h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  line-height: 1.25;
  font-weight: 800;
  margin: 0.8rem 0 0.4rem;
}

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: 1rem;
  padding-right: 1rem;
}

.logo {
  height: 40px;
}

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

.logo svg {
  height: 40px;
}

svg g path,
svg g rect {
  fill: var(--body-text);
}

.section {
  flex: 1 1 auto;
  padding: 8px 0 24px;
}

.hero-section {
  position: relative;
  min-height: 100svh;
  padding: 92px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}

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

.hero-bg {
  z-index: -3;
  background-image: url("images/wc2026-bg.jpg");
  background-size: cover;
  background-position: center top;
  transform: scale(1.01);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 42%, rgba(0, 0, 0, 0.1) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 36%, rgba(0, 0, 0, 0.88) 79%, #050403 100%);
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  width: min(48vw, 210px);
  height: 42px;
}

.hero-brand img {
  display: block;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hero-menu {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
}

.hero-menu span {
  display: block;
  width: 36px;
  height: 4px;
  margin-left: auto;
  background: #f8f5ea;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.24);
}

.hero-content {
  width: min(59%, 390px);
  margin: clamp(34px, 7svh, 92px) 0 0;
  padding-left: clamp(24px, 7vw, 64px);
}

.hero-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--accent-color);
  text-transform: uppercase;
  font-size: clamp(0.82rem, 0.58rem + 1vw, 1.18rem);
  line-height: 1;
  letter-spacing: 0.18em;
  font-weight: 500;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(241, 189, 58, 0.48);
}

.hero-kicker::before,
.hero-kicker::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-gradient);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: #f8f5ea;
  font-size: clamp(4rem, 19vw, 8.9rem);
  line-height: 0.78;
  font-weight: 1000;
  letter-spacing: -0.03em;
  text-align: left;
  text-transform: uppercase;
  font-style: italic;
  text-shadow:
    0 5px 0 rgba(0, 0, 0, 0.46),
    0 0 28px rgba(255, 255, 255, 0.18);
}

.hero-title span {
  width: 100%;
  text-align: center;
}

.hero-title-small {
  align-self: center;
  margin: 0.16em 0 0.08em;
  color: #f8f5ea;
  font-size: 0.38em;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-title-gold {
  color: var(--accent-color);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.44)) drop-shadow(0 0 24px rgba(241, 189, 58, 0.26));
}

.hero-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(100%, 290px);
  margin: 26px 0 14px;
  color: var(--accent-color);
  font-size: 1.1rem;
}

.hero-stars::before,
.hero-stars::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0.75;
}

.hero-section .hero-intro {
  max-width: 290px;
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-size: clamp(1.05rem, 0.85rem + 0.9vw, 1.55rem);
  line-height: 1.18;
  font-weight: 720;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9);
}

.hero-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: auto;
  padding: 20px 20px 18px;
  border-top: 1px solid rgba(241, 189, 58, 0.18);
  border-bottom: 1px solid rgba(241, 189, 58, 0.16);
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(3px);
}

.hero-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 10px;
  text-align: center;
  color: var(--body-text);
  text-transform: uppercase;
}

.hero-step + .hero-step {
  border-left: 1px solid rgba(248, 245, 234, 0.2);
}

.hero-step i {
  min-height: 34px;
  margin-bottom: 10px;
  color: var(--accent-color);
  font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.25rem);
  filter: drop-shadow(0 0 14px rgba(241, 189, 58, 0.36));
}

.hero-step strong,
.hero-step span {
  display: block;
  overflow-wrap: anywhere;
}

.hero-step strong {
  font-size: clamp(0.72rem, 0.58rem + 0.6vw, 1rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  font-weight: 850;
}

.hero-step span {
  margin-top: 4px;
  color: var(--muted-text);
  font-size: clamp(0.66rem, 0.52rem + 0.58vw, 0.9rem);
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.hero-action {
  padding: 22px 24px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5, 4, 3, 0.86), #050403);
}

.hero-action .btn {
  min-height: 68px;
  font-size: clamp(1rem, 0.85rem + 0.72vw, 1.35rem);
  font-weight: 900;
}

.upload-action .btn {
  min-height: 68px;
  font-size: clamp(1rem, 0.85rem + 0.72vw, 1.35rem);
  font-weight: 900;
}

.hero-team-area {
  padding: 20px 24px 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(5, 4, 3, 0.86));
}

.team-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--body-text);
  text-align: center;
  font-size: clamp(1rem, 0.86rem + 0.62vw, 1.28rem);
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-section-title::before,
.team-section-title::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color));
}

.team-section-title::after {
  background: linear-gradient(90deg, var(--accent-color), transparent);
}

.selected-team-card {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(241, 189, 58, 0.58);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(241, 189, 58, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.52);
  color: var(--body-text);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 28px rgba(241, 189, 58, 0.12);
}

.selected-team-card:hover,
.selected-team-card:focus {
  border-color: var(--accent-hover);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(241, 189, 58, 0.12), 0 0 32px rgba(241, 189, 58, 0.16);
}

.team-flag {
  width: 56px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #111111;
  font-size: 1.7rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.team-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.team-card-copy strong {
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(1rem, 0.9rem + 0.52vw, 1.28rem);
  line-height: 1.18;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card-copy small {
  margin-top: 4px;
  color: var(--muted-text);
  font-size: 0.78rem;
}

.selected-team-card > i {
  color: var(--accent-color);
}

.team-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.team-picker-sheet {
  width: min(100%, 560px);
  height: min(78svh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  border: 1px solid rgba(241, 189, 58, 0.28);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(241, 189, 58, 0.16), transparent 17rem),
    linear-gradient(180deg, rgba(32, 32, 34, 0.98), rgba(11, 12, 12, 0.98));
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.62);
}

.team-picker-handle {
  width: 48px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(248, 245, 234, 0.42);
}

.team-picker-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.team-picker-header h2 {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.2;
}

.team-picker-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(248, 245, 234, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--body-text);
}

.team-search {
  flex: 0 0 auto;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 16px 0 14px;
  padding: 0 12px;
  border: 1px solid rgba(248, 245, 234, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-text);
}

.team-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--body-text);
  outline: 0;
}

.team-search input::placeholder {
  color: rgba(248, 245, 234, 0.58);
}

.team-search button {
  border: 0;
  background: transparent;
  color: var(--muted-text);
}

.popular-teams,
.all-teams {
  min-height: 0;
}

.popular-teams {
  flex: 0 0 auto;
  padding-bottom: 14px;
}

.popular-teams p,
.all-teams p {
  margin: 0 0 10px;
  color: var(--body-text);
  font-size: 0.84rem;
  font-weight: 750;
}

.popular-team-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 64px;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 2px;
  scrollbar-width: none;
}

.popular-team-list::-webkit-scrollbar {
  display: none;
}

.popular-team {
  width: 64px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--body-text);
}

.popular-team span {
  width: 44px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(248, 245, 234, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 1.45rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.popular-team small {
  width: 100%;
  overflow: hidden;
  color: var(--body-text);
  font-size: 0.68rem;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popular-team.selected span {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(241, 189, 58, 0.26);
}

.all-teams {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 2px;
  border-top: 1px solid rgba(248, 245, 234, 0.08);
}

.all-teams p {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 12px 0 8px;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(18, 18, 18, 0.92));
}

.team-row {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-top: 1px solid rgba(248, 245, 234, 0.08);
  background: transparent;
  color: var(--body-text);
  text-align: left;
}

.team-row .team-flag {
  width: 38px;
  height: 30px;
  font-size: 1.35rem;
}

.team-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-row i {
  color: var(--muted-text);
  font-size: 0.78rem;
}

.team-row.selected strong,
.team-row.selected i {
  color: var(--accent-color);
}

.team-empty {
  padding: 24px 0;
  color: var(--muted-text);
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 18px rgba(241, 189, 58, 0.42);
}

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

.upload-section {
  position: relative;
  min-height: 100svh;
  padding: 92px 0 28px;
  overflow: hidden;
  isolation: isolate;
}

.upload-bg,
.upload-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.upload-bg {
  z-index: -3;
  background-image: url("images/wc2026-bg2.jpg");
  background-size: cover;
  background-position: center top;
}

.upload-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 16, 31, 0.2) 0%, rgba(2, 10, 16, 0.2) 35%, rgba(1, 5, 8, 0.9) 72%, #020506 100%),
    radial-gradient(circle at 50% 20%, rgba(241, 189, 58, 0.12), transparent 24rem);
}

.upload-hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  margin: 22px auto 0;
  padding: 0 24px;
  text-align: center;
}

.upload-trophy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--accent-color);
  font-size: 1.55rem;
  filter: drop-shadow(0 0 14px rgba(241, 189, 58, 0.4));
}

.upload-hero-content .hero-kicker {
  justify-content: center;
  margin-bottom: 14px;
  font-size: clamp(0.84rem, 0.68rem + 0.72vw, 1.12rem);
}

.upload-title {
  display: block;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  color: #f8f5ea;
  font-size: clamp(2rem, 6.4vw, 4.35rem);
  line-height: 0.98;
  font-weight: 1000;
  letter-spacing: -0.04em;
  text-align: center;
  text-transform: uppercase;
  font-style: italic;
  white-space: nowrap;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.42),
    0 0 26px rgba(255, 255, 255, 0.16);
}

.upload-title span {
  display: inline;
}

.upload-title span:last-child {
  color: var(--accent-color);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.36));
}

.upload-hero-content .hero-stars {
  width: min(100%, 210px);
  margin: 18px auto 12px;
}

.upload-intro {
  width: min(100%, 470px);
  margin: 0 auto 24px;
  color: #ffffff;
  font-size: clamp(1rem, 0.88rem + 0.58vw, 1.28rem);
  line-height: 1.35;
  font-weight: 650;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.88);
}

.upload-container {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 0;
}

.upload-section form {
  margin-bottom: 0;
}

.upload-section .file-input {
  min-height: clamp(260px, 36svh, 420px);
  border: 2px dashed rgba(241, 189, 58, 0.76);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 32%, rgba(241, 189, 58, 0.14), transparent 8rem),
    linear-gradient(180deg, rgba(9, 25, 34, 0.68), rgba(3, 10, 14, 0.78));
  box-shadow:
    inset 0 0 0 1px rgba(255, 216, 106, 0.14),
    inset 0 0 60px rgba(0, 0, 0, 0.22),
    0 0 34px rgba(241, 189, 58, 0.2);
  backdrop-filter: blur(3px);
}

.upload-section .file-input:hover,
.upload-section .file-input.dragging {
  border-color: var(--accent-hover);
  background:
    radial-gradient(circle at 50% 32%, rgba(241, 189, 58, 0.2), transparent 8rem),
    linear-gradient(180deg, rgba(12, 31, 42, 0.76), rgba(3, 10, 14, 0.82));
}

.upload-section .upload-icon {
  width: 118px;
  height: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(241, 189, 58, 0.08);
  color: var(--accent-color);
  font-size: 3.65rem;
  text-shadow: none;
  box-shadow: inset 0 0 0 1px rgba(241, 189, 58, 0.14);
}

.upload-section .file-input .fw-semibold {
  color: #ffffff;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.upload-section .file-input .small {
  color: rgba(248, 245, 234, 0.86);
  font-size: 1rem;
}

.player-details {
  margin-top: 30px;
}

.player-details-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--accent-color);
  font-size: clamp(1rem, 0.86rem + 0.62vw, 1.28rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-details-title::before,
.player-details-title::after {
  content: "";
  width: 78px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color));
}

.player-details-title::after {
  background: linear-gradient(90deg, var(--accent-color), transparent);
}

.upload-section .form-label {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.input-shell {
  position: relative;
}

.input-shell .form-control {
  padding-right: 52px;
}

.input-shell i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(248, 245, 234, 0.72);
  font-size: 1.15rem;
  pointer-events: none;
}

.upload-section .form-control {
  min-height: 58px;
  border-color: rgba(241, 189, 58, 0.62);
  border-radius: var(--radius-sm);
  background: rgba(1, 8, 13, 0.7);
  color: #ffffff;
  font-size: 1.08rem;
  box-shadow: inset 0 0 0 1px rgba(255, 216, 106, 0.04);
}

.upload-section .form-control:focus {
  border-color: var(--accent-hover);
  background: rgba(1, 8, 13, 0.82);
  box-shadow: 0 0 0 0.2rem rgba(241, 189, 58, 0.14);
}

.upload-section .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-section .form-check-input {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0;
  border-color: rgba(241, 189, 58, 0.72);
  background-color: rgba(1, 8, 13, 0.8);
}

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

.upload-section .form-check-label {
  color: rgba(248, 245, 234, 0.94);
}

.waiting-section {
  min-height: 100svh;
  padding: 0;
}

.waiting-stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  padding-top: 92px;
}

.waiting-bg,
.waiting-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.waiting-bg {
  z-index: -3;
  background-image: url("images/wc2026-bg2.jpg");
  background-size: cover;
  background-position: center top;
  filter: saturate(0.96) brightness(0.74);
}

.waiting-shade {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 30%, rgba(241, 189, 58, 0.18), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.42) 36%, rgba(0, 0, 0, 0.86) 78%, #050403 100%);
}

.waiting-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 28px auto 0;
  padding: 0 clamp(12px, 3vw, 24px) 28px;
  text-align: center;
}

.waiting-title {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  width: 100%;
  max-width: calc(100vw - 24px);
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(1.8rem, 5.6vw, 3.9rem);
  line-height: 0.92;
  font-weight: 1000;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.42),
    0 0 26px rgba(255, 255, 255, 0.16);
}

@media (max-width: 420px) {
  .waiting-title {
    font-size: clamp(1.18rem, 6.7vw, 1.72rem);
    letter-spacing: 0;
    line-height: 1;
  }
}

.waiting-title span {
  display: block;
  max-width: 100%;
  overflow-wrap: normal;
  white-space: nowrap;
}

.waiting-title span:last-child {
  color: var(--accent-color);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.36));
}

.waiting-subtitle {
  margin: 14px 0 28px;
  color: rgba(248, 245, 234, 0.86);
  font-size: clamp(1rem, 0.9rem + 0.48vw, 1.22rem);
  line-height: 1.35;
}

.waiting-progress-card,
.waiting-note {
  border: 1px solid rgba(241, 189, 58, 0.42);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 216, 106, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 7, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
}

.waiting-progress-card {
  position: relative;
  --waiting-card-x: 24px;
  --waiting-card-y: 26px;
  --waiting-rail-column: 32px;
  --waiting-rail-center: 16px;
  --waiting-rail-inset: 27px;
  width: min(100%, 560px);
  display: grid;
  gap: 24px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--waiting-card-y) var(--waiting-card-x);
  text-align: left;
}

.waiting-rail {
  position: absolute;
  left: calc(var(--waiting-card-x) + var(--waiting-rail-center));
  top: calc(var(--waiting-card-y) + var(--waiting-rail-inset));
  bottom: calc(var(--waiting-card-y) + var(--waiting-rail-inset));
  width: 2px;
  background: rgba(248, 245, 234, 0.34);
}

.waiting-rail span {
  display: none;
}

.waiting-step {
  display: grid;
  grid-template-columns: var(--waiting-rail-column) auto 1fr;
  align-items: center;
  gap: 18px;
  opacity: 0.52;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}

.waiting-step::before {
  content: "";
  width: 16px;
  height: 16px;
  justify-self: center;
  border: 2px solid rgba(248, 245, 234, 0.48);
  border-radius: 999px;
  background: #12100d;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}

.waiting-step.step-1 { animation-name: waiting-step-1; }
.waiting-step.step-2 { animation-name: waiting-step-2; }
.waiting-step.step-3 { animation-name: waiting-step-3; }
.waiting-step.step-4 { animation-name: waiting-step-4; }
.waiting-step.step-1::before { animation-name: waiting-dot-1; }
.waiting-step.step-2::before { animation-name: waiting-dot-2; }
.waiting-step.step-3::before { animation-name: waiting-dot-3; }
.waiting-step.step-4::before { animation-name: waiting-dot-4; }

.waiting-step-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(248, 245, 234, 0.22);
  border-radius: 999px;
  color: rgba(248, 245, 234, 0.82);
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.04);
}

.waiting-step strong {
  display: block;
  color: rgba(248, 245, 234, 0.86);
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.25rem);
  line-height: 1.2;
  font-weight: 850;
}

.waiting-step p {
  margin: 6px 0 0;
  color: rgba(248, 245, 234, 0.7);
  font-size: clamp(0.9rem, 0.82rem + 0.34vw, 1.05rem);
  line-height: 1.3;
}

.waiting-note {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  margin-left: auto;
  margin-right: auto;
  padding: 18px 20px;
  text-align: left;
}

.waiting-note > i {
  color: var(--accent-color);
  font-size: 1.7rem;
}

.waiting-note strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.25;
}

.waiting-note p {
  margin: 4px 0 0;
  color: rgba(248, 245, 234, 0.72);
  line-height: 1.35;
}

.demo-waiting-cta {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 16px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
  text-align: left;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(4px);
}

.demo-waiting-cta-title {
  margin: 0 0 6px;
  color: #ffffff;
  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-waiting-cta-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  line-height: 1.42;
}

.demo-waiting-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.demo-waiting-cta-button:hover,
.demo-waiting-cta-button:focus {
  background: #ffffff;
  color: #111827;
  transform: translateY(-1px);
}

@keyframes waiting-step-1 {
  0%, 79% { opacity: 1; }
  80%, 100% { opacity: 0.5; }
}

@keyframes waiting-step-2 {
  0%, 19% { opacity: 0.5; }
  20%, 79% { opacity: 1; }
  80%, 100% { opacity: 0.5; }
}

@keyframes waiting-step-3 {
  0%, 39% { opacity: 0.5; }
  40%, 79% { opacity: 1; }
  80%, 100% { opacity: 0.5; }
}

@keyframes waiting-step-4 {
  0%, 59% { opacity: 0.5; }
  60%, 79% { opacity: 1; }
  80%, 100% { opacity: 0.5; }
}

@keyframes waiting-dot-1 {
  0%, 79% {
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: 0 0 18px rgba(241, 189, 58, 0.72);
  }
  80%, 100% {
    border-color: rgba(248, 245, 234, 0.48);
    background: #12100d;
    box-shadow: none;
  }
}

@keyframes waiting-dot-2 {
  0%, 19% {
    border-color: rgba(248, 245, 234, 0.48);
    background: #12100d;
    box-shadow: none;
  }
  20%, 79% {
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: 0 0 18px rgba(241, 189, 58, 0.72);
  }
  80%, 100% {
    border-color: rgba(248, 245, 234, 0.48);
    background: #12100d;
    box-shadow: none;
  }
}

@keyframes waiting-dot-3 {
  0%, 39% {
    border-color: rgba(248, 245, 234, 0.48);
    background: #12100d;
    box-shadow: none;
  }
  40%, 79% {
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: 0 0 18px rgba(241, 189, 58, 0.72);
  }
  80%, 100% {
    border-color: rgba(248, 245, 234, 0.48);
    background: #12100d;
    box-shadow: none;
  }
}

@keyframes waiting-dot-4 {
  0%, 59% {
    border-color: rgba(248, 245, 234, 0.48);
    background: #12100d;
    box-shadow: none;
  }
  60%, 79% {
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: 0 0 18px rgba(241, 189, 58, 0.72);
  }
  80%, 100% {
    border-color: rgba(248, 245, 234, 0.48);
    background: #12100d;
    box-shadow: none;
  }
}

.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-color: var(--panel-bg);
  text-align: left;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.hero-card,
.panel,
.status-card {
  background:
    linear-gradient(180deg, rgba(255, 216, 106, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.file-input {
  cursor: pointer;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed rgba(241, 189, 58, 0.42);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(241, 189, 58, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 0 38px rgba(241, 189, 58, 0.06);
}

.file-input:hover {
  background:
    linear-gradient(180deg, rgba(241, 189, 58, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(0, 0, 0, 0.44);
}

.file-input.dragging {
  border-color: var(--accent-color);
  background: rgba(241, 189, 58, 0.12);
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--accent-color);
  text-shadow: 0 0 20px rgba(241, 189, 58, 0.45);
}

.preview-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

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

.image-shell {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-top: 0;
  background: #000000;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.52);
}

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

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

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

.result-stage {
  position: relative;
  min-height: calc(100svh - 80px);
  margin: -1rem -1rem 0;
  padding: 92px 16px 26px;
  overflow: hidden;
  isolation: isolate;
}

.shared-section {
  min-height: 100svh;
  padding: 0;
}

.shared-stage {
  position: relative;
  min-height: calc(100svh - 80px);
  padding: 92px 16px 26px;
  overflow: hidden;
  isolation: isolate;
}

.result-bg,
.result-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.result-bg {
  z-index: -3;
  background-image: url("images/wc2026-bg2.jpg");
  background-size: cover;
  background-position: center top;
  filter: saturate(1.05) brightness(0.72);
}

.result-shade {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 18%, rgba(241, 189, 58, 0.16), transparent 17rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.38) 44%, rgba(0, 0, 0, 0.86) 100%);
}

.result-stage .result-header {
  width: min(100%, 620px);
  margin: 0 auto 18px;
}

.shared-header {
  width: min(100%, 620px);
  margin: 0 auto 18px;
}

.result-trophy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--accent-color);
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.32rem);
  filter: drop-shadow(0 0 14px rgba(241, 189, 58, 0.42));
}

.result-trophy .fa-trophy {
  font-size: 2.15em;
}

.result-trophy span {
  width: min(18vw, 110px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color));
}

.result-trophy span:last-child {
  background: linear-gradient(90deg, var(--accent-color), transparent);
}

.result-stage .result-header h2:not(.title-display) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 7vw, 4.1rem);
  line-height: 0.96;
  font-weight: 1000;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.42),
    0 0 26px rgba(255, 255, 255, 0.16);
}

.result-stage .result-header h2:not(.title-display) span {
  display: inline-block;
}

.result-stage .result-header h2:not(.title-display) span:last-child {
  color: var(--accent-color);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.36));
}

.result-stage .result-header p:not(.title-kicker) {
  margin: 12px 0 0;
  color: rgba(248, 245, 234, 0.86);
  font-size: clamp(1rem, 0.9rem + 0.44vw, 1.18rem);
  line-height: 1.35;
}

.shared-header p:not(.title-kicker) {
  margin: 12px 0 0;
  color: rgba(248, 245, 234, 0.86);
  font-size: clamp(1rem, 0.9rem + 0.44vw, 1.18rem);
  line-height: 1.35;
}

.result-image-shell {
  width: min(100%, 620px);
  margin: 0 auto;
  border: 2px solid rgba(241, 189, 58, 0.72);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.54), 0 0 28px rgba(241, 189, 58, 0.16);
}

.result-image-shell img {
  object-fit: contain;
}

.shared-image-shell {
  width: min(100%, 620px);
}

.shared-status-card {
  width: min(100%, 620px);
  margin: 0 auto;
}

.shared-actions {
  width: min(100%, 620px);
  margin: 16px auto 0;
}

.shared-actions .btn {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(0.9rem, 0.78rem + 0.52vw, 1.08rem);
  font-weight: 900;
}

.result-primary-actions,
.result-secondary-actions {
  width: min(100%, 620px);
  display: grid;
  gap: 14px;
  margin: 16px auto 0;
}

.result-primary-actions {
  grid-template-columns: 1fr;
}

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

.result-primary-actions .btn,
.result-secondary-actions .btn {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(0.85rem, 0.74rem + 0.48vw, 1.05rem);
  font-weight: 900;
}

.result-secondary-actions .btn-secondary {
  background: rgba(0, 0, 0, 0.44);
  color: var(--accent-color);
  border-color: rgba(241, 189, 58, 0.7);
  background-image: none;
}

.demo-result-cta {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 20px auto 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: #111827;
  color: #ffffff;
  text-align: left;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.demo-result-cta-copy {
  min-width: 0;
}

.demo-result-cta h3 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: clamp(1.05rem, 0.92rem + 0.5vw, 1.28rem);
  line-height: 1.2;
  font-weight: 850;
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
  text-shadow: none;
  white-space: normal;
}

.demo-result-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}

.result-tip {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(241, 189, 58, 0.34);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.56);
  color: rgba(248, 245, 234, 0.84);
  text-align: left;
}

.result-tip i {
  color: var(--accent-color);
  font-size: 1.35rem;
}

@media (max-width: 420px) {
  .demo-notice-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 82px;
    padding: 10px 12px;
    text-align: center;
  }

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

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

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

  .demo-result-cta {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    text-align: center;
  }

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

  .demo-waiting-cta {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
    text-align: center;
  }

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

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

  .result-stage .result-header h2:not(.title-display) {
    font-size: clamp(1.78rem, 9vw, 2.35rem);
  }

  .result-primary-actions,
  .result-secondary-actions {
    gap: 10px;
  }

  .result-primary-actions .btn,
  .result-secondary-actions .btn {
    min-height: 52px;
    padding-left: 10px;
    padding-right: 10px;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 576px) {
  .upload-section .file-input .fw-semibold {
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.08rem, 5.2vw, 1.36rem);
    line-height: 1.18;
  }

  .upload-section .file-input .small {
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .upload-action .btn {
    min-height: 62px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: clamp(0.82rem, 4vw, 1rem);
    letter-spacing: 0.045em;
    white-space: nowrap;
  }

  .upload-action .btn .fa-arrow-right {
    margin-left: 0.4rem !important;
  }

  .input-shell .form-control {
    padding-right: 16px;
  }

  .input-shell i {
    display: none;
  }

  .waiting-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .waiting-progress-card {
    --waiting-card-x: 18px;
    --waiting-card-y: 24px;
    --waiting-rail-column: 26px;
    --waiting-rail-center: 13px;
    --waiting-rail-inset: 27px;
    gap: 18px;
    padding: var(--waiting-card-y) var(--waiting-card-x);
  }

  .waiting-step {
    grid-template-columns: var(--waiting-rail-column) 48px 1fr;
    gap: 14px;
  }

  .waiting-step-icon {
    width: 48px;
    height: 48px;
    font-size: 1.18rem;
  }

  .waiting-step strong {
    font-size: clamp(0.98rem, 4.8vw, 1.16rem);
    line-height: 1.14;
  }

  .waiting-step p {
    margin-top: 5px;
    font-size: clamp(0.86rem, 4.1vw, 1rem);
    line-height: 1.24;
  }

  .result-tip {
    grid-template-columns: auto 1fr;
    padding: 14px;
    font-size: 0.95rem;
  }

  #footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.95rem;
  }

  .footer-links {
    row-gap: 8px;
    column-gap: 8px;
    font-size: 0.92rem;
  }

  .footer-links a {
    padding: 0.1rem 0.2rem;
  }

  .lang-select {
    min-width: 96px;
    padding: 5px 10px;
  }
}

form {
  margin-bottom: 1rem;
}

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

.btn {
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: none;
}

.btn-primary {
  --bs-btn-bg: #f1bd3a;
  --bs-btn-border-color: #ffd86a;
  --bs-btn-hover-bg: #ffd86a;
  --bs-btn-hover-border-color: #ffe9a8;
  --bs-btn-active-bg: #c78316;
  --bs-btn-active-border-color: #f1bd3a;
  --bs-btn-color: #080604;
  --bs-btn-hover-color: #080604;
  background-image: var(--gold-gradient);
  box-shadow: 0 0 0 1px rgba(255, 216, 106, 0.28), 0 14px 34px rgba(241, 189, 58, 0.2);
}

.btn-secondary {
  --bs-btn-bg: rgba(255, 255, 255, 0.06);
  --bs-btn-border-color: rgba(241, 189, 58, 0.5);
  --bs-btn-hover-bg: rgba(241, 189, 58, 0.14);
  --bs-btn-hover-border-color: #ffd86a;
  --bs-btn-color: #f8f5ea;
  --bs-btn-hover-color: #ffffff;
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  min-height: 48px;
  border-color: var(--border-color);
  color: var(--body-text);
  background: var(--field-bg);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
  color: var(--body-text);
  box-shadow: 0 0 0 0.2rem rgba(241, 189, 58, 0.12);
}

.form-control::placeholder {
  color: rgba(248, 245, 234, 0.48);
}

.form-select option {
  background: #11100e;
  color: var(--body-text);
}

.form-check-input {
  margin-top: 0.32em;
}

.error-text {
  color: #ff7a6f;
  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: var(--border-color);
  background: #11100e;
  color: var(--body-text);
}

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

.modal.face-detection-modal {
  z-index: 1060;
  pointer-events: auto;
}

.modal-header,
.modal-footer {
  border-color: var(--border-color);
}

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

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

.face-detection-modal .modal-content {
  border-radius: 18px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: hidden;
}

.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;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.face-detection-preview {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #050403;
}

.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;
  pointer-events: auto;
}

.alert-danger {
  color: #ffd3ce;
  background-color: rgba(127, 29, 29, 0.32);
  border-color: rgba(255, 122, 111, 0.42);
}

footer {
  margin-top: auto;
}

#footer {
  max-width: 680px;
  font-size: 0.85rem;
  text-align: left;
  padding: 8px 0 0;
  border-top: 1px solid var(--border-color);
  color: var(--muted-text);
  background: rgba(0, 0, 0, 0.28);
}

#footer .container {
  color: var(--muted-text);
  font-size: 0.86rem;
  line-height: 1.2;
}

.footer-links {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
  align-items: center;
  gap: 4px;
  flex-flow: wrap;
}

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

.socials {
  text-decoration: none;
}

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

.lang-select {
  padding: 4px 9px;
  border: 1px solid var(--accent-color);
  background: rgba(0, 0, 0, 0.58);
  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(241, 189, 58, 0.16);
}

.lang-select:focus {
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 0.2rem rgba(241, 189, 58, 0.12);
}

.lang-select option {
  background: #11100e;
  color: var(--body-text);
  padding: 4px 8px;
}

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

.opacity-0 {
  opacity: 0;
}

.opacity-1 {
  opacity: 1;
}

@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;
  }
}

@media (max-width: 680px) {
  .waiting-title {
    font-size: clamp(1.35rem, 5.25vw, 2.95rem);
    letter-spacing: 0.01em;
    line-height: 1;
  }

  .result-secondary-actions .btn {
    font-size: clamp(0.78rem, 3.5vw, 0.95rem);
    line-height: 1.15;
    letter-spacing: 0.045em;
  }
}

@media (max-width: 576px) {
  #footer {
    padding-top: 6px;
  }

  #footer .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.82rem;
  }

  .footer-links {
    row-gap: 4px;
    column-gap: 5px;
    padding-bottom: 6px;
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .footer-links a {
    padding: 0;
  }

  .lang-select {
    min-width: 86px;
    padding: 3px 8px;
    font-size: 11px;
  }
}

/* Unified title system */
.title-block,
.upload-hero-content,
.waiting-content .title-kicker,
.waiting-content .title-display,
.waiting-content .title-stars {
  text-align: center;
}

.title-block,
.upload-hero-content,
.waiting-content {
  --title-gap: clamp(14px, 2.3vw, 22px);
}

.title-block--hero {
  --title-gap: clamp(12px, 2vw, 18px);
}

.title-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 var(--title-gap);
  color: var(--accent-color);
  font-size: clamp(0.78rem, 0.6rem + 0.8vw, 1.12rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(241, 189, 58, 0.48);
}

.title-kicker::before,
.title-kicker::after {
  content: "";
  width: clamp(24px, 9vw, 84px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color));
}

.title-kicker::after {
  background: linear-gradient(90deg, var(--accent-color), transparent);
}

.title-display {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  color: #f8f5ea;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.42),
    0 0 26px rgba(255, 255, 255, 0.16);
}

.title-display span {
  display: inline-block;
  max-width: 100%;
}

.title-accent {
  color: var(--accent-color);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.38));
}

.title-small {
  color: #f8f5ea;
  font-size: 0.38em;
  line-height: 0.86;
  letter-spacing: 0;
}

.title-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(100%, 290px);
  margin: var(--title-gap) auto 14px;
  color: var(--accent-color);
  font-size: 1.1rem;
}

.title-stars::before,
.title-stars::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0.75;
}

.title-display--hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(4rem, 19vw, 8.9rem);
  line-height: 0.78;
  letter-spacing: -0.03em;
  font-style: italic;
}

.title-display--hero span {
  width: 100%;
}

.title-display--hero .title-small {
  margin: 0.16em 0 0.08em;
}

.title-display--hero .title-accent {
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.44)) drop-shadow(0 0 24px rgba(241, 189, 58, 0.26));
}

.title-display--upload {
  display: block;
  font-size: clamp(2rem, 6.4vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-style: italic;
  white-space: nowrap;
}

.title-display--upload span {
  display: inline;
}

.title-display--waiting,
.title-display--result {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  max-width: calc(100vw - 24px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-style: italic;
}

.title-display--waiting span,
.title-display--result span {
  display: block;
  white-space: nowrap;
}

.title-display--waiting {
  font-size: clamp(1.8rem, 4.15vw, 3.08rem);
}

.title-display--result {
  font-size: clamp(2rem, 7vw, 4.1rem);
}

.title-block--result .title-stars {
  margin-top: var(--title-gap);
}

@media (max-width: 680px) {
  .title-display--waiting {
    font-size: clamp(1.35rem, 5.25vw, 2.42rem);
    line-height: 1;
    letter-spacing: -0.035em;
  }

  .title-display--result {
    font-size: clamp(1.78rem, 9vw, 2.35rem);
  }
}

@media (max-width: 420px) {
  .title-kicker {
    gap: 8px;
    font-size: clamp(0.72rem, 3.3vw, 0.9rem);
    letter-spacing: 0.14em;
  }

  .title-display--waiting {
    font-size: clamp(1.08rem, 6.25vw, 1.58rem);
    letter-spacing: -0.03em;
  }
}
