
:root {
  color-scheme: dark;
  --bg: #050504;
  --panel: rgba(7, 6, 4, 0.88);
  --panel-strong: rgba(5, 5, 4, 0.96);
  --text: #f7ecd1;
  --muted: #d6c196;
  --line: rgba(218, 164, 45, 0.48);
  --line-soft: rgba(218, 164, 45, 0.24);
  --gold: #e8b845;
  --gold-bright: #ffe38d;
  --gold-deep: #8d5d11;
  --shadow: 0 24px 76px rgba(0, 0, 0, 0.58);
  --card-shadow: 0 16px 52px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.8)),
    url('/assets/site-hero-banner.png') center top / cover no-repeat fixed,
    #050504;
}

a { color: inherit; }

.site-header {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  overflow: hidden;
  flex: 0 0 auto;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(218, 164, 45, .13);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.1vw, 2.08rem);
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(232, 184, 69, .14);
}

.brand p {
  margin: 7px 0 0;
  color: #ecd9ac;
  font-size: 1.02rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

nav a {
  text-decoration: none;
  color: var(--gold-bright);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 17px;
  font-size: .94rem;
  background: rgba(8, 7, 5, .72);
  box-shadow: inset 0 0 0 1px rgba(255, 228, 150, .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 226, 142, .82);
  box-shadow: 0 0 22px rgba(232, 184, 69, .08);
}

.page {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 58px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(30px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(8, 7, 5, .94), rgba(5, 5, 4, .96));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 226, 142, .06);
}

.hero.compact {
  padding: clamp(28px, 4vw, 46px);
}

.hero-home {
  min-height: clamp(430px, 43vw, 650px);
  display: flex;
  align-items: center;
  padding: clamp(42px, 5vw, 70px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .68) 0%, rgba(0, 0, 0, .55) 42%, rgba(0, 0, 0, .12) 74%, rgba(0, 0, 0, .06) 100%),
    url('/assets/site-hero-banner.png') center center / cover no-repeat;
}

.hero-home .hero-copy {
  width: min(610px, 100%);
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--gold);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: .95rem;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold-bright);
  font-size: clamp(3.2rem, 6.4vw, 6.25rem);
  letter-spacing: -.045em;
  line-height: .91;
  max-width: 760px;
  text-shadow: 0 0 20px rgba(232, 184, 69, .11);
}

.hero p:not(.eyebrow) {
  color: #f0dfb5;
  font-size: clamp(1.08rem, 1.85vw, 1.32rem);
  line-height: 1.55;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-width: 176px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 25px;
  color: var(--gold-bright);
  font-weight: 850;
  font-size: 1rem;
  background: rgba(5, 5, 4, .62);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 142, .05);
}

.button.primary {
  color: #1e1405;
  border-color: rgba(255, 226, 142, .76);
  background: linear-gradient(180deg, #ffdc78 0%, #d59e31 100%);
  box-shadow: 0 10px 30px rgba(193, 128, 24, .18);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.tile,
.content-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 7, 5, .9), rgba(5, 5, 4, .94));
  box-shadow: var(--card-shadow);
}

.tile::after,
.content-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 225, 142, .04);
}

.tile {
  display: block;
  text-decoration: none;
  padding: 28px;
  min-height: 194px;
  transition: transform .18s ease, border-color .18s ease;
}

.tile:hover {
  border-color: rgba(255, 226, 142, .82);
  transform: translateY(-1px);
}

.tile-icon {
  width: 62px;
  height: 62px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 226, 142, .18), rgba(5, 5, 4, .86) 68%),
    rgba(7, 6, 4, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 142, .04), 0 0 22px rgba(232,184,69,.08);
}

.tile-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 9px rgba(232, 184, 69, .16));
}

.tile h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.46rem;
  color: var(--gold-bright);
}

.tile p,
.content-card p,
.content-card li {
  color: #dfca9d;
  line-height: 1.72;
}

.content-card {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 46px);
  max-width: 980px;
}

.content-card h2 {
  margin-top: 2rem;
  margin-bottom: .5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  color: var(--gold-bright);
}

.content-card h2:first-child { margin-top: 0; }
.content-card ul { padding-left: 1.25rem; }
.content-card a, .site-footer a { color: var(--gold-bright); }

.contact-box {
  border: 1px solid rgba(232, 184, 69, .4);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(232, 184, 69, .08);
  font-weight: 800;
}

pre {
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--text);
  background: rgba(0,0,0,.28);
}

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 28px 0 16px;
}

.muted {
  color: var(--muted);
  font-size: .92rem;
}

.site-footer {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: .96rem;
}

