
* {
    box-sizing: border-box;
}

:root {
    --title: #eeeeee;
    --text: #eeeeee;
    --subtext: #aaaaca;
    --placeholder: #777797;
    --outline: #100e11;
    --background: #181827;
    --panel: #1d1d2e;
    --surface: #303047;
    --surface-dark: #27273b;
    --surface-hover: #3d3d59;
    --surface-active: #333366;
    --border: #505070;
    --button: #55558a;
    --button-hover: #6868a5;
    --button-active: #7777c9;
    --accent: #7777c9;
    --accent-hover: #8989df;
    --accent-darker: #454568;
    --accent-glow: rgba(119, 119, 201, 0.7);
}

a {
    color: var(--accent-hover);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

a:hover {
    filter: contrast(1.2) brightness(1.1);
}

a:visited {
    color: none;
}

/* MIDNIGHT */

body.theme-midnight {
    --title: #616161;
    --text: #aaaaaa;
    --subtext: #777777;
    --placeholder: #4d4d4d;
    --outline: #000000;
    --background: #050505;
    --panel: #0b0b0b;
    --surface: #242424;
    --surface-dark: #181818;
    --surface-hover: #202020;
    --surface-active: #2b2b2b;
    --border: #363636;
    --button: #181818;
    --button-hover: #242424;
    --button-active: #303030;
    --accent: #999999;
    --accent-hover: #cecece;
    --accent-darker: #000000;
    --accent-glow: rgba(255, 255, 255, 0.5);
}

/* UFO */

body.theme-ufo {
    --title: #7bff00;
    --text: #7bff00;
    --subtext: #65c94a;
    --placeholder: #39752d;
    --outline: #012400;
    --background: #020402;
    --panel: #050805;
    --surface: #0a0f0a;
    --surface-dark: #060906;
    --surface-hover: #101a10;
    --surface-active: #162516;
    --border: #245522;
    --button: #0b150b;
    --button-hover: #132613;
    --button-active: #1b3519;
    --accent: #6dff3f;
    --accent-hover: #7bff00;
    --accent-darker: #129e0085;
    --accent-glow: rgba(109, 255, 63, 0.85);
}

/* OCEAN */

body.theme-ocean {
    --title: #ffffff;
    --text: #ffffff;
    --subtext: #a8c8d8;
    --placeholder: #6d91a8;
    --outline: #0e62e0;
    --background: #002240;
    --panel: #002240;
    --surface: #071d44;
    --surface-dark: #062546;
    --surface-hover: #0d317e;
    --surface-active: #2d618f;
    --border: #4d7394;
    --button: #0e62e0;
    --button-hover: #0c53bd;
    --button-active: #0c53bd;
    --accent: #00aeff;
    --accent-hover: #00aeff;
    --accent-darker: #0e62e0;
    --accent-glow: rgba(0, 234, 255, 0.65);
}

/* CANDY */

body.theme-candy {
    --title: #ffffff;
    --text: #8d004e;
    --subtext: #8f6879;
    --placeholder: #b894a4;
    --outline: #ff72af;
    --background: #fffafd;
    --panel: #ffffff;
    --surface: #ffe8f1;
    --surface-dark: #f9d8e4;
    --surface-hover: #ffd6e5;
    --surface-active: #ffc4da;
    --border: #e7a8bd;
    --button: #f5cad9;
    --button-hover: #f3b4cb;
    --button-active: #ed91b1;
    --accent: #f06b9d;
    --accent-hover: #f78ab3;
    --accent-darker: #c94f7e;
    --accent-glow: rgba(240, 107, 157, 0.45);
}

/* BODY */

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* THEME SELECTOR */

.theme {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 100;
    width: 120px;
    background: var(--button);
    color: var(--text);
    border: none;
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

.theme:hover {
    background: var(--button-hover);
}

/* PAGE */

.page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 30px 60px;
}

/* HEADER */

.header {
    text-align: center;
    margin-bottom: 55px;
}

.phorge-name {
    display: inline-block;
    font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: 10px;
    color: var(--title);
    text-shadow:
        4px 4px 0 var(--accent-hover),
        8px 8px 0 var(--accent-darker);
    transform: skew(-14deg);
}

.subtitle {
    margin-top: 15px;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--subtext);
    text-shadow: 0 0 8px var(--accent-glow);
}

