@font-face {
  font-family: "GCEpic";
  src: url("../assets/font/GCEpic/GCEpicProDemo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GCEpic";
  src: url("../assets/font/GCEpic/GCEpicProDemo-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GCEpic";
  src: url("../assets/font/GCEpic/GCEpicProDemo-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GCEpic";
  src: url("../assets/font/GCEpic/GCEpicProDemo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GCEpic";
  src: url("../assets/font/GCEpic/GCEpicProDemo-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Knockout";
  src: url("../assets/font/Knockout/Knockout-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-color: #141414;
  --text-color: #ffffff;
  --primary-color: #34aafd;
  --secondary-color: #fd744e;
  --border-color: #ffffff24;
  --space-screen: 15px;
}


::selection{
    background-color: var(--secondary-color);
    color: var(--text-color);
}

body {
  background-color: #ffffff;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  padding: 15px;
  margin: 0;
  box-sizing: border-box;
  font-family: "GCEpic", "Poppins", sans-serif;
}

.body {
  background-color: var(--bg-color);
  color: var(--text-color);
  width: calc(100% - var(--space-screen) * 2);
  height: calc(100% - var(--space-screen) * 2);
  max-width: calc(100% - var(--space-screen) * 2);
  max-height: calc(100% - var(--space-screen) * 2);
  overflow: auto;
  border-radius: 15px;
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#ballpit-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: blur(9px);
  opacity: 0;
  transition: opacity 1.5s ease;
}

#ballpit-bg.visible {
  opacity: 0.6;
}

.lowperf-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
  background-color: transparent;
  width: 100%;
  height: 100%;
}
.lowperf-bg.visible {
  display: block;
}

@keyframes dropInBounce {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(0); }
}

@keyframes riseInBounce {
    0% { transform: translateY(100vh); }
    100% { transform: translateY(0); }
}

.skip-btn {
    position: absolute;
    top: 50px;
    right: 50px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #ffffff30;
    color: #ffffff80;
    padding: 6px 16px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
}
.skip-btn:hover { border-color: #ffffff80; color: #ffffffcc; }

.top{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    gap: 10px;
    height: 40px;
    z-index: 10;
}

.top img{
    max-height: 100%;
    user-select: none;
    transform: translateY(-100vh);
    animation: dropInBounce 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) 0.1s forwards;
}

.top h2{
    transform: translateY(-100vh);
    animation: dropInBounce 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) 0.2s forwards;
}

.top h1{
    color: var(--text-color);
    mix-blend-mode: difference;
    font-size: 40px;
    padding: 2px 35px;
}

header {
 width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 50px;
    left: 0;
    z-index: 9999;
}

header .links{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}
header .links a{
    color: var(--text-color);
    text-decoration: none;
    font-size: 25px;
    padding: 2px 35px;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
    transform: translateY(100vh);
}
header .links a:nth-child(1){ animation: riseInBounce 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) 0.1s forwards; }
header .links a:nth-child(2){ animation: riseInBounce 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) 0.2s forwards; }
header .links a:nth-child(3){ animation: riseInBounce 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) 0.3s forwards; }
header .links a:hover,
header .links a.active{
    color: var(--bg-color);
}
header .links .slider{
    position: absolute;
    background: var(--primary-color);
    border-radius: 0;
    transition: left 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), width 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    z-index: 0;
    top: 0;
    height: 100%;
    transform: translateY(100vh);
    animation: riseInBounce 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) 0.1s forwards;
}

