/* CRAVE — только для app.html. Подключается один stylesheet: app.css.
   Лендинг: index.html + style.css — не смешивать и не импортировать сюда. */

:root {
    color-scheme: dark;
}

body {
    margin: 0;
    background: #000;
    display: flex;
    justify-content: center;
    color: #e7e7e7;
    font-family: "Cormorant Garamond", serif;
}

.app-container,
.app-container *,
.app-container *::before,
.app-container *::after {
    box-sizing: border-box;
}

.app-container {
    width: 100%;
    max-width: 450px;
    background: #0a0a0a;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding: 16px 0 24px;
}

.app-container .app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    min-height: 42px;
}

.app-container .app-header-spacer {
    width: 64px;
}

.app-container .app-logo {
    margin: 0;
    font-family: "Libre Baskerville", serif;
    letter-spacing: 0.14em;
    color: #9f1212;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-align: center;
    flex: 1;
}

.app-container .app-balance {
    min-width: 64px;
    text-align: right;
    color: #c73030;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: "Libre Baskerville", serif;
}

.app-container .app-title {
    margin: 18px 0 16px;
    text-align: center;
    color: #b91c1c;
    font-family: "Libre Baskerville", serif;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Сетка приложения — имя не пересекается с .characters-grid лендинга (style.css). */
.app-container .app-characters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 15px;
}

.app-container .app-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #141414;
    text-decoration: none;
    color: inherit;
    isolation: isolate;
    clip-path: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.app-container .app-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border: none;
    border-radius: 0;
    clip-path: none;
    -webkit-mask-image: none;
    mask-image: none;
    z-index: 0;
}

.app-container .app-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 0;
}

.app-container .app-card-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.app-container .app-card-desc {
    margin: 0;
    order: 1;
    color: #cfcfcf;
    font-size: 0.86rem;
    line-height: 1.25;
}

.app-container .app-card-name {
    margin: 0;
    order: 2;
    color: #f1f1f1;
    font-family: "Libre Baskerville", serif;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.app-container .app-footer {
    margin-top: 18px;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.app-container .app-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.74rem;
    line-height: 1.2;
    text-align: center;
}

.app-container .app-nav a {
    text-decoration: none;
}

.app-container .app-nav-shop {
    color: #d2a85f;
}

.app-container .app-nav-account {
    color: #969696;
}

.app-container .app-nav-portal {
    color: #5f1d1d;
}

.app-container .app-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Libre Baskerville", serif;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.app-container .app-lang-btn {
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.app-container .app-lang-active {
    color: #fff;
    font-weight: 700;
}

.app-container .app-lang-inactive {
    color: #818181;
    font-weight: 400;
}

.app-container .app-exit {
    border: 0;
    background: none;
    color: #b01212;
    font-family: "Libre Baskerville", serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}
