@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Barlow:wght@400;500;600&display=swap');
:root{color-scheme:dark;--bg:#080c12;--panel:#101721;--line:#253345;--blue:#71b9fa;--text:#e4ebf3;--muted:#a0adbe}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:20px}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 Barlow,Arial,sans-serif}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,input:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
h1,h2,h3,p{margin:0}
.header,main,footer{max-width:1200px;margin:auto;padding-inline:36px}
.header{min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:28px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:14px;color:var(--text);font:700 25px 'Barlow Condensed',Arial,sans-serif;white-space:nowrap}
.brand:hover{text-decoration:none}
.brand-symbol{border:2px solid #849bb5;color:var(--blue);padding:0 6px;transform:skew(-8deg);font-size:27px;letter-spacing:-2px}
nav{display:flex;gap:25px;flex-wrap:wrap}
nav a{font-size:13px;color:#b0bfd0}
main{padding-top:38px;padding-bottom:40px}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:18px}
h1{font:600 40px/1.15 'Barlow Condensed',Arial,sans-serif}
.page-heading p{color:var(--muted);margin-top:8px}
.search{display:flex;gap:12px;align-items:center;border:1px solid var(--line);background:#0e1621;padding:0 14px;width:285px;max-width:100%}
.search>span{font-size:25px;color:#95a8bf}
.search input{font:inherit;padding:11px 0;min-width:0;width:100%;color:var(--text);border:0;background:none}
.search input::placeholder{color:#98a7ba}
.availability-note{font-size:12px;color:var(--muted);margin-bottom:25px}
.sections{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
.file-section{min-width:0;border:1px solid var(--line);background:var(--panel)}
.file-section>header{border-bottom:1px solid var(--line);padding:19px 22px;background:linear-gradient(110deg,#14294090,#111b28)}
h2{font:600 27px 'Barlow Condensed',Arial,sans-serif;color:#dcecff}
.file-section>header p{font-size:12px;color:var(--muted);margin-top:5px}
.file-list{padding:0 22px}
.file-row{display:flex;align-items:center;gap:20px;justify-content:space-between;padding:18px 0}
.file-row+.file-row{border-top:1px solid var(--line)}
.file-info{min-width:0}
.file-type{font:10px/1.5 monospace;text-transform:uppercase;letter-spacing:1px;color:var(--blue)}
h3{font-size:14px;font-weight:600;margin-top:4px}
.file-info p{font-size:12px;color:var(--muted);margin-top:4px}
.download,.unavailable{white-space:nowrap;font-size:11px;flex-shrink:0}
.download{border:1px solid #375a7a;padding:7px 10px;background:#152b40}
.download:hover{background:#203e59;text-decoration:none}
.unavailable{color:#9aabbd}
.empty{color:var(--muted);font-size:12px;padding:22px 0}
footer{display:flex;justify-content:space-between;gap:25px;border-top:1px solid var(--line);padding-block:21px;font-size:11px;color:#93a4b8}
footer a{white-space:nowrap}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:800px){.header{align-items:start;flex-direction:column;padding-block:22px;gap:18px}.sections{grid-template-columns:1fr}nav{gap:22px}.header,main,footer{padding-inline:24px}}
@media(max-width:480px){.header,main,footer{padding-inline:18px}.page-heading{align-items:start;flex-direction:column;gap:20px}.search{width:100%}main{padding-top:25px}.file-section>header{padding:16px}.file-list{padding:0 16px}.file-row{gap:12px}.unavailable{font-size:10px}footer{flex-direction:column;gap:12px}nav{gap:18px}nav a{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Original trideo display frame from the supplied HG2 reference. */
body{background:#030609}
.trideo-shell{position:relative;isolation:isolate;max-width:1319px;margin:24px auto;padding-left:69px;padding-right:50px;background:#080c12;min-height:calc(100vh - 48px)}
.trideo-shell::before,.trideo-shell::after{content:"";position:absolute;top:0;bottom:0;pointer-events:none;background-position:left top;background-size:100% auto}
.trideo-shell::before{left:0;width:69px;background-image:url('assets/trideo-left.jpg'),url('assets/trideo-left-extension.jpg');background-repeat:no-repeat,repeat-y}
.trideo-shell::after{right:0;width:50px;background-image:url('assets/trideo-right.jpg'),url('assets/trideo-right-extension.jpg');background-repeat:no-repeat,repeat-y}
.screen-content{min-width:0}
.header{min-height:112px;gap:20px;flex-wrap:wrap;padding-block:16px}
.brand{white-space:normal;font-size:26px;gap:18px}
.brand-logo{width:100px;height:61px;object-fit:contain;flex-shrink:0}
nav{gap:20px}
@media(max-width:1150px){.header{align-items:flex-start;gap:15px}nav{width:100%;padding-left:118px;padding-bottom:3px}}
@media(max-width:800px){.trideo-shell{margin-block:12px;padding-left:40px;padding-right:29px;min-height:calc(100vh - 24px)}.trideo-shell::before{width:40px}.trideo-shell::after{width:29px}.brand{font-size:25px}nav{padding-left:0}.header{gap:18px}}
@media(max-width:480px){.trideo-shell{margin-block:0;padding-left:22px;padding-right:16px;min-height:100vh}.trideo-shell::before{width:22px}.trideo-shell::after{width:16px}.brand{font-size:23px;gap:12px;align-items:center}.brand-logo{width:85px;height:auto}nav{gap:12px 18px}}


/* Complete the reference frame above and below the page content. */
.trideo-shell{--frame-top:clamp(48px,8vw,105px);--frame-bottom:clamp(30px,5vw,62px);padding-top:var(--frame-top);padding-bottom:var(--frame-bottom)}
.trideo-top,.trideo-bottom{position:absolute;left:0;width:100%;display:block;pointer-events:none;z-index:1}
.trideo-top{top:0;height:var(--frame-top)}
.trideo-bottom{bottom:0;height:var(--frame-bottom)}
.trideo-shell::before,.trideo-shell::after{top:var(--frame-top);bottom:var(--frame-bottom)}
.sections{gap:28px}
.file-section{--section-accent:#71b9fa;border-color:#354b63;border-top:3px solid var(--section-accent);box-shadow:0 5px 16px #0003;scroll-margin-top:20px}
#hg2{--section-accent:#8bcbbc}
#editing{--section-accent:#b0a4e0}
#other{--section-accent:#d0b67e}
.file-section>header{border-bottom:1px solid #3b5069;background:linear-gradient(110deg,color-mix(in srgb,var(--section-accent) 16%,#101721),#111b28);padding:18px 22px}
.file-section h2{color:var(--section-accent)}
.file-list{padding:10px}
.file-row{padding:16px 14px;border:1px solid transparent;border-left:2px solid #30435b}
.file-row:nth-child(odd){background:#15202e}
.file-row:nth-child(even){background:#101925}
.file-row+.file-row{margin-top:6px;border-top:1px solid #29394c}
.file-row:hover,.file-row:focus-within{background:#1a2a3c;border-color:#44617e}
.file-type{color:var(--section-accent)}
.empty{padding:18px 14px;background:#131e2b;border-left:2px solid #30435b}
@media(max-width:480px){.file-section>header{padding:16px}.file-list{padding:8px}.file-row{padding:14px 10px}}

/* Site navigation remains outside the game-specific display frame. */
.site-nav{max-width:1319px;margin:0 auto;display:flex;align-items:center;gap:8px 28px;padding:18px 30px;border-bottom:1px solid #2e4054;background:#101721}
.site-nav a{display:block;padding:8px 0;font-size:14px;font-weight:500;color:#bbc9d9;border-bottom:2px solid transparent}
.site-nav a:hover,.site-nav a[aria-current="page"]{color:#83c5ff;border-bottom-color:#83c5ff;text-decoration:none}
.file-row{display:grid;grid-template-columns:80px minmax(0,1fr) auto;justify-content:normal}
.file-preview{display:block;width:80px;height:80px;aspect-ratio:1;object-fit:cover;border:1px solid #3b5771;background:#0a1522}
.placeholder-page{padding-block:48px;min-height:70vh}
.placeholder-page>a{display:inline-block;margin-top:24px}
@media(max-width:800px){.site-nav{width:100%;padding:12px 24px;gap:8px 22px}.site-nav a{font-size:13px}}
@media(max-width:480px){.site-nav{padding:10px 18px;display:grid;grid-template-columns:auto auto;justify-content:space-between;gap:3px 16px}.site-nav a{font-size:12px}.file-row{grid-template-columns:64px minmax(0,1fr);column-gap:12px;row-gap:8px}.file-preview{width:64px;height:64px;grid-column:1;grid-row:1 / span 2;align-self:start}.file-info{grid-column:2;grid-row:1}.file-row>.download,.file-row>.unavailable{grid-column:2;grid-row:2;justify-self:start}.file-row>.download{white-space:normal}}
.file-preview{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#05080d}
.game-logo{display:block;width:100%;height:100%;object-fit:contain}
.game-logo.hg1{position:absolute;width:300px;height:225px;max-width:none;left:-5px;top:15px;object-fit:fill}
.file-size{color:#b1c0d0;font-size:11px;margin-left:12px;white-space:nowrap}
.file-info p{max-width:760px;line-height:1.65;margin-top:7px}
@media(max-width:480px){.game-logo.hg1{width:240px;height:180px;left:-4px;top:12px}.file-size{display:block;margin:3px 0 0}}

/* Studio identity: transparent artwork keeps its white wordmark visible on the dark header. */
.site-nav{flex-wrap:nowrap;min-height:112px;padding:10px 30px}
.site-nav .studio-brand{margin-left:auto;padding:4px 0;flex-shrink:0;border-bottom:0;line-height:0}
.studio-brand img{display:block;width:auto;height:84px;object-fit:contain}
.site-nav .studio-brand:hover{opacity:.85;border-bottom:0}
.studio-page{display:flex;flex-direction:column;align-items:center;text-align:center;gap:32px;padding-block:48px 64px}
.studio-page-logo{display:block;width:300px;max-width:70vw;height:auto}
.studio-page p{max-width:760px;font-size:17px;line-height:1.85;color:var(--text)}
@media(max-width:800px){.site-nav{padding:10px 24px;gap:16px}.studio-brand img{height:76px}.studio-page{padding-block:36px 48px}}
@media(max-width:480px){.site-nav{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px 14px;padding:10px 18px;min-height:96px}.site-nav>a:not(.studio-brand){font-size:11px}.site-nav .studio-brand{margin-left:auto}.studio-brand img{height:68px}.studio-page-logo{width:250px}.studio-page p{font-size:16px;text-align:left}.studio-page{gap:28px}}

/* Shared navigation begins with the Studio Graphene home link. */
.site-nav .studio-brand{margin-left:0;margin-right:12px}
.project-sections{display:grid;gap:28px;margin-top:28px}
.project-section{--project-accent:#71b9fa;border:1px solid #354b63;border-top:3px solid var(--project-accent);background:var(--panel);scroll-margin-top:20px}
#hg2-redux{--project-accent:#8bcbbc}
.project-section>header{padding:20px 24px;background:linear-gradient(110deg,color-mix(in srgb,var(--project-accent) 16%,#101721),#111b28);border-bottom:1px solid #354b63}
.project-section h2{color:var(--project-accent)}
.project-status{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}
.project-copy{padding:24px;font-size:16px;line-height:1.8}
.project-copy p+p{margin-top:14px;color:var(--muted)}
.project-copy .download{display:inline-block;margin-top:22px;font-size:13px}
@media(max-width:480px){.site-nav{flex-wrap:nowrap;gap:14px}.site-nav .studio-brand{margin-left:0;margin-right:0}.project-section>header,.project-copy{padding:18px}.project-copy{font-size:15px}}
