*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #150720;
  --bg-soft: #1c0a2d;
  --text: #f7f2ff;
  --gold: #d4af37;
  --gold-2: #e7c85f;
  --purple-1: #3b0b6d;
  --purple-2: #5a1fa3;
  --radius: 18px;
  --shadow:
    0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html,
body {
  height: 100%;
}

body {
  --bg: #150720;
  --bg-soft: #1c0a2d;
  --text: #f7f2ff;
  --gold: #d4af37;
  --gold-2: #e7c85f;
  --purple-1: #3b0b6d;
  --purple-2: #5a1fa3;
  --radius: 18px;
  --shadow:
    0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin: 0;
  background:
    radial-gradient(
      1200px 800px at 50% -200px,
      rgba(106, 55, 163, 0.25),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  font-family:
    "Cormorant Garamond", ui-serif, Georgia, "Times New Roman", Times, serif;
}

#app {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 28px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.h1 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  font-weight: 700;
}

.h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0.2px;
  font-weight: 600;
}

.lead {
  font-size: 25px;
  opacity: 0.9;
  text-align: center;
}

.square {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.square img {
  border-radius: 14px;
  /*width: 100%;*/
  height: 400px;
  object-fit: cover;
  display: block;
}

.square span {
  color: var(--text);
  font-size: 12px;
  opacity: 0.8;
}

.video-vertical {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1),
    rgba(90, 31, 163, 0.15)
  );
  position: relative;
  overflow: hidden;
}

.video-vertical .frame {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(212, 175, 55, 0.6);
  border-radius: 16px;
}

.inputs {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text);
}

.input::placeholder {
  color: #e9ddffcc;
}

.actions {
  display: grid;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #3c2755;
}

.btn-primary:disabled {
  opacity: 0.5;
}

.grid-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.answer {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #3c2755;
  border: 1px solid rgba(212, 175, 55, 0.8);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
  font-size: 18px;
}

.footer {
  padding: 14px 16px 24px;
  text-align: center;
  color: #dccff8;
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #1f0c36;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.toast.show {
  opacity: 1;
}

.hidden {
  display: none !important;
}

.btn,
.answer {
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #3c2755;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(212, 175, 55, 0.45);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.btn:disabled {
  cursor: not-allowed;
}

.answer {
  font-weight: 600;
}

.answer:hover {
  border-color: rgba(212, 175, 55, 0.9);
  background: linear-gradient(135deg, #e0bf4a, #f0d777);
  box-shadow: 0 12px 26px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.answer:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25);
}

.answer:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.video-vertical .v {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
