:root {
    --bg: #fff6ef;
    --bg-deep: #ffe3d2;
    --card: rgba(255, 250, 245, 0.74);
    --line: rgba(97, 52, 24, 0.12);
    --text: #4d2a1a;
    --muted: #8b5e47;
    --accent-strong: #f26457;
    --game-bg: #081322;
    --game-line: rgba(119, 179, 255, 0.12);
    --game-text: #eef6ff;
    --game-muted: #8eabc8;
    --game-gold: #f2cb70;
    --shadow: 0 24px 60px rgba(129, 69, 34, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 38%),
    linear-gradient(135deg, var(--bg) 0%, #ffe8dc 48%, var(--bg-deep) 100%);
}

a {
    color: inherit;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, rgba(255, 143, 112, 0.65), rgba(242, 100, 87, 0.28));
    opacity: 0.75;
    border-radius: 36% 64% 59% 41% / 38% 45% 55% 62%;
    z-index: 0;
    animation: drift 14s ease-in-out infinite;
}

body::before {
    top: 8%;
    left: -48px;
}

body::after {
    right: -36px;
    bottom: 8%;
    animation-delay: -7s;
}

.page-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: 0;
}

.page-glow-left {
    top: 12%;
    left: 8%;
    background: rgba(255, 190, 150, 0.9);
}

.page-glow-right {
    right: 6%;
    bottom: 14%;
    background: rgba(255, 139, 136, 0.8);
}

.topbar {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 28px));
    margin: 18px auto 0;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 252, 249, 0.72);
    border: 1px solid rgba(99, 55, 29, 0.08);
    box-shadow: 0 12px 28px rgba(144, 93, 59, 0.12);
    backdrop-filter: blur(16px);
}

.brand {
    font-family: "Palatino Linotype", "Book Antiqua", serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #6b412f;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(107, 65, 47, 0.12);
    box-shadow: 0 8px 18px rgba(144, 93, 59, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(144, 93, 59, 0.18);
    outline: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-link-vk:hover,
.social-link-vk:focus-visible {
    color: #0077ff;
}

.social-link-instagram:hover,
.social-link-instagram:focus-visible {
    color: #e4405f;
}

.social-link-telegram:hover,
.social-link-telegram:focus-visible {
    color: #229ed9;
}

.social-link-tiktok:hover,
.social-link-tiktok:focus-visible {
    color: #111111;
}

.page {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 28px));
    margin: 22px auto 40px;
    display: grid;
    gap: 24px;
}

.panel {
    position: relative;
    padding: 34px;
    border-radius: 32px;
    border: 1px solid var(--line);
    background: var(--card);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    animation: rise 0.8s ease-out both;
}

.panel-sticker {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(242, 100, 87, 0.16);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(130, 75, 43, 0.12);
    color: #9a5260;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    backdrop-filter: blur(12px);
}

.sticker-emoji {
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    font-size: 2rem;
    letter-spacing: 0;
    text-transform: none;
}

.sticker-intro-love {
    top: 22px;
    right: 26px;
    transform: rotate(8deg);
}

.sticker-intro-kiss {
    left: -10px;
    bottom: 26px;
    transform: rotate(-12deg);
}

.sticker-intro-cat {
    top: 52%;
    right: -12px;
    transform: rotate(15deg);
}

.sticker-intro-flower {
    bottom: 90px;
    left: 12px;
    transform: rotate(-8deg);
}

.sticker-stats-heart {
    top: 22px;
    right: 26px;
    transform: rotate(8deg);
}

.sticker-stats-star {
    bottom: 36px;
    right: 22px;
    transform: rotate(-10deg);
}

.sticker-stats-trophy {
    top: 48%;
    left: 14px;
    transform: rotate(-6deg);
}

.sticker-timer-heart {
    top: 20px;
    right: 28px;
    transform: rotate(-7deg);
}

.sticker-timer-sparkle {
    top: 42%;
    right: 18px;
    transform: rotate(14deg);
}

.sticker-timer-cat {
    bottom: 72px;
    left: 28px;
    transform: rotate(-5deg);
}

.sticker-timer-love {
    left: 18px;
    bottom: 18px;
    transform: rotate(10deg);
}

.eyebrow {
    margin: 0;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--accent-strong);
}

.eyebrow-game {
    color: #ff96a2;
}

h1,
h2 {
    margin: 10px 0 14px;
    font-family: "Palatino Linotype", "Book Antiqua", serif;
    line-height: 1;
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.1rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.lead {
    max-width: 580px;
    margin: 0 0 28px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
}

.intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 26px;
    align-items: center;
}

