.homepage{--text:#172525;--muted:#586b70;--accent:#075056;background:#fff;color:var(--text);margin:0;font-family:Inter,Arial,sans-serif;line-height:1.5}.homepage *{box-sizing:border-box}.homepage a{color:inherit;text-decoration:none}.homepage button,.homepage summary{cursor:pointer}.homepage h1,.homepage h2,.homepage h3,.homepage p{margin:0}.homepage h2{font-size:clamp(29px,3vw,42px);line-height:1.12;letter-spacing:-1.3px;font-weight:750}.homepage h3{letter-spacing:-.5px}.homepage p{color:var(--muted)}.home-shell{width:min(1180px,calc(100% - 64px));margin-inline:auto}.home-header{background:#fff;border-bottom:1px solid #e5edec;position:relative;z-index:20}.header-inner{display:flex;align-items:center;gap:32px;min-height:84px}.home-header .ralliqo-logo-frame{width:130px;height:56px}#homeNavigation{display:flex;align-items:center;justify-content:space-between;flex:1;gap:24px}.homepage nav{display:flex;align-items:center;gap:30px}.home-header nav{margin:auto}.header-account{display:flex;align-items:center;gap:14px}.homepage button,.homepage summary{font:inherit;letter-spacing:normal;text-transform:none}.homepage summary{list-style:none;display:flex;align-items:center;gap:8px;padding:10px;border-radius:9px}.homepage summary::-webkit-details-marker{display:none}#homeSettings{position:relative}.settings-panel{position:absolute;right:0;top:calc(100% + 8px);background:white;border:1px solid #dce7e5;box-shadow:0 12px 35px #17252520;border-radius:14px;width:300px;padding:20px;max-width:calc(100vw - 32px)}.homepage .auth-bar{position:static;display:flex;gap:8px;flex-wrap:wrap;margin:0;padding:0;border:0;background:none;box-shadow:none;justify-content:flex-start}.homepage .auth-user{color:#172525;overflow-wrap:anywhere}.homepage .auth-user small{color:#586b70}.homepage .auth-bar button,.homepage .auth-admin{padding:10px 12px;border-radius:9px;min-height:44px;color:#075056;background:#fff;border:1px solid #b5cfcc;font-size:13px}.homepage .auth-bar .primary{background:#075056;color:#fff}.homepage #homeAccount .auth-bar{flex-direction:column;align-items:stretch}.guest-settings{font-size:14px}.mobile-toggle{display:none}.hero{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:center;padding-block:48px 32px}.eyebrow{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.9px;background:#eaf5f4;padding:10px 13px;border-radius:30px;color:#075056}.hero h1{font-size:clamp(40px,4.7vw,66px);line-height:1.03;letter-spacing:-2.8px;margin:26px 0 20px;font-weight:780}.hero h1 span{color:#075056}.hero-copy>p{font-size:19px;max-width:450px;line-height:1.5}.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:32px}.home-button{display:inline-flex;justify-content:center;align-items:center;gap:18px;min-height:48px;padding:13px 20px;background:#075056;border:1px solid #075056;border-radius:9px;color:#fff!important;font-size:14px;font-weight:650;line-height:1.35;transition:background .15s}.home-button:hover{background:#103b40}.home-button.outline{background:white;color:#075056!important}.home-button.outline:hover{background:#eaf5f4}.photo-collage{display:grid;grid-template-columns:1.35fr 1fr;gap:12px;position:relative;align-items:center}.homepage figure{margin:0}.photo-collage figure{border-radius:15px;overflow:hidden;background:#eaf5f4}.photo-collage img{display:block;width:100%;height:auto}.hero-small{display:grid;gap:12px}.hero-small figure{max-height:none}.hero-small img{max-height:238px;object-fit:contain;background:#eaf5f4}.match-preview{position:absolute;top:22px;left:-22px;background:#fff;border:1px solid #e1eceb;box-shadow:0 8px 24px #17252517;border-radius:12px;padding:12px 20px;pointer-events:none}.match-preview span{display:block;font-size:9px;letter-spacing:1px;color:#075056;font-weight:700}.match-preview strong{font-size:30px}.club-caption{text-align:center;font-size:12px;margin-top:16px!important}.game-section{padding-block:18px 42px}.section-heading{text-align:center;margin-bottom:28px}.section-heading p,.community-heading p{font-size:17px;margin-top:10px}.mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.mode-card{padding:24px;border:1px solid #e0e9e7;border-radius:15px;box-shadow:0 3px 10px #17252505;display:flex;flex-direction:column;align-items:start}.mode-icon{width:60px;height:60px;border-radius:14px;background:#eaf5f4;color:#075056;display:grid;place-items:center;margin-bottom:18px}.mode-icon svg{width:38px;height:38px}.mode-card h3{font-size:23px;line-height:1.2;margin-bottom:12px}.mode-card p{font-size:15px}.labels{display:flex;gap:7px;flex-wrap:wrap;list-style:none;padding:0;margin:18px 0 24px}.labels li{font-size:11px;background:#edf6f5;padding:6px 10px;border-radius:20px;color:#365c60}.mode-card .home-button{margin-top:auto;width:100%;font-size:13px;padding-inline:12px}.feature-section{background:#eaf5f4;padding-block:48px}.feature-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:44px;align-items:center}.feature-intro{margin-top:14px!important}.feature-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.feature-list article{background:#fff;padding:18px;border-radius:12px}.feature-list h3{font-size:15px;color:#075056;margin-bottom:6px}.feature-list p{font-size:13px}.interface-preview{background:#fff;border:1px solid #d8e7e4;border-radius:14px;padding:22px;box-shadow:0 10px 24px #07505608}.preview-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #e6edeb;color:#075056}.preview-top span{font-size:9px;letter-spacing:1px}.interface-preview>h3{margin:16px 0;font-size:19px}.preview-courts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.preview-court{border:1px solid #e0e9e7;border-radius:12px;padding:16px;font-size:13px}.preview-court>span{display:block}.ready-label,.playing-label{font-size:10px;letter-spacing:.6px;color:#075056;margin:5px 0 16px}.preview-court p{font-size:12px;line-height:1.5}.versus{font-size:10px;color:#78918d;margin:8px 0}.preview-action{margin-top:16px;background:#075056;color:#fff;text-align:center;border-radius:7px;padding:8px;font-size:12px}.preview-score{display:block;font-size:27px;margin:4px 0}.preview-clock{font-size:11px;margin-top:16px;color:#586b70}.preview-note{font-size:11px;margin-top:18px!important}.community-section{padding-block:42px}.community-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.gallery-controls{display:flex;gap:8px}.gallery-controls button{width:44px;height:44px;min-width:44px;border-radius:50%;background:#eaf5f4;border:1px solid #dce9e7;color:#075056;padding:0;font-size:20px}.gallery-controls button:disabled{opacity:.4;cursor:default}.community-gallery{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:12px}.community-gallery figure{flex:0 0 calc((100% - 32px)/3);scroll-snap-align:start;border-radius:12px;background:#f5f8f7;overflow:hidden;display:flex;align-items:center;justify-content:center}.community-gallery img{width:100%;height:230px;object-fit:contain;display:block}.closing{position:relative;overflow:hidden;background:#075056;padding:42px 0;color:white}.closing:after{content:'';position:absolute;width:65%;height:260px;right:-12%;top:40px;border:3px solid #ffffff30;transform:rotate(-22deg);background:linear-gradient(90deg,transparent 49.6%,#ffffff30 50%,transparent 50.5%),linear-gradient(transparent 49%,#ffffff30 50%,transparent 51%);pointer-events:none}.closing .home-shell{position:relative;z-index:1}.closing h2{color:white}.closing h2 span{color:#d1ed65}.closing p{color:#e8f3f2;max-width:560px;margin:16px 0 22px}.home-button.light{background:white;color:#075056!important;border-color:white}.home-button.light:hover{background:#eaf5f4}.homepage footer{background:#172525;color:white;padding-block:16px}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}.homepage footer .ralliqo-logo-frame{width:100px;height:42px;filter:brightness(0) invert(1)}.homepage footer nav{font-size:13px;gap:24px}.footer-inner>span{font-size:11px;color:#b9ceca}.homepage :focus-visible{outline:3px solid #609e98;outline-offset:4px}.homepage nav a:hover{text-decoration:underline;text-underline-offset:5px}.skip-link{position:absolute;top:-100px;left:10px;z-index:1000;background:#fff;padding:12px}.skip-link:focus{top:10px}.homepage section[id]{scroll-margin-top:24px}.homepage .hidden{display:none!important}
@media(max-width:1100px){.header-inner{gap:20px}#homeNavigation{gap:12px}.homepage nav{gap:18px}#homeGuestControls [data-auth-open=create]{display:none}.hero{gap:30px}.hero-actions{gap:10px}.hero-actions .home-button{padding-inline:15px}.mode-card{padding:20px}.mode-card h3{font-size:21px}}
@media(max-width:850px){.home-shell{width:calc(100% - 40px)}.header-inner{justify-content:space-between;min-height:72px}.mobile-toggle{display:block;background:white;color:#075056;border:1px solid #dce9e7;border-radius:9px;width:44px;height:44px;padding:0;font-size:24px}#homeNavigation{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;box-shadow:0 12px 20px #17252515;padding:20px;max-height:calc(100dvh - 72px);overflow:auto}#homeNavigation.is-open{display:flex;flex-direction:column;align-items:stretch}.home-header nav{margin:0;flex-direction:column;align-items:stretch;gap:0}.home-header nav a{padding:12px}.header-account{align-items:stretch;flex-direction:column}.settings-panel{position:static;width:auto;max-width:100%;box-shadow:none;margin-top:8px}#homeGuestControls [data-auth-open=create]{display:block}.hero h1{font-size:42px;letter-spacing:-1.8px}.hero-copy>p{font-size:16px}.eyebrow{font-size:9px;letter-spacing:.4px}.hero{gap:24px}.mode-grid{gap:12px}.mode-card{padding:16px}.mode-card h3{font-size:19px}.mode-card .home-button{font-size:12px}.feature-grid{grid-template-columns:1fr;gap:30px}.interface-preview{max-width:620px;width:100%;margin:auto}.feature-list{grid-template-columns:repeat(4,1fr)}.footer-inner>span{display:none}}
@media(max-width:620px){.home-shell{width:calc(100% - 32px)}.hero{grid-template-columns:1fr;padding-block:28px;gap:32px}.hero h1{font-size:clamp(40px,10vw,58px);margin-top:20px}.hero-copy>p{font-size:17px}.hero-actions{margin-top:22px}.hero-actions .home-button{flex:1;font-size:13px}.photo-collage{max-width:440px;margin:auto;gap:10px}.hero-main img{max-height:400px;object-fit:contain}.hero-small img{max-height:195px}.match-preview{left:8px;top:12px;padding:10px 15px}.match-preview strong{font-size:25px}.club-caption{font-size:11px}.mode-grid{grid-template-columns:1fr}.mode-card{padding:24px}.mode-card h3{font-size:25px}.mode-card .home-button{font-size:14px}.feature-section{padding-block:32px}.feature-list{grid-template-columns:1fr 1fr}.interface-preview{padding:14px}.preview-court{padding:12px}.preview-courts{gap:8px}.community-heading{align-items:flex-start;flex-wrap:wrap}.community-gallery figure{flex-basis:85%}.community-gallery img{height:220px}.community-section{padding-block:32px}.footer-inner{flex-direction:column;gap:12px}.closing{padding-block:32px}.closing p{font-size:15px}.closing:after{opacity:.45}.homepage footer nav{gap:20px}.feature-list article{padding:14px}}
@media(prefers-reduced-motion:no-preference){html:has(.homepage){scroll-behavior:smooth}}
.homepage .home-header{display:block;margin:0}.hero-visual{position:relative}.hero-visual:before{content:'';position:absolute;inset:10% -12px 15%;border:3px solid #eaf5f4;transform:rotate(-8deg);pointer-events:none;border-radius:20px;z-index:-1}.homepage .auth-backdrop{background:#17252566}.homepage .auth-modal{background:white;max-height:calc(100dvh - 36px);overflow-y:auto}.homepage .auth-modal .primary{background:#075056;color:white}.homepage .auth-modal input{min-height:44px}
.hero-visual{isolation:isolate}.hero-visual:before{inset:10% 0 15%;transform:rotate(-4deg)}.hero>* ,.feature-grid>*{min-width:0}
/* Fixed, undistorted minimal mode icons and responsive image wrappers. */
.homepage .mode-icon{width:64px;height:64px;flex:0 0 64px;border-radius:16px;background:#EAF5F4;color:#075056;box-shadow:none}
.homepage .mode-icon svg{display:block;width:32px;height:32px;flex:none;aspect-ratio:1}
.photo-collage picture,.community-gallery picture{display:block;width:100%;min-width:0}
.community-gallery picture{display:flex;align-items:center;justify-content:center}

/* Frames follow the photos: no empty sidebars, cropping, or stretched players. */
.photo-collage{grid-template-columns:2fr 1fr;align-items:center}
.photo-collage img,.hero-main img,.hero-small img{width:100%;height:auto;max-height:none;object-fit:cover}
.community-gallery{align-items:center}
.community-gallery figure{flex:0 0 auto;width:auto;height:230px;aspect-ratio:var(--photo-ratio);display:block}
.community-gallery picture{display:block;width:100%;height:100%}
.community-gallery img{width:100%;height:100%;object-fit:cover}
@media(max-width:620px){.community-gallery figure{height:auto;width:min(85%,calc(220px * var(--photo-ratio)));aspect-ratio:var(--photo-ratio)}}

/* Remove inactive account controls from the header layout entirely. */
.homepage #homeSettings[hidden],.homepage #homeGuestControls[hidden]{display:none!important}
