:root {
    --bg-1: #0c1120;
    --bg-2: #11172b;
    --bg-3: #1b2340;
    --panel: rgba(18, 24, 45, 0.82);
    --panel-border: rgba(255, 255, 255, 0.09);
    --text: #f5f7ff;
    --muted: #aab4d8;
    --soft: #7782a8;
    --gold: #ffd571;
    --accent: #57a8ff;
    --danger: #ff6767;
    --success: #5fd484;
    --shadow-xl: 0 26px 70px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.35);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --paper: #efe0bf;
    --paper-ink: #2a241b;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 124, 88, 0.15), transparent 20%),
        radial-gradient(circle at 85% 20%, rgba(93, 201, 255, 0.15), transparent 18%),
        radial-gradient(circle at 35% 85%, rgba(255, 213, 113, 0.12), transparent 20%),
        linear-gradient(135deg, var(--bg-1), var(--bg-2) 48%, var(--bg-3));
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.35;
    pointer-events: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: none;
    cursor: pointer;
}

#game-container {
    position: relative;
    min-height: 100vh;
}

.ambient {
    position: fixed;
    border-radius: 999px;
    filter: blur(26px);
    opacity: 0.45;
    pointer-events: none;
    animation: drift 16s ease-in-out infinite;
}

.ambient-one {
    width: 240px;
    height: 240px;
    top: -40px;
    left: -90px;
    background: rgba(255, 117, 84, 0.28);
}

.ambient-two {
    width: 280px;
    height: 280px;
    top: 28%;
    right: -70px;
    background: rgba(87, 168, 255, 0.26);
    animation-delay: -6s;
}

.ambient-three {
    width: 220px;
    height: 220px;
    bottom: -40px;
    left: 22%;
    background: rgba(255, 213, 113, 0.18);
    animation-delay: -11s;
}

.screen {
    display: none;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.screen.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeUp 260ms ease;
}

.panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(18px);
}

.eyebrow,
.panel-kicker,
.preview-paper-kicker,
.news-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--gold);
}

.menu-shell {
    width: min(1320px, calc(100vw - 44px));
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 26px;
    align-items: stretch;
}

.menu-copy,
.preview-phone,
.preview-paper,
.info-container,
.game-hud,
.victim-panel,
.results-panel,
.dialog-container,
.exit-container {
    padding: 28px;
}

