@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
:root{--ink:#202c2c;--muted:#728080;--line:#dfe7e5;--accent:#178c76;--soft:#e9f5f1;--bg:#f4f7f5;font-family:'Be Vietnam Pro',system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,label.upload-button{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.admin-header{display:flex;align-items:center;justify-content:space-between;padding:18px max(24px,calc((100vw - 1280px)/2));background:#fff;border-bottom:1px solid var(--line);gap:20px}.admin-brand{display:flex;align-items:center;gap:11px;font-size:16px;font-weight:800;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#173c36;color:#b7ecdb;font-size:25px}.admin-brand small{display:block;font-size:11px;color:var(--muted);font-weight:500;margin-top:4px}.header-tools{display:flex;gap:10px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:12px 18px;font-weight:600;font-size:13px;min-height:43px;white-space:nowrap}.primary{background:var(--accent);color:#fff;box-shadow:0 4px 12px #178c761a}.primary:hover{background:#0c7562}.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.secondary:hover{background:#f0f5f3}.button:disabled{opacity:.55;cursor:wait}.full{width:100%}main{max-width:1280px;margin:auto;padding:36px 24px 60px}.loading{text-align:center;margin:60px;color:var(--muted)}.login-card{background:#fff;border:1px solid var(--line);border-radius:22px;max-width:440px;margin:50px auto 20px;padding:38px;box-shadow:0 18px 60px #173c3610}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;color:var(--accent);margin:0 0 12px}.login-card h1{font-size:26px;letter-spacing:-1px;line-height:1.3;margin:12px 0}.login-card p{color:var(--muted);line-height:1.8;font-size:13px}.login-card form{margin:28px 0 14px}label{display:block;font-size:12px;font-weight:600;color:#3a4e4a;margin-bottom:18px}input,select,textarea{display:block;width:100%;margin-top:8px;border:1px solid #d5e0dc;border-radius:9px;background:#fff;padding:11px 12px;color:var(--ink);outline:none;min-height:43px;font-size:13px}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #178c7615}textarea{resize:vertical;line-height:1.6}input[type=color]{height:44px;padding:4px;width:100%}input::placeholder,textarea::placeholder{color:#95a3a0;font-weight:400}.password-wrap{position:relative}.password-wrap input{padding-right:60px}.password-wrap button{border:0;background:transparent;position:absolute;right:8px;top:10px;padding:8px;color:var(--muted);font-size:11px}.quiet-link{font-size:12px;color:var(--muted)}.welcome-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 28px}.welcome-row h1{font-size:30px;letter-spacing:-1px;margin:0 0 8px}.welcome-row p:last-child{color:var(--muted);margin:0;font-size:13px}.save-status{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);background:#fff;padding:11px 14px;border:1px solid var(--line);border-radius:30px}.status-dot{width:6px;height:6px;border-radius:50%;background:#27917c}.tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:28px}.tabs button{border:0;background:transparent;color:var(--muted);padding:14px 22px;font-size:16px;display:flex;gap:10px;align-items:center;border-bottom:3px solid transparent}.tabs button span{font-size:13px;font-weight:600}.tabs button[aria-current=page]{color:var(--accent);border-bottom-color:var(--accent);background:linear-gradient(transparent,#e9f5f1)}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.panel-title h2{font-size:20px;letter-spacing:-.5px;margin:0 0 8px;display:flex;align-items:center;gap:10px}.panel-title p{color:var(--muted);font-size:12px;margin:0;line-height:1.7}.count{background:#e3ede8;color:#536f66;padding:4px 8px;font-size:11px;border-radius:6px;letter-spacing:0}.game-manager{display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px;align-items:start}.game-library{padding:16px;background:#fff;border:1px solid var(--line);border-radius:14px}.game-library>input{margin:0;background:#f7f9f8}.list-caption{display:flex;justify-content:space-between;padding:18px 8px 10px;font-size:8px;letter-spacing:1.5px;color:#94a09c;font-weight:700}.game-list{max-height:650px;overflow-y:auto;scrollbar-width:thin}.game-row{display:flex;width:100%;align-items:center;gap:11px;padding:11px 8px;border:1px solid transparent;border-radius:9px;text-align:left;background:#fff;margin-bottom:4px;min-height:65px}.game-row:hover{background:#f7faf8}.game-row.selected{background:var(--soft);border-color:#b8dccc}.game-row img{width:44px;height:40px;object-fit:cover;background:#edf2ef;border-radius:6px;flex-shrink:0}.game-row strong{display:block;font-size:11px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.game-row small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.game-row .edit-arrow{margin-left:auto;flex-shrink:0;color:#82998e;font-size:15px}.library-info{font-size:10px;color:var(--muted);margin:15px 8px 3px}.editor-card,.settings-card,.preview-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px}.editor-empty{min-height:510px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted)}.editor-empty>span{font-size:40px;color:#aac6b9}.editor-empty h3{color:var(--ink);font-size:17px}.editor-empty p{max-width:240px;line-height:1.8;font-size:12px}.editor-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:12px}.editor-title .eyebrow{font-size:9px;margin-bottom:6px}.editor-title h3{margin:0;font-size:20px}.small-tag{font-size:9px;color:#778b80;padding:6px 9px;background:#f3f7f4;border-radius:6px;white-space:nowrap}.two-columns,.media-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.media-fields{gap:18px;margin:8px 0 24px}.media-field{background:#f6f9f7;padding:15px;border:1px dashed #d8e4dd;border-radius:10px;min-width:0}.media-field label{margin-bottom:12px}.upload-button{display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;border:1px solid #c7dbd0;border-radius:8px;padding:11px 13px;background:#fff;color:#2d7158;cursor:pointer;font-size:12px;font-weight:600;max-width:280px;margin:0 0 12px;min-height:42px}.upload-button:hover{background:var(--soft)}.upload-button input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0;width:100%;height:100%}.media-field small{font-size:9px;color:#8c9b93;display:block}.image-preview,.video-preview{max-width:100%;width:100%;height:135px;object-fit:contain;background:#e6eee9;border-radius:7px;margin-top:15px}.check-options{display:flex;flex-direction:column;justify-content:center;gap:12px}.check-label{display:flex;align-items:center;gap:9px;font-size:12px;margin:0}.check-label input{appearance:auto;width:16px;min-height:16px;height:16px;margin:0;accent-color:var(--accent)}.help{font-size:11px;line-height:1.8;color:var(--muted);margin:0 0 20px}.form-actions{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:22px;margin-top:22px;flex-wrap:wrap}.form-message{font-size:11px;line-height:1.7;color:var(--accent);margin:0}.form-message.error{color:#bb403f}.settings-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px;align-items:start}.settings-card>label{margin-bottom:22px}.preview-card{position:sticky;top:24px}.appearance-preview{border:1px solid #e4ebe6;border-radius:11px;padding:26px;background:#f5f6f3;overflow:hidden}.appearance-preview img{width:110px;height:85px;object-fit:contain;margin-bottom:22px;display:block}.preview-tag{font-size:8px;font-weight:800;letter-spacing:1.2px;color:#819488}.appearance-preview h3{font-size:25px;line-height:1.3;letter-spacing:-1px;margin:16px 0;overflow-wrap:anywhere}.appearance-preview p{font-size:11px;line-height:1.9;color:#77857e;margin-bottom:25px}.preview-cta{display:inline-block;padding:11px;border-radius:7px;background:#ef5a55;color:#fff;font-size:9px;font-weight:700}.preview-card>.help{margin:18px 0 0}.contact-preview{text-align:center}.contact-preview svg{width:190px;max-width:100%;height:auto;border:10px solid #fff;border-radius:10px}.contact-preview h3{font-size:22px;overflow-wrap:anywhere}.contact-preview>p:not(.eyebrow){font-size:11px;color:var(--muted);margin-bottom:25px}.admin-footer{display:flex;justify-content:space-between;gap:20px;color:#8b9891;font-size:10px;margin:28px 0 0}.admin-footer p{line-height:1.8}.upload-status{position:fixed;right:28px;bottom:26px;background:#fff;border:1px solid #cce1d4;box-shadow:0 12px 40px #173c3626;border-radius:13px;padding:18px 22px;min-width:280px;z-index:20;font-size:12px;color:var(--accent)}progress{display:block;width:100%;height:6px;margin-top:12px;accent-color:var(--accent)}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:#153a30;color:#fff;box-shadow:0 10px 40px #173c3620;padding:14px 20px;border-radius:11px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:30;max-width:90vw}.toast.visible{opacity:1;transform:translate(-50%,0)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1000px){.game-manager{grid-template-columns:280px minmax(0,1fr);gap:16px}.editor-card,.settings-card,.preview-card{padding:22px}.media-fields{grid-template-columns:1fr}.image-preview,.video-preview{height:160px}.game-list{max-height:630px}}@media(max-width:760px){.admin-header{padding:14px 18px}.admin-brand{font-size:12px}.brand-mark{width:34px;height:34px;font-size:21px}.header-tools{gap:6px}.header-tools .button{font-size:10px;padding:9px 10px;min-height:36px}main{padding:24px 16px 50px}.welcome-row h1{font-size:26px}.save-status{font-size:9px;padding:8px 10px}.tabs{gap:0;margin-bottom:24px}.tabs button{padding:14px 12px;gap:7px;flex:1;justify-content:center}.tabs button span{font-size:11px}.panel-title h2{font-size:17px}.panel-title p{font-size:11px}.panel-title .button{padding:10px 12px;font-size:11px}.game-manager,.settings-layout{grid-template-columns:1fr}.game-list{max-height:250px}.game-library{padding:12px}.game-row{min-height:58px;padding:8px}.editor-empty{min-height:180px}.editor-card,.settings-card,.preview-card{padding:20px}.media-fields{grid-template-columns:1fr 1fr;gap:12px}.media-field{padding:12px}.media-field input{font-size:11px}.image-preview,.video-preview{height:105px}.preview-card{position:static}.admin-footer{flex-direction:column;gap:0}.admin-footer p{margin:4px 0}.login-card{padding:28px;margin:30px auto}.two-columns{gap:12px}.upload-status{left:16px;right:16px;bottom:16px;min-width:0}.welcome-row{align-items:start}.welcome-row p:last-child{font-size:11px}}@media(max-width:450px){.media-fields{grid-template-columns:1fr}.welcome-row{flex-direction:column;gap:14px}.save-status{padding:6px 9px}.small-tag{display:none}.admin-header{gap:8px}.admin-brand{font-size:11px}.admin-brand small{font-size:9px}.header-tools .button{padding:8px;font-size:9px}.brand-mark{width:30px;height:30px}.image-preview,.video-preview{height:150px}}
