:root {
  --gold: #f5c542;
  --gold-light: #ffe58a;
  --gold-dark: #a8781c;
  --marble: #f6f0e1;
  --sky-deep: #2a2350;
  --prismarine: #7fd6c2;
  --text-muted: #d9cfe8;
}

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: 'Cinzel', serif;
  color: var(--marble);
  background-color: var(--sky-deep);
  background-image:
    radial-gradient(ellipse at center, rgba(42, 35, 80, 0.15) 0%, rgba(20, 15, 45, 0.75) 100%),
    url('assets/bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, rgba(30, 24, 60, 0.82), rgba(20, 16, 42, 0.9));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--gold);
  border-radius: 6px;
  box-shadow:
    0 0 0 6px rgba(245, 197, 66, 0.12),
    0 0 40px rgba(245, 197, 66, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: rise 0.8s ease-out;
}

/* Faixa grega (meandro) */
.meander {
  height: 22px;
  background-color: rgba(245, 197, 66, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M0 22H24M20 22V2H4V18H16V6H8V14H12V10' fill='none' stroke='%23f5c542' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 22px 22px;
  background-repeat: repeat-x;
  border-bottom: 2px solid var(--gold);
}

.meander-bottom {
  transform: scaleY(-1);
  border-bottom: 2px solid var(--gold);
}

.card-body {
  padding: 32px 28px 24px;
  text-align: center;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--prismarine);
}

h1 {
  margin-top: 10px;
  font-family: 'Cinzel Decorative', serif;
  font-weight: 900;
  font-size: clamp(36px, 10vw, 52px);
  line-height: 1.1;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5)) drop-shadow(0 0 18px rgba(245, 197, 66, 0.45));
  word-break: break-word;
}

.subtitle {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--gold);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 197, 66, 0.45);
  border-radius: 4px;
  text-align: left;
}

.label {
  min-width: 52px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.value {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--marble);
  word-break: break-all;
}

.copy {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.copy:hover {
  background: rgba(245, 197, 66, 0.15);
  border-color: rgba(245, 197, 66, 0.5);
}

.btn {
  position: relative;
  display: block;
  padding: 16px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  color: #3a2700;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, #d9a22a 100%);
  border: 2px solid var(--gold-dark);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 4px 0 var(--gold-dark),
    0 8px 24px rgba(245, 197, 66, 0.35);
  overflow: hidden;
  transition: transform 0.1s, box-shadow 0.1s, filter 0.15s;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: shine 3s ease-in-out infinite;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 0 var(--gold-dark),
    0 4px 12px rgba(245, 197, 66, 0.3);
}

.hint {
  margin-top: 20px;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  opacity: 0.8;
}

.toast {
  margin-top: 10px;
  min-height: 18px;
  font-size: 13px;
  color: var(--prismarine);
}

@keyframes shine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 400px) {
  .card-body { padding: 26px 18px 20px; }
  .value { font-size: 13px; }
  .btn { font-size: 18px; }
}
