/* ============================================================
   Fascinating Gases — Modern Responsive Stylesheet
   Mobile-first | Flexbox/Grid | CSS Custom Properties
   ============================================================ */

/* --- Fonts --- */
@font-face {
  font-family: "LindeDaxRegWeb";
  src: url("fonts/LindeDaxRegWeb.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LindeDaxSemiLigWeb";
  src: url("fonts/LindeDaxSemiLigWeb.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LindeDaxMedWeb";
  src: url("fonts/LindeDaxMedWeb.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Custom Properties --- */
:root {
  --color-bg: #000;
  --color-text: #fff;
  --color-accent: #009ee0;
  --color-accent-dark: #0d5c91;
  --color-overlay-bg: rgba(0, 0, 0, 0.6);
  --color-panel-bg: rgba(255, 255, 255, 0.9);
  --color-news-bg: rgba(255, 255, 255, 0.65);
  --color-news-border: #80b3ce;
  --color-muted: #505864;

  --font-body: "LindeDaxRegWeb", Arial, Helvetica, sans-serif;
  --font-medium: "LindeDaxMedWeb", Arial, Helvetica, sans-serif;
  --font-light: "LindeDaxSemiLigWeb", Arial, Helvetica, sans-serif;

  --z-bg: 1;
  --z-particle: 2;
  --z-element: 3;
  --z-content: 100;
  --z-header: 1001;
  --z-nav-btn: 1002;
  --z-making-detail: 1010;
  --z-making-detail-active: 1050;
  --z-elec: 1000;
  --z-slider: 1500;
  --z-ele-btn: 2000;
  --z-overlay: 20000;
  --z-overlay-box: 20001;

  --header-height-mobile: 100px;
  --header-height-desktop: 185px;
  --footer-height: 50px;

  --navi-icon-size: 50px;
  --navi-icon-size-desktop: 69px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  height: 100%;
  width: 100%;
}
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 14px/1.5 var(--font-body);
  text-align: center;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.hide { display: none; }
.show { display: block; }

/* --- Background Images --- */
#main-bg {
  height: 100%;
  width: 100%;
}
#bg {
  background: #ccc;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-bg);
  display: none;
}
.bgwidth { width: 100%; height: 120%; }
.bgheight { height: 120%; }
.mobgwidth { width: 100%; height: 100%; }
.mobgheight { height: 100%; }

#makingof-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-bg);
  display: none;
  width: 100%;
  height: 100%;
}

/* --- Particle Canvas --- */
#partikel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-particle);
  display: none;
}

/* --- Directional Navigation Buttons --- */
/* Hidden on mobile, shown on desktop */
#top, #bottom, #left, #right, #make2 {
  display: none;
  cursor: pointer;
  z-index: var(--z-nav-btn);
  position: absolute;
}

/* --- Element Visualization --- */
#element {
  position: fixed;
  z-index: var(--z-element);
  display: none;
  text-align: center;

  /* Mobile: smaller, centered */
  width: 90vw;
  max-width: 800px;
  height: auto;
  aspect-ratio: 800 / 653;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#element h1 {
  position: relative;
  top: 10vw;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}
.elementheader {
  font-weight: lighter;
  font-family: var(--font-medium);
}
#elementcont {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#elementcont.pulsating {
  animation: pulsate 3.6s ease-in-out infinite;
}
@keyframes pulsate {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(12px); }
}
#elementcont img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

#eleBtn {
  position: absolute;
  width: 300px;
  height: 200px;
  top: 50%;
  left: 50%;
  margin-left: -150px;
  margin-top: -100px;
  cursor: pointer;
  z-index: var(--z-ele-btn);
  background-image: url(../img/icons/iebg.png);
}

/* --- Viewport / Section Container --- */
#viewport {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  height: 100%;
  z-index: var(--z-content);
}
#con {
  position: absolute;
  width: 100%;
  top: 0;
  z-index: var(--z-content);
  text-align: left;
}
#makingof, #first, #news {
  position: relative;
  width: 100%;
  min-height: 210px;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
}
#makecontainer, #firstcontainer, #newscontainer {
  width: 100%;
  height: 100%;
  position: absolute;
}
/* --- Header --- */
#static {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-mobile);
  z-index: var(--z-header);
}
#static-head {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  z-index: var(--z-elec);
  display: flex;
  align-items: flex-start;
  padding: 8px 12px;
  gap: 8px;
}

