.typing-wrapper {
	--bg-page: #f7f3ec;
	--bg-panel: #fbfaf7;
	--bg-card: #ffffff;
	--bg-soft: #f2eee7;
	--line: #e8ded0;
	--line-soft: #f0e8dd;

	--text-main: #3a332d;
	--text-sub: #776e64;
	--text-light: #9b9185;

	--brown-dark: #6f5226;
	--brown-main: #8c672d;
	--brown-btn: #947860;
	--brown-soft: #efe0cf;

	--accent-red: #c95f47;
	--black-chip: #050505;
	--gray-pop: #8b8984;

width: 100%; max-width: 980px; margin: 0 auto 60px; position: relative; color: var(--text-main); background: var(--bg-page); border-radius: 24px; }
.typing-wrapper button, .typing-wrapper input { font-family: inherit; }
.typing-wrapper button { border: 0; cursor: pointer; }
.typing-wrapper a { color: inherit; text-decoration: none; }
.typing-wrapper .step2 { display: none; }
.typing-wrapper.done .step1 { display: none; }
.typing-wrapper.done .step2 { display: block; }
/* 전체 카드 */
.typing-wrapper .event-shell { position: relative; overflow: hidden; border-radius: 24px; background: var(--bg-page); border: 1px solid #efe6da; box-shadow: 0 18px 40px rgba(90, 71, 46, 0.08), 0 3px 8px rgba(90, 71, 46, 0.04); }
.typing-wrapper .event-content { position: relative; z-index: 1; padding: 42px; }
/* 게임 카드 */
.typing-wrapper .game-card { position: relative; border-radius: 34px; background: var(--bg-card); border: 1px solid #eadfce; overflow: hidden; box-shadow: 0 14px 28px rgba(90, 71, 46, 0.08), 0 3px 8px rgba(90, 71, 46, 0.04); }
.typing-wrapper .game-inner { position: relative; min-height: 720px; overflow: hidden; background: #fbfaf8; }
/* 상태 영역 */
.typing-wrapper .game-status { position: relative; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 22px; }
.typing-wrapper .status-card { min-height: 68px; padding: 12px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 5px 12px rgba(90, 71, 46, 0.04); display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; justify-content: center; align-content: center; justify-items: center; align-items: baseline; column-gap: 4px; }
.typing-wrapper .status-card .name { grid-column: 1 / -1; grid-row: 1; font-size: 13px; font-weight: 700; color: var(--text-sub); margin-bottom: 4px; }
.typing-wrapper .status-card .value { grid-column: 1; grid-row: 2; font-size: 24px; line-height: 1.1; font-weight: 950; color: var(--text-main); }
.typing-wrapper .status-card .value + span { grid-column: 2; grid-row: 2; font-size: 13px; font-weight: 700; color: var(--text-sub); line-height: 1; transform: translateY(-1px); }
.typing-wrapper .status-card.danger .value { color: var(--accent-red); }
/* 진행 바 */
.typing-wrapper .progress-wrap { position: relative; z-index: 30; width: calc(100% - 44px); height: 14px; margin: 0 auto 18px; border-radius: 999px; background: #ddd7cc; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07); }
.typing-wrapper .progress-bar { width: 0%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c85d45, #b35f43); box-shadow: 0 0 8px rgba(200, 93, 69, 0.22); transition: width 0.2s ease; }
/* 단어가 떨어지는 영역 */
.typing-wrapper .word-area { position: relative; height: 430px; margin: 0 22px; border-radius: 30px; overflow: hidden; background: #fbfaf8; }
.typing-wrapper .word-area::before { content: "핵심어가 아래 선에 닿기 전에 입력해 주세요"; position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 1; color: var(--text-sub); font-size: 14px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.typing-wrapper .deadline { position: absolute; left: 0; right: 0; bottom: 58px; height: 2px; background: repeating-linear-gradient( 90deg, rgba(226, 177, 167, 0.9) 0 8px, transparent 8px 14px ); pointer-events: none; }
.typing-wrapper .falling-word { position: absolute; left: 0; top: 0; z-index: 10; padding: 11px 18px; border-radius: 999px; background: var(--black-chip); color: #fff; font-size: 22px; line-height: 1; font-weight: 950; white-space: nowrap; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08); will-change: transform; user-select: none; }
.typing-wrapper .falling-word.hit { animation: typingPopWord 0.22s ease forwards; }
@keyframes typingPopWord {
to { opacity: 0; transform: scale(1.2); }
}
/* 입력 영역 */
.typing-wrapper .typing-panel { position: relative; z-index: 30; padding: 20px 22px 28px; border-top: 1px dashed #e7cfc8; }
.typing-wrapper .typing-form { display: flex; gap: 12px; align-items: center; justify-content: center; max-width: 620px; margin: 0 auto; }
.typing-wrapper .typing-input { flex: 1; height: 62px; border: 1px solid #e1d6c6; border-radius: 999px; padding: 0 24px; font-size: 24px; font-weight: 850; color: var(--text-main); background: #fffdf9; outline: none; text-align: center; box-shadow: inset 0 1px 2px rgba(90, 71, 46, 0.04), 0 2px 4px rgba(90, 71, 46, 0.03); transition: all 0.16s ease; }
.typing-wrapper .typing-input::placeholder { color: #b3a89a; font-weight: 600; font-size: 18px; }
.typing-wrapper .typing-input:focus { border-color: var(--brown-btn); background: #fff; box-shadow: 0 0 0 4px rgba(148, 120, 96, 0.13), inset 0 1px 2px rgba(90, 71, 46, 0.04); }
.typing-wrapper .typing-input.shake { animation: typingShake 0.24s linear; }
@keyframes typingShake {
0% { transform: translateX(0); }
25% { transform: translateX(-5px); }
50% { transform: translateX(5px); }
75% { transform: translateX(-5px); }
100% { transform: translateX(0); }
}
.typing-wrapper .typing-submit, .typing-wrapper .start-btn, .typing-wrapper .again-btn, .typing-wrapper .form-link { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 900; transition: all 0.16s ease; }
.typing-wrapper .typing-submit, .typing-wrapper .start-btn, .typing-wrapper .again-btn { background: var(--brown-btn); color: #fff; box-shadow: 0 8px 16px rgba(148, 120, 96, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.typing-wrapper .typing-submit { min-width: 132px; height: 62px; padding: 0 28px; font-size: 20px; }
.typing-wrapper .start-btn, .typing-wrapper .again-btn { min-width: 220px; height: 62px; padding: 0 34px; font-size: 21px; }
.typing-wrapper .typing-submit:hover, .typing-wrapper .start-btn:hover, .typing-wrapper .again-btn:hover, .typing-wrapper .form-link:hover { transform: translateY(3px); box-shadow: 0 5px 12px rgba(148, 120, 96, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.typing-wrapper .typing-guide { margin-top: 16px; color: var(--text-sub); font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; word-break: keep-all; }
/* 안내 메시지 */
.typing-wrapper .message-pop { position: absolute; left: 50%; top: 50%; z-index: 100; transform: translate(-50%, -50%) scale(0.96); padding: 22px 30px; border-radius: 24px; background: var(--gray-pop); color: #fff; box-shadow: 0 10px 22px rgba(90, 71, 46, 0.18); text-align: center; opacity: 0; pointer-events: none; transition: all 0.2s; font-size: 20px; font-weight: 900; white-space: nowrap; }
.typing-wrapper .message-pop.active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* 시작 / 실패 화면 */
.typing-wrapper .overlay-screen { position: absolute; inset: 0; z-index: 80; min-height: 720px; padding: 40px 24px; background: #f7f6f4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.typing-wrapper .overlay-screen.hide { display: none; }
.typing-wrapper .start-character, .typing-wrapper .result-icon, .typing-wrapper .success-icon { width: 150px; height: 150px; margin-bottom: 26px; border-radius: 42px; background: var(--brown-soft); display: flex; align-items: center; justify-content: center; font-size: 74px; box-shadow: 0 8px 18px rgba(90, 71, 46, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.75); transform: rotate(-8deg); }
.typing-wrapper .overlay-screen h3 { font-size: 34px; line-height: 1.25; letter-spacing: -0.05em; color: #3a332d; margin-bottom: 14px; word-break: keep-all; }
.typing-wrapper .overlay-screen h3 .point { color: #5e4413; }
.typing-wrapper .overlay-screen p { font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--text-sub); margin-bottom: 34px; word-break: keep-all; }
/* 성공 화면 */
.typing-wrapper .step2 { padding: 70px 24px; }
.typing-wrapper .success-card { position: relative; overflow: hidden; max-width: 760px; margin: 0 auto; padding: 70px 28px; border-radius: 38px; background: #f7f6f4; text-align: center; box-shadow: 0 14px 28px rgba(90, 71, 46, 0.08), 0 3px 8px rgba(90, 71, 46, 0.04); border: 1px solid #eee3d3; }
.typing-wrapper .success-icon { margin-left: auto; margin-right: auto; }
.typing-wrapper .success-card h2 { font-size: 38px; line-height: 1.2; letter-spacing: -0.06em; margin-bottom: 18px; color: var(--brown-dark); }
.typing-wrapper .success-card p { font-size: 18px; line-height: 1.6; font-weight: 700; color: var(--text-sub); margin-bottom: 34px; word-break: keep-all; }
.typing-wrapper .form-link { min-width: 260px; height: 64px; padding: 0 34px; background: var(--brown-btn); color: #fff !important; font-size: 21px; box-shadow: 0 8px 16px rgba(148, 120, 96, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
/* 기본 모바일 */
@media (max-width: 860px) {
.typing-wrapper { border-radius: 18px; }
.typing-wrapper .event-content { padding: 24px 16px; }
.typing-wrapper .game-inner, .typing-wrapper .overlay-screen { min-height: 690px; }
.typing-wrapper .game-status { gap: 8px; padding: 14px; }
.typing-wrapper .status-card { min-height: 58px; padding: 8px 6px; }
.typing-wrapper .status-card .name { font-size: 11px; }
.typing-wrapper .status-card .value { font-size: 20px; }
.typing-wrapper .status-card .value + span { font-size: 11px; }
.typing-wrapper .progress-wrap { width: calc(100% - 28px); }
.typing-wrapper .word-area { height: 390px; margin: 0 14px; border-radius: 24px; }
.typing-wrapper .word-area::before { top: 14px; font-size: 12px; }
.typing-wrapper .deadline { bottom: 52px; }
.typing-wrapper .falling-word { padding: 9px 14px; font-size: 18px; }
.typing-wrapper .typing-panel { padding: 16px 14px 24px; }
.typing-wrapper .typing-form { max-width: 330px; flex-direction: column; gap: 10px; }
.typing-wrapper .typing-input { width: 100%; height: 54px; font-size: 20px; }
.typing-wrapper .typing-input::placeholder { font-size: 15px; }
.typing-wrapper .typing-submit { width: 100%; min-width: unset; height: 54px; font-size: 18px; }
.typing-wrapper .typing-guide { font-size: 13px; }
.typing-wrapper .overlay-screen h3 { font-size: 26px; }
.typing-wrapper .overlay-screen p { font-size: 16px; }
.typing-wrapper .start-btn, .typing-wrapper .again-btn, .typing-wrapper .form-link { min-width: 210px; height: 56px; font-size: 18px; }
.typing-wrapper .start-character, .typing-wrapper .result-icon, .typing-wrapper .success-icon { width: 112px; height: 112px; border-radius: 34px; font-size: 58px; }
.typing-wrapper .success-card { padding: 54px 18px; }
.typing-wrapper .success-card h2 { font-size: 30px; }
.typing-wrapper .success-card p { font-size: 16px; }
}
/* 모바일 플레이 중 최적화 */
@media (max-width: 860px) {
.typing-wrapper.mobile-playing .event-content { padding: 8px; }
.typing-wrapper.mobile-playing .event-shell { border-radius: 18px; box-shadow: none; }
.typing-wrapper.mobile-playing .game-card { border-radius: 18px; }
.typing-wrapper.mobile-playing .game-inner { height: calc(var(--typing-vh, 100vh) - 16px); min-height: 520px; max-height: 720px; display: flex; flex-direction: column; overflow: hidden; }
.typing-wrapper.mobile-playing .game-status { flex: 0 0 auto; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; }
.typing-wrapper.mobile-playing .status-card { min-height: 54px; padding: 8px 6px; border-radius: 14px; }
.typing-wrapper.mobile-playing .status-card .name { font-size: 11px; margin-bottom: 3px; }
.typing-wrapper.mobile-playing .status-card .value { font-size: 20px; }
.typing-wrapper.mobile-playing .status-card .value + span { font-size: 11px; }
.typing-wrapper.mobile-playing .progress-wrap { flex: 0 0 auto; width: calc(100% - 20px); height: 8px; margin: 0 auto 10px; }
.typing-wrapper.mobile-playing .word-area { flex: 1 1 auto; height: auto; min-height: 280px; margin: 0 10px; border-radius: 18px; }
.typing-wrapper.mobile-playing .word-area::before { top: 12px; font-size: 12px; }
.typing-wrapper.mobile-playing .deadline { bottom: 22px; }
.typing-wrapper.mobile-playing .falling-word { padding: 8px 13px; font-size: 16px; }
.typing-wrapper.mobile-playing .typing-panel { flex: 0 0 auto; padding: 12px 10px calc(12px + env(safe-area-inset-bottom)); background: #fbfaf8; border-top: 1px dashed #e7cfc8; }
.typing-wrapper.mobile-playing .typing-form { display: flex; flex-direction: row; gap: 8px; max-width: 100%; }
.typing-wrapper.mobile-playing .typing-input { width: auto; flex: 1; height: 44px; padding: 0 14px; font-size: 16px; }
.typing-wrapper.mobile-playing .typing-input::placeholder { font-size: 13px; }
.typing-wrapper.mobile-playing .typing-submit { flex: 0 0 76px; width: 76px; min-width: 76px; height: 44px; padding: 0; font-size: 15px; }
.typing-wrapper.mobile-playing .typing-guide { margin-top: 8px; font-size: 12px; }
.typing-wrapper.mobile-playing .overlay-screen { min-height: auto; height: 100%; padding: 30px 20px; }
.typing-wrapper.mobile-playing .start-character, .typing-wrapper.mobile-playing .result-icon, .typing-wrapper.mobile-playing .success-icon { width: 96px; height: 96px; border-radius: 28px; font-size: 50px; margin-bottom: 22px; }
.typing-wrapper.mobile-playing .overlay-screen h3 { font-size: 28px; }
.typing-wrapper.mobile-playing .overlay-screen p { font-size: 15px; margin-bottom: 26px; }
.typing-wrapper.mobile-playing .start-btn, .typing-wrapper.mobile-playing .again-btn { min-width: 180px; height: 52px; font-size: 17px; }
}
/* 모바일 키보드 열림 상태 */
@media (max-width: 860px) {
.typing-wrapper.mobile-playing.is-keyboard-open .game-inner { height: calc(var(--typing-vh, 100vh) - 8px); min-height: 360px; max-height: none; }
.typing-wrapper.mobile-playing.is-keyboard-open .game-status { gap: 6px; padding: 6px 8px; }
.typing-wrapper.mobile-playing.is-keyboard-open .status-card { min-height: 38px; padding: 5px 4px; border-radius: 10px; }
.typing-wrapper.mobile-playing.is-keyboard-open .status-card .name { font-size: 10px; margin-bottom: 1px; }
.typing-wrapper.mobile-playing.is-keyboard-open .status-card .value { font-size: 17px; }
.typing-wrapper.mobile-playing.is-keyboard-open .status-card .value + span { font-size: 10px; }
.typing-wrapper.mobile-playing.is-keyboard-open .progress-wrap { height: 5px; margin-bottom: 6px; }
.typing-wrapper.mobile-playing.is-keyboard-open .word-area { min-height: 170px; margin: 0 8px; border-radius: 14px; }
.typing-wrapper.mobile-playing.is-keyboard-open .word-area::before { display: none; }
.typing-wrapper.mobile-playing.is-keyboard-open .deadline { bottom: 16px; }
.typing-wrapper.mobile-playing.is-keyboard-open .falling-word { padding: 7px 11px; font-size: 14px; }
.typing-wrapper.mobile-playing.is-keyboard-open .typing-panel { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
.typing-wrapper.mobile-playing.is-keyboard-open .typing-input { height: 40px; font-size: 15px; }
.typing-wrapper.mobile-playing.is-keyboard-open .typing-submit { height: 40px; flex-basis: 70px; width: 70px; min-width: 70px; font-size: 14px; }
.typing-wrapper.mobile-playing.is-keyboard-open .typing-guide { display: none; }
}
/* 아주 작은 모바일 */
@media (max-width: 390px) {
.typing-wrapper.mobile-playing .game-inner { min-height: 500px; }
.typing-wrapper.mobile-playing .word-area { min-height: 250px; }
.typing-wrapper.mobile-playing.is-keyboard-open .game-inner { min-height: 340px; }
.typing-wrapper.mobile-playing.is-keyboard-open .word-area { min-height: 150px; }
.typing-wrapper.mobile-playing .falling-word { font-size: 14px; padding: 7px 11px; }
}
/* 모바일 가로모드 */
@media (max-width: 860px) and (orientation: landscape) {
.typing-wrapper.mobile-playing .game-inner { height: calc(var(--typing-vh, 100vh) - 8px); min-height: 340px; }
.typing-wrapper.mobile-playing .game-status { padding: 6px 8px; }
.typing-wrapper.mobile-playing .status-card { min-height: 36px; }
.typing-wrapper.mobile-playing .word-area { min-height: 150px; }
.typing-wrapper.mobile-playing .typing-guide { display: none; }
}

/* 모바일 잘림 / 키보드 열림 / 응모 버튼 최종 보정 */
@media (max-width: 860px) { .typing-wrapper { width: 100%; max-width: calc(100vw - 24px); margin-left: auto; margin-right: auto; box-sizing: border-box; overflow: hidden; } }
@media (max-width: 860px) { .typing-wrapper * { box-sizing: border-box; } }
@media (max-width: 860px) { .typing-wrapper .event-shell, .typing-wrapper .event-content, .typing-wrapper .game-card, .typing-wrapper .game-inner, .typing-wrapper .word-area, .typing-wrapper .typing-panel, .typing-wrapper .success-card { max-width: 100%; box-sizing: border-box; } }
@media (max-width: 860px) { .typing-wrapper .event-content { padding-left: 12px; padding-right: 12px; } }
@media (max-width: 860px) { .typing-wrapper .game-card { width: 100%; overflow: hidden; } }
@media (max-width: 860px) { .typing-wrapper .word-area { width: auto; max-width: 100%; } }
@media (max-width: 860px) { .typing-wrapper .typing-panel { width: 100%; max-width: 100%; overflow: hidden; padding-left: 10px; padding-right: 10px; } }
@media (max-width: 860px) { .typing-wrapper .typing-form { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing .typing-form { width: 100%; max-width: 100%; min-width: 0; gap: 8px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing .typing-input { width: auto; min-width: 0; max-width: 100%; flex: 1 1 0; padding-left: 12px; padding-right: 12px; box-sizing: border-box; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing .typing-submit { flex: 0 0 64px; width: 64px; min-width: 64px; padding: 0; box-sizing: border-box; font-size: 14px; } }
@media (max-width: 860px) { .typing-wrapper .step2 { padding: 48px 10px; box-sizing: border-box; } }
@media (max-width: 860px) { .typing-wrapper .success-card { width: 100%; max-width: 100%; padding: 48px 14px; margin-left: auto; margin-right: auto; overflow: hidden; } }
@media (max-width: 860px) { .typing-wrapper .form-link { display: flex; width: 100%; max-width: 100%; min-width: 0; height: 56px; padding: 0 12px; margin-left: auto; margin-right: auto; box-sizing: border-box; white-space: nowrap; font-size: 18px; } }
@media (max-width: 390px) { .typing-wrapper { max-width: calc(100vw - 16px); } }
@media (max-width: 390px) { .typing-wrapper .event-content { padding-left: 8px; padding-right: 8px; } }
@media (max-width: 390px) { .typing-wrapper.mobile-playing .typing-panel { padding-left: 8px; padding-right: 8px; } }
@media (max-width: 390px) { .typing-wrapper.mobile-playing .typing-form { gap: 6px; } }
@media (max-width: 390px) { .typing-wrapper.mobile-playing .typing-input { height: 40px; padding-left: 10px; padding-right: 10px; font-size: 14px; } }
@media (max-width: 390px) { .typing-wrapper.mobile-playing .typing-submit { flex: 0 0 56px; width: 56px; min-width: 56px; height: 40px; font-size: 13px; } }
@media (max-width: 390px) { .typing-wrapper .form-link { height: 52px; padding: 0 10px; font-size: 17px; } }
@media (max-width: 360px) { .typing-wrapper.mobile-playing .typing-submit { flex: 0 0 52px; width: 52px; min-width: 52px; font-size: 13px; } }
@media (max-width: 360px) { .typing-wrapper.mobile-playing .typing-input { padding-left: 8px; padding-right: 8px; font-size: 13px; } }
@media (max-width: 360px) { .typing-wrapper.mobile-playing .typing-input::placeholder { font-size: 12px; } }

/* 모바일 키보드 열림 상태 - 떨어지는 핵심어 영역 확보 */
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .game-inner { min-height: 430px; height: calc(var(--typing-vh, 100vh) - 8px); max-height: none; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .word-area { flex: 1 1 auto; min-height: 230px; margin: 0 8px; border-radius: 14px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .typing-panel { flex: 0 0 auto; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .typing-form { display: flex; flex-direction: row; width: 100%; max-width: 100%; gap: 6px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .typing-input { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 10px; font-size: 14px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .typing-submit { flex: 0 0 56px; width: 56px; min-width: 56px; height: 40px; padding: 0; font-size: 13px; } }
@media (max-width: 390px) { .typing-wrapper.mobile-playing.is-keyboard-open .game-inner { min-height: 410px; } }
@media (max-width: 390px) { .typing-wrapper.mobile-playing.is-keyboard-open .word-area { min-height: 210px; } }
@media (max-width: 360px) { .typing-wrapper.mobile-playing.is-keyboard-open .game-inner { min-height: 390px; } }
@media (max-width: 360px) { .typing-wrapper.mobile-playing.is-keyboard-open .word-area { min-height: 190px; } }

/* 최종 모바일 상태바 / 키보드 / 헤더 가림 보정 */
@media (max-width: 860px) { .typing-wrapper.mobile-playing .game-inner { display: flex; flex-direction: column; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing .word-area { order: 1; flex: 1 1 auto; min-height: 250px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing .game-status { order: 2; display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px 8px 4px; flex: 0 0 auto; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing .progress-wrap { order: 3; flex: 0 0 auto; width: calc(100% - 16px); height: 6px; margin: 0 auto 6px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing .typing-panel { order: 4; flex: 0 0 auto; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing .status-card { min-height: 38px; padding: 4px 3px; border-radius: 10px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing .status-card .name { font-size: 10px; margin-bottom: 1px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing .status-card .value { font-size: 17px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing .status-card .value + span { font-size: 10px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .game-inner { min-height: 430px; height: calc(var(--typing-vh, 100vh) - 8px); max-height: none; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .word-area { order: 1; flex: 1 1 auto; min-height: 210px; margin: 0 8px; border-radius: 14px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .game-status { order: 2; display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px 8px 3px; flex: 0 0 auto; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .progress-wrap { order: 3; height: 5px; margin: 0 auto 5px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .typing-panel { order: 4; flex: 0 0 auto; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .typing-form { display: flex; flex-direction: row; width: 100%; max-width: 100%; gap: 6px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .typing-input { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 10px; font-size: 14px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .typing-submit { flex: 0 0 56px; width: 56px; min-width: 56px; height: 40px; padding: 0; font-size: 13px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .status-card { min-height: 32px; padding: 3px 2px; border-radius: 9px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .status-card .name { font-size: 9px; margin-bottom: 0; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .status-card .value { font-size: 15px; } }
@media (max-width: 860px) { .typing-wrapper.mobile-playing.is-keyboard-open .status-card .value + span { font-size: 9px; } }
@media (max-width: 390px) { .typing-wrapper.mobile-playing .word-area { min-height: 225px; } }
@media (max-width: 390px) { .typing-wrapper.mobile-playing.is-keyboard-open .game-inner { min-height: 410px; } }
@media (max-width: 390px) { .typing-wrapper.mobile-playing.is-keyboard-open .word-area { min-height: 190px; } }
@media (max-width: 360px) { .typing-wrapper.mobile-playing .word-area { min-height: 205px; } }
@media (max-width: 360px) { .typing-wrapper.mobile-playing.is-keyboard-open .game-inner { min-height: 390px; } }
@media (max-width: 360px) { .typing-wrapper.mobile-playing.is-keyboard-open .word-area { min-height: 170px; } }

.typing-wrapper .start-info-box { width: 100%; max-width: 760px; margin: 0 auto 30px; text-align: center; word-break: keep-all; }
.typing-wrapper .start-info-box h4 { margin: 0 0 14px; color: var(--brown-dark); font-size: 34px; line-height: 1.25; font-weight: 950; letter-spacing: -0.05em; }
.typing-wrapper .start-info-box p { margin: 0 0 8px; color: var(--text-main); font-size: 20px; line-height: 1.6; font-weight: 850; letter-spacing: -0.08em; }
.typing-wrapper .start-info-box span { display: block; color: var(--text-sub); font-size: 15px; line-height: 1.5; font-weight: 650; letter-spacing: -0.08em; }
@media (max-width: 860px) { .typing-wrapper .start-info-box { max-width: 100%; margin-bottom: 22px; padding: 0 4px; } }
@media (max-width: 860px) { .typing-wrapper .start-info-box h4 { font-size: 30px; line-height: 1.25; margin-bottom: 14px; } }
@media (max-width: 860px) { .typing-wrapper .start-info-box p { font-size: clamp(13px, 3.25vw, 17px); line-height: 1.55; font-weight: 850; white-space: nowrap; letter-spacing: -0.04em; } }
@media (max-width: 860px) { .typing-wrapper .start-info-box span { font-size: clamp(10px, 2.65vw, 13px); line-height: 1.45; white-space: nowrap; letter-spacing: -0.03em; } }
@media (max-width: 390px) { .typing-wrapper .start-info-box h4 { font-size: 27px; } }
@media (max-width: 390px) { .typing-wrapper .start-info-box p { font-size: clamp(12px, 3.05vw, 14px); line-height: 1.55; } }
@media (max-width: 390px) { .typing-wrapper .start-info-box span { font-size: clamp(9px, 2.45vw, 11px); } }
@media (max-width: 360px) { .typing-wrapper .start-info-box h4 { font-size: 25px; } }
@media (max-width: 360px) { .typing-wrapper .start-info-box p { font-size: clamp(11px, 2.95vw, 13px); letter-spacing: -0.05em; } }
@media (max-width: 360px) { .typing-wrapper .start-info-box span { font-size: 9px; letter-spacing: -0.04em; } }