/* Round 11 in the hub: play limits, the grown-ups' corner links, and the child's "the lantern sleeps" screen. */
.limits h2, .corner h2 { display: flex; gap: 8px; align-items: center; }
.limits h2 .ic { color: var(--violet); }
.limgrid { display: grid; gap: 12px; margin: 12px 0; }
.limgrid label { display: grid; gap: 6px; font-weight: 700; }
.limgrid label.sw { display: flex; gap: 10px; align-items: center; }
.limgrid .row { display: flex; gap: 12px; align-items: center; }
.limgrid input[type=range] { flex: 1; accent-color: var(--violet); min-height: 32px; }
.limgrid #limDv { font-family: var(--font); font-weight: 700; font-size: 22px; min-width: 40px; text-align: center; color: var(--night); }
.limgrid .times { display: flex; gap: 14px; flex-wrap: wrap; }
.limgrid .times label { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.limgrid input[type=time] { min-height: 44px; padding: 6px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 600 16px var(--f-ui); color: var(--ink); }
.limits .wtog { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.limits .wtog .chip { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.limits .renew { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .limits .renew a { color: inherit; }
#limLeft { display: flex; gap: 6px; align-items: center; }
.corner .cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.corner .cl { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border-radius: 18px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; text-align: center; box-shadow: 0 2px 0 var(--line); transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.corner .cl:hover { transform: translateY(-3px); } .corner .cl .ic { width: 26px; height: 26px; color: var(--violet); }
@media (max-width: 420px) { .corner .cgrid { grid-template-columns: repeat(2, 1fr); } }
.sleep { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 32px 20px; color: #fff7ea; position: relative; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #2c2a73 0%, #14143a 70%); }
.sleep h1 { font-family: var(--font); font-weight: 700; font-size: 36px; margin: 6px 0 0; color: #ffe39a; }
.sleep p { font-size: 20px; max-width: 26ch; margin: 0 0 8px; color: #e6e3ff; }
.sleep .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.sleep .btn.ghost { color: #fff7ea; border-color: rgba(255,255,255,.35); }
.sleep-lamp { position: relative; width: 180px; height: 180px; animation: sway 5s ease-in-out infinite; transform-origin: 50% 0; }
.sleep-lamp img { width: 100%; height: 100%; object-fit: contain; filter: saturate(.55) brightness(.75) drop-shadow(0 0 30px rgba(255, 201, 77, .25)); }
.sleep-lamp .zz { position: absolute; top: -6px; inset-inline-end: -14px; color: #ffe39a; animation: zz 3.2s ease-in-out infinite; }
.sleep-lamp .zz .ic { width: 38px; height: 38px; }
.sleep-sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .7; animation: twk 3s ease-in-out infinite alternate; }
.sleep-sky i:nth-child(1) { top: 12%; left: 14%; } .sleep-sky i:nth-child(2) { top: 22%; left: 78%; animation-delay: -1s; } .sleep-sky i:nth-child(3) { top: 64%; left: 9%; animation-delay: -2s; } .sleep-sky i:nth-child(4) { top: 8%; left: 52%; animation-delay: -.5s; } .sleep-sky i:nth-child(5) { top: 74%; left: 86%; animation-delay: -1.6s; }
@keyframes sway { 50% { transform: rotate(3deg); } } @keyframes zz { 50% { transform: translateY(-8px) rotate(-8deg); opacity: .6; } } @keyframes twk { to { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .sleep-lamp, .sleep-lamp .zz, .sleep-sky i { animation: none; } }