/* Logo */
#static-head #logo {
  flex-shrink: 0;
  border: 0;
}
#static-head #logo img {
  pointer-events: none;
  height: 30px;
  width: auto;
  border: 0;
}

/* Gas Navigation */
#main-navi {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.navi {
  display: inline-block;
}
.navi ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, var(--navi-icon-size));
  gap: 0;
}
.navi ul li {
  margin: 0;
}
.navi ul li:first-child {
  margin-left: 0;
}
.navi ul li a {
  width: var(--navi-icon-size);
  height: var(--navi-icon-size);
  display: block;
  text-decoration: none;
  outline: none;
  background-size: var(--navi-icon-size) auto;
}
/* Gas icon backgrounds */
.navi ul li.h2 a  { background-image: url('../img/icons/navi_h2.png'); }
.navi ul li.he a  { background-image: url('../img/icons/navi_he.png'); }
.navi ul li.n2 a  { background-image: url('../img/icons/navi_n2.png'); }
.navi ul li.o2 a  { background-image: url('../img/icons/navi_o2.png'); }
.navi ul li.ar a  { background-image: url('../img/icons/navi_ar.png'); }
.navi ul li.kr a  { background-image: url('../img/icons/navi_kr.png'); }
.navi ul li.n2o a { background-image: url('../img/icons/navi_n2o.png'); }
.navi ul li.nh3 a { background-image: url('../img/icons/navi_nh3.png'); }
.navi ul li.xe a  { background-image: url('../img/icons/navi_xe.png'); }
.navi ul li.co2 a { background-image: url('../img/icons/navi_co2.png'); }
.navi ul li.ch4 a { background-image: url('../img/icons/navi_ch4.png'); }
.navi ul li.c2h4 a { background-image: url('../img/icons/navi_c2h4.png'); }

.navi ul li a:hover  { background-position: 0 calc(-1 * var(--navi-icon-size)); }
.navi ul li a.active  { background-position: 0 calc(-2 * var(--navi-icon-size)); }

/* Volume */
#volume {
  width: 31px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.actVolume {
  background: url(../img/icons/volume.png) no-repeat 0 0;
}
.inactVolume {
  background: url(../img/icons/volume.png) no-repeat 0 -24px;
}

/* --- Footer --- */
#static-b {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: auto;
  min-height: var(--footer-height);
  z-index: var(--z-header);
}
#static-foot {
  position: relative;
  width: 100%;
  margin: 0 auto;
  z-index: var(--z-elec);
  line-height: 24px;
  display: flex;
  flex-direction: column;
  padding: 4px 12px;
  gap: 0;
}

/* Footer rows */
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.footer-row-top {
  flex-wrap: wrap;
  gap: 2px 12px;
  align-items: baseline;
}
.footer-row-bottom {
  gap: 8px;
}
.footer-tagline {
  font-size: 10px;
  color: var(--color-text);
  white-space: nowrap;
}
.footer-separator {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 2px 0 2px 0;
  width: 100%;
}
.footer-copyright {
  font-size: 10px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.footer-copyright a {
  color: var(--color-text);
  text-decoration: none;
}

/* #bottom in footer — removed, button restored to original viewport position */

/* Footer Nav */
#footer-navi ul {
  margin: 0;
  padding: 0;
  font-size: 10px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
}
#footer-navi li {
  line-height: 1;
  padding-left: 12px;
}
#footer-navi li:first-child {
  padding-left: 0;
}
#footer-navi li a {
  color: var(--color-text);
  text-decoration: none;
}

/* Social */
#social {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 0;
}
#social a {
  color: var(--color-text);
  text-decoration: none;
}
#social a:hover { text-decoration: underline; }
#social .social {
  display: block;
  width: 17px;
  height: 17px;
  margin: 0 2px 0 3px;
}
#social .social img { border: 0; }
#social .social:hover {
  box-shadow: 0 0 3px 2px rgba(255, 255, 255, 0.6);
}

/* --- Gas Info Panel --- */
.gasInfo {
  width: 177px;
  position: absolute;
  top: 120px;
  left: 12px;
}
.gasInfo h2 {
  font-family: var(--font-medium);
  font-weight: lighter;
  font-size: 14px;
  background: url('../img/bg/bg_gradient.png') no-repeat 0 100%;
  width: 100%;
  padding-bottom: 6.5px;
  margin-bottom: 9.5px;
}
.gasInfo .infoLine {
  clear: both;
  line-height: 19px;
}
.gasInfo .legend { float: left; font-size: 13px; }
.gasInfo .value  { float: right; font-size: 13px; }
.gasInfo .triple { font-size: 11px; margin-top: 5px; }
.gasInfo .info {
  float: right;
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 11px;
  color: var(--color-text);
  text-decoration: none;
}