@media (max-width: 920px) {
  .grid { grid-template-columns: 1fr; }
  .hero-home {
    min-height: 560px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .58) 48%, rgba(0, 0, 0, .22) 100%),
      url('/assets/site-hero-banner.png') center center / cover no-repeat;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  nav { justify-content: flex-start; }

  .page,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1280px);
  }

  .brand-mark {
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }

  h1 { font-size: clamp(2.75rem, 12vw, 4.3rem); }

  .button {
    min-width: 0;
    width: 100%;
  }

  .hero-actions { flex-direction: column; }
}


/* 2026-05-25 fix: use the real uploaded app icon and the real banner inside the hero box. */
body {
  background:
    linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.82)),
    url('/assets/drama-judge-hero-banner.png') center top / cover no-repeat fixed,
    #050504 !important;
}

.brand-mark {
  width: 82px !important;
  height: 82px !important;
  border: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: 0 0 28px rgba(218, 164, 45, .16) !important;
}

.brand-mark img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  opacity: 1 !important;
  filter: none !important;
}

.hero-home {
  width: 100%;
  aspect-ratio: 1672 / 941;
  min-height: 520px;
  max-height: 760px;
  display: flex !important;
  align-items: center !important;
  padding: clamp(38px, 5vw, 72px) !important;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.70) 36%, rgba(0,0,0,.36) 58%, rgba(0,0,0,.08) 100%),
    url('/assets/drama-judge-hero-banner.png') center center / cover no-repeat !important;
}

.hero-home .hero-copy {
  width: min(610px, 100%);
  position: relative;
  z-index: 2;
}

.hero-home::before {
  content: none !important;
}

.tile-icon {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 226, 142, .22), rgba(5, 5, 4, .86) 68%),
    rgba(7, 6, 4, .92) !important;
}

.tile-icon img {
  opacity: 1 !important;
  filter: drop-shadow(0 0 10px rgba(232, 184, 69, .22)) !important;
}

@media (max-width: 920px) {
  .hero-home {
    aspect-ratio: auto;
    min-height: 560px;
    background:
      linear-gradient(180deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.66) 42%, rgba(0,0,0,.20) 100%),
      url('/assets/drama-judge-hero-banner.png') center center / cover no-repeat !important;
  }
}

@media (max-width: 820px) {
  .brand-mark {
    width: 64px !important;
    height: 64px !important;
    border-radius: 16px !important;
  }
}


/* 2026-05-25 fix: the page background is the clean site background; the banner stays only inside the hero box. */
body {
  background:
    linear-gradient(180deg, rgba(0,0,0,.50), rgba(0,0,0,.80)),
    url('/assets/site-background.png') center top / cover no-repeat fixed,
    #050504 !important;
}

/* 2026-05-26: premium custom language menu shared by all hosted pages. */
.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  z-index: 30;
}

.language-picker__button {
  appearance: none;
  border: 1px solid rgba(255, 226, 142, .56);
  outline: 0;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 8px 13px 8px 10px;
  color: var(--gold-bright);
  background:
    linear-gradient(180deg, rgba(27, 20, 8, .88), rgba(7, 6, 4, .88));
  box-shadow:
    0 0 0 1px rgba(255, 229, 152, .06) inset,
    0 10px 28px rgba(0, 0, 0, .36),
    0 0 24px rgba(232, 184, 69, .08);
  font: inherit;
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.language-picker__button:hover,
.language-picker.is-open .language-picker__button {
  transform: translateY(-1px);
  border-color: rgba(255, 226, 142, .90);
  box-shadow:
    0 0 0 1px rgba(255, 229, 152, .10) inset,
    0 16px 42px rgba(0, 0, 0, .46),
    0 0 30px rgba(232, 184, 69, .14);
}

.language-picker__flag {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  box-shadow:
    0 0 0 1px rgba(255, 239, 187, .22),
    0 0 10px rgba(232, 184, 69, .14);
}

.language-picker__current {
  white-space: nowrap;
}

.language-picker__chevron {
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .18s ease;
}

.language-picker.is-open .language-picker__chevron {
  transform: rotate(180deg) translateY(1px);
}

.language-picker__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(230px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid rgba(255, 226, 142, .52);
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 0%, rgba(232, 184, 69, .16), transparent 44%),
    linear-gradient(180deg, rgba(13, 10, 5, .98), rgba(5, 5, 4, .98));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .62),
    0 0 0 1px rgba(255, 229, 152, .06) inset,
    0 0 35px rgba(232, 184, 69, .12);
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.language-picker.is-open .language-picker__menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

