.ugc-deck { padding-top: 25px; padding-bottom: 46px; }
.deck-overline { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 17px; color: #7b7e70; font: 9px var(--mono); letter-spacing: .09em; }
.deck-overline i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #738151; }
.deck-stage { position: relative; height: clamp(760px, calc(100svh - 213px), 1040px); isolation: isolate; perspective: 1800px; touch-action: pan-y; }
.ugc-slide { position: absolute; inset: 0; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 30px; border: 1px solid #d3d2c5; border-radius: 24px; background: #fbfaf6; box-shadow: 0 12px 30px #3e402408; opacity: 0; visibility: hidden; transform: translateX(var(--slide-offset, 7%)) scale(.977); transition: opacity .5s ease, transform .65s cubic-bezier(.22,1,.36,1), visibility .65s; pointer-events: none; overflow: auto; overscroll-behavior-x: contain; }
.ugc-slide.is-active { z-index: 2; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.deck-kicker { margin: 0 0 17px; font: 9px var(--mono); letter-spacing: .14em; color: #7e856e; }
.ugc-deck h1, .ugc-deck h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
.ugc-deck h1 em, .ugc-deck h2 em { font-weight: 400; color: #6b7656; }
.deck-cover { display: grid; grid-template-columns: 1.02fr 1fr; padding: 0; overflow: hidden; }
.deck-cover-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(30px, 4.2vw, 68px); padding-right: 20px; z-index: 2; }
.deck-cover h1 { margin: 0; font-size: clamp(59px, 5.9vw, 99px); line-height: .97; white-space: nowrap; }
.deck-dek { max-width: 410px; margin: 28px 0 0; color: #777b6b; font-size: 14px; line-height: 1.85; }
.deck-cover-quote { border-left: 1px solid #b7bca4; padding-left: 17px; margin: 34px 0 29px; }
.deck-cover-quote > span { font: 8px var(--mono); letter-spacing: .1em; color: #8b907c; }
.deck-cover-quote > p { font: 25px/1.27 var(--serif); color: #555e47; margin: 12px 0 0; }
.deck-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; background: #283c25; border: 1px solid #283c25; border-radius: 8px; padding: 15px 20px; color: #f2f5e8; font-size: 12px; cursor: pointer; text-decoration: none; transition: background .2s, transform .2s; }
.deck-primary:hover { background: #435c36; transform: translateY(-1px); }
.deck-primary > span { font-size: 19px; line-height: 1; }
.deck-cover-flow { display: flex; align-items: center; gap: 12px; margin-top: 38px; font: 8px var(--mono); color: #999d8c; }
.deck-cover-flow i { color: #bac1a9; font-style: normal; }
.deck-cover-art { position: relative; min-width: 0; margin: 12px 12px 12px 0; border-radius: 16px; overflow: hidden; background: #363e30; }
.deck-cover-art > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: opacity .25s; }
.deck-cover-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #08100650 0%, transparent 38%, #11180b1a 60%, #10180deb 100%); pointer-events: none; }
.deck-cover-art-top { position: absolute; z-index: 1; inset: 24px 26px auto; display: flex; justify-content: space-between; color: #f5efe1b8; font: 8px var(--mono); letter-spacing: .08em; }
.deck-cover-art-bottom { position: absolute; z-index: 2; bottom: 28px; left: 28px; right: 28px; color: #fff5df; }
.deck-cover-art-bottom > span { font: 8px var(--mono); color: #d0c6aca6; letter-spacing: .12em; }
.deck-cover-art-bottom h2 { margin: 12px 0 19px; font-size: 39px; }
.deck-style-dots { display: flex; gap: 9px; }
.deck-style-dots button { width: 33px; height: 7px; border: 0; border-radius: 9px; background: #e8e7d84a; cursor: pointer; padding: 0; }
.deck-style-dots button[aria-pressed="true"] { background: #d6e6ac; }
.deck-style-dots button::after { content: ''; display: block; height: 25px; transform: translateY(-9px); }
.deck-proxy-note { position: absolute; right: 24px; bottom: 166px; z-index: 2; padding: 6px; background: #f0f2e4ef; border: 1px solid #fff9; border-radius: 10px; box-shadow: 0 9px 20px #10190930; width: 171px; transform: rotate(3deg); }
.deck-proxy-note img { height: 93px; object-fit: cover; border-radius: 5px; }
.deck-proxy-note span { display: block; font: 7px/1.7 var(--mono); letter-spacing: .04em; color: #7a856a; padding: 9px 5px 4px; }
.deck-proxy-note b { font-weight: 500; color: #485b39; }
.deck-slide-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 22px; flex-shrink: 0; }
.deck-slide-heading .deck-kicker { margin-bottom: 10px; }
.deck-slide-heading h2 { margin: 0; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.03; }
.deck-slide-heading > p { margin: 0 0 3px; font-size: 11px; line-height: 1.8; color: #8b907c; }
.deck-slide-heading > a { font: 9px var(--mono); color: #687958; text-decoration: none; padding-bottom: 5px; border-bottom: 1px solid #abb59b; white-space: nowrap; }
#castle-conversation.designer-window { flex: 1; display: flex; flex-direction: column; min-height: 0; border-color: #d3d8c7; box-shadow: none; border-radius: 14px; }
.designer-window-bar { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-bottom: 1px solid #e0e2d6; font: 9px var(--mono); color: #718160; flex-shrink: 0; }
.designer-window-bar i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: #849e5a; border-radius: 50%; }
.designer-demo-label { margin-left: auto; color: #acb39e; font-size: 7px; }
.designer-window-bar button { background: none; border: 0; cursor: pointer; color: #79886b; font: 9px var(--mono); }
.designer-columns { display: grid; grid-template-columns: 1.63fr 1fr; min-height: 0; flex: 1; }
.designer-output { padding: 25px 26px; overflow-y: auto; scrollbar-width: thin; }
.designer-status { display: flex; align-items: center; gap: 12px; }
.designer-avatar { flex-shrink: 0; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; font: 11px var(--mono); background: #2d4027; color: #dcecbd; }
.designer-status b { display: block; color: #5a6b4a; font-size: 12px; font-weight: 600; }
.designer-status span:not(.designer-avatar) { display: block; margin-top: 4px; font-size: 9px; color: #a0a68f; }
.designer-status-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #97a86d; animation: designer-pulse 1.5s ease-in-out infinite; }
.designer-output.is-complete .designer-status-dot { animation: none; }
@keyframes designer-pulse { 50% { opacity: .3; box-shadow: 0 0 0 5px #98ad7220; } }
.designer-progress { display: flex; align-items: center; gap: 10px; margin: 22px 0 24px; color: #b1b8a3; font: 8px var(--mono); }
.designer-progress i { flex: 1; height: 1px; background: #e0e4d7; }
.designer-progress .is-done { color: #526940; }
.designer-result { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 13px; padding-bottom: 20px; opacity: .16; transform: translateY(7px); transition: opacity .6s, transform .6s; }
.designer-result.is-revealed { opacity: 1; transform: none; }
.designer-result-index { width: 22px; height: 22px; display: grid; place-items: center; font: 8px var(--mono); border: 1px solid #d9decf; border-radius: 6px; color: #93a081; }
.designer-result small { display: block; margin: 1px 0 8px; font: 8px var(--mono); letter-spacing: .06em; color: #8f9e7c; }
.designer-result h3 { margin: 0 0 9px; font: 500 17px/1.4 var(--serif); color: #34452e; }
.designer-result p { font-size: 11px; line-height: 1.75; color: #6c7c5e; margin: 0; max-width: 560px; }
.designer-tags { display: flex; gap: 6px; margin-top: 9px; }
.designer-tags span { font: 7px var(--mono); background: #eef1e5; border: 1px solid #dde5d2; border-radius: 4px; color: #899c73; padding: 4px 7px; }
.designer-art-result { padding-bottom: 0; }
.designer-reference-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.designer-reference-card { min-width: 0; padding: 4px; border: 1px solid #dee2d4; border-radius: 7px; background: #f6f6ee; text-align: left; cursor: pointer; }
.designer-reference-card img { border-radius: 4px; height: 100px; object-fit: cover; }
.designer-reference-card span { display: flex; justify-content: space-between; align-items: center; padding: 8px 3px 4px; font-size: 8px; color: #7b856d; }
.designer-reference-card b { display: inline-grid; width: 11px; height: 11px; place-items: center; border: 1px solid #c4ceb5; border-radius: 50%; color: transparent; font-size: 7px; }
.designer-reference-card[aria-pressed="true"] { border-color: #7d955a; background: #edf2e2; }
.designer-reference-card[aria-pressed="true"] b { background: #7d955a; color: #fff; }
.designer-result .designer-reference-note { font: 7px/1.6 var(--mono); color: #aab099; margin-top: 9px; }
.designer-brief-panel { display: flex; flex-direction: column; padding: 27px 24px; background: #f0f1e9; border-left: 1px solid #e0e2d6; overflow-y: auto; }
.designer-user-label { margin-left: auto; font: 8px var(--mono); letter-spacing: .09em; color: #8c977d; margin-bottom: 14px; }
.designer-user-bubble { background: #e4e9d8; border: 1px solid #dce1cf; border-radius: 12px 0 12px 12px; padding: 17px 18px; margin-bottom: 14px; }
.designer-user-bubble small { font: 7px var(--mono); letter-spacing: .09em; color: #899876; }
.designer-user-bubble p { margin: 9px 0 0; font-size: 12px; line-height: 1.9; color: #5d6f4c; }
.designer-user-bubble.style-brief { background: #eee8db; border-color: #e8e0cd; }
.designer-user-bubble.style-brief small { color: #9d8a67; }
.designer-user-bubble.style-brief p { color: #86765b; font-size: 11px; }
.designer-brief-summary { padding: 10px 2px 18px; }
.designer-brief-summary > span { font: 7px var(--mono); letter-spacing: .08em; color: #a2aa93; }
.designer-brief-summary p { font-size: 10px; line-height: 1.9; color: #8d977e; margin: 10px 0 0; }
.designer-brief-panel .deck-primary { margin-top: auto; width: 100%; flex-shrink: 0; }
.designer-autonomy-note { color: #a9b09c; font: 7px/1.6 var(--mono); margin-top: 12px; text-align: center; }
.deck-build { background: #1e271b; border-color: #374530; color: #e8efdd; }
.deck-build .deck-kicker { color: #a4b891; }
.deck-build h2 em { color: #aec590; }
.deck-build .deck-slide-heading > p { color: #849877; }
body[data-ugc-case="demon-castle"] .deck-build #ugc-product-demo { margin: 0; flex: 1; min-height: 0; }
.deck-build #castle-demo { height: 100%; display: flex; flex-direction: column; border-color: #3e5036; border-radius: 12px; }
.deck-build .castle-player-top { padding: 12px 17px; }
.deck-build .castle-phases { flex-shrink: 0; }
.deck-build .castle-phases button { padding: 13px 16px; gap: 5px; }
.deck-build .castle-phases strong { font-size: 13px; }
.deck-build .castle-phases button > span { font-size: 8px; }
.deck-build .castle-design-workbench { flex: 1; height: auto; min-height: 310px; grid-template-columns: minmax(265px, .95fr) minmax(0, 1.65fr); }
.deck-build .castle-panel-label { padding: 10px 13px; font-size: 8px; }
.deck-build .castle-floor-tabs { padding: 7px; }
.deck-build .castle-floor-tabs small { font-size: 6px; }
.deck-build .castle-map-legend { padding: 7px; }
.deck-build #castle-full-plan { margin-bottom: 8px; }
.deck-build .castle-stack-footer > span { padding-bottom: 5px; font-size: 7px; }
.deck-build .castle-stack-height { font-size: 20px; }
.deck-build .castle-stack-name { font-size: 15px; }
.deck-build .castle-caption { padding: 12px 18px; gap: 20px; grid-template-columns: .55fr 1.45fr; }
.deck-build .castle-caption h3 { font-size: 16px; margin-top: 5px; }
.deck-build .castle-caption small { font-size: 7px; }
.deck-build .castle-caption p { font-size: 10px; line-height: 1.65; }
.deck-build .castle-transport { padding: 10px 17px; }
.deck-build .castle-footnote { font-size: 6px; padding: 0 17px 9px; }
.deck-preview-wrap { position: relative; flex: 1; min-height: 350px; border: 1px solid #3d4940; background: #101719; border-radius: 12px; overflow: hidden; }
#deck-linked-preview { width: 100%; height: 100%; position: absolute; inset: 0; border: 0; display: block; opacity: 0; transition: opacity .3s; }
#deck-linked-preview.is-ready { opacity: 1; }
.deck-preview-loading { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; padding: 30px; color: #a6bba3; text-align: center; }
.deck-preview-loading[hidden] { display: none; }
.deck-preview-loading h3 { margin: 0; font: 28px var(--serif); }
.deck-preview-loading p { font-size: 10px; line-height: 1.9; margin: 0; }
.deck-preview-loading button { border: 1px solid #79916b; background: transparent; color: #c4d9b5; padding: 10px 15px; border-radius: 5px; cursor: pointer; }
.deck-preview-note { font: 8px/1.7 var(--mono); color: #8c977f; margin: 13px 0 0; }
.deck-preview-note i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #8caa68; margin-right: 5px; }
.deck-navigation { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 22px 3px 10px; }
.deck-arrow { width: 39px; height: 39px; border-radius: 50%; border: 1px solid #c8ccba; color: #657454; background: transparent; font: 18px var(--sans); cursor: pointer; flex-shrink: 0; }
.deck-arrow:disabled { color: #c2c6b7; border-color: #dcdfd1; cursor: default; }
.deck-arrow:not(:disabled):hover { background: #e3ead7; }
.deck-tabs { display: flex; gap: 10px; }
.deck-tabs button { display: inline-flex; gap: 9px; align-items: center; padding: 10px 15px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #9ba38c; cursor: pointer; font-size: 10px; }
.deck-tabs small { font: 8px var(--mono); color: #a9b298; }
.deck-tabs button[aria-selected="true"] { background: #e6ebda; border-color: #d2dcc1; color: #50633c; }
.deck-tabs button[aria-selected="true"] small { color: #6d8551; }
#deck-page-number { font: 9px var(--mono); color: #8d967d; margin-left: 8px; }
.deck-navigation-hint { text-align: center; color: #afb6a0; font: 7px var(--mono); letter-spacing: .13em; margin: 4px 0 0; }
.deck-navigation-hint span { margin-left: 13px; }
.deck-more-worlds { margin-left: 25px; color: #808d6f; text-decoration: none; }
.ugc-deck :focus-visible { outline: 2px solid #7a9657; outline-offset: 4px; }
.ugc-slide[aria-hidden="true"] { user-select: none; }
.ugc-world-header h2 { font-size: clamp(38px, 4.5vw, 66px); }
@media (min-width: 1650px) { .designer-result h3 { font-size: 22px; } .designer-result p { font-size: 12px; } .designer-result { padding-bottom: 28px; } .designer-user-bubble p { font-size: 14px; } .designer-user-bubble.style-brief p { font-size: 13px; } .designer-reference-card img { aspect-ratio: 1.65; } }
@media (max-width: 1100px) {
  .deck-stage { height: 795px; }
  .deck-cover-copy { padding-left: 30px; }
  .deck-cover h1 { font-size: 60px; }
  .deck-cover-art-top > span:last-child { display: none; }
  .deck-cover-flow { gap: 7px; font-size: 7px; }
  .ugc-slide { padding: 23px; }
  .deck-cover { padding: 0; }
  .designer-columns { grid-template-columns: 1.45fr 1fr; }
  .designer-output { padding: 22px 18px; }
  .designer-brief-panel { padding: 25px 18px; }
  .designer-reference-card span { font-size: 7px; }
  .designer-status span:not(.designer-avatar) { max-width: 230px; line-height: 1.6; }
  .deck-tabs { gap: 2px; } .deck-tabs button { padding: 10px; }
}
@media (max-width: 760px) {
  .ugc-deck { padding-top: 17px; }
  .deck-overline { font-size: 7px; padding-bottom: 13px; }
  .deck-overline > span:last-child { display: none; }
  .deck-stage { height: auto; display: grid; perspective: none; }
  .ugc-slide { position: relative; grid-area: 1 / 1; height: 0; padding: 0; overflow: hidden; border-width: 0; align-self: start; border-radius: 17px; }
  .ugc-slide.is-active { height: auto; padding: 20px; border-width: 1px; }
  .deck-cover.is-active { padding: 0; }
  .deck-cover { grid-template-columns: 1fr; }
  .deck-cover-copy { padding: 33px 28px 27px; }
  .deck-cover h1 { font-size: clamp(48px, 8.5vw, 67px); }
  .deck-dek { font-size: 12px; margin-top: 20px; }
  .deck-cover-quote { margin-block: 22px; }
  .deck-cover-quote > p { font-size: 22px; }
  .deck-cover-flow { margin-top: 25px; font-size: 7px; gap: 9px; }
  .deck-cover-art { height: 310px; margin: 0 10px 10px; border-radius: 12px; }
  .deck-cover-art > img { object-position: 50% 57%; }
  .deck-cover-art-top { inset: 17px 17px auto; font-size: 7px; }
  .deck-cover-art-bottom { bottom: 21px; left: 19px; }
  .deck-cover-art-bottom h2 { font-size: 33px; margin-block: 9px 14px; }
  .deck-proxy-note { width: 117px; right: 18px; bottom: 127px; }
  .deck-proxy-note img { height: 61px; }
  .deck-proxy-note span { font-size: 5px; padding: 5px 3px 1px; }
  .deck-kicker { font-size: 7px; }
  .deck-slide-heading { gap: 14px; align-items: flex-start; flex-direction: column; padding-bottom: 20px; }
  .deck-slide-heading h2 { font-size: 36px; }
  .deck-slide-heading > p { font-size: 10px; }
  .designer-window-bar { padding: 13px 12px; gap: 10px; font-size: 7px; }
  .designer-demo-label { display: none; }
  .designer-window-bar button { margin-left: auto; font-size: 8px; }
  .designer-columns { display: flex; flex-direction: column-reverse; }
  .designer-brief-panel { padding: 18px; border-left: 0; border-bottom: 1px solid #e0e2d6; }
  .designer-user-label { margin-bottom: 10px; font-size: 7px; }
  .designer-user-bubble { padding: 12px 15px; margin-bottom: 10px; }
  .designer-user-bubble p { font-size: 11px; line-height: 1.75; }
  .designer-user-bubble.style-brief p { font-size: 10px; }
  .designer-brief-summary { display: none; }
  .designer-brief-panel .deck-primary { padding: 12px 16px; margin-top: 5px; font-size: 10px; }
  .designer-output { padding: 22px 15px; }
  .designer-status span:not(.designer-avatar) { font-size: 8px; }
  .designer-result { grid-template-columns: 20px minmax(0,1fr); gap: 8px; padding-bottom: 24px; }
  .designer-result h3 { font-size: 18px; }
  .designer-reference-cards { gap: 5px; }
  .designer-reference-card img { height: 63px; }
  .designer-reference-card span { font-size: 6px; gap: 2px; padding-inline: 0; }
  .designer-reference-card b { width: 8px; height: 8px; font-size: 6px; flex-shrink: 0; }
  .designer-result .designer-reference-note { font-size: 6px; }
  .deck-build.is-active { padding: 20px 12px 12px; }
  .deck-build .deck-slide-heading { padding-inline: 7px; }
  .deck-build #castle-demo { height: auto; }
  .deck-build .castle-design-workbench { display: flex; height: auto; min-height: 0; }
  .deck-build .castle-map-panel { height: 555px; }
  .deck-build .castle-3d-panel { height: 370px; }
  .deck-build .castle-phases button { padding: 12px 7px; }
  .deck-build .castle-phases strong { font-size: 10px; }
  .deck-build .castle-phases button > span { font-size: 6px; }
  .deck-build .castle-caption { grid-template-columns: 1fr; gap: 9px; padding: 16px; }
  .deck-build .castle-transport { padding: 10px 11px; }
  .deck-build .castle-footnote { font-size: 6px; }
  .deck-preview-wrap { height: 800px; flex: auto; min-height: 0; }
  .deck-preview-note { font-size: 7px; }
  .deck-navigation { gap: 8px; padding-top: 18px; position: sticky; bottom: 0; z-index: 8; background: #f3f0e8f5; border-radius: 0 0 12px 12px; }
  .deck-tabs { gap: 0; flex: 1; justify-content: space-around; }
  .deck-tabs button { display: grid; justify-items: center; gap: 6px; font-size: 7px; padding: 8px 5px; }
  .deck-tabs small { font-size: 7px; }
  .deck-arrow { width: 30px; height: 30px; font-size: 14px; }
  #deck-page-number { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ugc-slide, .designer-result, #deck-linked-preview, .deck-cover-art > img { transition: none; } .designer-status-dot { animation: none; } .deck-primary:hover { transform: none; } }
