/* ZGarZ Sayfam collection, all 17 palettes share accessible profile controls. */
.theme-aurora{--zg-bg:#071c24;--zg-glow:#173c45;--zg-accent:#69efc7;--zg-text:#e1f7ef;--zg-card:#102c34;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
.theme-obsidian{--zg-bg:#0c0e13;--zg-glow:#332b1b;--zg-accent:#f4cf78;--zg-text:#f4efe4;--zg-card:#1a1b20;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
.theme-crystal{--zg-bg:#0a192b;--zg-glow:#214567;--zg-accent:#92dcff;--zg-text:#e6f5ff;--zg-card:#142d46;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
.theme-cosmos{--zg-bg:#140c29;--zg-glow:#432465;--zg-accent:#cf9dff;--zg-text:#f1e8ff;--zg-card:#25163c;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
.theme-ember{--zg-bg:#25100d;--zg-glow:#583023;--zg-accent:#ffb084;--zg-text:#fff0e6;--zg-card:#391b16;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
.theme-pearl{--zg-bg:#f0f4fb;--zg-glow:#d6e2f0;--zg-accent:#315589;--zg-text:#172b48;--zg-card:#ffffff;--zg-btn-text:#ffffff;--zg-line:rgba(30,50,80,.16);--zg-muted:#5c657c}
.theme-glass{--zg-bg:#0c1c30;--zg-glow:#2b4a61;--zg-accent:#8ad8fb;--zg-text:#edf9ff;--zg-card:#172f44;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
.theme-cyberpunk{--zg-bg:#110d25;--zg-glow:#421539;--zg-accent:#55f1eb;--zg-text:#f1ecff;--zg-card:#211833;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
.theme-retro{--zg-bg:#1b1032;--zg-glow:#682345;--zg-accent:#ff99d3;--zg-text:#ffeafa;--zg-card:#2e1849;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
.theme-minimal{--zg-bg:#f4f5f7;--zg-glow:#e0e4ec;--zg-accent:#334155;--zg-text:#172033;--zg-card:#ffffff;--zg-btn-text:#ffffff;--zg-line:rgba(30,50,80,.16);--zg-muted:#5c657c}
.theme-hacker{--zg-bg:#07110b;--zg-glow:#123722;--zg-accent:#93ef99;--zg-text:#d8ffe0;--zg-card:#101e16;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
.theme-sunset{--zg-bg:#29151a;--zg-glow:#713e36;--zg-accent:#ffc099;--zg-text:#fff1e9;--zg-card:#412228;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
.theme-matrix{--zg-bg:#050f0d;--zg-glow:#164e3b;--zg-accent:#50e8a6;--zg-text:#dffff1;--zg-card:#0c251d;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
.theme-ocean{--zg-bg:#071c30;--zg-glow:#145875;--zg-accent:#76e1f5;--zg-text:#e1f8ff;--zg-card:#10384c;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
.theme-candy{--zg-bg:#fff0f7;--zg-glow:#e8d6f7;--zg-accent:#9d3f80;--zg-text:#472b53;--zg-card:#fffafd;--zg-btn-text:#ffffff;--zg-line:rgba(30,50,80,.16);--zg-muted:#5c657c}
.theme-gothic{--zg-bg:#170b13;--zg-glow:#472135;--zg-accent:#ef91b1;--zg-text:#fae4ed;--zg-card:#28101f;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
.theme-space{--zg-bg:#090f24;--zg-glow:#293868;--zg-accent:#f5d58c;--zg-text:#eaf0ff;--zg-card:#16213f;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}

body.zg-sayfam{--zg-bg:#ffffff;--zg-glow:transparent;--zg-accent:#365bc9;--zg-text:#1f2f49;--zg-card:#ffffff;--zg-btn-text:#ffffff;--zg-line:#e1e7f0;--zg-muted:#6b7b93;margin:0!important;padding:26px 14px 50px!important;min-height:100vh;box-sizing:border-box;background:radial-gradient(ellipse at 10% 0%,var(--zg-glow),transparent 60%),radial-gradient(ellipse at 90% 85%,var(--zg-glow),transparent 55%),var(--zg-bg)!important;color:var(--zg-text)!important;font-family:Arial,Helvetica,sans-serif!important;background-attachment:fixed!important}
body.zg-sayfam:before{display:none!important}
.zg-profile-header{max-width:850px;margin:0 auto 20px;padding:24px 28px;border:1px solid var(--zg-line);border-radius:22px;background:var(--zg-card);box-shadow:0 12px 50px #0002;display:flex;gap:20px;justify-content:space-between;align-items:center;box-sizing:border-box}
.zg-profile-eyebrow{font-size:11px;letter-spacing:3px;color:var(--zg-muted);margin-bottom:8px}
.zg-profile-header h1{margin:0!important;font:700 27px Arial!important;color:var(--zg-text)!important;text-shadow:none!important}
.zg-profile-header small{display:block;margin-top:8px;color:var(--zg-muted)}
.zg-profile-header nav{display:flex;gap:10px;flex-wrap:wrap}
body.zg-sayfam a{color:var(--zg-accent)!important;text-decoration:none!important}body.zg-sayfam a:hover{text-decoration:underline!important}
.zg-profile-header nav a{padding:10px 14px;border:1px solid var(--zg-line);border-radius:10px;font-size:13px}
.zg-profile-shell{max-width:850px;margin:auto;padding:22px 24px;background:var(--zg-card);border:1px solid var(--zg-line);border-radius:22px;box-shadow:0 20px 65px #0002;box-sizing:border-box}
body.zg-sayfam .zg-profile-shell p,body.zg-sayfam .zg-profile-shell span,body.zg-sayfam .zg-profile-shell div,body.zg-sayfam .zg-profile-shell td,body.zg-sayfam .zg-profile-shell h2,body.zg-sayfam .zg-profile-shell h3{color:var(--zg-text)!important}
body.zg-sayfam button,body.zg-sayfam input[type=submit],body.zg-sayfam input[type=button]{background:var(--zg-accent)!important;color:var(--zg-btn-text)!important;border:0!important;border-radius:9px!important;padding:9px 13px!important;font:600 12px Arial!important;cursor:pointer;box-shadow:none!important;max-width:100%;white-space:normal}
body.zg-sayfam button:disabled{opacity:.5;cursor:not-allowed}
body.zg-sayfam input:not([type=button]):not([type=submit]):not([type=hidden]),body.zg-sayfam textarea,body.zg-sayfam select{background:var(--zg-bg)!important;color:var(--zg-text)!important;border:1px solid var(--zg-line)!important;border-radius:8px!important;padding:9px 10px!important;box-sizing:border-box;max-width:100%;font:13px Arial!important}
body.zg-sayfam input::placeholder,body.zg-sayfam textarea::placeholder{color:var(--zg-muted)!important;opacity:1}
body.zg-sayfam .div_rekor{background:var(--zg-bg)!important;border:1px solid var(--zg-line)!important;border-radius:18px!important;padding:20px!important;margin:22px auto!important;box-shadow:none!important;font:20px Arial!important;max-width:100%;box-sizing:border-box}
body.zg-sayfam .div_rekor img{width:76px!important;height:76px!important;object-fit:contain}
body.zg-sayfam #nameTable,body.zg-sayfam #nameTable td,body.zg-sayfam #nameTable th{background:var(--zg-bg)!important;border:0!important;color:var(--zg-text)!important;padding:9px!important}
body.zg-sayfam .zg-profile-shell div[style*="background-color:#CDE"]{background:var(--zg-bg)!important;border-radius:12px;padding:14px!important}
body.zg-sayfam .hof-row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:10px}
body.zg-sayfam .win-vis-big-btn{background:var(--zg-accent)!important;color:var(--zg-btn-text)!important;max-width:100%}
body.zg-sayfam .win-vis-panel{background:var(--zg-card)!important;color:var(--zg-text)!important}
body.zg-sayfam .win-vis-panel *{color:var(--zg-text)!important}
body.zg-sayfam .win-vis-panel button{color:var(--zg-btn-text)!important}
.zg-theme-store17{margin:0;background:#0b1020;color:#edf2ff;font:15px Arial,Helvetica,sans-serif;padding:35px 20px 60px}
.zg-theme-store17 main{max-width:1150px;margin:auto}.zg-theme-store17 header{max-width:1150px;margin:0 auto 28px}.zg-theme-store17 header h1{font-size:38px;margin:24px 0 12px}.zg-theme-store17 p{color:#b5bfd5;line-height:1.6}.zg-theme-store17 a{color:#a9caff;text-decoration:none}.zg-theme-store17 nav{display:flex;gap:22px}
.zg-theme-grid17{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.zg-theme-card17{background:#151d31;border:1px solid #ffffff1c;border-radius:18px;overflow:hidden}.zg-theme-card17.selected{border-color:#adcfff;box-shadow:0 0 0 2px #adcfff44}.zg-theme-card17 h2{font-size:19px;margin:16px 18px 8px}.zg-theme-card17 p{font-size:13px;margin:0 18px 16px;min-height:40px}.zg-theme-card17 footer{padding:0 18px 18px;display:flex;justify-content:space-between;gap:12px;align-items:center}.zg-theme-card17 button,.zg-theme-save17{border:0;border-radius:9px;background:#b4d1ff;color:#152442;padding:11px 16px;font-weight:bold;cursor:pointer}.zg-theme-card17 button:disabled{opacity:.6}.zg-theme-save17:disabled{opacity:.5;cursor:not-allowed}.zg-theme-swatch{background:radial-gradient(ellipse at 5% 0%,var(--zg-glow),transparent 70%),var(--zg-bg);color:var(--zg-text);height:176px;padding:18px;box-sizing:border-box}.zg-mini17{background:var(--zg-card);border:1px solid var(--zg-line);border-radius:12px;padding:12px}.zg-mini17 strong{font-size:11px;letter-spacing:2px}.zg-mini17 .zg-mini-avatar17{background:var(--zg-accent);color:var(--zg-btn-text);width:35px;height:35px;border-radius:50%;display:grid;place-items:center;margin:12px auto 9px;font-weight:bold}.zg-mini17 div:last-child{display:flex;gap:7px;justify-content:center;font-size:10px}.zg-mini17 span{padding:5px 9px;border:1px solid var(--zg-line);border-radius:5px}.zg-theme-savebar17{position:sticky;bottom:12px;margin-top:25px;border:1px solid #ffffff2a;background:#19253dee;border-radius:16px;padding:16px;display:flex;gap:16px;align-items:center;justify-content:space-between;box-shadow:0 10px 35px #0005}.zg-theme-savebar17 select{padding:9px;max-width:200px;border-radius:8px;background:#0b1425;color:#edf2ff;border:1px solid #ffffff30}#themeStatus17{min-height:24px;font-size:14px;color:#b4d1ff}.zg-theme-current17{color:#dceaff;font-size:14px}
@media(max-width:680px){.zg-profile-header{align-items:flex-start;flex-direction:column;padding:20px}.zg-profile-shell{padding:16px 9px}.zg-profile-header h1{font-size:23px!important}.zg-theme-store17{padding:20px 12px 45px}.zg-theme-grid17{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.zg-theme-card17 h2{font-size:16px;margin:12px 10px 7px}.zg-theme-card17 p{margin:0 10px 12px;font-size:12px}.zg-theme-card17 footer{padding:0 10px 12px;flex-direction:column;align-items:stretch}.zg-theme-card17 footer a{text-align:center;font-size:12px}.zg-theme-swatch{height:160px;padding:10px}.zg-theme-savebar17{flex-wrap:wrap}.zg-profile-shell table{max-width:100%}.zg-profile-shell td{overflow-wrap:anywhere}.zg-profile-shell .div_rekor{padding:14px!important}}
body.zg-sayfam.theme-aurora{--zg-bg:#071c24;--zg-glow:#173c45;--zg-accent:#69efc7;--zg-text:#e1f7ef;--zg-card:#102c34;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
body.zg-sayfam.theme-obsidian{--zg-bg:#0c0e13;--zg-glow:#332b1b;--zg-accent:#f4cf78;--zg-text:#f4efe4;--zg-card:#1a1b20;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
body.zg-sayfam.theme-crystal{--zg-bg:#0a192b;--zg-glow:#214567;--zg-accent:#92dcff;--zg-text:#e6f5ff;--zg-card:#142d46;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
body.zg-sayfam.theme-cosmos{--zg-bg:#140c29;--zg-glow:#432465;--zg-accent:#cf9dff;--zg-text:#f1e8ff;--zg-card:#25163c;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
body.zg-sayfam.theme-ember{--zg-bg:#25100d;--zg-glow:#583023;--zg-accent:#ffb084;--zg-text:#fff0e6;--zg-card:#391b16;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
body.zg-sayfam.theme-pearl{--zg-bg:#f0f4fb;--zg-glow:#d6e2f0;--zg-accent:#315589;--zg-text:#172b48;--zg-card:#ffffff;--zg-btn-text:#ffffff;--zg-line:rgba(30,50,80,.16);--zg-muted:#5c657c}
body.zg-sayfam.theme-glass{--zg-bg:#0c1c30;--zg-glow:#2b4a61;--zg-accent:#8ad8fb;--zg-text:#edf9ff;--zg-card:#172f44;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
body.zg-sayfam.theme-cyberpunk{--zg-bg:#110d25;--zg-glow:#421539;--zg-accent:#55f1eb;--zg-text:#f1ecff;--zg-card:#211833;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
body.zg-sayfam.theme-retro{--zg-bg:#1b1032;--zg-glow:#682345;--zg-accent:#ff99d3;--zg-text:#ffeafa;--zg-card:#2e1849;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
body.zg-sayfam.theme-minimal{--zg-bg:#f4f5f7;--zg-glow:#e0e4ec;--zg-accent:#334155;--zg-text:#172033;--zg-card:#ffffff;--zg-btn-text:#ffffff;--zg-line:rgba(30,50,80,.16);--zg-muted:#5c657c}
body.zg-sayfam.theme-hacker{--zg-bg:#07110b;--zg-glow:#123722;--zg-accent:#93ef99;--zg-text:#d8ffe0;--zg-card:#101e16;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
body.zg-sayfam.theme-sunset{--zg-bg:#29151a;--zg-glow:#713e36;--zg-accent:#ffc099;--zg-text:#fff1e9;--zg-card:#412228;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
body.zg-sayfam.theme-matrix{--zg-bg:#050f0d;--zg-glow:#164e3b;--zg-accent:#50e8a6;--zg-text:#dffff1;--zg-card:#0c251d;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
body.zg-sayfam.theme-ocean{--zg-bg:#071c30;--zg-glow:#145875;--zg-accent:#76e1f5;--zg-text:#e1f8ff;--zg-card:#10384c;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
body.zg-sayfam.theme-candy{--zg-bg:#fff0f7;--zg-glow:#e8d6f7;--zg-accent:#9d3f80;--zg-text:#472b53;--zg-card:#fffafd;--zg-btn-text:#ffffff;--zg-line:rgba(30,50,80,.16);--zg-muted:#5c657c}
body.zg-sayfam.theme-gothic{--zg-bg:#170b13;--zg-glow:#472135;--zg-accent:#ef91b1;--zg-text:#fae4ed;--zg-card:#28101f;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
body.zg-sayfam.theme-space{--zg-bg:#090f24;--zg-glow:#293868;--zg-accent:#f5d58c;--zg-text:#eaf0ff;--zg-card:#16213f;--zg-btn-text:#10202a;--zg-line:rgba(220,235,255,.15);--zg-muted:#b2bfd3}
/* Default Sayfam is white; purchased theme palettes stay independent. */
body.zg-sayfam:not([class*="theme-"]){--zg-bg:#ffffff;--zg-glow:#f7f9fc;--zg-accent:#365bc9;--zg-text:#1f2f49;--zg-card:#ffffff;--zg-btn-text:#ffffff;--zg-line:#e1e7f0;--zg-muted:#6b7b93;background:#ffffff!important;color:#1f2f49!important}body.zg-sayfam:not([class*="theme-"]) .zg-profile-header,body.zg-sayfam:not([class*="theme-"]) .zg-profile-shell{box-shadow:0 10px 35px #20375a08;border-color:#e1e7f0}body.zg-sayfam:not([class*="theme-"]) input:not([type=submit]):not([type=button]),body.zg-sayfam:not([class*="theme-"]) select,body.zg-sayfam:not([class*="theme-"]) textarea{background:#f7f9fd!important;color:#263c5b!important;border-color:#d9e2ee!important}

/* Reference win bars, 20261014. */
body.zg-sayfam:not([class*="theme-"]){--zg-bg:#f0f8ff;--zg-glow:transparent;--zg-card:#f0f8ff;--zg-text:#111;background:#f0f8ff!important;color:#111!important;padding:8px 16px 40px!important}
body.zg-sayfam .zg-profile-shell{max-width:none;width:100%;padding:12px 0;border:0;border-radius:0;box-shadow:none;background:transparent}
body.zg-sayfam:not([class*="theme-"]) .zg-profile-header{max-width:none;background:transparent;border:0;border-bottom:1px solid #cde;border-radius:0;box-shadow:none;padding:16px 12px}
body.zg-sayfam:not([class*="theme-"]) .container{background:transparent!important}
body.zg-sayfam #user-wins-section{width:100%;margin:0 auto}
body.zg-sayfam #win-count-header,body.zg-sayfam #user-wins-empty{font:400 25px Verdana,sans-serif!important;margin:0 auto 4px;color:var(--zg-text)!important}
body.zg-sayfam #win-bars-container{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;padding:0;overflow:visible}
body.zg-sayfam #win-bars-container .win_show{display:block;flex:none;box-sizing:border-box;min-height:32px;height:32px;margin:0;padding:0 8px;border:0;border-radius:3px;line-height:32px;font-family:Impact,Haettenschweiler,'Arial Narrow Bold',fantasy;font-size:14px;font-weight:700;text-align:center;color:#fff!important;white-space:nowrap;background:#000;max-width:98%;cursor:pointer}
body.zg-sayfam #win-bars-container .score_gr_1m{background:#f50000}
body.zg-sayfam #win-bars-container .score_gr_2m{background:#10951f}
body.zg-sayfam #win-bars-container .score_gr_3m{background:#7500f5}
body.zg-sayfam #win-bars-container .score_gr_4m{background:#ff9800}
body.zg-sayfam #win-bars-container .score_gr_5m{background:#051be3}
body.zg-sayfam #win-bars-container .tooltiptext{color:#fff!important;font:12px/1.5 Verdana,sans-serif;z-index:100;white-space:normal}
@media(max-width:680px){body.zg-sayfam:not([class*="theme-"]){padding:8px 6px 30px!important}body.zg-sayfam #win-bars-container .win_show{font-size:12px}body.zg-sayfam #win-count-header{font-size:22px!important}}

/* Score-band wrapping requested 20261014. */
body.zg-sayfam #win-bars-container{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:4px}
body.zg-sayfam #win-bars-container .win_show{width:calc((100% - 28px)/8)!important;min-width:0!important;max-width:none;flex:0 0 auto}
body.zg-sayfam #win-bars-container .win-band-1m{width:calc((100% - 12px)/4)!important}
body.zg-sayfam #win-bars-container .win-band-2m{width:calc((100% - 8px)/3)!important}
body.zg-sayfam #win-bars-container .win-band-3m{width:calc((100% - 4px)/2)!important}
body.zg-sayfam #win-bars-container .win-band-4m{width:calc(75% - 1px)!important}
body.zg-sayfam #win-bars-container .win-band-5m{width:100%!important}
body.zg-sayfam #win-bars-container .win-room-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff!important}
@media(max-width:680px){body.zg-sayfam #win-bars-container .win-band-small{font-size:9px}}

/* Clear profile typography, 20261014. */
body.zg-sayfam .zg-profile-header,body.zg-sayfam .zg-profile-shell{font-family:Arial,Helvetica,sans-serif!important;text-shadow:none!important}
body.zg-sayfam .zg-profile-shell div,body.zg-sayfam .zg-profile-shell td,body.zg-sayfam .zg-profile-shell h2,body.zg-sayfam .zg-profile-shell h3{font-family:Arial,Helvetica,sans-serif!important;text-shadow:none!important}
body.zg-sayfam #win-bars-container .win_show,body.zg-sayfam #win-bars-container .win-room-label{font-family:Arial,Helvetica,sans-serif!important;font-size:15px!important;font-weight:700!important;font-style:normal!important;letter-spacing:.15px;text-shadow:none!important;-webkit-text-stroke:0;filter:none!important;opacity:1!important;text-rendering:auto}
body.zg-sayfam #win-bars-container .tooltiptext{font-family:Arial,Helvetica,sans-serif!important;text-shadow:none!important}
body.zg-sayfam #win-count-header,body.zg-sayfam #user-wins-empty{font-family:Arial,Helvetica,sans-serif!important;font-weight:600!important;text-shadow:none!important}
@media(max-width:680px){body.zg-sayfam #win-bars-container .win_show,body.zg-sayfam #win-bars-container .win-room-label{font-size:12px!important;letter-spacing:0}body.zg-sayfam #win-bars-container .win-band-small,body.zg-sayfam #win-bars-container .win-band-small .win-room-label{font-size:10px!important}}

/* Slightly heavier win labels 20261014. */
body.zg-sayfam #win-bars-container .win-room-label{font-weight:700!important;-webkit-text-stroke:.02px currentColor;text-shadow:none!important}
