/* fennekos.org v2: the interactive desktop demo (shared look with the classic page) */
.desk { --sand: #f2b766; --sand-2: #ffe2b8; --mono: "Geist Mono", Consolas, monospace; --font: "Geist", system-ui, sans-serif; }
.desk { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; user-select: none; -webkit-user-select: none; color: #f6f1ea; font-family: "Segoe UI", var(--font); line-height: 1.45;
  background: radial-gradient(ellipse 60% 50% at 78% 85%, #f2b76655, transparent 60%), linear-gradient(135deg, #16122b 0%, #2d2150 38%, #7a3f45 72%, #c8743a 100%);
  box-shadow: 0 0 0 1px #f7dca322, 0 40px 90px -30px #000; container-type: inline-size; }
.desk::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("../assets/fennek.svg") no-repeat 50% 44% / 18% auto; opacity: .07; filter: grayscale(1) brightness(3); }
.desk-icons { position: absolute; left: 1.6%; top: 2.4%; display: grid; gap: 4px; z-index: 1; }
.dico { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 78px; padding: 6px 2px; border-radius: 6px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px #000c; border: 1px solid transparent; }
.dico:hover { background: #ffffff1c; border-color: #ffffff20; }
.dico.sel { background: #f2b76638; border-color: #f2b76670; }

.ic { display: block; width: 34px; height: 34px; position: relative; flex: none; }
.ic-pc { background: linear-gradient(#7ec8ff, #3d7fd6); border-radius: 4px; height: 24px; margin: 4px 0 6px; box-shadow: 0 8px 0 -5px #c9d3e0; }
.ic-folder { background: linear-gradient(#ffd77a, #f2b23a); border-radius: 3px 6px 4px 4px; height: 26px; margin-top: 6px; }
.ic-folder::before { content: ""; position: absolute; left: 0; top: -5px; width: 45%; height: 8px; background: #e9a62e; border-radius: 3px 3px 0 0; }
.ic-exe { background: linear-gradient(#fafafa, #d9d4e6); border-radius: 3px; width: 28px; margin-inline: 3px; }
.ic-exe::after { content: "EXE"; position: absolute; left: 50%; bottom: 4px; translate: -50% 0; font: 700 8px/1 var(--mono); color: #fff; background: #6d4bd6; padding: 2px 3px; border-radius: 2px; }
.ic-trash { background: linear-gradient(#e7ecf2, #aeb8c6); border-radius: 2px 2px 6px 6px; width: 24px; margin: 6px 5px 0; height: 28px; }
.ic-trash::before { content: ""; position: absolute; left: -3px; right: -3px; top: -4px; height: 3px; background: #d5dbe4; border-radius: 2px; }
.ic-term { background: #120d20; border: 1px solid #ffffff40; border-radius: 4px; }
.ic-term::after { content: ">_"; position: absolute; left: 5px; top: 6px; font: 700 12px/1 var(--mono); color: var(--sand); }
.ic-clock { border-radius: 50%; border: 3px solid currentColor; }
.ic-clock::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 10px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; translate: -2px -9px; }
.ic-shield { background: currentColor; clip-path: polygon(50% 0, 100% 15%, 100% 50%, 50% 100%, 0 50%, 0 15%); }
.ic-upd { border-radius: 50%; border: 3px solid var(--sand); border-right-color: transparent; }

.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 42px; display: flex; align-items: center; background: #0d0a18e6; backdrop-filter: blur(20px); border-top: 1px solid #ffffff12; z-index: 5; }
.bar-start { width: 48px; height: 100%; display: grid; place-items: center; transition: background .15s; flex: none; }
.bar-start:hover, .bar-start[aria-expanded="true"] { background: #ffffff18; }
.bar-search { width: 46px; height: 100%; display: grid; place-items: center; color: #d4cadf; flex: none; transition: background .15s; }
.bar-search .i { width: 17px; height: 17px; }
.bar-search:hover { background: #ffffff14; }
.bar-pins, .bar-apps { display: flex; height: 100%; min-width: 0; }
.bar-apps { overflow: hidden; }
.bar-app { position: relative; width: 46px; height: 100%; display: grid; place-items: center; flex: none; transition: background .15s; }
.bar-app:hover { background: #ffffff14; }
.bar-app .ic { transform: scale(.6); margin: -7px; }
.bar-app .ic-shield { color: #5fd39a; }
.bar-app::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 0; height: 2px; background: var(--sand); transform: scaleX(0); transition: transform .2s; }
.bar-app.run::after { transform: scaleX(1); }
.bar-app.run { background: #ffffff0a; }
.bar-apps .bar-app { animation: pop .25s ease-out; }
.bar-tray { margin-left: auto; display: flex; align-items: center; gap: 12px; padding: 0 14px; color: #d4cadf; font-size: 12px; flex: none; }
.tray-ic { display: grid; }
.tray-ic:first-child { color: #5fd39a; }
.clock { font-variant-numeric: tabular-nums; }

.start { position: absolute; left: 0; bottom: 42px; width: min(560px, 76%); height: min(430px, 78%); background: #120d22f2; backdrop-filter: blur(30px); border: 1px solid #ffffff14; border-bottom: 0; z-index: 6; display: flex; flex-direction: column; animation: rise .22s cubic-bezier(.2,.8,.2,1); }
.start[hidden] { display: none; }
/* the search button opens a slimmer panel: results only, the box at the bottom */
.start.searching { left: 44px; width: min(400px, 70%); flex-direction: column-reverse; }
.start.searching .tiles { display: none; }
.start.searching .start-body { grid-template-columns: 1fr; padding-top: 14px; }
.start-search { display: flex; align-items: center; gap: 10px; margin: 14px; padding: 9px 12px; background: #ffffff12; border: 1px solid #ffffff14; border-radius: 4px; color: #9d92b1; }
.start-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #f6f1ea; font-size: 13px; }
.start-body { flex: 1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 0 14px 14px; min-height: 0; }
.start-list { overflow: auto; font-size: 13px; scrollbar-width: thin; }
.start-list li button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; text-align: left; border-radius: 3px; color: #d4cadf; }
.start-list li button:hover { background: #ffffff14; color: #fff; }
.start-list .ic { width: 22px; height: 22px; transform: scale(.65); margin: -3px; }
.start-list .lbl { font: 600 10px/1 var(--mono); letter-spacing: .12em; color: #75688a; padding: 10px 8px 4px; text-transform: uppercase; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 6px; min-height: 0; }
.tile { min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 10px; text-align: left; font-size: 12px; color: #fff; transition: filter .15s, transform .15s; }
.tile:hover { filter: brightness(1.15); transform: scale(.98); }
.tile .ic { transform: scale(.8); transform-origin: left top; }
.tile small { display: block; opacity: .75; font-size: 10px; }
.tile.wide { grid-column: span 2; }
.t1 { background: #6a4a1f; } .t2 { background: #2a2148; } .t3 { background: #3d2d6b; color: var(--sand-2); } .t4 { background: #1f4d3b; color: #5fd39a; } .t5 { background: linear-gradient(120deg, #3d2d6b, #7a3f45); }

.wins { position: absolute; inset: 0 0 42px; z-index: 3; pointer-events: none; }
.win { position: absolute; pointer-events: auto; background: #17122a; border: 1px solid #ffffff1c; box-shadow: 0 30px 70px -20px #000d; display: flex; flex-direction: column; animation: open .24s cubic-bezier(.2,.8,.2,1); min-width: 0; }
.win.closing { animation: close .16s ease-in forwards; }
.win-bar { display: flex; align-items: center; height: 32px; padding-left: 12px; font-size: 12px; color: #d4cadf; background: #0f0b1d; cursor: grab; flex: none; }
.win-bar:active { cursor: grabbing; }
.win-bar .t { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.win-bar .x { width: 44px; height: 100%; display: grid; place-items: center; color: #9d92b1; }
.win-bar .x:hover { background: #e81123; color: #fff; }
.win-body { flex: 1; overflow: auto; padding: 16px; font-size: 13px; color: #d4cadf; min-height: 0; }
.win-body code { background: #ffffff14; color: var(--sand-2); }
.win.sbx { border-color: #a68bff70; box-shadow: 0 0 0 1px #a68bff40, 0 0 40px -6px #a68bff60, 0 30px 70px -20px #000d; }
.win.sbx .win-bar { background: linear-gradient(90deg, #2a1f55, #0f0b1d); }
.sbx-tag { font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #a68bff; border: 1px solid #a68bff60; padding: 3px 6px; border-radius: 4px; }
.setup h4 { margin: 0 0 6px; font-size: 17px; color: #fff; }
.prog { height: 6px; border-radius: 3px; background: #ffffff14; overflow: hidden; margin: 14px 0; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffe2b8, #f2b766, #e08a4a); animation: fill 3.2s ease-out forwards; }
.walls { display: grid; gap: 6px; margin-top: 10px; }
.walls div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; background: #ffffff08; border: 1px solid #ffffff0d; font-size: 12px; }
.walls b { margin-left: auto; font: 600 11px var(--mono); white-space: nowrap; }
.walls .y { color: #5fd39a; } .walls .n { color: #ff7b72; }
.flist { display: grid; gap: 2px; font-size: 12px; }
.flist div { display: grid; grid-template-columns: 1fr 90px 60px; gap: 8px; padding: 5px 8px; border-radius: 3px; transition: background .3s, color .3s; }
.flist div:first-child { color: #75688a; font-size: 11px; border-bottom: 1px solid #ffffff14; border-radius: 0; }
.flist div:not(:first-child):hover, .flist div.hl { background: #f2b76626; }
.flist .enc { color: #ff7b72; }
.flist .back { color: #5fd39a; }
.ctx { position: absolute; z-index: 8; min-width: 190px; padding: 4px; background: #1a1430; border: 1px solid #ffffff24; box-shadow: 0 16px 40px -10px #000c; font-size: 12px; animation: open .14s ease-out; }
.ctx div { padding: 6px 10px; border-radius: 3px; color: #d4cadf; }
.ctx div.hot { background: #f2b76630; color: #fff; }
.drives { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.drive { padding: 10px; border-radius: 6px; background: #ffffff08; border: 1px solid #ffffff0d; }
.drive b { display: block; color: #fff; font-size: 12.5px; }
.drive .meter { height: 6px; background: #ffffff18; border-radius: 3px; margin: 7px 0 4px; overflow: hidden; }
.drive .meter i { display: block; height: 100%; background: #3d8cff; }
.drive small { color: #75688a; font-size: 11px; }
.wterm { background: #0a0714; margin: -16px; padding: 14px; min-height: calc(100% + 32px); font: 12px/1.65 var(--mono); color: #e7e0f5; white-space: pre-wrap; }
.wterm .p { color: var(--sand); } .wterm .c { color: #8d81a3; }
.toast { position: absolute; right: 12px; bottom: 54px; width: min(320px, 60%); padding: 12px 14px; background: #1a1430f2; border: 1px solid #ffffff1f; border-left: 3px solid var(--sand); box-shadow: 0 20px 50px -10px #000c; z-index: 7; font-size: 12.5px; color: #d4cadf; animation: slidein .3s cubic-bezier(.2,.8,.2,1); }
.toast b { display: block; color: #fff; margin-bottom: 2px; font-size: 13px; }
.toast.out { animation: slideout .3s ease-in forwards; }

@container (max-width: 640px) {
  .dico { width: 58px; font-size: 10px; padding: 3px 2px; }
  .ic { width: 24px; height: 24px; }
  .ic-pc { height: 17px; } .ic-folder { height: 18px; } .ic-exe { width: 20px; } .ic-exe::after { font-size: 6px; } .ic-trash { width: 17px; height: 20px; }
  .bar { height: 34px; } .wins { bottom: 34px; } .start { bottom: 34px; width: 100%; height: 92%; } .toast { bottom: 42px; width: auto; left: 10px; right: 10px; padding: 8px 10px; font-size: 11px; }
  .bar-app, .bar-search { width: 38px; }
  .win { left: 3% !important; top: 3% !important; width: 94% !important; height: 92% !important; }
  .win-body { padding: 10px; font-size: 11px; }
  .walls div { padding: 4px 8px; font-size: 10.5px; } .walls { gap: 3px; margin-top: 6px; }
  .setup h4 { font-size: 14px; } .setup p { display: none; } .prog { margin: 8px 0; }
  .start-body { grid-template-columns: 1fr; }
  .tiles { display: none; }
  .flist div { grid-template-columns: 1fr 70px; } .flist div span:nth-child(3) { display: none; }
  .wterm { margin: -10px; padding: 10px; min-height: calc(100% + 20px); font-size: 10.5px; }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes open { from { opacity: 0; transform: scale(.94); } }
@keyframes close { to { opacity: 0; transform: scale(.94); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
@keyframes fill { to { width: 100%; } }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); } }
@keyframes slideout { to { opacity: 0; transform: translateX(30px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .desk { aspect-ratio: 4 / 5; } }
.ic-img { display: block; width: 34px; height: 34px; object-fit: contain; }
.bar-app .ic-img { width: 22px; height: 22px; transform: none; margin: 0; }
.start-list .ic-img { width: 20px; height: 20px; transform: none; margin: 0 1px; }
.tile .ic-img { width: 30px; height: 30px; transform: none; }
.t3 { background: #3a4150; } .t4 { background: #6b3a26; }
.bar { background: #0b0915f2; }
.bar-app::after { left: 4px; right: 4px; background: #b7acc9; }
.bar-app.focus { background: #ffffff14; }
.bar-app.focus::after { background: var(--sand); }
.bar-app.run { background: none; }
.bar-app.run.focus { background: #ffffff14; }
.sset { display: grid; gap: 14px; }
.sset-search { display: flex; align-items: center; gap: 10px; width: min(360px, 100%); margin: 2px auto 4px; padding: 8px 12px; border-radius: 6px; background: #ffffff10; border: 1px solid #ffffff14; color: #9d92b1; font-size: 12px; }
.sset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sset-grid div { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 10px; border-radius: 6px; background: #ffffff07; border: 1px solid #ffffff0c; }
.sset-grid div:hover { background: #ffffff12; }
.sset-grid img { grid-row: 1 / 3; width: 30px; height: 30px; }
.sset-grid b { font-size: 12px; color: #fff; font-weight: 600; }
.sset-grid small { font-size: 10.5px; color: #8d81a3; }
@container (max-width: 640px) { .sset-grid { grid-template-columns: 1fr 1fr; } .sset-grid small { display: none; } .sset-grid div { padding: 6px; } }
.boot { position: absolute; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: 22px; background: #07050f; transition: opacity .7s ease, visibility .7s; }
.boot img { width: 13%; max-width: 72px; min-width: 40px; height: auto; opacity: 0; transform: scale(.9); transition: opacity .6s, transform .8s cubic-bezier(.2,.8,.2,1); }
.boot i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ffffff22; border-top-color: var(--sand); opacity: 0; animation: spin .8s linear infinite; transition: opacity .4s .3s; }
.desk.booting .boot img { opacity: 1; transform: none; }
.desk.booting .boot i { opacity: 1; }
.desk.booted .boot { opacity: 0; visibility: hidden; }
.no-js .boot { display: none; }
@media (prefers-reduced-motion: reduce) { .desk *, .desk *::before, .desk *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
