/* 22 · 展厅 / Galleria delle opere */
.phone-app-content.phone-showroom-app {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100% !important;
    min-height: 0;
    padding: 0 !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 14% 4%, rgba(240, 187, 202, .26), transparent 31%),
        radial-gradient(circle at 92% 24%, rgba(184, 151, 118, .13), transparent 28%),
        linear-gradient(155deg, #f8f2ed 0%, #f4ece8 46%, #eee5e2 100%) !important;
}
.phone-showroom-app > .phone-app-topbar { display: none; }
.phone-app-content.phone-showroom-app > .showroom-app {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
    color: #3d3131;
}
.showroom-list {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    padding: calc(env(safe-area-inset-top) + 22px) clamp(18px, 5vw, 56px) calc(env(safe-area-inset-bottom) + 54px);
}
.showroom-list::-webkit-scrollbar { display: none; }
.showroom-masthead {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 18px;
    max-width: 1040px; margin: 0 auto clamp(34px, 7vw, 72px);
}
.showroom-back,
.showroom-work-back {
    appearance: none; border: 0; color: #5d4948; background: transparent;
    font: 400 12px/1.2 "Noto Serif SC", serif; letter-spacing: .08em;
}
.showroom-back { padding: 8px 0; }
.showroom-heading { text-align: center; }
.showroom-heading small {
    display: block; margin-bottom: 8px; color: rgba(97, 68, 66, .54);
    font: italic 400 11px/1.2 "Cormorant Garamond", serif; letter-spacing: .34em; text-transform: uppercase;
}
.showroom-heading h1 {
    margin: 0; font: 300 clamp(32px, 8vw, 64px)/.92 "Noto Serif SC", serif;
    letter-spacing: .12em; color: #493938;
}
.showroom-heading p {
    margin: 15px auto 0; max-width: 420px; color: rgba(68, 51, 50, .56);
    font: 300 12px/1.8 "Noto Serif SC", serif; letter-spacing: .08em;
}
.showroom-count {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(91, 65, 63, .18); color: rgba(75, 55, 54, .62);
    font: italic 500 13px/1 "Cormorant Garamond", serif;
}
.showroom-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 44px);
    max-width: 1040px; margin: 0 auto;
}
.showroom-card {
    position: relative; min-width: 0; cursor: pointer; outline: none;
    transform: translateY(0); transition: transform .45s cubic-bezier(.2,.75,.2,1);
}
.showroom-card:nth-child(even) { margin-top: clamp(50px, 8vw, 112px); }
.showroom-card:focus-visible { border-radius: 24px; box-shadow: 0 0 0 2px rgba(137, 85, 91, .38); }
.showroom-card:hover { transform: translateY(-7px); }
.showroom-preview {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px;
    background: #cabfba; box-shadow: 0 26px 52px -30px rgba(65, 42, 39, .48);
}
.showroom-preview::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    border: 1px solid rgba(255,255,255,.34); box-shadow: inset 0 0 0 8px rgba(255,255,255,.035);
}
.showroom-preview iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none;
    background: #d8ceca; transition: transform .8s cubic-bezier(.2,.75,.2,1), filter .5s ease;
}
.showroom-card:hover .showroom-preview iframe { transform: scale(1.025); filter: saturate(1.06); }
.showroom-index {
    position: absolute; left: 14px; top: 13px; z-index: 2; color: rgba(255,255,255,.8);
    font: italic 500 11px/1 "Cormorant Garamond", serif; letter-spacing: .16em; mix-blend-mode: difference;
}
.showroom-enter {
    position: absolute; right: 14px; bottom: 13px; z-index: 2; display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 50%; color: #574442; background: rgba(250,246,241,.84);
    font-size: 16px; box-shadow: 0 9px 20px rgba(42,31,31,.15); transition: transform .35s ease;
}
.showroom-card:hover .showroom-enter { transform: rotate(-22deg); }
.showroom-card-copy { padding: 17px 4px 0; }
.showroom-card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.showroom-card-title h2 { margin: 0; color: #4b3938; font: 300 clamp(20px, 3vw, 27px)/1.15 "Noto Serif SC", serif; letter-spacing: .08em; }
.showroom-card-title span { flex: 0 0 auto; color: rgba(89, 64, 62, .48); font: italic 500 13px/1 "Cormorant Garamond", serif; }
.showroom-card-subtitle { margin: 5px 0 12px; color: rgba(122, 78, 82, .56); font: italic 500 13px/1.2 "Cormorant Garamond", serif; letter-spacing: .09em; }
.showroom-card-description { max-width: 92%; margin: 0; color: rgba(66, 50, 49, .62); font: 300 12px/1.85 "Noto Serif SC", serif; letter-spacing: .04em; }
.showroom-card-meta { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: rgba(74, 55, 53, .42); font: 300 9px/1 "Noto Serif SC", serif; letter-spacing: .18em; }
.showroom-card-meta i { width: 24px; height: 1px; background: currentColor; }

.showroom-work {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: #171416;
}
.showroom-work iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #171416;
}
.showroom-work-bar {
    position: absolute; z-index: 4; top: calc(env(safe-area-inset-top) + 12px); left: 14px; right: 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none;
}
.showroom-work-bar > * { pointer-events: auto; }
.showroom-work-back,
.showroom-work-open {
    min-height: 38px; display: inline-flex; align-items: center; border-radius: 999px; padding: 0 14px;
    color: rgba(255,255,255,.9); background: rgba(24,20,22,.48); border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%);
    box-shadow: 0 10px 30px rgba(0,0,0,.16); font-size: 11px; text-decoration: none;
}
.showroom-work-caption {
    min-width: 0; max-width: 54%; padding: 8px 15px; border-radius: 999px; text-align: center;
    color: rgba(255,255,255,.86); background: rgba(24,20,22,.35); border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.showroom-work-caption b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 300 12px/1.25 "Noto Serif SC", serif; letter-spacing: .08em; }
.showroom-work-caption small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: italic 500 10px/1 "Cormorant Garamond", serif; opacity: .65; }
.showroom-frame-state {
    position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; color: rgba(255,255,255,.76);
    background: #171416; font: italic 400 14px/1.4 "Cormorant Garamond", serif; letter-spacing: .16em;
}
.showroom-frame-state::after {
    content: ""; width: 34px; height: 1px; margin-left: 12px; background: currentColor;
    animation: showroom-pulse 1.3s ease-in-out infinite alternate;
}
.showroom-frame-state.is-error { z-index: 5; padding: 24px; text-align: center; line-height: 1.8; }
@keyframes showroom-pulse { to { width: 76px; opacity: .28; } }

@media (max-width: 680px) {
    .showroom-list { padding-left: 17px; padding-right: 17px; }
    .showroom-masthead { gap: 10px; margin-bottom: 34px; }
    .showroom-heading h1 { font-size: 35px; }
    .showroom-heading p { max-width: 260px; font-size: 11px; }
    .showroom-grid { grid-template-columns: 1fr; gap: 38px; }
    .showroom-card:nth-child(even) { margin-top: 0; }
    .showroom-preview { border-radius: 3px; }
    .showroom-card-copy { padding-top: 15px; }
    .showroom-card-title h2 { font-size: 22px; }
    .showroom-work-caption { display: none; }
    .showroom-work-bar { left: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .showroom-card, .showroom-preview iframe, .showroom-enter { transition: none; }
    .showroom-frame-state::after { animation: none; }
}
