:root {
    --ink: #17131f;
    --paper: #fff8e8;
    --acid: #d9ff47;
    --pink: #ff3ea5;
    --blue: #5b68ff;
    --orange: #ff7a00;
    --line: 2px;
    --shadow: 4px 4px 0 var(--ink);
    --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 10%, rgba(255,62,165,.13) 0 2px, transparent 2.5px) 0 0/18px 18px,
        var(--paper);
    font-family: "Pretendard", "Noto Sans KR", "Hiragino Kaku Gothic ProN", "Yu Gothic", Arial, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: var(--line) solid var(--ink);
    background: rgba(255,248,232,.93);
    backdrop-filter: blur(12px);
}

.header-inner {
    width: min(1080px, calc(100% - 28px));
    min-height: 58px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 1000;
    font-size: clamp(1.08rem, 2.3vw, 1.3rem);
    letter-spacing: -.06em;
}

.brand-mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    transform: rotate(-5deg);
    border: 2px solid var(--ink);
    border-radius: 11px 11px 11px 4px;
    background: var(--pink);
    box-shadow: 3px 3px 0 var(--ink);
    color: #fff;
    font-size: 16px;
}

.header-actions { display: flex; align-items: center; gap: 9px; }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: #fff;
}

.lang-switch a {
    min-width: 34px;
    padding: 5px 8px;
    border-radius: 999px;
    text-align: center;
    font-weight: 900;
    font-size: .76rem;
}
.lang-switch a[aria-current="page"] { background: var(--ink); color: #fff; }

.hero {
    position: relative;
    width: min(1080px, calc(100% - 28px));
    margin: 0 auto;
    padding: clamp(34px, 4.8vw, 52px) 0 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
}

.eyebrow, .sticker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--acid);
    box-shadow: 3px 3px 0 var(--ink);
    font-size: .7rem;
    font-weight: 1000;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 14px 0 12px;
    max-width: 780px;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: .98;
    letter-spacing: -.085em;
    font-weight: 1000;
    white-space: pre-line;
    text-wrap: balance;
}

.hero h1 .scribble {
    position: relative;
    display: inline-block;
    color: var(--pink);
    text-shadow: 3px 3px 0 var(--ink);
    -webkit-text-stroke: 2px var(--ink);
}

.hero-copy {
    max-width: 620px;
    margin: 0;
    font-size: clamp(.88rem, 1.5vw, 1rem);
    font-weight: 650;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border: 2px solid var(--ink);
    border-radius: 12px;
    background: #fff;
    box-shadow: 4px 4px 0 var(--ink);
    font-weight: 1000;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--pink); color: #fff; }
.btn-acid { background: var(--acid); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--pink); }
.btn-wide { width: 100%; }

.phone-chaos {
    position: relative;
    width: min(260px, 82%);
    aspect-ratio: .78;
    justify-self: center;
    border: 3px solid var(--ink);
    border-radius: 29px;
    background: #fff;
    box-shadow: 7px 7px 0 var(--ink);
    transform: rotate(3deg);
    padding: 39px 15px 16px;
}
.phone-chaos::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 50%;
    width: 64px;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 20px;
    background: var(--ink);
}
.phone-chaos::after {
    content: "OOPS!";
    position: absolute;
    right: -29px;
    top: 26px;
    padding: 6px 10px;
    transform: rotate(12deg);
    border: 3px solid var(--ink);
    background: var(--acid);
    box-shadow: 4px 4px 0 var(--ink);
    font-weight: 1000;
}

