
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font:12px Tahoma,Arial,sans-serif;color:#111;background:#0b1114}button,input,textarea{font:inherit}button{cursor:pointer}.screen{display:none;position:absolute;inset:0;overflow:hidden}.screen.active{display:block}.hidden{display:none!important}#power-screen{background:radial-gradient(ellipse,#141b1f 5%,#070909 75%);color:#b4c0b8}.monitor-off{width:min(560px,90vw);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}.crt-label{text-align:left;font-size:12px;letter-spacing:5px;margin:0 5px 12px;color:#788c88}.crt-label span{color:#c0d7ce}.crt-glass{height:min(38vh,280px);border:9px ridge #384143;border-radius:24px;background:repeating-linear-gradient(0deg,transparent 0 3px,#172423 4px),radial-gradient(ellipse,#10221c,#020404);box-shadow:inset 0 0 80px #000,0 16px 75px #000;display:grid;place-items:center}.crt-dim{font:18px "Courier New",monospace;letter-spacing:4px;color:#477664;text-shadow:0 0 14px #153c29}.physical-power{margin:24px auto 10px;border:2px outset #657470;background:#242b2b;color:#e0eae3;padding:9px 22px;font-weight:bold;letter-spacing:3px}.power-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#89efb1;margin-right:6px;box-shadow:0 0 8px #47bb72}.power-hint{font:10px monospace;letter-spacing:2px;color:#718983}#login-screen{background:linear-gradient(130deg,#1d2d3b 0%,#0b1620 60%,#182a2d 100%);color:#e5e6e2}.login-header{display:flex;gap:18px;align-items:center;position:absolute;left:7%;top:8%}.login-header h1{margin:0;font:36px Tahoma}.login-header small{letter-spacing:3px;color:#b1b8b5}.zebra-logo{font:bold 50px Arial;color:#dce4dc}.zebra-logo span{color:#7c9999}.login-main{width:90%;max-width:610px;position:absolute;top:42%;left:50%;transform:translate(-50%,-40%);text-align:center}.login-main>p{font:12px "Courier New";letter-spacing:2px;color:#adbec5}.login-users{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.user-card{border:1px solid #637781;background:#2a3945;color:#f4f4ef;padding:20px 10px;display:flex;flex-direction:column;align-items:center;gap:7px;min-height:120px}.user-card:hover,.user-card:focus{background:#3f5361;border-color:#dce4ef}.user-avatar{width:42px;height:42px;background:#cfd8d6;color:#0d222b;border:2px ridge #fff;font:bold 25px Georgia;display:grid;place-items:center}.user-name{font-size:16px;font-weight:bold}.user-sub{font:11px "Courier New";color:#bac8c7}.login-footer{position:absolute;bottom:25px;left:6%;right:6%;display:flex;align-items:center;justify-content:space-between;font:11px "Courier New";color:#b8c5be}.plain-dark{border:1px solid #738388;color:#dae5de;background:#233440;padding:8px}.wallpaper{position:absolute;inset:0 0 36px;background:linear-gradient(125deg,#475b52 0%,#7a897c 35%,#152d35 36%,#152a30 65%,#0c1b21 100%);overflow:hidden}.wallpaper:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,rgba(0,0,0,.085) 0 1px,transparent 1px 5px);pointer-events:none}.wallpaper-zebra{background:linear-gradient(130deg,#162f35 0%,#273a42 50%,#091d26 51%,#30444b 100%)}.wallpaper-admin{background:linear-gradient(145deg,#122948,#4c6174 50%,#091b32 51%,#13264d 100%)}.wallpaper-daniel{background:linear-gradient(125deg,#482e40,#c3a2b2 48%,#3d2744 49%,#171e2d)}.wallpaper-label{position:absolute;right:5%;bottom:11%;font:bold clamp(26px,4.2vw,62px) Tahoma;letter-spacing:7px;color:#e2e7e1a8;text-shadow:2px 2px #172b31}.wallpaper-label span{display:block;text-align:right;letter-spacing:5px;font:11px "Courier New";margin-top:8px}.desktop-icons{position:absolute;left:12px;top:13px;display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-start;gap:7px;height:calc(100% - 70px)}.desk-icon{border:1px solid transparent;background:transparent;color:white;text-shadow:1px 1px #111;width:94px;height:73px;display:flex;flex-direction:column;align-items:center;justify-content:start;gap:6px;padding:7px 3px;word-break:break-word}.desk-icon:hover,.desk-icon.selected{background:#cddcf132;border-color:#dfeafd9b}.desk-symbol{font:28px "Segoe UI Symbol",Arial,sans-serif;line-height:30px;color:#eef2d4;text-shadow:2px 2px #142424}.desk-icon span:last-child{font-size:11px;line-height:14px}.taskbar{position:absolute;bottom:0;left:0;right:0;height:36px;background:#c1c1c1;border-top:3px ridge #fff;display:flex;align-items:center;padding:2px 4px;gap:4px;z-index:500}.win-button{height:26px;border:2px outset #eee;background:#bfbfbf;white-space:nowrap;padding:1px 10px;max-width:190px;text-overflow:ellipsis;overflow:hidden}.win-button.active,.win-button:active{border-style:inset;background:#dadada}.start-button{font-weight:bold}.start-z{display:inline-block;background:#111c76;color:#fff;padding:1px 5px;margin-right:3px}#task-items{flex:1;display:flex;gap:3px;min-width:0}.tray{padding:4px 9px;border:1px inset #fff;display:flex;gap:10px;margin-left:auto}.tray-icon{color:#23516c}.start-menu{position:absolute;bottom:36px;left:2px;width:250px;max-width:90vw;min-height:290px;border:3px outset #f4f4f4;z-index:600;background:#bfbfbf;display:flex;box-shadow:4px 5px #0005}.start-side{width:31px;background:#17295e;color:white;writing-mode:vertical-rl;transform:rotate(180deg);text-align:left;padding:12px 6px;font-size:17px}.start-side b{color:#f9fbfd}.start-options{flex:1;padding:6px}.start-options button{width:100%;background:transparent;border:0;text-align:left;padding:8px;color:#111}.start-options button:hover{background:#0d317b;color:white}.start-options button span{padding-left:8px}.start-options hr{border:0;border-top:1px solid #888}.window{position:absolute;background:#c0c0c0;border:3px outset #f4f4f4;min-width:250px;min-height:180px;display:flex;flex-direction:column;box-shadow:2px 3px 2px #0005;overflow:hidden;z-index:50}.window.minimized{display:none}.titlebar{height:25px;min-height:25px;background:#79828b;color:#fff;display:flex;align-items:center;padding:3px 4px;gap:6px;user-select:none;touch-action:none;font-weight:bold}.window.focused .titlebar,.admin-login-dialog .titlebar{background:linear-gradient(90deg,#0a1a70,#286099)}.windowtitle{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.titlebuttons{display:flex;gap:2px}.titlebuttons button{border:2px outset #eee;background:#c0c0c0;width:22px;height:20px;line-height:14px;color:black;padding:0}.window-body{flex:1;min-height:0;overflow:auto;background:#f4f4f4;padding:10px}.window-status{height:21px;border-top:2px inset #fff;padding:2px 6px;font-size:10px;color:#444}.classic-button{padding:4px 9px;border:2px outset #eee;background:#c6c6c6;color:#111}.classic-button:active{border-style:inset}.basic-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:9px 0}.folder-toolbar{display:flex;gap:5px;border-bottom:1px solid #888;padding-bottom:7px;margin-bottom:8px}.folder-path{font:11px "Courier New";padding:5px;background:#fff;border:2px inset #ccc;margin-bottom:8px}.folder-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:7px}.file-entry{border:1px solid transparent;background:transparent;padding:7px;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:80px;word-break:break-word}.file-entry:hover{border:1px dotted #4964a7;background:#dbe5ee}.file-symbol{font-size:27px}.file-entry span:last-child{font:11px Tahoma}.note-editor{height:100%;display:flex;flex-direction:column;gap:7px}.note-editor textarea{flex:1;min-height:130px;resize:none;border:2px inset #ccc;padding:8px;font:12px "Courier New"}.amp{background:#292f2a;color:#90dca9;font:12px "Courier New";height:100%;padding:9px;display:flex;flex-direction:column;gap:9px}.amp-header{display:flex;justify-content:space-between;background:#102018;border:2px inset #526a5b;padding:6px;font-weight:bold;letter-spacing:1px}.amp-screen{background:#03110b;border:2px inset #526a5b;padding:9px;display:flex;flex-direction:column;gap:8px;color:#74da9c}.amp-track{font-size:11px;letter-spacing:2px}.amp-time{font-size:16px}.amp input[type=range]{width:100%;accent-color:#6bc887}.amp-transport{display:flex;gap:5px}.amp-transport button,.amp-load{background:#bcc1bd;border:2px outset #e0e6e3;color:#102018;padding:6px 13px}.amp-playlist{flex:1;min-height:120px;overflow:auto;background:#04140c;border:2px inset #526a5b}.amp-song{display:block;color:#91d4a6;background:transparent;border:0;text-align:left;width:100%;padding:5px 7px;font:11px "Courier New"}.amp-song:hover,.amp-song.active{background:#23402f;color:#e5ffed}.amp-help{color:#bed0c0;font:10px monospace}.app-message{line-height:1.6}.viewer-placeholder{height:100%;min-height:180px;display:grid;place-items:center;background:linear-gradient(150deg,#435950,#10262d);color:#dbe7dc;text-align:center;font:16px "Courier New"}.wall-choice{border:2px outset #ddd;background:#d9d9d9;padding:10px;margin:5px}.wall-choice.active{border:2px inset #777}.props{font:12px "Courier New";line-height:2}.props b{font-family:Tahoma}.desktop-note{font:11px "Courier New";color:#576457}@media(max-width:700px){.desktop-icons{max-width:98%;gap:2px}.desk-icon{width:80px;height:66px}.window{width:calc(100vw - 8px)!important;height:calc(100dvh - 45px)!important;left:4px!important;top:3px!important}.wallpaper-label{font-size:26px;right:4%;bottom:13%}.login-header{top:6%;left:5%}.login-header h1{font-size:29px}.login-main{top:48%}.user-card{padding:10px 5px;min-height:100px}.login-footer{bottom:18px}.amp{padding:5px}.amp-transport button{padding:8px 11px}}

/* ZebraOS window outline: intentionally stepped like early desktop window managers. */
/* Opacity on the entire window is non-overridable by child visibility:visible.
   Media elements (images, canvases, video) must NEVER paint above the OS
   wireframe animation before the complete window is revealed. */
