:root{--bg:#000000;--side:#080808;--panel:#10100f;--panel2:#090909;--line:#30281a;--text:#f2eee6;--muted:#a49e91;--accent:#ffd45b;--accent-text:#1a1000;--danger:#ff8585;--shadow:0 20px 80px #0004;--glow:rgba(255,203,64,.10)}
*{box-sizing:border-box} [hidden]{display:none!important} body{margin:0;background:var(--bg);color:var(--text);font:14px/1.55 'Segoe UI','Malgun Gothic',sans-serif;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button{transition:background .2s,color .2s,transform .2s,border .2s}button:active{transform:translateY(1px)}.muted,small{color:var(--muted)}.brand{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:850;letter-spacing:1.9px;line-height:1.2}.brand small{display:block;font-size:8px;letter-spacing:1.5px;margin-top:6px;font-weight:600}.mark{display:grid;place-content:center;position:relative;background:var(--accent);color:var(--accent-text);width:43px;height:43px;font-size:29px;letter-spacing:-4px;font-weight:950;border-radius:10px;padding-right:4px}.mark span{position:absolute;right:5px;bottom:3px;font-size:22px}.eyebrow,.nav-label,.version,.crumb,.tag,.stat-label,.panel-kicker{font:700 10px/1.4 'Segoe UI',sans-serif;letter-spacing:1.6px;color:var(--muted)}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--accent);margin-right:6px;box-shadow:0 0 12px var(--accent)}.auth{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.auth-art{position:relative;min-height:100vh;padding:45px 8%;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;background:radial-gradient(ellipse at 65% 45%,#49330b 0%,transparent 52%),linear-gradient(145deg,#1c150b,#000000 75%);color:#f2eee6}.auth-art:before,.hero:before{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0 47px,#ffcd650d 48px 49px),repeating-linear-gradient(0deg,transparent 0 47px,#ffcd650d 48px 49px);mask-image:linear-gradient(120deg,transparent,#000)}.auth-art:after{content:"42";position:absolute;right:-15px;bottom:5%;font-weight:950;font-size:clamp(180px,32vw,490px);line-height:1;color:#ffcc590d;pointer-events:none}.auth-copy,.auth-foot,.auth-art .brand{position:relative;z-index:1}.auth-copy .eyebrow{color:#ffd45b}.auth-copy h1{font-size:clamp(48px,6vw,95px);line-height:1.12;letter-spacing:-.075em;margin:25px 0;font-weight:850}.auth-copy h1 em{color:#ffd45b;font-style:normal}.auth-copy p{font-size:15px;color:#c6b99f}.auth-grid{display:flex;gap:20px;flex-wrap:wrap;margin-top:50px;font-size:9px;letter-spacing:1px;color:#aa9b80}.auth-foot{display:flex;justify-content:space-between;font-size:9px;color:#a59b88;letter-spacing:1px;gap:15px}.auth-form{position:relative;display:grid;place-items:center;padding:45px 9%;min-height:100vh}.auth-form>.icon-btn{position:absolute;right:30px;top:30px}.form-wrap{max-width:420px;width:100%;animation:enter .45s ease both}.form-wrap h2{font-size:32px;line-height:1.3;letter-spacing:-1.6px;margin:14px 0}.form-wrap form{margin-top:34px}label{font-size:12px;font-weight:700;display:block;margin:18px 0 8px}input,select{color:var(--text);background:var(--panel2);border:1px solid var(--line);border-radius:9px;padding:13px 14px;width:100%}input::placeholder{color:var(--muted)}.primary,.secondary{border:1px solid transparent;border-radius:8px;padding:11px 16px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:10px}.primary{background:var(--accent);color:var(--accent-text)}.primary:hover{filter:brightness(1.1);box-shadow:0 6px 24px var(--glow)}.secondary{background:var(--panel2);border-color:var(--line);color:var(--text)}.secondary:hover,.icon-btn:hover{border-color:var(--accent);color:var(--accent)}.full{width:100%;justify-content:space-between;margin-top:26px}.text-btn{background:none;border:0;color:var(--accent);font-weight:750;padding:0}.switch{color:var(--muted);text-align:center}.secure-note{border-top:1px solid var(--line);padding-top:22px;margin-top:35px;color:var(--muted);text-align:center;font-size:11px}.error{color:var(--danger);min-height:1.5em;font-size:12px}.shell{min-height:100vh;display:grid;grid-template-columns:246px minmax(0,1fr)}.sidebar{background:var(--side);border-right:1px solid var(--line);padding:28px 19px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .brand{margin:0 8px 34px}.server-chip{display:flex;align-items:center;gap:12px;padding:13px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);margin-bottom:32px}.server-chip strong{font-size:12px;display:block}.server-chip small{display:block;font-size:8px;letter-spacing:.8px;margin-top:3px}.server-icon{background:var(--glow);color:var(--accent);border:1px solid var(--line);border-radius:7px;width:34px;height:34px;display:grid;place-items:center;font-size:19px;font-weight:900}.nav-label{margin:0 12px 11px}.nav{border:1px solid transparent;display:flex;align-items:center;gap:12px;padding:12px;width:100%;text-align:left;border-radius:7px;color:var(--muted);background:none;font-size:13px;font-weight:650;margin-bottom:4px}.nav span{font-size:19px;width:21px;text-align:center;line-height:1}.nav:hover{background:var(--panel);color:var(--text)}.nav.active{background:var(--glow);color:var(--accent);border-color:var(--line);box-shadow:inset 3px 0 var(--accent)}.side-bottom{margin-top:auto}.version{display:flex;align-items:center;margin:10px 9px 16px;font-size:9px}.version span{margin-left:auto}main{min-width:0;display:flex;flex-direction:column}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 32px;gap:12px}.crumb{letter-spacing:1px}.crumb span{padding:0 8px}.crumb b{color:var(--text)}.top-actions{display:flex;align-items:center;gap:12px}.icon-btn{background:var(--panel);border:1px solid var(--line);color:var(--text);width:36px;height:36px;border-radius:8px;font-size:19px}.avatar{width:36px;height:36px;border-radius:9px;background:var(--glow);color:var(--accent);border:1px solid var(--line);display:grid;place-items:center;font-weight:800}.profile strong,.profile small{display:block;max-width:120px;overflow:hidden;text-overflow:ellipsis}.profile strong{font-size:12px}.profile small{font-size:9px;letter-spacing:1px}.content{padding:32px;max-width:1500px;width:100%;margin:0 auto;flex:1;animation:enter .3s ease both}.page-head{display:flex;justify-content:space-between;gap:16px;align-items:end;margin-bottom:23px}.page-head h1{font-size:30px;letter-spacing:-1.2px;line-height:1.25;margin:6px 0 4px}.page-head p{margin:0;color:var(--muted);font-size:13px}.hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:18px;background:radial-gradient(ellipse at 95% 0%,#4a3109 0,transparent 55%),linear-gradient(105deg,#17130b,#080808);border:1px solid #58411a;border-radius:14px;padding:28px 30px;min-height:160px;margin-bottom:20px;color:#f2eee6}.hero>*{position:relative}.hero .eyebrow{color:#ffd45b}.hero h2{font-size:27px;letter-spacing:-1px;margin:8px 0 5px}.hero p{margin:0;color:#c2b497;font-size:13px}.hero-art{font-size:65px;line-height:1;font-weight:950;letter-spacing:-6px;color:#ffd45b35;white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.card,.panel{border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 10px 25px #0000000a}.card{padding:20px;min-height:126px}.card-top{display:flex;justify-content:space-between;align-items:center}.card-icon{font-size:20px;color:var(--accent)}.stat-value{font-size:25px;font-weight:850;letter-spacing:-.7px;margin:9px 0 3px;overflow-wrap:anywhere}.stat-sub{font-size:11px;color:var(--muted)}.grid{display:grid;grid-template-columns:1.3fr 1fr;gap:16px}.panel{padding:22px;min-width:0}.panel h2{font-size:16px;margin:4px 0 16px}.panel p{font-size:13px;color:var(--muted)}.panel-heading{display:flex;justify-content:space-between;align-items:start;gap:12px}.status-line,.action-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding:13px 0}.status-line:last-child,.action-row:last-child{padding-bottom:0}.status-line small,.action-row small{display:block;font-size:11px}.tag{display:inline-block;padding:5px 9px;border:1px solid var(--line);border-radius:5px;letter-spacing:.5px;font-size:10px;white-space:nowrap}.tag.accent{color:var(--accent)}.quick{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick button{padding:14px;text-align:left;display:block}.quick button span{display:block;font-size:18px;color:var(--accent);margin-bottom:5px}pre{white-space:pre-wrap;overflow-wrap:anywhere;min-height:125px;max-height:420px;overflow:auto;background:var(--panel2);border:1px solid var(--line);border-radius:8px;padding:16px;color:var(--muted);font:12px/1.7 Consolas,monospace}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th,td{padding:13px 10px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:11px;color:var(--muted);font-weight:650}td select{width:auto;padding:6px 10px}.inline-form{display:flex;gap:10px;margin:10px 0 15px}.inline-form input{flex:1;min-width:0}.stack{display:grid;gap:16px}.notice{border-left:3px solid var(--accent);background:var(--glow);padding:14px;font-size:12px;color:var(--muted);border-radius:5px}.danger{color:var(--danger)}footer{margin:0 32px;padding:17px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:9px;letter-spacing:1px}#toast{position:fixed;right:24px;bottom:24px;z-index:20;max-width:min(420px,90vw);background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--accent);color:var(--text);padding:14px 19px;border-radius:9px;box-shadow:var(--shadow);display:none}#toast.show{display:block;animation:enter .2s ease both}@keyframes enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:850px){.shell{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:20px 10px}.sidebar .brand{font-size:14px;margin-left:0}.sidebar .brand small{font-size:7px}.content{padding:23px}.topbar{padding:0 23px}.grid{grid-template-columns:1fr}.hero-art{font-size:44px}.stats{gap:8px}.card{padding:13px}.stat-value{font-size:20px}.auth{grid-template-columns:1fr}.auth-art{min-height:280px;padding:24px}.auth-copy h1{font-size:48px}.auth-copy h1 br{display:none}.auth-grid,.auth-foot{display:none}.auth-form{min-height:0;padding:55px 24px}.auth-form>.icon-btn{top:10px;right:15px}}@media(max-width:560px){.shell{display:block}.sidebar{position:static;height:auto;padding:12px}.sidebar .brand{margin:0 0 12px}.server-chip,.nav-label,.version{display:none}.sidebar nav{display:flex;overflow:auto;gap:4px}.nav{white-space:nowrap;font-size:11px;width:auto;padding:8px}.side-bottom{margin:0}.topbar{height:58px;padding:0 14px}.crumb{font-size:9px}.profile{display:none}.content{padding:16px}.stats{grid-template-columns:1fr}.card{min-height:0}.hero{padding:20px}.hero-art{display:none}.page-head{align-items:start}.page-head h1{font-size:24px}.page-head .secondary{font-size:11px}.panel{padding:16px}footer{margin:0 16px}.auth-copy p{font-size:12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* SH Survival — 금빛 관제 테마 */
.brand{letter-spacing:.35px;white-space:nowrap;gap:11px}.brand small{letter-spacing:.6px;font-size:10px;font-weight:550;color:var(--muted)}.mark{flex:0 0 44px;width:44px;height:44px;letter-spacing:-1.5px;font-size:21px;font-weight:950;padding:0;border-radius:7px;background:linear-gradient(145deg,#fff0a0 0%,#ffd04b 46%,#b97c12 100%);color:#171004;border:1px solid #ffe18b;box-shadow:0 0 16px #ffc83b35,inset 0 1px 1px #fff5bb}.sidebar .brand{margin-left:4px}.eyebrow,.nav-label,.version,.crumb,.tag,.stat-label,.panel-kicker{font-family:'Segoe UI','Malgun Gothic',sans-serif;letter-spacing:.7px}.hero .eyebrow,.auth-copy .eyebrow,.auth-copy h1 em{color:#ffd45b;text-shadow:0 0 18px #ffbe3940}.hero{background:radial-gradient(ellipse at 95% 0%,#473009 0,transparent 60%),linear-gradient(105deg,#1b1408,#060606)}.hero-art{color:#ffd45b38}.nav.active{border-color:#9c742b55;box-shadow:inset 3px 0 var(--accent),0 0 16px #e9ad1910}.primary{box-shadow:0 0 14px #ffc83b20}.primary:hover{box-shadow:0 0 22px #ffc83b40}.card,.panel{transition:border-color .2s ease,box-shadow .2s ease}.card:hover,.panel:hover{border-color:#8e6a2e75}.auth-art:before,.hero:before{background:repeating-linear-gradient(90deg,transparent 0 47px,#ffcd650d 48px 49px),repeating-linear-gradient(0deg,transparent 0 47px,#ffcd650d 48px 49px)}
@media(max-width:850px){.sidebar .brand{margin-left:0;gap:7px}.sidebar .brand small{font-size:9px}.sidebar .mark{flex-basis:35px;width:35px;height:35px;font-size:17px}}
/* Community portal */
.community{min-height:100vh;display:flex;flex-direction:column}.community-header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px max(24px,calc((100vw - 1200px)/2));background:var(--side);border-bottom:1px solid var(--line)}.community-brand{border:0;background:none;color:var(--text);text-align:left;white-space:nowrap;padding:0;letter-spacing:0}.community-nav,.community-account,.hero-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.community-nav button{border:0;background:none;color:var(--muted);padding:12px 10px;font-weight:700;white-space:nowrap}.community-nav button:hover,.community-nav .selected,.community-nav #admin-entry{color:var(--accent)}.community-nav .selected{box-shadow:0 2px var(--accent)}.community-account{font-size:12px;white-space:nowrap}.community-main{width:min(1200px,calc(100% - 48px));margin:35px auto 70px;flex:1}.community-hero{min-height:420px;overflow:hidden;position:relative;display:grid;grid-template-columns:1.3fr 1fr;align-items:center;padding:58px;gap:20px;border:1px solid #594421;background:radial-gradient(ellipse at 85% 35%,#543b0f 0%,transparent 48%),linear-gradient(135deg,#17120a,#030303 70%);color:#f6f0e1;border-radius:20px;margin-bottom:28px}.community-hero:before{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(130deg,transparent 0 72px,#ffda6c0c 73px 74px);mask-image:linear-gradient(90deg,transparent,#000)}.hero-copy,.hero-emblem{position:relative}.hero-copy h1{font-size:clamp(44px,6vw,84px);line-height:1.13;letter-spacing:-.07em;margin:20px 0}.hero-copy h1 em{font-style:normal;color:#ffd45b;text-shadow:0 0 30px #ffb93030}.hero-copy p{font-size:16px;color:#c8bb9e;max-width:490px;white-space:pre-wrap}.hero-buttons{margin:30px 0}.community-hero .secondary{background:#14110b;color:#f9e6b1;border-color:#68542b}.hero-emblem{display:grid;place-items:center}.emblem-ring{border:1px solid #a77b30;width:min(100%,285px);aspect-ratio:1;display:grid;place-content:center;text-align:center;border-radius:24px;box-shadow:0 0 70px #ffbf2730,inset 0 0 60px #ffb33012;transform:rotate(-7deg);background:#181208}.emblem-ring span{font-size:clamp(70px,10vw,140px);line-height:1;font-weight:950;letter-spacing:-.12em;color:#ffd45b;text-shadow:0 0 40px #ffce4b70;padding-right:12px}.emblem-ring small{color:#c6a663;letter-spacing:3px;font-size:10px}.community-status{color:var(--muted);font-size:13px;margin:15px 0}.community-hero .community-status{color:#c6b99f}.community-status.online{color:var(--accent)}.community-hero .community-status.online{color:#ffd45b}.community-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.section-head,.community-rules{display:flex;justify-content:space-between;align-items:center;gap:16px}.community-rules p,.post-body{white-space:pre-wrap;overflow-wrap:anywhere}.post-item{border-top:1px solid var(--line);padding:13px 0;display:flex;gap:8px;align-items:flex-start}.post-item details{flex:1;min-width:0}.post-item summary{cursor:pointer;overflow-wrap:anywhere}.post-title{font-weight:650}.post-meta{display:block;color:var(--muted);font-size:11px;margin:5px 0 0 16px}.post-body{padding:15px 0;color:var(--text)}.empty{padding:30px 0;text-align:center;color:var(--muted)}.community-form{display:grid;gap:12px}.community-form input,.community-form textarea{display:block;width:100%;margin-top:7px;background:var(--panel2);border:1px solid var(--line);border-radius:8px;color:var(--text);padding:12px;font:inherit}.community-form textarea{min-height:100px;resize:vertical}.community-form button{justify-self:start}.community-main #post-compose{margin-bottom:20px}.community-footer{display:flex;justify-content:space-between;padding:24px max(24px,calc((100vw - 1200px)/2));border-top:1px solid var(--line);color:var(--muted);font-size:12px;gap:12px}.community-link{color:var(--accent)}.connect-steps{padding-left:22px;line-height:2.1}.community-main .panel h2{font-size:20px}.community-main .page-head{margin-bottom:25px}.community-main strong{overflow-wrap:anywhere}.community-main .action-row{gap:12px}.community-account #community-user{max-width:140px;overflow-wrap:anywhere;white-space:normal}@media(max-width:1000px){.community-header{flex-wrap:wrap}.community-nav{order:3;width:100%;justify-content:center}.community-hero{padding:38px}}@media(max-width:650px){.community-main{width:calc(100% - 28px);margin-top:18px}.community-header{padding:14px;gap:10px;position:static}.community-account{gap:5px}.community-hero{grid-template-columns:1fr;padding:26px;min-height:0}.hero-emblem{display:none}.community-grid{grid-template-columns:1fr}.community-rules,.community-footer{flex-direction:column;align-items:flex-start}.community-nav{justify-content:flex-start;gap:0}.community-nav button{padding:9px 8px;font-size:12px}}

/* Editable connection guide */
.connect-editor{min-width:0;border:1px solid var(--line);border-radius:12px;padding:20px;display:grid;gap:14px;margin:8px 0}.connect-editor legend{color:var(--accent);font-weight:700;padding:0 8px}.connect-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.connect-editor select{display:block;width:100%;margin-top:7px;background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:12px;font:inherit}.connect-editor .connect-check{display:flex;align-items:center;gap:8px}.connect-editor .connect-check input{width:auto;margin:0}.connect-guide{overflow-wrap:anywhere}.connect-guide .connect-note{white-space:pre-wrap;color:var(--muted)}.connect-guide.connect-color-gold .connect-steps,.connect-guide.connect-color-gold .connect-note{color:var(--accent)}.connect-guide.connect-color-muted .connect-steps{color:var(--muted)}.connect-size-small .connect-steps,.connect-size-small .connect-note{font-size:13px}.connect-size-normal .connect-steps,.connect-size-normal .connect-note{font-size:14px}.connect-size-large .connect-steps,.connect-size-large .connect-note{font-size:19px}.connect-image{display:block;width:auto;max-width:100%;max-height:600px;object-fit:contain;border-radius:9px;margin:16px 0}.connect-editor .connect-image{max-height:180px}@media(max-width:650px){.connect-editor-grid{grid-template-columns:1fr}}

/* Editable home design */
.home-editor-panel{margin-top:20px}.home-editor-panel input[type=color]{height:45px;padding:5px;cursor:pointer}.home-editor-panel input[type=range]{padding:0;accent-color:var(--accent)}.home-editor-panel output{color:var(--accent);font-weight:700}.home-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.home-preview{border:1px dashed var(--line);border-radius:14px;padding:14px;overflow:hidden;container-type:inline-size}.home-preview .community-hero{padding:clamp(18px,5cqw,58px);min-height:0}.home-preview .hero-copy h1{font-size:clamp(24px,6.5cqw,var(--home-title-size,84px))}.home-preview .emblem-ring span{font-size:clamp(22px,10cqw,140px)}.home-preview .community-grid .panel{min-width:0}.home-preview button,.home-preview a{cursor:default}.home-custom .hero-copy h1{font-size:clamp(32px,6vw,var(--home-title-size,84px));color:var(--home-title-color,#f6f0e1);overflow-wrap:anywhere;white-space:pre-line}.home-custom .hero-copy h1 em{color:var(--home-accent-color,#ffd45b);text-shadow:0 0 calc(60px * var(--home-glow,.5)) color-mix(in srgb,var(--home-accent-color,#ffd45b) calc(45% * var(--home-glow,.5)),transparent)}.home-custom .hero-copy{min-width:0;z-index:2}.home-custom .hero-emblem{z-index:2;min-width:0}.home-custom .emblem-ring{width:min(100%,var(--home-logo-size,285px));transform:rotate(var(--home-angle,-7deg));box-shadow:0 0 calc(140px * var(--home-glow,.5)) color-mix(in srgb,var(--home-accent-color,#ffd45b) calc(40% * var(--home-glow,.5)),transparent);overflow:hidden;container-type:inline-size}.home-custom .emblem-ring span{font-size:clamp(18px,48cqw,180px);color:var(--home-accent-color,#ffd45b);text-shadow:0 0 calc(80px * var(--home-glow,.5)) color-mix(in srgb,var(--home-accent-color,#ffd45b) calc(80% * var(--home-glow,.5)),transparent);overflow-wrap:anywhere;max-width:100%;padding:0;letter-spacing:-.09em}.home-custom .emblem-ring small{overflow-wrap:anywhere;padding:4px}.home-custom .home-logo-image{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.home-custom .emblem-ring{position:relative}.home-custom .home-background,.home-custom .home-overlay{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}.home-custom .home-overlay{background:rgba(0,0,0,var(--home-overlay,.55));z-index:1}.home-custom.home-no-logo{grid-template-columns:1fr}.home-custom.home-no-logo .hero-copy p{max-width:100%}.home-one-column{grid-template-columns:1fr}.home-link{display:inline-flex;align-items:center;text-decoration:none;font:inherit;font-weight:700;justify-content:center}.home-preview .hero-buttons{margin:16px 0}.home-preview .home-link{font-size:12px}@container (max-width:560px){.home-preview .community-hero{grid-template-columns:1fr}.home-preview .hero-emblem{display:grid}.home-preview .emblem-ring{max-width:150px}.home-preview .community-grid{grid-template-columns:1fr}}@media(max-width:650px){.home-custom .hero-emblem{display:grid;margin:10px 0}.home-custom .emblem-ring{max-width:180px}.home-editor-panel .connect-editor{padding:12px}.home-preview{padding:7px}}

/* Brand logo patch */
.brand-logo{width:44px;height:44px;display:block;object-fit:contain;flex:0 0 44px;filter:drop-shadow(0 0 10px rgba(255,204,72,.16));}
.community-brand .brand-logo{width:42px;height:42px;border-radius:12px;}
.sidebar .brand .brand-logo{width:40px;height:40px;border-radius:12px;}
.auth-art .brand .brand-logo{width:46px;height:46px;border-radius:14px;}
@media(max-width:850px){.sidebar .brand .brand-logo{width:35px;height:35px}}

/* SH Survival — brushed gold community finish */
:where(.community-main,.home-preview) .home-custom .hero-buttons{gap:12px;align-items:stretch}
:where(.community-main,.home-preview) .home-custom .hero-buttons :is(.primary,.secondary),
:where(.community-main,.home-preview) .community-rules .secondary{
  position:relative;isolation:isolate;overflow:hidden;min-height:49px;padding:12px 22px;
  border-radius:9px;letter-spacing:.015em;line-height:1.5;font-weight:750;text-align:center;
  transition:transform .2s ease,box-shadow .25s ease,border-color .25s ease,filter .25s ease;
}
:where(.community-main,.home-preview) .home-custom .hero-buttons .primary{
  color:#241600;border:1px solid #edc572;
  background:repeating-linear-gradient(0deg,#ffffff08 0 1px,#5d37000a 1px 3px,transparent 3px 5px),linear-gradient(125deg,#ffecae 0%,#e8b648 38%,#bb7e20 58%,#f6d47e 100%);
  box-shadow:inset 0 1px 0 #fff4c3,inset 0 -2px 0 #86530d66,0 5px 14px #0008,0 0 12px #d9a13e19;
  text-shadow:0 1px 0 #fff0b34d;
}
:where(.community-main,.home-preview) .home-custom .hero-buttons .secondary{
  color:#f7dfaa;border:1px solid #9d7639;
  background:repeating-linear-gradient(0deg,#fff7da03 0 1px,transparent 1px 4px),linear-gradient(135deg,#282116,#100e0a 58%,#21190d);
  box-shadow:inset 0 1px 0 #f5cf7b20,0 5px 14px #0007;
}
:where(.community-main,.home-preview) .home-custom .hero-buttons :is(.primary,.secondary)::after{
  content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;
  background:linear-gradient(115deg,transparent 20%,#fff4ce42 47%,transparent 75%);
  transform:translateX(-135%);transition:transform .65s ease;
}
@media(hover:hover){
  :where(.community-main,.home-preview) .home-custom .hero-buttons :is(.primary,.secondary):hover{transform:translateY(-2px);border-color:#ffe2a1;filter:brightness(1.09);box-shadow:inset 0 1px 0 #fff1bd55,0 8px 18px #0009,0 0 16px #daa34126}
  :where(.community-main,.home-preview) .home-custom .hero-buttons :is(.primary,.secondary):hover::after{transform:translateX(135%)}
}
:where(.community-main,.home-preview) .home-custom .hero-buttons :is(.primary,.secondary):active{transform:translateY(1px);filter:brightness(.96)}
:where(.community-main,.home-preview) .home-custom .hero-buttons :is(.primary,.secondary):focus-visible,
:where(.community-main,.home-preview) .section-head .text-btn:focus-visible{outline:2px solid #ffdb87;outline-offset:4px}
/* Only homepage cards, including the CMS live preview. */
:where(.community-main,.home-preview) .home-custom + .community-grid > .panel,
:where(.community-main,.home-preview) .community-rules{
  --sh-card-edge:#564326;--sh-card-heading:#f5e5c4;--sh-card-muted:#b4a792;--sh-card-gold:#e6bf71;
  position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--sh-card-edge);border-radius:14px;padding:25px 24px;
  background:radial-gradient(ellipse at 0% 0%,#a9741720,transparent 58%),repeating-linear-gradient(135deg,#fff9dc02 0 1px,transparent 1px 7px),linear-gradient(150deg,#1a1711,#100f0d 52%,#0b0a09);
  box-shadow:inset 0 1px 0 #e9bd6820,0 8px 22px #0005;
  transition:border-color .25s ease,box-shadow .25s ease;
}
:where(.community-main,.home-preview) .home-custom + .community-grid > .panel::before,
:where(.community-main,.home-preview) .community-rules::before{content:'';position:absolute;top:0;left:24px;right:24px;height:1px;background:linear-gradient(90deg,transparent,#d7a94a99,transparent);pointer-events:none}
:where(.community-main,.home-preview) .home-custom + .community-grid > .panel:hover,
:where(.community-main,.home-preview) .community-rules:hover{border-color:#9b733e;box-shadow:inset 0 1px 0 #e9bd6830,0 10px 25px #0007}
:where(.community-main,.home-preview) .home-custom + .community-grid .section-head{padding-bottom:15px;margin-bottom:5px;border-bottom:1px solid #ad88542b;align-items:center;flex-wrap:wrap;gap:10px}
:where(.community-main,.home-preview) .home-custom + .community-grid .section-head h2,
:where(.community-main,.home-preview) .community-rules h2{color:var(--sh-card-heading);margin:0;letter-spacing:-.025em;font-size:20px;line-height:1.45;overflow-wrap:anywhere}
:where(.community-main,.home-preview) .home-custom + .community-grid .section-head h2{display:flex;gap:10px;align-items:center;min-width:0}
:where(.community-main,.home-preview) .home-custom + .community-grid .section-head h2::before{content:'';width:3px;height:19px;flex:0 0 3px;border-radius:2px;background:linear-gradient(#ffe7a5,#b67b24);box-shadow:0 0 8px #e5ac292a}
:where(.community-main,.home-preview) .home-custom + .community-grid .section-head .text-btn{color:var(--sh-card-gold);border:1px solid #9b793948;border-radius:7px;background:#ba8e2210;padding:7px 10px;font-size:12px;white-space:nowrap;transition:background .2s,border-color .2s}
:where(.community-main,.home-preview) .home-custom + .community-grid .section-head .text-btn:hover{background:#ba8e2227;border-color:#be924c}
:where(.community-main,.home-preview) .home-custom + .community-grid .empty{padding:29px 8px 22px;color:var(--sh-card-muted);font-size:13px}
:where(.community-main,.home-preview) .home-custom + .community-grid .post-item{border-color:#ad885426;padding:13px 4px;transition:background .2s}
:where(.community-main,.home-preview) .home-custom + .community-grid .post-item:first-child{border-top:0}
:where(.community-main,.home-preview) .home-custom + .community-grid .post-item:hover{background:#b78a2310}
:where(.community-main,.home-preview) .home-custom + .community-grid .post-title{color:var(--sh-card-heading)}
:where(.community-main,.home-preview) .home-custom + .community-grid :is(.post-meta,.post-body){color:var(--sh-card-muted)}
:where(.community-main,.home-preview) .community-rules .eyebrow{color:var(--sh-card-gold);margin-bottom:6px}
:where(.community-main,.home-preview) .community-rules p{color:var(--sh-card-muted);margin-bottom:0}
:where(.community-main,.home-preview) .community-rules .secondary{background:var(--panel2);color:var(--sh-card-gold);border-color:var(--sh-card-edge);flex-shrink:0}
:where(.community-main,.home-preview) .community-rules .secondary:hover{border-color:#c59b50;transform:translateY(-2px)}
@media(max-width:650px){
  :where(.community-main,.home-preview) .home-custom .hero-buttons :is(.primary,.secondary){padding:11px 15px;min-height:44px;max-width:100%;overflow-wrap:anywhere}
  :where(.community-main,.home-preview) .home-custom + .community-grid > .panel,
  :where(.community-main,.home-preview) .community-rules{padding:20px 18px}
}
@container (max-width:560px){.home-preview .home-custom .hero-buttons :is(.primary,.secondary){padding:9px 12px;min-height:40px;max-width:100%;overflow-wrap:anywhere}.home-preview .home-custom + .community-grid > .panel,.home-preview .community-rules{padding:16px}}
@media(prefers-reduced-motion:reduce){
  :where(.community-main,.home-preview) .home-custom .hero-buttons :is(.primary,.secondary):hover,
  :where(.community-main,.home-preview) .community-rules .secondary:hover{transform:none}
  :where(.community-main,.home-preview) .home-custom .hero-buttons :is(.primary,.secondary)::after{display:none}
}


/* SH Survival — integrated emblem / tight hero layout */
.home-custom:has(.home-logo-image){
  background:radial-gradient(ellipse at 78% 43%,#9c641b30 0%,#65431315 30%,transparent 64%),linear-gradient(135deg,#17120a,#050403 76%);
}
.home-custom .emblem-ring:has(.home-logo-image){
  background:none;border:0;box-shadow:none;border-radius:0;
  overflow:visible;container-type:normal;
  width:min(78%,var(--home-logo-size,285px));
}
.home-custom .emblem-ring .home-logo-image{
  display:block;width:100%;height:100%;object-fit:contain;
  transform:scale(1.28);transform-origin:center;
  filter:drop-shadow(0 5px 9px #0007) drop-shadow(0 0 calc(12px * var(--home-glow,.5)) color-mix(in srgb,var(--home-accent-color,#ffd45b) 23%,transparent));
}
@media(max-width:650px){
  .home-custom .emblem-ring:has(.home-logo-image){width:min(75%,var(--home-logo-size,285px));max-width:180px}
}
@container (max-width:560px){
  .home-preview .home-custom .emblem-ring:has(.home-logo-image){width:min(75%,var(--home-logo-size,285px));max-width:150px}
}

/* SH Survival — global brushed-metal typography */
:root{
  --text:#e6d6b7;--muted:#b8ab95;--accent:#f1c96d;
  --sh-metal-ink:#e6d6b7;--sh-metal-dim:#b8ab95;--sh-metal-gold:#f1c96d;
  --sh-metal-silver-gradient:linear-gradient(180deg,#fff7e7 0%,#e4d4b6 34%,#bda784 49%,#f7e8cb 59%,#cfb897 100%);
  --sh-metal-gold-gradient:linear-gradient(180deg,#fff0b4 0%,#f7d27f 35%,#c58b35 49%,#ffe4a1 58%,#d7a650 100%);
  --sh-metal-shadow:0 1px 0 #0009;
}
/* Hero and authentication artwork are dark even in light mode. */
:is(.community-hero,.auth-art,.hero){
  --sh-metal-ink:#e6d6b7;--sh-metal-dim:#c6b69b;--sh-metal-gold:#f1c96d;
  --sh-metal-silver-gradient:linear-gradient(180deg,#fff7e7 0%,#e4d4b6 34%,#bda784 49%,#f7e8cb 59%,#cfb897 100%);
  --sh-metal-gold-gradient:linear-gradient(180deg,#fff0b4 0%,#f7d27f 35%,#c58b35 49%,#ffe4a1 58%,#d7a650 100%);
  --sh-metal-shadow:0 1px 0 #0009;
  color:var(--sh-metal-ink);
}
body{color:var(--sh-metal-ink);text-shadow:var(--sh-metal-shadow)}
/* Small text and functional text retain a solid, high-contrast metallic tone. */
:is(p,li,td,summary,label,legend,output,pre,.post-body,.action-row,.status-line,.profile,.brand,.community-user){color:var(--sh-metal-ink)}
:is(small,.muted,.eyebrow,.nav-label,.version,.crumb,.tag,.stat-label,.panel-kicker,.stat-sub,.post-meta,.empty,.secure-note,.switch,.auth-foot,.auth-grid,.community-status,footer,th){color:var(--sh-metal-dim)}
:is(.hero-copy p,.auth-copy p,.hero p,.panel p,.page-head p,.community-hero .community-status,.connect-guide .connect-note){color:var(--sh-metal-dim)}
:is(a,.text-btn,.community-link,.card-icon,.community-status.online,.tag.accent,.home-editor-panel output,.connect-editor legend,.nav.active,.community-nav .selected,.community-nav #admin-entry,.quick button span){color:var(--sh-metal-gold)}
.community-hero .community-status.online{color:var(--sh-metal-gold)}
:where(.community-main,.home-preview) .home-custom + .community-grid :is(.post-meta,.post-body,.empty),:where(.community-main,.home-preview) .community-rules p{color:var(--sh-metal-dim)}
.connect-guide.connect-color-gold :is(.connect-steps,.connect-steps li,.connect-note){color:var(--sh-metal-gold)}
.connect-guide.connect-color-muted :is(.connect-steps,.connect-steps li,.connect-note){color:var(--sh-metal-dim)}
/* The buttons keep their existing brushed-metal surfaces. */
button,.home-link{color:var(--sh-metal-ink);text-shadow:var(--sh-metal-shadow)}
button:is(.primary),a.primary{color:var(--accent-text);text-shadow:0 1px 0 #fff4}
:where(.community-main,.home-preview) .home-custom .hero-buttons .primary{color:#291900;text-shadow:0 1px 0 #ffefaf99}
:where(.community-main,.home-preview) .home-custom .hero-buttons .secondary{color:#f3d49b;text-shadow:0 1px 0 #000b}
:is(input,textarea,select,option){color:var(--sh-metal-ink);caret-color:var(--sh-metal-gold);text-shadow:none}
input::placeholder,textarea::placeholder{color:var(--sh-metal-dim);opacity:1}
input::file-selector-button{color:#3b2608;background:linear-gradient(145deg,#f6e0a5,#d4aa5a);border:1px solid #c2a05e;border-radius:5px;padding:5px 8px;margin-right:8px;font:inherit}
:is(.error,.danger){color:var(--danger);text-shadow:none}
/* Full metallic reflections on titles, brand names, counters and post titles. */
:is(h1,h2,h3,h4,h5,h6,.stat-value,.post-title,.brand > div,.profile strong){color:var(--sh-metal-ink);--sh-current-metal:var(--sh-metal-silver-gradient)}
:is(.auth-copy h1 em,.hero-art,.emblem-ring span){color:var(--sh-metal-gold);--sh-current-metal:var(--sh-metal-gold-gradient)}
.home-custom .hero-copy h1{color:var(--home-title-color,#f6f0e1);--sh-current-metal:linear-gradient(180deg,color-mix(in srgb,var(--home-title-color,#f6f0e1) 70%,white),var(--home-title-color,#f6f0e1) 34%,color-mix(in srgb,var(--home-title-color,#f6f0e1) 73%,#8f7047) 49%,color-mix(in srgb,var(--home-title-color,#f6f0e1) 78%,white) 59%,var(--home-title-color,#f6f0e1))}
.home-custom .hero-copy h1 em,.home-custom .emblem-ring span{color:var(--home-accent-color,#ffd45b);--sh-current-metal:linear-gradient(180deg,color-mix(in srgb,var(--home-accent-color,#ffd45b) 65%,#fff6dc),var(--home-accent-color,#ffd45b) 34%,color-mix(in srgb,var(--home-accent-color,#ffd45b) 70%,#83551e) 49%,color-mix(in srgb,var(--home-accent-color,#ffd45b) 65%,#fff6dc) 59%,color-mix(in srgb,var(--home-accent-color,#ffd45b) 88%,#a36d24))}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
  :is(h1,h2,h3,h4,h5,h6,.stat-value,.post-title,.brand > div,.profile strong,.auth-copy h1 em,.hero-art,.emblem-ring span),
  .home-custom .hero-copy h1,.home-custom .hero-copy h1 em,.home-custom .emblem-ring span{
    background-image:var(--sh-current-metal,var(--sh-metal-silver-gradient));
    background-size:100% 1lh;background-repeat:repeat-y;background-position:0 0;
    -webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;
  }
  /* Keep child text from inheriting transparency. Inline highlights use their own gradient. */
  .brand > div small{color:var(--sh-metal-dim);text-shadow:var(--sh-metal-shadow)}
  .home-custom .hero-copy h1 em,.auth-copy h1 em,.home-custom .emblem-ring span{font-style:normal;filter:drop-shadow(0 2px 2px #0006)}
  :where(.community-main,.home-preview) .home-custom + .community-grid .section-head h2,
  :where(.community-main,.home-preview) .community-rules h2,
  :where(.community-main,.home-preview) .home-custom + .community-grid .post-title{color:transparent}
}
/* Respect OS high contrast and print; never force transparent text there. */
@media(forced-colors:active),print{
  :is(h1,h2,h3,h4,h5,h6,.stat-value,.post-title,.brand > div,.profile strong,.auth-copy h1 em,.hero-art,.emblem-ring span),
  .home-custom .hero-copy h1,.home-custom .hero-copy h1 em,.home-custom .emblem-ring span,
  :where(.community-main,.home-preview) .home-custom + .community-grid .section-head h2,
  :where(.community-main,.home-preview) .community-rules h2,
  :where(.community-main,.home-preview) .home-custom + .community-grid .post-title{background:none;color:CanvasText;filter:none;text-shadow:none}
}

/* SH Survival — unified brushed-metal buttons (all portal/admin/auth screens) */
:is(#community,#app,#auth,.home-preview) :is(button,a.home-link){
  position:relative;isolation:isolate;overflow:hidden;
  color:#f3d49b;border:1px solid #9d7639;border-radius:8px;
  background:repeating-linear-gradient(0deg,#fff7da05 0 1px,transparent 1px 4px),linear-gradient(135deg,#282116,#100e0a 58%,#21190d);
  box-shadow:inset 0 1px 0 #f5cf7b24,0 4px 12px #0005;
  text-shadow:0 1px 0 #000b;
  transition:transform .2s ease,box-shadow .25s ease,border-color .25s ease,filter .25s ease;
}
:is(#community,#app,#auth,.home-preview) :is(button.primary,a.home-link.primary){
  color:#291900;border-color:#edc572;
  background:repeating-linear-gradient(0deg,#ffffff08 0 1px,#5d37000a 1px 3px,transparent 3px 5px),linear-gradient(125deg,#ffecae 0%,#e8b648 38%,#bb7e20 58%,#f6d47e 100%);
  box-shadow:inset 0 1px 0 #fff4c3,inset 0 -2px 0 #86530d66,0 5px 14px #0008;
  text-shadow:0 1px 0 #ffefaf99;
}
:is(#community,#app,#auth,.home-preview) button.text-btn{padding:7px 10px;font-weight:750;line-height:1.45}
:is(#community,#app,#auth,.home-preview) :is(button,a.home-link)::after{
  content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;
  background:linear-gradient(115deg,transparent 20%,#fff4ce42 47%,transparent 75%);
  transform:translateX(-135%);transition:transform .65s ease;
}
:is(#community,#app,#auth,.home-preview) :is(button.selected,button.nav.active,button[aria-pressed=true]){
  color:#ffe4a1;border-color:#d6a448;
  box-shadow:inset 0 -2px #e6a724,inset 0 1px #f5cf7b33,0 3px 10px #0006;
}
/* Keep the brand lockup visually lightweight; it is also a home button. */
:is(#community,#app,#auth,.home-preview) button.brand{
  background:transparent;border-color:transparent;box-shadow:none;
}
@media(hover:hover){
  :is(#community,#app,#auth,.home-preview) :is(button:not(:disabled),a.home-link):hover{
    transform:translateY(-2px);border-color:#ffe2a1;filter:brightness(1.09);
    box-shadow:inset 0 1px 0 #fff1bd55,0 8px 18px #0009,0 0 12px #daa34126;
  }
  :is(#community,#app,#auth,.home-preview) :is(button:not(:disabled),a.home-link):hover::after{transform:translateX(135%)}
  :is(#community,#app,#auth,.home-preview) button.brand:hover{border-color:#9d763955;box-shadow:none}
}
:is(#community,#app,#auth,.home-preview) :is(button:not(:disabled),a.home-link):active{transform:translateY(1px);filter:brightness(.96)}
:is(#community,#app,#auth,.home-preview) :is(button,a.home-link):focus-visible{outline:2px solid #ffdb87;outline-offset:3px}
:is(#community,#app,#auth,.home-preview) :is(button,a.home-link):focus-visible::after{transform:translateX(135%)}
:is(#community,#app,#auth,.home-preview) button:disabled{opacity:.5;filter:none;transform:none;cursor:wait}
:is(#community,#app,#auth,.home-preview) button:disabled::after{display:none}
/* Native file picker buttons use a moving metallic background. */
:is(#app,#community,#auth) input::file-selector-button{
  color:#f3d49b;border:1px solid #9d7639;border-radius:6px;padding:6px 10px;
  background:linear-gradient(115deg,transparent 25%,#fff4ce42 48%,transparent 72%),linear-gradient(135deg,#282116,#100e0a 58%,#21190d);
  background-size:240% 100%,100% 100%;background-position:100% 0,0 0;
  transition:background-position .65s ease,border-color .25s ease;cursor:pointer;
}
@media(hover:hover){:is(#app,#community,#auth) input:not(:disabled)::file-selector-button:hover{background-position:0 0,0 0;border-color:#ffe2a1}}
@media(prefers-reduced-motion:reduce){
  :is(#community,#app,#auth,.home-preview) :is(button,a.home-link){transition:none!important;transform:none!important}
  :is(#community,#app,#auth,.home-preview) :is(button,a.home-link)::after{display:none}
  :is(#app,#community,#auth) input::file-selector-button{transition:none}
}
@media(forced-colors:active){
  :is(#community,#app,#auth,.home-preview) :is(button,a.home-link){background:ButtonFace;color:ButtonText;border:1px solid ButtonText;box-shadow:none;text-shadow:none;filter:none}
  :is(#community,#app,#auth,.home-preview) :is(button,a.home-link)::after{display:none}
}

/* Permanent black theme */
:root{color-scheme:dark;--bg:#000000;}
html,body{background-color:#000000;}
.theme-toggle{display:none!important;}

/* SH Survival — compact two-line live server status */
.server-status-list{display:grid;gap:5px;line-height:1.55;font-size:13px;margin:15px 0;color:var(--sh-metal-dim,#b8ab95)}
.server-status-list .server-status-row{display:flex;align-items:center;gap:6px;min-width:0}
.server-status-list .server-status-dot{width:5px;height:5px;flex:0 0 5px;border-radius:50%;background:#e6a724;display:inline-block;box-shadow:none}
.server-status-list.online,.community-hero .server-status-list.online{color:var(--sh-metal-gold,#f1c96d)}

/* SH live in-game clock */
.sh-time-icon{display:inline-block;width:17px;height:17px;vertical-align:-4px;margin:0 3px 0 1px;overflow:visible}
.sh-sun{color:#efbc45;filter:drop-shadow(0 0 3px #e6a72455)}
.sh-moon{color:#d6dce4;filter:drop-shadow(0 0 3px #cbd5e144)}


/* SH Survival — metallic hero lettering, including editable introduction. */
.home-custom .hero-copy h1 {
  --sh-hero-ink:var(--home-title-color,#f6f0e1);
  color:var(--sh-hero-ink);
}
.home-custom .hero-copy h1 em {
  --sh-hero-ink:var(--home-accent-color,#ffd45b);
  color:var(--sh-hero-ink);
}
.home-custom .hero-copy p {
  color:#e2b967;
  font-weight:550;
  line-height:1.6;
}
.home-custom .hero-copy .eyebrow {color:#dfbe80;}
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
  .home-custom .hero-copy h1,
  .home-custom .hero-copy h1 em {
    background-image:
      repeating-linear-gradient(0deg,#ffffff0c 0 1px,#00000010 1px 2px,transparent 2px 4px),
      linear-gradient(180deg,
        color-mix(in srgb,var(--sh-hero-ink) 45%,#fff8e8) 0%,
        color-mix(in srgb,var(--sh-hero-ink) 85%,#fff4ca) 20%,
        color-mix(in srgb,var(--sh-hero-ink) 69%,#6d480e) 44%,
        color-mix(in srgb,var(--sh-hero-ink) 65%,#422b0e) 48%,
        color-mix(in srgb,var(--sh-hero-ink) 48%,#fff5c9) 51%,
        color-mix(in srgb,var(--sh-hero-ink) 74%,#fff5c9) 65%,
        color-mix(in srgb,var(--sh-hero-ink) 85%,#805510) 88%,
        color-mix(in srgb,var(--sh-hero-ink) 60%,#fff1bc) 100%);
    background-size:100% 4px,100% 1lh;
    background-repeat:repeat,repeat-y;
    background-position:0 0;
    -webkit-background-clip:text;background-clip:text;
    color:transparent;-webkit-text-fill-color:transparent;
    text-shadow:none;filter:drop-shadow(0 2px 1px #0008);
  }
  .home-custom .hero-copy p {
    background-image:linear-gradient(180deg,#fff1ca 0%,#e5c17e 35%,#c79b4c 48%,#f9dda2 60%,#d6ae65 100%);
    background-size:100% 1lh;background-repeat:repeat-y;
    -webkit-background-clip:text;background-clip:text;
    color:transparent;-webkit-text-fill-color:transparent;text-shadow:none;
  }
  .home-custom .hero-copy .eyebrow {
    background-image:linear-gradient(180deg,#ffebbb,#c69b50 48%,#f5d69a 62%,#d5ac64);
    background-size:100% 1lh;background-repeat:repeat-y;
    -webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;
  }
}
@media(forced-colors:active),print {
  .home-custom .hero-copy :is(h1,h1 em,p,.eyebrow) {
    background:none;color:CanvasText;-webkit-text-fill-color:currentColor;filter:none;text-shadow:none;
  }
}


/* SH Survival — polished silver / 24K gold hero title */
.home-custom .hero-copy h1{color:#dce0e4;}
.home-custom .hero-copy h1 em{color:#e6a724;font-style:normal;}
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
  .home-custom .hero-copy h1 {
    /* Fine irregular brushing, oblique reflected light, and cool silver face. */
    background-image:
      repeating-linear-gradient(112deg, #ffffff14 0 .6px, transparent .6px 2.1px, #00000012 2.1px 2.8px, transparent 2.8px 5.2px),
      linear-gradient(115deg,#151e2a28 0%,transparent 14%,#ffffff45 29%,transparent 40%,#2c344332 56%,#ffffff35 71%,transparent 83%,#10182825 100%),
      linear-gradient(180deg,#727e89 0%,#e1e7ed 9%,#ffffff 18%,#cbd2d9 31%,#9aa4ae 41%,#79848f 46%,#e0e6ec 51%,#fafcfe 57%,#b7c0c9 72%,#8a949e 86%,#e2e8ed 96%,#f7f9fb 100%);
    background-size:auto,100% 100%,100% 1lh;
    background-repeat:repeat,no-repeat,repeat-y;
    background-position:center,center,0 0;
    -webkit-background-clip:text;background-clip:text;
    color:transparent;-webkit-text-fill-color:transparent;
    -webkit-text-stroke:.35px #e6edf340;
    text-shadow:none;filter:drop-shadow(0 1px 0 #424b55) drop-shadow(0 3px 1px #000a);
  }
  .home-custom .hero-copy h1 em {
    /* The deep amber, bright yellow highlights and darker facets of 24K gold. */
    background-image:
      repeating-linear-gradient(112deg,#fff2b51c 0 .55px,transparent .55px 1.9px,#5b30001b 1.9px 2.65px,transparent 2.65px 5.5px),
      linear-gradient(116deg,#5227002c 0%,transparent 12%,#fff4b15c 28%,transparent 42%,#6a33003c 57%,#fff1a345 75%,transparent 89%,#5b290025 100%),
      linear-gradient(180deg,#875007 0%,#e6a724 9%,#ffedaa 18%,#ffd45b 28%,#c68a16 39%,#a16508 46%,#edaf29 50%,#fff1a8 56%,#f7ce5a 66%,#d59316 78%,#986009 89%,#eeb23c 96%,#ffe6a0 100%);
    background-size:auto,100% 100%,100% 1lh;
    background-repeat:repeat,no-repeat,repeat-y;
    background-position:center,center,0 0;
    -webkit-background-clip:text;background-clip:text;
    color:transparent;-webkit-text-fill-color:transparent;
    -webkit-text-stroke:.35px #ffd77b55;
    text-shadow:none;filter:none;
    -webkit-box-decoration-break:clone;box-decoration-break:clone;
  }
}
@media(forced-colors:active),print {
  .home-custom .hero-copy h1,.home-custom .hero-copy h1 em{
    background:none;color:CanvasText;-webkit-text-fill-color:currentColor;
    -webkit-text-stroke:0;filter:none;text-shadow:none;
  }
}


/* SH Survival — Rules dialog: CSP-compatible external CSS */

#steam-rules-dialog.steam-rules-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(760px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);max-height:min(880px,calc(100dvh - 32px));padding:0;border:1px solid #9a7838;border-radius:18px;background:linear-gradient(155deg,#1d180f 0%,#10100f 35%,#080808 100%);box-shadow:0 30px 90px #000c,0 0 36px #e0ac3518,inset 0 1px 0 #ffe9a42e;color:#f5efdf;font-family:inherit;overflow:hidden;color-scheme:dark}
#steam-rules-dialog[open]{animation:shRulesEnter .22s ease-out both}
#steam-rules-dialog::backdrop{background:rgba(0,0,0,.80);backdrop-filter:blur(8px)}
@keyframes shRulesEnter{from{opacity:0;transform:translateY(9px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}
#steam-rules-dialog *,#steam-rules-dialog *::before,#steam-rules-dialog *::after{box-sizing:border-box}
#steam-rules-dialog .steam-dialog-content.clean{display:flex;flex-direction:column;gap:0;padding:0;max-height:min(878px,calc(100dvh - 34px));min-height:0}
#steam-rules-dialog .steam-dialog-header{flex:none;padding:25px 28px 19px;border-bottom:1px solid #b28c3838;background:linear-gradient(110deg,#e8b9500c,transparent 70%)}
#steam-rules-dialog .eyebrow{margin:0 0 9px;font-size:11px;letter-spacing:.20em;font-weight:800;color:#d5af5f}
#steam-rules-dialog h2{margin:0;font-size:26px;line-height:1.25;letter-spacing:-.035em;font-weight:800;color:#ffedbd}
#steam-rules-dialog .steam-dialog-lead{margin:10px 0 0;color:#c6bda7;font-size:14px;line-height:1.7;word-break:keep-all}
#steam-rules-dialog .steam-dialog-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:21px 28px;scrollbar-width:thin;scrollbar-color:#97713a #161410}
#steam-rules-dialog .steam-dialog-scroll::-webkit-scrollbar{width:7px}
#steam-rules-dialog .steam-dialog-scroll::-webkit-scrollbar-track{background:#161410}
#steam-rules-dialog .steam-dialog-scroll::-webkit-scrollbar-thumb{background:#97713a;border-radius:8px}
#steam-rules-dialog .steam-rules-frame{display:flex;flex-direction:column;gap:18px;padding:0;border:0;background:none;min-width:0}
#steam-rules-dialog .steam-rules-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
#steam-rules-dialog .steam-rules-section{min-width:0;border:1px solid #cda4532b;border-radius:13px;padding:17px;background:#ffffff03}
#steam-rules-dialog .steam-rules-section h3{display:flex;align-items:center;gap:9px;margin:0 0 13px;font-size:16px;line-height:1.4;font-weight:800;color:#f2cd7a;letter-spacing:-.02em}
#steam-rules-dialog .steam-rules-section h3::before{content:'';width:3px;height:16px;border-radius:2px;background:linear-gradient(#ffe8a5,#a47120)}
#steam-rules-dialog .steam-rule-list{display:grid;grid-template-columns:1fr;gap:7px}
#steam-rules-dialog .steam-rule-card{display:grid;grid-template-columns:29px minmax(0,1fr);align-items:center;gap:11px;border:1px solid #d2ac5424;border-radius:9px;padding:10px 12px;background:linear-gradient(115deg,#cda4530b,#ffffff02)}
#steam-rules-dialog .rule-num{display:flex;align-items:center;justify-content:center;width:29px;height:29px;border:1px solid #b78b41;border-radius:7px;background:linear-gradient(145deg,#fff0ba,#d5a13b 55%,#98631b);color:#271804;font-size:13px;font-weight:900;box-shadow:inset 0 1px 0 #fff5ca99}
#steam-rules-dialog .steam-rule-card strong{display:block;font-size:15px;line-height:1.6;color:#f3e8cf;font-weight:700;overflow-wrap:anywhere;word-break:keep-all}
#steam-rules-dialog .steam-rule-card p{margin:4px 0 0;color:#c8c0ae;font-size:14px;line-height:1.8;overflow-wrap:anywhere;word-break:keep-all}
#steam-rules-dialog .steam-enforcement-list{display:grid;gap:9px;margin:0;padding-left:19px}
#steam-rules-dialog .steam-enforcement-list li{font-size:14px;line-height:1.8;color:#dbd2bf;word-break:keep-all;overflow-wrap:anywhere;padding-left:2px}
#steam-rules-dialog .steam-enforcement-list li::marker{color:#c39a4a}
#steam-rules-dialog .steam-consent-note{margin:0;padding:14px 15px;border:1px solid #cda45355;border-left:3px solid #d7b363;border-radius:9px;background:#b58b3410;color:#f2dba4;font-size:14px;line-height:1.8;font-weight:600;word-break:keep-all;overflow-wrap:anywhere}
#steam-rules-dialog .steam-dialog-footer{flex:none;min-width:0;padding:16px 28px 19px;border-top:1px solid #b28c384d;background:linear-gradient(#16130f,#100e0b)}
#steam-rules-dialog .steam-dialog-actions.clean{display:flex;justify-content:center;align-items:stretch;gap:9px;flex-wrap:nowrap;margin:0}
#steam-rules-dialog .steam-dialog-actions button,#steam-rules-dialog [data-steam-fallback]{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;justify-content:center;align-items:center;gap:9px;margin:0;min-width:0;min-height:46px;width:auto;padding:10px 17px;border-radius:10px;font-family:inherit;font-size:14px;font-weight:800;line-height:1.35;white-space:nowrap;text-align:center;text-decoration:none;letter-spacing:0;transform:none;transition:filter .18s,border-color .18s,box-shadow .18s}
#steam-rules-dialog [data-join-cancel]{flex:0 1 100px;border:1px solid #64563b;background:#211e18;color:#e2d7bf;box-shadow:none;cursor:pointer}
#steam-rules-dialog [data-join-cancel]:hover{border-color:#cda453;background:#30291c}
#steam-rules-dialog .steam-consent-toggle,#steam-rules-dialog [data-join-confirm]{flex:1 1 0;max-width:240px}
#steam-rules-dialog .steam-consent-toggle,#steam-rules-dialog [data-join-confirm]:not(:disabled),#steam-rules-dialog [data-steam-fallback]{border:1px solid #e7c36e!important;background:linear-gradient(115deg,#98631c 0%,#e1b85a 27%,#fff0b8 48%,#ddb052 68%,#95601a 100%)!important;color:#241604!important;box-shadow:inset 0 1px 0 #fff4c6c0,0 4px 15px #b98b2926;cursor:pointer}
#steam-rules-dialog .steam-consent-toggle.active{background:#302617!important;border-color:#bd9851!important;color:#f3d28a!important;box-shadow:inset 0 0 0 1px #e4bb5630}
#steam-rules-dialog .steam-consent-toggle.active::before{content:'✓';font-weight:900}
#steam-rules-dialog .steam-consent-toggle:not(.active)::after,#steam-rules-dialog [data-join-confirm]:not(:disabled)::after{content:'';position:absolute;inset:-40% auto -40% -65%;width:38%;transform:skewX(-24deg);background:linear-gradient(90deg,transparent,#fff9,transparent);pointer-events:none;transition:left .6s ease}
#steam-rules-dialog .steam-consent-toggle:not(.active):hover::after,#steam-rules-dialog [data-join-confirm]:not(:disabled):hover::after{left:130%}
#steam-rules-dialog button:focus-visible,#steam-rules-dialog a:focus-visible,#steam-rules-dialog .steam-dialog-scroll:focus-visible{outline:2px solid #ffe09b;outline-offset:3px}
#steam-rules-dialog [data-join-confirm]:disabled{border:1px solid #625331!important;background:#28241c!important;color:#a69b85!important;box-shadow:none!important;opacity:1;cursor:not-allowed}
#steam-rules-dialog .steam-join-icon{width:18px;height:18px;flex:0 0 18px;color:inherit;fill:currentColor;filter:none}
#steam-rules-dialog [data-join-result]{margin:9px 0 0;min-height:0;text-align:center;color:#e1bd75;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
#steam-rules-dialog [data-join-result]:empty{display:none}
#steam-rules-dialog [data-steam-fallback]{display:flex;margin:10px auto 0;width:fit-content;max-width:100%}
#steam-rules-dialog [data-steam-fallback][hidden]{display:none!important}
@media(max-width:540px){#steam-rules-dialog.steam-rules-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);border-radius:15px}#steam-rules-dialog .steam-dialog-header{padding:19px 17px 15px}#steam-rules-dialog h2{font-size:23px}#steam-rules-dialog .steam-dialog-lead{font-size:13px}#steam-rules-dialog .steam-dialog-scroll{padding:15px 17px}#steam-rules-dialog .steam-rules-section{padding:13px}#steam-rules-dialog .steam-rule-card{padding:9px 10px}#steam-rules-dialog .steam-rule-card strong{font-size:14px}#steam-rules-dialog .steam-dialog-footer{padding:13px 17px 15px}#steam-rules-dialog .steam-dialog-actions.clean{display:grid;grid-template-columns:1fr 1fr;gap:8px}#steam-rules-dialog .steam-dialog-actions button{width:100%;max-width:none;padding:10px 8px;font-size:13px}#steam-rules-dialog [data-join-cancel]{grid-column:1/-1;grid-row:2;min-height:39px}}
@media(prefers-reduced-motion:reduce){#steam-rules-dialog[open]{animation:none}#steam-rules-dialog *,#steam-rules-dialog *::after{transition:none!important;animation:none!important}}

/* Keep modal controls independent from global site buttons and footer. */
#steam-rules-dialog .steam-dialog-footer{display:block;margin:0;letter-spacing:normal;line-height:1.5}
#steam-rules-dialog .steam-dialog-actions button span{display:inline-block;width:auto;min-width:0;white-space:nowrap;word-break:keep-all}
#steam-rules-dialog .steam-dialog-actions button svg{flex-shrink:0}
#steam-rules-dialog .steam-rule-card strong{font-weight:600;line-height:1.8}
#steam-rules-dialog .steam-dialog-scroll{outline-offset:-3px}
@media(max-width:540px){#steam-rules-dialog .steam-dialog-content.clean{max-height:calc(100dvh - 22px)}}
@media(max-height:480px){#steam-rules-dialog .steam-dialog-header{padding-block:10px}#steam-rules-dialog .steam-dialog-lead{margin-top:5px;line-height:1.4}#steam-rules-dialog .steam-dialog-footer{padding-block:8px}#steam-rules-dialog .steam-dialog-actions button{min-height:36px}}

/* SH Survival — fit the longest rule; compact height without hiding content. */
#steam-rules-dialog .steam-dialog-header{padding:16px 22px 12px}
#steam-rules-dialog .eyebrow{margin-bottom:5px}
#steam-rules-dialog h2{font-size:25px}
#steam-rules-dialog .steam-dialog-lead{margin-top:6px;font-size:13px;line-height:1.5}
#steam-rules-dialog .steam-dialog-scroll{padding:12px 15px;overflow-y:auto}
#steam-rules-dialog .steam-rules-frame,#steam-rules-dialog .steam-rules-grid{gap:10px}
#steam-rules-dialog .steam-rules-section{padding:10px}
#steam-rules-dialog .steam-rules-section h3{margin-bottom:8px;font-size:15px}
#steam-rules-dialog .steam-rule-list{gap:5px}
#steam-rules-dialog .steam-rule-card{grid-template-columns:25px minmax(0,1fr);gap:8px;padding:5px 8px}
#steam-rules-dialog .rule-num{width:25px;height:25px;font-size:11px}
#steam-rules-dialog .steam-rule-card strong{font-size:12px;line-height:1.6;font-weight:600;letter-spacing:-.035em}
#steam-rules-dialog .steam-enforcement-list{gap:4px;padding-left:17px}
#steam-rules-dialog .steam-enforcement-list li{font-size:13px;line-height:1.55}
#steam-rules-dialog .steam-consent-note{padding:8px 10px;font-size:12px;line-height:1.5}
#steam-rules-dialog .steam-dialog-footer{padding:11px 18px 12px}
#steam-rules-dialog .steam-dialog-actions button{min-height:42px;padding-block:8px}
#steam-rules-dialog [data-join-result]{margin-top:5px}
@media(min-width:760px){
  #steam-rules-dialog.steam-rules-dialog{width:max-content;max-width:calc(100vw - 32px)}
  #steam-rules-dialog .steam-rules-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:540px){
  #steam-rules-dialog .steam-dialog-header{padding:14px 15px 10px}
  #steam-rules-dialog .steam-dialog-scroll{padding:10px 12px}
  #steam-rules-dialog .steam-dialog-footer{padding:10px 12px}
  #steam-rules-dialog .steam-rule-card strong{font-size:13px;letter-spacing:0}
}
@media(min-width:760px){
  #steam-rules-dialog .steam-dialog-header{padding-block:13px 10px}
  #steam-rules-dialog .steam-dialog-scroll{padding-block:10px}
  #steam-rules-dialog .steam-rule-card{padding-block:4px}
  #steam-rules-dialog .steam-rules-section{padding-block:9px}
  #steam-rules-dialog .steam-enforcement-list{gap:3px}
  #steam-rules-dialog .steam-dialog-footer{padding-block:10px}
}


/* SH Survival — 15px rule text, text-only cards and hidden scrollbars. */
#steam-rules-dialog .steam-rule-list{gap:7px}
#steam-rules-dialog .steam-rule-card{grid-template-columns:minmax(0,1fr);gap:0;padding:5px 10px}
#steam-rules-dialog .steam-rule-card strong{font-size:15px;line-height:1.55;letter-spacing:-.035em}
#steam-rules-dialog .steam-dialog-scroll{overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
#steam-rules-dialog .steam-dialog-scroll::-webkit-scrollbar{display:none;width:0;height:0}
@media(max-width:759px){
  #steam-rules-dialog.steam-rules-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px)}
  #steam-rules-dialog .steam-rule-card strong{font-size:15px;letter-spacing:-.02em}
}


/* SH Survival — engraved 24K gold ingot article numbers. */
#steam-rules-dialog .steam-rule-card{grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center}
#steam-rules-dialog .rule-ingot{position:relative;isolation:isolate;display:grid;place-items:center;width:36px;height:28px;flex:none;align-self:center;border-radius:5px;background:linear-gradient(180deg,#a16c19 0%,#5d3507 85%,#dfaa43 100%);box-shadow:0 2px 4px #0009,0 0 6px #e6b14a24;clip-path:polygon(12% 0,88% 0,100% 19%,100% 85%,90% 100%,10% 100%,0 85%,0 19%)}
#steam-rules-dialog .rule-ingot::before{content:'';position:absolute;z-index:-1;inset:0 0 4px;border:1px solid #f4d17e;border-radius:5px;background:linear-gradient(142deg,#fff2b5 0%,#e8b94d 19%,#ad7217 33%,#eec460 52%,#ffea9b 64%,#ba7d22 85%,#f2c65c 100%);box-shadow:inset 0 1px 1px #fff9d6,inset 1px 0 1px #fbe9ad,inset -1px -2px 2px #82500c}
#steam-rules-dialog .rule-ingot::after{content:'';position:absolute;z-index:-1;inset:3px 4px 7px;border:1px solid #80500b55;border-top-color:#fff0b5aa;border-left-color:#ffe3a077;border-radius:3px;background:repeating-linear-gradient(125deg,transparent 0 5px,#fff4c00d 5px 6px,transparent 6px 9px)}
#steam-rules-dialog .rule-ingot span{display:block;margin-bottom:4px;color:#573006;font:900 17px/1 'Segoe UI',Arial,sans-serif;letter-spacing:-.04em;text-shadow:0 1px 0 #ffebaa,0 -1px 0 #301800;user-select:none}
@media(max-width:540px){#steam-rules-dialog .steam-rule-card{grid-template-columns:36px minmax(0,1fr);gap:9px}}

/* SH Survival — Steam join button on the server connection page only. */
#community-content .steam-join-wrap{display:flex;align-items:center;justify-content:flex-start;min-width:0;margin:16px 0 20px}
#community-content button[data-steam-join]{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:none;width:240px;max-width:100%;min-width:0;height:44px;min-height:44px;padding:0 16px;margin:0;border:1px solid #e7c36e!important;border-radius:10px;background:linear-gradient(115deg,#98631c 0%,#e1b85a 27%,#fff0b8 48%,#ddb052 68%,#95601a 100%)!important;color:#241604!important;box-shadow:inset 0 1px 0 #fff4c6c0,0 4px 15px #b98b2926;overflow:hidden;white-space:nowrap;word-break:keep-all;font-family:inherit;font-size:14px;font-weight:800;line-height:1.35;letter-spacing:0;text-align:center;text-shadow:none;cursor:pointer;transition:filter .18s,border-color .18s,box-shadow .18s}
#community-content button[data-steam-join] span{display:inline-block;flex:0 0 auto;width:auto;min-width:0;white-space:nowrap;word-break:keep-all;color:inherit;background:none;text-shadow:none;filter:none}
#community-content button[data-steam-join] .steam-join-icon{display:block;flex:0 0 18px;width:18px;height:18px;color:inherit;fill:currentColor;filter:none}
#community-content button[data-steam-join]::before{content:none}
#community-content button[data-steam-join]::after{content:'';position:absolute;inset:-40% auto -40% -65%;width:38%;transform:skewX(-24deg);background:linear-gradient(90deg,transparent,#fff9,transparent);pointer-events:none;transition:left .6s ease}
#community-content button[data-steam-join]:not(:disabled):hover{filter:brightness(1.08);box-shadow:inset 0 1px 0 #fff4c6c0,0 6px 18px #d9a43b44}
#community-content button[data-steam-join]:not(:disabled):hover::after{left:130%}
#community-content button[data-steam-join]:disabled{background:#28241c!important;color:#a69b85!important;border-color:#625331!important;box-shadow:none!important;filter:none;opacity:1;cursor:not-allowed}
#community-content button[data-steam-join]:disabled::after{content:none}
#community-content button[data-steam-join]:focus-visible{outline:2px solid #ffe09b;outline-offset:3px}
@media(prefers-reduced-motion:reduce){#community-content button[data-steam-join],#community-content button[data-steam-join]::after{transition:none!important}}

/* Preserve the administrator’s connection guide as plain text. */
.connect-guide .connect-steps.connect-plain-text{white-space:pre-wrap;padding-left:0;overflow-wrap:anywhere;word-break:normal;list-style:none;margin:0;line-height:2.1}


/* SH Survival: public selection lock; administrator and editing fields are exempt. */
html:not(.sh-selection-admin) body,
html:not(.sh-selection-admin) body * {
  -webkit-user-select: none !important;
  user-select: none !important;
}
html:not(.sh-selection-admin) body :is(input,textarea,select,[contenteditable]:not([contenteditable="false"])),
html:not(.sh-selection-admin) body [contenteditable]:not([contenteditable="false"]) * {
  -webkit-user-select: text !important;
  user-select: text !important;
}
html:not(.sh-selection-admin) body img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
html:not(.sh-selection-admin) body {
  -webkit-touch-callout: none;
}
html:not(.sh-selection-admin) body :is(input,textarea,select,[contenteditable]:not([contenteditable="false"])) {
  -webkit-touch-callout: default;
}