.menu-copy h1 {
    font-family: Georgia, "Times New Roman", serif;
    margin: 8px 0 14px;
    font-size: clamp(2.7rem, 5vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
}

.tagline {
    margin: 0;
    max-width: 38rem;
    color: var(--muted);
    line-height: 1.6;
    font-size: 1.08rem;
}

.menu-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.menu-btn,
.back-btn,
.game-menu-btn,
.news-btn,
.news-action-btn,
.next-victim-btn,
.hangup-btn {
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.menu-btn:hover,
.back-btn:hover,
.game-menu-btn:hover,
.news-btn:hover,
.news-action-btn:hover,
.next-victim-btn:hover,
.hangup-btn:hover,
.call-btn:hover,
.svc-btn:hover,
.dial-btn:hover {
    transform: translateY(-2px);
}

.play-btn {
    background: linear-gradient(135deg, #57d67b, #169454);
    color: white;
    box-shadow: 0 10px 24px rgba(22, 148, 84, 0.35);
}

.howto-btn {
    background: linear-gradient(135deg, #46b8ff, #196ddf);
    color: white;
}

.credits-btn {
    background: linear-gradient(135deg, #ad7aff, #7046e5);
    color: white;
}

.exit-btn,
.hangup-btn {
    background: linear-gradient(135deg, #ff7b70, #d73434);
    color: white;
}

.menu-stats,
.victim-meta-grid,
.credits-grid {
    display: grid;
    gap: 14px;
}

.menu-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.menu-stat-card,
.meta-card,
.hud-chip,
.instruction-card,
.credit-section {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 18px;
}

.menu-stat-card span,
.meta-card span,
.hud-chip span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--soft);
    margin-bottom: 8px;
}

.menu-stat-card strong,
.meta-card strong,
.hud-chip strong {
    display: block;
    font-size: 1.08rem;
}

.hud-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.menu-preview {
    display: grid;
    gap: 26px;
}

.preview-phone {
    min-height: 388px;
}

.preview-phone-frame {
    width: min(100%, 300px);
    margin: 0 auto;
    padding: 9px;
    border-radius: 38px;
    background: linear-gradient(160deg, #dadfeb, #8e9abb 48%, #3c4764 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--shadow-lg);
}

.preview-notch {
    width: 126px;
    height: 22px;
    border-radius: 0 0 14px 14px;
    background: #0b0f19;
    margin: 0 auto 12px;
}

.preview-screen {
    min-height: 320px;
    border-radius: 28px;
    padding: 14px;
    background: linear-gradient(180deg, #111626, #1a2341 60%, #101726);
}

.preview-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.76);
}

.preview-caller {
    height: 142px;
    border-radius: 20px;
    margin-top: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
        rgba(255, 255, 255, 0.05);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.preview-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.preview-service {
    height: 58px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 -40px 60px rgba(0, 0, 0, 0.2);
}

.preview-paper {
    min-height: 230px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.06), transparent),
        rgba(246, 234, 206, 0.12);
}

.preview-paper h2 {
    margin: 10px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.preview-paper-headline {
    margin: 0;
    color: #f4f0e6;
    line-height: 1.45;
}

.preview-paper-image {
    height: 110px;
    margin-top: 16px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-container {
    width: min(920px, calc(100vw - 42px));
}

.info-container h2,
.exit-container h2 {
    margin: 0 0 22px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3rem);
}

.info-grid,
.credits-grid {
    display: grid;
    gap: 14px;
}

.instruction-card,
.credit-section {
    display: flex;
    gap: 16px;
    align-items: start;
}

.instruction-card p,
.credit-section p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.step-number {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd571, #ff9f43);
    color: #1a1320;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.highlight {
    color: var(--gold);
    font-size: 1.25rem;
    font-weight: 700;
}

.version,
.credits-line {
    color: var(--gold);
}

#game-screen.active {
    display: block;
    padding: 18px;
}

.game-shell {
    width: min(1440px, 100%);
    margin: 0 auto;
}

.game-hud {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 18px;
}

.meter-chip,
.hud-status-chip {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hud-meter {
    width: 100%;
    height: 10px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-meter-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width 220ms ease, background 220ms ease;
}

.chaos-meter-fill {
    background: linear-gradient(90deg, #ff9347, #ffd25d);
}

.suspicion-meter-fill {
    background: linear-gradient(90deg, #4fb3ff, #ff7070);
}

.game-menu-btn {
    align-self: stretch;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.game-layout {
    display: grid;
    grid-template-columns: 300px minmax(340px, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.panel-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.panel-heading h3 {
    margin: 0;
    font-size: 1.2rem;
}

.victim-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.victim-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.24)),
        linear-gradient(135deg, #4a5577, #1a1f31);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.victim-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 40%, rgba(0, 0, 0, 0.2));
}

.portrait-label,
.portrait-id {
    position: absolute;
    z-index: 1;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(12, 14, 25, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portrait-label {
    top: 12px;
    left: 12px;
}

.portrait-id {
    right: 12px;
    bottom: 12px;
}

.victim-info {
    margin-top: 14px;
}

.victim-info p {
    margin: 0 0 8px;
}

.victim-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}

.victim-address {
    color: var(--muted);
    line-height: 1.5;
}

.victim-desc {
    color: var(--soft);
    font-style: italic;
}

.victim-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
    margin-bottom: 14px;
}

.next-victim-btn,
.news-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff8f63, #ef5a4f);
    color: white;
    box-shadow: 0 12px 24px rgba(239, 90, 79, 0.28);
}

.results-button-row {
    display: flex;
    gap: 10px;
}

.results-button-row .news-btn {
    width: auto;
    flex: 1.3;
}

.secondary-action-btn {
    flex: 0.8;
    border-radius: 999px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.secondary-action-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 213, 113, 0.32);
}

.phone-container {
    display: flex;
    justify-content: center;
}

.smartphone {
    position: relative;
    width: 100%;
    max-width: 336px;
}

.smartphone.ringing {
    animation: ringWobble 260ms ease 4;
}

.phone-frame {
    position: relative;
    padding: 10px;
    border-radius: 40px;
    background: linear-gradient(155deg, #dce2ef, #9ea8bf 40%, #4f5870);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 26px 70px rgba(0, 0, 0, 0.5);
}

.phone-notch {
    width: 120px;
    height: 22px;
    margin: 0 auto 10px;
    border-radius: 0 0 14px 14px;
    background: #0b0f19;
}

.phone-screen {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #0d1222, #151d35 52%, #0f1426);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 7px 16px 5px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.74);
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1c7bff, #0f47a8);
    color: white;
    font-weight: 700;
}

.app-subtitle {
    font-size: 0.74rem;
    opacity: 0.82;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.call-display {
    position: relative;
    min-height: 152px;
    margin: 12px 12px 8px;
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.3)),
        linear-gradient(135deg, #222b47, #121726);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.call-hero-art {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.08) contrast(1.02);
}

.call-hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 22, 0.2), rgba(8, 12, 22, 0.68)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 45%);
}

.call-info {
    position: relative;
    z-index: 1;
    min-height: 152px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.call-tag {
    margin: 0 0 10px;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d7e7ff;
}

.calling-number {
    margin: 0 0 8px;
    font-size: 1.72rem;
    font-weight: 300;
    letter-spacing: 0.08em;
}

.calling-status {
    margin: 0;
    color: #b8c4e8;
}

.dialer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 16px;
}

.dial-btn {
    width: 66px;
    height: 66px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.38rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.dial-btn span {
    margin-top: 4px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.62);
}

.dial-btn:active {
    transform: scale(0.96);
}

.call-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 8px 16px 12px;
}

.call-btn {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.call-start {
    background: linear-gradient(135deg, #52da82, #148e54);
    box-shadow: 0 12px 24px rgba(20, 142, 84, 0.32);
}

.call-end {
    background: linear-gradient(135deg, #ff786f, #d53e3e);
    box-shadow: 0 12px 24px rgba(213, 62, 62, 0.3);
}

.quick-services {
    margin: 0 12px 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-services p {
    margin: 0 0 10px;
    color: var(--soft);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.phone-utility-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.utility-btn {
    width: 100%;
    border-radius: 999px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.utility-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 213, 113, 0.32);
}

.service-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.svc-btn {
    position: relative;
    min-height: 82px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    box-shadow: inset 0 -48px 48px rgba(0, 0, 0, 0.24);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.svc-btn:hover {
    border-color: rgba(255, 213, 113, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), inset 0 -48px 48px rgba(0, 0, 0, 0.28);
}

.svc-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.88;
}

.svc-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.56)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 45%);
}

.svc-label {
    position: relative;
    z-index: 1;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-bar {
    width: 108px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    margin: 10px auto 4px;
}

.phone-reflection {
    position: absolute;
    inset: 0;
    border-radius: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 38%);
    pointer-events: none;
}

.highlight-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.highlight-art {
    min-height: 110px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.3)),
        linear-gradient(135deg, #394263, #171d31);
    background-size: cover;
    background-position: center;
}

.highlight-tag {
    margin: 0 0 8px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.highlight-copy h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.3;
}

.highlight-copy p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.call-log {
    min-height: 360px;
    max-height: 430px;
    overflow-y: auto;
    padding-right: 6px;
}

.call-entry {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.call-entry-art {
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    min-height: 82px;
}

.call-entry-service {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.call-entry-service strong {
    color: var(--gold);
}

.call-entry-time {
    color: var(--soft);
}

.call-entry-business,
.call-entry-victim,
.call-entry-score {
    margin: 0 0 6px;
    color: var(--muted);
    line-height: 1.45;
}

.call-entry-score {
    margin-bottom: 0;
    color: #d8efff;
}

.dialog-screen {
    background: rgba(3, 5, 12, 0.88);
}

.directory-list,
.archive-list {
    display: grid;
    gap: 14px;
}

.directory-card,
.archive-card {
    display: grid;
    gap: 14px;
    border-radius: var(--radius-lg);
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.directory-card {
    grid-template-columns: 94px 1fr auto;
    align-items: center;
}

.archive-card {
    grid-template-columns: 112px 1fr auto;
    align-items: center;
}

.directory-art,
.archive-art {
    min-height: 88px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
}

.directory-copy h3,
.archive-copy h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.directory-copy p,
.archive-copy p {
    margin: 0 0 5px;
    color: var(--muted);
    line-height: 1.45;
}

.directory-label,
.archive-meta {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
}

.directory-call-btn,
.archive-open-btn {
    border-radius: 999px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #1c7bff, #0f47a8);
    color: white;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.dialog-container {
    width: min(680px, calc(100vw - 34px));
    overflow: hidden;
}

.caller-id {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.caller-avatar {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.28)),
        linear-gradient(135deg, #334265, #13192b);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.caller-name {
    margin: 0 0 6px;
    font-size: 1.3rem;
    font-weight: 700;
}

.caller-status {
    margin: 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
}

.dialog-history {
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
}

.message {
    max-width: 82%;
    border-radius: 20px;
    padding: 12px 16px;
    line-height: 1.55;
}

.message.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 6px;
}

.message.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, #1b7cff, #0c4cb1);
    border-bottom-right-radius: 6px;
}

.dialog-choices {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.choice-btn {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.choice-btn:hover {
    background: rgba(27, 124, 255, 0.2);
    border-color: rgba(27, 124, 255, 0.5);
    transform: translateX(5px);
}

.hangup-btn {
    margin-top: 18px;
    width: 100%;
}

#newspaper {
    background: linear-gradient(180deg, #ede1bf 0%, #e0cea0 100%);
    overflow-y: auto;
}

.newspaper-container {
    width: min(860px, calc(100vw - 32px));
    margin: 28px auto;
    padding: 34px;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.018),
            rgba(0, 0, 0, 0.018) 2px,
            transparent 2px,
            transparent 8px
        ),
        var(--paper);
    border-radius: 10px;
    color: var(--paper-ink);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

.newspaper-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 3px double rgba(42, 36, 27, 0.45);
}

.newspaper-date,
.newspaper-subtitle,
.byline {
    margin: 0;
    color: rgba(42, 36, 27, 0.72);
}

.newspaper-date,
.newspaper-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
}

.newspaper-title,
.newspaper-headline {
    margin: 12px 0 0;
    font-family: Georgia, "Times New Roman", serif;
}

.newspaper-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: 0.08em;
}

.newspaper-headline-wrap {
    margin: 24px 0 18px;
    text-align: center;
}

.news-kicker {
    color: rgba(42, 36, 27, 0.68);
}

.newspaper-headline {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
    text-transform: uppercase;
}

.newspaper-photo {
    min-height: 330px;
    border: 2px solid rgba(42, 36, 27, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.12)),
        linear-gradient(135deg, #a8bad8, #7b8ba8);
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
}

.news-photo-layout {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr;
    min-height: 330px;
}

.news-photo-main,
.news-photo-side {
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-photo-main::after,
.news-photo-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.24));
}

