:root {
    --bg: #07131a;
    --bg-deep: #091b24;
    --bg-panel: #102430;
    --bg-panel-strong: #153444;
    --card: rgba(13, 30, 40, 0.92);
    --card-alt: rgba(8, 22, 30, 0.94);
    --card-border: rgba(106, 231, 255, 0.18);
    --card-border-strong: rgba(106, 231, 255, 0.4);
    --text: #f4fbff;
    --muted: #9fb9c6;
    --accent: #ff8f3d;
    --accent-strong: #ffd166;
    --accent-cool: #6ae7ff;
    --accent-cool-strong: #a9f7ff;
    --success: #69f6b8;
    --danger: #ff9a8b;
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow: 0 20px 45px rgba(1, 8, 12, 0.4);
    --shadow-soft: 0 26px 60px rgba(1, 8, 12, 0.5);
    --shadow-glow: 0 28px 60px rgba(106, 231, 255, 0.16);
    --font-display: "Bebas Neue", "Impact", sans-serif;
    --font-body: "Space Grotesk", "Segoe UI", sans-serif;
}

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

html,
body {
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    background:
        radial-gradient(circle at 12% 12%, rgba(106, 231, 255, 0.2), transparent 28%),
        radial-gradient(circle at 84% 16%, rgba(255, 143, 61, 0.18), transparent 24%),
        linear-gradient(180deg, #08151d 0%, #091a22 40%, #050f15 100%);
}

body.modal-open {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: auto auto -12rem -8rem;
    width: 26rem;
    height: 26rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 143, 61, 0.18), transparent 72%);
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.lang-switcher {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(8, 22, 30, 0.82);
    border: 1px solid rgba(106, 231, 255, 0.16);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.lang-icon {
    font-size: 1rem;
}

.lang-label {
    color: var(--accent-cool-strong);
}

.lang-select {
    border: 1px solid rgba(106, 231, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    padding: 8px 12px;
    appearance: none;
}

.lang-select option {
    color: #07131a;
}

.main-container {
    min-height: 100vh;
    padding: 92px 20px 96px;
    position: relative;
    z-index: 1;
}

.container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 38px;
}

.wiki-hero {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(20, 49, 64, 0.92), rgba(10, 24, 32, 0.96)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    box-shadow: var(--shadow-soft);
    isolation: isolate;
}

.wiki-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 22%, rgba(106, 231, 255, 0.08) 22%, transparent 24%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 30%);
    opacity: 0.75;
    pointer-events: none;
}

.wiki-hero::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -40px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(106, 231, 255, 0.22), transparent 72%);
    filter: blur(6px);
    pointer-events: none;
}

.wiki-hero > * {
    position: relative;
    z-index: 1;
}

.wiki-top {
    display: flex;
    align-items: center;
    gap: 26px;
}

.wiki-title {
    display: grid;
    gap: 10px;
    max-width: 720px;
    text-align: left;
}

.wiki-label {
    width: fit-content;
    padding: 7px 12px 6px;
    border: 1px solid rgba(106, 231, 255, 0.18);
    border-radius: 999px;
    background: rgba(106, 231, 255, 0.08);
    color: var(--accent-cool-strong);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.wiki-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.wiki-chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wiki-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.stat {
    border-radius: 18px;
    padding: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: var(--accent-cool-strong);
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.claim-header {
    width: min(920px, 100%);
    margin: 0 auto 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--card-border);
}

.claim-header-text {
    display: grid;
    gap: 4px;
    width: 100%;
}

.claim-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 0.95;
    letter-spacing: 0.04em;
}

.claim-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
}

.claim-page {
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 16px 0 32px;
}

.claim-card {
    width: min(92vw, 560px);
}

.claim-item-name {
    color: var(--accent-cool-strong);
    font-weight: 700;
}

.claim-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.claim-ad {
    margin: 0;
}

.claim-success {
    margin-top: 14px;
    font-weight: 700;
    color: var(--success);
}

.claim-loading {
    margin-top: 14px;
    font-weight: 700;
    color: var(--muted);
}

.section-logo {
    width: clamp(104px, 14vw, 150px);
    padding: 16px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(255, 209, 102, 0.18), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    animation: float-bob 6s ease-in-out infinite;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 8vw, 6rem);
    line-height: 0.88;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.logo-line-1 {
    display: block;
    color: var(--text);
    text-shadow: 0 0 30px rgba(106, 231, 255, 0.12);
}