.window.window-pending{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
.window:not(.window-pending){opacity:1}
.window-ghost{position:absolute;box-sizing:border-box;pointer-events:none;border:2px solid #f2f2e8;outline:1px solid #1b1b1b;background:transparent;box-shadow:1px 1px 0 #3a3a3a;transition:left 520ms steps(12,end),top 520ms steps(12,end),width 520ms steps(12,end),height 520ms steps(12,end);will-change:left,top,width,height}
@media(prefers-reduced-motion:reduce){.window-ghost{transition:none}}

/* ZebraOS v0.6 — custom icon set from the studio (pixel-style sprite sheet). */
.os-icon-graphic{
  display:inline-block;
  flex:none;
  vertical-align:middle;
  background-repeat:no-repeat;
  image-rendering:pixelated;
  user-select:none;
  -webkit-user-select:none;
  pointer-events:none;
}
.desk-icon{height:89px;gap:4px}
.desk-symbol{height:42px;min-height:42px;width:46px;display:flex;align-items:center;justify-content:center;line-height:1}
.desk-symbol>.os-icon-graphic{filter:drop-shadow(1px 2px 1px rgba(0,0,0,.42))}
.desk-icon span:last-child{font-size:11px;line-height:14px}
.file-symbol{height:34px;min-height:34px;display:flex;align-items:center;justify-content:center}
.file-entry{gap:6px;min-height:84px}
.start-options button{display:flex;align-items:center;gap:9px}
.start-options button span{padding-left:0}
.start-options button>.os-icon-graphic{padding:0}
.start-button{display:flex;align-items:center;gap:3px}
.start-z{background:transparent;padding:0;margin-right:3px;display:flex;align-items:center}
.titlebar>.os-icon-graphic{display:flex;align-self:center}
.tray-icon{display:flex;align-items:center}
@media(max-width:700px){
 .desk-icon{height:84px;width:84px;padding:6px 2px}
 .desk-symbol{height:42px;min-height:42px}
 .desktop-icons{gap:2px}
 .file-entry{min-height:86px}
}

/* ZebraOS boot sequence v0.7 — dark screen, studio logo, no CRT parody. */
#power-screen,#boot-screen,#session-boot-screen{background:#000;color:#fff}
#power-screen.active{display:grid;place-items:center}
.zboot-power{
  appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:18px;width:144px;height:144px;border:1px solid #383838;background:#060606;
  color:#eee;border-radius:50%;outline:none;
  box-shadow:0 0 0 9px rgba(255,255,255,.012),0 0 65px rgba(255,255,255,.045);
  font:12px "Courier New",monospace;letter-spacing:3px;
  transition:border-color 170ms ease,box-shadow 170ms ease;
  -webkit-tap-highlight-color:transparent
}
.zboot-power:hover,.zboot-power:focus-visible{border-color:#a7a7a7;box-shadow:0 0 0 9px rgba(255,255,255,.025),0 0 75px rgba(255,255,255,.09)}
.zboot-power:active{background:#141414}
.zboot-power-symbol{font:normal 62px Arial,sans-serif;line-height:1;color:#e8e8e8}
.zboot-power-label{font-size:11px;color:#a6a6a6}
#boot-screen.active,#session-boot-screen.active{display:grid;place-items:center}
.zboot-logo-frame{width:min(76vw,820px);max-width:calc(100% - 40px);display:grid;place-items:center;animation:zboot-sequence 5.15s ease-in-out forwards}
.zboot-logo{width:100%;height:auto;object-fit:contain;display:block;image-rendering:auto}
@keyframes zboot-sequence{
  0%,5%{opacity:0;transform:scale(.965);filter:blur(5px)}
  28%{opacity:1;transform:scale(1);filter:blur(0)}
  72%{opacity:1;transform:scale(1);filter:blur(0)}
  89%,100%{opacity:0;transform:scale(1.015);filter:blur(1px)}
}
.zboot-session-content{display:flex;flex-direction:column;align-items:center;gap:25px;animation:zboot-session-reveal 3.6s ease-in-out forwards}
.zboot-session-logo{width:min(40vw,340px);max-width:calc(100% - 40px);height:auto;display:block;opacity:.86}
#zboot-session-label{font:700 12px/1.3 Tahoma,Verdana,Arial,sans-serif;letter-spacing:.6px;color:#a9a9a9}
@keyframes zboot-session-reveal{
  0%,8%{opacity:0;transform:translateY(7px)}
  30%,74%{opacity:1;transform:none}
  96%,100%{opacity:0;transform:none}
}
#login-screen.active{animation:zboot-login-reveal 500ms ease-out both}
@keyframes zboot-login-reveal{from{opacity:0}to{opacity:1}}
@media(max-width:700px){
 .zboot-power{width:124px;height:124px}
 .zboot-logo-frame{width:89vw}
 .zboot-session-logo{width:68vw}
}
@media(prefers-reduced-motion:reduce){
 .zboot-logo-frame,.zboot-session-content,#login-screen.active{animation:none}
 .zboot-power{transition:none}
}

/* ZebraOS v0.8 — Personalize your desktop (one session at a time). */
.wallpaper-heading{display:flex;align-items:center;gap:13px;padding:5px 1px 12px;border-bottom:1px solid #adadad}
.wallpaper-heading-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border:2px outset #fafafa;background:#d4dad7;font-size:23px;color:#173b46}
.wallpaper-heading-text h3{font-size:15px;margin:0 0 5px;font-weight:700}
.wallpaper-heading-text p{font-size:11px;color:#4f5858;margin:0}
.wallpaper-stage{display:flex;align-items:center;gap:17px;padding:15px 0 16px}
.wallpaper-preview{position:relative;flex:none;width:min(45%,260px);aspect-ratio:16/10;border:5px ridge #9ba5a6;box-shadow:1px 2px 0 #535858,3px 4px 0 #313b3b;background-size:cover;overflow:hidden}
.wallpaper-preview-sticker{position:absolute;right:5px;bottom:5px;max-width:94%;background:rgba(0,0,0,.58);color:white;padding:3px 5px;font:9px "Courier New",monospace;text-shadow:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;letter-spacing:.5px}
.wallpaper-controls{display:flex;flex:1;min-width:0;flex-direction:column;gap:8px}
.wallpaper-label-setting{font-size:12px;font-weight:bold}
.wallpaper-mode{height:35px;border:2px inset #e8e8e8;background:#fff;padding:5px 7px;color:#202020;max-width:100%}
.wallpaper-mode:focus-visible{outline:1px solid #174e99}
.wallpaper-hint{margin:0;font:10px/1.45 Tahoma,Arial,sans-serif;color:#626666}
.wallpaper-section-head{display:flex;align-items:center;gap:12px;justify-content:space-between;border-top:1px solid #aaa;padding:13px 1px 9px}
.wallpaper-section-head h4{font-size:13px;margin:0}
.wallpaper-section-head .classic-button{padding:6px 10px;white-space:nowrap}
.wallpaper-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(102px,1fr));gap:9px;align-items:start}
.wallpaper-thumb{display:flex;min-width:0;flex-direction:column;align-items:stretch;gap:5px;max-width:100%;border:2px solid transparent;padding:4px;background:transparent;color:#222;text-align:left}
.wallpaper-thumb:hover{background:#e2e9e9;border-color:#879a9e}
.wallpaper-thumb.active{background:#cbdadd;border:2px solid #216a83;box-shadow:inset 0 0 0 1px #fff}
.wallpaper-thumb-photo{display:block;width:100%;height:72px;object-fit:cover;background:#15232a;border:1px solid #9a9a9a}
.wallpaper-thumb-caption{font-size:10px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.default-wallpaper-visitor{background:linear-gradient(125deg,#475b52 0%,#7a897c 35%,#152d35 36%,#152a30 65%,#0c1b21 100%)}
.default-wallpaper-zebra{background:linear-gradient(130deg,#162f35 0%,#273a42 50%,#091d26 51%,#30444b 100%)}
.default-wallpaper-admin{background:linear-gradient(145deg,#122948,#4c6174 50%,#091b32 51%,#13264d 100%)}
.default-wallpaper-daniel{background:linear-gradient(125deg,#482e40,#c3a2b2 48%,#3d2744 49%,#171e2d)}
.wallpaper-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0 3px;border-top:1px solid #aaa;margin-top:12px}
.wallpaper-status{font:10px/1.5 "Courier New",monospace;color:#4c5b59}
.wallpaper-status.error{color:#a12727}
.wallpaper-remove{font-size:10px}
.wallpaper-remove:disabled{opacity:.55;cursor:default}
@media(max-width:700px){
  .wallpaper-heading{gap:9px}
  .wallpaper-stage{flex-direction:column;align-items:stretch;gap:13px}
  .wallpaper-preview{width:100%;max-width:290px;margin:auto}
  .wallpaper-controls{width:100%}
  .wallpaper-section-head{gap:8px}
  .wallpaper-section-head h4{font-size:12px}
  .wallpaper-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  .wallpaper-thumb{padding:3px}
  .wallpaper-thumb-photo{height:62px}
  .wallpaper-footer{align-items:flex-start;flex-direction:column}
}

/* ZebraOS v0.81 — explicit per-thumbnail wallpaper deletion. */
.wallpaper-thumb-wrap{position:relative;min-width:0}
.wallpaper-thumb-wrap>.wallpaper-thumb{width:100%}
.wallpaper-thumb-delete{position:absolute;top:1px;right:1px;width:25px;height:25px;display:flex;align-items:center;justify-content:center;border:2px outset #fafafa;background:#cbcbcb;color:#801b1b;font:bold 20px/1 Tahoma,Arial,sans-serif;z-index:2;padding:0;cursor:pointer}
.wallpaper-thumb-delete:hover{background:#aa3b32;color:#fff}
.wallpaper-thumb-delete:active{border-style:inset}
.wallpaper-delete-hint{margin:4px 0 8px}

/* ZebraOS v0.9 — a live read-only GitHub volume inside My Computer. */
.github-drive-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;border-bottom:1px solid #8e9996;padding-bottom:8px;margin-bottom:8px}
.github-drive-toolbar button{min-height:29px}
/* Square Windows-style navigation keys; use existing classic relief. */
.github-drive-toolbar .github-nav-button{
 display:inline-flex;align-items:center;justify-content:center;
 width:36px;min-width:36px;height:32px;min-height:32px;padding:0;
 border:2px outset #eee;border-radius:0!important;
 background:#c6c6c6;color:#111;box-shadow:none;font:20px/1 Tahoma,Arial,sans-serif
}
.github-drive-toolbar .github-nav-button:hover{background:#d4d4d4}
.github-drive-toolbar .github-nav-button:active{border-style:inset}
.github-drive-toolbar .github-nav-button svg{
 display:block;width:20px;height:20px;flex:none;fill:none;
 stroke:#191919;stroke-width:2.2;stroke-linecap:square;stroke-linejoin:miter
}
@media(max-width:700px){
 .github-drive-toolbar .github-nav-button{width:38px;min-width:38px;height:35px;min-height:35px;padding:0}
}
.github-drive-toolbar button:nth-last-child(1){margin-left:auto;background:#d5e4db}
.github-drive-hint{font:11px/1.55 Tahoma,Arial,sans-serif;color:#4a5a5c;margin:9px 0}
.github-drive-state,.github-drive-empty{background:#eceeed;border:1px inset #abb7b2;color:#2c3636;padding:16px 12px;font:11px/1.5 "Courier New",monospace}
.github-drive-error{color:#8f1c18!important}
.github-drive-list{padding-bottom:8px}
.github-file-entry{transition:background 100ms linear;min-width:0}
.github-file-entry:hover{background:#d3e3df}
.github-file-name{font-size:11px!important;font-weight:500;line-height:1.3;overflow-wrap:anywhere}
.github-file-size{font:10px "Courier New",monospace;color:#6d7373}
.github-drive-count{font:10px "Courier New",monospace;color:#66736f;border-top:1px solid #a9b4b1;margin-top:12px;padding-top:6px}
.github-preview-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px}
.github-download{display:inline-flex;align-items:center;text-decoration:none;color:#1c292d}
.github-image-preview{display:block;max-width:100%;max-height:calc(100% - 45px);height:auto;width:auto;object-fit:contain;margin:0 auto;border:1px solid #999;image-rendering:auto}
.github-audio-preview{display:block;width:100%;margin-top:22px}
.github-video-preview{display:block;width:100%;max-height:calc(100% - 55px)}
.github-text-preview{margin:0;background:#fff;border:2px inset #b0b0b0;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;max-height:calc(100% - 44px);padding:10px;color:#202020;font:12px/1.45 "Courier New",monospace;user-select:text;-webkit-user-select:text}
@media(max-width:700px){
 .github-drive-toolbar button{padding:6px;min-height:35px}
 .github-drive-toolbar button:nth-last-child(1){margin-left:0}
 .github-drive-hint{font-size:10px}
 .github-file-size{font-size:9px}
}

/* ZebraOS v1.0: persistent local filesystem windows. */
.local-disk-toolbar{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding-bottom:9px;border-bottom:1px solid #9ca5a6;margin-bottom:8px}
.local-disk-toolbar button{min-height:29px}
.local-disk-hint{font:11px/1.45 Tahoma,Arial,sans-serif;color:#586469;margin:8px 0 13px}
.local-drive-root{grid-template-columns:repeat(auto-fill,minmax(126px,1fr));gap:12px}
.local-drive-item{min-height:118px}
.local-drive-item .file-symbol{height:42px;display:flex;align-items:center;justify-content:center}
.local-file-list{grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:5px}
.local-file-card{position:relative;display:flex;flex-direction:column;min-width:0;align-items:center;padding:2px;border:1px solid transparent}
.local-file-card:hover{background:#dfe8e8;border:1px dotted #769294}
.local-file-open{width:100%;padding:5px 4px 3px;min-height:84px}
.local-file-open .file-symbol{height:34px;display:flex;align-items:center;justify-content:center}
.local-file-name{max-width:100%;overflow-wrap:anywhere;line-height:1.3}
.local-file-more{position:absolute;top:1px;right:0;width:24px;height:23px;font-size:18px;line-height:14px;border:2px outset white;background:#d2d2d2;cursor:pointer;color:#263e45}
.local-file-more:hover{background:#b4d2d3}
.local-file-menu{position:absolute;top:23px;right:0;display:flex;flex-direction:column;gap:1px;z-index:999;background:#c3c9c7;border:2px outset #eef2ed;box-shadow:3px 4px 0 #3337;padding:4px;min-width:142px}
.local-file-menu button{text-align:left;white-space:nowrap;border:0;background:transparent;padding:8px 6px;font-size:11px}
.local-file-menu button:hover{background:#1b3b82;color:#fff}
.local-disk-empty{padding:24px 12px;border:2px inset #ddd;background:#eeefed;text-align:center;font:11px "Courier New",monospace;color:#4a5a5e}
.local-drop-zone{margin-top:14px;border:2px dashed #aebebf;background:#e8eeee;text-align:center;padding:13px 6px;font:11px "Courier New",monospace;color:#617273}
.local-drop-zone.drag-over{background:#cae7df;border-color:#2b796a}
.local-disk-status{margin-top:11px;padding-top:6px;border-top:1px solid #adb8b3;font:10px "Courier New",monospace;color:#697874}
.local-disk-error{padding:9px;color:#a31b17;border:1px solid #b3544c;background:#fee9e6;font-size:11px}
.local-preview-tools{display:flex;gap:8px;margin-bottom:12px}
.local-modal{position:absolute;inset:0;background:rgba(0,0,0,.28);display:grid;place-items:center;z-index:9999;padding:12px}
.local-modal-pane{width:min(300px,100%);padding:14px;border:3px outset #f4f4f4;background:#c0c0c0;box-shadow:2px 4px 0 #30303088}
.local-modal-pane h3{margin:0 0 12px;font-size:13px}
.local-modal-input{width:100%;padding:6px;font:12px Tahoma,Arial,sans-serif;border:2px inset #fff;background:#fff}
.local-modal-actions{display:flex;gap:7px;justify-content:flex-end;margin-top:12px}
.local-modal-actions button{min-width:76px}
@media(max-width:700px){
 .local-disk-toolbar button{min-height:36px;padding:5px 8px}
 .local-file-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
 .local-file-card{padding:0}
 .local-file-more{width:28px;height:28px}
 .local-drive-root{grid-template-columns:repeat(2,minmax(0,1fr))}
 .local-drive-item{min-height:102px}
 .local-disk-hint{font-size:10px}
 .local-drop-zone{display:none}
}

/* Connexion admin : cadre et composants des fenêtres natives ZebraOS. */
.admin-login-mask{position:absolute;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;padding:14px;background:rgba(0,0,0,.48)}
.admin-login-dialog{display:flex;flex-direction:column;width:min(468px,100%);max-height:calc(100dvh - 28px);margin:0;min-width:0;min-height:0;padding:0;overflow:hidden;border:3px outset #f4f4f4;border-radius:0;background:#c0c0c0;color:#111;box-shadow:2px 3px 2px #0005;font:12px Tahoma,Arial,sans-serif}
.admin-login-dialog .titlebar{cursor:default;touch-action:auto}
.admin-login-dialog .titlebuttons button{cursor:pointer}
.admin-login-content{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;padding:19px 18px 14px;background:#f4f4f4}
.admin-login-heading{display:flex;align-items:center;gap:13px;margin:0 0 22px}
.admin-login-symbol{flex:0 0 48px;width:48px;height:48px;display:grid;place-items:center}
.admin-login-text{margin:0 0 6px;font:bold 14px/1.3 Tahoma,Arial,sans-serif;color:#111}
.admin-login-intro{margin:0;font:12px/1.45 Tahoma,Arial,sans-serif;color:#333}
.admin-login-field-label{display:block;margin:0 0 6px;font:12px Tahoma,Arial,sans-serif}
.admin-login-input{display:block;width:100%;height:30px;min-height:30px;padding:4px 7px;border:2px inset #e8e8e8;border-radius:0;background:#fff;color:#111;outline-offset:1px;font:13px Tahoma,Arial,sans-serif}
.admin-login-input:focus-visible{outline:1px solid #234e91}
.admin-login-error{min-height:29px;padding-top:7px;color:#a11d1d;font:11px/1.45 Tahoma,Arial,sans-serif}
.admin-login-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:11px;border-top:1px solid #ccc}
.admin-login-actions .classic-button{min-width:103px;max-width:none;min-height:28px;height:auto;padding:4px 11px;border:2px outset #eee;border-radius:0;background:#c6c6c6;box-shadow:none;color:#111;font:12px Tahoma,Arial,sans-serif}
.admin-login-actions .classic-button:hover{background:#d4d4d4}
.admin-login-actions .classic-button:active{border-style:inset}
.admin-login-actions .classic-button:disabled{opacity:.65;cursor:progress}
@media(max-width:700px){
 .admin-login-mask{padding:12px}
 .admin-login-content{padding:18px 14px 13px}
 .admin-login-heading{gap:10px;margin-bottom:18px}
 .admin-login-actions .classic-button{min-width:94px}
}
.manager-intro{padding:11px;margin-bottom:12px;background:#0e2731;border:2px inset #bed3d1;color:#e4f3f0}
.manager-title{font:bold 14px "Courier New",monospace;letter-spacing:1.2px}
.manager-intro p{font:11px/1.5 Tahoma,Arial,sans-serif;color:#aecac8;margin:8px 0 0}
.manager-card{padding:11px;margin:8px 0;border:1px solid #a0aaaa;background:#e7ece9;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.manager-card h3{margin:0;font:13px "Courier New",monospace;width:100%;color:#15434d}
.manager-card p{margin:0;flex:1;min-width:155px;font:11px/1.45 Tahoma,Arial,sans-serif;color:#485c60}
.manager-card button{font:11px "Courier New",monospace;max-width:100%;padding:8px 10px}
.manager-disclaimer{font:10px/1.4 "Courier New",monospace;color:#7e473e;border-top:1px solid #a4b0b1;padding-top:8px}
@media(max-width:700px){
 .manager-card{flex-direction:column;align-items:flex-start}
 .manager-card p{width:100%}
}

/* ZebraOS v1.2 — hiérarchie visuelle du gestionnaire Admin. */
.manager-warning{font:11px/1.5 Tahoma,Arial,sans-serif;color:#6e302a;background:#f6ece6;border-left:3px solid #b4684c;padding:8px 10px;margin-bottom:12px}
.manager-card{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;align-items:center}
.manager-step-number{display:flex;align-items:center;justify-content:center;width:26px;height:26px;color:#f4f4f4;background:#255564;font:bold 13px "Courier New",monospace}
.manager-step-content{min-width:0;display:flex;flex-direction:column;gap:4px}
.manager-step-content h3{width:auto;margin:0;font-size:12px}
.manager-step-content p{margin:0;width:auto;font-size:11px;min-width:0}
.manager-card button{white-space:normal;max-width:160px;font-size:10px;text-align:center}
@media(max-width:700px){
 .manager-card{grid-template-columns:25px minmax(0,1fr);gap:8px;align-items:start}
 .manager-card button{grid-column:2;max-width:none;width:100%}
 .manager-step-number{width:25px;height:25px}
 .manager-warning{font-size:10px}
 .desk-icon span:last-child{overflow-wrap:anywhere}
}

/* Accès direct aux dossiers publics du studio. */
.manager-publish-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0 15px}
.manager-publish-links button{white-space:normal;min-height:36px;padding:6px 8px;font:bold 10px "Courier New",monospace;text-align:center}
@media(max-width:700px){.manager-publish-links{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Bureau GitHub v2.0 — icônes importées via icone.png dans les dossiers. */
.bureau-item-symbol{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px}
.bureau-custom-icon{display:block;object-fit:contain;image-rendering:auto;max-width:100%;flex-shrink:0;filter:drop-shadow(1px 2px 1px #0005)}
.desk-user-file .bureau-item-symbol{width:40px;height:40px;min-width:40px;min-height:40px}
.desk-user-file .bureau-custom-icon{width:40px;height:40px}
.desk-user-file{min-height:82px;height:auto}
.desktop-icons{max-width:calc(100% - 24px);overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.github-file-entry>.bureau-item-symbol{min-height:32px}
@media(max-width:700px){
 .desktop-icons{max-width:calc(100% - 12px)}
 .desk-user-file{min-height:80px}
}

/* ZebraAMP 3.0 — interface rétro compacte et fonctionnelle */
.amp3{display:flex;flex-direction:column;gap:8px;height:100%;min-height:0;background:#252e2a;color:#a9e3b8;padding:9px;font:11px "Courier New",monospace}
.amp3 *{box-sizing:border-box}
.amp3-head{display:flex;justify-content:space-between;align-items:center;gap:6px;border:2px inset #788c7f;background:#102019;padding:9px;color:#92dba8;letter-spacing:1.3px}
.amp3-head strong{font-size:14px;white-space:nowrap}
.amp3-head span{font-size:9px;white-space:nowrap}
.amp3-screen{background:#04120c;border:2px inset #749682;display:grid;gap:7px;padding:9px;min-height:74px}
.amp3-marquee{color:#93e5ad;letter-spacing:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:bold}
.amp3-time{font-size:15px;letter-spacing:2px}
.amp3 input[type=range]{width:100%;accent-color:#79d1a0;cursor:pointer}
.amp3-spectrum{height:67px;width:100%;display:block;background:#04140d;border:2px inset #61796c}
.amp3-controls{display:flex;align-items:stretch;flex-wrap:wrap;gap:5px}
.amp3-btn,.amp3-item-play,.amp3-small{min-height:29px;border:2px outset #e3ebe4;padding:6px 8px;background:#c0c9c3;color:#172620;font:10px "Courier New",monospace;cursor:pointer}
.amp3-btn:active,.amp3-item-play:active,.amp3-small:active{border-style:inset}
.amp3-btn:disabled,.amp3-small:disabled{opacity:.45;cursor:default}
.amp3-btn.enabled{background:#639e7c;color:#071e12}
.amp3-play{font-size:15px;font-weight:bold;min-width:42px}
.amp3-extras{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.amp3-extras label{display:flex;align-items:center;gap:5px;flex:1;min-width:130px;font-size:11px}
.amp3-extras label input{min-width:75px;flex:1}
.amp3-eq-panel{background:#0f1b17;border:1px solid #446451;padding:7px;color:#a9ddb6}
.amp3-eq-panel summary{cursor:pointer;letter-spacing:.8px;font-size:11px;user-select:none}
.amp3-preset-row{display:flex;align-items:center;gap:9px;margin:12px 0}
.amp3-preset-row select,.amp3-select{min-width:0;background:#0a1b13;color:#b8eac6;border:2px inset #6e8575;padding:7px;font:11px "Courier New",monospace}
.amp3-preset-row select{flex:1}
.amp3-eq-bands{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.amp3-eq-band{display:grid;gap:5px;align-items:center;text-align:center;font-size:9px}
.amp3-eq-band input{width:100%}
.amp3-eq-gain{color:#d8f9df}
.amp3-eq-name{font-size:9px;white-space:nowrap}
.amp3-playlist-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;border-top:1px solid #526e5d;padding-top:9px}
.amp3-playlist-tools>span{font-weight:bold;letter-spacing:1px}
.amp3-select{flex:1;min-width:115px}
.amp3-list{flex:1;min-height:100px;overflow-y:auto;overflow-x:hidden;background:#06140c;border:2px inset #657c6d;scrollbar-color:#527b60 #092319}
.amp3-track{display:flex;align-items:center;gap:5px;padding:4px 5px;border-bottom:1px solid #1c3726;min-height:36px}
.amp3-track:hover{background:#1c3927}
.amp3-track.active{background:#255038}
.amp3-item-play{min-width:30px;min-height:26px;padding:4px;color:#16452b}
.amp3-track-info{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.amp3-track-title{font:11px "Courier New",monospace;color:#b9e9c3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.amp3-track-source{font:8px "Courier New",monospace;color:#69987a}
.amp3-small{width:25px;min-width:25px;min-height:26px;padding:2px;font-size:13px}
.amp3-danger{color:#982a27}
.amp3-empty{padding:20px 12px;color:#7fa68b;font:11px/1.55 "Courier New",monospace}
.amp3-bottom{display:flex;gap:6px;flex-wrap:wrap}
.amp3-import{background:#9dceb1;font-weight:bold}
.amp3-status{font:10px/1.4 "Courier New",monospace;color:#a9caaf;min-height:15px}
.amp3-eq-panel[open]{flex:none}
@media(max-width:700px){
 .amp3{gap:6px;padding:5px}
 .amp3-head{padding:7px}
 .amp3-head strong{font-size:12px}
 .amp3-head span{font-size:8px}
 .amp3-controls{gap:4px}
 .amp3-controls .amp3-btn{padding:6px 5px}
 .amp3-playlist-tools{gap:4px}
 .amp3-select{flex-basis:55%}
 .amp3-eq-name{font-size:7px}
 .amp3-list{min-height:100px}
 .amp3-spectrum{height:50px}
}

/* ZebraVIS — cinq animations réactives au spectre de ZebraAMP. */
.zviz{display:flex;flex-direction:column;gap:9px;height:100%;min-height:0;background:#12171c;color:#b7e3cd;font:11px "Courier New",monospace;padding:9px}
.zviz-top{display:flex;align-items:center;justify-content:space-between;background:#061c19;border:2px inset #446957;padding:8px;gap:7px}
.zviz-brand{font-weight:bold;letter-spacing:2px;font-size:13px;color:#b9f6d6}
.zviz-led{font-size:9px;color:#748c8a}
.zviz-led.on{color:#7cffa8}
.zviz-led.pulsing{filter:drop-shadow(0 0 5px #4bf997)}
.zviz-stage{position:relative;flex:1;min-height:175px;background:#02040b;border:3px ridge #637d7a;overflow:hidden}
.zviz-canvas{width:100%;height:100%;display:block}
.zviz-overlay{pointer-events:none;position:absolute;inset:0;display:grid;place-items:center;text-align:center;transition:opacity .4s;background:rgba(0,0,0,.13)}
.zviz-no-signal{padding:6px 13px;border:1px solid #3b6957;background:#09130fcb;color:#8bc7a5;font:10px "Courier New",monospace}
.zviz-controls{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}
.zviz-step,.zviz-auto,.zviz-fullscreen,.zviz-connect{border:2px outset #cbd5d2;background:#bac7c2;color:#18292a;min-height:31px;padding:5px 9px;font:10px "Courier New",monospace}
.zviz-mode-name{min-width:170px;flex:1;text-align:center;color:#b4e1d0;font-size:11px}
.zviz-footer{border-top:1px solid #34524e;padding-top:7px;display:flex;justify-content:space-between;gap:7px;align-items:center}
.zviz-footer span{color:#819c94;font-size:9px}
@media(max-width:700px){.zviz{padding:5px;gap:6px}.zviz-stage{min-height:150px}.zviz-mode-name{min-width:120px;font-size:10px}.zviz-top{padding:6px}}

/* Fenêtres ZebraOS 3.1 — maximize / restore / 8 poignées de redimensionnement. */
.window.maximized{
 left:0!important;top:0!important;
 width:100%!important;height:calc(100% - 36px)!important;
 border-width:2px;
}
.window.maximized .window-resize-handle{display:none}
.window-resize-handle{position:absolute;z-index:6;touch-action:none;user-select:none;-webkit-user-select:none;background:transparent}
.window-resize-handle.resize-n{top:0;left:10px;right:10px;height:6px;cursor:n-resize}
.window-resize-handle.resize-s{bottom:0;left:10px;right:10px;height:7px;cursor:s-resize}
.window-resize-handle.resize-w{left:0;top:10px;bottom:10px;width:6px;cursor:w-resize}
.window-resize-handle.resize-e{right:0;top:10px;bottom:10px;width:6px;cursor:e-resize}
.window-resize-handle.resize-nw{top:0;left:0;width:13px;height:13px;cursor:nw-resize;z-index:7}
.window-resize-handle.resize-ne{top:0;right:0;width:13px;height:13px;cursor:ne-resize;z-index:7}
.window-resize-handle.resize-sw{bottom:0;left:0;width:13px;height:13px;cursor:sw-resize;z-index:7}
.window-resize-handle.resize-se{bottom:0;right:0;width:19px;height:19px;cursor:se-resize;z-index:8}
.window:not(.maximized) .window-resize-handle.resize-se:after{
 content:"";position:absolute;right:4px;bottom:4px;width:11px;height:11px;
 background:repeating-linear-gradient(135deg,transparent 0 2px,#666 2px 3px,transparent 3px 5px);
 opacity:.75;pointer-events:none;
}
.titlebar{cursor:move}
.window.maximized .titlebar{cursor:default}
.titlebuttons button{font-family:Tahoma,Arial,sans-serif;font-size:15px;font-weight:bold}
.titlebuttons [data-max]{font-size:15px;line-height:12px}
.window .window-body.image-viewer-body{
 display:flex;flex-direction:column;min-width:0;min-height:0;
 padding:8px;overflow:auto;gap:6px;
}
.image-viewer-body .github-preview-toolbar{flex:none;margin-bottom:0}
.image-viewer-body .github-image-preview{
 display:block;flex:1 1 auto;width:100%;height:100%;min-height:0;
 max-width:100%;max-height:none;object-fit:contain;
 border:0;margin:0 auto;
}
@media(max-width:700px){
 .window-resize-handle{display:none}
 .window.maximized{left:4px!important;top:3px!important;width:calc(100vw - 8px)!important;height:calc(100dvh - 45px)!important}
 .titlebar{cursor:default}
}

/* ZebraOS connexion XP v3.2 — vraie grille horizontale, sans cartes.
   Logo centré → instruction → quatre grandes vignettes → bande d'alimentation. */
#login-screen{
  background:linear-gradient(110deg,#80a7ef 0%,#6f98e9 22%,#5f87dc 70%,#5984d6 100%);
  color:#fff;
  isolation:isolate;
}
#login-screen::after{
  content:"";position:absolute;inset:0;z-index:5;pointer-events:none;
  background:repeating-linear-gradient(0deg,transparent 0px,transparent 3px,rgba(25,36,107,.065) 3px,rgba(25,36,107,.065) 4px);
  opacity:.48;
}
#login-screen .login-top-band{
 position:absolute;left:0;right:0;top:0;height:clamp(30px,6.2vh,56px);
 background:linear-gradient(180deg,#07319e,#0634af);
 border-bottom:2px solid #a9ccff;
 box-shadow:0 1px 0 #4578df;
}
#login-screen .login-content{
 position:absolute;left:50%;top:45%;
 transform:translate(-50%,-50%);
 width:min(94vw,880px);max-height:calc(100% - 150px);
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:0;text-align:center;
}
#login-screen .login-header{
 position:static;display:flex;align-items:center;justify-content:center;
 margin:0 0 15px;width:min(570px,80vw);height:auto;
}
#login-screen .login-brand-logo{
 display:block;width:min(460px,72vw);height:auto;max-height:116px;
 object-fit:contain;mix-blend-mode:screen;filter:drop-shadow(0 2px 2px rgba(16,48,136,.2));
}
#login-screen .login-prompt{
 margin:0 0 38px;max-width:90%;
 font:17px/1.4 Tahoma,Arial,sans-serif;
 text-shadow:0 1px 1px #274b93;
 color:#fff;
}
#login-screen .login-users{
 display:flex;flex-wrap:nowrap;align-items:flex-start;justify-content:center;
 width:100%;gap:clamp(14px,3.8vw,60px);
 padding:4px 8px 12px;overflow-x:auto;overflow-y:hidden;
 scrollbar-width:thin;scrollbar-color:#d6e7ff transparent;
}
#login-screen .user-card{
 flex:0 0 clamp(118px,15vw,150px);
 padding:3px;min-height:0;display:flex;flex-direction:column;align-items:center;
 gap:7px;color:white;border:0;outline:none;border-radius:0;box-shadow:none;
 background:transparent;cursor:pointer;transition:none;
 font-family:Tahoma,Arial,sans-serif;
}
#login-screen .user-card:hover,#login-screen .user-card:focus-visible{
 background:transparent;border:0;transform:none;
}
#login-screen .user-avatar{
 width:clamp(92px,10vw,116px);height:clamp(92px,10vw,116px);
 border:3px solid #f1f6ff;outline:1px solid #3154a3;
 box-shadow:0 2px 5px rgba(18,36,95,.45), inset 0 0 0 2px rgba(255,255,255,.2);
 background:linear-gradient(140deg,#a9c7f5 0%,#4477cf 75%,#2952ac 100%);
 display:flex;align-items:center;justify-content:center;
 position:relative;overflow:hidden;
}
#login-screen .user-avatar:after{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(125deg,rgba(255,255,255,.35),transparent 45%);
}
#login-screen .user-avatar .os-icon-graphic{
 flex:0 0 72px;image-rendering:auto;
 filter:drop-shadow(1px 2px 1px #244a8e88);
}
#login-screen .user-silhouette{display:block;width:88px;height:88px;position:relative;overflow:hidden}
#login-screen .user-silhouette:before{
 content:"";position:absolute;top:11px;left:30px;width:29px;height:29px;
 border-radius:50%;background:#fff;box-shadow:0 1px 3px #2f58a280;
}
#login-screen .user-silhouette:after{
 content:"";position:absolute;top:47px;left:7px;width:75px;height:68px;
 border-radius:40px 40px 13px 13px;background:#fff;
}
#login-screen .user-name{
 color:#fff;font:700 17px/1.2 Tahoma,Arial,sans-serif;
 text-shadow:0 1px 2px #284b90;margin-top:5px;
}
#login-screen .user-sub{
 color:#eef4ff;font:11px/1.3 Tahoma,Arial,sans-serif;
 text-shadow:0 1px #36599e;min-height:14px;letter-spacing:0;
}
#login-screen .user-card:hover .user-avatar,#login-screen .user-card:focus-visible .user-avatar{
 border-color:#fff2a3;outline-color:#e7a340;
 box-shadow:0 0 0 2px rgba(255,246,187,.45),0 3px 7px #2b479a7a;
}
#login-screen .login-footer{
 position:absolute;left:0;right:0;bottom:0;height:clamp(68px,11.5vh,110px);
 background:linear-gradient(180deg,#354cae,#273a93);
 border-top:2px solid #f0bb68;
 display:flex;align-items:center;justify-content:flex-start;
 padding:0 clamp(14px,5vw,72px);box-sizing:border-box;
}
#login-screen .login-power-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
#login-screen .login-power-button{
 border:1px solid #8da7e9;background:rgba(18,38,124,.28);color:white;
 font:12px Tahoma,Arial,sans-serif;padding:9px 12px;cursor:pointer;
 border-radius:2px;
}
#login-screen .login-power-button:hover,#login-screen .login-power-button:focus-visible{
 background:#486bc5;outline:1px solid #dae7ff;
}
@media(max-width:700px){
 #login-screen .login-content{top:43%;width:100%;max-height:calc(100% - 115px)}
 #login-screen .login-header{margin-bottom:12px}
 #login-screen .login-brand-logo{width:min(300px,76vw);max-height:75px}
 #login-screen .login-prompt{font-size:13px;margin:0 12px 24px}
 #login-screen .login-users{justify-content:space-evenly;gap:5px;padding:4px 4px 12px}
 #login-screen .user-card{flex:0 0 min(23.5vw,110px);padding:1px;gap:6px}
 #login-screen .user-avatar{width:clamp(58px,18vw,83px);height:clamp(58px,18vw,83px);border-width:2px}
 #login-screen .user-avatar .os-icon-graphic{transform:scale(.78)}
 #login-screen .user-silhouette{transform:scale(.72);flex:none}
 #login-screen .user-name{font-size:12px;margin-top:2px}
 #login-screen .user-sub{font-size:9px;line-height:1.2}
 #login-screen .login-footer{justify-content:center;padding:8px}
 #login-screen .login-power-actions{gap:7px}
 #login-screen .login-power-button{padding:8px 10px;font-size:11px}
}
@media(max-height:560px){
 #login-screen .login-content{top:45%}
 #login-screen .login-header{margin-bottom:6px}
 #login-screen .login-brand-logo{max-height:68px}
 #login-screen .login-prompt{margin-bottom:12px;font-size:12px}
 #login-screen .user-avatar{width:66px;height:66px}
 #login-screen .user-card{gap:4px}
 #login-screen .user-name{font-size:12px;margin:0}
 #login-screen .user-sub{font-size:9px}
 #login-screen .login-footer{height:58px}
}


/* ZebraOS CRT vivant — discret, au niveau du fond uniquement.
   Les applications et fenêtres restent nettes et interactives. */
.wallpaper{
 isolation:isolate;
 background-position:center center;
 background-repeat:no-repeat;
}
.wallpaper::before{
 content:"";
 position:absolute;
 inset:0;
 z-index:2;
 pointer-events:none;
 background:repeating-linear-gradient(
   to bottom,
   rgba(4,8,6,.18) 0px,
   rgba(4,8,6,.18) 1px,
   transparent 1px,
   transparent 4px
 );
 opacity:.22;
 will-change:background-position;
 animation:zebra-crt-scan 16s linear infinite;
}
.wallpaper::after{
 content:"";
 position:absolute;
 inset:0;
 z-index:1;
 pointer-events:none;
 background:
   radial-gradient(ellipse at 43% 37%,rgba(255,247,221,.115),transparent 70%),
   radial-gradient(ellipse at 50% 51%,transparent 47%,rgba(3,7,9,.19) 100%);
 mix-blend-mode:screen;
 opacity:.67;
 animation:zebra-crt-glow 8.5s ease-in-out infinite alternate;
}
.wallpaper .wallpaper-grain{
 position:absolute;
 inset:0;
 z-index:3;
 pointer-events:none;
 background-image:
  repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0px,transparent 1px,transparent 5px);
 opacity:.16;
 animation:zebra-crt-grain 21s steps(9,end) infinite;
}
@keyframes zebra-crt-scan{
 from{background-position:0 0;}
 to{background-position:0 24px;}
}
@keyframes zebra-crt-glow{
 from{opacity:.62;}
 to{opacity:.77;}
}
@keyframes zebra-crt-grain{
 from{background-position:0 0;}
 to{background-position:9px 0;}
}
@media(prefers-reduced-motion:reduce){
 .wallpaper::before,.wallpaper::after,.wallpaper .wallpaper-grain{animation:none!important;}
}

/* Zebra CRT lumineux v3.4 — lumière visible, sans flou ni filtre sur les fenêtres.
   Limité au fond de la session Zebra et désactivé si mouvement réduit. */
.wallpaper.wallpaper-zebra::before{
 background:repeating-linear-gradient(
  to bottom,
  rgba(6,10,8,.32) 0px,rgba(6,10,8,.32) 1px,
  rgba(255,255,239,.025) 2px,transparent 4px
 );
 opacity:.34;
 animation:zebra-crt-scan 14s linear infinite;
}
.wallpaper.wallpaper-zebra::after{
 background:
  radial-gradient(ellipse at 46% 35%,rgba(255,242,207,.30) 0%,rgba(255,225,175,.12) 44%,transparent 77%),
  radial-gradient(ellipse at 75% 72%,rgba(170,216,254,.13) 0%,transparent 65%),
  linear-gradient(to bottom,transparent 6%,rgba(255,251,228,.01) 35%,
    rgba(255,247,210,.32) 50%,rgba(255,247,218,.13) 56%,transparent 80%);
 background-size:100% 100%,100% 100%,100% 75%;
 background-repeat:no-repeat;
 background-position:center center,center center,center -100vh;
 mix-blend-mode:screen;
 opacity:.84;
 will-change:opacity,background-position;
 animation:zebra-crt-lightroll 18s linear infinite,zebra-crt-brighten 5.5s ease-in-out infinite alternate;
}
.wallpaper.wallpaper-zebra .wallpaper-grain{
 background-image:
  repeating-linear-gradient(90deg,rgba(255,255,255,.08) 0px,transparent 1px,transparent 5px);
 opacity:.27;
 animation:zebra-crt-grain 17s steps(9,end) infinite;
}
@keyframes zebra-crt-lightroll{
 from{background-position:center center,center center,center -100vh;}
 to{background-position:center center,center center,center 110vh;}
}
@keyframes zebra-crt-brighten{
 from{opacity:.72;}
 to{opacity:1;}
}
@media(prefers-reduced-motion:reduce){
 .wallpaper.wallpaper-zebra::before,
 .wallpaper.wallpaper-zebra::after,
 .wallpaper.wallpaper-zebra .wallpaper-grain{animation:none!important}
 .wallpaper.wallpaper-zebra::after{background-position:center,center,center center}
}

/* Zebra CRT v3.5 — plus rapide, moins lumineux, sans voile sur les couleurs */
.wallpaper.wallpaper-zebra::before{
 background:repeating-linear-gradient(to bottom,rgba(3,7,5,.21) 0 1px,rgba(255,253,238,.025) 2px,transparent 4px);
 opacity:.25;animation:zebra-crt-scan 9s linear infinite;
}
.wallpaper.wallpaper-zebra::after{
 background:
  radial-gradient(ellipse at 46% 35%,rgba(255,241,203,.12),rgba(255,234,195,.035) 44%,transparent 75%),
  linear-gradient(to bottom,transparent 14%,rgba(255,246,219,.02) 45%,rgba(255,246,219,.09) 50%,rgba(255,246,219,.02) 55%,transparent 87%);
 background-size:100% 100%,100% 65%;
 background-repeat:no-repeat;
 background-position:center,center -90vh;
 mix-blend-mode:soft-light;
 opacity:.49;
 animation:zebra-crt-softroll 10s linear infinite,zebra-crt-softpulse 4.1s ease-in-out infinite alternate;
}
.wallpaper.wallpaper-zebra .wallpaper-grain{
 background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0,transparent 1px,transparent 5px);
 opacity:.14;animation:zebra-crt-grain 12s steps(9,end) infinite;
}
@keyframes zebra-crt-softroll{
 from{background-position:center,center -90vh;}
 to{background-position:center,center 105vh;}
}
@keyframes zebra-crt-softpulse{from{opacity:.38}to{opacity:.55}}
@media(prefers-reduced-motion:reduce){
 .wallpaper.wallpaper-zebra::before,.wallpaper.wallpaper-zebra::after,
 .wallpaper.wallpaper-zebra .wallpaper-grain{animation:none!important}
 .wallpaper.wallpaper-zebra::after{background-position:center,center}
}

/* Panneau de configuration ZebraOS v3.5 : authentique rendu Windows classique */
.zcp,.zcp-dialog,.zcp-about,.zcp-welcome{
 font-family:Tahoma,Arial,sans-serif;font-size:12px;color:#171717;
}
.zcp{min-height:100%;display:flex;flex-direction:column;background:#f3f3f3;}
.zcp-description{padding:7px 4px 12px;border-bottom:1px solid #b7b7b7;}
.zcp-grid{
 display:grid;grid-template-columns:repeat(auto-fill,minmax(114px,1fr));
 justify-content:start;align-content:start;gap:9px 8px;padding:16px 5px 25px;flex:1;
}
.zcp-item{border:1px solid transparent;background:transparent;display:flex;flex-direction:column;align-items:center;gap:8px;padding:9px 4px 6px;min-height:100px;text-align:center;color:#161616;cursor:default}
.zcp-item.selected,.zcp-item:focus-visible{background:#dce8f8;border:1px dotted #193c75}
.zcp-symbol{
 width:47px;height:47px;display:grid;place-items:center;
 font:bold 38px/1 Georgia,"Segoe UI Symbol",serif;color:#162858;
 text-shadow:1px 1px #fff,2px 2px #666;
}
.zcp-item-title{line-height:1.3;max-width:115px}
.zcp-status{border-top:1px solid #bbb;padding:7px 4px;color:#555;font-size:11px}
.zcp-dialog{display:flex;flex-direction:column;min-height:100%;background:#c0c0c0;padding:4px 5px 0;gap:8px}
.zcp-tabs{display:flex;gap:0;align-items:end;margin:1px 4px -9px;position:relative;z-index:2;}
.zcp-tab{border:2px outset #fff;background:#c0c0c0;padding:5px 11px 4px;font:12px Tahoma,Arial;min-height:26px;white-space:nowrap}
.zcp-tab.active{border-bottom:2px solid #c0c0c0;font-weight:bold;position:relative;top:1px}
.zcp-field{border:2px groove #f6f6f6;padding:12px 10px 11px;min-width:0;background:transparent}
.zcp-field legend{font:11px Tahoma,Arial;padding:0 5px}
.zcp-help{font-size:11px;line-height:1.5;color:#333}
.zcp-check{display:flex;gap:8px;align-items:center;line-height:1.4;cursor:pointer}
.zcp-check input{width:15px;height:15px}
.zcp-sound-actions{display:flex;gap:9px;margin:10px 0}
.zcp-dialog-buttons{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:auto;padding:9px 2px 6px;border-top:1px solid #888}
.zcp-dialog-buttons .classic-button{min-width:75px;min-height:25px;font:12px Tahoma,Arial}
.zcp-dialog-buttons .classic-button:disabled{opacity:.55;cursor:default}
.zcp-about{display:flex;flex-direction:column;height:100%;background:#c0c0c0;padding:14px 10px 5px}
.zcp-about-head{display:flex;align-items:center;gap:14px;padding-bottom:16px}
.zcp-about-head img{width:124px;max-height:80px;object-fit:contain;background:#19334b}
.zcp-about-head strong{font-size:24px}
.zcp-about-head div div{margin-top:6px}
.zcp-about-details{flex:1;border-top:1px solid #888;padding:9px 5px;line-height:1.25}
.zcp-about-details p{margin:6px 0}
.zcp-about-details hr{border:0;border-top:1px solid #777;margin:15px 0}
.zcp-system-hero{display:flex;gap:18px;align-items:center;padding:17px 5px}
.zcp-system-hero img{width:135px;max-width:45%;height:73px;object-fit:contain;background:#203a55}
.zcp-system-hero p{margin:7px 0}
.zcp-system-hero strong{font-size:18px}
.zcp-dialog .zcp-field p{margin:8px 0}
.zcp-welcome{height:100%;display:flex;flex-direction:column;padding:10px;background:#c0c0c0}
.zcp-welcome-head{background:#fff9da;border:1px solid #ddd4ae;padding:13px 16px;min-height:104px}
.zcp-welcome-head h2{font:bold 24px Georgia,serif;margin:0 0 11px}
.zcp-welcome-head strong{display:block;margin-bottom:5px}
.zcp-welcome-head p{font-size:12px;margin:5px 0}
.zcp-welcome-middle{display:flex;flex:1;min-height:0;gap:11px;margin-top:12px}
.zcp-welcome-art{flex:1;min-width:0;display:grid;place-items:center;background:linear-gradient(150deg,#046e71,#178e88);border:2px inset #e9e9e9}
.zcp-welcome-art img{width:min(86%,265px);height:auto;max-height:100%;object-fit:contain}
.zcp-welcome-actions{display:flex;flex-direction:column;gap:8px;width:180px;max-width:45%}
.zcp-welcome-actions .classic-button{min-height:31px;text-align:center;font:11px Tahoma,Arial}
.zcp-date{gap:8px}
.zcp-datetime-content{margin-top:4px;min-height:0;flex:1}
.zcp-clock-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}
.zcp-calendar-field,.zcp-clock-field{height:260px;display:flex;flex-direction:column;min-width:0}
.zcp-month-controls{display:flex;align-items:center;justify-content:space-between;gap:3px;margin-bottom:6px}
.zcp-month-controls .classic-button{padding:2px 5px;min-width:22px;min-height:24px}
.zcp-month-title{text-align:center;white-space:nowrap;flex:1;font-weight:bold;font-size:11px}
.zcp-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:25px;background:white;border:2px inset #e9e9e9;padding:3px;gap:1px;flex:1;align-content:start}
.zcp-calendar .zcp-day-head{display:grid;place-items:center;background:#a3a3a3;color:#fff;font-size:10px}
.zcp-calendar .zcp-blank{min-width:0}
.zcp-calendar .zcp-day{border:1px solid transparent;background:transparent;padding:0;color:#111;font:11px Tahoma,Arial}
.zcp-calendar .zcp-day:hover,.zcp-calendar .zcp-day.selected{color:#fff;background:#153586;border:1px dotted #fff}
.zcp-clock-face{
 width:154px;height:154px;max-width:100%;aspect-ratio:1;align-self:center;
 border:2px inset #ddd;border-radius:50%;background:radial-gradient(circle,#f4f6f6,#dedede);
 position:relative;margin:2px 0 6px;
}
.zcp-clock-number{position:absolute;transform:translate(-50%,-50%);font:11px Tahoma,Arial}
.zcp-clock-hand{
 position:absolute;left:calc(50% - 1px);bottom:50%;width:2px;background:#071319;
 transform-origin:bottom center;border-radius:2px
}
.zcp-clock-hour{height:30%;width:4px;left:calc(50% - 2px);background:#133243}
.zcp-clock-minute{height:39%;background:#236c79;width:3px}
.zcp-clock-second{height:42%;background:#b42b20;width:1px}
.zcp-clock-center{position:absolute;left:calc(50% - 4px);top:calc(50% - 4px);width:8px;height:8px;border-radius:50%;background:#13202a}
.zcp-clock-digital{text-align:center;font:13px "Courier New",monospace;margin-bottom:5px}
.zcp-time-inputs{display:flex;align-items:center;gap:4px;justify-content:center;margin-top:auto}
.zcp-time-inputs input{width:40px;text-align:center;font:12px Tahoma,Arial;padding:3px 1px;border:2px inset #ddd;background:white}
.zcp-time-inputs .classic-button{padding:4px 7px;font:11px Tahoma,Arial}
.zcp-zone-select{padding:4px;width:100%;max-width:340px;border:2px inset white;background:#fff}
.zcp-timezone-footer{font:10px/1.4 Tahoma,Arial;color:#444;margin:0 5px}
@media(max-width:700px){
 .zcp-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
 .zcp-item{min-height:88px}
 .zcp-symbol{font-size:32px;width:38px;height:38px}
 .zcp-date{padding:2px;gap:5px}
 .zcp-date .zcp-field{padding:7px 4px}
 .zcp-clock-layout{gap:4px}
 .zcp-clock-face{width:120px;height:120px}
 .zcp-calendar{grid-auto-rows:21px;padding:2px}
 .zcp-clock-field,.zcp-calendar-field{height:235px}
 .zcp-welcome-actions{width:40%;gap:5px}
 .zcp-welcome-head h2{font-size:19px}
 .zcp-welcome-actions .classic-button{font-size:10px;padding:4px}
}

/* ZebraOS jeux et Paint v4.0 — esthétique Windows 95, aucune librairie externe */
.zg,.zp{height:100%;min-height:0;display:flex;flex-direction:column;gap:8px;box-sizing:border-box;font:12px Tahoma,Arial,sans-serif;color:#141414}
.zg *,.zp *{box-sizing:border-box}
.zg-topline{display:flex;justify-content:space-between;align-items:center;padding:5px 8px;background:#e1e1e1;border:2px inset #fff;font:12px Tahoma,Arial}
.zg-topline strong{letter-spacing:1px}
.zg-state{color:#19376e;font:bold 10px Tahoma,Arial}
.zg-button,.zp-button,.zp-tool{border:2px outset #fff;background:#c0c0c0;color:#111;padding:6px 9px;font:12px Tahoma,Arial;cursor:pointer;border-radius:0;white-space:nowrap}
.zg-button:active,.zp-button:active,.zp-tool:active,.zp-tool.selected{border-style:inset;background:#adadad}
.zg-game-layout{display:flex;justify-content:center;gap:12px;min-height:0}
.zg-tetris-stage,.zg-snake-stage{position:relative;border:3px inset #b6b6b6;background:#141922;flex:0 1 auto;min-width:0}
.zg-tetris-board{width:240px;height:480px;max-width:100%;display:block;image-rendering:pixelated}
.zg-side{display:flex;flex-direction:column;gap:8px;min-width:110px;width:120px;max-height:480px;overflow:auto}
.zg-stat,.zg-preview-wrap{border:2px inset #fff;background:#ddd;padding:6px 8px;display:flex;flex-direction:column;gap:5px}
.zg-stat small,.zg-preview-wrap small{font-size:10px;color:#333}
.zg-stat strong{font:700 17px "Courier New",monospace}
.zg-mini{width:96px;height:96px;max-width:100%;background:#111419;image-rendering:pixelated}
.zg-overlay{position:absolute;inset:0;background:rgba(9,18,24,.82);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#fff;text-align:center;padding:15px;pointer-events:none}
.zg-overlay strong{font:700 23px "Courier New",monospace;letter-spacing:2px}
.zg-overlay span{font-size:11px}
.zg-buttons{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.zg-control-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;max-width:390px;width:100%;margin:0 auto}
.zg-control-pad .zg-button{min-height:34px;font-size:13px}
.zg-help{padding:5px 0;font:10px/1.4 "Courier New",monospace;color:#444;text-align:center}
.zg-snake-stats{display:flex;justify-content:space-between;gap:10px;background:#e0e0e0;padding:8px;border:2px inset #fff;font:14px "Courier New",monospace}
.zg-snake-stage{align-self:center}
.zg-snake-board{display:block;width:min(400px,calc(100vw - 55px));height:auto;aspect-ratio:1;image-rendering:pixelated}
.zg-snake-options{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap}
.zg-select{border:2px inset #fff;background:#fff;padding:4px;color:#111}
.zg-snake-wrap{display:flex;align-items:center;gap:5px}
.zg-snake-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:220px;gap:4px;margin:auto;width:100%}
.zg-snake-pad .zg-button{min-height:34px}
.zp{gap:5px}
.zp-menu{display:flex;flex-wrap:wrap;gap:5px;flex:none;border-bottom:1px solid #aaa;padding-bottom:5px}
.zp-body{display:flex;flex:1;min-height:0;gap:6px}
.zp-tools{width:67px;flex:none;display:grid;grid-template-columns:repeat(2,1fr);align-content:start;gap:3px}
.zp-tool{height:34px;padding:3px;font:bold 21px/1 Tahoma,Arial;display:grid;place-items:center}
.zp-tool.selected{background:#a3a3a3;box-shadow:inset 1px 1px #333}
.zp-work{flex:1;min-width:0;min-height:0;display:flex;border:2px inset #eee;background:#808080;overflow:auto}
.zp-stage{margin:auto;padding:12px;min-width:max-content;min-height:max-content}
.zp-canvas{display:block;width:640px;height:400px;background:white;box-shadow:1px 1px 3px #444;touch-action:none;cursor:crosshair;image-rendering:auto}
.zp-options{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#dedede;border:2px inset #eee;padding:6px;flex:none}
.zp-active-color{width:39px;height:33px;border:3px ridge #fff;flex:none}
.zp-options input[type=color]{width:35px;height:30px;padding:0;border:2px inset #fff;cursor:pointer}
.zp-palette{display:flex;flex-wrap:wrap;gap:3px;flex:1;min-width:125px}
.zp-swatch{width:19px;height:19px;border:2px outset #fff;cursor:pointer;padding:0}
.zp-swatch:focus-visible{outline:2px solid #1f468a;outline-offset:1px}
.zp-size{display:flex;align-items:center;gap:5px;font-size:11px}
.zp-size input{width:75px;accent-color:#264b8a}
.zp-edits{display:flex;gap:4px}
.zp-edits .zp-button:disabled{opacity:.45;cursor:default}
.zp-status{border-top:1px solid #aaa;padding:3px 5px;font:11px "Courier New",monospace;flex:none}
@media(max-width:700px){
 .zg{gap:5px}
 .zg-tetris-board{width:min(49vw,200px);height:auto}
 .zg-side{min-width:86px;width:100px;max-height:none;gap:4px}
 .zg-stat,.zg-preview-wrap{padding:4px}
 .zg-stat strong{font-size:14px}
 .zg-mini{width:74px;height:74px}
 .zg-game-layout{gap:5px}
 .zg-snake-board{width:min(310px,calc(100vw - 55px))}
 .zg-control-pad .zg-button,.zg-snake-pad .zg-button{min-height:39px}
 .zg-help{font-size:9px}
 .zp-body{gap:3px}
 .zp-tools{width:57px}
 .zp-tool{height:31px;font-size:17px}
 .zp-canvas{width:640px;height:400px}
 .zp-stage{padding:6px}
 .zp-options{gap:4px;padding:4px}
 .zp-palette{gap:2px}
 .zp-swatch{width:16px;height:16px}
 .zp-size input{width:65px}
 .zp-menu .zp-button{font-size:11px;padding:5px 6px}
}

/* Icônes des nouvelles applications ZebraOS */
.zapp-icon{display:inline-grid;place-items:center;line-height:1;font-family:Tahoma,Arial,sans-serif;font-weight:900;
 border:2px outset #dfe4e1;box-sizing:border-box;text-shadow:1px 1px 0 #fff7;image-rendering:pixelated}
.zapp-tetris{color:#213a7d;background:linear-gradient(135deg,#dbdcd7,#91a6d6)}
.zapp-snake{color:#245a2e;background:linear-gradient(135deg,#d7e4b8,#83b66e)}
.zapp-paint{color:#612e2e;background:linear-gradient(135deg,#eee0a8,#d8c4ca)}

/* Le menu Démarrer reste entièrement accessible, même sur petit écran. */
.start-menu{max-height:calc(100dvh - 44px);min-height:0}
.start-options{min-height:0;overflow-y:auto;overscroll-behavior:contain}

/* ZebraOS arcade v4.2 — jeux sombres, compacts, et plateau entièrement visible.
   Le cadre de fenêtre Windows 95 reste intact. ZebraPaint reste une app système. */
.window-body.zebra-game-body{
 padding:0;overflow:hidden;min-width:0;min-height:0;
 background:#0d121b;color:#e7eaf0;
}
.zebra-game-body .zg{
 background:#0d121b;color:#e7eaf0;padding:10px;
 height:100%;min-height:0;overflow:hidden;gap:7px;
 font:12px/1.35 "Trebuchet MS",Tahoma,Arial,sans-serif;
}
.zebra-game-body .zg-topline{
 min-height:32px;flex:0 0 auto;background:#171f2b;color:#e8edf5;
 border:1px solid #3b4a5a;border-left:3px solid #7db9bc;padding:7px 10px;
 font:700 12px/1.1 "Courier New",monospace;
 letter-spacing:1px;
}
.zebra-game-body .zg-state{color:#a6d0a9;font:700 11px "Courier New",monospace}
.zebra-game-body .zg-game-layout{
 flex:1 1 auto;min-width:0;min-height:0;max-height:none;
 display:flex;justify-content:center;align-items:flex-start;
 gap:10px;overflow:hidden;
}
.zebra-game-body .zg-tetris-stage{
 flex:0 0 auto;width:240px;height:480px;
 min-width:0;max-width:none;border:2px solid #3a485a;
 background:#0b111a;box-shadow:0 0 0 1px #090d13;
 box-sizing:border-box;overflow:hidden;
}
.zebra-game-body .zg-tetris-board{
 display:block;width:100%;height:100%;max-width:none;
 image-rendering:pixelated;
}
.zebra-game-body .zg-side{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 grid-auto-rows:min-content;align-content:start;
 gap:7px;flex:0 0 194px;width:194px;min-width:0;
 max-height:100%;overflow:hidden;
}
.zebra-game-body .zg-stat,
.zebra-game-body .zg-preview-wrap{
 min-width:0;min-height:0;margin:0;padding:8px 9px;
 border:1px solid #344356;background:#192331;color:#e7eef4;
 box-shadow:inset 0 1px 0 #2d3945;
}
.zebra-game-body .zg-stat{min-height:58px;gap:5px}
.zebra-game-body .zg-stat small,
.zebra-game-body .zg-preview-wrap small{
 font:10px/1.2 "Courier New",monospace;color:#94a8be;letter-spacing:.3px;
}
.zebra-game-body .zg-stat strong{
 color:#eff4f7;font:700 21px/1.05 "Courier New",monospace;
}
.zebra-game-body .zg-preview-wrap{gap:7px}
.zebra-game-body .zg-mini{
 display:block;width:75px;height:75px;max-width:100%;aspect-ratio:1;
 background:#0b1118;border:1px solid #293849;
 image-rendering:pixelated;align-self:center;
}
.zebra-game-body .zg-snake-stats{
 flex:0 0 auto;display:flex;justify-content:space-between;
 gap:12px;padding:8px 11px;border:1px solid #3a485a;
 background:#192331;color:#e8eef6;
 font:700 13px "Courier New",monospace;
}
.zebra-game-body .zg-snake-stage{
 flex:1 1 auto;min-width:0;min-height:0;max-height:100%;
 width:auto;aspect-ratio:1;align-self:center;
 display:flex;align-items:center;justify-content:center;
 border:2px solid #39475a;background:#0b111a;overflow:hidden;
}
.zebra-game-body .zg-snake-board{
 width:auto;height:100%;max-width:100%;max-height:100%;
 aspect-ratio:1;image-rendering:pixelated;
}
.zebra-game-body .zg-snake-options{
 flex:0 0 auto;gap:12px;color:#bdc9d9;font:11px Tahoma,Arial;
}
.zebra-game-body .zg-select{
 background:#172130;border:1px solid #3b4a5a;color:#e7eef4;
 padding:5px;
}
.zebra-game-body .zg-buttons{flex:0 0 auto;gap:6px;justify-content:center}
.zebra-game-body .zg-button{
 background:#202b3a;border:1px solid #46576a;color:#e7edf4;
 padding:6px 12px;font:12px "Courier New",monospace;
 min-height:31px;border-radius:0;box-shadow:inset 0 1px 0 #3c4a5b;
 cursor:pointer;transition:none;
}
.zebra-game-body .zg-button:hover{
 background:#2b394c;border-color:#a2bac1;
}
.zebra-game-body .zg-button:active{
 background:#131c28;border:1px inset #526173;box-shadow:inset 1px 1px 2px #000;
}
.zebra-game-body .zg-help{
 flex:0 0 auto;color:#8597ad;font:10px/1.25 "Courier New",monospace;
 text-align:center;padding:3px 0;
}
.zebra-game-body .zg-overlay{
 background:rgba(9,15,23,.84);gap:10px;color:#f2f5fb;
}
.zebra-game-body .zg-overlay strong{
 color:#dbe5ef;font:700 24px "Courier New",monospace;
 text-shadow:1px 1px 0 #39485d;letter-spacing:3px;
}
.zebra-game-body .zg-overlay span{color:#becada}
.zebra-game-body .zg-control-pad,
.zebra-game-body .zg-snake-pad{display:none}
@media (hover:none),(pointer:coarse){
 .zebra-game-body .zg-control-pad{display:grid;flex:0 0 auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .zebra-game-body .zg-snake-pad{display:grid;flex:0 0 auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .zebra-game-body .zg-control-pad .zg-button,
 .zebra-game-body .zg-snake-pad .zg-button{min-height:36px;touch-action:manipulation}
}
@media(max-width:700px){
 .zebra-game-body .zg{padding:6px;gap:5px}
 .zebra-game-body .zg-topline{min-height:28px;padding:6px 7px}
 .zebra-game-body .zg-game-layout{gap:5px}
 .zebra-game-body .zg-side{
  flex-basis:116px;width:116px;gap:4px;
 }
 .zebra-game-body .zg-stat,
 .zebra-game-body .zg-preview-wrap{padding:5px 4px}
 .zebra-game-body .zg-stat{min-height:43px;gap:3px}
 .zebra-game-body .zg-stat strong{font-size:15px}
 .zebra-game-body .zg-stat small,
 .zebra-game-body .zg-preview-wrap small{font-size:8px}
 .zebra-game-body .zg-mini{width:45px;height:45px}
 .zebra-game-body .zg-button{padding:5px 7px;font-size:11px}
 .zebra-game-body .zg-snake-stats{padding:6px 8px}
 .zebra-game-body .zg-help{font-size:9px}
}
@media(max-height:650px){
 .zebra-game-body .zg{gap:4px;padding:5px}
 .zebra-game-body .zg-help{font-size:9px}
 .zebra-game-body .zg-topline{min-height:27px}
 .zebra-game-body .zg-buttons .zg-button{min-height:27px;padding:3px 8px}
}

/* ZEBRA SNAKE — Édition Safari v5.0. Vrai jeu pixel art, pas de panneaux gaming modernes. */
.window-body.zebra-game-body:has(.safari){padding:0;background:#160f0c;overflow:hidden}
.window-body.zebra-game-body .safari{
 display:grid;grid-template-columns:205px minmax(0,1fr);grid-template-rows:minmax(0,1fr);
 gap:10px;padding:9px;height:100%;min-height:0;overflow:hidden;
 color:#ffdfa7;background:
  repeating-linear-gradient(90deg,#160e0b 0 5px,#1b110b 5px 7px,#130c09 7px 10px);
 font:12px/1.3 "Courier New",monospace;
}
.safari *{box-sizing:border-box}
.safari-sidebar{
 display:flex;flex-direction:column;align-items:stretch;gap:8px;
 min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ab7039 #120d0b;
 border:4px ridge #a4642b;outline:1px solid #271109;
 padding:7px;background:
 repeating-linear-gradient(90deg,rgba(245,158,58,.035) 0 2px,transparent 2px 5px),#160f0c;
}
.safari-logo-wrap{
 padding:4px;display:flex;align-items:center;justify-content:center;flex:none;
 background:#130b09;border:2px solid #8e552c;
}
.safari-logo{display:block;width:100%;height:auto;max-height:90px;image-rendering:pixelated}
.safari-info{display:flex;flex-direction:column;gap:5px}
.safari-info-card{
 display:flex;flex-direction:column;gap:4px;min-height:59px;
 background:#0b1115;border:3px ridge #9c632a;
 padding:6px 10px;box-shadow:inset 0 0 0 1px #3d240f;
}
.safari-info-card small{
 color:#d5a556;letter-spacing:1px;font:bold 11px "Courier New",monospace;
}
.safari-info-card strong{
 color:#fff0cd;font:bold 24px/1.1 "Courier New",monospace;
 text-shadow:2px 2px #613923;
}
.safari-speed-box{
 background:#0d1417;border:3px ridge #9c632a;padding:6px 8px;min-height:54px;
}
.safari-speed-label{
 color:#dfa651;display:flex;flex-direction:column;gap:5px;
 font:bold 11px "Courier New",monospace;letter-spacing:1px;
}
.safari-select{
 background:#211a11;color:#ffe0a8;border:2px inset #9c632a;
 padding:3px 6px;border-radius:0;
 font:12px "Courier New",monospace;width:100%;
}
.safari-walls{
 display:flex;align-items:center;gap:6px;padding:2px 3px;
 color:#c6a679;font:10px/1.3 "Courier New",monospace;cursor:pointer;
}
.safari-walls input{width:14px;height:14px;accent-color:#bc8739}
.safari-actions{display:flex;flex-direction:column;gap:6px}
.safari .safari-btn{
 min-height:35px;border:3px outset #ad7735;border-radius:0;
 color:#ffe2a8;background:#392414;
 box-shadow:inset 0 1px #895328;
 text-shadow:1px 1px #22140b;
 font:bold 12px "Courier New",monospace;
 letter-spacing:.3px;padding:5px 8px;cursor:pointer;
 transition:none;
}
.safari .safari-btn:hover{background:#513019;color:#fff2cf}
.safari .safari-btn:active{border-style:inset;background:#27170f}
.safari .safari-play{background:#79501e}
.safari-help{
 border:2px inset #945e2d;background:#0e1517;color:#bd9c75;
 padding:7px;font:10px/1.65 "Courier New",monospace;margin-top:auto;
}
.safari-help strong{color:#f3c47b;letter-spacing:1px}
.safari-main{
 display:flex;flex-direction:column;min-height:0;min-width:0;align-items:stretch;gap:6px;
 border:4px ridge #a66c34;outline:1px solid #342217;
 background:repeating-linear-gradient(45deg,#25150c 0 5px,#2e1c0d 5px 8px);
 padding:6px;
}
.safari-main-heading{
 flex:0 0 auto;background:#0d1010;border:2px inset #8c5c30;
 color:#d9b070;font:bold 12px "Courier New",monospace;
 display:flex;justify-content:space-between;align-items:center;
 padding:5px 9px;letter-spacing:1px;
}
.safari-state{color:#f6d28a}
.safari-frame{
 display:flex;flex:1 1 auto;align-items:center;justify-content:center;
 min-height:0;min-width:0;position:relative;overflow:hidden;
}
.safari-canvas{
 image-rendering:pixelated;display:block;
 width:auto;height:auto;max-width:100%;max-height:100%;
 aspect-ratio:1;object-fit:contain;
 filter:drop-shadow(0 2px 1px #0d0a06);
}
.safari-overlay{
 position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
 background:#120e0ddd;border:3px ridge #ab7134;
 padding:12px 18px;display:flex;align-items:center;justify-content:center;
 flex-direction:column;text-align:center;gap:7px;max-width:83%;min-width:145px;
 pointer-events:none;
}
.safari-overlay strong{color:#ffe2a2;font:bold 19px/1.1 "Courier New",monospace;letter-spacing:1px}
.safari-overlay span{color:#ddbd8c;font:10px "Courier New",monospace}
.safari-main-foot{
 text-align:center;font:bold 10px "Courier New",monospace;
 color:#bd8d55;flex:0 0 auto;letter-spacing:1px;padding:2px;
}
.safari-touch{display:none}
@media (hover:none),(pointer:coarse){
 .safari-touch{
  grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px;max-width:245px;width:100%;margin:0 auto;
 }
 .safari-touch .safari-direction{min-height:39px}
}
@media(max-width:700px){
 .window-body.zebra-game-body .safari{
  display:flex;flex-direction:column;padding:4px;gap:5px;overflow-y:auto;
 }
 .safari-sidebar{
  flex:0 0 auto;display:grid;grid-template-columns:110px minmax(0,1fr);
  grid-template-rows:auto auto;gap:5px;overflow:visible;
  padding:4px;border-width:2px;
 }
 .safari-logo-wrap{grid-column:1;grid-row:1/3;padding:2px}
 .safari-logo{width:100%;max-height:65px}
 .safari-info{grid-column:2;grid-row:1;display:grid;grid-template-columns:1fr 1fr;gap:3px}
 .safari-info-card{min-height:37px;padding:4px;border-width:2px}
 .safari-info-card small{font-size:8px}
 .safari-info-card strong{font-size:15px}
 .safari-speed-box{grid-column:2;grid-row:2;padding:3px;border-width:2px;min-height:0}
 .safari-speed-label{font-size:9px;flex-direction:row;align-items:center;gap:5px}
 .safari-select{font-size:10px;min-width:0;width:auto;flex:1}
 .safari-walls,.safari-help{display:none}
 .safari-actions{grid-column:1/-1;flex-direction:row;gap:5px}
 .safari-actions .safari-btn{flex:1;min-height:28px;padding:3px;font-size:11px}
 .safari-main{flex:1 1 auto;min-height:200px;padding:3px;border-width:2px;gap:3px}
 .safari-main-heading,.safari-main-foot{font-size:9px;padding:3px}
 .safari-overlay{padding:7px 10px}
 .safari-overlay strong{font-size:14px}
 .safari-touch{flex:0 0 auto;min-height:122px;gap:4px;max-width:220px}
 .safari-touch .safari-direction{min-height:36px}
}
@media (max-height:700px) and (min-width:701px){
 .safari-sidebar{gap:4px;padding:5px}
 .safari-logo{max-height:72px}
 .safari-info-card{min-height:47px;padding:4px 7px}
 .safari-info-card strong{font-size:19px}
 .safari-help{padding:4px;font-size:9px}
 .safari-main-foot{font-size:9px}
}

/* Wallpaper positioning controls */
.wallpaper-position-group{display:flex;flex-direction:column;gap:7px;margin-top:5px;padding:9px;border:1px solid #a9b0ad;background:#e2e7e3}
.wallpaper-position-line{display:grid;grid-template-columns:78px minmax(50px,1fr) 40px;gap:7px;align-items:center;font:11px Tahoma,Arial,sans-serif}
.wallpaper-position-line input{width:100%;accent-color:#1c4352;touch-action:pan-y}
.wallpaper-position-line output{text-align:right;font:10px Tahoma,Arial,sans-serif}
.wallpaper-position-group>.classic-button{align-self:flex-start}
@media(max-width:600px){.wallpaper-position-line{grid-template-columns:72px minmax(45px,1fr) 36px}}

/* ZEBRA TETRIS — textures fournies v5.2. Jeu d'arcade années 90.
   Le fond, le logo, les quatre boutons et les deux plaques sont découpés
   depuis le PNG de l'auteur, pas redessinés artificiellement. */
.window-body.zebra-game-body:has(.zg-retro){
 padding:0;background:#141218;overflow:hidden;
}
.zebra-game-body .zg.zg-retro{
 height:100%;min-height:0;overflow:hidden;
 display:flex;flex-direction:column;justify-content:flex-start;
 padding:7px 10px 7px;gap:5px;
 background-color:#28113d;
 background-image:var(--zt-wall,repeating-conic-gradient(#e000d8 0% 25%,#302fe0 0% 50%,#f63250 0% 75%,#23c4c5 0% 100%));
 background-size:128px 128px;background-repeat:repeat;
 color:#101013;
 font-family:"Courier New",monospace;
 image-rendering:pixelated;
}
.zebra-game-body .zg-retro .zg-topline{
 flex:0 0 auto;min-height:0;max-height:100px;
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:0;border:0;padding:0;background:none;box-shadow:none;
}
.zebra-game-body .zg-retro .zt-logo{
 display:block;width:185px;max-width:68%;height:96px;object-fit:contain;
 image-rendering:pixelated;filter:drop-shadow(2px 3px 0 #0d0311aa);
}
.zebra-game-body .zg-retro .zg-topline .zg-state{
 display:none;
}
.zebra-game-body .zg-retro .zg-game-layout{
 flex:1 1 auto;min-height:0;width:100%;overflow:hidden;
 display:flex;align-items:flex-start;justify-content:center;
 gap:18px;padding:12px 10px;
 background:transparent;
}
.zebra-game-body .zg-retro .zg-side{
 order:0;flex:0 0 145px;width:145px;min-width:0;
 display:flex;flex-direction:column;align-content:stretch;
 gap:4px;padding:9px;
 overflow:hidden;max-height:100%;min-height:0;
 background:linear-gradient(90deg,#969696,#d5d5d5 12%,#bebebe 80%,#848484);
 border:4px ridge #ececec;box-shadow:2px 2px 0 #160a1e;
}
.zebra-game-body .zg-retro .zg-stat,
.zebra-game-body .zg-retro .zg-preview-wrap{
 display:flex;flex-direction:column;gap:2px;min-height:0;flex:0 0 auto;
 padding:4px 6px;margin:0;background:#c9c9c9;color:#050505;
 border:2px inset #fff;box-shadow:none;
 text-align:center;
}
.zebra-game-body .zg-retro .zg-stat{
 min-height:42px;
}
.zebra-game-body .zg-retro .zg-stat small,
.zebra-game-body .zg-retro .zg-preview-wrap small{
 font:bold 11px/1.1 "Courier New",monospace;letter-spacing:0;
 color:#171717;text-shadow:none;
}
.zebra-game-body .zg-retro .zg-stat strong{
 font:bold 21px/1.05 "Courier New",monospace;color:#172de4;
 text-shadow:1px 1px #fff;
}
.zebra-game-body .zg-retro .zg-preview-wrap{padding:4px;gap:3px}
.zebra-game-body .zg-retro .zg-mini{
 width:78px;height:78px;display:block;align-self:center;
 border:2px inset #ccc;background:#000;
 image-rendering:pixelated;
}
.zebra-game-body .zg-retro .zg-tetris-stage{
 order:1;flex:0 0 auto;position:relative;
 width:240px;height:480px;max-width:none;
 box-sizing:border-box;padding:0;background:#000;
 border:2px solid #030304;
 outline:8px ridge #d9d9d9;
 box-shadow:0 0 0 10px #1a1422,4px 6px 0 10px #130816;
 overflow:hidden;
}
.zebra-game-body .zg-retro .zg-stat.zt-level-up{
 animation:zt-level-up-flash .76s steps(2,end);
}
.zebra-game-body .zg-retro .zg-stat.zt-level-up strong{
 animation:zt-level-up-number .76s steps(2,end);
}
@keyframes zt-level-up-flash{
 0%,100%{filter:none;box-shadow:none}
 12%,34%,56%{filter:brightness(1.45);box-shadow:0 0 0 2px #fff36d,0 0 14px #37dfe9}
 22%,45%,68%{filter:brightness(.92);box-shadow:none}
}
@keyframes zt-level-up-number{
 0%,100%{transform:scale(1);text-shadow:none}
 12%,34%,56%{transform:scale(1.18);text-shadow:0 0 8px #fff36d}
 22%,45%,68%{transform:scale(1);text-shadow:none}
}
.zebra-game-body .zg-retro .zg-tetris-board{
 width:100%;height:100%;display:block;max-width:none;
 background:#000;image-rendering:pixelated;
}

.zebra-game-body .zg-retro .zt-gameover-fx{
 position:absolute;inset:0;z-index:5;pointer-events:none;opacity:0;
 background:#000;
}
.zebra-game-body .zg-retro .zg-tetris-stage.zt-gameover-impact .zg-tetris-board{
 animation:zt-gameover-hit .42s steps(2,end);
}
.zebra-game-body .zg-retro .zg-tetris-stage.zt-gameover-impact::after{
 content:"";position:absolute;inset:0;z-index:4;pointer-events:none;
 background:rgba(155,14,22,.42);
 mix-blend-mode:screen;
 animation:zt-gameover-redflash .46s ease-out both;
}
.zebra-game-body .zg-retro .zg-tetris-stage.zt-gameover-fade .zt-gameover-fx{
 animation:zt-gameover-black .58s ease-in forwards;
}
.zebra-game-body .zg-retro .zg-tetris-stage.zt-gameover-reveal .zt-gameover-fx{
 opacity:1;
}
.zebra-game-body .zg-retro .zg-tetris-stage.zt-gameover-reveal .zg-overlay{
 z-index:7;
 animation:zt-gameover-overlay-in .55s ease-out both;
}
@keyframes zt-gameover-hit{
 0%{transform:translate(0,0);filter:none}
 14%{transform:translate(-3px,1px);filter:contrast(1.35) saturate(1.7)}
 28%{transform:translate(3px,-1px);filter:contrast(1.5) saturate(1.85)}
 43%{transform:translate(-2px,1px);filter:sepia(.15) hue-rotate(320deg) saturate(2)}
 65%{transform:translate(1px,0);filter:contrast(1.25)}
 100%{transform:none;filter:none}
}
@keyframes zt-gameover-redflash{
 0%{opacity:0}
 10%{opacity:.9}
 30%{opacity:.52}
 100%{opacity:0}
}
@keyframes zt-gameover-black{
 0%{opacity:0}
 100%{opacity:1}
}
@keyframes zt-gameover-overlay-in{
 0%{opacity:0;transform:scale(.965)}
 45%{opacity:.35}
 100%{opacity:1;transform:scale(1)}
}
.zebra-game-body .zg-retro .zg-tetris-stage{position:relative}
.zebra-game-body .zg-retro .zg-tetris-stage::after{
 content:"";position:absolute;inset:0;pointer-events:none;opacity:0;
 background:radial-gradient(circle at 50% 56%,rgba(255,255,255,.48),rgba(255,231,62,.18) 34%,rgba(229,47,255,.12) 62%,transparent 78%);
 mix-blend-mode:screen;
}
.zebra-game-body .zg-retro .zg-tetris-stage.zt-tetris-burst{
 animation:zt-tetris-pulse .50s ease-out;
}
.zebra-game-body .zg-retro .zg-tetris-stage.zt-tetris-burst::after{animation:zt-tetris-flash .50s ease-out}
@keyframes zt-tetris-pulse{
 0%,100%{transform:scale(1)}
 24%{transform:scale(1.014)}
 52%{transform:scale(1.007)}
}
@keyframes zt-tetris-flash{
 0%{opacity:0}
 10%{opacity:.50}
 34%{opacity:.22}
 100%{opacity:0}
}
.zebra-game-body .zg-retro .zg-overlay{
 position:absolute;inset:0;background:rgba(0,0,0,.77);
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:12px;color:#fff;pointer-events:none;text-align:center;padding:12px;
}
.zebra-game-body .zg-retro .zt-overlay-art{
 width:100%;max-width:240px;height:auto;max-height:100px;
 object-fit:contain;image-rendering:pixelated;
}
.zebra-game-body .zg-retro .zt-overlay-caption{
 color:#fff;text-shadow:2px 2px 0 #000;
 font:bold 12px/1.5 "Courier New",monospace;
}
.zebra-game-body .zg-retro .zg-overlay[data-state="intro"]{
 overflow:hidden;pointer-events:auto;cursor:pointer;
 background-color:rgba(6,4,15,.38);
 background-image:
  repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,transparent 1px 4px),
  radial-gradient(circle at 50% 42%,rgba(53,16,96,.66) 0,rgba(19,7,36,.54) 46%,rgba(4,3,9,.72) 78%);
 isolation:isolate;
}
.zebra-game-body .zg-retro .zg-overlay[data-state="intro"]::before{
 content:"";position:absolute;inset:7px;z-index:-1;pointer-events:none;
 border:2px solid #3ce4f1;box-shadow:0 0 0 2px #301be2,0 0 15px #bd12e4aa,inset 0 0 18px #27165d;
}
.zebra-game-body .zg-retro .zg-overlay[data-state="intro"] .zt-overlay-art{
 width:92%;max-width:205px;max-height:150px;
 filter:drop-shadow(3px 4px 0 #09020c) drop-shadow(0 0 7px #db21f2);
 animation:zt-title-hover 2.6s steps(2,end) infinite;
}
.zebra-game-body .zg-retro .zg-overlay[data-state="intro"] .zt-overlay-caption{
 position:relative;padding:7px 10px 6px;
 color:#fff36d;background:#130724;border:2px solid #f42fd5;
 box-shadow:2px 2px 0 #241acb,-2px -2px 0 #37dfe9;
 font:bold clamp(11px,4.2vw,17px)/1 "Courier New",monospace;
 letter-spacing:1px;text-shadow:2px 2px 0 #a20c9e;
 animation:zt-press-blink 1s steps(1,end) infinite;
}
.zebra-game-body .zg-retro .zt-overlay-subcaption{
 color:#9beaf2;font:bold 8px/1.25 "Courier New",monospace;
 letter-spacing:.5px;text-shadow:1px 1px #12031b;
}
.zebra-game-body .zg-retro .zt-intro-blocks{display:none!important}
.zebra-game-body .zg-retro .zt-intro-blocks i{
 position:absolute;width:12px;height:12px;background:#176b72;
 border:2px solid #050506;box-shadow:inset 2px 2px #ffffff80,inset -2px -2px #00000080;
}
.zebra-game-body .zg-retro .zt-intro-blocks i:nth-child(1){left:12%;top:12%;background:#8b7621}
.zebra-game-body .zg-retro .zt-intro-blocks i:nth-child(2){left:18%;top:15%;background:#8b7621}
.zebra-game-body .zg-retro .zt-intro-blocks i:nth-child(3){right:14%;top:21%;background:#63246f}
.zebra-game-body .zg-retro .zt-intro-blocks i:nth-child(4){right:14%;top:24%;background:#63246f}
.zebra-game-body .zg-retro .zt-intro-blocks i:nth-child(5){left:13%;bottom:15%;background:#286a32}
.zebra-game-body .zg-retro .zt-intro-blocks i:nth-child(6){left:19%;bottom:15%;background:#286a32}
.zebra-game-body .zg-retro .zt-intro-blocks i:nth-child(7){right:15%;bottom:12%;background:#7a2e34}
@keyframes zt-press-blink{0%,62%{visibility:visible}63%,100%{visibility:hidden}}
@keyframes zt-title-hover{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){
 .zebra-game-body .zg-retro .zg-overlay[data-state="intro"] .zt-overlay-art,
 .zebra-game-body .zg-retro .zg-overlay[data-state="intro"] .zt-overlay-caption{animation:none}
}
.zebra-game-body .zg-retro .zg-buttons.zt-buttons{
 display:flex;flex:0 0 auto;justify-content:center;align-items:center;
 gap:7px;padding:0;background:transparent;
}
.zebra-game-body .zg-retro .zg-button.zt-image-button{
 flex:0 1 148px;width:148px;height:43px;min-height:0;
 border:0;border-radius:0;outline:0;margin:0;padding:0;
 background-color:#bbb;background-repeat:no-repeat;background-size:100% 100%;
 box-shadow:2px 2px 0 #100716;
 font:700 11px "Courier New",monospace;color:#191919;
 image-rendering:pixelated;transition:none;
}
.zebra-game-body .zg-retro.zt-art-loaded .zt-image-button{
 font-size:0;background-color:transparent;
}
.zebra-game-body .zg-retro .zt-music-button,
.zebra-game-body .zg-retro.zt-art-loaded .zt-music-button{
 padding:0!important;border:0!important;
 background-color:transparent!important;
 background-repeat:no-repeat!important;
 background-position:center!important;
 background-size:100% 100%!important;
 box-shadow:2px 2px 0 #100716!important;
 color:transparent!important;font-size:0!important;
 image-rendering:pixelated;
}
.zebra-game-body .zg-retro .zt-music-button:before{content:none!important}
.zebra-game-body .zg-retro .zt-music-button:active{
 transform:translate(2px,2px);
 box-shadow:none!important;
}
.zebra-game-body .zg-retro .zg-button.zt-image-button:hover{
 background-color:transparent;filter:brightness(1.12);
}
.zebra-game-body .zg-retro .zg-button.zt-image-button:active{
 border:0;box-shadow:none;transform:translate(2px,2px);
 filter:brightness(.95);
}
.zebra-game-body .zg-retro .zg-control-pad{
 background:#c5c5c5;border:3px ridge #fff;padding:4px;
}
.zebra-game-body .zg-retro .zg-control-pad .zg-button{
 color:#141414;background:#c4c4c4;border:2px outset #fff;
 box-shadow:none;text-shadow:none;font-size:13px;
}
.zebra-game-body .zg-retro .zg-help{
 flex:0 0 auto;margin:0;padding:3px 5px;
 background:#c7c7c7;color:#161616;border:2px inset #eee;
 font:10px/1.15 "Courier New",monospace;
}
@media(max-width:700px){
 .zebra-game-body .zg.zg-retro{padding:4px;gap:4px}
 .zebra-game-body .zg-retro .zg-topline{max-height:79px}
 .zebra-game-body .zg-retro .zt-logo{height:75px;width:150px}
 .zebra-game-body .zg-retro .zg-game-layout{
  gap:10px;padding:10px 6px;justify-content:center;
 }
 .zebra-game-body .zg-retro .zg-side{
  flex-basis:88px;width:88px;padding:4px;border-width:3px;gap:2px;
 }
 .zebra-game-body .zg-retro .zg-stat{min-height:30px;padding:3px 1px}
 .zebra-game-body .zg-retro .zg-stat small,
 .zebra-game-body .zg-retro .zg-preview-wrap small{font-size:9px}
 .zebra-game-body .zg-retro .zg-stat strong{font-size:14px}
 .zebra-game-body .zg-retro .zg-preview-wrap{padding:2px}
 .zebra-game-body .zg-retro .zg-mini{width:50px;height:50px}
 .zebra-game-body .zg-retro .zg-tetris-stage{
  outline:5px ridge #ddd;box-shadow:0 0 0 7px #14111a;
 }
 .zebra-game-body .zg-retro .zg-button.zt-image-button{
  flex:0 1 31%;height:32px;width:auto;
 }
 .zebra-game-body .zg-retro .zg-help{font-size:8px}
 .zebra-game-body .zg-retro .zt-overlay-caption{font-size:10px}
}
@media(max-height:640px){
 .zebra-game-body .zg-retro .zg-topline{max-height:65px}
 .zebra-game-body .zg-retro .zt-logo{height:63px}
 .zebra-game-body .zg-retro .zg-game-layout{padding:10px 7px}
 .zebra-game-body .zg-retro .zg-button.zt-image-button{height:32px}
}

/* Zebra Tetris textures : finitions v5.3. Patrons et bordures de l'auteur. */
.zebra-game-body .zg-retro .zg-topline{max-height:109px}
.zebra-game-body .zg-retro .zt-logo{
 width:238px;height:105px;max-width:82%;object-fit:contain;
}
.zebra-game-body .zg-retro .zg-game-layout{
 position:relative;
 padding-left:19px;padding-right:19px;
}
.zebra-game-body .zg-retro .zg-game-layout::before,
.zebra-game-body .zg-retro .zg-game-layout::after{
 content:"";position:absolute;top:13px;bottom:13px;width:10px;
 pointer-events:none;background-image:var(--zt-border);
 background-size:20px 20px;background-repeat:repeat-y;
 image-rendering:pixelated;opacity:.9;
}
.zebra-game-body .zg-retro .zg-game-layout::before{left:1px}
.zebra-game-body .zg-retro .zg-game-layout::after{right:1px}
.zebra-game-body .zg-retro .zt-overlay-art{
 width:100%;max-height:90px;image-rendering:pixelated;
}
.zebra-game-body .zg-retro .zg-overlay[data-state="gameover"]{
 background:rgba(0,0,0,.91)
}
@media(max-width:700px){
 .zebra-game-body .zg-retro .zt-logo{width:185px;height:77px}
 .zebra-game-body .zg-retro .zg-game-layout{
  padding-left:10px;padding-right:10px;
 }
 .zebra-game-body .zg-retro .zg-game-layout::before,
 .zebra-game-body .zg-retro .zg-game-layout::after{
  width:6px;background-size:12px 12px;opacity:.8;
 }
}
@media(max-height:640px){
 .zebra-game-body .zg-retro .zt-logo{width:157px;height:62px}
}

/* Zebra Tetris Game Boy manette v5.4 — commandes réelles, dessin CSS uniquement. */
.zebra-game-body .zg-retro .zt-handheld{display:none}
@media (hover:none),(pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld{
  flex:0 0 auto;
  width:100%;min-height:166px;max-width:510px;
  align-self:center;display:flex;align-items:center;justify-content:space-between;
  padding:8px 13px 7px;gap:9px;box-sizing:border-box;
  border:4px ridge #e5d4a1;border-radius:13px 13px 27px 13px;
  box-shadow:inset 1px 2px 0 #fff5cc,inset -4px -5px 0 #a58b62,3px 4px 0 #140617;
  background:linear-gradient(155deg,#f4edcf 0%,#d7cea9 46%,#bcb393 100%);
  position:relative;overflow:hidden;touch-action:manipulation;
 }
 .zebra-game-body .zg-retro .zt-dpad{
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  gap:0;flex:0 0 157px;max-width:48%;min-width:0;height:155px;
 }
 .zebra-game-body .zg-retro .zt-cross{
  width:148px;height:140px;max-width:100%;position:relative;
  filter:drop-shadow(1px 2px 1px #57462580);
  flex:0 0 auto;touch-action:none;
 }
 .zebra-game-body .zg-retro .zt-cross-shape{position:absolute;inset:0;pointer-events:none}
 .zebra-game-body .zg-retro .zt-cross-shape::before,
 .zebra-game-body .zg-retro .zt-cross-shape::after{
  content:"";position:absolute;border:2px solid #69430c;
  background:linear-gradient(120deg,#fff49d 0%,#f9d943 20%,#f1b817 60%,#b47b0c 95%);
  box-shadow:inset 3px 3px 0 #ffffc2aa,inset -4px -3px 0 #81500888,0 4px 0 #71440f;
 }
 .zebra-game-body .zg-retro .zt-cross-shape::before{
  width:49px;height:134px;left:50%;top:1px;transform:translateX(-50%);border-radius:8px;
 }
 .zebra-game-body .zg-retro .zt-cross-shape::after{
  width:139px;height:49px;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:8px;
 }
 .zebra-game-body .zg-retro .zt-control{
  -webkit-tap-highlight-color:transparent;touch-action:none;user-select:none;
  appearance:none;-webkit-appearance:none;cursor:pointer;outline-offset:2px;
  font-family:"Courier New",monospace;font-weight:900;
 }
 .zebra-game-body .zg-retro .zt-dir{
  position:absolute;z-index:2;width:51px;height:46px;
  padding:0;margin:0;background:transparent!important;border:0!important;
  border-radius:5px;box-shadow:none!important;
  font-size:0;color:#61430e;
  display:flex;align-items:center;justify-content:center;
 }
 .zebra-game-body .zg-retro .zt-dir::before{
  display:block;font-size:21px;font-weight:900;
  color:#63440d;text-shadow:1px 1px 0 #fff4a3;
 }
 .zebra-game-body .zg-retro .zt-dir-up{left:50%;top:2px;transform:translateX(-50%)}
 .zebra-game-body .zg-retro .zt-dir-up::before{content:"▲"}
 .zebra-game-body .zg-retro .zt-dir-down{left:50%;bottom:2px;transform:translateX(-50%)}
 .zebra-game-body .zg-retro .zt-dir-down::before{content:"▼"}
 .zebra-game-body .zg-retro .zt-dir-left{left:2px;top:50%;transform:translateY(-50%)}
 .zebra-game-body .zg-retro .zt-dir-left::before{content:"◀"}
 .zebra-game-body .zg-retro .zt-dir-right{right:2px;top:50%;transform:translateY(-50%)}
 .zebra-game-body .zg-retro .zt-dir-right::before{content:"▶"}
 .zebra-game-body .zg-retro .zt-dir:active{filter:brightness(.72)!important}
 .zebra-game-body .zg-retro .zt-cross-center{
  position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);
  width:24px;height:24px;border-radius:6px;pointer-events:none;
  background:radial-gradient(circle at 30% 25%,#fbe873,#c99a18 82%);
  border:2px solid #8e6716;box-shadow:inset 1px 1px 0 #ffffb5;
 }
 .zebra-game-body .zg-retro .zt-action-side{
  flex:1;min-width:0;display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:3px;max-width:185px;
 }
 .zebra-game-body .zg-retro .zt-ab{
  height:104px;position:relative;width:100%;max-width:172px;
  background:linear-gradient(160deg,#ad9f7a44,#eee5c444);
  border-radius:50%;
  border:2px inset #e2d7bc;
  transform:rotate(-14deg);
 }
 .zebra-game-body .zg-retro .zt-ab-button{
  position:absolute;width:67px;height:67px;border-radius:50%;
  font:bold 30px "Arial Black",Arial,sans-serif;color:#fff4b3;
  border:4px solid #4d174d;background:
   radial-gradient(circle at 30% 22%,#ffdafa 0%,#f17ac3 20%,#ad299e 53%,#681e79 85%);
  text-shadow:1px 2px 0 #50174c;
  box-shadow:inset 3px 3px 0 #ffffff80,inset -5px -5px 0 #4a1556,0 5px 0 #4d2554,2px 7px 2px #36262aaa;
  padding:0;display:grid;place-items:center;
  transition:none;
 }
 .zebra-game-body .zg-retro .zt-b{left:4px;bottom:1px}
 .zebra-game-body .zg-retro .zt-a{right:4px;top:1px}
 .zebra-game-body .zg-retro .zt-ab-button:active{
  transform:translateY(4px);
  box-shadow:inset 3px 3px 3px #470c55,0 1px 0 #4d2554;
  filter:brightness(.83);
 }
 .zebra-game-body .zg-retro .zt-select{
  border:2px solid #6f6860;border-radius:17px;padding:4px 16px;
  background:linear-gradient(#a29b8f,#625f62);
  box-shadow:inset 1px 2px 0 #e9e7dd,0 3px 0 #504d44;
  color:#ffeff7;font:700 10px "Courier New",monospace;
  letter-spacing:1.2px;min-height:26px;
 }
 .zebra-game-body .zg-retro .zt-select:active{
  transform:translateY(2px);box-shadow:inset 1px 1px 4px #222;
 }
 .zebra-game-body .zg-retro .zt-control-caption{
  color:#5d514b;text-shadow:0 1px #fff4ce;
  font:700 8px/1.3 "Courier New",monospace;
  letter-spacing:.9px;text-align:center;white-space:nowrap;
 }
 .zebra-game-body .zg-retro .zg-help{display:none}
}
@media (max-width:370px) and (pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld{min-height:151px;padding:5px 8px;gap:2px}
 .zebra-game-body .zg-retro .zt-dpad{flex-basis:143px;height:141px}
 .zebra-game-body .zg-retro .zt-cross{transform:scale(.89);transform-origin:center}
 .zebra-game-body .zg-retro .zt-ab{height:88px}
 .zebra-game-body .zg-retro .zt-ab-button{width:57px;height:57px;font-size:25px}
 .zebra-game-body .zg-retro .zt-control-caption{font-size:7px;letter-spacing:.2px}
}
@media (max-height:640px) and (pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld{min-height:128px;padding-top:2px;padding-bottom:2px}
 .zebra-game-body .zg-retro .zt-dpad{height:124px}
 .zebra-game-body .zg-retro .zt-cross{transform:scale(.79);transform-origin:center}
 .zebra-game-body .zg-retro .zt-ab{height:76px}
 .zebra-game-body .zg-retro .zt-ab-button{width:54px;height:54px;font-size:22px}
}

/* Zebra Tetris v5.5 — agrandir le plateau en récupérant la place perdue,
   touches console discrètes, texture BORDER de l'auteur très visible. */
.zebra-game-body .zg-retro .zt-panel-divider{
 flex:0 0 13px;min-height:13px;width:100%;
 margin:1px 0;padding:0;
 background-color:#110914;
 background-image:var(--zt-border,repeating-linear-gradient(90deg,#110d17 0 9px,#7436a3 9px 18px));
 background-size:22px 22px;background-position:0 50%;
 background-repeat:repeat-x;
 image-rendering:pixelated;
 border-top:2px solid #f0dfea;
 border-bottom:2px solid #3f1858;
 box-shadow:0 2px 0 #1e0e23,0 -1px 0 #13081b;
}
.zebra-game-body .zg-retro .zt-handheld{display:contents}
.zebra-game-body .zg-retro .zt-dpad,
.zebra-game-body .zg-retro .zt-action-side{display:none}
.zebra-game-body .zg-retro .zg-game-layout{
 padding-top:6px;padding-bottom:6px;
 gap:10px;
}
.zebra-game-body .zg-retro .zg-tetris-stage{
 outline:6px ridge #dcdcdc;
 box-shadow:0 0 0 8px #1a1422,3px 4px 0 8px #130816;
}
.zebra-game-body .zg-retro .zg-buttons.zt-buttons{margin:1px 0 2px}
@media (hover:none),(pointer:coarse){
 .zebra-game-body .zg.zg-retro{
  padding:3px 5px 4px;gap:3px;
 }
 .zebra-game-body .zg-retro .zg-topline{
  min-height:0;max-height:50px;height:50px;
 }
 .zebra-game-body .zg-retro .zt-logo{
  width:125px;max-width:56%;height:49px;
 }
 .zebra-game-body .zg-retro .zg-game-layout{
  flex:1 1 auto;min-height:0;
  gap:7px;
  padding:7px 9px;
  align-items:flex-start;
 }
 .zebra-game-body .zg-retro .zg-side{
  width:82px;flex:0 0 82px;
  border-width:3px;gap:2px;padding:3px;
 }
 .zebra-game-body .zg-retro .zg-stat{
  min-height:28px;padding:2px 1px;gap:0;
 }
 .zebra-game-body .zg-retro .zg-stat small,
 .zebra-game-body .zg-retro .zg-preview-wrap small{
  font-size:8px;line-height:1.15;
 }
 .zebra-game-body .zg-retro .zg-stat strong{
  font-size:14px;line-height:1.1;
 }
 .zebra-game-body .zg-retro .zg-preview-wrap{padding:2px;gap:1px}
 .zebra-game-body .zg-retro .zg-mini{
  width:42px;height:42px;border-width:1px;
 }
 .zebra-game-body .zg-retro .zg-tetris-stage{
  outline:5px ridge #ddd;box-shadow:0 0 0 6px #201527;
 }
 .zebra-game-body .zg-retro .zt-panel-divider{
  flex-basis:11px;min-height:11px;margin:0;
  background-size:20px 20px;
 }
 .zebra-game-body .zg-retro .zt-handheld{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  grid-template-rows:27px 103px;
  gap:1px 5px;flex:0 0 136px;
  min-height:0;height:136px;
  width:100%;max-width:510px;align-self:center;
  border:3px ridge #e0dfd5;
  border-radius:9px 9px 15px 9px;
  padding:3px 7px 4px;box-sizing:border-box;
  background:linear-gradient(150deg,#d4d1c6 0%,#b3b1a9 63%,#9f9b94 100%);
  box-shadow:inset 2px 2px #f1eee4,inset -3px -2px #827e76,2px 3px #17101c;
  overflow:hidden;touch-action:manipulation;
 }
 .zebra-game-body .zg-retro .zg-buttons.zt-buttons{
  grid-column:1/-1;grid-row:1;
  width:100%;height:26px;min-height:0;
  margin:0;padding:0;gap:5px;
  display:flex;align-items:stretch;
 }
 .zebra-game-body .zg-retro .zg-button.zt-image-button{
  height:26px!important;min-height:0;flex:1 1 0;
  width:auto;max-width:none;
  box-shadow:1px 2px 0 #50464a;
 }
 .zebra-game-body .zg-retro .zt-music-button,
 .zebra-game-body .zg-retro.zt-art-loaded .zt-music-button{
  padding-left:15px!important;font-size:7px!important;letter-spacing:-.8px;border-width:2px!important;
 }
 .zebra-game-body .zg-retro .zt-music-button:before{left:4px;font-size:13px}
 .zebra-game-body .zg-retro .zt-music-button.is-off:before{font-size:16px}
 .zebra-game-body .zg-retro .zt-dpad{
  grid-column:1;grid-row:2;display:flex;
  flex:1 1 auto;max-width:100%;min-width:0;
  height:103px;min-height:0;gap:0;
 }
 .zebra-game-body .zg-retro .zt-cross{
  width:112px;height:100px;max-width:100%;
  transform:none;filter:drop-shadow(1px 2px 0 #52504b);
 }
 .zebra-game-body .zg-retro .zt-cross-shape::before{
  width:39px;height:98px;top:0;
  border-radius:5px;
  background:linear-gradient(115deg,#686b69,#353a3c 55%,#161c22);
  border:2px solid #151b1c;
  box-shadow:inset 2px 2px #939a98,inset -3px -3px #111b21,0 3px #6b6459;
 }
 .zebra-game-body .zg-retro .zt-cross-shape::after{
  width:109px;height:39px;
  border-radius:5px;
  background:linear-gradient(140deg,#747774,#363d41 55%,#19202a);
  border:2px solid #171c20;
  box-shadow:inset 2px 2px #919b9c,inset -3px -3px #111720,0 3px #625c54;
 }
 .zebra-game-body .zg-retro .zt-dir{
  width:38px;height:34px;border-radius:4px;
 }
 .zebra-game-body .zg-retro .zt-dir::before{
  font-size:15px;color:#d3d6cb;text-shadow:1px 1px #111517;
 }
 .zebra-game-body .zg-retro .zt-dir-up{top:0}
 .zebra-game-body .zg-retro .zt-dir-down{bottom:0}
 .zebra-game-body .zg-retro .zt-dir-left{left:0}
 .zebra-game-body .zg-retro .zt-dir-right{right:0}
 .zebra-game-body .zg-retro .zt-cross-center{
  width:18px;height:18px;border-radius:4px;
  background:linear-gradient(140deg,#818482,#3b4141);
  border:2px solid #1c2425;box-shadow:inset 1px 1px #abaea9;
 }
 .zebra-game-body .zg-retro .zt-action-side{
  grid-column:2;grid-row:2;display:flex;
  flex:1 1 auto;min-height:0;max-width:100%;
  gap:0;justify-content:center;
 }
 .zebra-game-body .zg-retro .zt-ab{
  width:100%;max-width:147px;height:75px;
  transform:rotate(-11deg);
  border:0;background:rgba(55,45,57,.10);
  border-radius:36%;
 }
 .zebra-game-body .zg-retro .zt-ab-button{
  width:48px;height:48px;
  border-radius:50%;border:3px solid #401a40;
  background:radial-gradient(circle at 30% 22%,#f4c0df 0%,#9e5c8e 21%,#763068 59%,#48193f 94%);
  color:#f9e8f1;font-size:21px;
  text-shadow:1px 1px #2c1029;
  box-shadow:inset 2px 2px #f9d1e2a8,inset -4px -4px #471840,0 4px #3d303e,1px 5px 2px #25212588;
 }
 .zebra-game-body .zg-retro .zt-b{left:5px;bottom:0}
 .zebra-game-body .zg-retro .zt-a{right:5px;top:0}
 .zebra-game-body .zg-retro .zt-select{
  min-height:19px;padding:2px 12px;
  font-size:9px;letter-spacing:.3px;
  background:linear-gradient(#888987,#444748);
  color:#e8e8e8;border:2px solid #4c4e4a;
  box-shadow:inset 1px 1px #c2c3c1,0 2px #63635b;
 }
 .zebra-game-body .zg-retro .zt-control-caption{display:none}
 .zebra-game-body .zg-retro .zg-help{display:none}
}
@media (max-width:370px) and (pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld{
  min-height:0;height:130px;flex-basis:130px;padding:3px 4px;
  grid-template-rows:25px 98px;
 }
 .zebra-game-body .zg-retro .zg-button.zt-image-button{height:24px!important}
 .zebra-game-body .zg-retro .zt-cross{transform:scale(.96);transform-origin:center}
 .zebra-game-body .zg-retro .zt-dpad{height:98px}
 .zebra-game-body .zg-retro .zt-ab{height:70px}
 .zebra-game-body .zg-retro .zt-ab-button{width:46px;height:46px;font-size:20px}
}
@media (max-height:640px) and (pointer:coarse){
 .zebra-game-body .zg-retro .zg-topline{height:35px;max-height:35px}
 .zebra-game-body .zg-retro .zt-logo{height:34px;width:92px}
 .zebra-game-body .zg-retro .zt-handheld{
  height:119px;min-height:0;flex-basis:119px;
  grid-template-rows:23px 89px;
 }
 .zebra-game-body .zg-retro .zg-button.zt-image-button{height:22px!important}
 .zebra-game-body .zg-retro .zt-cross{transform:scale(.86);transform-origin:center}
 .zebra-game-body .zg-retro .zt-dpad{height:87px}
 .zebra-game-body .zg-retro .zt-ab{height:69px}
 .zebra-game-body .zg-retro .zt-ab-button{width:42px;height:42px;font-size:19px}
}

/* Tetris 5.6 — restauration du style de la manette 3D jaune et violet.
   On conserve le vrai plateau/score et les textures fournies par l'auteur. */
.zebra-game-body .zg.zg-retro{
 background-size:var(--zt-wallsize,64px 64px);
}
.zebra-game-body .zg-retro .zt-logo-fallback{
 font:bold 28px/1.05 "Courier New",monospace;
 color:#fff;text-shadow:2px 2px #020309,4px 4px #2b19dc,-2px -1px #080307;
 letter-spacing:1px;margin:12px 0;
}
.zebra-game-body .zg-retro .zt-overlay-art[src^="data:"]{
 background-repeat:no-repeat;
}
@media (hover:none),(pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld{
  height:170px;min-height:0;flex:0 0 170px;
  grid-template-rows:33px minmax(0,1fr);
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:3px 9px;max-width:510px;
  padding:5px 11px 6px;
  background:linear-gradient(145deg,#fff3c6 0%,#e2d5ab 43%,#b7a077 100%);
  border:4px ridge #fff0bc;
  border-radius:14px 14px 24px 13px;
  box-shadow:inset 2px 2px 0 #fffad9,inset -3px -3px 0 #8b7452,3px 4px 0 #230a29;
 }
 .zebra-game-body .zg-retro .zg-buttons.zt-buttons{
  height:32px;max-height:32px;
  grid-row:1;grid-column:1/-1;gap:7px;
 }
 .zebra-game-body .zg-retro .zg-button.zt-image-button{
  height:32px!important;
  box-shadow:1px 3px 0 #765d70;
 }
 .zebra-game-body .zg-retro .zt-dpad{
  height:121px;grid-row:2;grid-column:1;
  flex:0 0 auto;max-width:100%;
  align-items:center;justify-content:center;
 }
 .zebra-game-body .zg-retro .zt-cross{
  width:139px;height:117px;transform:none;
  filter:drop-shadow(1px 3px 1px #775626aa);
 }
 .zebra-game-body .zg-retro .zt-cross-shape::before,
 .zebra-game-body .zg-retro .zt-cross-shape::after{
  border:2px solid #76420d;
  background:linear-gradient(135deg,#ffef6a 0%,#f9d436 32%,#eba809 65%,#ad6912 100%);
  box-shadow:inset 3px 3px 0 #fffbc3,inset -4px -3px 0 #8a540d,0 3px 0 #76460d;
 }
 .zebra-game-body .zg-retro .zt-cross-shape::before{
  width:43px;height:113px;left:50%;top:0;transform:translateX(-50%);border-radius:8px;
 }
 .zebra-game-body .zg-retro .zt-cross-shape::after{
  width:134px;height:44px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:8px;
 }
 .zebra-game-body .zg-retro .zt-dir{
  width:45px;height:38px;background:transparent!important;
 }
 .zebra-game-body .zg-retro .zt-dir::before{
  font-size:20px;color:#68400b;text-shadow:1px 1px #ffec81;
 }
 .zebra-game-body .zg-retro .zt-cross-center{
  width:22px;height:22px;border-radius:5px;
  background:linear-gradient(145deg,#fff27b,#dba314 70%,#ae750c);
  border:2px solid #986418;box-shadow:inset 1px 1px 0 #fff7b5;
 }
 .zebra-game-body .zg-retro .zt-action-side{
  display:flex;grid-row:2;grid-column:2;justify-content:center;
  align-items:center;gap:3px;max-width:100%;height:121px;
 }
 .zebra-game-body .zg-retro .zt-ab{
  height:90px;width:100%;max-width:167px;
  transform:rotate(-13deg);border-radius:50%;
  border:2px inset #f2e8c6;
  background:linear-gradient(145deg,#dbc5a066,#fff0cb55);
 }
 .zebra-game-body .zg-retro .zt-ab-button{
  width:61px;height:61px;
  border:4px solid #501757;
  background:radial-gradient(circle at 28% 21%,#ffdefa 0%,#ed79d1 17%,#b42ab0 55%,#5f176d 90%);
  color:#fff0b5;font:bold 27px "Arial Black",Arial,sans-serif;
  box-shadow:inset 3px 3px 0 #fff8,inset -5px -5px #4b1151,0 5px 0 #501b5c,2px 7px 2px #28202b9a;
 }
 .zebra-game-body .zg-retro .zt-b{left:5px;bottom:2px}
 .zebra-game-body .zg-retro .zt-a{right:5px;top:1px}
 .zebra-game-body .zg-retro .zt-select{
  border:2px solid #756754;border-radius:18px;
  background:linear-gradient(#b6aaa0,#68615f);
  box-shadow:inset 1px 2px 0 #f6e9d0,0 3px 0 #64594b;
  color:#fff4e5;min-height:21px;padding:2px 13px;
  font:bold 9px "Courier New",monospace;
 }
 .zebra-game-body .zg-retro .zt-control-caption{display:none}
 .zebra-game-body .zg-retro .zg-help{display:none}
 .zebra-game-body .zg-retro .zg-topline{height:64px;max-height:64px}
 .zebra-game-body .zg-retro .zt-logo{width:175px;height:61px;max-width:70%}
}
@media(max-width:370px) and (pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld{
  height:155px;flex-basis:155px;
  grid-template-rows:30px minmax(0,1fr);
  padding:4px 7px;gap:2px 5px;
 }
 .zebra-game-body .zg-retro .zg-buttons.zt-buttons{height:29px}
 .zebra-game-body .zg-retro .zg-button.zt-image-button{height:29px!important}
 .zebra-game-body .zg-retro .zt-dpad{height:110px}
 .zebra-game-body .zg-retro .zt-cross{transform:scale(.85)}
 .zebra-game-body .zg-retro .zt-action-side{height:110px}
 .zebra-game-body .zg-retro .zt-ab{height:80px}
 .zebra-game-body .zg-retro .zt-ab-button{width:54px;height:54px;font-size:24px}
}
@media(max-height:650px) and (pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld{
  height:128px;flex-basis:128px;
  grid-template-rows:25px minmax(0,1fr);
 }
 .zebra-game-body .zg-retro .zg-buttons.zt-buttons{height:24px}
 .zebra-game-body .zg-retro .zg-button.zt-image-button{height:24px!important}
 .zebra-game-body .zg-retro .zt-dpad{height:90px}
 .zebra-game-body .zg-retro .zt-cross{transform:scale(.72)}
 .zebra-game-body .zg-retro .zt-action-side{height:91px}
 .zebra-game-body .zg-retro .zt-ab{height:69px}
 .zebra-game-body .zg-retro .zt-ab-button{width:46px;height:46px;font-size:21px}
}

/* Zebra Tetris 5.7 — privilégier la taille des 20 lignes sur téléphone.
   On ne touche PAS aux textures ni à la disposition des commandes du bas. */
@media(max-width:700px){
 .zebra-game-body .zg-retro .zg-topline{
  height:36px;max-height:36px;flex:0 0 36px;
 }
 .zebra-game-body .zg-retro .zt-logo{
  width:120px;height:35px;max-width:55%;
 }
 .zebra-game-body .zg-retro .zg-game-layout{
  padding:3px 7px;gap:5px;
  justify-content:center;align-items:flex-start;
 }
 .zebra-game-body .zg-retro .zg-side{
  flex:0 0 69px;width:69px;min-width:0;
  gap:2px;padding:3px 2px;border-width:3px;
 }
 .zebra-game-body .zg-retro .zg-stat{
  min-height:25px;padding:2px 1px;gap:0;
 }
 .zebra-game-body .zg-retro .zg-stat small,
 .zebra-game-body .zg-retro .zg-preview-wrap small{
  font-size:8px;line-height:1.1;letter-spacing:-.2px;
 }
 .zebra-game-body .zg-retro .zg-stat strong{
  font-size:14px;line-height:1.05;
 }
 .zebra-game-body .zg-retro .zg-preview-wrap{
  padding:2px;gap:1px;
 }
 .zebra-game-body .zg-retro .zg-mini{
  width:41px;height:41px;max-width:100%;
 }
}
@media(max-width:700px) and (max-height:650px){
 .zebra-game-body .zg-retro .zg-topline{
  height:30px;max-height:30px;flex-basis:30px;
 }
 .zebra-game-body .zg-retro .zt-logo{
  width:100px;height:29px;
 }
}

/* Zebra Tetris 5.8 — plateau centre de fenêtre et retour du grand logo.
   Stats à gauche; A/B, croix, PLAY/RESTART/MENU et panneau tactile INCHANGÉS. */
.zebra-game-body .zg-retro .zg-game-layout{
 display:grid;
 grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
 grid-template-rows:minmax(0,1fr);
 justify-content:initial;
 align-items:start;
}
.zebra-game-body .zg-retro .zg-game-layout > .zg-side{
 grid-column:1;
 grid-row:1;
 justify-self:end;
 align-self:start;
}
.zebra-game-body .zg-retro .zg-game-layout > .zg-tetris-stage{
 grid-column:2;
 grid-row:1;
 justify-self:center;
 align-self:start;
}
@media(max-width:700px){
 .zebra-game-body .zg-retro .zg-topline{
  flex:0 0 65px;
  height:65px;
  max-height:65px;
 }
 .zebra-game-body .zg-retro .zt-logo{
  width:205px;
  height:63px;
  max-width:80%;
 }
}
@media(max-width:700px) and (max-height:650px){
 .zebra-game-body .zg-retro .zg-topline{
  flex:0 0 46px;
  height:46px;
  max-height:46px;
 }
 .zebra-game-body .zg-retro .zt-logo{
  width:165px;
  height:44px;
  max-width:72%;
 }
}

/* Zebra Tetris 5.9 — panneaux latéraux symétriques.
   Le plateau reste centré ; stats à gauche, prochaine pièce et réserve à droite.
   Commandes tactiles, textures, logo et animations inchangés. */
.zebra-game-body .zg-retro .zg-game-layout > .zg-side-stats{
 grid-column:1;
 grid-row:1;
 justify-self:end;
 align-self:start;
}
.zebra-game-body .zg-retro .zg-game-layout > .zg-side-previews{
 grid-column:3;
 grid-row:1;
 justify-self:start;
 align-self:start;
 height:max-content;
}
.zebra-game-body .zg-retro .zg-side-previews .zg-preview-wrap{
 flex:0 0 auto;
}


/* Zebra Tetris 6.0 — vraies textures de l'auteur, boutons tactiles individuels.
   Les trois boutons PLAY/RESTART/MENU et leur spritesheet restent inchangés. */
.zebra-game-body .zg-retro .zt-control-sprite{display:none;pointer-events:none;user-select:none;-webkit-user-drag:none}
@media (hover:none),(pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready{
  background:#060564 url("assets/games/tetris-controls/interfaceTetris.png") center/100% 100% no-repeat;
  border:0;border-radius:0;box-shadow:none;
  /* Même gabarit mobile qu'avant; l'illustration s'étire sans rogner le chrome. */
  overflow:hidden;position:relative;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-control-sprite{
  display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-dpad{
  display:flex;align-items:center;justify-content:center;max-width:100%;min-width:0;
  height:100%;min-height:0;grid-column:1;grid-row:2;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-cross{
  position:relative;width:min(100%,132px);height:100%;max-height:123px;
  transform:none!important;filter:none;aspect-ratio:auto;touch-action:none;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-cross-shape,
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-cross-center{display:none}
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-dir{
  position:absolute;z-index:2;
  width:34%;height:34%;max-width:none;max-height:none;
  display:flex;align-items:center;justify-content:center;
  padding:0!important;margin:0!important;line-height:0;font-size:0;
  background:transparent!important;border:0!important;box-shadow:none!important;
  border-radius:0;filter:none!important;touch-action:none;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-dir::before{display:none!important}
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-dir-up{
  top:0;left:50%;right:auto;bottom:auto;transform:translateX(-50%)!important;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-dir-down{
  bottom:0;left:50%;right:auto;top:auto;transform:translateX(-50%)!important;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-dir-left{
  left:0;top:50%;right:auto;bottom:auto;transform:translateY(-50%)!important;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-dir-right{
  right:0;top:50%;left:auto;bottom:auto;transform:translateY(-50%)!important;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-action-side{
  display:flex;grid-column:2;grid-row:2;
  height:100%;min-height:0;max-width:100%;
  flex-direction:column;align-items:center;justify-content:center;gap:0;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-ab{
  position:relative;flex:1 1 auto;min-height:0;
  width:100%;max-width:166px;height:auto;
  background:none;border:0;box-shadow:none;border-radius:0;
  transform:none!important;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-ab-button{
  position:absolute;width:clamp(39px,15vw,60px);height:clamp(39px,15vw,60px);
  max-height:90%;border:0;border-radius:0;box-shadow:none!important;
  padding:0!important;margin:0!important;
  background:none!important;color:transparent!important;font-size:0!important;
  text-shadow:none!important;transform:none;filter:none;
  display:flex;align-items:center;justify-content:center;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-b{
  left:4%;bottom:0;right:auto;top:auto;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-a{
  right:4%;top:0;bottom:auto;left:auto;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-select{
  flex:0 0 auto;min-height:0;width:clamp(86px,27vw,115px);height:29px;
  padding:0!important;margin:0!important;border:0!important;
  background:none!important;box-shadow:none!important;border-radius:0;
  font-size:0!important;color:transparent!important;text-shadow:none!important;
  display:flex;align-items:center;justify-content:center;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-control:active .zt-control-sprite{
  filter:brightness(.72);transform:translateY(2px) scale(.965);
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-ab-button:active,
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-select:active{
  transform:none;box-shadow:none!important;filter:none;
 }
}

/* Zebra Tetris 6.1 — les trois boutons Windows/arcade sont AU-DESSUS
   de la plaque illustrée. Les 7 sprites gardent leurs vrais inputs. */
@media (hover:none),(pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready{
  --zt-panel-top:36px;
  background:none!important;
  border:0;box-shadow:none;border-radius:0;
  overflow:visible;isolation:isolate;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready::before{
  content:"";
  position:absolute;left:0;right:0;top:var(--zt-panel-top);bottom:0;
  background:url("assets/games/tetris-controls/interfaceTetris.png") center/100% 100% no-repeat;
  image-rendering:pixelated;
  pointer-events:none;z-index:0;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready > .zg-buttons,
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready > .zt-dpad,
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready > .zt-action-side{
  position:relative;z-index:1;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zg-buttons.zt-buttons{
  align-self:start;
  margin-top:0;
 }
 /* Carré directionnel réellement centré et avec du jeu sous la bordure basse */
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-cross{
  width:min(100%,116px);
  height:min(100%,109px);
  max-height:109px;
  transform:none!important;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-dir{
  width:36%;height:36%;
 }
 /* A et B restent en diagonale, sans empiéter sur les rebords de la plaque */
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-a{
  top:7%;
  right:7%;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-b{
  bottom:8%;
  left:7%;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-select{
  transform:translateY(-7px)!important;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-select:active{
  transform:translateY(-7px)!important;
 }
}
@media(max-width:370px) and (pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready{
  --zt-panel-top:32px;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-cross{
  width:min(100%,105px);
  height:min(100%,99px);
  max-height:99px;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-dir{
  width:37%;height:37%;
 }
}
@media(max-height:650px) and (pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready{
  --zt-panel-top:26px;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-cross{
  width:min(100%,94px);
  height:min(100%,87px);
  max-height:87px;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-select{
  transform:translateY(-3px)!important;
 }
}

/* ZebraOS 2.1 — le pied "ZebraOS 2.0 / ORDINATEUR DU STUDIO"
   n'a aucune utilité dans les logiciels : l'espace retourne au contenu.
   Le DOM n'en crée plus ; cette règle couvre aussi un ancien JS en cache. */
.window > .window-status{display:none!important}

/* Zebra Tetris 6.2 — utiliser les ~21px récupérés pour agrandir
   la plaque des commandes sans réduire la hauteur du plateau. */
@media (hover:none),(pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld{
  height:191px;flex:0 0 191px;min-height:0;
  grid-template-rows:33px minmax(0,1fr);
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready{
  --zt-panel-top:36px;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-dpad{
  height:100%;min-height:0;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-cross{
  width:min(100%,124px);
  height:min(100%,120px);
  max-height:120px;
  transform:none!important;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-dir{
  width:35%;height:35%;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-a{
  top:10%;right:8%;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-b{
  bottom:15%;left:9%;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-select,
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-select:active{
  transform:translateY(-12px)!important;
 }
}
@media(max-width:370px) and (pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld{
  height:177px;flex-basis:177px;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready{
  --zt-panel-top:32px;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-cross{
  width:min(100%,113px);height:min(100%,110px);max-height:110px;
 }
}
@media(max-height:650px) and (pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld{
  height:147px;flex-basis:147px;
  grid-template-rows:25px minmax(0,1fr);
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready{
  --zt-panel-top:27px;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-cross{
  width:min(100%,97px);height:min(100%,94px);max-height:94px;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-select,
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-select:active{
  transform:translateY(-5px)!important;
 }
}

/* Zebra Tetris 6.4 — redistribution de hauteur plutôt qu'écraser les sprites.
   On laisse le plateau garder ses proportions 10×20 : il se réduit
   automatiquement quand le panneau tactile gagne 38-42px.
   Les touches ont enfin de la marge dans le cadre chromé. */
@media (hover:none),(pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld{
  height:230px;flex:0 0 230px;
  grid-template-rows:33px minmax(0,1fr);
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready{
  --zt-panel-top:36px;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-cross{
  width:min(100%,124px);
  height:min(100%,124px);
  max-height:124px;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-dpad,
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-action-side{
  justify-content:center;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-a{
  top:17%;right:9%;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-b{
  bottom:22%;left:9%;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-select,
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-select:active{
  transform:translateY(-16px)!important;
 }
}
@media(max-width:370px) and (pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld{
  height:220px;flex-basis:220px;
  grid-template-rows:30px minmax(0,1fr);
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready{
  --zt-panel-top:33px;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-cross{
  width:min(100%,116px);
  height:min(100%,116px);
  max-height:116px;
 }
}
@media(max-height:650px) and (pointer:coarse){
 .zebra-game-body .zg-retro .zt-handheld{
  height:171px;flex-basis:171px;
  grid-template-rows:25px minmax(0,1fr);
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready{
  --zt-panel-top:27px;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-cross{
  width:min(100%,97px);
  height:min(100%,97px);
  max-height:97px;
 }
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-select,
 .zebra-game-body .zg-retro .zt-handheld.zt-skin-ready .zt-select:active{
  transform:translateY(-9px)!important;
 }
}

/* Zebra Tetris 6.5 — légende physique du clavier, incrustée dans
   la colonne SUIVANT/RÉSERVE comme un module d'arcade Windows 95. */
.zebra-game-body .zg-retro .zt-keyboard-guide{
 display:flex;flex-direction:column;flex:0 0 auto;gap:4px;
 margin-top:7px;padding:7px 6px 8px;
 border:2px inset #fff;
 background:linear-gradient(110deg,#bdbdbd 0%,#e0e0e0 20%,#b9b9b9 86%,#979797 100%);
 box-shadow:1px 2px 0 #444;
 color:#111;
}
.zebra-game-body .zg-retro .zt-guide-title{
 background:linear-gradient(90deg,#0e216f,#315bb2);
 color:#fff;text-shadow:1px 1px #040d28;
 text-align:center;padding:5px 2px;
 font:bold 12px/1 "Courier New",monospace;
 letter-spacing:.4px;border:2px outset #a3bcf4;
}
.zebra-game-body .zg-retro .zt-guide-subtitle{
 font:bold 8px/1.2 "Courier New",monospace;color:#47517a;
 text-align:center;letter-spacing:.2px;
}
.zebra-game-body .zg-retro .zt-guide-row{
 display:flex;align-items:center;justify-content:space-between;
 min-height:25px;padding:2px 0 3px;gap:4px;
 border-bottom:1px groove #eee;
}
.zebra-game-body .zg-retro .zt-guide-row:last-child{border-bottom:0;padding-bottom:0}
.zebra-game-body .zg-retro .zt-guide-keys{display:flex;align-items:center;gap:2px;flex-shrink:0}
.zebra-game-body .zg-retro .zt-guide-key{
 display:flex;align-items:center;justify-content:center;
 height:22px;min-width:20px;padding:1px 3px;
 border:2px outset #fff;background:#f0f0e9;
 color:#172d86;font:bold 13px/1 "Courier New",monospace;
 box-shadow:1px 2px 0 #626262;
}
.zebra-game-body .zg-retro .zt-guide-key.wide{font-size:8px;min-width:43px;padding:0 2px}
.zebra-game-body .zg-retro .zt-guide-label{
 font:bold 8px/1 "Courier New",monospace;letter-spacing:-.35px;
 text-align:right;color:#212121;
}
.zebra-game-body .zg-retro .zg-help{display:none!important}
/* La manette 8 bits occupe la hauteur sur écran tactile. */
@media(max-width:700px),(hover:none),(pointer:coarse){
 .zebra-game-body .zg-retro .zt-keyboard-guide{display:none!important}
}
@media(min-width:701px) and (max-height:735px){
 .zebra-game-body .zg-retro .zt-keyboard-guide{gap:2px;padding:4px 5px;margin-top:4px}
 .zebra-game-body .zg-retro .zt-guide-row{min-height:21px}
 .zebra-game-body .zg-retro .zt-guide-key{min-width:18px;height:19px;font-size:11px}
 .zebra-game-body .zg-retro .zt-guide-key.wide{font-size:7px}
}

/* Zebra Tetris PC — le bandeau JOUER / RESTART / MENU doit rester utilisable
   avec la souris; seule la manette dessinée appartient au téléphone. */
@media(min-width:701px) and (hover:hover) and (pointer:fine){
 .zebra-game-body .zg-retro .zt-handheld{
  display:block;flex:0 0 43px;width:100%;height:43px;min-height:0;
  padding:0;margin:2px auto 0;border:0;border-radius:0;
  background:none!important;box-shadow:none;overflow:visible;
 }
 .zebra-game-body .zg-retro .zt-handheld::before{display:none!important}
 .zebra-game-body .zg-retro .zt-handheld .zt-dpad,
 .zebra-game-body .zg-retro .zt-handheld .zt-action-side{display:none!important}
 .zebra-game-body .zg-retro .zt-handheld .zt-buttons{
  display:flex;align-items:center;justify-content:center;height:43px;
 }
}


/* Zebra Tetris v2.3 — chargement atomique : aucune apparition isolée
   du logo ou du visuel PAUSE pendant l'animation Windows 95. */
.window-body.zebra-game-body:has(.zt-startup-loader){position:relative}
.zebra-game-body .zg.zg-retro.zt-assembling{
 visibility:hidden;opacity:0;pointer-events:none;
}
.zebra-game-body .zg.zg-retro:not(.zt-assembling){
 opacity:1;transition:opacity 110ms ease-out;
}
.zebra-game-body .zt-startup-loader{
 position:absolute;inset:0;z-index:3;
 display:flex;align-items:center;justify-content:center;
 background:#181025;color:#e7b6ec;
 font:700 12px/1.5 "Courier New",monospace;
 letter-spacing:1.5px;text-align:center;padding:18px;
 text-shadow:1px 1px #160920;
 user-select:none;pointer-events:none;
}
@media(prefers-reduced-motion:reduce){
 .zebra-game-body .zg.zg-retro:not(.zt-assembling){transition:none}
}

/* Chargement à la demande des jeux / de ZebraPaint : indicateur discret. */
.zebra-lazy-loading{
 margin:auto;align-self:center;justify-self:center;text-align:center;
 display:flex;flex-direction:column;gap:12px;align-items:center;
 padding:28px;color:#233958;font:700 12px "Courier New",monospace;
}
.zebra-lazy-loading::before{
 content:"";display:block;width:30px;height:30px;
 border:4px solid #8b99b0;border-top-color:#264c93;
 border-radius:50%;animation:zebra-loading-spin .8s linear infinite;
}
@keyframes zebra-loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.zebra-lazy-loading::before{animation:none}}


/* Tetris — plateau strictement fixe, indépendamment des contrôles restaurés. */
.zebra-game-body .zg-retro .zg-tetris-stage,
.zebra-game-body .zg-retro .zg-tetris-stage.zt-tetris-burst{
 transform:none!important;
 animation:none!important;
}
.zebra-game-body .zg-retro .zg-tetris-stage.zt-tetris-burst::after{
 animation:zt-tetris-flash-fixed .72s steps(1,end)!important;
}
@keyframes zt-tetris-flash-fixed{
 0%{opacity:0}
 8%{opacity:.72}
 18%{opacity:.12}
 29%{opacity:.62}
 41%{opacity:.08}
 55%{opacity:.42}
 70%{opacity:.05}
 100%{opacity:0}
}

/* Réglage de l'ordinateur — diagnostic FPS */
.zcp-performance{display:flex;flex-direction:column;gap:12px;min-height:100%;box-sizing:border-box}
.zcp-performance-field{padding:16px 18px;flex:1}
.zcp-fps-reading{display:flex;align-items:baseline;justify-content:center;gap:12px;margin:12px 0 18px;font-variant-numeric:tabular-nums}
.zcp-fps-value{font:700 clamp(44px,10vw,68px)/1 "Courier New",monospace;color:#163c30}
.zcp-fps-unit{font:700 17px/1 "Courier New",monospace;color:#39574d}
.zcp-fps-meter{height:14px;overflow:hidden;background:#d0d3ce;border:inset 2px #87948c}
.zcp-fps-fill{height:100%;width:0;background:linear-gradient(90deg,#477c60,#1b5943);transition:width .35s ease}
.zcp-fps-status{text-align:center;font-weight:bold;margin:12px 0}
.zcp-performance .zcp-help{font-size:12px;line-height:1.45;margin:14px 0 0}