.news-photo-side {
    border-left: 2px solid rgba(42, 36, 27, 0.28);
}

.news-photo-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 1;
    background: rgba(16, 18, 24, 0.72);
    color: white;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.newspaper-article {
    line-height: 1.8;
    font-family: Georgia, "Times New Roman", serif;
}

.byline {
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(42, 36, 27, 0.18);
    font-style: italic;
}

.article-text p {
    margin: 0;
    text-align: justify;
    font-size: 1.04rem;
}

.article-text p::first-letter {
    float: left;
    font-size: 3rem;
    line-height: 0.9;
    padding-right: 8px;
    font-family: Georgia, "Times New Roman", serif;
}

.newspaper-footer {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 2px solid rgba(42, 36, 27, 0.28);
}

.news-action-btn {
    background: #2a241b;
    color: var(--paper);
}

#exit-screen {
    background: linear-gradient(180deg, rgba(10, 12, 20, 0.86), rgba(10, 12, 20, 0.96));
}

.exit-container {
    width: min(520px, calc(100vw - 34px));
    text-align: center;
}

.end-actions {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.end-actions .back-btn,
.end-actions .secondary-action-btn {
    width: 100%;
    margin-top: 0;
}

.exit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
    margin-bottom: 18px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.exit-container p {
    color: var(--muted);
}

.back-btn {
    width: 100%;
    margin-top: 22px;
    background: linear-gradient(135deg, #474f66, #2a3144);
    color: white;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(13, 17, 31, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 20;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 213, 113, 0.42);
    border-radius: 999px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -18px, 0) scale(1.05);
    }
}

