#games, #classroom { scroll-margin-top: 84px; }
.note-box .eyebrow { color: #c0341a; }
.sec-blue .note-box .act a:not(.act-main) { color: var(--paper); }
@media (max-width: 820px) { .sec-blue .note-box .eyebrow { color: var(--knot); } }

.mast-bar { position: relative; border-radius: 24px; border-color: rgb(255 255 255 / .1); background: rgb(14 15 36 / .78); box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 16px 40px rgb(0 0 0 / .34); }
.mast-bar::after { content: ''; position: absolute; left: 24px; right: 24px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--times) 0 48%, var(--knot) 48% 52%, var(--plus) 52%); opacity: .9; pointer-events: none; }
.mast-links { gap: 2px; padding: 4px; border-radius: 16px; background: rgb(255 255 255 / .055); }
.mast-links > li > a { min-height: 40px; padding: 0 14px; border-radius: 12px; color: var(--paper); font: 800 .95rem/1 var(--display); letter-spacing: -.012em; }
.mast-links > li:hover > a, .mast-links > li:focus-within > a { background: rgb(255 255 255 / .12); color: var(--paper); }
.mast-play { border-radius: 15px; box-shadow: 0 8px 24px rgb(255 214 10 / .24); }
.has-drop { position: relative; }
.has-drop > a svg, .menu-sub summary svg { width: 15px; height: 15px; margin-left: 5px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.has-drop:hover > a svg, .has-drop:focus-within > a svg, .menu-sub[open] summary svg { transform: rotate(180deg); }
.drop { position: absolute; left: 50%; top: 100%; z-index: 50; width: 360px; padding-top: 14px; visibility: hidden; opacity: 0; transform: translate(-50%, 8px) scale(.985); transform-origin: 50% 0; transition: opacity .16s, transform .16s, visibility .16s; }
.drop-wide { width: 580px; left: 0; transform: translate(0, 8px) scale(.985); transform-origin: 0 0; }
.drop-mid { width: 420px; }
.has-drop:hover .drop, .has-drop:focus-within .drop { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.has-drop:hover .drop-wide, .has-drop:focus-within .drop-wide { transform: translate(0, 0); }
.drop-in { padding: 10px; border: 1px solid rgb(255 255 255 / .12); border-radius: 22px; background: #12132e; box-shadow: 0 24px 60px rgb(0 0 0 / .5); }
.mm { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mast .mm a { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 62px; padding: 8px 10px; border-radius: 15px; color: var(--paper); text-decoration: none; transition: background-color .14s; }
.mast .mm a:hover { background: rgb(255 255 255 / .08); color: var(--paper); }
.mm i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--times); color: var(--ink); font: 800 1.08rem/1 var(--display); font-style: normal; letter-spacing: -.03em; }
.mm li:nth-child(3n+2) i { background: var(--plus); color: #fff; }
.mm li:nth-child(3n) i { background: var(--knot); }
.mm span { min-width: 0; }
.mm b { display: block; font: 800 .99rem/1.2 var(--display); letter-spacing: -.014em; }
.mm small { display: block; margin-top: 2px; color: var(--soft); font-size: .84rem; line-height: 1.3; }
.mast .mm-plain a { min-height: 42px; padding: 6px 10px; border-radius: 12px; }
.mm-plain b { font-size: .95rem; }
.mm-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mm-h { margin: 6px 10px 6px; color: var(--knot); font: 800 .74rem/1.2 var(--display); letter-spacing: .09em; text-transform: uppercase; }

.mast-icon .b1, .mast-icon .b2, .mast-icon .b3 { transform-box: fill-box; transform-origin: center; transition: transform .2s, opacity .15s; }
.mast-menu[open] .b1 { transform: translateY(5px) rotate(45deg); }
.mast-menu[open] .b2 { opacity: 0; }
.mast-menu[open] .b3 { transform: translateY(-5px) rotate(-45deg); }

.mast-pop-sheet { display: flex; flex-direction: column; gap: 4px; }
.mast-menu .mast-pop { left: 0; right: 0; width: auto; height: calc(100dvh - 92px); padding: 14px; overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; background: #0f1029; }
.menu-search { margin-bottom: 4px; }
.m-play { display: flex; align-items: center; justify-content: center; flex: none; min-height: 54px; border-radius: 16px; background: var(--knot); color: var(--ink); font: 800 1.06rem/1 var(--display); text-decoration: none; }
.m-play:hover { color: var(--ink); }
.menu-sub summary, .m-link { display: flex; align-items: center; justify-content: space-between; flex: none; min-height: 62px; padding: 0 6px; border-bottom: 1px solid rgb(255 255 255 / .09); color: var(--paper); font: 800 1.42rem/1 var(--display); letter-spacing: -.028em; text-decoration: none; cursor: pointer; list-style: none; }
.m-link:hover { color: var(--paper); }
.menu-sub summary::-webkit-details-marker { display: none; }
.menu-sub summary svg { width: 20px; height: 20px; }
.menu-sub { flex: none; }
.menu-sub > ul, .menu-sub > .mm-cols { padding: 8px 0; }
@media (max-width: 820px) { html:has(.mast-menu[open]) { overflow: hidden; } }
@media (max-width: 520px) { .menu-sub .mm-2 { grid-template-columns: minmax(0, 1fr); } }

.site-footer .foot-end { margin: 0; padding-block: 22px; color: var(--soft); text-align: center; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .drop, .drop-wide { transform: none; } }
