/* Shared bits for every area page: top bar, area picker, tags. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
body { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Lilita One", "Nunito", sans-serif; font-weight: 400; line-height: 1.05; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.topbar { background: #111; color: #fff; }
.topbar .wrap { display: flex; align-items: center; min-height: 80px; gap: 20px; }
.topbar .logo { line-height: 0; }
.topbar .logo img { height: 56px; width: auto; display: block; }
.topbar .logo.flat img { height: 38px; }
.topbar .right { margin-left: auto; display: flex; gap: 22px; align-items: center; font-weight: 800; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 4px solid #FF2E88; outline-offset: 3px; }

.tag {
  display: inline-block;
  font-family: "Space Mono", monospace; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px; white-space: nowrap;
}
.soon { opacity: .9; }
.soon-note { font-weight: 800; font-size: 15px; margin-top: 26px; }

@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .topbar .wrap { min-height: 66px; }
  .topbar .logo img { height: 40px; }
  .topbar .logo.flat img { height: 27px; }
}

/* Top bar: area picker chip by the logo, teacher links and one Log In button. */
.topbar { position: relative; z-index: 20; }
.topbar summary { list-style: none; cursor: pointer; }
.topbar summary::-webkit-details-marker { display: none; }
.area-pick { position: relative; }
.area-pick > summary {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  border: 3px solid #111; border-radius: 30px; padding: 6px 14px 6px 14px;
  font-weight: 900; font-size: 15px; color: #111; background: var(--chip, #fff);
  box-shadow: 3px 3px 0 rgba(255,255,255,.3);
}
.area-pick > summary:hover { transform: translateY(-1px); }
.area-pick .ar { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid currentColor; transition: transform .15s; }
.area-pick[open] .ar { transform: rotate(180deg); }
.area-pick .short { display: none; }
.a-little { --chip: #FF2E88; } .a-little > summary { color: #fff; }
.a-comic { --chip: #FFE600; }
.a-teen { --chip: #2EE59D; }
.a-sixth { --chip: #7C4DFF; } .a-sixth > summary { color: #fff; }
.a-teachers { --chip: #fff; }
.area-menu {
  position: absolute; top: calc(100% + 12px); left: 0; width: 290px;
  background: #fff; color: #111; border: 3px solid #111; border-radius: 16px; box-shadow: 6px 6px 0 #111; padding: 8px;
  font-family: "Nunito", system-ui, sans-serif;
}
.area-menu p { font: 700 12px "Space Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: #666; padding: 8px 10px 4px; }
.area-menu ul { list-style: none; }
.area-menu li a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; font-weight: 900; font-size: 16px; }
.area-menu li a small { display: block; font-weight: 700; font-size: 13px; color: #666; }
.area-menu li a:hover, .area-menu li a[aria-current] { background: #f2f2f2; }
.area-menu li a[aria-current]::after { content: "\2713"; margin-left: auto; font-size: 18px; }
.area-menu .dot { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #111; flex: none; }
.area-menu [data-area="little"] .dot { background: #FF2E88; }
.area-menu [data-area="comic"] .dot { background: #FFE600; }
.area-menu [data-area="teen"] .dot { background: #2EE59D; }
.area-menu [data-area="sixth"] .dot { background: #7C4DFF; }
.area-menu [data-area="teachers"] .dot { background: #fff; }
.area-menu .all { display: block; border-top: 2px solid #eee; margin: 6px 4px 0; padding: 10px 6px 4px; font-weight: 800; font-size: 14px; color: #555; }
.area-menu .all:hover { color: #111; text-decoration: underline; }

.topbar .right { margin-left: auto; display: flex; gap: 22px; align-items: center; font-weight: 800; }
.topbar .tnav { display: flex; gap: 22px; color: #ddd; }
.topbar .tnav a:hover, .topbar .tnav a[aria-current] { color: #FFE600; }
.topbar .login {
  border: 3px solid #111; border-radius: 30px; padding: 8px 20px; font-weight: 900; white-space: nowrap;
  background: #FFE600; color: #111; box-shadow: 3px 3px 0 rgba(255,255,255,.35);
}
.topbar .login:hover { background: #fff; }
.topbar .more { display: none; position: static; }
.topbar .more > summary { width: 46px; height: 42px; border: 2px solid #fff; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 22px; line-height: 1; }
.more-menu { position: absolute; top: 100%; left: 0; right: 0; background: #111; border-top: 1px solid #333; padding: 6px 16px 18px; }
.more-menu a { display: block; color: #fff; font-weight: 800; font-size: 18px; padding: 12px 4px; border-bottom: 1px solid #2a2a2a; }
.more-menu a[aria-current] { color: #FFE600; }
.more-menu .login { display: block; text-align: center; margin-top: 14px; border-bottom: 3px solid #111; color: #111; }

@media (max-width: 860px) {
  .topbar .tnav { display: none; }
}
@media (max-width: 700px) {
  .topbar .wrap { gap: 10px; }
  .area-pick > summary { font-size: 13px; padding: 5px 10px; gap: 7px; }
  .area-pick .full { display: none; } .area-pick .short { display: inline; }
  .area-menu { position: fixed; top: 62px; left: 12px; right: 12px; width: auto; }
  .topbar .right > .login { display: none; }
  .topbar .more { display: block; }
}
@media (max-width: 360px) {
  .topbar .logo img { height: 32px; }
}

/* Company line at the foot of every area and game page */
.site-legal { background: #111; color: #aaa; font-family: Nunito, sans-serif; font-size: 13px; line-height: 1.5; padding: 16px 0; margin-top: 40px; }
.site-legal p { margin: 0 auto; }
@media (max-width: 600px) { .site-legal .wrap { padding: 0 18px; } }
