/* Isolated frame styling; the 3D application's styles stay inside its iframe. */
.cottage-section { padding:96px max(4vw,24px) 38px; background:var(--paper,#f4efe5); color:#393e35; scroll-margin-top:24px; }
.cottage-heading,.cottage-card { max-width:1280px; margin-inline:auto; }
.cottage-heading { display:flex; justify-content:space-between; align-items:end; gap:32px; margin-bottom:30px; }
.cottage-eyebrow { margin:0 0 20px; font:10px/1.5 "DM Mono",monospace; letter-spacing:.14em; color:#757b68; }
.cottage-eyebrow span { padding:0 7px; color:#a8503d; }
.cottage-heading h2 { margin:0; font:400 38px/1.3 "Ma Shan Zheng","Songti SC",serif; }
.cottage-intro { margin:0; font-size:12px; line-height:2; color:#746f63; }
.cottage-card { overflow:hidden; border:1px solid #d4d5c6; border-radius:14px; background:#edece1; box-shadow:0 14px 40px #5d65400b; }
.cottage-toolbar { min-height:58px; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 22px; border-bottom:1px solid #58614a1c; background:#f9f6ee; }
.cottage-label { display:inline-flex; align-items:center; gap:10px; font:10px/1.4 "DM Mono",monospace; letter-spacing:.12em; color:#6b745d; }
.cottage-label > span { font:24px/1 Georgia,serif; }
.cottage-tools { display:flex; align-items:center; gap:18px; }
.cottage-tools a,.cottage-close { display:inline-flex; align-items:center; gap:6px; padding:5px 0; color:#57644f; font:inherit; font-size:12px; text-decoration:none; border:0; background:none; cursor:pointer; white-space:nowrap; }
.cottage-close { color:#985d4c; }
.cottage-close span { font-size:20px; line-height:1; }
.cottage-tools a:hover,.cottage-close:hover { text-decoration:underline; text-underline-offset:4px; }
.cottage-stage { position:relative; height:clamp(520px,52vw,700px); isolation:isolate; background:#e8e5d9; }
.cottage-cover,.cottage-viewport { position:absolute; inset:0; }
.cottage-cover > img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 45%; }
.cottage-cover::after { content:""; position:absolute; inset:45% 0 0; background:linear-gradient(transparent,#e9e5d946 35%,#e9e5d9eb); pointer-events:none; }
.cottage-invitation { position:absolute; inset:auto 18px 28px; z-index:1; display:flex; align-items:center; flex-direction:column; gap:12px; text-align:center; }
.cottage-postcard { font:italic 24px/1.3 "EB Garamond",Georgia,serif; color:#4e5947; }
.cottage-enter { display:inline-flex; align-items:center; gap:16px; min-height:52px; border:1px solid #46523d; border-radius:99px; padding:12px 24px; background:#48573e; color:#fff9e9; font:inherit; font-size:14px; cursor:pointer; box-shadow:0 5px 18px #35432825; transition:background .2s,transform .2s; }
.cottage-enter svg { width:20px; height:20px; }
.cottage-enter:hover { background:#394831; transform:translateY(-2px); }
.cottage-load-note { font-size:10px; line-height:1.5; color:#58604c; }
.cottage-viewport iframe { display:block; width:100%; height:100%; border:0; background:#eee8da; }
.cottage-fallback { position:absolute; inset:0; z-index:3; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; padding:30px; text-align:center; background:#f4efe5f5; }
.cottage-error-text { max-width:32em; margin:0; line-height:1.9; }
.cottage-retry { border:1px solid #506146; border-radius:30px; padding:12px 24px; background:#506146; color:#fff; cursor:pointer; font:inherit; }
.cottage-fallback a { color:#55624c; text-underline-offset:4px; font-size:12px; }
.cottage-footnote { display:flex; justify-content:space-between; gap:15px; align-items:center; padding:17px 22px; background:#f9f6ee; border-top:1px solid #58614a1c; }
.cottage-status { margin:0; font-size:12px; line-height:1.7; color:#58634c; }
.cottage-status::before { content:""; display:inline-block; width:5px; height:5px; border-radius:50%; background:#8a9876; margin:0 8px 2px 0; }
.cottage-hint { font-size:10px; line-height:1.7; color:#807b6e; }
.cottage-section [hidden] { display:none!important; }
.cottage-section :is(a,button):focus-visible { outline:3px solid #9c5e48; outline-offset:4px; }
.cottage-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:760px) {
  .cottage-section { padding:64px 16px 12px; }
  .cottage-heading { display:block; padding-inline:6px; margin-bottom:24px; }
  .cottage-eyebrow { margin-bottom:14px; font-size:9px; }
  .cottage-heading h2 { font-size:clamp(25px,6.9vw,36px); }
  .cottage-intro { margin-top:17px; font-size:11px; }
  .cottage-toolbar { padding:10px 14px; min-height:54px; }
  .cottage-label { font-size:8px; letter-spacing:.03em; gap:6px; }
  .cottage-tools { gap:12px; }
  .cottage-tools a,.cottage-close { font-size:10px; }
  .cottage-stage { height:560px; }
  .cottage-stage[data-state="closed"] { height:430px; }
  .cottage-cover > img { object-fit:contain; object-position:center 25%; background:#c6c4b9; }
  .cottage-cover::after { inset:35% 0 0; background:linear-gradient(transparent,#e9e5d96b 38%,#e9e5d9 75%); }
  .cottage-invitation { bottom:40px; }
  .cottage-postcard { font-size:22px; }
  .cottage-footnote { display:block; padding:14px; }
  .cottage-hint { display:block; margin-top:5px; }
}
@media(prefers-reduced-motion:reduce) { .cottage-enter { transition:none; } }