/* --- Gas Description Panel --- */
.gasDescription {
  width: 280px;
  position: absolute;
  top: 60%;
  bottom: 50px;
  right: 12px;
}
.gasDescription h2 {
  font-family: var(--font-medium);
  font-weight: lighter;
  font-size: 14px;
  background: url('../img/bg/bg_gradient.png') no-repeat 0 100%;
  width: 100%;
  padding-bottom: 5px;
  margin-bottom: 10px;
}
.gasDescription img { cursor: pointer; }
.gasDescription sub { line-height: 16px; }
.gasDescription .learn-more {
  margin-top: 10px;
}
.gasDescription .learn-more a {
  color: var(--color-text);
  text-decoration: underline;
}
.gasDescription .learn-more-link {
  color: var(--color-text);
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
}

/* --- News Boxes --- */
.newsbox {
  background-color: var(--color-news-bg);
  overflow: hidden;
  position: absolute;
  color: var(--color-accent-dark);
  padding: 5px;
  border: 1px solid var(--color-news-border);
  cursor: pointer;
  box-sizing: content-box;
}
.newsbox:hover {
  box-shadow: 0 0 3px 2px rgba(255, 255, 255, 0.6);
}
.news1 { top: 140px; left: 30px; }
.news2 { top: 200px; right: 30px; }
.news3 { top: 400px; left: 30px; }
.news4 { top: 400px; left: 350px; }
.news5 { top: 400px; right: 30px; }
.newsbox h3 {
  margin: 3px 0 3px 7px;
  padding: 0;
  font-family: var(--font-body);
  font-weight: lighter;
}
.newssize1       { width: 214px; }
.newssize1 img   { width: 100%; }
.newssize1 h3    { font-size: 17px; line-height: 21px; }
.newssize1 h3 .headlineSmall { font-size: 16px; }
.newssize1 h3 img { width: 13px; margin-left: 5px; }
.newssize2       { width: 160px; }
.newssize2 img   { width: 100%; }
.newssize2 h3    { font-size: 14px; line-height: 16px; }
.newssize2 h3 img { width: 10px; margin-left: 5px; }

/* --- Overlay / Modal --- */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-overlay-bg);
  z-index: var(--z-overlay);
  display: none;
}
#overlay-content {
  width: 100%;
  max-width: 980px;
  position: relative;
  top: 0;
  height: 100%;
  margin: 0 auto;
}
#overlay-content #ovlogo {
  position: fixed;
  top: 0;
  left: 0;
  border: 0;
  padding: 20px 3000px 2000px 12px;
}
#overlay-box {
  text-align: left;
  position: absolute;
  background-color: var(--color-panel-bg);
  overflow: hidden;
  color: var(--color-accent-dark);
  padding: 10px 10px 15px 10px;
  border: 1px solid var(--color-news-border);
  z-index: var(--z-overlay-box);

  /* Mobile: full-width overlay */
  left: 10px;
  right: 10px;
  width: auto;
  height: calc(100vh - 80px);
  margin-top: 35px;
}
#close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: url(../img/icons/close.png) center center no-repeat;
  cursor: pointer;
}
#overlay-box h1 {
  margin: 20px 0 10px;
  padding: 0;
  font-weight: normal;
  font-size: 24px;
  line-height: 1.2;
}
#overlay-box h1 span.small-headline       { font-size: 20px; }
#overlay-box h1 span.extra-small-headline  { font-size: 16px; }
#overlay-box h3 {
  margin: 0 0 8px;
  padding: 0 0 4px;
  font-weight: normal;
  background: url(../img/icons/overlay-headline.jpg) center bottom no-repeat;
  font: 14px var(--font-body);
}
#overlay-box video {
  max-width: 100%;
  height: auto;
  display: block;
}
#overlay a { color: var(--color-accent-dark); text-decoration: none; }
#overlay a:hover { text-decoration: underline; }
#overlay .morelink {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
#overlay .morelink li {
  background: url(../img/icons/prelink_arrow.png) no-repeat 0 6px transparent;
  padding: 0 0 0 10px;
  display: block;
  height: 20px;
  clear: both;
}
#overlay .morelink a {
  color: var(--color-accent);
  display: block;
  padding: 0 15px 0 0;
  background: url(../img/icons/external_link.png) no-repeat right 4px;
  overflow: hidden;
  float: left;
}