.logo-line-2 {
    display: block;
    color: var(--accent);
    text-shadow: 0 0 24px rgba(255, 143, 61, 0.22);
}

.section-subtitle {
    max-width: 52ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.section-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.meta-pill {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn:focus-visible,
.lang-button:focus-visible,
.lang-select:focus-visible,
.form-group input:focus-visible {
    outline: 2px solid var(--accent-cool-strong);
    outline-offset: 3px;
}

.btn-primary {
    min-height: 54px;
    padding: 0 26px;
    border: 1px solid rgba(255, 209, 102, 0.55);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #07131a;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 18px;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    box-shadow: 0 18px 28px rgba(255, 143, 61, 0.22);
    overflow: hidden;
}

.btn-primary::after,
.btn-claim::after,
.btn-submit::after {
    content: "";
    position: absolute;
    inset: -10% auto -10% -30%;
    width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
    transform: skewX(-20deg) translateX(-180%);
    transition: transform 0.45s ease;
}

.btn-primary:hover,
.btn-claim:hover,
.btn-submit:hover {
    transform: translateY(-3px);
}

.btn-primary:hover::after,
.btn-claim:hover::after,
.btn-submit:hover::after {
    transform: skewX(-20deg) translateX(420%);
}

.hero-note {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(106, 231, 255, 0.18);
    background: rgba(7, 18, 24, 0.58);
    color: var(--accent-cool-strong);
    font-size: 0.92rem;
    font-weight: 700;
}

.social-proof {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.86rem;
    backdrop-filter: blur(16px);
}

.social-proof .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 14px rgba(105, 246, 184, 0.8);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

.ad-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 340px);
    margin: 16px auto 0;
    padding: 18px 10px 12px;
    border-radius: 20px;
    background: var(--card);
    border: 1px dashed rgba(106, 231, 255, 0.2);
    box-shadow: var(--shadow);
}

.ad-badge {
    position: absolute;
    top: 8px;
    left: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 143, 61, 0.16);
    border: 1px solid rgba(255, 143, 61, 0.4);
    color: var(--accent-strong);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ad-slot {
    width: 320px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner--wide {
    width: min(100%, 488px);
}

.ad-banner--leader {
    width: min(100%, 748px);
    margin: 24px auto 10px;
}

.ad-banner--grid {
    grid-column: 1 / -1;
}

.ad-slot--wide {
    width: 468px;
    height: 60px;
}

.ad-slot--leader {
    width: 728px;
    height: 90px;
}

.ad-slot--tall {
    width: 160px;
    height: 300px;
}

.ad-slot--medium {
    width: 300px;
    height: 250px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    perspective: 1200px;
}

.item-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    padding: 18px;
    border-radius: 26px;
    border: 1px solid var(--card-border);
    background: linear-gradient(180deg, rgba(13, 31, 42, 0.96), rgba(8, 20, 27, 0.98));
    box-shadow: var(--shadow);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.item-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-cool), var(--accent), transparent);
}

.item-card::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 143, 61, 0.18), transparent 72%);
    opacity: 0;
    transition: opacity 0.26s ease;
}

.item-card:hover {
    transform: translateY(-6px) rotateX(4deg);
    border-color: var(--card-border-strong);
    box-shadow: var(--shadow-glow);
}

.item-card:hover::after {
    opacity: 1;
}

.item-header {
    display: flex;
    justify-content: flex-start;
}

.stock-count {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(106, 231, 255, 0.2);
    background: rgba(106, 231, 255, 0.08);
    color: var(--accent-cool-strong);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.item-image {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    min-height: 148px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(circle at top, rgba(106, 231, 255, 0.14), transparent 52%),
        linear-gradient(180deg, rgba(16, 39, 51, 0.96), rgba(7, 17, 24, 0.98));
}

.item-image::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 16px;
    border: 1px dashed rgba(106, 231, 255, 0.15);
}

.item-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 126px;
    object-fit: contain;
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.34));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.item-card:hover .item-image img {
    transform: translateY(-6px) scale(1.04);
    filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.42));
}

