.webcam-workspace { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.72fr); gap: 20px; align-items: start; } .webcam-main { min-width: 0; } .webcam-stage { --webcam-filter: none; --webcam-zoom: 1; position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate; border: 1px solid var(--rule-strong); border-radius: 28px; background: #050505; box-shadow: var(--panel-shadow); } .webcam-stage[data-ratio="1:1"] { aspect-ratio: 1 / 1; } .webcam-stage[data-ratio="16:9"] { aspect-ratio: 16 / 9; } .webcam-stage[data-ratio="full"] { aspect-ratio: auto; min-height: 620px; } .webcam-stage::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; box-shadow: inset 0 70px 110px rgba(0, 0, 0, 0.32), inset 0 -170px 170px rgba(0, 0, 0, 0.56), inset 0 0 0 1px rgba(255, 255, 255, 0.05); } #webcam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #050505; filter: var(--webcam-filter); transform: scale(var(--webcam-zoom)); transform-origin: center; transition: transform 180ms ease, filter 180ms ease; } #webcam-video.is-mirrored { transform: scaleX(-1) scale(var(--webcam-zoom)); } .webcam-grid { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.18s ease; background-image: linear-gradient(to right, transparent 33.25%, rgba(255, 255, 255, 0.42) 33.33%, rgba(255, 255, 255, 0.42) 33.5%, transparent 33.58%, transparent 66.42%, rgba(255, 255, 255, 0.42) 66.5%, rgba(255, 255, 255, 0.42) 66.67%, transparent 66.75%), linear-gradient(to bottom, transparent 33.25%, rgba(255, 255, 255, 0.42) 33.33%, rgba(255, 255, 255, 0.42) 33.5%, transparent 33.58%, transparent 66.42%, rgba(255, 255, 255, 0.42) 66.5%, rgba(255, 255, 255, 0.42) 66.67%, transparent 66.75%); } .webcam-grid.is-visible { opacity: 1; } .webcam-topbar { position: absolute; inset: 0 0 auto; z-index: 8; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px; } .webcam-live-status { min-width: 0; max-width: 55%; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 13px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(5, 5, 5, 0.44); color: rgba(255, 255, 255, 0.84); backdrop-filter: blur(14px); font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .webcam-status-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07); } .webcam-live-status.is-live .webcam-status-dot { background: var(--success); } .webcam-live-status.is-error .webcam-status-dot { background: var(--danger); } .webcam-top-actions { display: flex; gap: 7px; } .webcam-icon-button, .webcam-switch-button, .webcam-close-button { display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(5, 5, 5, 0.44); color: #fff; backdrop-filter: blur(14px); cursor: pointer; } .webcam-icon-button { width: 42px; height: 42px; padding: 0; border-radius: 50%; font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; } .webcam-icon-button svg, .webcam-switch-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } .webcam-icon-button.is-active { border-color: var(--accent); background: var(--accent); color: var(--accent-contrast); } .webcam-settings { position: absolute; top: 70px; right: 17px; z-index: 22; width: min(370px, calc(100% - 34px)); max-height: calc(100% - 95px); overflow-y: auto; padding: 19px; border: 1px solid var(--rule-strong); border-radius: 22px; background: var(--paper-strong); color: var(--ink); box-shadow: var(--panel-shadow); } .webcam-settings[hidden] { display: none; } .webcam-settings-head, .webcam-gallery-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; } .webcam-settings-head h3, .webcam-gallery-head h3 { margin: 4px 0 0; font-size: 1.65rem; letter-spacing: -0.03em; } .webcam-close-button { width: 38px; height: 38px; padding: 0; border-color: var(--rule); border-radius: 50%; background: transparent; color: var(--ink-soft); font-size: 1.25rem; backdrop-filter: none; } .webcam-setting-field { display: grid; gap: 8px; margin-top: 17px; } .webcam-setting-actions, .webcam-gallery-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; } .webcam-setting-actions .tool-button, .webcam-gallery-actions .tool-button { min-height: 41px; padding: 0 14px; font-size: 0.67rem; } .webcam-option-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; } .webcam-option-row button, .webcam-filter-strip button, .webcam-zoom-strip button { border: 1px solid var(--rule); background: color-mix(in srgb, var(--paper-strong) 84%, transparent); color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; letter-spacing: 0.04em; cursor: pointer; } .webcam-option-row button { min-height: 38px; border-radius: 999px; } .webcam-option-row button.is-active, .webcam-filter-strip button.is-active, .webcam-zoom-strip button.is-active { border-color: var(--accent); background: var(--accent); color: var(--accent-contrast); } .webcam-shortcuts { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rule); display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.07em; } .webcam-shortcuts span { color: var(--accent); } .webcam-shortcuts strong { color: var(--ink-soft); font-weight: 500; } .webcam-bottom-ui { position: absolute; inset: auto 0 0; z-index: 8; display: grid; gap: 10px; padding: 0 18px 16px; } .webcam-filter-strip, .webcam-zoom-strip { display: flex; align-items: center; justify-content: center; gap: 6px; overflow-x: auto; padding: 4px; scrollbar-width: none; } .webcam-filter-strip::-webkit-scrollbar, .webcam-zoom-strip::-webkit-scrollbar { display: none; } .webcam-filter-strip button, .webcam-zoom-strip button { flex: 0 0 auto; min-height: 32px; padding: 0 12px; border-color: rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(5, 5, 5, 0.48); color: rgba(255, 255, 255, 0.78); backdrop-filter: blur(13px); } .webcam-filter-strip button.is-active, .webcam-zoom-strip button.is-active { border-color: var(--accent); background: var(--accent); color: var(--accent-contrast); } .webcam-shutter-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 17px; } .webcam-thumbnail-button { justify-self: start; width: 50px; height: 50px; padding: 0; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.74); border-radius: 14px; background: rgba(5, 5, 5, 0.55); color: #fff; cursor: pointer; } .webcam-thumbnail-button img { display: block; width: 100%; height: 100%; object-fit: cover; } .webcam-empty-thumbnail { display: grid; place-items: center; width: 100%; height: 100%; font-family: 'Fraunces', serif; color: #fff; } .webcam-shutter { position: relative; width: 72px; height: 72px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: transparent; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.17), 0 14px 32px rgba(0, 0, 0, 0.38); cursor: pointer; } .webcam-shutter::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; transition: transform 0.12s ease, background-color 0.12s ease; } .webcam-shutter:active:not(:disabled)::after { transform: scale(0.82); background: var(--accent); } .webcam-switch-button { justify-self: end; width: 50px; height: 50px; padding: 0; border-radius: 50%; } .webcam-permission { position: absolute; inset: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 26px; padding: clamp(28px, 5vw, 58px); background: linear-gradient(to top, rgba(3, 3, 3, 0.94), rgba(3, 3, 3, 0.27)), radial-gradient(circle at 80% 15%, rgba(126, 76, 39, 0.35), transparent 20rem); color: #fff; } body.night-mode .webcam-permission { background: linear-gradient(to top, rgba(3, 3, 3, 0.95), rgba(3, 3, 3, 0.28)), radial-gradient(circle at 80% 15%, rgba(213, 175, 119, 0.22), transparent 20rem); } .webcam-permission.is-hidden { display: none; } .webcam-permission-copy h3 { max-width: 10ch; margin: 0; color: #fff; font-size: clamp(2.7rem, 6vw, 5.8rem); letter-spacing: -0.055em; } .webcam-permission-copy p:last-child { max-width: 52ch; margin-top: 14px; color: rgba(255, 255, 255, 0.72); } .webcam-permission .tool-button { align-self: end; min-width: 165px; } .webcam-countdown { position: absolute; inset: 0; z-index: 35; display: none; place-items: center; background: rgba(0, 0, 0, 0.18); color: #fff; font-family: 'Fraunces', serif; font-size: clamp(7rem, 20vw, 14rem); text-shadow: 0 14px 36px rgba(0, 0, 0, 0.45); pointer-events: none; } .webcam-countdown.is-visible { display: grid; } .webcam-privacy-line { margin: 11px 4px 0; color: var(--ink-faint); font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase; } .webcam-gallery-panel { position: sticky; top: 24px; min-width: 0; max-height: calc(100vh - 48px); overflow: hidden; padding: 20px; gap: 0; } .webcam-gallery-head { padding-bottom: 15px; border-bottom: 1px solid var(--rule); } .webcam-gallery-head > div > p:last-child { margin-top: 7px; color: var(--ink-faint); font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; letter-spacing: 0.07em; text-transform: uppercase; } .webcam-gallery-panel .webcam-close-button { display: none; } .webcam-gallery-actions { margin-bottom: 12px; } .webcam-gallery { min-height: 240px; max-height: calc(100vh - 250px); overflow-y: auto; display: grid; gap: 11px; padding-right: 4px; scrollbar-width: thin; } .webcam-empty-gallery { min-height: 270px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 21px; border: 1px dashed var(--rule-strong); border-radius: 20px; background: var(--accent-soft); } .webcam-empty-gallery span { color: var(--accent); font-family: 'Fraunces', serif; font-size: 3.6rem; line-height: 0.85; } .webcam-empty-gallery strong { margin-top: 14px; font-size: 1.1rem; } .webcam-empty-gallery p { margin-top: 7px; color: var(--ink-soft); font-size: 0.78rem; } .webcam-photo-card { overflow: hidden; border: 1px solid var(--rule); border-radius: 18px; background: color-mix(in srgb, var(--paper-strong) 82%, transparent); } .webcam-photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #050505; } .webcam-photo-meta { padding: 10px; } .webcam-photo-time { display: block; margin-bottom: 9px; color: var(--ink-faint); font-family: 'IBM Plex Mono', monospace; font-size: 0.58rem; letter-spacing: 0.05em; text-transform: uppercase; } .webcam-photo-actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; } .webcam-photo-actions button { min-height: 36px; padding: 0 9px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; font-size: 0.58rem; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; } .webcam-photo-actions .webcam-photo-download, .webcam-photo-actions .webcam-photo-enhance { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); } .webcam-photo-actions .webcam-photo-delete { width: 36px; padding: 0; color: var(--danger); } .webcam-gallery-backdrop { display: none; } .webcam-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1000; max-width: min(90vw, 500px); padding: 12px 16px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--paper-strong); color: var(--ink); box-shadow: var(--panel-shadow-soft); font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 0.18s ease, transform 0.18s ease; } .webcam-toast.is-visible { opacity: 1; transform: translate(-50%, 0); } .webcam-flash { position: fixed; inset: 0; z-index: 2000; background: #fff; opacity: 0; pointer-events: none; } .webcam-flash.is-active { animation: webcam-flash 0.24s ease-out; } @keyframes webcam-flash { 0% { opacity: 0; } 18% { opacity: 0.92; } 100% { opacity: 0; } } @media (max-width: 1080px) { .webcam-workspace { grid-template-columns: 1fr; } .webcam-gallery-panel { position: static; max-height: none; } .webcam-gallery { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); } .webcam-empty-gallery { grid-column: 1 / -1; } } @media (max-width: 760px) { body[data-route="webcam"] { overflow: hidden; background: #000; } body[data-route="webcam"] .app-shell { display: block; min-height: 100dvh; padding: 0; } body[data-route="webcam"] .site-rail, body[data-route="webcam"] .page-head { display: none; } body[data-route="webcam"] .page-stage, body[data-route="webcam"] .page-sheet, body[data-route="webcam"] .page-body { width: 100%; min-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; background: #000; box-shadow: none; } body[data-route="webcam"] .page-sheet::before { display: none; } .webcam-workspace, .webcam-main { display: block; width: 100%; height: 100dvh; } .webcam-stage, .webcam-stage[data-ratio="1:1"], .webcam-stage[data-ratio="16:9"], .webcam-stage[data-ratio="full"] { width: 100%; height: 100dvh; min-height: 0; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; } .webcam-stage::after { border-radius: 0; box-shadow: inset 0 95px 120px rgba(0, 0, 0, 0.48), inset 0 -245px 190px rgba(0, 0, 0, 0.70); } .webcam-topbar { top: max(5px, env(safe-area-inset-top)); padding: 8px 11px 0; } .webcam-live-status { max-width: 36%; min-height: 38px; padding: 0 10px; font-size: 0.57rem; } .webcam-top-actions { gap: 5px; } .webcam-icon-button { width: 38px; height: 38px; font-size: 0.56rem; } .webcam-settings { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 80dvh; padding: 17px 16px max(20px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--rule-strong); border-radius: 26px 26px 0 0; box-shadow: 0 -28px 70px rgba(0, 0, 0, 0.48); } .webcam-bottom-ui { gap: 8px; padding: 0 max(12px, env(safe-area-inset-right)) max(15px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); } .webcam-filter-strip, .webcam-zoom-strip { justify-content: flex-start; padding-inline: 6px; } .webcam-filter-strip button, .webcam-zoom-strip button { min-height: 31px; padding: 0 11px; font-size: 0.60rem; } .webcam-shutter-row { padding: 0 12px; } .webcam-shutter { width: 76px; height: 76px; } .webcam-permission { grid-template-columns: 1fr; align-content: end; padding: max(26px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom)); } .webcam-permission-copy h3 { max-width: 7ch; font-size: clamp(3.7rem, 17vw, 6rem); } .webcam-permission .tool-button { width: 100%; } .webcam-privacy-line { display: none; } .webcam-gallery-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; flex-direction: column; max-height: 84dvh; padding: 15px 14px max(18px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--rule-strong); border-radius: 27px 27px 0 0; background: var(--paper-strong); box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.55); transform: translateY(105%); transition: transform 0.25s cubic-bezier(.22,.78,.27,1); } .webcam-gallery-panel.is-open { transform: translateY(0); } .webcam-gallery-panel .webcam-close-button { display: inline-grid; } .webcam-gallery { min-height: 0; max-height: none; flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-y: auto; } .webcam-photo-card img { aspect-ratio: 1 / 1; } .webcam-photo-time { display: none; } .webcam-photo-actions { grid-template-columns: 1fr auto auto; } .webcam-photo-actions .webcam-photo-enhance { width: 36px; overflow: hidden; color: transparent; position: relative; } .webcam-photo-actions .webcam-photo-enhance::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); font-size: 0.8rem; } .webcam-gallery-backdrop { position: fixed; inset: 0; z-index: 80; display: block; background: rgba(0, 0, 0, 0.66); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; } .webcam-gallery-backdrop.is-open { opacity: 1; pointer-events: auto; } .webcam-toast { bottom: calc(205px + env(safe-area-inset-bottom)); } } @media (max-width: 390px) { .webcam-live-status { max-width: 31%; } .webcam-top-actions { gap: 4px; } .webcam-icon-button { width: 36px; height: 36px; } .webcam-gallery { grid-template-columns: 1fr; } .webcam-photo-card img { aspect-ratio: 4 / 3; } }