/* --- Scrollable Content (newstext, terms, trail) --- */
/* Use native overflow on mobile; tinyscrollbar on desktop */
#newstext, .terms, .trail {
  width: 100%;
  clear: both;
  margin: 10px 0;
}
#newstext .viewport, .terms .viewport, .trail .viewport {
  width: 100%;
  max-height: 50vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}
#newstext .overview, .terms .overview, .trail .overview {
  list-style: none;
  position: relative;
  left: 0;
  top: 0;
}
/* Scrollbar chrome — kept for tinyscrollbar compat on desktop */
#newstext .scrollbar, .terms .scrollbar, .trail .scrollbar {
  position: relative;
  float: right;
  width: 20px;
}
#newstext .track, .terms .track, .trail .track {
  height: 100%;
  width: 20px;
  position: relative;
  padding: 0 1px;
  background: url(../img/icons/scrollbg.png) center top repeat-y;
}
#newstext .thumb, .terms .thumb, .trail .thumb {
  background: url(../img/icons/thumb.png) center top no-repeat;
  width: 20px;
  cursor: pointer;
  overflow: hidden;
  position: absolute;
  top: 0;
}
#newstext .thumb .end, .terms .thumb .end, .trail .thumb .end {
  overflow: hidden;
  height: 5px;
  width: 20px;
  background: url(../img/icons/thumb.png) center top no-repeat;
}
#newstext .disable, .terms .disable, .trail .disable { display: none; }

#newstext .dash-list {
  list-style: none;
  margin-left: 0;
  padding-left: 1em;
}
#newstext .dash-list li:before {
  display: inline-block;
  content: "-";
  width: 1em;
  margin-left: -1em;
}

#overlay-box .terms {
  font-size: 13px;
}
#overlay-box .terms .viewport {
  overflow-y: auto;
}

/* --- Making-Of Section --- */
.makingof-info .infoLine { color: var(--color-muted); }
.makingof-info .highlight { color: var(--color-text); }
.makingof-info h2       { background-image: url('../img/icons/makingof-info.png'); }
.makingof-description h2 { background-image: url('../img/icons/makingof-desc.png'); }

.makingof-description {
  width: 230px;
  top: 30%;
  position: absolute;
  right: 12px;
  z-index: 10000;
}
.makingof-info .infoTri       { color: var(--color-muted); }
.makingof-info .highlight .infoTri { color: var(--color-text); }

.makeInfo {
  background: url('../img/icons/makingof-info.png') left bottom no-repeat;
  padding-bottom: 17px;
  margin-bottom: 20px;
}
.trailer, .soundinfo {
  color: var(--color-accent);
  text-decoration: none;
}
.trailer:hover, .soundinfo:hover { text-decoration: underline; }

/* Making-of Element Viewer */
#eleC {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 800px;
  height: auto;
  aspect-ratio: 800 / 653;
  display: none;
  z-index: var(--z-elec);
}
#eleBtns {
  position: absolute;
  bottom: 97px;
  width: 381px;
  height: 40px;
  margin: 0 0 0 209px;
  z-index: var(--z-ele-btn);
}
#eleBtns .btn {
  padding: 10px 0 0;
  text-align: center;
  width: 127px;
  height: 30px;
  margin: 0;
  font-size: 13px;
  background: url(../img/icons/makeBtn.png) no-repeat 0 0;
  cursor: pointer;
  float: left;
}
#eleBtns #I1.btn { margin-left: 10px; }
#eleBtns #I2.btn { margin-left: -10px; }
#eleBtns #I3.btn { margin-left: -10px; }
#eleBtns .btn:hover       { background-position: 0 -40px; }
#eleBtns .act:hover,
#eleBtns .act              { background-position: 0 -80px; color: var(--color-accent-dark); }

#elSlider {
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 100%;
  background: url(../img/icons/elSlider.png) center center no-repeat;
  display: none;
  z-index: var(--z-slider);
}
#mainImg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-header);
  background-repeat: no-repeat;
  background-size: contain;
}
.detailImg {
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: contain;
}
#detailI1, #detailI2, #detailI3 {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-making-detail);
  display: none;
}

