/* Lakwet Core: front-end styles. Load Fredoka (or Baloo 2) in your theme for the mockup look. */
.lw-wrap {
	--lw-orange: #ff6a13;
	--lw-yellow: #ffeb3b;
	--lw-indigo: #3f3b9c;
	--lw-ink: #1a1a2e;
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 16px;
	font-family: "Fredoka", "Baloo 2", "Poppins", system-ui, sans-serif;
	color: var(--lw-ink);
	box-sizing: border-box;
}
.lw-wrap *, .lw-wrap *::before, .lw-wrap *::after { box-sizing: inherit; }
.lw-center { text-align: center; }
.lw-title { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; margin: 0 0 20px; text-align: center; }
.lw-orange { color: var(--lw-orange); }

/* Notices */
.lw-notice { padding: 12px 16px; border-radius: 12px; margin: 0 0 18px; font-weight: 500; }
.lw-ok  { background: #e6f9e9; color: #14632a; }
.lw-err { background: #fff0e6; color: #a53b00; }

/* Buttons */
.lw-btn {
	display: inline-block; border: 0; cursor: pointer; text-decoration: none;
	background: var(--lw-orange); color: #fff; font: inherit; font-weight: 600;
	padding: 12px 28px; border-radius: 999px; transition: transform .15s ease, opacity .15s ease;
}
.lw-btn:hover { transform: translateY(-1px); opacity: .92; color: #fff; }
.lw-btn-dark { background: #222; }
.lw-btn-danger { background: #d32f2f; }
.lw-btn-small { padding: 8px 18px; font-size: .9rem; }

/* Profile picker */
.lw-picker { background: var(--lw-yellow); border-radius: 24px; }
.lw-cards { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin: 28px 0; }
.lw-card-form { margin: 0; }
.lw-card {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	width: 180px; padding: 20px 12px; border: 0; border-radius: 18px; cursor: pointer;
	background: var(--lw-indigo); color: #fff; font: inherit; text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
.lw-card:hover, .lw-card:focus-visible { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.25); color: #fff; }
.lw-card-parent { background: #1b1bff; }
.lw-avatar { display: grid; place-items: center; width: 110px; height: 110px; background: #fff; border-radius: 16px; font-size: 3.4rem; }
.lw-name { font-size: 1.5rem; font-weight: 700; }
.lw-age { opacity: .8; font-weight: 500; }

/* Create form */
.lw-form { max-width: 560px; margin: 0 auto; }
.lw-form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.lw-form input[type="text"], .lw-form input[type="password"], .lw-form input[type="number"] {
	width: 100%; padding: 12px 14px; font: inherit; border: 2px solid #c9c9ff; border-radius: 10px; background: #fff;
}
.lw-form fieldset { border: 0; padding: 0; margin: 22px 0 0; }
.lw-form legend { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; padding: 0; }
.lw-tiles, .lw-chars { display: flex; flex-wrap: wrap; gap: 12px; }
.lw-tiles legend, .lw-chars legend { width: 100%; }
.lw-tile, .lw-char { position: relative; margin: 0 !important; cursor: pointer; }
.lw-tile input, .lw-char input { position: absolute; opacity: 0; inset: 0; }
.lw-tile span, .lw-char span {
	display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700;
	padding: 14px 22px; border-radius: 16px 4px 16px 4px; border: 3px solid transparent;
}
.lw-tile b, .lw-char b { font-size: 1.8rem; font-weight: 400; }
.lw-age-4-8 span   { background: #2cff4f; }
.lw-age-9-12 span  { background: #ffeb3b; }
.lw-age-13-17 span { background: #00c8ff; }
.lw-char span { background: #f6f6fb; min-width: 96px; }
.lw-tile input:checked + span, .lw-char input:checked + span { border-color: var(--lw-ink); box-shadow: 0 0 0 3px rgba(0,0,0,.12); }
.lw-tile input:focus-visible + span, .lw-char input:focus-visible + span { outline: 3px solid var(--lw-indigo); outline-offset: 2px; }

/* PIN gate */
.lw-gate { max-width: 380px; margin: 20px auto; text-align: center; }
.lw-pin { text-align: center; letter-spacing: .6em; font-size: 1.6rem !important; max-width: 200px; margin: 0 auto 14px; display: block; }
.lw-forgot { margin-top: 20px; text-align: left; }
.lw-forgot summary { cursor: pointer; text-align: center; color: var(--lw-indigo); }

/* Parent dashboard */
.lw-dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.lw-dash-head .lw-title { text-align: left; margin-bottom: 4px; }
.lw-child { margin: 18px 0; padding: 16px; border-radius: 16px; background: #fff8e1; }
.lw-child-top { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.lw-child-top .lw-avatar { width: 64px; height: 64px; font-size: 2.2rem; border-radius: 12px; }
.lw-bar { height: 10px; background: #222; border-radius: 999px; overflow: hidden; }
.lw-bar span { display: block; height: 100%; border-radius: 999px; }
.lw-bar.is-ok span   { background: #19d43b; }
.lw-bar.is-high span { background: #ffb300; }
.lw-bar.is-full span { background: #ff1744; }
.lw-child-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-top: 14px; }
.lw-child-actions form { display: flex; gap: 10px; align-items: flex-end; margin: 0; }
.lw-child-actions label { margin: 0; font-size: .9rem; }
.lw-child-actions input[type="number"] { width: 110px; margin-top: 4px; }
.lw-pin-form .lw-pin { margin: 0 0 12px; }

/* Time's-up overlay (injected by lakwet.js) */
.lw-timeup {
	position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; text-align: center;
	background: rgba(20, 16, 60, .96); color: #fff; padding: 24px;
	font-family: "Fredoka", "Baloo 2", system-ui, sans-serif;
}
.lw-timeup h2 { font-size: clamp(1.8rem, 5vw, 3rem); margin: 0 0 10px; color: #ffeb3b; }
.lw-timeup p { font-size: 1.2rem; margin: 0 0 24px; }
.lw-timeup a { display: inline-block; background: #ff6a13; color: #fff; text-decoration: none; font-weight: 700; padding: 14px 32px; border-radius: 999px; }

.lw-switch { font-weight: 600; }