@keyframes mousePulse {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

.scroll-hint {
  position: absolute;
  bottom: 110px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.scroll-hint.visible {
  opacity: 1;
}

.mouse {
  display: block;
  width: 22px;
  height: 34px;
  border: 1.5px solid #ffffff40;
  border-radius: 12px;
}

.mouse::after {
  content: '';
  display: block;
  width: 2px;
  height: 6px;
  margin: 6px auto 0;
  background: #ffffff80;
  border-radius: 1px;
  animation: mousePulse 1.5s ease infinite;
}


.messages{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vw;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: "Knockout", "Poppins", sans-serif;
    font-size: 30px;
    line-height: 1.1;
    z-index: 5;
}

.messages .middle,
.messages .second {
    display: none;
}

.messages .word {
    display: inline-flex;
    overflow: hidden;
    padding-top: 0.15em;
    margin-top: -0.15em;
    transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.messages .letter {
    display: inline-block;
    max-width: 0;
    transform: translateY(110%);
    transition: max-width 0.5s cubic-bezier(0.34, 1.2, 0.64, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.messages .letter.visible {
    max-width: 1em;
    transform: translateY(0);
}

.messages .letter.space {
    overflow: hidden;
}

.messages .letter.out {
    max-width: 0;
    transform: translateY(110%);
    transition: max-width 0.15s cubic-bezier(0.55, 0, 1, 0.45), transform 0.1s cubic-bezier(0.55, 0, 1, 0.45);
}

.messages .pause {
    position: relative;
    display: inline;
}

.messages .pause::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 0.15em;
    width: 0;
    background: var(--secondary-color);
    z-index: 1;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.messages .pause.underline::after {
    width: 100%;
}

.messages .highlight {
    position: relative;
    display: inline;
    padding: 0 0.15em;
}

.messages .highlight::after {
    content: '';
    position: absolute;
    left: -0.15em;
    top: -0.1em;
    height: calc(100% + 0.05em);
    width: 0;
    background: var(--secondary-color);
    z-index: -1;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.messages .highlight.active::after {
    width: calc(100% + 0.25em);
}

.about-btn {
    display: none;
    align-items: center;
    gap: 6px;
    margin: 30px auto 0;
    background: transparent;
    border: 1px solid #ffffff40;
    color: #ffffffcc;
    padding: 8px 20px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, border-color 0.3s, color 0.3s;
}

.about-back-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #ffffff40;
    color: #ffffffcc;
    padding: 8px 20px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: border-color 0.3s, color 0.3s;
}
.about-back-btn:active { border-color: var(--primary-color); color: var(--primary-color); }
.about-btn.visible { opacity: 1; pointer-events: auto; }
.about-btn:active { border-color: var(--primary-color); color: var(--primary-color); }

.about {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.about.visible {
    opacity: 1;
    pointer-events: auto;
}

.about-inner {
    max-width: 700px;
    width: 90%;
    text-align: left;
}

.about-title {
    font-family: "Knockout", "Poppins", sans-serif;
    font-size: 60px;
    margin: 0 0 30px 0;
    line-height: 1;
}

.about-title .letter {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.4s ease;
}
.about-title .letter.visible {
    transform: translateY(0);
    opacity: 1;
}
.about-title .letter.space { width: 0.3em; }

.about-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #ffffffaa;
    margin: 0 0 40px 0;
    font-weight: 400;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.about-word {
    display: inline-block;
    white-space: nowrap;
}

.about-desc .letter {
    display: inline-block;
    transform: translateY(40%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.3s ease;
}
.about-desc .letter.visible {
    transform: translateY(0);
    opacity: 1;
}
.about-desc .letter.space { width: 0.25em; }

.about-services-title {
    font-family: "Knockout", "Poppins", sans-serif;
    font-size: 28px;
    margin: 0 0 16px 0;
}

.about-services-title .letter {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.4s ease;
}
.about-services-title .letter.visible {
    transform: translateY(0);
    opacity: 1;
}
.about-services-title .letter.space { width: 0.3em; }

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.about-tag {
    border: 1px solid #ffffff40;
    background: #0000004d;
    padding: 8px 20px;
    font-size: 15px;
    flex: 1 1 auto;
    text-align: center;
    color: #ffffffcc;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.4s ease, border-color 0.3s, color 0.3s;
}

.about-tag.visible {
    transform: translateY(0);
    opacity: 1;
}

.about-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
  .scroll-hint { bottom: 56px; }
  .mouse { width: 18px; height: 28px; }
  .skip-btn { display: none; }
  :root { --space-screen: 8px; }
  body { padding: 8px; }
  .body { border-radius: 10px; }
  .top { top: 20px; height: 30px; }
  header { bottom: 20px; }
  header .links { gap: 8px; }
  header .links a { font-size: 16px; padding: 2px 16px; }
  .messages { font-size: 22px; width: 90vw; }
  .messages h1 { font-size: 1.4em; }
  .about-btn { display: flex; }
  .about-back-btn { display: flex; }
  .about { display: flex; }
  .about-title { font-size: 42px; }
  .about-desc { font-size: 16px; }
  .about-services-title { font-size: 22px; }
  .about-tag { font-size: 13px; padding: 6px 14px; }
}

@media (max-width: 480px) {
  :root { --space-screen: 4px; }
  body { padding: 4px; }
  .body { border-radius: 8px; }
  .top { top: 14px; height: 24px; }
  header { bottom: 14px; }
  header .links { gap: 4px; }
  header .links a { font-size: 14px; padding: 2px 10px; }
  .messages { font-size: 18px; width: 94vw; }
  .messages h1 { font-size: 1.3em; }
  .about-title { font-size: 34px; margin-bottom: 20px; }
  .about-desc { font-size: 14px; margin-bottom: 28px; }
  .about-services-title { font-size: 20px; }
  .about-tag { font-size: 12px; padding: 5px 12px; }
  .about-tags { gap: 6px; }
}

.perf-toggle {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 10000;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.perf-toggle svg {
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.perf-toggle:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(40, 40, 40, 0.85);
    color: rgba(255, 255, 255, 0.8);
}
.perf-toggle:hover svg {
    transform: rotate(90deg);
}
.perf-toggle.active {
    border-color: rgba(52, 170, 253, 0.5);
    color: var(--primary-color);
    background: rgba(52, 170, 253, 0.08);
}
.perf-toggle.active:hover {
    background: rgba(52, 170, 253, 0.15);
}
@media (max-width: 768px) {
    .perf-toggle { top: 12px; left: 12px; width: 32px; height: 32px; border-radius: 8px; }
}

.perf-panel {
    position: fixed;
    top: 16px;
    left: 60px;
    width: 240px;
    z-index: 10001;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    font-family: "GCEpic", sans-serif;
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.perf-panel.open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.perf-panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.perf-panel-label {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}
.perf-panel-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    margin: 8px 0 0;
    line-height: 1.4;
}
.perf-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.perf-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.perf-switch-track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.25s ease;
}
.perf-switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1), background 0.25s ease;
}
.perf-switch input:checked + .perf-switch-track {
    background: rgba(52, 170, 253, 0.3);
}
.perf-switch input:checked + .perf-switch-track::after {
    transform: translateX(20px);
    background: var(--primary-color);
}
@media (max-width: 768px) {
    .perf-panel { top: 12px; left: 52px; width: 220px; }
}
.perf-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}
.perf-panel-backdrop.open {
    display: block;
}