/* Soundbar */
#soundbar       { width: 344px; height: 57px; position: absolute; bottom: 25px; left: 50%; margin-left: -172px; }
#mainbar        { width: 344px; height: 57px; position: absolute; top: 0; left: 0; z-index: 2000; background-repeat: no-repeat; }
#soundbar .soundbar { width: 344px; height: 57px; display: none; position: absolute; top: 0; left: 0; z-index: 2100; background-repeat: no-repeat; }

/* --- Tooltips --- */
.tooltip       { position: relative; z-index: 20; text-decoration: none; color: var(--color-text); }
.tooltip span  { display: none; overflow: hidden; font-size: 12px; color: var(--color-text); }
.tooltip:hover { z-index: 2500; }
.tooltip:hover span {
  display: block; position: absolute; top: 23px; left: -100px;
  width: 200px; padding: 5px; margin: 10px 5px;
  z-index: 2501; background: black; opacity: 0.9;
}
.info       { position: relative; z-index: 20; text-decoration: none; color: var(--color-text); }
.info span  { display: none; color: var(--color-text); }
.info:hover { z-index: 2500; }
.info:hover span {
  line-height: 13px; display: block; position: absolute; top: -11px; left: 20px;
  width: 200px; padding: 5px; margin: 10px 5px;
  z-index: 2501; opacity: 0.9; overflow: hidden;
}
.infoTri       { position: relative; z-index: 20; text-decoration: none; }
.gasInfo .infoTri { color: var(--color-text); }
.infoTri span  { display: none; color: var(--color-text); font-size: 11px; }
.infoTri:hover { z-index: 2500; }
.infoTri:hover span {
  line-height: 13px; display: block; position: absolute; top: 50px; left: -10px;
  width: 200px; padding: 5px; margin: 10px 5px;
  z-index: 2501; opacity: 0.9; overflow: hidden;
}

/* --- Sub/Sup Styling --- */
#overlay-box h1 sub, #overlay-box h3 sub,
#newscontainer h3 sub,
#firstcontainer .gasDescription p sub,
#newstext .viewport sub {
  vertical-align: bottom;
  font-size: 0.6em;
  line-height: 100%;
}
#overlay h1 .headlineSmall  { font-size: 27px; }
#overlay h1 .headlineSmall2 { font-size: 20px; }
#overlay h1 .headlineSmall3 { font-size: 18px; }




/* --- Preloader --- */
#preloader img {
  display: block;
  position: absolute;
  left: -9999px;
}

/* --- Particle Bubble --- */
.flake {
  background: url(../img/bg/bubble.png) center center no-repeat;
}

/* ============================================================
   TABLET — 768px+
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --header-height-mobile: 140px;
    --navi-icon-size: 60px;
  }

  #static { height: var(--header-height-mobile); }

  #static-head {
    padding: 10px 24px;
  }
  #static-head #logo img {
    height: 40px;
  }

  .gasInfo {
    top: 160px;
    left: 24px;
  }
  .gasDescription {
    right: 24px;
    width: 280px;
  }

  #overlay-box {
    left: 200px;
    right: auto;
    width: 580px;
    height: 560px;
    padding: 10px 10px 15px 10px;
    overflow-y: hidden;
    overflow-x: hidden;
    box-sizing: content-box;
  }

  #newstext .viewport, .terms .viewport, .trail .viewport {
    max-height: none;
    overflow: hidden;
  }
  #newstext .overview, .terms .overview, .trail .overview {
    position: absolute;
  }
  #newstext, .trail {
    width: 590px;
  }
  #newstext .viewport {
    width: 570px;
    height: 170px;
  }
  #newstext .scrollbar {
    min-height: 170px;
  }
  .trail .viewport {
    width: 570px;
  }
  .terms .viewport {
    overflow-y: auto;
  }
}

/* ============================================================
   DESKTOP — 1024px+
   ============================================================ */