@keyframes ringWobble {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-1.2deg);
    }
    75% {
        transform: rotate(1.2deg);
    }
}

@media (max-width: 1240px) {
    .menu-shell,
    .game-layout {
        grid-template-columns: 1fr;
    }

    .menu-preview {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 860px) {
    .menu-shell,
    .info-container,
    .newspaper-container {
        width: calc(100vw - 26px);
    }

    .menu-preview,
    .menu-stats,
    .game-hud,
    .victim-meta-grid,
    .credits-grid {
        grid-template-columns: 1fr;
    }

    .highlight-card {
        grid-template-columns: 1fr;
    }

    .game-layout {
        gap: 16px;
    }

    .phone-screen {
        min-height: auto;
    }

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

    .directory-card,
    .archive-card {
        grid-template-columns: 1fr;
    }

    .results-button-row,
    .phone-utility-row {
        flex-direction: column;
    }

    .newspaper-footer {
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    #game-screen.active {
        padding: 12px;
    }

    .menu-copy,
    .preview-phone,
    .preview-paper,
    .info-container,
    .victim-panel,
    .results-panel,
    .dialog-container,
    .exit-container,
    .game-hud {
        padding: 20px;
    }

    .preview-phone-frame,
    .smartphone {
        max-width: 100%;
    }

    .dial-btn,
    .call-btn {
        width: 62px;
        height: 62px;
    }

    .news-photo-layout {
        grid-template-columns: 1fr;
    }

    .news-photo-side {
        min-height: 160px;
        border-left: none;
        border-top: 2px solid rgba(42, 36, 27, 0.28);
    }
}