.subtitle span {
    color: var(--accent);
    text-shadow:
        0 0 6px var(--button-active),
        0 0 14px var(--accent-glow);
}

.intro {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 20px;
    margin-bottom: 20px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.panel-title {
    margin: 0 0 14px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--subtext);
}

.panel h2 {
    margin: 0 0 12px;
    font-size: 25px;
    color: var(--title);
}

.panel p {
    margin: 10px 0;
    color: var(--text);
    line-height: 1.65;
}

.intro-text {
    font-size: 18px;
    line-height: 1.7;
}

.accent {
    color: var(--accent);
    font-weight: bold;
}

.panel:has(.img-display) {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.img-display {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 7px;
    background:
        repeating-conic-gradient(
            var(--surface) 0% 25%,
            var(--surface-dark) 0% 50%
        ) 50% / 30px 30px;
    overflow: hidden;
}

.img-display img {
    max-height: 110px;
    width: 90%;
    height: 90%;
    object-fit: contain;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

.content-section {
    margin-top: 20px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--subtext);
}

.section-heading::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}

/* PRICE */

.pack-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.price {
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent);
}

/* BUTTONS */

button,
.button {
    display: inline-block;
    border: none;
    border-radius: 7px;
    padding: 10px 14px;
    background: var(--button);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition:
        background 0.15s ease,
        transform 0.1s ease;
}

button:hover,
.button:hover {
    background: var(--button-hover);
}

button:active,
.button:active {
    transform: translateY(1px);
}

.button.primary {
    background: var(--button-active);
    font-weight: bold;
}

.button.primary:hover {
    background: var(--accent-hover);
}

/* FEATURES */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature {
    background: var(--surface-dark);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 18px;
}

.feature h3 {
    margin: 0 0 7px;
    color: var(--title);
    font-size: 18px;
}

.feature p {
    margin: 0;
    color: var(--subtext);
    font-size: 13px;
    line-height: 1.55;
}

/* ORDER PROCESS */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.step {
    position: relative;
    background: var(--surface-dark);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 18px;
}

.step-number {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: var(--button-active);
    border-radius: 6px;
    font-weight: bold;
}

.step h3 {
    margin: 0 0 7px;
    font-size: 15px;
}

.step p {
    margin: 0;
    color: var(--subtext);
    font-size: 13px;
    line-height: 1.5;
}

/* WHAT YOU RECEIVE */

.receive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.receive {
    display: flex;
    gap: 15px;
    background: var(--surface-dark);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 18px;
}

.receive-icon {
    flex-shrink: 0;
    font-size: 28px;
}

.receive h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.receive p {
    margin: 0;
    color: var(--subtext);
    font-size: 13px;
    line-height: 1.5;
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

details {
    background: var(--surface-dark);
    border: 1px solid var(--border);
    border-radius: 7px;
    overflow: hidden;
}

summary {
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text);
}

summary:hover {
    background: var(--surface-hover);
}

details p {
    margin: 0;
    padding: 0 15px 15px;
    color: var(--subtext);
    line-height: 1.6;
}

/* CUSTOM ORDER */

.custom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.custom h2 {
    margin-bottom: 8px;
}

.custom-button {
    white-space: nowrap;
}

/* FOOTER */

footer {
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--subtext);
    font-size: 12px;
    letter-spacing: 1px;
}

/* SCROLLBAR */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--button);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--button-hover);
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
}

.theme {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 100;
    width: 120px;
    padding: 10px 14px;
    background: var(--button);
    color: var(--text);
    border: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

.theme:hover {
    background: var(--button-hover);
}

.page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 25px 50px;
}

.header {
    text-align: center;
    margin-bottom: 35px;
}

.phorge-name {
    display: inline-block;
    font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
    font-size: clamp(4rem, 9vw, 6rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: 9px;
    color: var(--title);
    text-shadow:
        4px 4px 0 var(--accent-hover),
        8px 8px 0 var(--accent-darker);
    transform: skew(-14deg);
}

.subtitle {
    margin-top: 15px;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--subtext);
    text-shadow: 0 0 8px var(--accent-glow);
}