@media (min-width: 1024px) {
  :root {
    --navi-icon-size: var(--navi-icon-size-desktop);
  }

  #static {
    height: var(--header-height-desktop);
  }
  #static-head {
    padding: 0;
    display: block;
    min-width: 980px;
  }
  #static-head #logo {
    position: absolute;
    top: 55px;
    left: 32px;
  }
  #static-head #logo img {
    height: auto;
    display: block;
  }
  #main-navi {
    position: absolute;
    top: 55px;
    right: 33px;
    width: 400px;
    height: 130px;
    overflow: visible;
  }
  .navi {
    overflow: visible;
    position: absolute;
    top: 0;
    right: 0;
  }
  .navi ul {
    margin: 0 0 0 27px;
    grid-template-columns: repeat(6, 62px);
    grid-template-rows: 62px 62px;
  }
  .navi ul li { margin: 0; }
  .navi ul li a {
    width: var(--navi-icon-size-desktop);
    height: var(--navi-icon-size-desktop);
    background-size: auto;
  }
  .navi ul li a:hover  { background-position: 0 -69px; }
  .navi ul li a.active  { background-position: 0 -138px; }

  #volume {
    position: absolute;
    right: 36px;
    top: 8px;
  }

  /* Directional nav — desktop only */
  #top {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    width: 68px;
    height: 33px;
    transform: translateX(-50%);
    background: url(../img/icons/scroll_up.png) no-repeat 0 -33px;
  }
  #top:hover { background-position: 0 0; }

  /* #bottom — desktop positioning */
  #bottom {
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 68px;
    height: 33px;
    transform: translateX(-50%);
    background: url(../img/icons/scroll_down.png) no-repeat 0 0;
  }
  #bottom:hover { background-position: 0 -33px; }

  #left {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 33px;
    height: 68px;
    transform: translateY(-50%);
    background: url(../img/icons/scroll_left.png) no-repeat -33px 0;
  }
  #left:hover { background-position: 0 0; }

  #right {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    width: 33px;
    height: 68px;
    transform: translateY(-50%);
    background: url(../img/icons/scroll_right.png) no-repeat 0 0;
  }
  #right:hover { background-position: -33px 0; }

  .secondlabel {
    width: 120px !important;
    height: 33px !important;
    transform: translateX(-50%) !important;
    background: url(../img/icons/scroll_make.png) no-repeat 0 -6px !important;
  }
  .secondlabel:hover { background-position: 0 -45px !important; }

  #make2 {
    display: none;
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 120px !important;
    height: 33px !important;
    transform: translateX(-50%) !important;
    background: url(../img/icons/scroll_make.png) no-repeat 0 0 !important;
    cursor: pointer;
    z-index: var(--z-nav-btn);
  }
  #make2:hover { background-position: 0 -39px !important; }

  /* Footer — desktop layout */
  #static-b { height: var(--footer-height); }
  #static-foot {
    min-width: 980px;
    display: flex;
    flex-direction: column;
    padding: 0 32px;
    height: 100%;
    justify-content: center;
  }
  .footer-row-top {
    flex-wrap: nowrap;
  }
  #footer-navi {
    flex-shrink: 0;
  }
  #footer-navi ul { display: flex; flex-wrap: nowrap; gap: 0; }
  #footer-navi li { padding: 0 0 0 18px; }
  #footer-navi li:first-child { padding-left: 0; }

  #social {
    flex-shrink: 0;
  }

  /* Element — fixed desktop size */
  #element {
    width: 800px;
    height: 653px;
    aspect-ratio: auto;
    margin-left: -400px;
    margin-top: -330px;
    top: 50%;
    left: 50%;
    transform: none;
  }
  #element h1 { position: fixed; top: 141.5px; left: 0; width: 100%; z-index: 4; }

  #eleC {
    width: 800px;
    height: 653px;
    aspect-ratio: auto;
    margin-left: -400px;
    margin-top: -330px;
    top: 50%;
    left: 50%;
    transform: none;
  }

  /* Sections — desktop min-width for news layout */
  #news { width: 980px; }

  /* Gas panels — desktop positions */
  .gasInfo {
    top: 173px;
    left: 32px;
  }
  .gasDescription {
    width: 300px;
    right: 98px;
  }
  .makingof-description {
    width: 230px;
    right: 43px;
  }

  /* Overlay — desktop size */
  #overlay-content { width: 980px; }
  #overlay-content #ovlogo { padding: 55px 3000px 2000px 32px; }
  #overlay-box {
    left: 200px;
    right: auto;
    width: 580px;
    height: 560px;
    overflow-y: hidden;
    overflow-x: hidden;
  }

  #overlay-box h1 { font-size: 28px; line-height: 30px; }

  /* Scrollable areas — fixed sizes on desktop */
  #newstext        { width: 590px; }
  #newstext .viewport { width: 570px; height: 170px; overflow: hidden; max-height: none; }
  #newstext .scrollbar { min-height: 170px; }

  .terms           { width: 590px; }
  .terms .viewport { width: 570px; height: 170px; overflow: hidden; max-height: none; }

  .trail           { width: 590px; }
  .trail .viewport { width: 570px; height: 170px; overflow: hidden; max-height: none; }
}
