/* twogram.gr: the public pages (home, invites, sign-in, legal). The game's "cozy toy" look:
   oak table backdrop, cream paper cards, puffy buttons, Fredoka. */
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --wood: #b9773f;
  --ink: #4a2c1a;
  --dim: #876248;
  --paper: #fff3da;
  --paper-edge: #dcbf8e;
  --green: #56bd2e;
  --green-edge: #3a8c1d;
  --orange: #ef8a2e;
  --orange-edge: #b85f15;
  --line: #ecd8b4;
  --bad: #b8402a;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--wood) url("../img/bg_table.webp") center / cover fixed;
  color: var(--ink);
  font: 16px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
}
a { color: #a8521a; }
h1, h2, h3, .brand, .btn { font-family: "Fredoka", -apple-system, sans-serif; }
h1 { font-size: 28px; line-height: 1.15; margin: 0 0 10px; font-weight: 600; }
h2 { font-size: 20px; margin: 22px 0 8px; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--dim); }
.small { font-size: 13px; }
.center { text-align: center; }

.wrap { width: 100%; max-width: 460px; margin: 0 auto; padding: 24px 16px 32px; flex: 1; }
.wrap.wide { max-width: 760px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 20px; color: #fff; text-decoration: none; font-size: 26px; font-weight: 600; text-shadow: 0 2px 0 rgba(60, 30, 10, 0.35); }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 3px 0 rgba(60, 30, 10, 0.3); }

.card { background: var(--paper); border-radius: 22px; padding: 26px 22px; box-shadow: 0 5px 0 var(--paper-edge), 0 14px 30px rgba(60, 30, 10, 0.25); margin-bottom: 18px; }
.card.legal { padding: 28px 26px; }
.card.legal h1 { font-size: 26px; }
.card.legal li { margin-bottom: 6px; }
.hero-art { display: block; width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 28px; box-shadow: 0 5px 0 rgba(60, 30, 10, 0.25); }
.avatar-big { display: block; width: 96px; height: 96px; margin: 0 auto 10px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 52px; padding: 12px 18px; margin: 0 0 12px;
  border: 0; border-radius: 16px; cursor: pointer; text-decoration: none;
  font-size: 18px; font-weight: 600; color: #fff;
  background: var(--green); box-shadow: 0 4px 0 var(--green-edge);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-edge); }
.btn.orange { background: var(--orange); box-shadow: 0 4px 0 var(--orange-edge); }
.btn.cream { background: #fffaf0; color: var(--ink); box-shadow: 0 4px 0 var(--paper-edge); border: 1px solid var(--line); }
.btn.black { background: #111; box-shadow: 0 4px 0 #000; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn svg { width: 22px; height: 22px; flex: none; }
.stores { display: grid; gap: 10px; margin-top: 4px; }
.soon { display: block; text-align: center; padding: 12px; border: 2px dashed var(--paper-edge); border-radius: 16px; color: var(--dim); font-weight: 600; }

.code { display: inline-block; font: 600 26px/1 "Fredoka", monospace; letter-spacing: 0.12em; padding: 10px 16px; background: #fffaf0; border: 2px dashed var(--paper-edge); border-radius: 12px; }

label { display: block; font-size: 14px; font-weight: 600; color: var(--dim); margin: 0 0 6px; }
input[type="email"], input[type="text"] {
  width: 100%; font: inherit; color: var(--ink); background: #fffaf0;
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px;
}
input:focus { outline: none; border-color: var(--orange); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13px; margin: 6px 0 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.error { color: var(--bad); font-weight: 600; font-size: 14px; margin: 0 0 12px; }
.note { background: #fffaf0; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.google-slot { display: flex; justify-content: center; min-height: 44px; margin: 0 0 12px; }
details.more summary { cursor: pointer; color: var(--dim); font-weight: 600; margin: 8px 0 12px; }
.test-tag { font-size: 12px; font-weight: 600; color: var(--orange-edge); }

footer { text-align: center; padding: 10px 16px 24px; font-size: 13px; color: #fff; text-shadow: 0 1px 0 rgba(60, 30, 10, 0.4); }
footer a { color: #fff; margin: 0 6px; }
footer .made { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; opacity: 0.9; }
footer .made img { height: 16px; filter: brightness(0) invert(1); }