.intro-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.note-card {
    padding: 18px;
    min-height: 96px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(242, 100, 87, 0.14);
    color: var(--muted);
    box-shadow: 0 10px 24px rgba(130, 75, 43, 0.08);
}

.photo-stage {
    position: relative;
    padding: 10px 12px 36px 0;
}

.photo-stage::before {
    content: "";
    position: absolute;
    inset: 22px -10px -12px 48px;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(255, 181, 145, 0.55), rgba(242, 100, 87, 0.18));
    filter: blur(8px);
}

.photo-frame {
    position: relative;
    padding: 18px;
    border-radius: 30px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 237, 226, 0.9));
    border: 1px solid rgba(242, 100, 87, 0.18);
    transform: rotate(2deg);
    box-shadow: 0 28px 50px rgba(132, 76, 48, 0.18);
}

.photo-placeholder {
    position: relative;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(8, 19, 34, 0.32)),
    linear-gradient(145deg, #ffd4bc, #ffbcae 42%, #ff9d98);
    color: #fff8f5;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

.photo-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(11, 21, 35, 0.08) 42%, rgba(11, 21, 35, 0.48) 100%);
}

.photo-main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-chip {
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.photo-placeholder p {
    margin: auto 0 8px;
    font-family: "Palatino Linotype", "Book Antiqua", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.photo-hint {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(64, 34, 28, 0.24);
    backdrop-filter: blur(10px);
    color: rgba(255, 248, 245, 0.82);
}

.photo-mini-frame {
    position: absolute;
    right: -6px;
    bottom: 0;
    width: min(44%, 230px);
    z-index: 2;
    transform: rotate(-8deg);
}

.photo-mini-card {
    padding: 12px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 237, 226, 0.92));
    border: 1px solid rgba(242, 100, 87, 0.18);
    box-shadow: 0 20px 38px rgba(132, 76, 48, 0.18);
}

.photo-mini-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
}

.photo-mini-note {
    display: inline-block;
    margin-top: 10px;
    margin-left: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(242, 100, 87, 0.14);
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.stats-panel {
    color: var(--game-text);
    background: radial-gradient(circle at top right, rgba(255, 86, 103, 0.2), transparent 22%),
    linear-gradient(180deg, rgba(7, 18, 32, 0.96), rgba(8, 19, 34, 0.94));
    border-color: rgba(126, 162, 208, 0.14);
    box-shadow: 0 28px 80px rgba(6, 14, 25, 0.35);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 24px;
}

.section-heading h2,
.stats-panel h3 {
    color: var(--game-text);
}

.stats-status {
    margin: 0;
    color: var(--game-muted);
    text-align: right;
}

.stats-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 18px;
}

.overview-card,
.sub-card {
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(18, 35, 56, 0.9), rgba(10, 24, 40, 0.92));
    border: 1px solid var(--game-line);
}

