@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Share Tech Mono', monospace;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #0F0F0F;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid #c60dab22;
    height: 80px;
}

.nav-link {
    background-image: linear-gradient(90deg, #c60dab, #fa982e, #c60dab);
    background-size: 3000% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    animation: wave 10s linear infinite;
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    text-decoration: none;
    outline: 1.5px solid #c60dab55;
    outline-offset: -1.5px;
    transition: box-shadow 0.3s ease, outline-color 0.3s ease;
    box-shadow: 0 0 10px #c60dab22;
}
.nav-link:hover {
    outline-color: #fa982e;
    box-shadow: 0 0 16px #c60dab99, 0 0 30px #c60dab44;
}

#logo {
    height: 65px;
    width: auto;
    display: block;
    margin-left: -2rem
}

#Content {
    background-color: #0F0F0F;
}

#PlayerControls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    padding: 2rem 0 1.2rem 0;
    width: 100%;
    flex-wrap: wrap;
}

.PlayerButtons {
    background-image: linear-gradient(90deg, #c60dab, #fa982e, #c60dab);
    background-size: 3000% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    animation: wave 10s linear infinite;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 0;
    width: 140px;
    cursor: pointer;
    background-color: transparent;
    transition: box-shadow 0.3s ease;
    position: relative;
    background-origin: border-box;
    box-shadow: 0 0 10px #c60dab44;
    outline: 1.5px solid #c60dab;
    outline-offset: -1.5px;
}
.PlayerButtons:hover {
    outline-color: #fa982e;
    box-shadow: 0 0 16px #c60dab99, 0 0 30px #c60dab44;
}

@keyframes wave {
  0%   { background-position: 100% 0%; }
  100% { background-position: 0% 0%; }
}

#PlayerLabel {
    width: 1080px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.4rem;
}
#PlayerLabel span {
    background-image: linear-gradient(90deg, #fa982e, #c60dab, #fa982e);
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: borderShift 6s ease infinite;
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    white-space: nowrap;
}
#PlayerLabel::before,
#PlayerLabel::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c60dab55);
}
#PlayerLabel::after {
    background: linear-gradient(90deg, #c60dab55, transparent);
}

#PlayerGlow {
    width: 1080px;
    max-width: 100%;
    margin: 2.4rem auto 0 auto;
    height: 720px;
    border-radius: 6px;
    padding: 3px;
    background: linear-gradient(135deg, #c60dab, #fa982e, #c60dab);
    background-size: 300% 300%;
    animation: borderShift 6s ease infinite;
    box-shadow:
        0 0 30px #c60dab99,
        0 0 60px #c60dab55,
        0 0 100px #c60dab22;
}

@keyframes borderShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#PlayerFrame {
    display: flex;
    background-color: black;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}
#player {
    transform-origin: top left;
    position: absolute;
}

#PresetControls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.PresetButton {
    background-image: linear-gradient(90deg, #c60dab, #fa982e, #c60dab);
    background-size: 3000% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    animation: wave 10s linear infinite;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 0;
    width: 105px;
    cursor: pointer;
    background-color: transparent;
    transition: box-shadow 0.3s ease, outline-color 0.3s ease;
    position: relative;
    background-origin: border-box;
    box-shadow: 0 0 6px #c60dab1a;
    outline: 1.5px solid #c60dab44;
    outline-offset: -1.5px;
}
.PresetButton:hover {
    outline-color: #fa982e;
    box-shadow: 0 0 16px #c60dab99, 0 0 30px #c60dab44;
}

#TerminalLabel {
    width: 1080px;
    max-width: 100%;
    margin: 1.5rem auto 0 auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.4rem;
}
#TerminalLabel span {
    background-image: linear-gradient(90deg, #39ff88, #00ffff, #39ff88);
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: terminalShift 6s ease infinite;
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    white-space: nowrap;
}
#TerminalLabel::before,
#TerminalLabel::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #39ff8855);
}
#TerminalLabel::after {
    background: linear-gradient(90deg, #39ff8855, transparent);
}

#TerminalControls {
    width: 1080px;
    max-width: 100%;
    margin: 0.5rem auto 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 0.4rem 0.6rem 0.4rem;
    overflow: hidden;
}

.slider-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.4s ease, transform 0.4s ease, max-width 0.4s ease;
    max-width: 400px;
    overflow: hidden;
}
.slider-wrap.hidden {
    opacity: 0;
    transform: translateX(-16px);
    max-width: 0;
    pointer-events: none;
}

.toggle-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.disclaimer-wrap {
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, max-width 0.4s ease;
    max-width: 600px;
}
.disclaimer-wrap.hidden {
    opacity: 0;
    transform: translateX(16px);
    max-width: 0;
    pointer-events: none;
}

.disclaimer-wrap2 {
    width: 1080px;
    max-width: 100%;
    margin: 0.5rem auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0.4rem;
    text-align: center;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, max-width 0.4s ease;
}
.disclaimer-wrap2.hidden {
    opacity: 0;
    transform: translateX(16px);
    max-width: 0;
    pointer-events: none;
}

#TerminalControls label {
    background-image: linear-gradient(90deg, #39ff88, #00ffff, #39ff88);
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: terminalShift 6s ease infinite;
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    white-space: nowrap;
}
#TerminalControls input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, #39ff88, #00ffff);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
#TerminalControls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #39ff88;
    box-shadow: 0 0 6px #39ff8899;
    cursor: pointer;
}
#TerminalControls span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #39ff88;
    min-width: 40px;
}