.item-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 143, 61, 0.25), rgba(106, 231, 255, 0.08) 54%, transparent 72%);
    filter: blur(10px);
}

.claim-preview {
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(16, 39, 51, 0.96), rgba(8, 20, 27, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.claim-preview img {
    width: 100%;
    height: 160px;
    object-fit: contain;
}

.claim-steps {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.claim-steps .step {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
    font-weight: 600;
}

.trust-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.8rem;
}

.item-info {
    display: grid;
    gap: 2px;
    text-align: left;
}

.item-name {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn-claim,
.btn-submit {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 18px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.btn-claim {
    color: #07131a;
    border: 1px solid rgba(169, 247, 255, 0.6);
    background: linear-gradient(135deg, var(--accent-cool), var(--accent-cool-strong));
    box-shadow: 0 16px 28px rgba(106, 231, 255, 0.16);
}

.btn-claim:hover {
    box-shadow: 0 22px 34px rgba(106, 231, 255, 0.22);
}

.btn-submit {
    color: #07131a;
    border: 1px solid rgba(255, 209, 102, 0.6);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 18px 30px rgba(255, 143, 61, 0.18);
}

.btn-submit:hover {
    box-shadow: 0 24px 36px rgba(255, 143, 61, 0.24);
}

.btn-full {
    width: 100%;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 2000;
}

.claim-modal {
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 12, 0.78);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: min(92vw, 470px);
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(19, 47, 61, 0.98), rgba(8, 20, 27, 0.98));
    border: 1px solid rgba(106, 231, 255, 0.18);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.claim-modal .modal-content {
    width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 22px;
    text-align: left;
}

.claim-back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(106, 231, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.claim-back-button:hover {
    transform: translateY(-2px);
    border-color: rgba(106, 231, 255, 0.35);
}

.claim-modal .claim-page {
    min-height: auto;
    padding: 0;
    gap: 20px;
    align-items: stretch;
}

.claim-modal .claim-header {
    width: 100%;
    margin: 0;
}

.claim-modal .claim-card {
    width: min(100%, 560px);
    margin: 0 auto;
}

.claim-modal .claim-card .item-info,
.claim-modal .claim-card .item-name,
.claim-modal .claim-card .simple-modal-note {
    text-align: center;
}

.claim-modal .claim-subtitle {
    color: var(--accent-cool-strong);
    font-weight: 700;
}

.simple-modal-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 0.95;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.simple-modal-note {
    color: var(--muted);
    margin-bottom: 18px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(106, 231, 255, 0.16);
    background: rgba(2, 10, 14, 0.42);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder {
    color: rgba(159, 185, 198, 0.78);
}

.form-group input:focus {
    border-color: rgba(106, 231, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(106, 231, 255, 0.12);
    background: rgba(2, 10, 14, 0.66);
}

.error-message {
    min-height: 1.1rem;
    margin-top: 6px;
    color: var(--danger);
    font-size: 0.85rem;
}

.modal-footer {
    margin-top: 18px;
}

.ios-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
}

.ios-popup-background {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 12, 0.84);
    backdrop-filter: blur(8px);
}

.ios-popup-content {
    position: relative;
    z-index: 1;
    width: min(92vw, 430px);
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(19, 47, 61, 0.98), rgba(8, 20, 27, 0.98));
    border: 1px solid rgba(106, 231, 255, 0.18);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.ios-instruction-gif {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ios-instruction-text h3 {
    margin: 14px 0 8px;
    font-family: var(--font-display);
    font-size: 1.7rem;
    line-height: 0.95;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ios-instruction-text p {
    color: var(--muted);
}

.site-footer {
    margin-top: 42px;
    padding-top: 8px;
}

.footer-keywords {
    text-align: center;
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.animated-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-item-img {
    position: absolute;
    bottom: -220px;
    display: block;
    width: min(24vw, 220px);
    opacity: 0.08;
    animation: float-up var(--duration) linear infinite;
    animation-delay: var(--delay);
}

.bg-item-img img {
    display: block;
    width: 100%;
    height: auto;
    animation: spin-drift 7s ease-in-out infinite;
    filter: saturate(120%);
}

body.is-ready .section-header {
    animation: fade-rise 0.55s ease both;
}

body.is-ready .item-card {
    animation: card-in 0.5s ease both;
    animation-delay: calc(var(--card-index) * 60ms);
}

.items-grid .item-card:nth-child(1) { --card-index: 1; }
.items-grid .item-card:nth-child(2) { --card-index: 2; }
.items-grid .item-card:nth-child(3) { --card-index: 3; }
.items-grid .item-card:nth-child(4) { --card-index: 4; }
.items-grid .item-card:nth-child(5) { --card-index: 5; }
.items-grid .item-card:nth-child(6) { --card-index: 6; }
.items-grid .item-card:nth-child(7) { --card-index: 7; }
.items-grid .item-card:nth-child(8) { --card-index: 8; }
.items-grid .item-card:nth-child(9) { --card-index: 9; }
.items-grid .item-card:nth-child(10) { --card-index: 10; }
.items-grid .item-card:nth-child(11) { --card-index: 11; }
.items-grid .item-card:nth-child(12) { --card-index: 12; }
.items-grid .item-card:nth-child(13) { --card-index: 13; }
.items-grid .item-card:nth-child(14) { --card-index: 14; }

@keyframes float-bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-dot {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(105, 246, 184, 0.7);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 18px rgba(105, 246, 184, 0.95);
    }
}

@keyframes float-up {
    0% {
        transform: translate3d(0, 110vh, 0) rotate(0deg) scale(0.92);
        opacity: 0;
    }
    15% {
        opacity: 0.08;
    }
    100% {
        transform: translate3d(0, -130vh, 0) rotate(16deg) scale(1.06);
        opacity: 0;
    }
}

@keyframes spin-drift {
    0%,
    100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fade-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 900px) {
    .main-container {
        padding-top: 86px;
    }

    .wiki-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-logo {
        width: clamp(110px, 22vw, 150px);
    }

    .items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .claim-header {
        flex-direction: column;
        text-align: center;
    }

    .claim-modal .claim-header {
        padding: 18px;
    }
}

@media (max-width: 680px) {
    .lang-switcher {
        top: 12px;
        left: 12px;
        right: 12px;
        justify-content: space-between;
    }

    .wiki-hero {
        padding: 24px 18px;
    }

    .section-logo {
        width: clamp(140px, 34vw, 190px);
    }

    .wiki-top {
        align-items: center;
        text-align: center;
    }

    .wiki-title {
        justify-items: center;
        text-align: center;
    }

    .section-subtitle {
        max-width: 34ch;
    }

    .section-meta,
    .hero-actions {
        justify-content: center;
    }

    .btn-primary,
    .hero-note {
        width: 100%;
    }

    .item-card {
        padding: 16px;
    }

    .item-info {
        text-align: center;
    }

    .footer-keywords {
        letter-spacing: 0.08em;
    }
}

@media (max-width: 520px) {
    .modal {
        align-items: flex-start;
    }

    .main-container {
        padding-inline: 14px;
        padding-bottom: 72px;
    }

    .section-logo {
        width: clamp(160px, 46vw, 210px);
    }

    .items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .item-card {
        padding: 12px;
    }

    .item-image {
        min-height: 112px;
        padding: 12px;
    }

    .item-name {
        font-size: 1.1rem;
    }

    .stock-count,
    .btn-claim,
    .btn-submit {
        font-size: 0.72rem;
    }

    .modal-content,
    .ios-popup-content {
        padding: 22px 18px;
    }

    .claim-modal {
        padding: 12px;
    }

    .claim-modal .modal-content {
        width: 100%;
        max-height: none;
        min-height: calc(100vh - 24px);
        min-height: calc(100dvh - 24px);
        padding: 16px;
        border-radius: 24px;
    }

    .claim-back-button {
        width: 100%;
        justify-content: center;
        margin-bottom: 14px;
    }

    .claim-modal .claim-header {
        padding: 16px;
    }

    .claim-modal .claim-card {
        width: 100%;
    }

    .footer-keywords {
        display: none;
    }
}

[dir="rtl"] .lang-switcher {
    left: 16px;
    right: auto;
}

[dir="rtl"] .wiki-title,
[dir="rtl"] .item-info {
    text-align: right;
}

[dir="rtl"] .section-meta,
[dir="rtl"] .hero-actions {
    justify-content: flex-end;
}

[dir="rtl"] .wiki-label {
    margin-left: 0;
    margin-right: 0;
}