.player-banner {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.player-avatar {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-family: "Palatino Linotype", "Book Antiqua", serif;
    font-size: 2rem;
    background: linear-gradient(145deg, rgba(255, 86, 103, 0.9), rgba(255, 165, 79, 0.72));
    color: white;
    box-shadow: 0 16px 34px rgba(255, 86, 103, 0.24);
    overflow: hidden;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-label,
.player-handle,
.sub-card-kicker {
    margin: 0;
    color: var(--game-muted);
}

.player-handle[hidden] {
    display: none;
}

.player-banner h3 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.hero-stats {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.level-card,
.record-card,
.metric-card,
.detail-item {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(154, 201, 255, 0.08);
}

.level-card {
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mini-label {
    color: var(--game-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.level-card strong {
    margin-top: 10px;
    font-family: inherit;
    font-size: clamp(2.2rem, 5vw, 3.3rem);
    font-weight: 700;
    color: #fff4cf;
}

.record-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    overflow: hidden;
}

.record-line {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.record-line strong {
    margin-top: 6px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--game-text);
}

.headline-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.metric-card,
.detail-item {
    padding: 18px;
}

.metric-card span,
.detail-item span {
    display: block;
    color: var(--game-muted);
    margin-bottom: 8px;
}

.metric-card strong {
    font-size: 2rem;
    color: #fff6d6;
}

.detail-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.detail-item strong {
    font-size: 1.35rem;
    color: var(--game-text);
}

.stats-side {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sub-card-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    margin-bottom: 14px;
}

.sub-card-head h3 {
    margin: 0;
}

.sub-card {
    display: flex;
    flex-direction: column;
}

.agents-table,
.maps-list {
    flex: 1 1 auto;
}

.agents-table-head,
.agent-row {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.7fr 0.7fr;
    gap: 10px;
    align-items: center;
}

.agents-table-head {
    padding: 0 0 12px;
    color: var(--game-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.agent-row {
    padding: 16px 0;
    border-top: 1px solid rgba(154, 201, 255, 0.08);
}

.agent-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.entity-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.agent-name small {
    color: var(--game-muted);
}

.entity-media {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(154, 201, 255, 0.08);
}

.entity-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entity-fallback {
    font-family: "Palatino Linotype", "Book Antiqua", serif;
    font-size: 1.2rem;
    color: #fff2d0;
}

.agent-row-empty,
.map-row-empty {
    display: block;
}

.maps-list {
    display: grid;
    gap: 12px;
}

.map-row {
    padding: 14px 0;
    border-radius: 0;
    border: 0;
    border-top: 1px solid rgba(154, 201, 255, 0.08);
    background: transparent;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.map-row-visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 14px 16px;
    border-radius: 22px;
    border: 1px solid rgba(154, 201, 255, 0.14);
    background: linear-gradient(135deg, rgba(6, 18, 40, 0.72), rgba(6, 18, 40, 0.54)),
    rgba(8, 19, 40, 0.8);
}

.map-row-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--map-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.map-row-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(3, 10, 24, 0.78) 0%, rgba(3, 10, 24, 0.52) 45%, rgba(3, 10, 24, 0.78) 100%),
    linear-gradient(180deg, rgba(10, 18, 36, 0.1), rgba(10, 18, 36, 0.28));
}

.map-main,
.map-side {
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-side {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 4px;
}

.map-media {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.map-row strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--game-text);
}

.map-row span {
    color: var(--game-muted);
}

.map-rate {
    color: var(--game-gold);
    font-size: 1.05rem;
    font-weight: 700;
}

.map-main .entity-copy {
    justify-content: center;
}

.map-main .entity-copy span {
    font-size: 0.95rem;
}

.map-row-visual strong,
.map-row-visual span {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.map-row-visual .entity-copy,
.map-row-visual .map-side {
    position: relative;
    z-index: 1;
}

.map-row-visual .entity-copy span,
.map-row-visual .map-side span {
    color: rgba(232, 243, 255, 0.82);
}

.timer-panel {
    background: radial-gradient(circle at top left, rgba(255, 193, 164, 0.34), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 247, 0.9), rgba(255, 243, 236, 0.96));
}

.timer-heading h2 {
    color: var(--text);
}

.timer-copy {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 10px;
}

.timer-copy p {
    margin: 0 0 10px;
}


.love-note {
    margin: 32px 0 0;
    padding: 18px 24px;
    background: rgba(255, 200, 180, 0.13);
    border: 1px solid rgba(200, 120, 100, 0.18);
    border-radius: 16px;
    color: rgba(107, 65, 47, 0.85);
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 0.01em;
    text-align: center;
}


.counter {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 143, 112, 0.15);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.time-box {
    padding: 16px 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(77, 42, 26, 0.08);
    text-align: center;
}

.time-value {
    display: block;
    font-family: "Palatino Linotype", "Book Antiqua", serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--accent-strong);
}

.time-label {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(20px, -18px, 0) rotate(10deg);
    }
}

@media (max-width: 820px) {
    .topbar,
    .page {
        width: min(100% - 20px, 1180px);
    }

    .panel {
        padding: 26px 20px;
    }

    .intro-panel,
    .stats-layout {
        grid-template-columns: 1fr;
    }

    .intro-notes,
    .headline-metrics,
    .detail-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .photo-placeholder {
        min-height: 320px;
    }

    .photo-mini-frame {
        right: 10px;
        width: min(40%, 210px);
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

.time-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .topbar {
        margin-top: 12px;
        padding: 12px 14px;
    }

    .social-links {
        gap: 8px;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }

    .panel-sticker {
        display: none;
    }

    .page {
        margin-top: 16px;
        margin-bottom: 24px;
        gap: 16px;
    }

    .panel {
        border-radius: 26px;
        padding: 22px 16px;
    }

    .photo-stage {
        padding: 4px 0 0;
    }

    .photo-mini-frame {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(62%, 220px);
        margin: -30px 0 0 auto;
    }

    .intro-notes,
    .headline-metrics,
    .detail-metrics {
        grid-template-columns: 1fr;
    }

    .agents-table-head,
    .agent-row {
        grid-template-columns: 1.1fr 0.7fr 0.7fr 0.7fr;
        font-size: 0.86rem;
    }

    .map-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .map-side {
        align-items: flex-start;
        text-align: left;
    }

    .counter {
        padding: 18px 14px;
    }

    .time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
