/* Tizgin 170: экран входа на ПК (player-shell.html). Только оформление, логика входа не меняется. */
html body #login.tz170:not(.hidden){position:fixed;inset:0;display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-items:center;place-items:center;padding:78px 16px 64px;overflow:hidden;
  background:radial-gradient(1100px 520px at 50% -8%,#2e2056 0,#1a191f 48%,#0a090c 100%)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body #login.tz170 .login-showcase{display:none!important}
html body #login.tz170 .tz-legacy{display:none!important}
html body #login.tz170 .login-card{position:relative;z-index:3;display:block!important;grid-template-columns:none!important;width:min(600px,calc(100vw - 32px))!important;max-width:600px!important;max-height:calc(100vh - 150px);overflow:auto;
  padding:38px 52px 34px;border-radius:32px;border:1px solid #6632f422;background:linear-gradient(180deg,#1a1920f2,#131217f5);box-shadow:0 30px 90px #000000aa,0 0 0 1px #ffffff08 inset}
html body #login.tz170 .login-close{display:none!important}
html body #login.tz170 .login-error{min-height:0;margin:10px 0 0}
html body #login.tz170 .login-error:empty{display:none}
html body #login.tz170 #loginFields,html body #login.tz170 #registerFields{margin:0;padding:0}
/* верх и низ экрана */
.tz-top{position:absolute;z-index:3;top:26px;left:48px;right:48px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.tz-brand{display:flex;align-items:center;gap:14px;font-weight:800;font-size:22px;color:#f5f3fb}
.tz-logo{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(160deg,#7b4cfa,#4006e0);color:#0e0d11;font-weight:900;font-size:26px;overflow:hidden}
.tz-logo img{width:100%;height:100%;object-fit:contain}
.tz-clock{font-size:34px;font-weight:600;color:#f5f3fb;letter-spacing:.5px;font-variant-numeric:tabular-nums}
.tz-foot{position:absolute;z-index:3;left:48px;right:48px;bottom:26px;display:flex;justify-content:space-between;gap:24px;color:#998fb5;font-size:15px;pointer-events:none}
.tz-foot span:empty{display:none}
.tz-obj{position:absolute;z-index:1;pointer-events:none;user-select:none;filter:drop-shadow(0 22px 30px #00000099)}
.tz-obj.headset{left:2.5%;top:12%;width:15vmin;max-width:210px}
.tz-obj.tower{left:8%;top:26%;width:11vmin;max-width:170px}
.tz-obj.keyboard{left:1.5%;top:55%;width:21vmin;max-width:330px;transform:rotate(-11deg)}
.tz-obj.mouse{left:25%;top:62%;width:6vmin;max-width:90px;transform:rotate(-8deg)}
.tz-obj.gamepad{right:5%;top:12%;width:15vmin;max-width:240px;transform:rotate(5deg)}
.tz-obj.monitor{right:1.5%;top:24%;width:18vmin;max-width:290px;transform:rotate(6deg)}
.tz-obj.chair{right:20%;top:55%;width:8vmin;max-width:120px}
@media(max-width:1100px),(max-height:620px){.tz-obj{display:none}}
/* шапка карточки: номер ПК */
.tz-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}
.tz-head small{display:block;letter-spacing:3px;font-size:13px;font-weight:700;color:#a79dc2}
.tz-head b{display:block;font-size:84px;line-height:.95;font-weight:800;color:#8b7dff;letter-spacing:-2px;margin-top:6px}
.tz-head .r{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:6px;padding-top:4px}
.tz-head .r strong{font-size:22px;color:#f5f3fb}
.tz-head .r em{font-style:normal;color:#a79dc2;font-size:15px}
.tz-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;border:1px solid #6632f444;background:#6632f412;color:#a99cff;font-weight:700;font-size:15px}
.tz-chip i{width:9px;height:9px;border-radius:50%;background:#6632f4}
/* поля и кнопки */
html body #login.tz170 label{color:#d6cfe8;font-weight:600;font-size:16px;margin:14px 0 8px}
html body #login.tz170 input{height:58px;border-radius:16px;font-size:20px;background:#0c0b0e;border:1px solid #3e3065;color:#f5f3fb}
html body #login.tz170 input:focus{border-color:#6632f4;box-shadow:0 0 0 2px #6632f455;outline:0}
html body #login.tz170 #loginBtn,html body #login.tz170 #registerBtn{height:62px;margin-top:22px!important;border-radius:16px;border:0;font-size:22px;font-weight:800;color:#0e0d11;
  background:linear-gradient(90deg,#7b4cfa,#4206e6);box-shadow:0 10px 34px #4206e633}
html body #login.tz170 #loginBtn:hover,html body #login.tz170 #registerBtn:hover{filter:brightness(1.06)}
.tz-tgbtn,.tz-ghost,.tz-back{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:54px;border-radius:16px;border:1px solid #3e3065;background:transparent;color:#f5f3fb;font:inherit;font-size:18px;font-weight:700;cursor:pointer;padding:0 18px}
.tz-tgbtn:hover,.tz-ghost:hover,.tz-back:hover{border-color:#6632f4;background:#6632f40d}
.tz-tgbtn{width:100%;margin-top:12px}
.tz-tgbtn svg{width:22px;height:22px;flex:none;fill:#9a7fe3}
.tz-forgot{margin:18px 0 0;color:#a79dc2;font-size:16px}
.tz-sep{height:1px;background:#6632f424;margin:20px 0}
.tz-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tz-note{margin:12px 0 0;min-height:18px;color:#a99cff;font-size:14px;text-align:center}
html body #login.tz170 .login-switch{margin-top:16px;font-size:15px;color:#a79dc2}
/* экран QR */
.tz-qr-head{text-align:center}
.tz-qr-head small{display:block;letter-spacing:3px;font-size:13px;font-weight:700;color:#a79dc2;text-transform:uppercase}
.tz-qr-head h2{margin:14px 0 18px;font-size:34px;line-height:1.15;font-weight:800;color:#f5f3fb}
html body #login.tz170 .tz-qr #telegramRegister{border:0!important;background:transparent!important;padding:0!important;margin:0!important}
html body #login.tz170 .tz-qr #telegramPanelTitle,html body #login.tz170 .tz-qr #telegramPanelHelp,html body #login.tz170 .tz-qr #telegramSafetyNote,html body #login.tz170 .tz-qr .tg-handle-hint{display:none!important}
html body #login.tz170 .tz-qr #telegramRegister>div{flex-direction:column;align-items:center;gap:14px!important}
html body #login.tz170 .tz-qr #telegramRegister>div>div:last-child{width:100%;min-width:0!important;flex:none!important;text-align:center}
html body #login.tz170 .tz-qr #telegramQr{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;padding:16px!important;border-radius:22px!important;background:#ffffff!important;overflow:visible!important}
html body #login.tz170 .tz-qr #telegramQr img{width:230px!important;height:230px!important}
html body #login.tz170 .tz-qr .tg-handle{background:none!important;border:0!important;padding:0!important}
html body #login.tz170 .tz-qr .tg-handle-name{color:#a99cff;font-weight:700;font-size:16px}
html body #login.tz170 .tz-qr #telegramStatus{color:#a79dc2!important;font-size:15px!important;min-height:0!important;margin:6px 0 0}
html body #login.tz170 .tz-qr #telegramRefreshBtn{width:auto!important;margin:8px auto 0!important;height:44px;padding:0 18px;border-radius:14px;font-size:15px}
.tz-qr-cap{margin:12px 0 18px;text-align:center;color:#a79dc2;font-size:16px;line-height:1.5}
.tz-back{width:100%}
.tz-code{margin-top:10px;text-align:left}
.tz-code>summary{cursor:pointer;color:#a79dc2;font-size:15px;text-align:center;padding:6px}
/* какой вид показывать */
html body #login.tz170 .tz-qr,html body #login.tz170 .tz-pass{display:block}
html body #login.tz170[data-tz-view=pass][data-tz-mode=login] .tz-qr{display:none!important}
html body #login.tz170[data-tz-view=qr][data-tz-mode=login] .tz-pass{display:none!important}
html body #login.tz170[data-tz-mode=register] .tz-only-login,html body #login.tz170[data-tz-mode=verify] .tz-only-login{display:none!important}
html body #login.tz170[data-tz-mode=register] .tz-code>summary,html body #login.tz170[data-tz-mode=verify] .tz-code>summary{display:none}
html body #login.tz170[data-tz-mode=register] .tz-qr{margin-top:18px}
html body #login.tz170 .tz-pass .tz-only-login.tz-head{display:flex}
html body #login.tz170:has(#telegramRegister.tz-tg-off) .tz-tgbtn{display:none!important}
@media(max-width:720px){html body #login.tz170 .login-card{padding:28px 22px}.tz-head b{font-size:64px}.tz-actions{grid-template-columns:1fr}.tz-top{left:18px;right:18px}.tz-foot{left:18px;right:18px;flex-direction:column;gap:4px;font-size:13px}.tz-clock{font-size:24px}}
/* регистрация и подтверждение: QR меньше, чтобы карточка помещалась на экран */
html body #login.tz170[data-tz-mode=register] .tz-qr #telegramQr img,html body #login.tz170[data-tz-mode=verify] .tz-qr #telegramQr img{width:150px!important;height:150px!important}
html body #login.tz170[data-tz-mode=register] .tz-qr #telegramQr,html body #login.tz170[data-tz-mode=verify] .tz-qr #telegramQr{padding:10px!important;border-radius:16px!important}
@media(max-height:820px){html body #login.tz170 .login-card{padding:26px 44px 24px}.tz-head b{font-size:64px}html body #login.tz170 input{height:52px}html body #login.tz170 #loginBtn{height:56px;margin-top:16px!important}.tz-tgbtn,.tz-ghost,.tz-back{height:48px}.tz-sep{margin:14px 0}.tz-forgot{margin-top:12px}.tz-qr-head h2{font-size:28px;margin:10px 0 12px}html body #login.tz170 .tz-qr #telegramQr img{width:190px!important;height:190px!important}}
