@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,700;1,500&family=Inter:wght@400;600;800&display=swap');

:root {
  --bg: #f5f8fc;
  --card: #ffffff;
  --ink: #0f1626;
  --muted: #6b778c;
  --navy: #1b2a52;      /* menyasszony ruhája */
  --sky: #9cc6ea;       /* világoskék homok */
  --sand-black: #121212;/* fekete homok */
  --accent: #2f5f99;    /* kiemelő szöveg */
  --accent-soft: #dceaf7;
  --bride: #1b2a52;
  --groom: #121212;
  --ok: #3f7d5a;
  --bad: #b5523b;
  --radius: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
}
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; margin: 0; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.hidden { display: none !important; }

.btn {
  display: block; width: 100%; border: 0; border-radius: var(--radius);
  padding: 18px; font: 600 1.1rem 'Inter', sans-serif; cursor: pointer;
  background: var(--ink); color: #fff; transition: transform .08s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; }
.btn.accent { background: var(--navy); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--accent-soft); }
.btn.danger { background: var(--bad); }
.btn.sel { outline: 4px solid var(--accent); outline-offset: 3px; }

input[type=text], input[type=password] {
  width: 100%; padding: 16px; font: 1.1rem 'Inter', sans-serif; border-radius: var(--radius);
  border: 2px solid var(--accent-soft); background: #fff; outline: none;
}
input:focus { border-color: var(--accent); }

.card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 24px rgba(20,40,80,.08); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); margin: 16px 0; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .85rem; }

/* opció színek: 0 = menyasszony, 1 = vőlegény, többi arany */
.opt-0 { background: var(--bride) !important; color: #fff !important; }
.opt-1 { background: var(--groom) !important; color: #fff !important; }
.opt-1 { box-shadow: inset 0 0 0 3px var(--sky); }
.opt-2, .opt-3, .opt-4, .opt-5 { background: var(--sky) !important; color: var(--ink) !important; }

@keyframes pop { from { transform: scale(.85); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.pop { animation: pop .35s ease-out; }


/* Homok-háttér: finom zaj; fent világoskék, lent fekete szemcsék – mintha összeöntötték volna */
html { background: var(--bg); }
body { background: transparent; position: relative; min-height: 100%; }
body::before, body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.66 0 0 0 0 0.86 3.2 0 0 0 -1.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"), radial-gradient(120% 80% at 15% -10%, #d6e8f8 0, transparent 60%);
  -webkit-mask-image: linear-gradient(170deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
          mask-image: linear-gradient(170deg, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
  opacity: .55;
}
body::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.07 0 0 0 0 0.08 3.4 0 0 0 -1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(170deg, transparent 35%, rgba(0,0,0,.6) 75%, #000 100%);
          mask-image: linear-gradient(170deg, transparent 35%, rgba(0,0,0,.6) 75%, #000 100%);
  opacity: .22;
}
