/* 아리방 홈페이지 전용. 공통 페이지의 스타일은 유지한다. */
.room-home { --room-ink: #503b2c; --room-line: #ded0b9; color: var(--room-ink); background: #fffbf2; }
.room-home :is(h1, h2, h3, .village-btn-text strong) { font-family: 'Jua', sans-serif; font-weight: 400; }
.room-home:lang(ja) :is(h1, h2, h3, .village-btn-text strong) { font-family: 'M PLUS Rounded 1c', sans-serif; font-weight: 700; }
.room-home h1 { text-wrap: balance; }
.room-home:lang(ja) h1 span { display: inline-block; }
.room-home :is(h1, h2, h3, p) { overflow-wrap: anywhere; }
.room-home:lang(ko) :is(h1, h2, h3, p) { word-break: keep-all; }
.room-home section { scroll-margin-top: calc(var(--header-height, 80px) + 16px); }
.room-home .pixel-art { image-rendering: pixelated; }
.room-home .section-title { color: var(--room-ink); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 18px; }
.room-home .section-desc { max-width: 780px; color: #75614e; margin-bottom: 36px; }
.room-home .section-eyebrow { display: none; }
.room-home .room-section { padding: 72px 0; }
.room-hero { background: #ffda91; padding: 48px 0 64px; }
.room-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 656px; align-items: center; gap: 32px; max-width: 1240px; }
.room-hero h1 { font-size: clamp(2.5rem, 3.8vw, 3.5rem); line-height: 1.23; letter-spacing: -.025em; margin-bottom: 24px; }
.room-lead { font-size: 1.05rem; line-height: 1.85; margin-bottom: 26px; }
.room-promise { font-size: .85rem; margin-top: 16px; }
.room-home .hero-label { background: #fff9e8; border-color: #e7bd76; color: var(--room-ink); }
.ari-touch-guide { position: absolute; z-index: 2; left: 60%; right: 3%; top: 75%; transform: translateY(-50%); display: grid; gap: 2px; margin: 0; padding: 8px 10px; border: 1px solid #e7bd76; border-radius: 12px; background: #fff9e8f5; box-shadow: 0 3px 10px #503b2c18; color: #75583b; font-size: .75rem; line-height: 1.55; text-align: center; pointer-events: none; }
.ari-touch-guide[hidden] { display: none; }
.room-stage { max-width: 100%; position: relative; isolation: isolate; }
.room-stage[data-room="hero"] { width: 656px; aspect-ratio: 328 / 360; }
.room-stage[data-room="theme"] { aspect-ratio: 360 / 392; }
.room-light-canvas { display: block; width: 100%; height: 100%; }
.room-backdrop[hidden] { display: none; }
.room-lamp-target { position: absolute; z-index: 1; transform: translate(-50%, -50%); width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.room-lamp-marker { position: absolute; left: calc(50% - 12px); top: calc(50% - 12px); width: 24px; height: 24px; border: 2px solid #fff9e6; border-radius: 50%; background: #ffcb65; box-shadow: 0 0 0 3px #362619cc, 0 0 16px #ffcf7580; opacity: 0; pointer-events: none; }
/* 가까운 두 등은 표시 위치를 유지하며 터치 영역만 서로 벌린다. */
.room-lamp-target[data-light="lampArm"] { margin-top: 12px; }
.room-lamp-target[data-light="lampArm"] .room-lamp-marker { margin-top: -12px; }
.room-lamp-target[data-light="lampReadingPendant"] { margin-top: -12px; }
.room-lamp-target[data-light="lampReadingPendant"] .room-lamp-marker { margin-top: 12px; }
.room-lamp-marker::before, .room-lamp-marker::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; border-radius: 1px; background: #513713; transform: translate(-50%, -50%); }
.room-lamp-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.is-night .room-lamp-target[aria-pressed="false"] .room-lamp-marker { opacity: 1; animation: room-lamp-hint 1.6s ease-in-out 2; }
.room-lamp-target:focus-visible { outline: 2px solid #ffca64; outline-offset: 2px; background: #ffdc8b20; }
.daynight-copy .room-light-guide { margin-top: 14px; color: #80674b; font-size: .9rem; }
.room-light-switch:disabled { cursor: wait; opacity: .65; }
@keyframes room-lamp-hint { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .is-night .room-lamp-target .room-lamp-marker { animation: none; } }
.room-backdrop { width: 100%; height: 100%; }
.ari-touch, .ari-shadow { position: absolute; left: calc(132 / 328 * 100%); top: calc(244 / 360 * 100%); width: calc(64 / 328 * 100%); height: calc(64 / 360 * 100%); }
.ari-shadow { pointer-events: none; }
.room-ari { display: block; width: 100%; height: 100%; }
.ari-touch { display: block; border: 0; background: none; padding: 0; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; }
.ari-touch:focus-visible { outline: 3px dashed var(--color-orange-deep); outline-offset: -8px; }
.ari-bubble { display: block; position: absolute; z-index: 2; padding: 10px 16px; border: 2px solid var(--room-ink); background: #fffdf5; border-radius: 12px; box-shadow: 3px 3px 0 #503b2c20; font-size: .9rem; font-weight: 700; white-space: nowrap; pointer-events: none; }
.ari-bubble::after { content: ''; position: absolute; width: 10px; height: 10px; left: 25%; bottom: -7px; background: #fffdf5; border-right: 2px solid var(--room-ink); border-bottom: 2px solid var(--room-ink); transform: rotate(45deg); }
.room-stage .ari-bubble { bottom: 34%; left: 41%; }
.ari-bubble[hidden] { display: none; }
.room-intro, .room-themes, .room-focus { background: #fffbf2; }
.room-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 32px; }
.room-step { position: relative; background: white; border: 1px solid var(--room-line); border-radius: 16px; padding: 28px 24px; text-align: center; }
.step-number { position: absolute; top: 16px; left: 16px; font-size: .75rem; background: var(--room-ink); color: white; border-radius: 50%; width: 28px; line-height: 28px; }
.step-art { height: 120px; display: flex; justify-content: center; align-items: center; margin-bottom: 16px; }
.room-step h3 { font-size: 1.5rem; margin-bottom: 8px; }
.room-step p { color: #75614e; }
.room-day, .room-coming { background: #faf0da; }
.day-grid { display: grid; grid-template-columns: repeat(4,256px); gap: 28px 16px; justify-content: center; }
.day-art { width: 256px; height: 256px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #eadfcd; box-shadow: inset 0 0 0 1px #d6c5a6; }
.day-tile .sprite { display: block; width: 228px; height: 222px; }
.day-tile .sprite[width="128"] { width: 256px; height: 256px; }
.day-tile .sprite[data-tile="desk"] { width: 240px; height: 240px; }
.day-tile figcaption { padding: 12px 2px 0; }
.day-tile h3 { font-size: 1.2rem; }
.day-tile p { color: #75614e; font-size: .9rem; }
.daynight-preview { display: flex; align-items: center; justify-content: center; gap: 40px; margin: 0 auto 48px; }
.daynight-preview .room-stage { width: 720px; flex: none; }
.daynight-copy { width: 300px; max-width: 100%; flex: none; }
.daynight-copy p { margin-top: 24px; font-size: 1.1rem; }
.room-light-switch { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border: 1px solid var(--room-ink); border-radius: 30px; background: white; color: var(--room-ink); cursor: pointer; font-size: 1rem; font-weight: 700; }
.switch-track { display: inline-block; position: relative; width: 44px; height: 26px; flex: none; background: #c9bba4; border-radius: 16px; }
.switch-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; }
[aria-checked='true'] .switch-track { background: #57537b; }
[aria-checked='true'] .switch-track::after, .switch-track.is-on::after { left: 21px; }
.switch-track.is-on { background: #ff9800; }
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px 24px; }
.theme-card { min-width: 0; text-align: center; background: #fff; border: 1px solid var(--room-line); border-radius: 12px; padding: 12px; }
.theme-card img { width: 100%; height: 252px; object-fit: contain; }
.theme-card figcaption { padding-top: 8px; font-size: .85rem; }
.concept-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; border: 1px dashed #b58c51; background: #fff8e8; padding: 20px; margin-top: 32px; border-radius: 12px; }
.concept-strip h3 { font-size: 1.2rem; }
.concept-list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; gap: 12px 24px; }
.concept-list li { display: flex; gap: 10px; align-items: center; font-size: .85rem; }
.concept-list img { width: 32px; height: 32px; }
/* 세로 앱 화면을 중심으로 소개·전경·실제 행동 영상을 연결한다. */
.room-home .village { background: linear-gradient(180deg,#e7efdf,#dcebe0); }
.village-scenes { display: grid; grid-template-columns: 296px minmax(0,1fr); gap: 24px 32px; max-width: 1000px; margin: 0 auto 28px; padding: 28px; border: 1px solid #c3d2ba; border-radius: 28px; background: #fffdf3b8; box-shadow: 0 12px 32px #36543b0a; }
.village-scene-copy { grid-column: 2; grid-row: 1; align-self: end; min-width: 0; }
.village-scene-copy .section-title { text-align: left; font-size: clamp(1.9rem,2.6vw,2.35rem); line-height: 1.3; margin-bottom: 16px; color: #36563d; }
.village-scene-copy .section-desc { text-align: left; margin: 0 0 18px; line-height: 1.75; color: #60715d; }
.village-scene--portrait { grid-column: 1; grid-row: 1 / 3; width: 100%; max-width: 296px; align-self: center; justify-self: center; padding: 8px 8px 12px; border: 1px solid #ded9c7; border-radius: 24px; background: #fffaf1; box-shadow: 0 12px 24px #36543b14; }
.village-scenes img { width: 100%; height: auto; display: block; border-radius: 16px; }
.village-scenes figcaption { color: #566e52; text-align: center; margin-top: 10px; font-size: .8rem; }
.village-scene--landscape { grid-column: 2; grid-row: 2; align-self: start; min-width: 0; position: relative; }
.village-scene--landscape img { border: 1px solid #fff8e7; }
.village-scene--landscape figcaption { position: absolute; left: 14px; bottom: 14px; margin: 0; padding: 6px 12px; border: 1px solid #f9f4e8; border-radius: 999px; background: #fffaf1f0; color: #3c5f43; }
.pet-count { width: fit-content; margin: 0; padding: 6px 12px; border: 1px solid #c7d7b9; border-radius: 999px; background: #e3edd8; color: #426044; font-size: .8rem; font-weight: 700; }
.room-home .village-demo { display: grid; grid-template-columns: minmax(0,1fr) 432px; gap: 16px 28px; max-width: 1000px; margin: 0 auto; padding: 24px; border: 1px solid #c3d2ba; border-radius: 24px; background: #f7fbf3; }
.room-home .village-btns { grid-template-columns: 1fr; gap: 8px; width: 100%; }
.room-home .village-btn { background: transparent; border: 2px solid transparent; border-radius: 14px; padding: 14px 16px; text-align: left; }
.room-home .village-btn:hover { border-color: #c5d7bd; background: #eef4e8; }
.room-home .village-btn.is-active { border-color: #91af82; background: #e3edd9; }
.room-home .village-btn-icon { background: #e4eedb; color: #53734c; }
.room-home .village-btn.is-active .village-btn-icon { background: #4c7048; color: white; }
.room-home .village-btn-text strong { color: #36563d; }
.room-home .village-player { margin: 0; grid-column: 2; grid-row: 1 / 3; max-width: none; align-self: center; }
.room-home .village-video { height: auto; max-width: none; border-radius: 16px; box-shadow: none; }
.room-home .village-caption { margin: 0; padding: 8px 16px 0; text-align: left; max-width: none; font-size: .85rem; color: #5d7156; }
.focus-compare, .focus-records, .coming-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 32px; }
.focus-ordinary, .focus-deep { border-radius: 16px; padding: 28px; }
.focus-ordinary { background: #f1efeb; border: 1px dashed #beb6ab; color: #6f6c67; }
.focus-ordinary h3 { font-size: 1.2rem; }
.focus-ordinary ol { list-style: none; counter-reset: blockers; display: grid; gap: 10px; margin: 20px 0; }
.focus-ordinary li { counter-increment: blockers; padding: 9px 12px; border-radius: 6px; background: #fff; font-size: .95rem; }
.focus-ordinary li::before { content: counter(blockers); background: #e6e2dc; border-radius: 50%; display: inline-block; text-align: center; width: 24px; margin-right: 10px; }
.focus-ordinary > p { font-size: .9rem; }
.focus-deep { border: 2px solid #896343; background: #fff5df; box-shadow: 4px 4px 0 #dcc5a5; }
.deep-label { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid #ddc6a2; }
.deep-label h3 { flex: 1; font-size: 1.4rem; }
.deep-fire { flex: none; width: 28px; height: 32px; background: #ff9800; mask: url('/images/room/icons/fa_fire.svg') center / contain no-repeat; -webkit-mask: url('/images/room/icons/fa_fire.svg') center / contain no-repeat; }
.deep-claim { font-size: 1.5rem; font-weight: 700; color: #a55300; margin: 20px 0 16px; }
.focus-deep ul { list-style: none; display: grid; gap: 14px; }
.focus-deep li { padding-left: 22px; position: relative; }
.focus-deep li::before { content: '✓'; position: absolute; left: 0; color: #a55300; }
.record-card { display: flex; align-items: center; gap: 24px; background: white; border: 1px solid var(--room-line); border-radius: 16px; padding: 24px; }
.record-card > img { width: 200px; height: auto; flex: none; border-radius: 10px; border: 1px solid var(--room-line); }
.record-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.record-card p { font-size: .95rem; color: #75614e; }
.record-card small { display: block; color: #725e41; background: #fff3d6; padding: 8px 10px; border-radius: 6px; margin-top: 12px; }
.coming-card { position: relative; display: flex; align-items: center; gap: 24px; padding: 56px 24px 28px; background: white; border: 1px solid var(--room-line); border-radius: 16px; }
.coming-card > img { flex: none; }
.coming-badge { position: absolute; right: 16px; top: 16px; border-radius: 20px; background: var(--room-ink); color: #fff; padding: 4px 12px; font-size: .75rem; }
.coming-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.coming-card p { color: #75614e; font-size: .95rem; }
.coming-card small { display: block; margin-top: 16px; color: #3f6e4c; }
.room-home .pricing-grid { max-width: none; }
.room-home .price-card { position: relative; padding: 28px; }
.room-home .price-card--life { background: #fff9e8; border-color: #d49b43; }
.room-home .price-card h3 { font-size: 1.6rem; }
.room-home .price-card--life h3, .room-home .price-card--life .price-tag { padding-right: 156px; }
.golden-egg { position: absolute; right: 10px; top: 0; width: 160px; height: 160px; pointer-events: none; }
.room-home #faq { background: #faf0da !important; }
.room-home .faq-item { margin-top: 12px; color: #75614e; }
.room-parents { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 760px; margin: 32px auto 0; padding: 18px 24px; border-radius: 10px; background: #c8dfcb; color: #2d5c3e; font-size: .9rem; }
.room-download { background: #ffda91; }
.final-invite { display: flex; align-items: center; justify-content: center; gap: 48px; }
.final-invite .section-title { text-align: left; }
.final-ari { position: relative; flex: none; padding-top: 32px; }
.final-ari .sprite { display: block; width: 192px; height: 192px; }
.final-ari .ari-bubble { top: 0; left: 50%; transform: translateX(-50%); }
.room-home .store-badges { flex-wrap: wrap; }
@media (max-width: 1199px) {
  .room-hero-grid { grid-template-columns: minmax(0,1fr) 328px; max-width: 1000px; }
  .room-stage[data-room="hero"] { width: 328px; }
  .day-grid { grid-template-columns: repeat(3,256px); gap: 24px 16px; }
  .daynight-preview .room-stage { width: 360px; }
}
@media (max-width: 1023px) {
  .theme-grid { gap: 20px 16px; }
  .theme-card img { height: 196px; }
  .village-scenes { grid-template-columns: 264px minmax(0,1fr); gap: 24px; padding: 24px; }
  .room-home .village-demo { grid-template-columns: minmax(0,1fr) 384px; gap: 20px; }
  .coming-card { flex-direction: column; align-items: flex-start; }
  .record-card { gap: 16px; padding: 20px; }
  .record-card > img { width: 160px; }
}
@media (max-width: 899px) {
  .room-hero-grid { grid-template-columns: minmax(0,1fr); justify-items: center; gap: 32px; }
  .room-hero-copy { max-width: 620px; text-align: center; }
  .room-hero .store-badges { justify-content: center; }
  .room-stage[data-room="hero"] { width: 656px; }
  .day-grid { grid-template-columns: repeat(2,256px); }
  .daynight-preview { gap: 24px; }
  .room-home .village-demo { grid-template-columns: 1fr; }
  .room-home .village-btns { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .room-home .village-player { grid-column: 1; grid-row: 2; margin: auto; max-width: 432px; }
  .room-home .village-caption { text-align: center; }
  .record-card { flex-direction: column; align-items: flex-start; }
  .record-card > img { width: 240px; align-self: center; }
}
@media (max-width: 767px) {
  .village-scenes { grid-template-columns: 1fr; gap: 28px; }
  .village-scene-copy { grid-column: 1; grid-row: 1; }
  .village-scene-copy .section-title, .village-scene-copy .section-desc { text-align: center; }
  .village-scene-copy .pet-count { margin-inline: auto; }
  .village-scene--portrait { grid-column: 1; grid-row: 2; max-width: 320px; }
  .village-scene--landscape { grid-column: 1; grid-row: 3; width: 100%; max-width: 600px; justify-self: center; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .theme-card img { height: 260px; }
  .room-steps { gap: 12px; }
  .room-step { padding: 48px 12px 20px; }
  .room-step h3 { font-size: 1.2rem; }
  .room-step p { font-size: .85rem; }
  .daynight-preview { flex-direction: column; }
  .daynight-copy { text-align: center; }
  .room-light-switch { margin: auto; }
  .focus-compare, .focus-records, .coming-grid { grid-template-columns: 1fr; }
  .record-card { flex-direction: row; align-items: center; padding: 24px; }
  .coming-card { flex-direction: row; align-items: center; }
  .room-hero h1 { font-size: 2.7rem; }
}
@media (max-width: 639px) {
  .room-home .room-section, .room-home .village, .room-home .pricing { padding: 52px 0; }
  .room-hero { padding: 32px 0 40px; }
  .room-hero h1 { font-size: 2.35rem; }
  .room-stage[data-room="hero"] { width: 328px; }
  .room-lead { font-size: 1rem; }
  .room-promise { font-size: .8rem; }
  .room-home .store-badge img { height: 44px; }
  .room-home .store-badge img[src*="google-play"] { height: 42px; }
  .room-steps { grid-template-columns: 1fr; }
  .room-step { display: grid; grid-template-columns: 108px 1fr; align-items: center; text-align: left; gap: 4px 16px; padding: 24px 20px; }
  .step-number { top: 8px; left: 8px; width: 22px; line-height: 22px; font-size: .65rem; }
  .step-art { grid-row: 1 / 3; margin: 0; }
  .room-step h3 { align-self: end; font-size: 1.4rem; }
  .room-step p { align-self: start; font-size: .9rem; }
  .day-grid { grid-template-columns: repeat(2,160px); gap: 24px 12px; }
  .day-art { width: 160px; height: 160px; }
  .day-tile .sprite { width: 152px; height: 148px; }
  .day-tile .sprite[width="128"] { width: 128px; height: 128px; }
  .day-tile .sprite[data-tile="desk"] { width: 160px; height: 160px; }
  .day-tile h3 { font-size: 1.15rem; }
  .day-tile p { font-size: .85rem; }
  .daynight-preview .room-stage { width: 360px; max-width: 100%; }
  .theme-grid { gap: 20px 12px; }
  .theme-card { padding: 8px; }
  .theme-card img { height: 180px; }
  .concept-strip { align-items: flex-start; gap: 16px; }
  .concept-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .village-scenes { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; margin-bottom: 32px; }
  .room-home .village-demo { padding: 12px; gap: 16px; border-radius: 20px; }
  .room-home .village-btn { padding: 10px 6px; gap: 6px; }
  .room-home .village-btn-icon { width: 28px; height: 28px; }
  .room-home .village-btn-text strong { font-size: .9rem; }
  .room-home .village-video { max-width: 100%; }
  .room-home .village-caption { font-weight: 400; }
  .focus-ordinary, .focus-deep { padding: 24px 20px; }
  .deep-label { gap: 8px; }
  .deep-label h3 { font-size: 1.25rem; }
  .record-card { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px 20px; }
  .record-card > img { width: 240px; }
  .record-card h3 { font-size: 1.2rem; }
  .record-card p { font-size: .85rem; }
  .coming-card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .room-home .price-card { padding: 24px 20px; }
  .room-home .price-card--life h3, .room-home .price-card--life .price-tag { padding-right: 130px; }
  .golden-egg { right: -8px; }
  .room-parents { flex-direction: column; align-items: flex-start; padding: 20px; }
  .final-invite { flex-direction: column; gap: 24px; }
  .final-invite .section-title { text-align: center; }
  .final-invite .store-badges { justify-content: center; }
}
@media (max-width: 359px) {
  .day-grid { grid-template-columns: 256px; }
  .day-art { width: 256px; height: 256px; }
  .day-tile .sprite[width="128"] { width: 256px; height: 256px; }
  .theme-card img { height: 150px; }
  .day-tile .sprite { width: 228px; height: 222px; }
  .day-tile .sprite[data-tile="desk"] { width: 240px; height: 240px; }
  .record-card { flex-direction: column; }
  .room-home .price-card--life h3, .room-home .price-card--life .price-tag { padding-right: 110px; }
}