.switch-track {
    position: relative;
    width: 44px;
    height: 22px;
    border-radius: 11px;
    background: #1a1a1a;
    border: 1px solid #39ff8833;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}
.switch-track.on {
    background: linear-gradient(90deg, #39ff8833, #00ffff33);
    border-color: #39ff8899;
    box-shadow: 0 0 8px #39ff8866;
}
.switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #39ff8855;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.switch-track.on .switch-thumb {
    transform: translateX(22px);
    background: #39ff88;
    box-shadow: 0 0 6px #39ff8899;
}

#consoleDisclaimer {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: #39ff8844;
    letter-spacing: 0.05em;
    white-space: nowrap;
    min-width: unset;
}

#consoleDisclaimer2 {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: #fa982e;
    letter-spacing: 0.05em;
    white-space: nowrap;
    opacity: 0.7;
}
#Terminal {
    width: 1080px;
    max-width: 100%;
    margin: 0.5rem auto 2rem auto;
    border-radius: 6px;
    padding: 3px;
    background: linear-gradient(135deg, #39ff88, #00ffff, #39ff88);
    background-size: 300% 300%;
    animation: terminalShift 6s ease infinite;
    box-shadow:
        0 0 30px #39ff8899,
        0 0 60px #39ff8855,
        0 0 100px #39ff8822;
    height: 580px;
}
#TerminalInner {
    background: #0a0a0a;
    border-radius: 4px;
    height: 100%;
    padding: 0.8rem 1rem;
    overflow-y: auto;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: #39ff88;
    box-sizing: border-box;
}
#TerminalOutput p {
    margin: 0;
    padding: 0.1rem 0;
    border-bottom: 1px solid #ffffff08;
}
@keyframes terminalShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.about-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem 2rem;
    color: #c8c8c8;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.92rem;
    line-height: 1.85;
}

.about-hero {
    margin-bottom: 4rem;
    border-left: 2px solid #c60dab;
    padding-left: 1.5rem;
}

.about-hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 0.5rem 0;
    background-image: linear-gradient(90deg, #c60dab, #fa982e, #c60dab);
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: borderShift 6s ease infinite;
}

.about-hero .subtitle {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: #c60dab88;
    text-transform: uppercase;
    margin: 0;
}

.section {
    margin-bottom: 3.5rem;
}

.section-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #fa982e99;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #fa982e33, transparent);
}

.section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fa982e;
    margin: 0 0 1rem 0;
}

.section p {
    margin: 0 0 1rem 0;
    color: #aaaaaa;
}

.section p:last-child {
    margin-bottom: 0;
}

.callout {
    border: 1px solid #c60dab33;
    border-left: 3px solid #c60dab;
    background: #c60dab08;
    padding: 1rem 1.25rem;
    border-radius: 0 4px 4px 0;
    margin: 1.5rem 0;
    color: #c8c8c8;
    font-size: 0.88rem;
}

.callout.green {
    border-color: #39ff8833;
    border-left-color: #39ff88;
    background: #39ff8808;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #c60dab44, transparent);
    margin: 3rem 0;
}

.mono-block {
    background: #0a0a0a;
    border: 1px solid #39ff8822;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: #39ff88;
    overflow-x: auto;
    margin: 1.25rem 0;
    line-height: 1.7;
}

.mono-block .comment {
    color: #39ff8855;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #c60dab44;
    color: #c60dab99;
}

.tag.green {
    border-color: #39ff8844;
    color: #39ff8899;
}

.back-link {
    display: inline-block;
    margin-top: 3rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    background-image: linear-gradient(90deg, #c60dab, #fa982e, #c60dab);
    background-size: 3000% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: wave 10s linear infinite;
    text-decoration: none;
    outline: 1.5px solid #c60dab55;
    outline-offset: 4px;
    border-radius: 2px;
    transition: outline-color 0.3s ease, box-shadow 0.3s ease;
}
.back-link:hover {
    outline-color: #fa982e;
    box-shadow: 0 0 12px #c60dab66;
}

/* Popup container */
#flavortownPopup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 360px;

    background: #161616;
    border-radius: 10px;
    padding: 1rem 1.1rem 1.2rem 1.1rem;

    border: 1px solid #c60dab66;

    box-shadow:
        0 0 20px #c60dab66,
        0 0 40px #c60dab33;

    z-index: 9999;

    transform: translateY(20px);
    opacity: 0;

    /* delayed + smooth entrance */
    animation: popupFadeIn 0.6s ease forwards;
    animation-delay: 1.2s;

    /* subtle glow pulse */
    animation-name: popupFadeIn, popupGlow;
    animation-duration: 0.6s, 4s;
    animation-delay: 1.2s, 2s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1, infinite;
}

/* Header row */
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Icon */
.popup-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    opacity: 0.95;
}

/* Close button */
#popupClose {
    background: none;
    border: none;
    color: #c60dabaa;
    font-size: 1.3rem;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    transition: color 0.2s ease, transform 0.2s ease;
}
#popupClose:hover {
    color: #fa982e;
    transform: scale(1.2);
}

/* Content */
.popup-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Main text */
.popup-main {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #fa982e;
    margin: 0;
}

/* Secondary text */
.popup-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    color: #aaaaaa;
    margin: 0;
    opacity: 0.75;
}

/* Links */
#flavortownPopup a {
    color: #c60dab;
    text-decoration: none;
    border-bottom: 1px solid #c60dab55;
    transition: color 0.2s ease, border-color 0.2s ease;
}
#flavortownPopup a:hover {
    color: #fa982e;
    border-color: #fa982e;
}

/* Entrance animation */
@keyframes popupFadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Subtle glow pulse */
@keyframes popupGlow {
    0%, 100% {
        box-shadow:
            0 0 20px #c60dab66,
            0 0 40px #c60dab33;
    }
    50% {
        box-shadow:
            0 0 28px #fa982e66,
            0 0 55px #c60dab44;
    }
}