.subtitle span {
    color: var(--accent);
    text-shadow:
        0 0 6px var(--button-active),
        0 0 14px var(--accent-glow);
}

.price-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    background: var(--surface-dark);
    border: 1px solid var(--border);
    border-radius: 7px;
}

.price-label {
    color: var(--subtext);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

#totalPrice {
    color: var(--accent);
    font-family: monospace;
    font-size: 15px;
    text-shadow: 0 0 8px var(--accent-glow);
}

.controls {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 15px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.selection-count {
    margin-right: auto;
    color: var(--subtext);
    font-size: 13px;
}

.selection-count strong {
    color: var(--accent);
    font-size: 15px;
}

button {
    border: none;
    border-radius: 7px;
    padding: 10px 14px;
    background: var(--button);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background: var(--button-hover);
}

button.primary {
    background: var(--button-active);
    font-weight: bold;
}

button.primary:hover {
    background: var(--accent-hover);
}

button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.search {
    width: 100%;
    padding: 11px 13px;
    margin-bottom: 15px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 14px;
    outline: none;
}

.search::placeholder {
    color: var(--placeholder);
}

.search:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 10px;
}

.emoji-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 135px;
    padding: 8px;
    background: var(--surface-dark);
    border: 1px solid var(--border);
    border-radius: 7px;
    cursor: pointer;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        transform 0.12s ease;
}

.emoji-card:hover {
    background: var(--surface-hover);
    border-color: var(--button);
    transform: translateY(-2px);
}

.emoji-card.selected {
    background: var(--surface-active);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.emoji-card img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.emoji-number {
    margin-top: 5px;
    font-family: monospace;
    font-size: 12px;
    color: var(--subtext);
}

.emoji-card.selected .emoji-number {
    color: var(--accent);
    font-weight: bold;
}

.check {
    position: absolute;
    top: 7px;
    right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    background: var(--accent);
    color: var(--text);
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.7);
    transition:
        opacity 0.12s ease,
        transform 0.12s ease;
}

.emoji-card.selected .check {
    opacity: 1;
    transform: scale(1);
}

.empty {
    padding: 50px;
    text-align: center;
    color: var(--subtext);
    display: none;
}

.info {
    margin-top: 15px;
    padding: 15px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--subtext);
    font-size: 12px;
    line-height: 1.5;
}

/* SCROLL */

.emoji-marquee {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.emoji-track {
    display: flex;
    width: max-content;
    animation: emoji-scroll 30s linear infinite;
    gap: 10px;
}

.emoji-track img {
    display: block;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    object-fit: contain;
    image-rendering: crisp-edges;
}

@keyframes emoji-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* BACK */

.back-button {
    display: block;
    margin-left: auto;
    margin-right: 20px;
    margin-top: 20px;
    padding: 8px 14px;
    color: var(--text);
    border: 1px solid var(--outline);
    font-family: inherit;
    cursor: pointer;
}

.back-button:hover {
    opacity: 0.7;
}

/* ORDER */

.emoji-divider {
    grid-column: 1 / -1;
    width: 100%;
    margin: 30px 0 20px;
    text-align: center;
}

.emoji-divider-title {
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.emoji-divider-subtitle {
    margin-top: 5px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* CONTACT POPUP */

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
}

.contact-modal.active {
    display: flex;
}

.contact-box {
    position: relative;
    width: 100%;
    max-width: 450px;
    padding: 25px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 9px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.contact-box h2 {
    margin: 0 0 10px;
    color: var(--title);
    font-size: 22px;
    letter-spacing: 2px;
}

.contact-box p {
    margin: 0 0 20px;
    color: var(--subtext);
    line-height: 1.6;
    font-size: 13px;
}

.contact-close {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 4px 8px;
    background: transparent;
    color: var(--subtext);
    font-size: 24px;
    line-height: 1;
}

.contact-close:hover {
    background: transparent;
    color: var(--text);
}

.contact-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 12px;
    background: var(--surface-dark);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    text-decoration: none;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.1s ease;
}

.contact-option:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.contact-option strong {
    color: var(--accent);
    font-size: 15px;
    letter-spacing: 1px;
}

.contact-option span {
    color: var(--subtext);
    font-size: 11px;
}

.contact-cancel {
    width: 100%;
    margin-top: 10px;
}

