:root {
  --darker-rgb: 8 13 7;
  --green: 9 252 8;
  --theme-rgb: var(--green);
}

body {
  background-color: black;
  margin: 0;
  font-family: "Orbitron", sans-serif;
  overflow-x: hidden;
}

#header-band {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
}

#prize {
  width: 100vw; 
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  
  padding: 0.8rem 0; 
  background-color: rgb(var(--darker-rgb));
  border-bottom: 0.2rem solid rgb(var(--theme-rgb) / 20%);
  box-shadow: 0rem 0.5rem 2rem rgb(0 0 0 / 80%);
}

#prize-text {  
  display: flex;
  gap: 0.1rem; 
  height: 3.5rem; 
  line-height: 3.5rem;
  font-size: 3.2rem; 
  color: rgb(var(--theme-rgb));
  background: transparent; 
}

#prize-text > .digit {  
  width: 2.4rem; 
  position: relative;
  overflow: hidden;
  box-shadow: none; 
  border-bottom: 2px solid rgb(var(--theme-rgb) / 30%);
}

.digit-track {
  animation: neon-glow 3s ease-in-out infinite alternate;
}

@keyframes neon-glow {
  from {
    text-shadow: 
      0 0 2px rgb(var(--theme-rgb) / 80%);
  }
  to {
    text-shadow: 
      0 0 4px #fff,
      0 0 10px rgb(var(--theme-rgb)), 
      0 0 18px rgb(var(--theme-rgb) / 90%);
  }
}

#prize-text > .digit > .digit-track {  
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  transition: translate 4500ms cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.prize-filter {
  height: 100%;
  width: 100%;
  position: absolute;
  pointer-events: none;
}

#prize-lines {
  background: linear-gradient(
    rgb(var(--darker-rgb) / 10%) 0%,
    rgb(var(--darker-rgb) / 40%) 50%,
    rgb(var(--darker-rgb) / 10%) 100%
  );
  background-size: 100% 4px;
  z-index: 2;
}

#game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 60px 20px 120px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.tint-green  { --card-rgb: 9, 252, 8;   --hue: 120deg; }
.tint-blue   { --card-rgb: 33, 150, 243; --hue: 200deg; }
.tint-red   { --card-rgb: 231, 60, 60; --hue: 0deg; }
.tint-amber  { --card-rgb: 255, 174, 0;  --hue: 40deg;  }
.tint-purple { --card-rgb: 157, 0, 255;  --hue: 280deg; }
.tint-cyan   { --card-rgb: 0, 255, 255;  --hue: 180deg; }

.screen {
  width: 100%;
  max-width: 340px;
  display: flex;
  border: 3px solid rgb(var(--card-rgb) / 80%);
  aspect-ratio: 10 / 14;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  z-index: 1;

  box-shadow: 
    inset 0 0 100px rgb(0 0 0 / 90%), 
    inset 0 0 20px rgb(var(--card-rgb) / 20%);
    
  background-color: rgb(var(--card-rgb) / 5%);
  
  transform: scale(1);

  transition: 
    box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen:hover {
  transform: scale(1.08);
  z-index: 10; 

  box-shadow: 
    inset 0 0 30px rgb(0 0 0 / 40%),
    inset 0 0 40px rgb(var(--card-rgb) / 40%),
    0 0 30px rgb(var(--card-rgb) / 40%);
}

.screen-image {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1;
  background-size: cover;
  background-position: center;
  
  filter: brightness(0.5) contrast(1.1);
  
  transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen:hover .screen-image {
  filter: brightness(1.2) contrast(1);
}

.screen-overlay {    
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  background: linear-gradient(
    rgb(var(--darker-rgb) / 0.45) 0%,
    rgb(var(--darker-rgb) / 0.45) 3px, 
    transparent 3px,
    transparent 6px
  );
  background-size: 100% 6px;
  
  animation: pan-overlay 22s linear infinite;
}

@keyframes pan-overlay {
  from { background-position: 0% 0%; }
  to { background-position: 0% 100%; }
}

.screen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2.5rem;
  width: 100%;
  z-index: 3;
}

.screen-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  background: rgb(0 0 0 / 60%);
  padding: 1rem;
  width: 100%;
  backdrop-filter: blur(4px);
}

.name {
  color: white;
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgb(var(--card-rgb)), 0 0 15px rgb(var(--card-rgb) / 50%);
}

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  color: white;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 8px 20px;
  border: 1px solid rgb(var(--card-rgb));
  border-radius: 2px;
  background: transparent;
  overflow: hidden;
  z-index: 5;
}

.link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgb(var(--card-rgb));
  z-index: -1;
  clip-path: inset(0 100% 0 0); 
  transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.link::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: black;
  white-space: nowrap;
  z-index: 2;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.link span {
  position: relative;
  display: block;
  z-index: 1;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

.screen:hover .link::before,
.screen:hover .link::after {
  clip-path: inset(0 0 0 0);
}

.screen:hover .link span {
  clip-path: inset(0 0 0 100%);
}

.link:hover {
  box-shadow: 0 0 15px rgb(var(--card-rgb) / 50%);
}

.card-1 { background-image: url('game1.webp'); }
.card-2 { background-image: url('game2.webp'); }
.card-3 { background-image: url('game3.webp'); }
.card-4 { background-image: url('game4.webp'); }
.card-5 { background-image: url('game5.webp'); }
.card-6 { background-image: url('game6.webp'); }

@media(max-width: 1000px) { #game-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 650px) { #game-grid { grid-template-columns: 1fr; } }

.bottom-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 15, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 40px;
  z-index: 1000;
}

.panel-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.scroller-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 1.5rem;
  line-height: 1.5rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  white-space: nowrap;
}

#master-container-scroller {
  height: 1.5rem;          
  overflow: hidden;
  position: relative;
  display: block;
}

.master-container-scroller_item {
  display: flex;
  align-items: center;
  height: 1.5rem;
  margin: 0;
  padding: 0;
  color: #76BCAD;
  box-sizing: border-box;
  animation: scroll-footer 30s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

.static-text {
  display: inline-block;
  height: 1.5rem;
  line-height: 1.5rem;
}

@keyframes scroll-footer {
  0%, 8%     { transform: translateY(0); }
  10%, 18%   { transform: translateY(-1.5rem); }
  20%, 28%   { transform: translateY(-3rem); }
  30%, 38%   { transform: translateY(-4.5rem); }
  40%, 48%   { transform: translateY(-6rem); }
  50%, 58%   { transform: translateY(-7.5rem); }
  60%, 68%   { transform: translateY(-9rem); }
  70%, 78%   { transform: translateY(-10.5rem); }
  80%, 88%   { transform: translateY(-12rem); }
  90%, 100%  { transform: translateY(-13.5rem); }
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-item {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.social-item:hover {
  color: white;
  text-decoration: underline; [cite: 149]
}

.social-item:hover i {
  filter: brightness(1.5) drop-shadow(0 0 8px currentColor);
  transition: all 0.3s ease;
}

.fa-linkedin {
  color: #00A0DC; 
  filter: drop-shadow(0 0 5px rgba(0, 160, 220, 0.4));
}

.fa-itch-io {
  color: #FF2449;
  filter: drop-shadow(0 0 5px rgba(255, 36, 73, 0.4));
}

.fa-youtube {
  color: #FF0000;
  filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.4));
}

.fa-envelope, .fa-file-lines{
  color: #76BCAD;
}