.demo-bubble {
    width: fit-content;
    max-width: 88%;
    margin: 7px 0;
    padding: 7px 10px;
    border: 2px solid var(--ink);
    border-radius: 17px 17px 17px 4px;
    background: #f1f1f1;
    font-size: .82rem;
    font-weight: 800;
    animation: bubble-in .5s both;
}
.demo-bubble.me { margin-left: auto; border-radius: 17px 17px 4px 17px; background: #ffe35a; animation-delay: .25s; }
.demo-bubble.alert { background: #ff5a5f; color: #fff; animation-delay: .5s; }
.typing { display: inline-flex; gap: 4px; padding: 9px 13px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: blink 1s infinite alternate; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }

.marquee {
    overflow: hidden;
    border-block: 3px solid var(--ink);
    background: var(--ink);
    color: #fff;
    transform: rotate(-1deg) scale(1.02);
}
.marquee-track {
    width: max-content;
    padding: 8px 0;
    font-weight: 1000;
    letter-spacing: .05em;
    animation: marquee 25s linear infinite;
}

.section {
    width: min(1080px, calc(100% - 28px));
    margin: 0 auto;
    padding: clamp(34px, 5vw, 52px) 0;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 18px;
}
.section h2 {
    margin: 9px 0 0;
    font-size: clamp(1.55rem, 3.2vw, 2.35rem);
    line-height: 1;
    letter-spacing: -.065em;
    font-weight: 1000;
}
.section-note { max-width: 420px; margin: 0; font-weight: 700; color: #625a69; }

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

.service-card {
    position: relative;
    min-width: 0;
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:nth-child(3n+2) { transform: translateY(6px) rotate(.2deg); }
.service-card:nth-child(4n) { transform: rotate(-.45deg); }
.service-card:hover { transform: translate(-2px,-3px) rotate(0); box-shadow: 7px 8px 0 var(--ink); }

.cover-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 3px solid var(--ink);
    background: var(--card-color, var(--pink));
}
.cover-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.service-card:hover .cover-wrap img { transform: scale(1.05); }
.cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3.4rem; }
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--acid);
    font-size: .7rem;
    font-weight: 1000;
    text-transform: uppercase;
}
.card-body { padding: 14px 13px 15px; }
.service-card h3 { margin: 0 0 5px; font-size: .98rem; line-height: 1.25; letter-spacing: -.035em; }
.service-card p { min-height: 3em; margin: 0; padding-right: 18px; color: #665e6a; font-size: .78rem; font-weight: 630; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.tag { padding: 4px 8px; border-radius: 7px; background: #f0eaf3; font-size: .72rem; font-weight: 850; }
.card-arrow {
    position: absolute;
    right: 11px;
    bottom: 12px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: #fff;
    font-weight: 1000;
}

.promise-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.promise {
    padding: 17px;
    border: 2px solid var(--ink);
    border-radius: 15px;
    background: var(--panel, #fff);
    box-shadow: 5px 5px 0 var(--ink);
}
.promise .icon { font-size: 1.6rem; }
.promise h3 { margin: 8px 0 4px; font-size: 1rem; }
.promise p { margin: 0; color: #615968; font-size: .86rem; font-weight: 650; }

.site-footer {
    border-top: 3px solid var(--ink);
    background: var(--ink);
    color: #fff;
}
.footer-inner {
    width: min(1080px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}
.footer-copy { max-width: 650px; color: #cfc8d6; font-size: .82rem; }

.game-page { --game: var(--pink); min-height: 100vh; background: linear-gradient(145deg, color-mix(in srgb, var(--game) 13%, var(--paper)), var(--paper) 55%); }
.game-hero { width: min(1080px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 48px; }
.breadcrumbs { margin-bottom: 16px; color: #6a6370; font-size: .78rem; font-weight: 800; }
.breadcrumbs a:hover { text-decoration: underline; }
.game-intro-card {
    display: grid;
    grid-template-columns: minmax(280px,.9fr) minmax(0,1.1fr);
    border: 3px solid var(--ink);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 7px 7px 0 var(--ink);
}
.game-cover { min-height: 310px; border-right: 3px solid var(--ink); background: var(--game); }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-cover .cover-fallback { min-height: 310px; font-size: 4.5rem; }
.game-copy { padding: clamp(24px,4vw,42px); display: flex; flex-direction: column; justify-content: center; }
.game-copy h1 { margin: 10px 0 8px; font-size: clamp(1.75rem,3.5vw,2.6rem); line-height: 1; letter-spacing: -.065em; }
.game-copy .lead { margin: 0; font-size: .92rem; font-weight: 750; color: #554d5a; }
.game-copy .hook { margin: 16px 0; padding: 12px 14px; border-left: 4px solid var(--game); background: #f7f2f7; font-size: .88rem; font-weight: 750; }
.game-briefing { display: grid; gap: 8px; margin: 16px 0; }
.brief-item { padding: 11px 13px; border-left: 4px solid var(--game); border-radius: 0 10px 10px 0; background: #f7f2f7; }
.brief-item.mission { border: 2px solid var(--ink); border-left-width: 5px; border-radius: 11px; background: color-mix(in srgb, var(--game) 9%, #fff); }
.brief-item small { display: block; margin-bottom: 3px; color: var(--game); font-size: .7rem; font-weight: 950; }
.brief-item p { margin: 0; color: #4f4855; font-size: .82rem; font-weight: 700; }
.brief-item strong { color: var(--ink); }
.game-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 0 0 18px; }
.game-stat { padding: 11px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.game-stat small { display: block; color: #756e79; font-weight: 800; }
.game-stat strong { display: block; font-size: .84rem; line-height: 1.25; }

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(23,19,31,.78);
    backdrop-filter: blur(5px);
}
.modal-backdrop.open { display: grid; }
.modal {
    width: min(680px,100%);
    max-height: min(820px, calc(100vh - 40px));
    overflow: auto;
    border: 4px solid var(--ink);
    border-radius: 25px;
    background: var(--paper);
    box-shadow: 12px 12px 0 var(--pink);
    padding: clamp(24px,5vw,44px);
}
.modal h2 { margin: 0 0 8px; font-size: 2rem; line-height: 1; }
.modal-close { float: right; border: 0; background: none; font-size: 1.5rem; cursor: pointer; }
.character-modal { width: min(760px,100%); }
.character-modal .section-note { margin: 8px 0 18px; }
.character-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.character-card {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: center;
    padding: 12px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.character-card:hover, .character-card:focus-visible { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); background: #fffdf5; outline: 0; }
.character-avatar { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 13px; background: color-mix(in srgb, var(--avatar-color) 24%, #fff); font-size: 1.45rem; }
.character-info { min-width: 0; display: block; padding-right: 6px; }
.character-info strong { display: block; font-size: 1rem; }
.character-info small { display: -webkit-box; overflow: hidden; color: #6f6774; font-size: .76rem; font-weight: 650; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.character-info .tag { width: fit-content; margin-top: 5px; background: #f0eaf3; }
.character-pick { grid-column: 1/-1; padding-top: 7px; border-top: 1px dashed #cfc7d3; color: var(--game, var(--pink)); font-size: .75rem; font-weight: 950; text-align: right; }
.custom-modal { width: min(720px,100%); }
.custom-modal > .section-note { margin: 7px 0 16px; }
.custom-saved-wrap h3 { margin: 0 0 8px; font-size: .95rem; }
.custom-list { display: grid; gap: 8px; }
.custom-list[aria-busy="true"] { min-height: 68px; opacity: .55; }
.custom-empty { margin: 0; padding: 16px; border: 2px dashed #bcb4c1; border-radius: 12px; color: #6f6774; text-align: center; font-size: .82rem; font-weight: 750; }
.custom-empty.error { border-color: #e04c64; color: #a62238; }
.custom-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 2px solid var(--ink); border-radius: 13px; background: #fff; }
.custom-card-avatar { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 11px; background: #ffe35a; object-fit: cover; font-size: 1.25rem; }
.custom-card-info { min-width: 0; }
.custom-card-info strong, .custom-card-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-card-info small { color: #6f6774; font-size: .75rem; }
.custom-card-actions { display: flex; align-items: center; gap: 7px; }
.custom-card-actions .btn { min-height: 34px; padding: 6px 10px; font-size: .75rem; box-shadow: 2px 2px 0 var(--ink); }
.custom-delete { padding: 5px; border: 0; background: transparent; color: #9c2940; font-size: .72rem; font-weight: 850; cursor: pointer; text-decoration: underline; }
.custom-create { margin-top: 14px; padding-top: 12px; border-top: 2px dashed #c9c0cd; }
.custom-create summary { font-size: .95rem; font-weight: 950; cursor: pointer; }
.custom-photo-field { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 13px; margin-top: 13px; padding: 12px; border: 2px dashed #aaa2af; border-radius: 14px; background: rgba(255,255,255,.55); }
.custom-photo-preview { width: 92px; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 16px; background: #ffe35a center/cover no-repeat; font-size: 2rem; overflow: hidden; }
.custom-photo-preview.has-photo { background-color: #eee; }
.custom-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.custom-photo-actions strong { width: 100%; font-size: .82rem; }
.custom-photo-pick { min-height: 34px; padding: 6px 10px; font-size: .75rem; box-shadow: 2px 2px 0 var(--ink); }
.custom-photo-pick input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.custom-photo-remove { border: 0; background: transparent; color: #9c2940; font-size: .72rem; font-weight: 850; cursor: pointer; text-decoration: underline; }
.custom-short-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.custom-create .field { margin-top: 11px; }
.custom-create .field label { font-size: .8rem; }
.custom-create .field input, .custom-create .field textarea { padding: 9px 10px; border-width: 2px; font-size: .86rem; }
.custom-create .field textarea { min-height: 76px; }
.custom-create textarea[name="description"] { min-height: 140px; }
.custom-create .btn { margin-top: 14px; }
.field { display: grid; gap: 7px; margin-top: 18px; }
.field label { font-weight: 900; }
.field input, .field textarea, .field select {
    width: 100%;
    padding: 13px 14px;
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: #fff;
    outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 4px 4px 0 var(--game, var(--pink)); }
.field-hint { color: #6e6672; font-size: .8rem; }

.chat-shell {
    width: min(820px, calc(100% - 24px));
    height: min(830px, calc(100dvh - 24px));
    display: none;
    position: fixed;
    inset: 12px;
    z-index: 120;
    margin: auto;
    grid-template-rows: auto 1fr auto;
    border: 4px solid var(--ink);
    border-radius: 25px;
    background: #fff;
    box-shadow: 12px 12px 0 var(--ink);
    overflow: hidden;
}
.chat-shell.open { display: grid; }
.chat-header { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--ink); background: var(--game); color: #fff; }
.chat-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-avatar { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); font-size: 1.35rem; }
.chat-avatar.has-photo { background-position: center; background-size: cover; color: transparent; }
.chat-title strong, .chat-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-close { width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; cursor: pointer; font-weight: 1000; }
.chat-messages { overflow-y: auto; padding: 21px 16px 30px; background: #f8f2e6; }
.message { max-width: 79%; margin: 10px 0; }
.message.user { margin-left: auto; }
.message-name { margin: 0 5px 4px; color: #786f7b; font-size: .72rem; font-weight: 850; }
.message-body { padding: 11px 14px; border: 2px solid var(--ink); border-radius: 17px 17px 17px 4px; background: #fff; white-space: pre-wrap; }
.message.user .message-body { border-radius: 17px 17px 4px 17px; background: var(--acid); }
.message-system { width: fit-content; max-width: 90%; margin: 12px auto; padding: 6px 11px; border-radius: 999px; background: rgba(23,19,31,.1); color: #69616e; font-size: .72rem; font-weight: 800; text-align: center; }
.chat-hud { border-top: 2px solid var(--ink); background: #fff; }
.chat-metrics { display: grid; border-bottom: 1px solid #dedede; background: #fff; }
.chat-metrics[hidden] { display: none; }
.chat-score { display: flex; align-items: center; gap: 8px; padding: 7px 16px 4px; background: #fff; font-size: .78rem; font-weight: 900; }
.chat-score > span:first-child { min-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-score strong { min-width: 54px; text-align: right; }
.chat-score strong i { display: inline-block; width: 0; opacity: 0; font-style: normal; font-size: .7rem; transform: translateY(3px); transition: opacity .2s, transform .2s; }
.chat-score strong i.show { width: auto; margin-left: 3px; opacity: 1; transform: none; }
.chat-score strong i.positive { color: #16834a; }
.chat-score strong i.negative { color: #d12647; }
.score-track { height: 9px; flex: 1; overflow: hidden; border: 1px solid var(--ink); border-radius: 99px; background: #eee; }
.score-fill { width: 30%; height: 100%; background: var(--game); transition: width .4s ease; }
.score-track.exposure .score-fill { width: 0; background: linear-gradient(90deg,#ffbd2e,#e83e55); }
.exposure-row { padding-top: 3px; }
.live-meter { position: relative; transition: background-color .25s, opacity .25s; }
.live-meter + .live-meter { border-top: 1px dashed #e6e6e6; }
.live-meter .meter-label { display: flex; min-width: 96px; align-items: center; gap: 6px; overflow: hidden; }
.live-meter .meter-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-meter .meter-avatar { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: color-mix(in srgb,var(--meter-color) 24%,#fff); font-size: .72rem; line-height: 1; }
.live-meter .score-fill { width: 0; background: var(--meter-color); transition: width .55s cubic-bezier(.22,1.35,.48,1),filter .2s; }
.live-meter.danger .score-track { background: #ffe6e6; }
.live-meter.danger .score-fill { background: linear-gradient(90deg,#ffbd2e,var(--meter-color)); }
.live-meter.left { opacity: .5; filter: grayscale(1); }
.live-meter.left .score-fill { width: 0 !important; }
.live-meter.meter-up { animation: meter-up-flash .75s ease; }
.live-meter.meter-down { animation: meter-down-flash .75s ease; }
@keyframes meter-up-flash { 0%,100% { background:#fff; } 35% { background:#dcffe9; } }
@keyframes meter-down-flash { 0%,100% { background:#fff; } 35% { background:#ffe1e7; } }
.chat-live-meta { display: flex; justify-content: space-between; gap: 10px; padding: 3px 16px 7px; color: #756e79; font-size: .7rem; font-weight: 850; }
.chat-form { padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 9px; border-top: 3px solid var(--ink); background: #fff; }
.chat-form textarea { height: 48px; min-height: 48px; max-height: 120px; padding: 11px 13px; resize: none; border: 2px solid var(--ink); border-radius: 13px; outline: none; }
.chat-form button { min-width: 82px; border: 2px solid var(--ink); border-radius: 13px; background: var(--game); color: #fff; font-weight: 1000; cursor: pointer; }
.chat-form button:disabled { filter: grayscale(1); opacity: .55; cursor: wait; }
.chat-overlay { position: fixed; inset: 0; z-index: 110; display: none; background: rgba(23,19,31,.7); }
.chat-overlay.open { display: block; }

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px; }
.error-code { font-size: clamp(6rem,20vw,14rem); line-height: .8; font-weight: 1000; color: var(--pink); -webkit-text-stroke: 3px var(--ink); text-shadow: 8px 8px 0 var(--ink); }

@keyframes bubble-in { from { opacity: 0; transform: translateY(12px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes blink { to { opacity: .25; transform: translateY(-3px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-copy-wrap { text-align: center; }
    .eyebrow, .hero-buttons { margin-inline: auto; }
    .hero-copy { margin-inline: auto; }
    .phone-chaos { width: min(250px,76%); transform: rotate(1deg); }
    .service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .promise-grid { grid-template-columns: 1fr; }
    .game-intro-card { grid-template-columns: 1fr; }
    .game-cover { min-height: 270px; border-right: 0; border-bottom: 3px solid var(--ink); }
}

@media (max-width: 620px) {
    :root { --shadow: 3px 3px 0 var(--ink); }
    .header-inner { width: min(100% - 20px,1080px); min-height: 54px; }
    .brand-mark { width: 31px; height: 31px; }
    .brand-name { font-size: 1.08rem; }
    .lang-switch { max-width: 184px; overflow-x: auto; }
    .lang-switch a { min-width: 31px; padding: 5px; }
    .hero, .section { width: min(100% - 20px,1080px); }
    .hero { padding-top: 28px; }
    .hero h1 { font-size: clamp(2rem,10.5vw,3rem); }
    .phone-chaos { width: min(235px,70%); max-height: 310px; padding-top: 38px; }
    .section-head { align-items: start; flex-direction: column; }
    .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
    .service-card:nth-child(n) { transform: none; }
    .service-card p { min-height: 3em; padding-right: 12px; font-size: .73rem; }
    .service-card h3 { font-size: .9rem; }
    .card-body { padding: 11px 10px 12px; }
    .card-arrow { display: none; }
    .footer-inner { align-items: start; flex-direction: column; }
    .game-hero { width: min(100% - 20px,1080px); padding-top: 25px; }
    .game-intro-card { border-radius: 22px; box-shadow: 7px 7px 0 var(--ink); }
    .game-cover, .game-cover .cover-fallback { min-height: 230px; }
    .game-copy { padding: 23px 18px 26px; }
    .game-copy h1 { font-size: 1.9rem; }
    .game-stats { grid-template-columns: 1fr 1fr; }
    .game-stat:last-child { grid-column: 1/-1; }
    .modal-backdrop { padding: 8px; align-items: end; }
    .modal { max-height: calc(100dvh - 16px); padding: 22px 16px; border-radius: 22px 22px 12px 12px; box-shadow: 6px 6px 0 var(--pink); }
    .modal h2 { font-size: 1.55rem; }
    .character-grid { grid-template-columns: 1fr; }
    .character-card { padding: 10px; }
    .character-avatar { width: 44px; height: 44px; }
    .custom-card { grid-template-columns: auto minmax(0,1fr); }
    .custom-card-actions { grid-column: 1/-1; justify-content: flex-end; }
    .custom-use { flex: 1; }
    .custom-photo-field { grid-template-columns: 74px 1fr; }
    .custom-photo-preview { width: 74px; }
    .custom-short-fields { grid-template-columns: 1fr; gap: 0; }
    .chat-shell { width: 100%; height: 100dvh; inset: 0; border: 0; border-radius: 0; box-shadow: none; }
    .message { max-width: 88%; }
    .chat-form button { min-width: 65px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