.language-picker__option {
  appearance: none;
  border: 0;
  outline: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 10px 10px;
  color: #f8edcf;
  background: transparent;
  font: inherit;
  font-size: .95rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.language-picker__option:hover,
.language-picker__option[aria-selected="true"] {
  color: var(--gold-bright);
  background: rgba(232, 184, 69, .12);
}

.language-picker__option:hover {
  transform: translateX(1px);
}

.language-picker__tick {
  color: var(--gold-bright);
  font-weight: 950;
  text-align: right;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .language-picker {
    margin-left: auto;
  }
}

@media (max-width: 820px) {
  .language-picker {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .language-picker__button {
    width: 100%;
    justify-content: flex-start;
  }

  .language-picker__current {
    flex: 1;
    text-align: left;
  }

  .language-picker__menu {
    left: 0;
    right: auto;
    width: 100%;
  }
}

/* 2026-05-26 fix: widen the whole desktop shell so header, hero, cards, and footer stay aligned. */
@media (min-width: 981px) {
  .site-header,
  .page,
  .site-footer {
    width: min(1520px, calc(100% - 48px));
  }

  .brand {
    flex: 0 0 auto;
  }

  .site-header nav {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .language-picker {
    flex: 0 0 auto;
  }
}

/* Legal/deep-link additions */
.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 18px;
}
.store-actions .button {
  min-width: 150px;
}
.case-page .content-card {
  overflow: hidden;
}
.content-card code {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 226, 142, .08);
  color: var(--gold-bright);
}
.content-card a[data-store-pending="true"]::after {
  content: " · setup pending";
  color: var(--muted);
  font-weight: 700;
  font-size: .82em;
}
@media (max-width: 720px) {
  .store-actions .button {
    width: 100%;
  }
}

/* 2026-06-19 UGC safety compliance blocks */
.ugc-safety-notice {
  margin: 0 0 28px;
  padding: 22px;
  border: 1px solid rgba(255, 214, 116, .34);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 214, 116, .12), rgba(255, 214, 116, .04));
  box-shadow: inset 0 0 24px rgba(255, 214, 116, .05);
}
.ugc-safety-notice h2 {
  margin-top: 0;
}
.ugc-safety-notice ul {
  margin-bottom: 0;
}
.ugc-safety-notice strong {
  color: var(--gold-bright);
}

/* 2026-06-26 store download panels */
.download-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 202px;
  padding: 12px 17px;
  border: 1px solid rgba(255, 226, 142, .44);
  border-radius: 20px;
  color: var(--gold-bright);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(12, 10, 7, .94), rgba(3, 3, 2, .94));
  box-shadow: 0 16px 38px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 226, 142, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 226, 142, .82);
  box-shadow: 0 18px 42px rgba(218, 164, 45, .13), inset 0 0 0 1px rgba(255, 226, 142, .1);
}

.store-badge__icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #1d1407;
  background: linear-gradient(180deg, #ffe38d, #d19b2d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  flex: 0 0 auto;
}

.store-badge__icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.store-badge small,
.store-badge strong {
  display: block;
  line-height: 1.04;
}

.store-badge small {
  margin-bottom: 4px;
  color: #d8c49c;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.store-badge strong {
  color: #fff1c2;
  font-size: 1.18rem;
  font-weight: 950;
}

.home-download-panel,
.app-download-panel,
.download-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 116, .42);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 214, 116, .14), transparent 30%),
    linear-gradient(135deg, rgba(8, 7, 5, .95), rgba(5, 5, 4, .88));
  box-shadow: 0 24px 72px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 226, 142, .06);
}

.home-download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
  padding: clamp(22px, 3vw, 34px);
}

.home-download-panel h2,
.app-download-panel h2,
.download-info-card h2 {
  margin: 0 0 8px;
  color: var(--gold-bright);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  letter-spacing: -.02em;
}

.home-download-panel p,
.app-download-panel p,
.download-hero p {
  color: #f0dfb5;
}

.home-download-panel .eyebrow {
  margin-bottom: 10px;
  font-size: .78rem;
}

.home-download-panel__copy,
.app-download-panel__copy,
.download-hero__copy {
  max-width: 650px;
}

.app-download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 24px 0;
  padding: clamp(22px, 3vw, 34px);
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  margin-bottom: 24px;
}

.download-hero h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.download-hero__note {
  margin-top: 18px;
  color: var(--muted) !important;
  font-weight: 750;
}

.download-hero__phone {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 226, 142, .26);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 226, 142, .08), rgba(255, 226, 142, .02));
  transform: rotate(2deg);
}

.download-hero__phone img {
  width: min(190px, 60vw);
  border-radius: 38px;
  box-shadow: 0 0 44px rgba(218, 164, 45, .18);
}

.download-hero__phone span {
  color: var(--gold-bright);
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.download-info-card {
  margin-top: 24px;
}

@media (max-width: 860px) {
  .home-download-panel,
  .app-download-panel,
  .download-hero {
    display: block;
  }

  .download-badges {
    margin-top: 18px;
  }

  .store-badge {
    width: 100%;
  }

  .download-hero__phone {
    margin-top: 26px;
    transform: none;
  }
}
