@layer replay-camera{:root{color-scheme:dark;--bg:#071018;--accent:#a6f56d;--muted:#90a4a9}*{box-sizing:border-box}html,body{margin:0;width:100%;min-height:100%;background:var(--bg);color:#f1f6f5;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}button,a{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}[hidden]{display:none!important}body.match-open{height:100dvh;overflow:hidden;overscroll-behavior:none;touch-action:manipulation}.home{min-height:100dvh;background:radial-gradient(ellipse 60% 50% at 50% 13%,#18392e 0%,transparent 74%),var(--bg);display:flex;flex-direction:column}.header{width:min(1060px,100%);margin:auto auto 0;display:flex;justify-content:space-between;align-items:center;padding:22px 26px}.brand{display:flex;gap:3px;align-items:center;text-decoration:none;color:#fff;font-size:23px;font-weight:900;letter-spacing:-1px}.brand span:last-child,.symbol{color:var(--accent)}.symbol{font-size:35px;line-height:.5;margin-right:9px}.edition{border:1px solid #38514e;border-radius:7px;color:#a2b4ae;font-size:10px;letter-spacing:2px;padding:9px}.intro{width:min(900px,100%);padding:70px 22px 60px;margin:auto;text-align:center}.eyebrow{font-size:12px;letter-spacing:3px;color:var(--accent);font-weight:800}.pulse{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 16px var(--accent)}h1{font-size:clamp(40px,7vw,75px);letter-spacing:-3px;line-height:1.08;margin:24px auto 19px}h1 em{font-style:normal;color:var(--accent)}.tagline{font-size:clamp(15px,2vw,19px);color:#adbfbd;line-height:1.7;max-width:610px;margin:0 auto 30px}.primary{border:0;border-radius:12px;background:var(--accent);padding:20px 34px;font-weight:900;letter-spacing:1px;color:#0d291c;box-shadow:0 13px 40px #84db4650;min-width:min(100%,310px)}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:70px;text-align:left}.features>div{padding:23px;background:#111e27;border:1px solid #2a3e44;border-radius:15px;display:flex;flex-direction:column;gap:10px}.features b{font-size:30px;color:var(--accent)}.features strong{font-size:17px}.features small{font-size:12px;color:var(--muted);line-height:1.6}.install{margin:42px auto 0;color:#a7bab4;font-size:13px;max-width:540px}.install strong{color:#d7e4e0}.install p{line-height:1.6}.install button{background:none;border:1px solid #9ee970;color:#9ee970;border-radius:8px;padding:11px 18px}footer{text-align:center;padding:22px;color:#6e8586;font-size:10px;letter-spacing:2px;border-top:1px solid #1e3037}.match{position:fixed;inset:0;width:100%;height:100dvh;overflow:hidden;background:#020607;touch-action:manipulation}.match video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.camera-shade{position:absolute;inset:0;background:linear-gradient(180deg,#0008 0%,transparent 20%,transparent 44%,#000b 100%);pointer-events:none}.topbar{position:absolute;top:0;left:0;right:0;padding:calc(env(safe-area-inset-top) + 17px) 18px 12px;display:flex;justify-content:space-between;align-items:center}.topbar .brand{font-size:22px;text-shadow:0 2px 6px #000}.live{border-radius:20px;background:#0c221cdd;color:#b9ff9f;padding:8px 11px;font-size:10px;font-weight:900;letter-spacing:1px}.live i{display:inline-block;background:#91ea69;width:7px;height:7px;border-radius:100%;margin-right:5px}.centerMessage{position:absolute;top:44%;left:0;right:0;transform:translateY(-50%);text-align:center;display:flex;align-items:center;flex-direction:column;gap:10px;padding:20px}.centerMessage strong{font-size:22px}.centerMessage small{font-size:13px;color:#a3b6b8}.lens{font-size:72px;color:var(--accent)}.bottom{position:absolute;left:0;right:0;bottom:0;padding:18px 15px calc(env(safe-area-inset-bottom) + 16px);display:flex;flex-direction:column;gap:12px;max-width:700px;margin:auto}.buffer{background:#061219ce;border:1px solid #577363;border-radius:12px;padding:12px 14px}.buffer>div:first-child{display:flex;justify-content:space-between;font-size:11px;letter-spacing:1px;font-weight:800}.buffer strong{color:var(--accent)}.track{height:6px;background:#33463f;border-radius:20px;overflow:hidden;margin-top:10px}.track i{display:block;height:100%;width:0;background:var(--accent);transition:width .2s}.actions{display:flex;gap:8px}.actions button{border-radius:10px;padding:15px 10px;min-height:52px;font-size:12px;font-weight:900;letter-spacing:.4px;border:1px solid #46616a;background:#14252d;color:#e7f0f1}.actions .start{flex:1;background:var(--accent);color:#0b291a;border:0}.actions .save{flex:1;background:#f1535b;border:0;color:white}.actions .stop{background:#3c1c22;border-color:#6d333b}.actions .back{background:#071318b8}.status{position:absolute;left:15px;right:15px;top:calc(env(safe-area-inset-top) + 72px);background:#153125ed;color:#d7ffe0;border:1px solid #6b996c;padding:12px;border-radius:9px;font-size:12px;z-index:3;text-align:center}.status.error{color:#ffe0e0;background:#481e25eb;border-color:#c35b62}.result{background:#06121bed;border:1px solid #4c6d59;border-radius:10px;padding:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:#d4e5e0}.result a,.result button{color:var(--accent);background:none;border:0;text-decoration:none;font-size:11px;font-weight:800;margin-left:auto}@media(max-width:650px){.features{grid-template-columns:1fr;margin-top:44px;text-align:left}.intro{padding-top:50px}h1{letter-spacing:-2px}.actions{gap:5px}.actions button{padding:13px 8px;font-size:11px}.bottom{padding-left:9px;padding-right:9px}}@media(orientation:landscape) and (max-height:550px){.bottom{max-width:600px;padding-top:4px;padding-bottom:calc(env(safe-area-inset-bottom) + 8px)}.actions button{min-height:42px;padding:9px}.buffer{padding:8px}.topbar{padding-top:calc(env(safe-area-inset-top) + 6px)}}
/* Instalação PWA: convite fixo apenas na página inicial */
.install-banner{position:fixed;z-index:50;bottom:calc(env(safe-area-inset-bottom) + 18px);left:50%;transform:translateX(-50%);width:min(560px,calc(100% - 28px));display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #52775b;border-radius:16px;background:#12251edc;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 18px 60px #000b}
.install-badge{flex:none;width:44px;height:44px;border-radius:12px;background:#a6f56d;color:#132c1b;display:grid;place-items:center;font-size:30px;font-weight:900}
.install-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.install-copy strong{font-size:13px;line-height:1.3}.install-copy span{font-size:11px;color:#b2c9c0;line-height:1.45}
.install-action{flex:none;background:#a6f56d;color:#0c2718;border:0;padding:12px 14px;border-radius:9px;font-size:12px;font-weight:900}
.install-close{align-self:flex-start;flex:none;background:transparent;border:0;color:#b8cbbf;font-size:23px;line-height:1;padding:0 1px}
@media(max-width:450px){.install-banner{gap:9px;padding:12px 10px}.install-badge{width:34px;height:34px;font-size:25px}.install-copy strong{font-size:12px}.install-copy span{font-size:10px}.install-action{padding:10px;font-size:11px}}
@media(display-mode:standalone){.install-banner{display:none!important}}

/* Identidade Replay30: 3 branco, replay verde e REC vermelho */
.brand{gap:7px}.brand-icon{height:42px;width:42px;object-fit:contain;border-radius:11px;flex:none}.brand span:last-child{color:#9ff50d}
.hero-brand-icon{display:block;width:130px;height:130px;object-fit:contain;margin:0 auto 23px;filter:drop-shadow(0 12px 34px #50b81330)}
.install-badge{background:none;overflow:hidden;border-radius:10px}.install-badge img{display:block;width:100%;height:100%;object-fit:cover}
.topbar .brand-icon{width:36px;height:36px}
@media(max-width:650px){.hero-brand-icon{width:104px;height:104px;margin-bottom:19px}.intro{padding-top:30px}.brand-icon{height:36px;width:36px}}

/* Replay30 landing page 2026-11 — escopo exclusivo da página institucional */
.landing{background:#081218;color:#f2f7f7;overflow:hidden}
.landing-header{max-width:1200px;width:100%;margin:0 auto;min-height:88px;height:auto;padding:17px 34px;gap:20px;border-bottom:1px solid #ffffff0c}
.landing-brand .brand-icon{width:46px;height:46px}
.landing-brand .brand-text{font-size:22px;letter-spacing:-1px;font-weight:850;white-space:nowrap}.landing-brand .brand-text b{color:#a6f56d}
.landing-nav{display:flex;gap:32px;margin-left:auto;margin-right:28px}.landing-nav a{color:#aabbba;font-size:13px;font-weight:650;text-decoration:none}.landing-nav a:hover{color:#a6f56d}
.header-cta{border:1px solid #416252;color:#a6f56d;text-decoration:none;border-radius:10px;padding:12px 18px;font-size:13px;font-weight:800;white-space:nowrap}.header-cta:hover{background:#142a20}
.landing-main{width:100%}
.hero-area{position:relative;max-width:1200px;min-height:625px;margin:0 auto;display:grid;grid-template-columns:1.05fr .95fr;gap:55px;align-items:center;padding:75px 34px 90px}
.hero-area:before{position:absolute;content:"";width:600px;height:540px;background:radial-gradient(circle,#7af72b18 0%,transparent 68%);top:-190px;left:-210px;pointer-events:none}
.hero-copy{position:relative;z-index:1}.hero-kicker,.section-label{display:inline-flex;align-items:center;gap:10px;letter-spacing:2.4px;color:#abf774;font-size:10px;font-weight:900}
.hero-kicker .pulse{margin-right:0}.hero-beta{border:1px solid #45694d;color:#a3b6a5;letter-spacing:1px;border-radius:5px;padding:4px 6px;margin-left:3px}
.hero-copy h1{font-size:clamp(45px,5.5vw,76px);letter-spacing:-4.2px;line-height:1.05;margin:24px 0}.hero-copy h1 em,.section-intro h2 em,.value-head h2 em{font-style:normal;color:#a6f56d}
.hero-copy p{font-size:17px;line-height:1.8;color:#a7b8bb;max-width:550px;margin:0 0 30px}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:22px}.hero-primary{min-width:0;padding:19px 26px;box-shadow:0 10px 34px #79c92d24;text-transform:none;font-size:14px;letter-spacing:.1px}
.hero-secondary{font-size:13px;font-weight:700;text-decoration:none;color:#dde9e9}.hero-secondary span{color:#a6f56d;padding-left:8px}.hero-proof{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:30px;color:#849c98;font-size:11px;font-weight:700}
.hero-visual{position:relative;display:flex;align-items:center;justify-content:center;min-height:540px}.visual-halo{position:absolute;width:500px;height:500px;border-radius:50%;background:radial-gradient(circle,#84ff4733,transparent 67%);filter:blur(18px)}
.demo-device{width:min(400px,100%);aspect-ratio:9 / 12;max-height:520px;border:8px solid #23383a;border-radius:36px;position:relative;overflow:hidden;background:#142a2b;box-shadow:0 35px 100px #000b,0 0 0 1px #5e8e6a55;transform:rotate(3deg)}
.demo-top{position:absolute;z-index:2;top:20px;left:20px;right:20px;display:flex;justify-content:space-between;align-items:center}.demo-live{font-size:10px;font-weight:900;border-radius:20px;background:#0b231ccf;color:#afff9b;padding:9px 12px;letter-spacing:1px}.demo-live i,.note-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#a6f56d;margin-right:5px}.demo-logo{font-weight:900;font-size:13px}.demo-logo span{color:#a6f56d}
.court{position:absolute;inset:0;background:linear-gradient(160deg,#16463f99,#223f3a66),repeating-linear-gradient(90deg,#285e58 0 60px,#22544c 60px 120px)}.court-floor{position:absolute;left:-25%;width:150%;height:50%;bottom:-10%;transform:perspective(300px) rotateX(47deg);background:linear-gradient(145deg,#cda98f,#d7bd91);box-shadow:0 0 40px #0003}.court-line{position:absolute;bottom:-3%;height:46%;width:3px;background:#eee6c8;transform-origin:bottom}.court-line-left{left:15%;transform:rotate(29deg)}.court-line-right{right:15%;transform:rotate(-29deg)}.court-center{position:absolute;left:5%;right:5%;bottom:23%;border-top:2px solid #f5e9c9}.net{position:absolute;left:5%;right:5%;top:39%;height:17%;border:2px solid #dde8de;background:repeating-linear-gradient(90deg,transparent 0 14px,#d6e9de77 14px 15px),repeating-linear-gradient(0deg,transparent 0 10px,#d6e9de55 10px 11px)}.player{position:absolute;width:19px;height:45px;border-radius:10px 10px 5px 5px;background:#172d43;box-shadow:0 -15px 0 -3px #d6a67b,4px 12px 0 -6px #24394d,-8px 12px 0 -6px #24394d}.player-one{left:25%;top:46%}.player-two{right:26%;top:51%;background:#94c4d6}.player-three{left:52%;top:29%;transform:scale(.78);background:#f1f3ee}.ball{position:absolute;left:48%;top:18%;width:17px;height:17px;border-radius:50%;background:#ffe36c;box-shadow:0 0 0 3px #fff6}
.demo-bottom{position:absolute;bottom:16px;left:15px;right:15px;padding:12px;border:1px solid #6e9d7477;border-radius:14px;background:#0c1c21ea;z-index:2}.demo-buffer{display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:850;letter-spacing:.8px}.demo-buffer strong{color:#a6f56d}.demo-track{height:6px;background:#3b5b43;border-radius:20px;margin:12px 0}.demo-track i{display:block;width:100%;height:100%;border-radius:20px;background:#a6f56d}.demo-save{border-radius:8px;background:#f1525c;text-align:center;padding:16px;color:#fff;font-size:12px;font-weight:950;letter-spacing:.4px}
.visual-note{position:absolute;bottom:22px;right:-10px;z-index:4;display:flex;gap:8px;align-items:flex-start;padding:17px 19px;background:#1a2d2be9;border:1px solid #517b61;border-radius:14px;box-shadow:0 12px 24px #0007}.visual-note div{display:flex;flex-direction:column;gap:6px}.visual-note strong{font-size:12px}.visual-note small{font-size:10px;color:#9fb8ad}
.benefits-strip{max-width:1125px;margin:-20px auto 0;border:1px solid #294039;border-radius:18px;display:grid;grid-template-columns:repeat(3,1fr);padding:20px 30px;background:#111f21}.benefits-strip>div{display:grid;grid-template-columns:40px 1fr;column-gap:10px;align-items:center;padding:12px 24px;border-right:1px solid #2d423a}.benefits-strip>div:last-child{border-right:0}.benefits-strip span{grid-row:1 / 3;font-size:29px;color:#a6f56d}.benefits-strip strong{font-size:14px}.benefits-strip small{color:#90a7a1;font-size:11px;margin-top:5px}
.how-section,.faq-section{max-width:1160px;margin:0 auto;padding:110px 26px}.section-intro{text-align:center;max-width:650px;margin:0 auto 44px}.section-intro h2,.value-head h2{font-size:clamp(32px,4vw,52px);line-height:1.15;letter-spacing:-2px;margin:16px 0}.section-intro p,.value-head p{color:#a6b9b7;font-size:15px;line-height:1.8}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.step-card{position:relative;padding:32px 26px 29px;border:1px solid #2b4145;border-radius:19px;background:linear-gradient(160deg,#16262b,#0e1a20)}.step-index{font-size:11px;letter-spacing:2px;color:#678279;font-weight:800}.step-icon{display:grid;place-items:center;width:57px;height:57px;border-radius:14px;background:#284230;color:#b9ff84;font-size:32px;margin:28px 0 23px}.step-card h3{font-size:18px;letter-spacing:-.4px;margin:0 0 12px}.step-card p{color:#9bb0ae;line-height:1.75;font-size:13px;margin:0}
.value-section{padding:0 24px}.value-panel{max-width:1160px;margin:0 auto;border:1px solid #395945;border-radius:28px;background:radial-gradient(ellipse at 20% 0%,#1b4130,#111d22 60%);padding:65px}.value-head{max-width:670px}.value-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;margin-top:45px}.value-grid>div{border-top:1px solid #4b6457;padding-top:20px}.value-icon{color:#a6f56d;font-size:29px}.value-grid h3{font-size:15px}.value-grid p{font-size:12px;line-height:1.8;color:#a5b7b3}
.faq-section{max-width:900px;padding-top:115px}.faq-list{border-top:1px solid #2d4647}.faq-list details{border-bottom:1px solid #2d4647;padding:0 6px}.faq-list summary{display:flex;cursor:pointer;list-style:none;align-items:center;justify-content:space-between;gap:20px;padding:22px 5px;font-weight:750;font-size:15px}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary span{font-size:23px;color:#a6f56d}.faq-list details[open] summary span{transform:rotate(45deg)}.faq-list details p{font-size:13px;line-height:1.8;color:#a9bbb7;max-width:710px;padding:0 5px 22px;margin:0}
.closing-section{text-align:center;padding:80px 20px 110px;position:relative;background:radial-gradient(ellipse 40% 70% at 50% 90%,#27593455,transparent 80%)}.closing-section img{width:92px;height:92px;object-fit:contain;display:block;margin:0 auto 20px}.closing-section h2{font-size:clamp(38px,5vw,63px);letter-spacing:-2.3px;margin:18px 0 8px}.closing-section p{color:#adbfba}.closing-cta{display:inline-flex;align-items:center;justify-content:center;gap:12px;text-decoration:none;margin:25px auto 20px;font-size:14px;letter-spacing:0;min-width:240px}.closing-section small{display:block;color:#78928a;font-size:11px}
.landing-footer{padding:28px 30px;border-top:1px solid #284039;background:#071015}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:25px;width:min(1140px,100%);margin:0 auto}.footer-left{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:800}.footer-left img{width:48px;height:48px;object-fit:contain}.footer-left small{font-size:11px;color:#738b87;font-weight:500;margin-left:9px}.footer-inner p{color:#94aaa4;font-size:12px;margin:0}
@media(max-width:980px){.hero-area{grid-template-columns:1fr 1fr;gap:25px;padding:62px 25px 85px}.hero-copy h1{font-size:clamp(39px,5vw,58px)}.demo-device{max-height:450px}.hero-visual{min-height:480px}.benefits-strip{margin:0 24px}.value-grid{grid-template-columns:repeat(2,1fr)}.value-panel{padding:45px}}
@media(max-width:700px){.landing-header{padding:15px 18px;min-height:68px}.landing-brand .brand-icon{width:38px;height:38px}.landing-brand .brand-text{font-size:18px}.landing-nav{display:none}.header-cta{padding:10px 12px;font-size:12px}.hero-area{display:flex;flex-direction:column;gap:30px;min-height:0;padding:49px 20px 58px;text-align:center}.hero-copy h1{font-size:clamp(42px,10vw,60px);letter-spacing:-2.5px;margin:20px 0}.hero-copy p{font-size:15px;line-height:1.75}.hero-actions{flex-direction:column;gap:18px}.hero-primary{width:100%;max-width:350px}.hero-proof{justify-content:center;margin-top:25px;gap:12px}.hero-visual{min-height:400px;width:100%;max-width:410px}.demo-device{width:76%;max-height:390px;transform:rotate(3deg)}.visual-note{bottom:8px;right:0;padding:12px}.visual-note strong{font-size:11px}.benefits-strip{margin:0 16px;grid-template-columns:1fr;padding:8px 20px}.benefits-strip>div{border-right:0;border-bottom:1px solid #284039;padding:17px 8px}.benefits-strip>div:last-child{border:0}.how-section,.faq-section{padding:72px 20px}.section-intro{margin-bottom:31px}.section-intro h2,.value-head h2{letter-spacing:-1.4px}.steps{grid-template-columns:1fr;gap:12px}.step-card{padding:24px}.step-icon{margin:16px 0}.value-section{padding:0 15px}.value-panel{padding:32px 24px;border-radius:22px}.value-grid{grid-template-columns:1fr 1fr;gap:17px}.value-grid h3{font-size:13px}.value-grid p{font-size:11px}.closing-section{padding:60px 18px 90px}.landing-footer{padding:23px 18px}.footer-inner{flex-direction:column;text-align:center;gap:12px}.landing .install-banner{bottom:calc(env(safe-area-inset-bottom) + 12px)}}
@media(max-width:390px){.hero-copy h1{font-size:40px}.hero-proof{font-size:10px}.value-grid{grid-template-columns:1fr}.demo-device{width:83%}}
@media(prefers-reduced-motion:reduce){.demo-device,.hero-primary{transition:none}}
}
/* Camera layout V3: unlayered, scoped overrides — prevents landing CSS from resetting buttons and buffer */
body.match-open{background:#06120f!important;color:#fff!important}
#match{z-index:150;isolation:isolate;background:#071614;color:#fff;--accent:#a9ff57}
#match .topbar{position:absolute;top:0;left:0;right:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top) + 16px) 16px 12px}
#match .topbar .brand{display:flex;align-items:center;gap:8px;background:#08231fe8;color:#fff;border-radius:13px;padding:10px 14px;font-size:20px;font-weight:900;letter-spacing:-.6px;min-width:0;box-shadow:0 5px 18px #0005}
#match .topbar .brand .symbol{color:#a9ff57;font-size:28px;line-height:1;margin-right:3px}
#match .topbar .brand span:last-child{color:#a9ff57}
#match .live{display:flex;align-items:center;gap:6px;background:#092821ec;color:#c5ffaf;border-radius:30px;padding:11px 14px;font-size:12px;white-space:nowrap}
#match .live[hidden]{display:none!important}
#match .bottom{position:absolute;left:0;right:0;bottom:0;z-index:4;max-width:700px;margin:auto;display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:18px 16px calc(env(safe-area-inset-bottom) + 18px);background:linear-gradient(0deg,#02110eec 0%,#02110eb0 73%,transparent 100%)}
#match #buffer{position:relative;display:flex;flex-direction:column;gap:10px;align-items:stretch;background:#071a19ed;border:1px solid #456b53;border-radius:13px;padding:12px 15px;min-height:64px;max-width:none;width:100%;height:auto;box-shadow:none;color:#eaf9ef}
#match #buffer>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;font-size:11px;font-weight:800;letter-spacing:.7px;white-space:nowrap}
#match #buffer>div:first-child span{font-size:11px;line-height:1.3;color:#cde6d4}
#match #counter{position:static;display:block;font-size:13px;font-weight:900;color:#a9ff57;line-height:1.3;letter-spacing:0}
#match .track{display:block;flex:none;position:relative;width:100%;height:6px;margin:0;background:#315141;border-radius:99px;overflow:hidden}
#match .track i{display:block;height:100%;width:0;background:#a9ff57}
#match .actions{display:flex;align-items:stretch;gap:9px;width:100%}
#match .actions button{font:800 12px/1.25 'DM Sans',system-ui,sans-serif;letter-spacing:.1px;border-radius:12px;min-height:60px;padding:13px 12px;text-align:center;color:#fff;white-space:normal}
#match .actions .save{flex:1;min-width:0;background:#f04d57;color:#fff;border:0}
#match .actions .save:disabled{opacity:.58}
#match .actions .stop{flex:0 0 112px;background:#351e22;color:#fff;border:1px solid #774047}
#match .actions .start{flex:1;background:#a9ff57;color:#092119}
#match .actions .back{background:#142a25;color:#fff}
#match .status{z-index:7}
#match .result{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border:1px solid #345f43;background:#0a241bdc;padding:10px 13px;border-radius:12px;font-size:12px}
#match [hidden]{display:none!important}
@media(max-width:390px){#match .bottom{padding-left:10px;padding-right:10px}#match .actions .stop{flex-basis:95px}#match .actions button{font-size:11px}}

/* Persistent local replay library; scoped to camera */
#match .library-toggle{align-self:flex-end;background:#092c24ee;border:1px solid #528364;border-radius:10px;padding:8px 12px;color:#d5f8df;font-weight:800;font-size:11px}
#match .library-toggle span{background:#a9ff57;color:#09221a;padding:2px 6px;border-radius:99px;margin-left:4px}
#match .library-panel{position:absolute;z-index:25;inset:calc(env(safe-area-inset-top) + 68px) 12px calc(env(safe-area-inset-bottom) + 12px);overflow:auto;background:#0b2420f5;border:1px solid #50755a;border-radius:17px;padding:16px;color:#f4fff5;box-shadow:0 18px 80px #000a}
#match .library-head{display:flex;justify-content:space-between;align-items:center;gap:15px}
#match .library-head strong{font-size:20px}
#match .library-head button{font-size:28px;border:0;background:transparent;color:white}
#match .library-explainer{font-size:12px;line-height:1.6;color:#b9d7c1}
#match .library-list{display:grid;gap:10px}
#match .replay-item{display:flex;flex-direction:column;gap:7px;background:#14332aea;border:1px solid #37654e;border-radius:13px;padding:13px}
#match .replay-item strong{font-size:13px}
#match .replay-item small{font-size:11px;color:#b4cfb7}
#match .replay-item-actions{display:flex;gap:8px;flex-wrap:wrap}
#match .replay-item button{border:1px solid #6a9d72;background:#234936;color:#e8ffdf;padding:9px 11px;border-radius:9px;font-size:11px;font-weight:800}
#match .replay-recovery{border-color:#a7ed75}

/* Modal overlay for Meus replays — separate from the bottom camera controls */
#match .library-backdrop{position:absolute;inset:0;z-index:22;background:rgba(0,12,10,.73);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
#match .library-panel{position:absolute;z-index:26;inset:auto 14px auto;top:50%;left:50%;transform:translate(-50%,-50%);width:min(560px,calc(100% - 28px));height:min(80dvh,760px);max-height:calc(100dvh - 34px);display:flex;flex-direction:column;overflow:hidden;background:#0b221ded;border:1px solid #598068;border-radius:23px;padding:24px 20px 18px;box-shadow:0 35px 95px #000d;color:#f4fff5}
#match .library-panel[hidden],#match .library-backdrop[hidden]{display:none!important}
#match .library-handle{flex:none;width:44px;height:5px;background:#648677;border-radius:9px;margin:-11px auto 20px;opacity:.65}
#match .library-head{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
#match .library-head strong{font:800 22px/1.3 'DM Sans',system-ui,sans-serif;letter-spacing:-.4px;display:flex;align-items:center;gap:10px}
#match .library-head strong span{color:#a9ff57;font-size:28px}
#match .library-head button{border:0;background:#1b3a2d;color:#eaffeb;border-radius:50%;font-size:25px;width:38px;height:38px;display:grid;place-items:center;padding:0}
#match .library-explainer{flex:none;font-size:12px;line-height:1.6;color:#b8cfc2;margin:0 0 16px}
#match .library-list{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:11px;padding:2px 3px 16px}
#match .library-footnote{flex:none;border-top:1px solid #365748;padding-top:14px;margin-top:2px;text-align:center;color:#98b9a5;font-size:10px;line-height:1.6}
#match .library-empty{display:flex;min-height:180px;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;color:#d4ead7}
#match .library-empty>span{font-size:38px;color:#a9ff57}
#match .library-empty strong{font-size:14px}
#match .library-empty p{color:#9cb8a8;font-size:12px;line-height:1.6;max-width:250px}
#match .replay-item{flex:none;display:flex;flex-direction:column;gap:13px;background:#13362b;border:1px solid #39674e;border-radius:14px;padding:15px}
#match .replay-item-main{display:flex;align-items:center;gap:13px}
#match .replay-item-icon{flex:0 0 52px;width:52px;height:52px;border-radius:12px;display:grid;place-items:center;background:#1c5138;color:#baff86;font-size:25px}
#match .replay-item-details{display:flex;flex-direction:column;gap:4px;min-width:0}
#match .replay-item-details strong{font-size:14px}
#match .replay-item-details small{font-size:11px;color:#b2c8b9}
#match .replay-item-state{font-size:11px;font-weight:800;color:#a9ff57}
#match .replay-item-state.is-pending{color:#e9be7c}
#match .replay-item-actions{display:flex;flex-wrap:wrap;gap:8px}
#match .replay-item-actions button,#match .replay-recovery>button{background:#234939;border:1px solid #5a8566;border-radius:9px;color:#f0ffee;font-size:11px;font-weight:800;padding:10px 12px}
#match .replay-item-actions button.primary{background:#a9ff57;color:#112b19;border:1px solid #a9ff57}
#match .replay-item-actions button.danger{color:#e6b5b4;border-color:#644449;background:#2e2428}
#match .replay-recovery{border-color:#a9ff57}
@media(max-width:550px){#match .library-panel{height:82dvh;max-height:calc(100dvh - 24px);padding:23px 15px 14px;border-radius:21px}#match .library-head strong{font-size:21px}}

#match .centerMessage{top:25%;pointer-events:none}
#match .capture-settings{position:absolute;z-index:5;top:50%;left:50%;transform:translate(-50%,-50%);width:min(450px,calc(100% - 30px));padding:16px;background:#0b2621f5;border:1px solid #4b7a59;border-radius:17px;color:#fff;display:grid;gap:12px;box-shadow:0 15px 45px #0009}
#match .settings-title{color:#a9ff57;font-size:10px;letter-spacing:1.5px;font-weight:900}
#match .settings-formats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#match .format-option{border:1px solid #47735d;border-radius:11px;display:flex;padding:11px 9px;gap:6px;align-items:center;background:#19352a;font-size:13px;font-weight:800;cursor:pointer}
#match .format-option.chosen{background:#2b5936;border-color:#a9ff57}
#match .format-option input{accent-color:#a9ff57}
#match .format-option small{display:block;font-size:10px;color:#add2b3;margin-top:3px}
#match .settings-audio{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #365342;padding:12px 0 0;font-size:13px;font-weight:800}
#match .settings-audio small{display:block;color:#bed0c3;font-size:10px;margin-top:5px}
#match .settings-audio input{width:20px;height:20px;accent-color:#a9ff57}
#match .capture-settings p{margin:0;color:#a5c6b1;font-size:10px;line-height:1.5}
#match .capture-settings[hidden]{display:none!important}
@media(max-height:760px){#match .centerMessage{top:19%}#match .centerMessage .lens{display:none}#match .capture-settings{top:43%;gap:8px;padding:12px}}
@media(orientation:landscape) and (max-height:550px){#match .capture-settings{width:min(460px,calc(100% - 30px));top:44%;padding:10px;gap:5px}#match .centerMessage{display:none}}

/* Show the complete recorded horizontal frame while phone stays upright. */
body.capture-horizontal #match #camera,body.capture-vertical #match #camera{object-fit:contain;background:#030d0b}
/* Both formats must display the same complete image encoded by the canvas. */
#match #camera{object-fit:contain!important;background:#030d0b}

/* Zoom below the camera frame and above buffer controls: visible only during capture. */
#match .camera-zoom{width:100%;border:1px solid #335e4b;background:#0b201ce8;border-radius:13px;padding:10px 13px;display:grid;gap:8px;color:#f1fff1}
#match .camera-zoom[hidden]{display:none!important}
#match .camera-zoom-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:800;color:#b5dbc4}
#match .camera-zoom-heading strong{font-size:14px;color:#a9ff57}
#match .camera-zoom-input{display:flex;align-items:center;gap:12px;min-height:28px;font-size:18px;color:#a9ff57}
#match .camera-zoom-input input[type=range]{flex:1;min-width:0;accent-color:#a9ff57;height:23px;cursor:pointer}
#match .camera-zoom-input button{background:#224332;border:1px solid #4f8357;color:#d8ffca;border-radius:8px;padding:7px 12px;font-size:11px;font-weight:900}
#match .camera-zoom-input button:disabled{opacity:.45}
#match .bottom{gap:9px}
#match #camera{transform-origin:center center}
@media(max-height:700px){#match .camera-zoom{padding:7px 10px;gap:3px}#match .camera-zoom-input{min-height:24px}#match .bottom{gap:6px}}

/* Compact camera UI — maximize the viewfinder, not the control panels. */
#match .bottom{gap:7px;padding:8px 12px calc(env(safe-area-inset-bottom) + 12px);background:linear-gradient(0deg,#05100ff0 0%,#05100faa 48%,transparent 100%)}
#match .camera-zoom{align-self:center;width:auto;min-width:132px;border:1px solid #ffffff40;border-radius:28px;padding:0;background:#0b231eda;gap:0;backdrop-filter:blur(10px)}
#match .zoom-toggle{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:0;border-radius:24px;background:transparent;color:#eaffec;min-height:37px;padding:6px 12px;font-weight:800;font-size:13px}
#match .zoom-toggle strong{color:#b3ff74;font-size:15px}
#match .zoom-toggle small{font-size:10px;font-weight:600;color:#acc9b8}
#match .zoom-expanded{padding:3px 13px 11px;min-width:min(340px,calc(100vw - 50px))}
#match .zoom-expanded[hidden]{display:none!important}
#match .zoom-expanded .camera-zoom-heading{font-size:10px;opacity:.7}
#match .zoom-expanded .camera-zoom-input{min-height:28px}
#match #buffer{min-height:0;height:29px;border:0;border-radius:8px;padding:4px 9px;background:#0b211cbd;gap:4px;overflow:hidden}
#match #buffer>div:first-child{font-size:10px;line-height:12px;gap:7px}
#match #buffer>div:first-child span{font-size:10px;color:#e7f9e9;letter-spacing:.1px}
#match #counter{font-size:10px;line-height:12px}
#match .buffer-dot{display:inline-block;width:6px;height:6px;background:#a9ff57;border-radius:50%;margin-right:5px}
#match #buffer .track{height:2px;margin:0;background:#456351}
#match .actions{gap:7px}
#match .actions button{min-height:51px;padding:9px 10px;border-radius:12px;font-size:12px}
#match .actions .stop{flex-basis:91px}
#match .library-toggle{padding:5px 10px;border-radius:20px;font-size:10px;min-height:31px}
#match .lens-picker{position:absolute;z-index:8;top:calc(env(safe-area-inset-top) + 84px);right:13px;max-width:min(310px,calc(100% - 26px));}
#match .lens-picker[hidden]{display:none!important}
#match .lens-picker>button{background:#0b231edb;border:1px solid #a4d7ac74;color:#eefff0;border-radius:20px;padding:8px 12px;font-size:11px;font-weight:800;backdrop-filter:blur(10px)}
#match .lens-picker>button span{color:#afff80;margin-left:4px}
#match .lens-options{background:#0c2520f5;border:1px solid #5a8369;border-radius:12px;max-height:38dvh;overflow:auto;display:flex;flex-direction:column;gap:3px;margin-top:6px;padding:5px}
#match .lens-options[hidden]{display:none!important}
#match .lens-option{background:transparent;border:0;border-radius:7px;color:#dcece2;padding:10px 12px;font-size:12px;text-align:left}
#match .lens-option.active{background:#315b3d;color:#c9ff9b}
@media(max-height:640px){#match .bottom{gap:4px;padding-top:3px;padding-bottom:calc(env(safe-area-inset-bottom) + 5px)}#match .zoom-toggle{min-height:31px}#match #buffer{height:25px}#match .actions button{min-height:42px}#match .library-toggle{min-height:25px}}

/* Replay30 camera v5: compact camera HUD with uncropped 16:9 content. */
#match{background:radial-gradient(ellipse at 50% 44%,#102921 0%,#06110e 70%,#020806 100%)}
#match .camera-shade{background:linear-gradient(180deg,rgba(0,0,0,.42),transparent 21%,transparent 72%,rgba(0,0,0,.27));pointer-events:none}
#match .topbar{padding:calc(env(safe-area-inset-top) + 9px) 12px 7px}
#match .topbar .brand{padding:7px 11px;border-radius:13px;font-size:17px;gap:4px;background:#061c18c9;backdrop-filter:blur(8px)}
#match .topbar .brand .symbol{font-size:22px}
#match .live{font-size:10px;padding:8px 10px;letter-spacing:.2px;background:#061c18c9}
#match .lens-picker{top:calc(env(safe-area-inset-top) + 61px);right:12px;max-width:min(220px,calc(100% - 24px))}
#match .lens-picker>button{max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;padding:7px 10px;box-shadow:none}
#match .lens-picker>button span{display:inline;white-space:nowrap}
#match .bottom{padding:7px 12px calc(env(safe-area-inset-bottom) + 10px);gap:6px;max-width:720px;background:linear-gradient(0deg,rgba(1,11,10,.84),rgba(1,11,10,.22) 75%,transparent)}
#match #buffer{height:20px;padding:3px 8px 0;border:0;border-radius:8px;background:#061c17b2;gap:2px;max-width:none}
#match #buffer>div:first-child{line-height:11px;gap:4px}
#match #buffer .track{height:2px}
#match .camera-zoom{align-self:center;min-width:0;border-radius:100px;box-shadow:0 3px 14px #0004}
#match .zoom-toggle{min-height:32px;gap:6px;padding:5px 14px}
#match .zoom-toggle strong{font-size:14px}
#match .zoom-chevron{font-size:12px;color:#a8c1b3}
#match .zoom-expanded{min-width:min(290px,calc(100vw - 44px))}
#match .actions{align-items:center;gap:8px}
#match .actions button{min-height:50px;border-radius:13px;padding:9px 12px;font-size:12px}
#match .actions .save{font-size:13px;letter-spacing:.1px}
#match .actions .stop{flex:0 0 auto;width:91px;background:#162521df;border:1px solid #6e7b6e;color:#ddece1}
#match .library-toggle{align-self:flex-end;font-size:10px;padding:5px 10px;min-height:28px;background:#0a241ce0}
#match .rotate-hint{display:none;position:absolute;z-index:3;top:calc(env(safe-area-inset-top) + 114px);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 35px);align-items:center;justify-content:center;gap:8px;color:#dcf9dc;font:700 11px/1.4 'DM Sans',system-ui,sans-serif;padding:8px 12px;background:#051e19d9;border:1px solid #729c7a7a;border-radius:20px;text-align:center;pointer-events:none}
#match .rotate-hint span{font-size:20px;color:#a9ff57}
@media(orientation:portrait){body.capture-horizontal #match .rotate-hint{display:flex;animation:replay-hint-fade 6.5s forwards}}
@keyframes replay-hint-fade{0%,72%{opacity:1}100%{opacity:0}}
@media(orientation:landscape) and (max-height:550px){
#match .topbar{padding-top:calc(env(safe-area-inset-top) + 3px)}
#match .topbar .brand{font-size:13px;padding:5px 8px}
#match .lens-picker{top:calc(env(safe-area-inset-top) + 42px)}
#match .bottom{max-width:640px;padding:3px 9px calc(env(safe-area-inset-bottom) + 3px);gap:3px}
#match .actions button{min-height:38px;padding:5px 9px}
#match .zoom-toggle{min-height:26px;padding:3px 12px}
#match #buffer{height:18px}
#match .library-toggle{min-height:22px;padding:3px 8px}
}
@media(max-width:360px){#match .topbar .brand{font-size:15px}#match .actions .stop{width:70px}#match .stop-text{display:none}}

/* Capture setup: device-appropriate first use; manual format remains explicit. */
#match .capture-settings .settings-title{letter-spacing:.9px;font-size:9px}
#match .format-option.chosen{outline:1px solid #a9ff57;outline-offset:0}

/* Preview the actual composited output, matching the saved video geometry. */
#match #captureCanvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:1;background:#030d0b;pointer-events:none}
#match #captureCanvas[hidden]{display:none!important}
body.canvas-preview-active #match #camera{opacity:0!important;pointer-events:none}
#match .camera-shade{z-index:2}
#match .topbar{z-index:4}
#match .rotate-hint{z-index:5}
#match .bottom{z-index:6}
#match .lens-picker{z-index:8}

/* V26: one geometry pipeline for preview/export, no implicit 90-degree rotation. */
#match .framing-tools{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap}
#match .framing-tools .framing-toggle{min-height:32px;border-radius:99px;border:1px solid #63886e;background:#0b231ee9;color:#c9efce;padding:6px 13px;font-size:11px;font-weight:800;backdrop-filter:blur(8px)}
#match .framing-tools .framing-toggle[aria-pressed="true"]{border-color:#a9ff57;color:#afff8b}
#match .framing-tools .camera-zoom{align-self:auto}
#match .framing-tools .zoom-expanded{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:#0b231ef5;border:1px solid #759779;border-radius:15px;padding:13px;width:min(340px,calc(100vw - 32px));z-index:9}
#match #captureCanvas{object-fit:contain!important}
@media(orientation:landscape) and (max-height:550px){#match .framing-tools .framing-toggle{min-height:26px;padding:3px 9px}}

/* Camera v27: immersive viewport, one fixed framing mode; no fake 0.6x label. */
#match{background:#020706}
#match #captureCanvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover!important;background:#020706;transform:none!important}
#match #camera{object-fit:cover!important}
#match .camera-shade{background:linear-gradient(180deg,rgba(0,0,0,.34),transparent 19%,transparent 66%,rgba(0,0,0,.46))}
#match .bottom{padding:8px 13px calc(env(safe-area-inset-bottom) + 10px);background:linear-gradient(0deg,#020c0acb,transparent 98%)}
#match .framing-tools{display:flex;align-items:center;justify-content:center}
#match .framing-tools[hidden]{display:none!important}
#match .rotate-hint{display:none!important}
#match .capture-settings .settings-title{font-weight:800}
#match .camera-zoom{display:flex;align-items:center}
#match .camera-zoom[hidden]{display:none!important}
@media(orientation:landscape) and (max-height:550px){
 #match .topbar{padding:calc(env(safe-area-inset-top) + 3px) 8px 3px}
 #match .bottom{padding:2px 8px calc(env(safe-area-inset-bottom) + 2px);gap:3px}
 #match .actions button{min-height:35px}
 #match .library-toggle{min-height:22px}
}
