:root {
  --background1: #002a2c;
  --background2: #01403e;
  --background3: #01626b;
  --altbackground1: #023220;
  --altbackground2: #063e36;
  --altbackground3: #136a57;
  --primary: #66d2dc;
  --secondary: #4c939a;
  --tertiary: #12be85;
  --dimprimary: #418a90;
  --dimsecondary: #386e73;
  --dimtertiary: #0b9877;
  --border: #15dbdb;
  --border2: #0b8f6c;
}

hr {
  margin: 1rem 0;
}

.hr-gradient {
  border: 3px solid;
  border-width: 0 0 3px 0;
  border-image-slice: 1;
}

.border-gradient {
  border: 10px solid;
  border-image-slice: 1;
  border-width: 5px;
}

.border-gradient-left {
  border-image-source: linear-gradient(to left, var(--border), var(--border2));
}

.border-gradient-right {
  border-image-source: linear-gradient(to right, var(--border), var(--border2));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::selection {
  background: #06e488;
  color: #06925c;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  position: relative;
  isolation: isolate;
  background: var(--background1);
  overflow-x: hidden;
  overflow-y: auto;
}

@font-face {
  font-family: 'Billo';
  src: url('../public/fonts/BILLO___.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BoldPixels';
  src: url('../public/fonts/BoldsPixels.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Daydream Demo';
  src: url('../public/fonts/Daydream DEMO.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Evanescence';
  src: url('../public/fonts/evanescent.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FairyDustB';
  src: url('../public/fonts/FairyDustB.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: 'Daydream Demo', Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background1);
  color: var(--primary);
  font-family: 'BoldPixels', Arial, Helvetica, sans-serif;
}

svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

ul {
  list-style-type: none;
}

table, th, td {
  border-collapse: collapse;
  border: 3px solid color-mix(in srgb, var(--border) 30%, transparent);
  padding: 0.45rem 0.6rem;
}

th {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  background: color-mix(in srgb, var(--background1) 80%, transparent);
  text-align: left;
}

.box {
  padding: 1rem;
  margin-bottom: 1rem;
}

.update-content {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(3px);
  background: color-mix(in srgb, var(--background1) 50%, transparent);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

.nav-menu-wrap,
.nav-links {
  display: flex;
  align-items: center;
}

.nav-menu-wrap {
  flex: 1;
  justify-content: center;
}

.nav-links {
  gap: 0.5rem;
}

.nav-link,
.nav-toggle {
  background: color-mix(in srgb, var(--background2) 85%, transparent);
  color: var(--primary);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  font: inherit;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.nav-link:hover,
.nav-toggle:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--background3) 80%, transparent);
}

.nav-link--home {
  margin-right: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.45rem 0.55rem;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
}

.page-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.content-card {
  min-height: 16rem;
  overscroll-behavior: contain;
  backdrop-filter: blur(3px);
  background: color-mix(in srgb, var(--background2) 70%, transparent);
  padding: 1rem;
}

.info-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 300;
}

.info-overlay.is-open {
  display: flex;
}

.info-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 12, 0.72);
  backdrop-filter: blur(6px);
}

.info-popup {
  position: relative;
  z-index: 1;
  width: min(100%, 38rem);
  max-height: min(85vh, 42rem);
  overflow-y: auto;
  padding: 1.5rem;
  background: color-mix(in srgb, var(--background1) 95%, transparent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  color: var(--primary);
}

.info-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.info-button {
  background: color-mix(in srgb, var(--dimprimary) 85%, transparent);
  color: var(--primary);
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}

.info-button:hover,
.info-close-btn:hover {
  transform: translateY(-1px);
}

body.info-overlay-open {
  overflow: hidden;
}

.link {
  text-decoration: none;
  color: var(--tertiary);
}

.right {
  float: right;
}

.aboutme-games-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0;
}

.aboutme-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  table-layout: fixed;
  font-size: clamp(0.85rem, 1vw, 1rem);
}

.aboutme-table th,
.aboutme-table td {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  vertical-align: top;
}

.tux-gif {
  width: 120px;
  height: auto;
  bottom: 97%;
  right: 0;
  position: absolute;
}

/*.welcome-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 5, 12, 0.72);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.welcome-overlay.is-hidden {
  display: none;
}

.welcome-card {
  width: min(100%, 420px);
  border: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--background1) 96%, transparent);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
  color: var(--primary);
  padding: 1rem;
}

.welcome-card h2 {
  margin-bottom: 0.75rem;
  font-family: 'Press Start 2P', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.welcome-card p {
  margin-bottom: 1rem;
  line-height: 1.55;
}

.welcome-continue {
  border: 1px solid color-mix(in srgb, var(--border) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 88%, transparent);
  color: var(--border);
  padding: 0.65rem 0.95rem;
  font: inherit;
  cursor: pointer;
}

.welcome-continue:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--secondary) 70%, transparent);
}*/

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.update-item {
  background: color-mix(in srgb, var(--background1) 96%, transparent);
  padding: 0.75rem;
}

.update-summary {
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

.update-title {
  font-size: 1.1rem;
}

.update-date {
  font-size: 0.9rem;
  float: right;
  color: var(--secondary);
}

.update-body {
  margin-top: 0.5rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .page-content {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0.5rem 1.5rem;
    gap: 0.65rem;
  }

  .content-card--left,
  .content-card--right {
    grid-column: 1;
  }

  .content-card--row-1,
  .content-card--row-2,
  .content-card--row-3 {
    grid-row: auto;
  }

  .content-card {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    max-height: none;
    height: auto;
    overflow-y: visible;
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .content-card h1,
  .content-card h2 {
    font-size: 1.05rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .content-card p,
  .content-card td,
  .content-card th {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .navbar {
    flex-wrap: wrap;
    padding: 0.6rem 0.5rem;
  }

  .right {
    float: none;
  }

  .aboutme-games-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .aboutme-table {
    margin-top: 0.5rem;
    min-width: 0;
  }

  .aboutme-table th,
  .aboutme-table td {
    padding: 0.35rem;
    font-size: 0.9rem;
  }

  .aboutme-table thead {
    display: none;
  }

  .aboutme-table tr {
    display: block;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border: 3px solid color-mix(in srgb, var(--border) 30%, transparent);
    background: color-mix(in srgb, var(--background1) 80%, transparent);
  }

  .aboutme-table th,
  .aboutme-table td {
    display: block;
    width: 100%;
    border: none;
    padding: 0.2rem 0;
  }

  .aboutme-table th + td,
  .aboutme-table td + td {
    border-top: 1px solid color-mix(in srgb, var(--border) 20%, transparent);
  }

  .nav-menu-wrap {
    order: 3;
    width: 100%;
    justify-content: flex-end;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    background: color-mix(in srgb, var(--background1) 96%, transparent);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link,
  .nav-toggle {
    text-align: center;
    padding: 0.45rem 0.7rem;
    font-size: 0.95rem;
  }
}