/* EverMemory warm theme (2026-10-15). Note: the plain 'Pretendard' family is intentionally absent from --sans; listing it would make glyph fallback (e.g. ↗) fetch the 2 MB full font declared in theme.css. Loaded last on every 2D page and on the 3D overlay. Tokens echo the room: cream, oak, champagne.
   Scope: typography, colour, radius, spacing. Not touched: approved 2D garden entrance (#room .garden-*), the 3D scene, the wide-border corner. */
:root{
 --paper:#f8f4ec;--card:#fffdf8;--ink:#2b2621;--muted:#6e665e;--line:#e6dccd;--line-strong:#d6c8b4;
 --accent:#6b5744;--accent-ink:#4f3f31;--accent-soft:#f1e8db;--gold:#c4a473;--gold-soft:#eadcc2;--danger:#9a4b3b;
 --sans:'Pretendard Variable',-apple-system,'Apple SD Gothic Neo','Noto Sans KR',system-ui,sans-serif;
 --serif:'Gowun Batang','Nanum Myeongjo','Apple SD Gothic Neo',serif;
 --display:'Gowun Batang',Georgia,serif;
 --radius:14px;--shadow:0 1px 2px rgba(60,42,22,.05),0 12px 32px rgba(60,42,22,.06);
 font-family:var(--sans);background:var(--paper);color:var(--ink);
}
html{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{background:var(--paper);color:var(--ink);font-family:var(--sans);letter-spacing:-.01em}
button,input,select,textarea,.button{font-family:var(--sans)}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
[tabindex="-1"]:focus:not(:focus-visible){outline:none}
h1[tabindex="-1"]:focus,h2[tabindex="-1"]:focus,h3[tabindex="-1"]:focus,section[tabindex="-1"]:focus{outline:none}
::selection{background:var(--gold-soft)}

/* ---------- gallery (2D archive) ---------- */
.brand{font-family:var(--display);font-weight:700;font-size:30px;letter-spacing:-.01em;color:var(--accent-ink)}
.brand span{font-family:var(--sans);font-weight:400;color:var(--muted);letter-spacing:0}
.local-context{color:var(--muted);border-color:var(--line)}
.local-context a{color:var(--accent-ink)}
.return-nav{background:#f8f4ecf2}.return-nav a{color:var(--accent-ink)}
.cover h1,.archive-cover h1,.cover-empty h2,.memory-section h2,.room-section h2,.home-story h2,.letter-paper h2,.rem-heading h2,.rem-dialog h2,.shop-heading h2,.empty-memory h3,.rem-anniversary h3,.rem-history h3,.rem-collection h3,.rem-pet-name,.lifecycle-panel h2,.lifecycle-panel h3,.shop-custom h3,.server-inventory h3,#dialog-caption,.rem-visitor-notes+h3,#remembrance h3{font-family:var(--serif);font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.archive-cover h1{font-size:40px;line-height:1.25}
.eyebrow,.archive-cover .eyebrow,.memory-section .eyebrow,.room-section .eyebrow,.rem-eyebrow,.shop-heading .eyebrow{color:#8c7a60;letter-spacing:.14em;font-weight:600;text-transform:none}
.hero-line{font-family:var(--serif);font-size:18px;line-height:1.9;color:#4e4740}
.home-story p{font-family:var(--serif);font-size:16px;line-height:1.95;color:#574f47}
.home-story a{color:var(--accent-ink)}
.memory-stats,.room-caption,.photo-caption h3,.footer,.local-only-note{color:var(--muted)}
.memory-nav{border-color:var(--line)}
.memory-nav a{font-size:15px;color:var(--muted);padding-bottom:10px;border-bottom:2px solid transparent;text-decoration:none}
.memory-nav a[aria-current],.memory-nav a.active,.memory-nav a.current,.memory-nav a[data-active=true]{color:var(--accent-ink);border-bottom-color:var(--gold)}
.memory-nav a:hover{text-decoration:none;color:var(--accent-ink)}
button,.button,a.primary,.entry-actions a,.entry-actions button,.cover-all,.album-tools button,.letter-tools a{border-radius:12px}
button,.button{border-color:var(--line-strong);background:var(--card);color:var(--accent-ink)}
a.primary,.primary,.entry-actions a.primary,.memory-section>.button-row .primary,.shop-pay,#remembrance .primary{background:var(--accent);border-color:var(--accent);color:#fff}
a.primary:hover,.primary:hover:not(:disabled),.shop-pay:hover{background:var(--accent-ink);filter:none}
@media(min-width:641px){.archive-cover .entry-actions a{color:var(--accent-ink);text-decoration-color:var(--gold)}
 .archive-cover .entry-actions a.primary{background:var(--accent);color:#fff;text-decoration:none;padding:12px 18px;border-radius:12px;min-height:46px;display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600}
 .archive-cover .entry-actions a.primary span{display:inline}
 .archive-cover .entry-actions a.primary:hover{background:var(--accent-ink)}}
@media(max-width:640px){.archive-cover .entry-actions a,.archive-cover .entry-actions a.primary{color:#fff}}
.archive-cover .entry-actions button{border-bottom-color:var(--line-strong);color:var(--accent-ink)}
.archive-mosaic .cover-photo,.mosaic-extra,.photo-open,.em-media,.room-preview{background:var(--accent-soft)!important;border-radius:10px!important}
.cover-all{background:#fffdf8f0;color:var(--accent-ink);border-color:var(--line-strong)}
.album-tools button{color:var(--muted)}.album-tools button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-ink)}
.letter-paper{background:var(--card)}
.letter-paper #letter-body{font-family:var(--serif);font-size:18px;line-height:2.1;color:#3a332c}
.letter-tools{border-color:var(--line)}.letter-tools a{color:var(--accent-ink)}
#remembrance{--rem-ink:var(--ink);--rem-muted:var(--muted);--rem-line:var(--line);--rem-paper:var(--card);--rem-accent:var(--accent)}
#remembrance .rem-primary:hover{background:var(--accent-ink)}
#remembrance .rem-heading h2,#remembrance .rem-dialog h2,#remembrance .rem-anniversary h3,#remembrance .rem-history h3,#remembrance .rem-collection h3,#remembrance .server-inventory h3{font-family:var(--serif);font-weight:700;letter-spacing:-.01em;color:var(--ink)}
#remembrance .rem-primary,#remembrance .rem-secondary,#remembrance .rem-text-button,#remembrance .rem-close,#remembrance .rem-slot-choice{border-radius:12px}
.rem-feature,.rem-note{border-radius:var(--radius)!important;background:var(--card);border:1px solid var(--line)}
.rem-visitor,.rem-session-hint,.rem-collection-help,.rem-purchase-note{background:var(--accent-soft);border-radius:var(--radius);color:#574f47}
.rem-note-form textarea,.rem-anniversary-form input{font-family:var(--serif);font-size:17px;line-height:1.8;border:1px solid var(--line-strong);border-radius:12px;background:#fff}
.rem-entry p,.rem-visitor-notes p,.rem-note-prompt{font-family:var(--serif);color:#3a332c}
.rem-entry time,.rem-visitor-notes time,.rem-note-date,.rem-small{color:var(--muted)}
.rem-visitor-notes li,.rem-entry{border-color:var(--line)}
#remembrance .rem-catalog-item[aria-pressed=true],#remembrance .rem-collection-filter[aria-pressed=true]{border-color:var(--gold);background:var(--accent-soft)}
.rem-storage summary{color:var(--muted)}
.shop-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card)}
.shop-card:focus-visible{outline-color:var(--gold)}
.shop-card-price,.shop-detail-price{color:var(--accent-ink)}
.shop-availability{color:var(--muted)}.shop-availability span{color:#8c7a60}
.lifecycle-panel{border-color:var(--line)}
.lifecycle-panel h2{font-size:22px}
.footer{border-top:1px solid var(--line);color:var(--muted)}
.footer>span:first-child{font-family:var(--display);font-weight:700;font-size:18px;color:var(--accent-ink)}
#photo-dialog{background:#1d1814}
#photo-dialog .dialog-close{background:#fffdf8e6;color:var(--accent-ink);border-radius:999px;border:0}
#dialog-caption{color:#f3ebe0}#dialog-moment{color:#c9bca9}
.service-alert{background:#fbf1e6;color:#6f4a2a;border-radius:12px}
.empty-memory,.cover-empty{background:var(--accent-soft);border-radius:var(--radius)}
.cover-empty a,.empty-memory a{color:var(--accent-ink);text-decoration-color:var(--gold)}
.policy-section{border-color:var(--line)}

/* ---------- 3D overlay (DOM only; the scene is untouched) ---------- */
.immersive-view .immersive-bar{background:linear-gradient(#f4eee4d9,transparent)}
.immersive-view .immersive-name{font-family:var(--serif);font-weight:700;font-size:16px;letter-spacing:.02em;color:#3b3128}
.immersive-view .immersive-bar button{background:#fdfaf4ea;border:1px solid #d9cdb866;color:var(--accent-ink);border-radius:999px;box-shadow:0 2px 10px rgba(60,42,22,.08)}
.immersive-view #viewer-status{background:#fbf7efe6;color:#5b5147;border-radius:10px;font-size:12px}
.immersive-view .walk-controls{background:#fbf7eff0;border:1px solid #dfd3c066;border-radius:28px;box-shadow:0 4px 18px rgba(60,42,22,.1)}
.immersive-view .walk-controls button{color:var(--accent-ink)}
.walk-controls .photo-tour button{color:#fff;background:var(--accent);border:0;border-radius:999px;font-weight:600}
.walk-controls .photo-tour button:disabled{opacity:.35}
.walk-controls #tour-count{color:var(--muted);font-family:var(--serif);font-size:14px}
.walk-controls .walk-row button{color:var(--muted);background:transparent;border:0}
.immersive-view #current-artwork{font-family:var(--serif);background:#fffdf8f2;border:1px solid var(--line);border-radius:12px;color:#3b3128;box-shadow:0 4px 16px rgba(60,42,22,.08)}
.immersive-view .wall-letter-controls button,.immersive-view .wall-media-controls button{background:#fdfaf4ea;border:1px solid #d9cdb866;color:var(--accent-ink);border-radius:999px}
#app-status.error{background:#fbf1e6;color:#6f4a2a;border-radius:12px}

/* ---------- studio ---------- */
body.studio,.shell{color:var(--ink)}
.studio-brand,.brand.studio{font-family:var(--display)}
.intro h1,.editor-heading h2,.guide h2,.welcome-panel h2,.section-title h2,.section-title h3,.letter-panel h3,.conflict-panel h3,.view-panel h3,.record-picker h2,.empty-heading,.operations h2,.collection-section h3,.lifecycle-panel h2{font-family:var(--serif);font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.intro h1{font-size:30px}
.intro-copy,.muted,small{color:var(--muted)}
.intro-note p{color:#8c7a60}
.overline,.editor-heading .overline,.intro .overline,.letter-heading .overline,.record-picker .section-title .overline{color:#8c7a60;letter-spacing:.14em}
.panel{background:var(--card);border-color:var(--line);border-radius:16px}
.steps{border-color:var(--line)}.steps li{color:var(--muted)}.steps li.current{color:var(--accent-ink)}
.steps li span{font-family:var(--display);color:var(--gold);font-weight:700}
.steps li.current span{color:var(--accent-ink)}
.welcome-panel{background:var(--accent-soft);border-radius:18px}
.primary,.primary:hover{background:var(--accent);border-color:var(--accent);color:#fff}
.primary:hover{background:var(--accent-ink);border-color:var(--accent-ink)}
.quiet{background:transparent;border-color:transparent;color:var(--muted)}
.pill{background:var(--accent-soft);color:var(--accent-ink)}
.editor-nav a{color:var(--accent-ink)}
.record-overview strong{font-family:var(--serif);color:var(--accent-ink)}
.lifecycle-panel,.view-panel,.letter-tools,.collection-section{border-color:var(--line)}
.letter-panel textarea,#guide-note{font-family:var(--serif);font-size:17px;line-height:1.9;color:#3a332c;background:#fff;border:1px solid var(--line-strong);border-radius:12px}
.letter-panel textarea:focus,#guide-note:focus{border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}
.guide{border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:var(--shadow)}
.guide-dots li{background:var(--gold-soft)}.guide-dots li.on{background:var(--gold)}
.guide .overline{color:#8c7a60}
.guide-field input{border:1px solid var(--line-strong);border-radius:12px;background:#fff}
.guide-field input:focus{border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft);outline:none}
.guide-bar{background:var(--accent-soft)}.guide-bar span{background:var(--gold)}
.guide-upload{border:1.5px dashed var(--line-strong);background:var(--accent-soft);color:var(--accent-ink);border-radius:14px}
.guide-upload:hover{border-color:var(--gold)}
.guide-progress span{font-family:var(--serif);color:var(--accent-ink)}
.check{color:#574f47}.check input{accent-color:var(--accent)}
input:not([type=checkbox]):not([type=file]),select,textarea{border-color:var(--line-strong);border-radius:12px;background:#fff;font-family:var(--sans)}
.photo-card{background:var(--card);border-color:var(--line);border-radius:12px}
.photo-card img{border-radius:10px;background:var(--accent-soft)}
.conflict-panel{background:#fbf1e6;border-color:#eacfae;border-radius:14px}
.bad,.error,#status{color:var(--danger)}.good{color:#5c6b4e}
.share-form input,.share-form select{border-color:var(--line-strong)}
.operations>summary{color:var(--muted)}
footer{border-color:var(--line);color:var(--muted)}
footer .brand{color:var(--accent-ink);font-family:var(--display);font-weight:700}
footer p{font-size:12px}footer>span{font-size:11px}
main>.shell>a[href="./evermemory-account"],.shell>a[href="./evermemory-account"]{color:var(--accent-ink)}

/* ---------- account ---------- */
main.account h1,main.account h2,main.account h3{font-family:var(--serif);font-weight:700;letter-spacing:-.01em}
main.account button{background:var(--accent);color:#fff;border:0;border-radius:12px}
main.account button:hover:not(:disabled){background:var(--accent-ink)}
main.account a{color:var(--accent-ink)}
main.account section{border-color:var(--line)}
main.account input:not([type=checkbox]),main.account select{border-color:var(--line-strong);border-radius:12px}
.product-card{border:1px solid var(--line);border-radius:16px;background:var(--card)}
.product-title{font-family:var(--serif);font-size:18px;color:var(--ink)}
.product-compare{color:#8c7a60}
.renewal-terms li{color:#574f47}.renewal-terms li::before{background:var(--gold)}
.renewal-terms li strong,.renewal-choice,.renewal-status{color:var(--accent-ink)}
.renewal-terms li.quiet::before{background:var(--gold-soft)}

@media(max-width:640px){
 .brand{font-size:26px}
 .archive-cover h1{font-size:32px}
 .memory-nav a{font-size:14px}
 .intro h1{font-size:26px}
 .letter-paper #letter-body{font-size:17px;line-height:2}
}

/* photo viewer stepper + item shop + 3D viewer pills */
.photo-stepper button{background:#2b2621e6;border:1px solid #5a5048;border-radius:999px;color:#fff}
.shop-preview{background:var(--card);color:var(--accent-ink);border:1px solid var(--line-strong)}
.shop-dialog{border-radius:18px;border:1px solid var(--line)}
.shop-dialog::backdrop{background:#2b262199}

/* Entrance loading state (garden placeholder): the approved entrance files are untouched. Until the 641 KB garden photo decodes, a 40px blurred copy sits behind it so the door never floats on a flat block. Covered completely once the photo paints. */
.garden-scene{background:#c1cab3 url(data:image/webp;base64,UklGRpYBAABXRUJQVlA4IIoBAAAwCACdASooABsAPsFUoEunpKMhqqwA8BgJQBajbcUmmhvpJAjVo954gAr2pVfKbkVirILVlI5gauabWmFE2VawHTPbNVbyIY4AAAD8jpN3qTntWDiyjAATquxyMlwHwZinclQu89g5LIIoNzT1UGjVqfKRJZqyIWWTOPmYr1sRlqTQTTaHBSAYh3XoSY6jR/pEGF2dFu9Lo0jiMqTcex1vL5B0jryDILBtY0LeBoI8UkPyBW/WT+7uRbpbOmbn/pOSypbiCtEhKl98WV1f+bjp+dEZ8YLTsg5FB6TFUtf2HmDAKor9PfkTueEnkAgVlLcrtSu8WF8qtFd1Fmmj4omLN+aoWvR65W/Sjn9/4C52+N9y62N8wfQMvoQ11gKYk9eRSXs8txzOF7RDshCPZE7QpKN4eSW+2k0FP+aKBpCTsIRJy3ThPPlGiQSC4ekvdflXKGU1VqzkvByHlxxzymbSm8U46h2LN1tIdKuQ96o/a8qokVq4cxfI/8TkEXuIlD7hK9Fvxj6VVfgA) center/cover no-repeat}
.garden-picture{background:url(data:image/webp;base64,UklGRpYBAABXRUJQVlA4IIoBAAAwCACdASooABsAPsFUoEunpKMhqqwA8BgJQBajbcUmmhvpJAjVo954gAr2pVfKbkVirILVlI5gauabWmFE2VawHTPbNVbyIY4AAAD8jpN3qTntWDiyjAATquxyMlwHwZinclQu89g5LIIoNzT1UGjVqfKRJZqyIWWTOPmYr1sRlqTQTTaHBSAYh3XoSY6jR/pEGF2dFu9Lo0jiMqTcex1vL5B0jryDILBtY0LeBoI8UkPyBW/WT+7uRbpbOmbn/pOSypbiCtEhKl98WV1f+bjp+dEZ8YLTsg5FB6TFUtf2HmDAKor9PfkTueEnkAgVlLcrtSu8WF8qtFd1Fmmj4omLN+aoWvR65W/Sjn9/4C52+N9y62N8wfQMvoQ11gKYk9eRSXs8txzOF7RDshCPZE7QpKN4eSW+2k0FP+aKBpCTsIRJy3ThPPlGiQSC4ekvdflXKGU1VqzkvByHlxxzymbSm8U46h2LN1tIdKuQ96o/a8qokVq4cxfI/8TkEXuIlD7hK9Fvxj6VVfgA) center/cover no-repeat}

/* Entrance CTA colour only (owner "오케이 진행해" 2026-10-15): the approved entrance photo, door, paw prints and approach animation are untouched; this is a theme-level colour override and reverts by deleting these two lines. */
.garden-actions #preview-enter{background:var(--accent);border-color:var(--accent);color:#fff;border-radius:12px;font-size:15px;font-weight:600}
.garden-actions #preview-enter:hover{background:var(--accent-ink);border-color:var(--accent-ink)}
.garden-cancel{background:var(--card);color:var(--accent-ink);border-color:var(--line-strong);border-radius:12px}

/* Entrance loader: six paw prints (same motif as the approved approach walk) fill with real download progress. */
.garden-entering .garden-actions{flex-wrap:wrap;justify-content:center;row-gap:14px}
.entry-loader{flex:1 1 100%;order:-1;margin:6px auto 0;width:min(420px,calc(100% - 24px));text-align:center;color:var(--accent-ink)}
.entry-loader-paws{display:flex;justify-content:center;gap:10px;margin-bottom:10px}
.entry-loader-paw{width:26px;height:28px;opacity:.18;transform:rotate(calc(var(--i) * 6deg - 15deg)) translateY(calc((var(--i) - 2.5) * 1.2px));transition:opacity .35s ease,transform .35s ease}
.entry-loader-paw svg{width:100%;height:100%;fill:var(--accent)}
.entry-loader-paw.on{opacity:1;transform:rotate(calc(var(--i) * 6deg - 15deg)) translateY(0)}
.entry-loader-bar{height:4px;border-radius:2px;background:var(--gold-soft);overflow:hidden}
.entry-loader-bar span{display:block;height:100%;width:var(--entry-progress,0%);background:var(--gold);transition:width .3s ease}
.entry-loader-text{margin:8px 0 0;font-family:var(--serif);font-size:15px;color:#5b5147}
@media(prefers-reduced-motion:reduce){.entry-loader-paw{transition:none}.entry-loader-bar span{transition:none}}

.walk-controls .walk-toggle{align-self:center;background:transparent;border:0;color:var(--muted);font-size:12px;min-height:32px;padding:2px 10px}
.walk-controls .walk-toggle[aria-expanded=true]{color:var(--accent-ink)}

/* Open-door glimpse: behind the opening door the real interior (pre-rendered 6 KB still: oak ceiling, plaster wall, marble floor) replaces the flat glow so outside and inside read as one house. Approved entrance files untouched. */
.garden-door-light{background:#e9dfcf url(./entry-glimpse.webp) center/cover no-repeat;box-shadow:inset 9px 0 18px #352d2566,inset 0 0 0 1px #c9b690}
.garden-door-light:after{display:none}

/* Touch joystick: quiet champagne ring, oak knob; sits above-left of the tray. Hidden until the 3D viewer is ready. */
.walk-stick{display:none;position:absolute;left:14px;bottom:calc(var(--tray-height,102px) + 26px + env(safe-area-inset-bottom));width:84px;height:84px;border-radius:50%;background:#fbf7efcc;border:1px solid #dfd3c0;box-shadow:0 4px 18px rgba(60,42,22,.12);touch-action:none;user-select:none;-webkit-user-select:none;z-index:6}
.immersive-view.viewer-ready .walk-stick{display:block}
.walk-stick.on{background:#fbf7eff2}
.walk-stick-knob{position:absolute;left:50%;top:50%;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;background:var(--accent);box-shadow:0 2px 6px rgba(60,42,22,.25);transition:transform .08s linear}
.walk-stick.on .walk-stick-knob{transition:none}
.walk-stick-arrow{position:absolute;width:0;height:0;border:5px solid transparent;opacity:.45}
.walk-stick-arrow.up{left:50%;top:7px;margin-left:-5px;border-bottom-color:var(--accent-ink);border-top:0}
.walk-stick-arrow.down{left:50%;bottom:7px;margin-left:-5px;border-top-color:var(--accent-ink);border-bottom:0}
.walk-stick-arrow.left{top:50%;left:7px;margin-top:-5px;border-right-color:var(--accent-ink);border-left:0}
.walk-stick-arrow.right{top:50%;right:7px;margin-top:-5px;border-left-color:var(--accent-ink);border-right:0}
@media(max-width:640px){.immersive-view.viewer-ready #current-artwork{left:108px;width:calc(100% - 120px)}}

.immersive-view .immersive-bar .sound-toggle{order:-1;margin-right:auto}
.immersive-view .immersive-bar .sound-toggle[aria-pressed=true]{background:var(--accent);color:#fff;border-color:var(--accent)}

/* 우리 아이의 노래 (Rêverlyric memory song) */
#sound .song-lead{font-family:var(--serif);font-size:17px;line-height:1.9;color:#4e4740;max-width:34ch}
.song-steps{list-style:none;counter-reset:song;padding:0;margin:18px 0 20px;display:grid;gap:10px;max-width:520px}
.song-steps li{counter-increment:song;position:relative;padding:12px 14px 12px 46px;background:var(--card);border:1px solid var(--line);border-radius:12px;font-size:15px;line-height:1.6;color:#4e4740}
.song-steps li::before{content:counter(song);position:absolute;left:14px;top:11px;width:22px;height:22px;border-radius:50%;background:var(--gold-soft);color:var(--accent-ink);font-family:var(--display);font-weight:700;font-size:13px;display:grid;place-items:center}
#sound a.song-cta{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 22px;border-radius:12px;background:var(--accent);color:#fff;text-decoration:none;font-weight:600;font-size:16px}
#sound a.song-cta:hover{background:var(--accent-ink)}
#sound .song-note{margin:10px 0 0;max-width:520px;line-height:1.6}
#sound .song-secondary{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;color:var(--accent-ink);text-decoration-color:var(--gold)}
.home-song{grid-column:1;display:grid;grid-template-columns:220px 1fr auto;gap:32px;align-items:start;border-bottom:1px solid var(--line);padding:22px 0 28px}
.home-song h2{font-family:var(--serif);font-size:19px;font-weight:700;margin:0;line-height:1.6}
.home-song p{margin:0;font-family:var(--serif);font-size:16px;line-height:1.9;color:#574f47}
.home-song a{font-size:12px;min-height:44px;display:flex;align-items:center;white-space:nowrap;color:var(--accent-ink)}
@media(max-width:640px){.home-song{grid-template-columns:1fr;gap:8px}.home-song a{min-height:40px}}

#sound .song-copy{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:14px;max-width:520px}
#sound .song-copy-letter{min-height:44px;padding:10px 16px;border:1px solid var(--line-strong);border-radius:12px;background:var(--card);color:var(--accent-ink);font-weight:600}

/* 2026-10-18 노래 초대 화면 디자인 마감(Claude): 샘플을 먼저 보여 주고, 모바일은 옆으로 넘기는 한 줄, PC는 왼쪽 약속·버튼 + 오른쪽 샘플 2×2.
   v12 .sound-section의 2칸 자동배치(1fr auto)가 새 요소를 좌우로 엇갈리게 놓던 문제를 노래 초대 상태에서만 덮어쓴다. */
#sound{word-break:keep-all}
#sound h2,#sound .song-samples h3,#sound .song-sample-card h4{text-wrap:balance}
#sound.song-invite{display:grid;grid-template-columns:minmax(0,1fr);gap:0;align-items:start}
#sound.song-invite>*{grid-column:1;min-width:0}
#sound.song-invite #music-status{margin:0}
#sound.song-invite .song-steps{margin:6px 0 18px}
#sound.song-invite a.song-cta{width:100%;max-width:520px;box-sizing:border-box}
#sound .song-samples{margin:20px 0 18px}
#sound .song-samples h3{font-family:var(--serif);font-size:20px;font-weight:700;line-height:1.4;margin:0 0 4px;color:var(--ink)}
#sound .song-samples>p{margin:0 0 14px;font-size:15px;line-height:1.6;color:#6e665e}
#sound .song-sample-grid{display:grid;grid-auto-flow:column;grid-auto-columns:min(74%,264px);gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:2px;padding:2px 2px 14px;-webkit-overflow-scrolling:touch}
#sound .song-sample-card{scroll-snap-align:start;display:flex;flex-direction:column;gap:4px;min-width:0;padding:10px 10px 12px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
#sound .song-sample-cover{position:relative;border-radius:12px;overflow:hidden;background:#efe8dc}
#sound .song-sample-cover img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
#sound .song-sample-play{position:absolute;right:10px;bottom:10px;width:52px;height:52px;padding:0;border:0;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 10px 22px -10px rgba(40,28,18,.75)}
#sound .song-sample-play svg{width:22px;height:22px}
#sound .song-sample-play:hover{background:var(--accent-ink)}
#sound .song-sample-play:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
#sound .song-sample-card.is-playing{border-color:var(--gold)}
#sound .song-sample-card.is-playing .song-sample-cover::after{content:'재생 중';position:absolute;left:10px;top:10px;padding:4px 9px;border-radius:999px;background:rgba(255,253,248,.92);color:var(--accent-ink);font-size:12px;font-weight:600}
#sound .song-sample-card h4{margin:10px 2px 0;font-size:16px;font-weight:700;line-height:1.45;color:var(--ink)}
#sound .song-sample-card p{margin:0 2px}
#sound .song-sample-to{font-size:13px;line-height:1.5;color:#8c7a60}
#sound .song-sample-story{margin-top:4px;font-family:var(--serif);font-size:15px;line-height:1.75;color:#4e4740}
#sound .song-sample-link{margin:auto 2px 0;min-height:40px;display:inline-flex;align-items:center;font-size:14px;color:var(--accent-ink);text-decoration-color:var(--gold);text-underline-offset:3px}
@media(min-width:900px){
 #sound.song-invite{grid-template-columns:minmax(0,5fr) minmax(0,6fr);grid-template-rows:repeat(9,auto) 1fr;column-gap:56px}
 #sound.song-invite>.song-samples{grid-column:2;grid-row:1/-1;margin:4px 0 0}
 #sound.song-invite a.song-cta{width:auto;min-width:260px}
 #sound .song-sample-grid{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-columns:auto;overflow:visible;scroll-snap-type:none;gap:16px;padding:0}
}
