/* Gilrobomaster theme — night track, purple & gold */
@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url(../fonts/fredoka-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url(../fonts/fredoka-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url(../fonts/fredoka-latin-700-normal.woff2) format("woff2"); }

:root {
	--night: #0b1338; --deep: #101b4d; --panel: #16235e; --panel-2: #1d2c72; --line: rgba(148, 163, 255, .18);
	--ink: #eef2ff; --muted: #a9b4e8; --gold: #fbbf24; --gold-dk: #b45309; --purple: #7c3aed; --purple-lt: #a78bfa;
	--green: #22c55e; --sky: #38bdf8; --red: #ef4444; --radius: 18px; --wrap: 1180px;
	--display: "Fredoka", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fde68a; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text, .gmt-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gmt-skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 10px; }
.gmt-wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
h1, h2, h3, .gmt-brand__name, .gmt-btn, .gmt-kicker { font-family: var(--display); letter-spacing: .2px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }

/* ── buttons: chunky like the in-game ones ── */
.gmt-btn, .gmt-content button, .gmt-content input[type=submit] {
	display: inline-flex; align-items: center; gap: .45em; border: 0; cursor: pointer; text-decoration: none;
	font: 600 1rem/1 var(--display); padding: .8em 1.25em; border-radius: 14px; color: #fff; background: var(--purple);
	box-shadow: 0 5px 0 #4c1d95, 0 10px 24px rgba(0, 0, 0, .25); transition: transform .12s, box-shadow .12s, filter .12s;
}
.gmt-btn:hover, .gmt-content button:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }
.gmt-btn:active, .gmt-content button:active { transform: translateY(3px); box-shadow: 0 2px 0 #4c1d95; }
.gmt-btn--gold { background: linear-gradient(#fcd34d, var(--gold)); color: #3b2300; box-shadow: 0 5px 0 var(--gold-dk), 0 12px 28px rgba(251, 191, 36, .25); }
.gmt-btn--gold:hover { color: #3b2300; }
.gmt-btn--gold:active { box-shadow: 0 2px 0 var(--gold-dk); }
.gmt-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(238, 242, 255, .35); }
.gmt-btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--gold); }
.gmt-btn--lg { font-size: 1.15rem; padding: .95em 1.5em; border-radius: 16px; }
.gmt-btn--sm { font-size: .95rem; padding: .6em 1em; border-radius: 12px; box-shadow: 0 4px 0 var(--gold-dk); }

/* ── header ── */
.gmt-header { position: sticky; top: 0; z-index: 40; background: rgba(11, 19, 56, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .gmt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gmt-header { top: 46px; } }
.gmt-header__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.gmt-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.gmt-brand__mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font: 700 1.25rem var(--display); color: #3b2300; background: linear-gradient(135deg, #fde68a, var(--gold)); box-shadow: 0 3px 0 var(--gold-dk); transform: rotate(-6deg); }
.gmt-brand__name { font-size: 1.35rem; font-weight: 700; }
.gmt-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.gmt-menu { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.gmt-menu a { display: block; padding: .5em .8em; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; }
.gmt-menu a:hover, .gmt-menu .current-menu-item > a { color: var(--ink); background: rgba(255, 255, 255, .07); }
.gmt-nav__cta { display: flex; align-items: center; gap: 14px; }
.gmt-link-muted { color: var(--muted); text-decoration: none; font-weight: 600; }
.gmt-burger { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.gmt-burger span:not(.screen-reader-text) { display: block; width: 24px; height: 3px; margin: 4px 0; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
@media (max-width: 900px) {
	.gmt-burger { display: block; }
	.gmt-nav { position: absolute; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 20px 22px; background: var(--deep); border-bottom: 1px solid var(--line); display: none; }
	.gmt-nav.is-open { display: flex; }
	.gmt-menu { flex-direction: column; }
	.gmt-nav__cta { justify-content: space-between; }
	.gmt-burger[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.gmt-burger[aria-expanded=true] span:nth-child(2) { opacity: 0; }
	.gmt-burger[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── hero: night sky over the track ── */
.gmt-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 120px;
	background: radial-gradient(1200px 520px at 75% 10%, rgba(124, 58, 237, .45), transparent 60%), radial-gradient(800px 400px at 0% 100%, rgba(56, 189, 248, .18), transparent 60%), linear-gradient(180deg, #0b1338, #13205c 70%, #0b1338); }
.gmt-hero__sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .7; animation: gmt-twinkle 3.2s ease-in-out infinite; }
.gmt-hero__sky i:nth-child(1) { top: 12%; left: 8%; } .gmt-hero__sky i:nth-child(2) { top: 22%; left: 46%; animation-delay: .8s; }
.gmt-hero__sky i:nth-child(3) { top: 8%; left: 68%; animation-delay: 1.6s; } .gmt-hero__sky i:nth-child(4) { top: 34%; left: 92%; animation-delay: .4s; }
.gmt-hero__sky i:nth-child(5) { top: 52%; left: 4%; animation-delay: 2.2s; } .gmt-hero__sky i:nth-child(6) { top: 64%; left: 52%; animation-delay: 1.2s; }
@keyframes gmt-twinkle { 50% { opacity: .15; transform: scale(.6); } }
.gmt-hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.gmt-kicker { display: inline-block; margin: 0 0 14px; color: var(--gold); font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; }
.gmt-hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; margin-bottom: 18px; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.gmt-gold { color: var(--gold); display: inline-block; transform: rotate(-3deg); }
.gmt-hero__text { font-size: 1.15rem; color: #d6dcff; max-width: 34em; margin: 0 0 28px; }
.gmt-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 0; }
.gmt-hero__copy .gmt-hero__cta { margin-top: 0; }
.gmt-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.gmt-chips li { padding: .45em .85em; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: #d6dcff; font-size: .9rem; }
.gmt-hero__art img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); animation: gmt-float 7s ease-in-out infinite; }
@keyframes gmt-float { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) { .gmt-hero__grid { grid-template-columns: 1fr; } .gmt-hero__art { order: -1; } }
@media (prefers-reduced-motion: reduce) { .gmt-hero__art img, .gmt-hero__sky i { animation: none; } html { scroll-behavior: auto; } }

/* the finish-line strip used as a divider */
.gmt-track { position: absolute; left: 0; right: 0; bottom: 0; height: 28px;
	background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 28px 28px; opacity: .9; }
.gmt-track--thin { position: relative; height: 14px; background-size: 14px 14px; opacity: .55; }

/* ── sections ── */
.gmt-section { padding: clamp(56px, 8vw, 104px) 0; }
.gmt-h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
.gmt-lede { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.gmt-steps__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.gmt-steps__list li { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.gmt-steps__list h3 { font-size: 1.35rem; margin-top: 10px; }
.gmt-steps__list p { color: var(--muted); margin: 0; }
.gmt-step-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font: 700 1.4rem var(--display); color: #3b2300; background: var(--gold); box-shadow: 0 4px 0 var(--gold-dk); }
.gmt-steps__list li:nth-child(2) .gmt-step-n { background: var(--purple-lt); color: #2e1065; box-shadow: 0 4px 0 #6d28d9; }
.gmt-steps__list li:nth-child(3) .gmt-step-n { background: #4ade80; color: #052e16; box-shadow: 0 4px 0 #15803d; }
@media (max-width: 820px) { .gmt-steps__list { grid-template-columns: 1fr; } }

.gmt-modes { background: linear-gradient(180deg, var(--night), var(--deep)); }
.gmt-modes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
@media (max-width: 820px) { .gmt-modes__grid { grid-template-columns: 1fr; } }
.gmt-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gmt-card--mode img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); transition: transform .4s; }
.gmt-card--mode:hover img { transform: scale(1.03); }
.gmt-card__body { padding: 22px 24px 26px; }
.gmt-card__body h3 { font-size: 1.6rem; margin: 10px 0 8px; }
.gmt-card__body p { color: var(--muted); margin: 0; }
.gmt-tag { display: inline-block; padding: .25em .7em; border-radius: 8px; font: 600 .8rem var(--display); letter-spacing: .5px; text-transform: uppercase; background: rgba(251, 191, 36, .15); color: var(--gold); }
.gmt-tag--purple { background: rgba(167, 139, 250, .18); color: var(--purple-lt); }
.gmt-soon { margin: 26px 0 0; color: var(--muted); }

/* ── gallery ── */
.gmt-gallery__grid { margin-top: 34px; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 18px; }
.gmt-shot { margin: 0; grid-column: span 4; }
.gmt-shot--tall { grid-column: span 2; grid-row: span 2; }
.gmt-shot:nth-child(1) { grid-column: span 8; grid-row: span 2; }
.gmt-shot__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--panel); border-radius: 14px; overflow: hidden; cursor: zoom-in; box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(0, 0, 0, .3); transition: transform .2s, box-shadow .2s; }
.gmt-shot__btn:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--gold), 0 20px 40px rgba(0, 0, 0, .4); }
.gmt-shot__btn img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gmt-shot--tall .gmt-shot__btn img { aspect-ratio: 9 / 18.5; object-position: top; }
.gmt-shot:nth-child(1) .gmt-shot__btn img { aspect-ratio: 16 / 9.6; }
.gmt-shot figcaption { margin-top: 8px; color: var(--muted); font-size: .88rem; line-height: 1.4; }
@media (max-width: 980px) { .gmt-gallery__grid { grid-template-columns: repeat(6, 1fr); } .gmt-shot, .gmt-shot:nth-child(1) { grid-column: span 3; grid-row: auto; } .gmt-shot--tall { grid-column: span 2; grid-row: span 2; } }
@media (max-width: 600px) { .gmt-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .gmt-shot, .gmt-shot:nth-child(1) { grid-column: span 2; } .gmt-shot--tall { grid-column: span 1; grid-row: auto; } }

.gmt-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; grid-template-columns: 64px 1fr 64px; background: rgba(5, 8, 25, .94); padding: 20px; }
.gmt-lightbox[hidden] { display: none; }
.gmt-lightbox figure { margin: 0; text-align: center; max-height: 92vh; }
.gmt-lightbox img { max-width: 100%; max-height: 82vh; margin: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.gmt-lightbox figcaption { margin-top: 12px; color: #d6dcff; }
.gmt-lightbox button { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; font-size: 2rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, .12); }
.gmt-lightbox button:hover { background: var(--purple); }
.gmt-lightbox__close { position: absolute; top: 18px; right: 18px; }

/* ── lecturers ── */
.gmt-teach { background: linear-gradient(180deg, var(--deep), var(--night)); }
.gmt-teach__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.gmt-teach__art { margin: 0; } .gmt-teach__art img { border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 0, .45); transform: rotate(1.5deg); }
@media (max-width: 900px) { .gmt-teach__grid { grid-template-columns: 1fr; } }
.gmt-ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.gmt-ticks li { position: relative; padding: 0 0 14px 38px; color: #d6dcff; }
.gmt-ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(34, 197, 94, .18); color: #4ade80; font-weight: 700; }
.gmt-ticks strong { color: var(--ink); }

/* ── leaderboard ── */
.gmt-board__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .gmt-board__grid { grid-template-columns: 1fr; } }
.gmt-card--board { padding: 24px 28px; }
.gm-board h3 { display: none; }
.gm-board ol { list-style: none; counter-reset: r; margin: 0; padding: 0; }
.gm-board li { counter-increment: r; display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.gm-board li:last-child { border-bottom: 0; }
.gm-board li::before { content: counter(r); flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font: 700 1rem var(--display); background: var(--panel-2); color: var(--ink); }
.gm-board li:nth-child(1)::before { background: var(--gold); color: #3b2300; } .gm-board li:nth-child(2)::before { background: #cbd5e1; color: #1e293b; } .gm-board li:nth-child(3)::before { background: #d97706; color: #fff; }
.gm-board li strong { color: var(--ink); }

.gmt-final { text-align: center; background: radial-gradient(700px 300px at 50% 120%, rgba(251, 191, 36, .25), transparent 70%); }
.gmt-final__in { display: grid; justify-items: center; gap: 14px; }

/* ── inner pages + plugin shortcodes ── */
.gmt-pagehead { position: relative; padding: 56px 0 0; background: linear-gradient(180deg, #13205c, var(--night)); }
.gmt-pagehead__title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 34px; }
.gmt-content { padding: 40px 0 80px; }
.gmt-content > * { max-width: 920px; }
.gmt-content h2, .gmt-content h3, .gmt-content h4 { font-family: var(--display); }
.gmt-content input:not([type]), .gmt-content input[type=text], .gmt-content input[type=search], .gmt-content input[type=password], .gmt-content input[type=email], .gmt-content input[type=url], .gmt-content input[type=number], .gmt-content input[type=file], .gmt-content select, .gmt-content textarea {
	font: inherit; color: var(--ink); background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: .65em .85em; max-width: 100%; }
.gmt-content input:focus, .gmt-content select:focus, .gmt-content textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.gmt-content table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 18px 0; }
.gmt-content th, .gmt-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.gmt-content th { font-family: var(--display); font-weight: 600; color: var(--gold); background: rgba(255, 255, 255, .03); }
.gmt-content tr:last-child td { border-bottom: 0; }
.gmt-content button, .gmt-content input[type=submit] { font-size: .92rem; padding: .6em 1em; border-radius: 11px; box-shadow: 0 4px 0 #4c1d95; }
.gmt-content details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.gmt-content summary { cursor: pointer; font-family: var(--display); }
.gmt-content .gm-msg, .gmt-content p[style*="ecfdf5"] { background: rgba(34, 197, 94, .15) !important; color: #bbf7d0; border-radius: 10px; }
.gmt-content .gm-usage > div > div { background: var(--panel-2) !important; }
.gm-awards { display: flex; flex-wrap: wrap; }

/* full-screen game */
.gmt-gamebox { height: calc(100vh - 68px); height: calc(100dvh - 68px); }
.admin-bar .gmt-gamebox { height: calc(100dvh - 68px - 32px); }
.gmt-gamebox .gm-embed { height: 100% !important; min-height: 0 !important; }
.gmt-gamebox .gm-embed iframe { border-radius: 0 !important; }
.gmt-gamebox > p:last-child { display: none; }
.gmt-fullscreen .gmt-footer { display: none; }

/* ── footer ── */
.gmt-footer { border-top: 1px solid var(--line); background: #080e2b; padding: 44px 0 24px; }
.gmt-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.gmt-footer__tag { color: var(--muted); max-width: 30em; margin: 12px 0 0; font-size: .95rem; }
.gmt-footer__menu { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.gmt-footer__menu a { color: var(--muted); text-decoration: none; }
.gmt-footer__menu a:hover { color: var(--gold); }
.gmt-footer__small { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: #6f7bb5; font-size: .85rem; }
.gmt-footer__small a { color: inherit; }
.gmt-post { padding: 22px 26px; margin-bottom: 18px; } .gmt-meta { color: var(--muted); font-size: .9rem; }
