:root {
    color-scheme: dark;
    font-family: "Times New Roman", Times, serif;
    color: #f5f3ff;
    background: #080526;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    line-height: 1.45;
}

a { color: #76e8ff; text-decoration: underline; text-underline-offset: 2px; }
a:visited { color: #d7a0ff; }
a:hover { color: #ffff5d; }
a:focus-visible { outline: 3px dashed #ffff5d; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
.skip-link { position: absolute; top: -100px; padding: 12px; background: #000; z-index: 2; }
.skip-link:focus { top: 0; }
.outer-caption {
    margin: 0 auto 12px;
    text-align: center;
    font: 10px/1.5 "Courier New", monospace;
    letter-spacing: 1.6px;
    color: #b6a6d9;
}

.browser-window {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    width: 100%;
    padding: 4px;
    background: #c0c0c0;
    border: 3px outset #ededed;
}
.title-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 8px;
    color: white;
    background: linear-gradient(90deg, #000080, #294cb7);
    font: bold 12px/1.4 Arial, sans-serif;
}
.window-buttons { flex-shrink: 0; color: #111; background: #c0c0c0; padding: 0 7px; border: 2px outset white; }
.browser-toolbar { display: flex; align-items: center; }
.browser-controls { flex: 1; min-width: 0; }
.browser-throbber { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; margin: 4px 8px 8px 0; overflow: hidden; border: 3px inset #eee; background: #110c38; }
.browser-throbber::before { content: ""; position: absolute; inset: -12px; background-image: radial-gradient(circle, #c4cdff 0 1px, transparent 1.5px); background-size: 13px 17px; opacity: 0.35; }
.browser-throbber img { position: relative; width: 42px; height: 42px; object-fit: contain; }
.is-loading .browser-throbber img { animation: lunchbox-loading 900ms ease-in-out infinite; }
.is-loading .browser-throbber::before { animation: lunchbox-stars 900ms linear infinite; }
@keyframes lunchbox-loading {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    30% { transform: translateY(-4px) rotate(8deg); }
    60% { transform: translateY(1px) rotate(-4deg); }
}
@keyframes lunchbox-stars {
    from { transform: translate(0, 0); }
    to { transform: translate(-13px, 17px); }
}
.browser-menu { display: flex; flex-wrap: wrap; gap: 18px; padding: 7px 10px; }
.browser-menu a { font: 12px Arial, sans-serif; color: #111; text-decoration: none; }
.browser-menu a span { text-decoration: underline; }
.browser-menu a:hover { color: #000080; }
.address-bar { display: flex; align-items: center; gap: 8px; padding: 0 8px 8px; font: 12px Arial, sans-serif; color: #222; }
.address-value { min-width: 0; flex: 1; overflow-wrap: anywhere; padding: 5px 7px; border: 2px inset #eee; color: #111; background: white; }
.web-page {
    flex: 1;
    padding: 28px 28px 20px;
    background-color: #110c38;
    background-image:
        radial-gradient(circle at 7px 11px, #b5c4ff 0 1px, transparent 1.5px),
        radial-gradient(circle at 49px 37px, #8d72cf 0 1px, transparent 1.5px),
        radial-gradient(circle at 23px 61px, #fff 0 0.6px, transparent 1.1px);
    background-size: 91px 83px, 137px 123px, 67px 103px;
    border: 2px inset #eee;
}
.web-page > * { max-width: 1000px; margin-inline: auto; }
.masthead { text-align: center; }
.welcome-label { color: #7bf3db; font: bold 11px/1.5 "Courier New", monospace; letter-spacing: 1.5px; }
.masthead h1 { max-width: 730px; margin: 18px auto 8px; }
.studio-label { color: #fff75a; font: bold 21px/1.3 Georgia, serif; margin-bottom: 14px; text-shadow: 2px 2px #a400a4; }
.tagline { font-size: 16px; margin-bottom: 20px; color: #dcd4f2; }
.rainbow-rule { height: 5px; background: linear-gradient(90deg, #ff4d90, #ffc841, #faff71, #4bffc5, #5baaff, #c56aff, #ff4d90); border-bottom: 1px solid #000; }
.page-columns { display: grid; grid-template-columns: 172px minmax(0, 1fr); align-items: start; gap: 26px; margin-top: 24px; }
.sidebar h2 { font: bold 11px/1.4 "Courier New", monospace; letter-spacing: 0.5px; }
.directory { padding: 3px; background: #c0c0c0; border: 3px outset #eee; }
.directory h2 { margin: 0; padding: 7px 3px; text-align: center; background: #000080; color: white; }
.directory a { display: block; padding: 10px 6px; border-bottom: 1px solid #8e8e8e; border-top: 1px solid #eee; color: #000080; font: bold 12px/1.3 Arial, sans-serif; }
.directory a:hover { background: #ddd; }
.directory a span { color: #9e009e; }
.dino-box { margin-top: 22px; padding: 12px 10px 8px; border: 1px solid #75639b; text-align: center; background: #1d1546; }
.dino-box h2 { color: #b5ffa0; }
.dino-box img { width: 140px; margin: 0 auto 8px; }
.dino-box p { margin-bottom: 4px; font: 11px/1.5 "Courier New", monospace; color: #d3c5e8; }
.web-badge { display: flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; margin: 20px auto 8px; padding: 4px 7px; color: #000; background: #c8f545; border: 3px outset #e6ff8e; font: 9px/1.1 Arial, sans-serif; }
.web-badge b { font-size: 21px; }
.sidebar-note { text-align: center; color: #b6a6d9; font: 10px "Courier New", monospace; }
.welcome-note { padding: 16px 20px 12px; color: #252047; background: #fff9d8; border: 3px double #b7a3e7; }
.welcome-note h2 { margin-bottom: 7px; color: #720079; font: bold 24px/1.2 "Comic Sans MS", "Trebuchet MS", sans-serif; }
.welcome-note p { font-size: 15px; margin-bottom: 10px; }
.welcome-note .bookmark-note { margin-bottom: 0; font-weight: bold; font-size: 12px; text-align: center; color: #633186; }
.section-heading { display: flex; justify-content: center; align-items: center; gap: 15px; margin: 24px 0 16px; color: #ffff5d; font: bold 23px/1.3 "Courier New", monospace; text-shadow: 2px 2px #a400a4; }
.section-heading span { font-size: 18px; color: #ff7fda; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.game-card { display: flex; flex-direction: column; align-items: stretch; padding: 12px; background: #211747; border: 3px ridge #8773b5; text-align: center; }
.game-title { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 33px; margin-bottom: 10px; }
.game-title h3 { color: #8bf2ff; font: bold 20px/1.2 "Comic Sans MS", "Trebuchet MS", sans-serif; margin: 0; }
.new-label { padding: 2px 4px; transform: rotate(-8deg); color: #e00030; background: #ffff00; font: bold 10px Arial, sans-serif; }
.game-image { display: block; border: 2px inset #aea0c5; background: #080526; }
.game-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.game-card p { flex: 1; margin: 12px 0 14px; color: #f1eafa; font-size: 14px; }
.bevel-button { display: block; padding: 9px 5px; border: 3px outset #f0f0f0; background: #c0c0c0; color: #000080; text-decoration: none; font: bold 11px/1.4 Arial, sans-serif; }
.bevel-button:visited { color: #000080; }
.bevel-button:hover { color: #73007d; background: #eee; }
.bevel-button:active { border-style: inset; }
.coming-soon { padding: 11px 2px; border: 1px dashed #ffd863; color: #ffd863; font: bold 10px/1.4 "Courier New", monospace; background: repeating-linear-gradient(-45deg, transparent 0 8px, #ffd86309 8px 16px); }
.lunchbox-link { margin-top: 18px; text-align: center; font-size: 14px; }
.lunchbox-link > span { font-size: 23px; color: #fff75a; vertical-align: middle; padding-right: 4px; }
.lunchbox-toolbar { padding: 7px 10px; margin-bottom: 16px; border: 2px inset #ddd; background: #c0c0c0; color: #222; font: 11px/1.5 "Courier New", monospace; }
.lunchbox-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lunchbox-card { margin: 0; padding: 10px; border: 3px ridge #8773b5; background: #211747; text-align: center; }
.lunchbox-card a { display: block; border: 2px inset #aea0c5; background: #110c38; }
.lunchbox-card a:hover { border-color: #ffff5d; }
.lunchbox-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.lunchbox-card figcaption { padding-top: 10px; color: #8bf2ff; font: bold 13px/1.4 "Courier New", monospace; overflow-wrap: anywhere; }
.page-footer { margin-top: 30px; text-align: center; }
.page-footer > p { margin: 17px 0; font-size: 13px; color: #d3c5e8; }
.badge-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.footer-badge { display: flex; flex-direction: column; justify-content: center; min-width: 104px; min-height: 34px; padding: 3px 7px; border: 2px outset #b6b5c9; background: #bbb; color: #141441; font: 8px/1.2 Arial, sans-serif; }
.footer-badge b { font-size: 11px; }
.page-footer .copyright { margin-bottom: 0; font: 10px/1.5 "Courier New", monospace; }
.status-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-top: 4px; padding: 3px 7px; color: #333; border: 2px inset #ddd; font: 10px/1.4 Arial, sans-serif; }
.construction-note { font: 9px/1.5 "Courier New", monospace; }

@media (max-width: 760px) {
    .lunchbox-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .web-page { padding: 20px 15px; }
    .page-columns { grid-template-columns: 1fr; gap: 20px; }
    .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .directory { grid-column: 1 / -1; }
    .directory a { display: inline-block; margin: 4px 2px; padding: 7px; border: 0; }
    .dino-box { grid-row: span 2; margin: 0; }
    .web-badge { align-self: end; margin: 10px auto 0; }
    .sidebar-note { margin-top: 0; }
    .studio-label { font-size: 16px; }
    .welcome-label { font-size: 9px; }
}

@media (max-width: 480px) {
    .title-bar { font-size: 10px; }
    .window-buttons { display: none; }
    .browser-menu { gap: 12px; }
    .browser-menu a { font-size: 11px; }
    .address-bar { font-size: 10px; }
    .game-grid { grid-template-columns: 1fr; }
    .lunchbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .lunchbox-card { padding: 7px; }
    .game-card { max-width: 320px; width: 100%; margin: auto; }
    .section-heading { font-size: 20px; gap: 8px; }
    .tagline { font-size: 14px; }
    .welcome-note { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .is-loading .browser-throbber img, .is-loading .browser-throbber::before { animation: none; }
    .is-loading .browser-throbber { border-color: #000080; }
}
