/* Edulin Games v16 — information and Kids' Corner pages.
   Vibrant solid colours with glossy, shiny buttons and cards: royal violet, hot pink,
   sunshine yellow, teal and sky blue on a bright lilac background. */
:root {
    --violet: #5b2ee6; --violet-dark: #3d17b8; --pink: #ff2e7e; --pink-dark: #c80f57;
    --sun: #ffc21a; --sun-dark: #d99a00; --orange: #ff7a1a; --teal: #00b3a4; --teal-dark: #007f74;
    --sky: #1e88ff; --sky-dark: #0a5fc4; --lime: #2fbf55;
    --ink: #1d1640; --muted: #564f7a; --line: #e1dbf5; --white: #fff; --bg: #f4f1ff;
    --gloss: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.08) 48%, rgba(255,255,255,0) 52%);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: radial-gradient(circle at 12% 0%, #ffe3f0 0, transparent 34%), radial-gradient(circle at 95% 10%, #dcf2ff 0, transparent 30%), var(--bg);
       color: var(--ink); font: 500 16px/1.6 'Outfit', system-ui, sans-serif; }
a { color: var(--violet-dark); font-weight: 700; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

/* ── Header: solid violet → pink band with a glossy sheen ── */
.site-head {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding: 10px max(16px, calc((100vw - 1140px) / 2));
    background: var(--gloss), linear-gradient(110deg, var(--violet) 0%, #8a2ee6 55%, var(--pink) 100%);
    box-shadow: 0 8px 24px rgba(61, 23, 184, .28);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 900 24px/1 'Outfit', sans-serif; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.brand-star { width: 44px; height: 44px; background: url('../assets/mascot/edustar-sprites-v10.png') 0 0 / 300% 200% no-repeat; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 4px; }
.site-nav a { padding: 8px 13px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 800; font-size: 14.5px; }
.site-nav a:hover { background: rgba(255,255,255,.18); }
.site-nav a[aria-current="page"] { background: var(--gloss), var(--sun); color: #3a2600; box-shadow: 0 3px 0 var(--sun-dark); }

main { width: min(1140px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 44px; }

/* ── Hero: solid colour block with a shine sweep ── */
.page-hero {
    position: relative; overflow: hidden;
    padding: 34px 32px 30px; border-radius: 30px; margin-bottom: 24px; color: #fff;
    background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 40%), linear-gradient(125deg, #4a1fd6 0%, #7d22e0 45%, #f0206f 100%);
    box-shadow: 0 18px 40px rgba(91, 46, 230, .3), inset 0 -6px 0 rgba(0,0,0,.12);
}
.page-hero::after {
    content: ''; position: absolute; top: -60%; left: -40%; width: 40%; height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); transform: rotate(18deg);
    animation: edu-shine 5.5s ease-in-out infinite;
}
.page-hero h1 { position: relative; margin: 0 0 8px; font: 400 clamp(2.1rem, 5vw, 3.3rem)/1.05 'Fredoka One', 'Outfit', sans-serif; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.lead { position: relative; margin: 0; color: rgba(255,255,255,.94); font-size: 1.14rem; max-width: 800px; }
.lead a { color: #fff; }
@keyframes edu-shine { 0%, 60% { left: -45%; } 100% { left: 130%; } }

/* ── Content bands ── */
.band { margin: 0 0 22px; padding: 24px 26px; border-radius: 24px; background: var(--white); border: 2px solid var(--line); box-shadow: 0 10px 26px rgba(61, 23, 184, .07); }
.band h2 { margin: 0 0 12px; font: 400 1.6rem/1.2 'Fredoka One', 'Outfit', sans-serif; color: var(--violet-dark); }
.band h2 .count { font: 800 .9rem/1 'Outfit', sans-serif; padding: 4px 10px; border-radius: 999px; background: var(--sun); color: #3a2600; vertical-align: middle; }
.band.center { text-align: center; background: transparent; border: 0; box-shadow: none; }
.note { color: var(--muted); font-size: .95rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { position: relative; padding: 20px; border-radius: 20px; background: #fff; border: 2px solid var(--line); display: flex; flex-direction: column; gap: 4px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(61,23,184,.14); }
.card h3 { margin: 6px 0 2px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card-emoji { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; font-size: 28px; color: #fff;
              background: var(--gloss), var(--violet); box-shadow: 0 4px 0 var(--violet-dark); }
.grid .card:nth-child(5n+2) .card-emoji { background: var(--gloss), var(--pink); box-shadow: 0 4px 0 var(--pink-dark); }
.grid .card:nth-child(5n+3) .card-emoji { background: var(--gloss), var(--teal); box-shadow: 0 4px 0 var(--teal-dark); }
.grid .card:nth-child(5n+4) .card-emoji { background: var(--gloss), var(--sun); box-shadow: 0 4px 0 var(--sun-dark); }
.grid .card:nth-child(5n+5) .card-emoji { background: var(--gloss), var(--sky); box-shadow: 0 4px 0 var(--sky-dark); }
.card .tag, .tag { margin-top: 6px; align-self: flex-start; display: inline-block; padding: 2px 11px; border-radius: 999px; background: #e7f1ff; color: #0a4fa8; font-size: .8rem; font-weight: 800; }
.card-link { margin-top: auto; padding-top: 8px; text-decoration: none; color: var(--pink-dark); }
.steps, .ticks { margin: 0 0 10px; padding-left: 22px; }
.steps li, .ticks li { margin: 7px 0; }
.ticks { list-style: none; padding-left: 0; }
.ticks li::before { content: '✓'; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--lime); color: #fff; font-size: 13px; font-weight: 900; }

/* ── Glossy buttons ── */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 24px; margin: 4px 4px 4px 0;
       border-radius: 999px; background: var(--gloss), var(--pink); color: #fff; text-decoration: none; font-weight: 900; letter-spacing: .01em;
       box-shadow: 0 5px 0 var(--pink-dark), 0 12px 22px rgba(200, 15, 87, .28); transition: transform .1s ease, box-shadow .1s ease; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink-dark); }
.btn::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .5s ease; }
.btn:hover::after { left: 130%; }
.btn.secondary { background: var(--gloss), var(--sky); box-shadow: 0 5px 0 var(--sky-dark), 0 12px 22px rgba(10, 95, 196, .25); }

/* ── Olympiads ── */
.oly-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.oly-card { padding: 20px; border-radius: 20px; background: #fff; border: 2px solid var(--line); border-top: 6px solid var(--sun); }
.oly-card:nth-child(4n+2) { border-top-color: var(--pink); } .oly-card:nth-child(4n+3) { border-top-color: var(--teal); } .oly-card:nth-child(4n+4) { border-top-color: var(--sky); }
.oly-card h3 { margin: 0 0 4px; font-size: 1.12rem; }
.oly-card p { margin: 0 0 12px; color: var(--muted); font-size: .93rem; }
.class-links { display: flex; flex-wrap: wrap; gap: 6px; }
.class-links a { min-width: 42px; min-height: 38px; display: inline-grid; place-items: center; padding: 4px 11px; border-radius: 999px; background: var(--gloss), #efeaff; color: var(--violet-dark); text-decoration: none; font-weight: 800; font-size: .88rem; box-shadow: 0 3px 0 #cfc3fb; }
.class-links a:hover { background: var(--gloss), var(--violet); color: #fff; box-shadow: 0 3px 0 var(--violet-dark); }

/* ── All games ── */
.game-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.game-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; border: 2px solid var(--line); background: #fff; }
.game-list li a { text-decoration: none; color: var(--ink); }
.game-list li a:hover b { color: var(--pink-dark); }
.game-list li p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.game-list .card-emoji { flex: 0 0 46px; width: 46px; height: 46px; font-size: 24px; border-radius: 14px; }

/* ── About ── */
.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 190px 1fr; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #faf8ff; border: 1px solid var(--line); }
.facts dt { font-weight: 900; color: var(--violet-dark); }
.facts dd { margin: 0; }

/* ── FAQ ── */
.faq details { border-bottom: 2px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 13px 0; font-weight: 800; font-size: 1.06rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--violet); color: #fff; font-size: 1.1rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; background: var(--pink); }
.faq p { margin: 0 0 14px; color: var(--muted); }

.prose h2 { margin-top: 24px; font-size: 1.3rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }

/* ── Kids' Corner ── */
.corner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 14px; }
.corner-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; border: 2px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; transition: transform .15s ease, box-shadow .15s ease; }
.corner-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(61,23,184,.16); }
.corner-media { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--gloss), var(--sky); overflow: hidden; }
.corner-artwork .corner-media { background: var(--gloss), var(--pink); }
.corner-writing .corner-media { background: var(--gloss), var(--teal); }
.corner-media img { width: 100%; height: 100%; object-fit: cover; }
.gallery .corner-media img { object-fit: contain; background: #fff; }
.corner-emoji { font-size: 64px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.corner-text { display: grid; gap: 3px; padding: 14px 16px 16px; }
.corner-text b { font-size: 1.08rem; line-height: 1.25; }
.corner-text small { color: var(--pink-dark); font-weight: 800; }
.corner-text span { color: var(--muted); font-size: .93rem; }
.corner-empty { padding: 18px; border-radius: 16px; background: #fff8e0; border: 2px dashed var(--sun); }
.corner-empty p { margin: 0 0 8px; }
.corner-meta { font-weight: 800; }
.corner-item figure { margin: 0 0 18px; text-align: center; }
.corner-item figure img { max-width: 100%; max-height: 70vh; border-radius: 18px; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.corner-item p, .corner-item li { font-size: 1.12rem; line-height: 1.75; }
.corner-item h3 { font: 400 1.35rem/1.2 'Fredoka One', sans-serif; color: var(--violet-dark); margin: 22px 0 6px; }
.corner-item .lead-in { font-size: 1.2rem; font-weight: 700; color: var(--violet-dark); }
.corner-item.poem p { font-family: Georgia, 'Times New Roman', serif; font-size: 1.22rem; font-style: italic; text-align: center; }
.corner-back { margin-top: 22px; }
.corner-share { border-color: var(--sun); background: linear-gradient(180deg, #fffaf0, #fff); }

/* ── Footer: solid deep violet ── */
.site-foot { padding: 28px 16px 40px; text-align: center; color: #e8e2ff; background: linear-gradient(180deg, #2a1470, #1b0c4d); font-size: .93rem; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; }
.site-foot a { color: #ffd84d; text-decoration: none; font-weight: 800; }
.site-foot a:hover { text-decoration: underline; }
.site-foot p { margin: 4px 0; }

@media (max-width: 640px) {
    .site-head { padding: 8px 14px; }
    .site-nav a { padding: 6px 9px; font-size: 13.5px; }
    .page-hero, .band { padding: 20px 16px; border-radius: 20px; }
    .facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .page-hero::after, .btn::after { animation: none; transition: none; display: none; } }
