/* Oyun Bahçesi ortak sayfa stili (aile, takım): gökyüzü bandı, çimen zemin, kâğıt kartlar */
:root {
  --sky-top: #9fdcff;
  --sky-low: #fff1cf;
  --grass: #e3f7d4;
  --grass-deep: #74c95b;
  --ink: #2b3a55;
  --ink-soft: #5f6f8a;
  --paper: #fffdf7;
  --line: #e6ead9;
  --sun: #ffcf3f;
  --pink: #ff6f9c;
  --pink-dark: #d94a7a;
  --blue: #29a8e0;
  --green: #36c26e;
  --green-dark: #23934f;
  --red: #e5484d;
  --gold: #f2b400;
  --tape: rgba(255, 236, 160, .85);
  --f-display: 'Fredoka', 'Baloo 2', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --f-body: 'Nunito', ui-rounded, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--grass); color: var(--ink); font-family: var(--f-body); font-weight: 700; -webkit-tap-highlight-color: transparent; overflow-x: hidden; line-height: 1.4; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
[hidden] { display: none !important; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* üst bant */
.band { background: linear-gradient(var(--sky-top), var(--sky-low)); padding-top: env(safe-area-inset-top, 0px); position: relative; overflow: hidden; }
.band-in { max-width: 860px; margin: 0 auto; padding-block: 14px 54px; display: grid; gap: 6px; position: relative; z-index: 2; }
.band svg.hill { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 46px; display: block; }
.crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.7); padding: 4px 12px 4px 8px; border-radius: 99px; }
.crumbs a svg { width: 18px; height: 18px; fill: currentColor; }
.band h1 { margin: 6px 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 8vw, 52px); line-height: 1; text-wrap: balance; }
.band p { margin: 0; color: var(--ink-soft); font-size: 17px; max-width: 52ch; }

main { max-width: 860px; margin: 0 auto; padding-block: 8px 48px; display: grid; gap: 22px; }

/* kartlar */
.card { background: var(--paper); border-radius: 24px; padding: 18px; box-shadow: 0 6px 0 rgba(43, 58, 85, .08), 0 14px 26px -18px rgba(43, 58, 85, .35); display: grid; gap: 14px; min-width: 0; }
.card h2 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1.15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card h2 small { font-family: var(--f-body); font-size: 15px; color: var(--ink-soft); font-weight: 700; }
.card > p, .muted { margin: 0; color: var(--ink-soft); }
.taped { position: relative; }
.taped::before { content: ""; position: absolute; top: -11px; left: 50%; width: 84px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: var(--tape); border-radius: 3px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; align-items: start; }

/* butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 16px; font-family: var(--f-display); font-weight: 600; font-size: 19px; background: #fff; color: var(--ink); box-shadow: 0 4px 0 #cfd8e6; text-decoration: none; transition: transform .08s, box-shadow .08s; white-space: nowrap; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #cfd8e6; }
.btn.primary { background: var(--pink); color: #fff; box-shadow: 0 4px 0 var(--pink-dark); }
.btn.primary:active { box-shadow: 0 1px 0 var(--pink-dark); }
.btn.green { background: var(--green); color: #fff; box-shadow: 0 4px 0 var(--green-dark); }
.btn.small { min-height: 38px; font-size: 16px; padding: 0 14px; border-radius: 13px; }
.btn.ghost { background: transparent; box-shadow: none; text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; }
.btn.danger { color: var(--red); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* formlar */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 15px; color: var(--ink-soft); }
.field input, .field select { width: 100%; font-size: 18px; padding: 11px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.field input:focus { border-color: var(--blue); outline: none; }
.err { color: var(--red); margin: 0; min-height: 1.4em; }
.tabs { display: flex; gap: 6px; background: #eef3e6; padding: 5px; border-radius: 16px; }
.tabs button { flex: 1; padding: 9px 10px; border-radius: 12px; font-family: var(--f-display); font-weight: 600; font-size: 18px; color: var(--ink-soft); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 0 rgba(0,0,0,.06); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 38px; height: 38px; border-radius: 12px; background: var(--c); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); border: 3px solid transparent; }
.swatches button[aria-pressed="true"] { border-color: var(--ink); }
.checks { display: flex; gap: 8px; flex-wrap: wrap; }
.checks label { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--line); padding: 6px 12px; border-radius: 99px; cursor: pointer; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); line-height: 1.4; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--pink); }
.consent a { color: var(--ink); }
footer.mini a { color: inherit; }

/* blok avatar */
.ava { --s: 44px; position: relative; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .26); flex: none; background: linear-gradient(150deg, color-mix(in srgb, var(--c), #fff 35%), var(--c) 60%); background-color: var(--c); box-shadow: inset 0 calc(var(--s) * -.12) 0 rgba(0,0,0,.16); }
.ava::before, .ava::after { content: ""; position: absolute; top: 28%; width: 22%; height: 22%; border-radius: 50%; background: radial-gradient(circle at 55% 55%, #1b1b1b 0 38%, #fff 40%); }
.ava::before { left: 22%; } .ava::after { right: 22%; }
.ava i { position: absolute; left: 50%; top: 58%; width: 26%; height: 12%; transform: translateX(-50%); border: 2px solid #1b1b1b; border-top: 0; border-radius: 0 0 99px 99px; }
.ava.sleep::before, .ava.sleep::after { background: none; height: 9%; border-bottom: 2px solid #1b1b1b; border-radius: 0 0 99px 99px; }
.ava.big { --s: 72px; }

/* çocuk / üye satırları */
.kid { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px; border-radius: 18px; background: #fff; border: 2px solid var(--line); min-width: 0; }
.kid .who { flex: 1 1 140px; min-width: 0; display: grid; }
.kid .who b { font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kid .who span { font-size: 14px; color: var(--ink-soft); }
.list { display: grid; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 99px; background: #eef6ff; color: #2c6fb0; font-size: 14px; font-weight: 800; }
.chip.gold { background: #fff3cc; color: #9a6a00; }
.chip.green { background: #e4f7e8; color: #1f7a43; }
.code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 800; letter-spacing: .12em; font-size: 20px; background: #fff; border: 2px dashed var(--ink-soft); padding: 4px 12px; border-radius: 12px; }

/* geri bildirim */
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 16px; z-index: 50; max-width: calc(100% - 32px); text-align: center; animation: toastUp .25s; }
.empty { text-align: center; color: var(--ink-soft); padding: 10px; display: grid; gap: 8px; justify-items: center; }
.loading { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.sheet-bg { position: fixed; inset: 0; background: rgba(43, 58, 85, .45); z-index: 40; display: grid; place-items: end center; animation: fade .2s; }
.sheet { width: min(100%, 560px); background: var(--paper); border-radius: 26px 26px 0 0; padding: 20px max(18px, env(safe-area-inset-left, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; max-height: 92vh; overflow-y: auto; animation: sheetUp .25s; }
.sheet h2 { margin: 0; font-family: var(--f-display); font-size: 24px; }

footer.mini { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px)); }

@keyframes toastUp { from { transform: translate(-50%, 30px); opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
