/*
Theme Name: Aero Arcade
Theme URI: https://wordpress.org/themes/
Author: Shilofax
Description: A personal-site theme that turns your blog into a Windows XP / Vista / 7 desktop. Aero glass windows, a Start orb and taskbar, Vista-style sidebar gadgets (clock, Now Playing, hit counter), Explorer-style post archives, a Control Panel "My Links" page, a BSOD 404 and plenty of early-internet charm: 88×31 badges, a scrolling info bar, sparkle cursor and a boot screen. Recent posts (3 or 4) live on the desktop with a "View remaining posts" button.
Version: 1.6.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aero-arcade
Tags: blog, personal, custom-background, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, block-styles
*/

/* ==========================================================================
   0. Tokens & reset
   ========================================================================== */
:root {
	--font: "Segoe UI", "Segoe UI Web", Tahoma, "Trebuchet MS", Verdana, sans-serif;
	--font-light: "Segoe UI Light", "Segoe UI", Tahoma, Verdana, sans-serif;
	--mono: Consolas, "Lucida Console", "Courier New", monospace;
	--ink: #1e1e1e;
	--ink-soft: #6d6d6d;
	--heading: #1e395b;
	--link: #0066cc;
	--frame-border: #8fa6c3;
	--pane-border: #a5bbd5;
	--sel-hover-bg: linear-gradient(#fafbfd, #ebf3fd);
	--sel-hover-bd: #b8d6fb;
	--sel-bg: linear-gradient(#dcebfc, #c1dbfc);
	--sel-bd: #7da2ce;
	--taskbar-h: 40px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scrollbar-color: #c2c7cd #eef0f2; }

body {
	margin: 0;
	min-height: 100vh;
	font: 13px/1.45 var(--font);
	color: #fff;
	background-color: #0b2d5b;
	background-size: cover;
	background-attachment: fixed;
	background-position: center;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
::selection { background: #3399ff; color: #fff; }

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 2px solid #3399ff;
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	top: 8px; left: 8px; z-index: 10000; padding: 8px 14px;
	background: #ffffe1; color: #000; border: 1px solid #000;
}

/* ==========================================================================
   1. Wallpaper — an aurora in the spirit of Vista / 7
   ========================================================================== */
body.aa-aurora {
	background-image:
		radial-gradient(120% 55% at 50% 115%, rgba(90, 255, 170, .55), transparent 62%),
		radial-gradient(70% 45% at 8% 92%, rgba(0, 200, 255, .5), transparent 62%),
		radial-gradient(55% 40% at 92% 12%, rgba(176, 92, 255, .42), transparent 70%),
		radial-gradient(50% 35% at 20% 10%, rgba(40, 140, 255, .35), transparent 70%),
		linear-gradient(165deg, #04122b 0%, #0a326b 42%, #0a5e86 72%, #087a5a 100%);
}
body.aa-aurora::before,
body.aa-aurora::after {
	content: "";
	position: fixed;
	pointer-events: none;
	z-index: -1;
}
body.aa-aurora::before {
	inset: -20%;
	background:
		radial-gradient(ellipse 55% 9% at 32% 52%, rgba(140, 255, 220, .45), transparent 70%),
		radial-gradient(ellipse 65% 7% at 62% 42%, rgba(110, 200, 255, .45), transparent 70%),
		radial-gradient(ellipse 45% 6% at 48% 64%, rgba(210, 140, 255, .35), transparent 70%);
	filter: blur(18px);
	transform: rotate(-14deg);
}
body.aa-aurora::after {
	width: 170vw;
	height: 130vh;
	left: -35vw;
	top: 42vh;
	border-radius: 50%;
	border-top: 2px solid rgba(255, 255, 255, .5);
	box-shadow: 0 -14px 50px rgba(150, 230, 255, .35), inset 0 16px 60px rgba(150, 230, 255, .22);
}

/* ==========================================================================
   2. Desktop shell
   ========================================================================== */
.desktop {
	position: relative;
	padding: 14px 18px calc(var(--taskbar-h) + 20px);
	max-width: 1500px;
	margin: 0 auto;
}

.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
	padding: 2px 4px 16px;
}
.site-title {
	margin: 0;
	font: 300 30px/1.1 var(--font-light);
	letter-spacing: .5px;
}
.site-title a {
	color: #fff;
	text-decoration: none;
	text-shadow: 0 0 18px rgba(120, 210, 255, .95), 0 2px 3px rgba(0, 0, 0, .6);
}
.site-desc {
	margin: 0;
	color: rgba(255, 255, 255, .85);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
	font-style: italic;
}

/* Desktop icons */
.desk-icons ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.desk-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 86px;
	padding: 6px 2px 5px;
	border: 1px solid transparent;
	border-radius: 3px;
	background: none;
	color: #fff;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	font-size: 12px;
	line-height: 1.2;
}
.desk-icon span { text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.desk-icon-img { display: block; width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .45)); transition: transform .15s; }
.desk-icon:hover .desk-icon-img { transform: translateY(-2px); }
.desk-icon svg { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .45)); transition: transform .15s; }
.desk-icon:hover,
.desk-icon:focus-visible {
	background: linear-gradient(rgba(190, 225, 255, .32), rgba(150, 200, 255, .18));
	border-color: rgba(200, 230, 255, .65);
	outline: none;
}
.desk-icon:hover svg { transform: translateY(-2px); }
.desk-icon[aria-current="page"], .desk-folder.is-current, .desk-folder[aria-expanded="true"] {
	background: linear-gradient(rgba(160, 210, 255, .45), rgba(110, 170, 240, .3));
	border-color: rgba(210, 235, 255, .85);
}

/* ==========================================================================
   3. Aero windows
   ========================================================================== */
.win {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 0 7px 7px;
	margin: 0 0 22px;
	border: 1px solid rgba(15, 30, 55, .8);
	border-radius: 8px 8px 6px 6px;
	color: var(--ink);
	background:
		repeating-linear-gradient(118deg, transparent 0 46px, rgba(255, 255, 255, .07) 46px 70px, transparent 70px 120px),
		linear-gradient(to bottom, rgba(220, 236, 252, .82), rgba(166, 200, 238, .66) 34px, rgba(140, 182, 228, .6));
	-webkit-backdrop-filter: blur(14px) saturate(1.5);
	backdrop-filter: blur(14px) saturate(1.5);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, .6),
		0 12px 38px rgba(0, 0, 0, .55),
		0 0 0 1px rgba(0, 0, 0, .15);
	transition: transform .25s ease, opacity .25s ease, box-shadow .2s;
}
.win--wide { max-width: 1180px; margin-left: auto; margin-right: auto; }

.win-titlebar {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 0 0 0 3px;
	user-select: none;
}
.win-icon { display: inline-flex; flex: none; }
.win-title {
	margin: 0;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font: 400 13px/30px var(--font);
	color: #000;
	text-shadow: 0 0 10px #fff, 0 0 8px #fff, 0 0 4px #fff, 0 0 2px #fff;
}

/* Caption buttons */
.win-controls {
	display: flex;
	align-self: flex-start;
	margin-top: -1px;
	flex: none;
}
.wc {
	display: grid;
	place-items: center;
	height: 19px;
	width: 26px;
	padding: 0;
	border: 1px solid rgba(20, 35, 60, .75);
	border-left-width: 0;
	background: linear-gradient(#e6eef8 0, #cddbef 45%, #a9c1df 50%, #bfd4ec 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
	cursor: default;
}
button.wc { cursor: pointer; }
.wc:first-child { border-left-width: 1px; border-bottom-left-radius: 4px; }
.wc:last-child { border-bottom-right-radius: 4px; }
.wc-max { width: 25px; }
.wc-close {
	width: 43px;
	background: linear-gradient(#eeb2a2 0, #dc8e78 45%, #c8412a 50%, #d4684f 100%);
}
button.wc:hover { background: linear-gradient(#dff4ff 0, #9bd8fb 45%, #2c9ae6 50%, #6fd0ff 100%); }
button.wc-close:hover { background: linear-gradient(#ffc2b0 0, #f39478 45%, #e2361a 50%, #ff7a55 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 0 8px rgba(255, 80, 40, .8); }
button.wc:active { filter: brightness(.85); }
.wc span { display: block; position: relative; }
.wc-min span { width: 9px; height: 3px; margin-top: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(25, 40, 70, .85); }
.wc-max span { width: 10px; height: 8px; border: 1px solid #fff; border-top-width: 3px; box-shadow: 0 0 0 1px rgba(25, 40, 70, .85), inset 0 0 0 1px rgba(25, 40, 70, .85); }
.wc-close span { width: 12px; height: 12px; }
.wc-close span::before,
.wc-close span::after {
	content: "";
	position: absolute;
	left: -1px;
	top: 5px;
	width: 14px;
	height: 3px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(90, 10, 0, .8);
	transform: rotate(45deg);
}
.wc-close span::after { transform: rotate(-45deg); }

/* Glass command bar (back/forward + address + search) */
.win-cmdbar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 2px 0 6px;
}
.navbtns {
	display: flex;
	flex: none;
	gap: 1px;
	padding: 1px;
	border-radius: 16px;
	background: rgba(0, 20, 50, .25);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .5);
}
.navbtn {
	position: relative;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid #12407a;
	background: radial-gradient(circle at 50% 30%, #c9f0ff 0, #3aa3ec 45%, #0d5bb8 80%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
	padding: 0;
	cursor: pointer;
}
.navbtn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M12 7H3M7 2.5L2.5 7 7 11.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5));
}
.navbtn-fwd::before { transform: scaleX(-1); }
.navbtn:not(:disabled):hover { filter: brightness(1.15) saturate(1.2); }
.navbtn:disabled {
	background: radial-gradient(circle at 50% 30%, #f4f8fc 0, #b8c8db 50%, #7d93ad 85%);
	border-color: #5c7390;
	cursor: default;
}
.navbtn:disabled::before { opacity: .65; }

.addressbar,
.urlbar {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 2px;
	height: 26px;
	padding: 0 6px;
	overflow: hidden;
	white-space: nowrap;
	background: rgba(255, 255, 255, .93);
	border: 1px solid #7a93b3;
	border-radius: 2px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12), 0 1px 0 rgba(255, 255, 255, .55);
	color: #000;
}
.addr-icon { display: inline-flex; margin-right: 2px; }
.crumb-sep { color: #555; font-size: 10px; padding: 0 2px; }
.crumb {
	padding: 2px 4px;
	border: 1px solid transparent;
	border-radius: 2px;
	color: #000;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
}
a.crumb:hover { background: var(--sel-hover-bg); border-color: var(--sel-hover-bd); }
.urlbar .url { flex: 1; overflow: hidden; text-overflow: ellipsis; color: #1a1a1a; }
.url-go { color: #2d6a2d; font-weight: bold; padding: 0 4px; }

.cmd-search {
	display: flex;
	flex: 0 1 220px;
	height: 26px;
	background: rgba(255, 255, 255, .93);
	border: 1px solid #7a93b3;
	border-radius: 2px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
}
.cmd-search input {
	flex: 1;
	min-width: 0;
	padding: 0 6px;
	border: 0;
	background: transparent;
	font: italic 12px var(--font);
	color: #000;
}
.cmd-search input:focus { outline: none; font-style: normal; }
.cmd-search button { width: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }

/* Light strips inside windows */
.cmd-strip,
.menubar {
	display: flex;
	align-items: center;
	gap: 2px;
	min-height: 30px;
	padding: 0 6px;
	border: 1px solid var(--pane-border);
	border-bottom: 0;
	background: linear-gradient(#fbfdff 0, #e8f0fa 50%, #dce7f5 50%, #d4e2f3 100%);
	color: var(--heading);
}
.menubar { min-height: 22px; background: linear-gradient(#fdfeff, #e7eef7); }
.menubar span, .cmd-strip-label { padding: 3px 8px; border: 1px solid transparent; border-radius: 3px; cursor: default; }
.menubar span:hover, .cmd-strip-label:hover { border-color: rgba(125, 162, 206, .7); background: linear-gradient(rgba(255, 255, 255, .8), rgba(220, 235, 252, .6)); }

.viewtoggle { margin-left: auto; display: flex; }
.viewtoggle button {
	padding: 3px 10px;
	border: 1px solid transparent;
	border-radius: 3px;
	background: none;
	color: var(--heading);
	cursor: pointer;
}
.viewtoggle button:hover { border-color: var(--sel-hover-bd); background: var(--sel-hover-bg); }
.viewtoggle button[aria-pressed="true"] { border-color: var(--sel-bd); background: var(--sel-bg); }

.infobar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 3px 8px;
	background: #ffffe1;
	border: 1px solid var(--pane-border);
	border-bottom: 1px solid #e3dcae;
	border-top-width: 0;
	color: #000;
	font-size: 12px;
	overflow: hidden;
}
.win-cmdbar + .infobar { border-top-width: 1px; }
.infobar-ico { display: inline-flex; flex: none; }
.ticker {
	flex: 1;
	overflow: hidden;
	white-space: nowrap;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker span { display: inline-block; animation: aa-ticker 28s linear infinite; }
@keyframes aa-ticker { to { transform: translateX(-100%); } }

.win-frame {
	flex: 1;
	min-height: 0;
	background: #fff;
	border: 1px solid var(--frame-border);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .4);
	color: var(--ink);
}
.statusbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 3px 8px;
	background: linear-gradient(#f2f6fb, #dae4f1);
	border: 1px solid var(--pane-border);
	border-top-color: #cbd8e9;
	color: var(--heading);
	font-size: 12px;
}
.statusbar span { display: inline-flex; align-items: center; gap: 5px; }
.statusbar span + span { padding-left: 10px; border-left: 1px solid #b9c9dd; }


/* ==========================================================================
   4. Buttons & form controls (Windows 7)
   ========================================================================== */
.btn7,
.nav-links .page-numbers,
.comment-reply-link,
input[type="submit"],
.wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 24px;
	padding: 2px 14px;
	border: 1px solid #707070;
	border-radius: 3px;
	background: linear-gradient(#f2f2f2 0, #ebebeb 50%, #dddddd 50%, #cfcfcf 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
	color: #000;
	font: 13px var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.btn7:hover,
.nav-links a.page-numbers:hover,
.comment-reply-link:hover,
input[type="submit"]:hover,
.wp-block-search__button:hover {
	border-color: #3c7fb1;
	background: linear-gradient(#eaf6fd 0, #d9f0fc 50%, #bee6fd 50%, #a7d9f5 100%);
}
.btn7:active,
.nav-links .page-numbers.current,
input[type="submit"]:active {
	border-color: #2c628b;
	background: linear-gradient(#e5f4fc 0, #c4e5f6 50%, #98d1ef 50%, #68b3db 100%);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3);
}
.btn7:focus-visible { outline: 1px dotted #000; outline-offset: -4px; border-color: #3399ff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), 0 0 4px #3399ff; }

.btn-vista {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 10px 7px 10px;
	border: 1px solid #3c7fb1;
	border-radius: 4px;
	background: linear-gradient(#f1f9fe 0, #dcf1fc 48%, #bee6fd 50%, #a7d9f5 100%);
	box-shadow: inset 0 1px 0 #fff, 0 1px 4px rgba(0, 40, 90, .2);
	color: #0b3f7a;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: filter .15s, box-shadow .15s;
}
.btn-vista small { display: block; font-size: 12px; font-weight: 400; color: #3a5f86; }
.btn-vista b {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-left: 6px;
	border-radius: 50%;
	border: 1px solid #1e6a1e;
	background: radial-gradient(circle at 50% 30%, #d7ffc8 0, #5fd34a 45%, #1f8a1f 85%);
	color: #fff;
	font-size: 13px;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.btn-vista:hover { filter: brightness(1.05) saturate(1.15); box-shadow: inset 0 1px 0 #fff, 0 0 10px rgba(60, 160, 255, .6); }
.btn-vista:hover b { filter: brightness(1.12); }
.btn-vista:active { filter: brightness(.95); }

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"]:not(.cmd-search input):not(.sm-search input):not(.bsod-search input),
textarea, select {
	width: 100%;
	padding: 4px 6px;
	border: 1px solid #abadb3;
	border-top-color: #8e8f8f;
	border-radius: 2px;
	background: #fff;
	color: #000;
	font: 13px var(--font);
}
input:focus, textarea:focus, select:focus { border-color: #3d7bad; outline: none; box-shadow: 0 0 0 1px rgba(61, 123, 173, .25); }

.notice7 { padding: 8px 12px; background: #ffffe1; border: 1px solid #e3dcae; color: #000; }

/* ==========================================================================
   5. Front page desktop
   ========================================================================== */
/* Desktop icons column + workspace, on every page */
.shell {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}
.shell.no-icons { grid-template-columns: minmax(0, 1fr); }
.workspace { min-width: 0; }
.shell > .desk-icons {
	position: sticky;
	top: 14px;
	max-height: calc(100vh - var(--taskbar-h) - 28px);
	overflow-y: auto;
	scrollbar-width: none;
}
.shell > .desk-icons::-webkit-scrollbar { display: none; }

.front {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 250px;
	grid-template-areas: "main gadgets";
	gap: 22px;
	align-items: start;
}
.front.no-gadgets { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
.front-main { grid-area: main; min-width: 0; }
.front > .gadgets { grid-area: gadgets; }
/* Icons live in the page shell now; never let a stray copy squeeze the posts window. */
.front > .desk-icons { display: none; }

/* Window chrome is decorative: caption buttons can't be clicked and windows never move. */
.workspace .win-controls { pointer-events: none; }
.workspace .win { transform: none !important; }

.tiles { display: grid; gap: 4px; padding: 12px; }
.tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tile-link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 9px;
	border: 1px solid transparent;
	border-radius: 3px;
	color: var(--ink);
	text-decoration: none;
}
.tile-link:hover { background: var(--sel-hover-bg); border-color: var(--sel-hover-bd); }
.tile-link:focus-visible, .tile-link:active { background: var(--sel-bg); border-color: var(--sel-bd); outline: none; }
.tile-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border: 4px solid #fff;
	outline: 1px solid #c8d2de;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .28);
	background: #e8eef5;
}
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.tile-link:hover .tile-thumb img { transform: scale(1.04); }
.tile-thumb-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 12px 12px,
		linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 12px 12px,
		linear-gradient(140deg, #1b4f9c, #3ec6ff);
}
.tile-thumb-fallback svg { width: 72px; height: 72px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.tf-arcade { background-color: #2b0a6b; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(140deg, #2b0a6b, #ff2a8a); }
.tf-gamepad { background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(140deg, #0c3b1c, #39d36b); }
.tf-music { background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(140deg, #1a0638, #b04bff 55%, #2ee6ff); }
.tf-palette { background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(140deg, #ff8a3b, #ff3b7a 55%, #ffd23b); }
.tf-arcade, .tf-gamepad, .tf-music, .tf-palette { background-size: 12px 12px, 12px 12px, auto; }

.tile-text { display: flex; flex-direction: column; gap: 3px; }
.tile-title { font-size: 16px; line-height: 1.25; color: #0b4a8b; }
.tile-link:hover .tile-title { color: #0066cc; text-decoration: underline; }
.tile-meta { font-size: 12px; color: var(--ink-soft); }
.tile-excerpt {
	color: #333;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.view-remaining {
	display: flex;
	justify-content: flex-end;
	padding: 10px 14px;
	border-top: 1px solid #e2e9f2;
	background: linear-gradient(#fbfdff, #f1f6fb);
}

.empty-folder { padding: 50px 20px; text-align: center; color: var(--ink-soft); }
.empty-folder svg { opacity: .8; }

/* Notepad (static front page content) */
.win--notepad .entry-content { padding: 14px 18px; font: 14px/1.6 var(--mono); color: #000; }
.win--notepad .entry-content > :first-child { margin-top: 0; }

/* ==========================================================================
   6. Gadgets (Vista Sidebar)
   ========================================================================== */
.gadgets { display: flex; flex-direction: column; gap: 14px; }
.gadget {
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 8px;
	background: linear-gradient(rgba(60, 90, 130, .55), rgba(10, 22, 45, .72));
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .45);
	color: #fff;
}
.gadget a { color: #bfe6ff; }
.gadget-title {
	margin: 0;
	padding: 5px 10px;
	font: 600 12px var(--font);
	background: linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, .06));
	border-bottom: 1px solid rgba(255, 255, 255, .18);
	text-shadow: 0 1px 2px #000;
}
.gadget-body, .gadget > :not(.gadget-title):not(.clockface) { margin: 10px; }
.gadget-body > :first-child { margin-top: 0; }
.gadget-body > :last-child { margin-bottom: 0; }
.gadget p { margin: 0 0 8px; }
.gadget ul { padding-left: 18px; }
.gadget-caption { text-align: center; font-size: 12px; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 2px #000; }

.gadget-clock { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; }
.gadget-clock .gadget-caption { margin: 12px 0 0; }
.clockface {
	position: relative;
	width: 150px;
	height: 150px;
	margin: 6px auto 0;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 35%, #fff 0, #eef3f8 55%, #c3cfdc 100%);
	box-shadow: 0 0 0 5px #2f3a4a, 0 0 0 7px #a9b6c6, 0 0 0 8px #2f3a4a, 0 8px 18px rgba(0, 0, 0, .6), inset 0 -8px 14px rgba(0, 0, 0, .15);
}
.clockface::after {
	content: "";
	position: absolute;
	left: 12%;
	top: 4%;
	width: 76%;
	height: 44%;
	border-radius: 50%;
	background: linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
	pointer-events: none;
}
.tick { position: absolute; left: 50%; top: 6px; width: 2px; height: 9px; margin-left: -1px; background: #2f3a4a; transform-origin: 50% 69px; transform: rotate(var(--r)); }
.hand { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 2px; }
.hand-h { width: 5px; height: 38px; margin-left: -2.5px; background: #1c2430; }
.hand-m { width: 3px; height: 56px; margin-left: -1.5px; background: #1c2430; }
.hand-s { width: 1.5px; height: 62px; margin-left: -.75px; background: #d0101a; }
.pin { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff7a7a, #a00); }

.about-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.about-head strong { font-size: 15px; text-shadow: 0 1px 2px #000; }
.interest-chips { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.interest-chips li {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px 2px 4px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .25);
	font-size: 11px;
}

.usertile {
	display: inline-flex;
	padding: 4px;
	border-radius: 6px;
	background: linear-gradient(rgba(255, 255, 255, .9), rgba(190, 215, 240, .55));
	box-shadow: 0 1px 4px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .8);
	flex: none;
}
.usertile-img { display: block; border-radius: 3px; object-fit: cover; }
.usertile-default { display: grid; place-items: center; background: linear-gradient(140deg, #1a0638, #3a1d8a); }
.usertile-default svg { width: 80%; height: 80%; }

.viz {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 52px;
	padding: 4px;
	margin-bottom: 8px;
	border-radius: 4px;
	background: linear-gradient(#000814, #001a33);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.viz i {
	flex: 1;
	height: 25%;
	border-radius: 1px;
	background: linear-gradient(to top, #2ee6ff, #5cff8a 55%, #ffe14a 85%, #ff4fd8);
	animation: aa-viz .9s ease-in-out infinite alternate;
	animation-delay: calc(var(--d) * -1);
	box-shadow: 0 0 6px rgba(46, 230, 255, .5);
}
@keyframes aa-viz { 0% { height: 12%; } 40% { height: 85%; } 70% { height: 40%; } 100% { height: 100%; } }
.np-track { font-weight: 600; text-shadow: 0 1px 2px #000; }
.np-controls { display: flex; justify-content: center; align-items: center; gap: 8px; }
.np-controls span {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 10px;
	background: radial-gradient(circle at 50% 30%, #6d7a8c, #1c232c 80%);
	border: 1px solid #000;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.np-controls .np-play {
	width: 38px;
	height: 38px;
	font-size: 14px;
	background: radial-gradient(circle at 50% 30%, #c9f0ff 0, #2a9bea 45%, #0b3f87 85%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 10px rgba(46, 170, 255, .6);
}

.odometer { display: flex; justify-content: center; gap: 2px; margin: 2px 0 8px !important; }
.odometer span {
	display: inline-block;
	width: 22px;
	padding: 3px 0;
	text-align: center;
	font: bold 18px/1 "Courier New", monospace;
	color: #7dff6a;
	text-shadow: 0 0 6px #3f3;
	background: linear-gradient(#333 0, #000 50%, #111 50%, #222 100%);
	border: 1px solid #666;
	border-radius: 2px;
}

/* Find Me Online */
.social-list { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 2px; }
.social-list a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 4px 6px;
	border: 1px solid transparent;
	border-radius: 3px;
	color: #fff !important;
	text-decoration: none;
}
.social-list a:hover, .social-list a:focus-visible {
	border-color: rgba(255, 255, 255, .4);
	background: linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, .08));
	outline: none;
}
.social-list .link-icon-img { flex: none; width: 24px; height: 24px; object-fit: contain; }
.social-list svg { flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.sl-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.sl-label { font-weight: 600; text-shadow: 0 1px 2px #000; }
.sl-host { font-size: 11px; color: rgba(255, 255, 255, .7); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.gadget-more { margin: 8px 0 0 !important; text-align: right; font-size: 12px; }

/* Widgets dropped into the gadget sidebar */
.gadget .wp-block-latest-posts, .gadget ul { margin: 0; }
.gadget .wp-block-search__input { color: #000; }

/* ==========================================================================
   7. Explorer (archives / all posts / search)
   ========================================================================== */
.explorer { display: flex; min-height: 440px; }
.navpane {
	flex: 0 0 200px;
	padding: 6px 0 12px;
	border-right: 1px solid #d6e5f5;
	background: linear-gradient(90deg, #fff, #f6f9fd);
}
.np-head { margin: 8px 0 2px; padding: 2px 12px; color: var(--heading); font-weight: 600; font-size: 12px; }
.navpane ul { list-style: none; margin: 0; padding: 0 4px; }
.navpane a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 3px 8px 3px 14px;
	border: 1px solid transparent;
	border-radius: 3px;
	color: var(--ink);
	text-decoration: none;
}
.navpane a small { color: var(--ink-soft); }
.navpane a:hover { background: var(--sel-hover-bg); border-color: var(--sel-hover-bd); }
.navpane a[aria-current] { background: var(--sel-bg); border-color: var(--sel-bd); }

.filepane { flex: 1; min-width: 0; overflow-x: auto; }
.filepane-intro { padding: 10px 14px; background: #f6f9fd; border-bottom: 1px solid #e3ebf5; color: #333; }
.filepane-intro p { margin: 0; }
.filepane-intro a { color: var(--link); }

.filelist { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.filelist th {
	position: sticky;
	top: 0;
	padding: 4px 10px;
	text-align: left;
	font-weight: 400;
	color: #4c607a;
	background: #fff;
	border-bottom: 1px solid #e5ecf5;
	border-right: 1px solid #eef3f9;
	white-space: nowrap;
}
.filelist td { padding: 3px 10px; color: var(--ink-soft); white-space: nowrap; vertical-align: middle; }
.filelist .f-name { width: 60%; color: var(--ink); white-space: normal; }
.filelist .f-name a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.filelist .f-thumb { display: inline-flex; flex: none; }
.filelist[data-view="details"] .f-thumb svg,
.filelist[data-view="details"] .f-thumb img { width: 18px; height: 18px; object-fit: cover; border-radius: 2px; }
.filelist[data-view="details"] .f-excerpt { display: none; }
.filelist tbody tr { cursor: default; }
.filelist tbody tr:hover td { background: #eaf3fd; box-shadow: inset 0 1px #b8d6fb, inset 0 -1px #b8d6fb; }
.filelist tbody tr:hover td:first-child { box-shadow: inset 1px 1px #b8d6fb, inset 0 -1px #b8d6fb; }
.filelist tbody tr:hover td:last-child { box-shadow: inset -1px 1px #b8d6fb, inset 0 -1px #b8d6fb; }
.filelist tbody tr:focus-within td { background: #d5e7fc; }
.filelist tbody tr:nth-child(even) td { background-color: #fbfcfe; }
.filelist tbody tr:nth-child(even):hover td { background-color: #eaf3fd; }

/* Tiles view */
.filelist[data-view="tiles"] thead { display: none; }
.filelist[data-view="tiles"] tbody {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 6px;
	padding: 10px;
}
.filelist[data-view="tiles"] tr {
	display: block;
	padding: 8px;
	border: 1px solid transparent;
	border-radius: 3px;
}
.filelist[data-view="tiles"] tr:hover { background: var(--sel-hover-bg); border-color: var(--sel-hover-bd); }
.filelist[data-view="tiles"] tr:hover td { background: none !important; box-shadow: none !important; }
.filelist[data-view="tiles"] td { display: block; padding: 0; background: none !important; }
.filelist[data-view="tiles"] .f-name { width: auto; }
.filelist[data-view="tiles"] .f-name a { display: flex; gap: 10px; font-size: 15px; color: #0b4a8b; }
.filelist[data-view="tiles"] .f-thumb svg,
.filelist[data-view="tiles"] .f-thumb img { width: 56px; height: 56px; object-fit: cover; border: 3px solid #fff; outline: 1px solid #c8d2de; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.filelist[data-view="tiles"] .f-thumb svg { border: 0; outline: 0; box-shadow: none; }
.filelist[data-view="tiles"] .f-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 2px 0 0 66px;
	color: #444;
}
.filelist[data-view="tiles"] .f-date,
.filelist[data-view="tiles"] .f-type { display: inline-block; margin: 4px 0 0 66px; font-size: 12px; }
.filelist[data-view="tiles"] .f-type { margin-left: 8px; }
.filelist[data-view="tiles"] .f-type::before { content: "· "; }
.filelist[data-view="tiles"] .f-size { display: none; }

.pagination { padding: 10px 14px; border-top: 1px solid #e5ecf5; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav-links .page-numbers { min-width: 30px; padding: 2px 9px; }
.nav-links .dots { border-color: transparent; background: none; box-shadow: none; }

/* ==========================================================================
   8. Single post (browser) & pages (WordPad)
   ========================================================================== */
.tabstrip { display: flex; align-items: flex-end; gap: 2px; padding: 0 0 0 4px; }
.tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 240px;
	padding: 4px 14px;
	border: 1px solid var(--pane-border);
	border-bottom: 0;
	border-radius: 4px 4px 0 0;
	background: linear-gradient(#fff, #eaf1f9);
	color: #000;
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tab-new { padding: 2px 10px; background: rgba(255, 255, 255, .35); color: #234; }

.entry { max-width: 760px; margin: 0 auto; padding: 30px 34px 40px; }
.entry-header { margin-bottom: 22px; }
.entry-cats { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
	display: inline-block;
	padding: 1px 9px;
	border: 1px solid #b8d6fb;
	border-radius: 10px;
	background: linear-gradient(#fafdff, #e3effc);
	color: var(--heading);
	font-size: 12px;
	text-decoration: none;
}
.chip:hover { border-color: var(--sel-bd); background: var(--sel-bg); }
.entry-title { margin: 0 0 8px; font: 300 34px/1.15 var(--font-light); color: var(--heading); }
.entry-meta { margin: 0; color: var(--ink-soft); font-size: 13px; }
.entry-hero { margin: 0 0 24px; }
.entry-hero img { display: block; width: 100%; border: 5px solid #fff; outline: 1px solid #c8d2de; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }
.entry-tags { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; color: var(--ink-soft); }
.entry-tags a { display: inline-block; padding: 1px 9px; border: 1px solid #d6e0ea; border-radius: 10px; color: var(--heading); text-decoration: none; font-size: 12px; }
.entry-tags a:hover { border-color: var(--sel-bd); background: var(--sel-bg); }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 30px; padding-top: 16px; border-top: 1px solid #e2e9f2; }

.ruler {
	height: 20px;
	border: 1px solid var(--pane-border);
	border-bottom: 0;
	background:
		repeating-linear-gradient(90deg, #8a96a6 0 1px, transparent 1px 10px) 0 100% / 100% 4px no-repeat,
		repeating-linear-gradient(90deg, #8a96a6 0 1px, transparent 1px 50px) 0 100% / 100% 9px no-repeat,
		linear-gradient(#fff, #f0f4f9);
}
.win--wordpad .win-frame { background: #e9eef5; padding: 22px 16px; }
.paper { background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .28); max-width: 820px; padding: 44px 56px 50px; }

/* Content typography */
.entry-content { font-size: 16px; line-height: 1.7; color: #222; }
.entry-content > * { max-width: 100%; }
.entry-content a { color: var(--link); }
.entry-content a:hover { color: #3399ff; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--heading); font-family: var(--font); line-height: 1.3; margin: 1.8em 0 .6em; }
.entry-content h2 { font-size: 24px; font-weight: 400; padding-bottom: 4px; border-bottom: 1px solid #d6e5f5; }
.entry-content h3 { font-size: 19px; font-weight: 600; }
.entry-content h4 { font-size: 16px; font-weight: 600; }
.entry-content img { height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-caption-text { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 6px; }
.entry-content blockquote {
	margin: 1.6em 0;
	padding: 10px 18px;
	border-left: 4px solid #3c7fb1;
	background: linear-gradient(90deg, #eef6fd, #fff);
	color: #2a3a4c;
	font-style: italic;
}
.entry-content code { font-family: var(--mono); font-size: .9em; padding: 1px 5px; background: #f0f3f7; border: 1px solid #dde3ea; border-radius: 2px; }
.entry-content pre {
	position: relative;
	padding: 30px 16px 14px;
	overflow-x: auto;
	background: #0c0c0c;
	color: #c0c0c0;
	border: 1px solid #000;
	border-radius: 4px;
	font: 14px/1.5 var(--mono);
	box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}
.entry-content pre::before {
	content: "C:\\Windows\\system32\\cmd.exe";
	position: absolute;
	left: 0; right: 0; top: 0;
	padding: 3px 10px;
	font: 12px var(--font);
	color: #000;
	background: linear-gradient(#dbe9f8, #b9d1ee);
	border-bottom: 1px solid #7a93b3;
}
.entry-content pre code { padding: 0; background: none; border: 0; color: inherit; }
.entry-content hr { border: 0; height: 1px; margin: 2em 0; background: linear-gradient(90deg, transparent, #9fb6d2, transparent); }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 14px; }
.entry-content th, .entry-content td { border: 1px solid #d6e0ea; padding: 6px 10px; text-align: left; }
.entry-content th { background: linear-gradient(#fbfdff, #e8f0fa); color: var(--heading); font-weight: 600; }
.entry-content .wp-block-button__link {
	border: 1px solid #3c7fb1;
	border-radius: 3px;
	background: linear-gradient(#eaf6fd 0, #d9f0fc 50%, #bee6fd 50%, #a7d9f5 100%);
	color: #0b3f7a;
	text-decoration: none;
	padding: 6px 18px;
}
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignwide { margin-left: -60px; margin-right: -60px; max-width: calc(100% + 120px) !important; }
.alignfull { margin-left: -34px; margin-right: -34px; max-width: calc(100% + 68px) !important; }
.sticky, .bypostauthor, .gallery-caption { }
.page-links { margin-top: 20px; display: flex; gap: 6px; align-items: center; }

/* Comments / guestbook */
.comments { margin-top: 36px; padding-top: 20px; border-top: 1px solid #e2e9f2; }
.comments-title, .comment-reply-title { font: 400 22px var(--font); color: var(--heading); margin: 0 0 14px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 34px; }
.comment-body {
	margin: 0 0 12px;
	padding: 12px 14px;
	background: linear-gradient(#fbfdff, #f1f6fb);
	border: 1px solid #c9d8ea;
	border-radius: 4px;
	font-size: 14px;
}
.comment-author { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.comment-author .avatar { border-radius: 3px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; margin: 2px 0 6px 50px; }
.comment-metadata a { color: var(--ink-soft); }
.comment-content { margin-left: 50px; }
.comment-content p { margin: 0 0 8px; }
.reply { margin-left: 50px; }
.comment-reply-link { min-height: 20px; padding: 1px 10px; font-size: 12px; }
.comment-form p { margin: 0 0 12px; }
.comment-form label { display: block; margin-bottom: 3px; color: var(--heading); }
.comment-form-cookies-consent { display: flex; gap: 6px; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; color: var(--ink); }
.aa-turnstile { margin: 4px 0 12px; min-height: 65px; }
.aa-turnstile .cf-turnstile { max-width: 100%; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--ink-soft); }

/* ==========================================================================
   9. My Links (Control Panel)
   ========================================================================== */
.control { display: flex; min-height: 420px; }
.cp-side {
	flex: 0 0 220px;
	padding: 16px 14px;
	background: linear-gradient(170deg, #cfe0f4 0%, #e9f1fa 45%, #f9fbfe 100%);
	border-right: 1px solid #d2e0ef;
	color: var(--heading);
}
.cp-user { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; text-align: center; }
.cp-user strong { font-size: 15px; }
.cp-side-head { margin: 0 0 4px; font-weight: 600; font-size: 12px; }
.cp-side ul { list-style: none; margin: 0; padding: 0; }
.cp-side li a { display: block; padding: 2px 0; color: var(--link); text-decoration: none; }
.cp-side li a:hover { text-decoration: underline; color: #3399ff; }
.cp-main { flex: 1; min-width: 0; padding: 20px 26px 30px; }
.cp-title { margin: 0 0 6px; font: 300 24px var(--font-light); color: var(--heading); }
.cp-intro { margin: 0 0 18px; color: #444; font-size: 14px; }
.linkgrid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 4px;
}
.linktile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 3px;
	color: var(--ink);
	text-decoration: none;
}
.linktile .link-icon-img { flex: none; width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); transition: transform .15s; }
.linktile:hover .link-icon-img { transform: scale(1.08) rotate(-3deg); }
.linktile svg { flex: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); transition: transform .15s; }
.linktile:hover { background: var(--sel-hover-bg); border-color: var(--sel-hover-bd); }
.linktile:hover svg { transform: scale(1.08) rotate(-3deg); }
.linktile:focus-visible { background: var(--sel-bg); border-color: var(--sel-bd); outline: none; }
.lt-text { display: flex; flex-direction: column; min-width: 0; }
.lt-label { font-size: 15px; color: var(--link); }
.linktile:hover .lt-label { text-decoration: underline; }
.lt-host { font-size: 12px; color: var(--ink-soft); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }

/* ==========================================================================
   10. Footer badges
   ========================================================================== */
.site-footer { margin-top: 26px; text-align: center; }
.badges { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.badge88 {
	width: 88px;
	height: 31px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	border: 1px solid #000;
	box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .5), inset -1px -1px 0 rgba(0, 0, 0, .4);
	font: 9px/1 Verdana, Tahoma, sans-serif;
	text-transform: uppercase;
	letter-spacing: .3px;
	image-rendering: pixelated;
	overflow: hidden;
}
.badge88 b { font-size: 11px; letter-spacing: .5px; }
.badge88 a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; height: 100%; color: inherit; text-decoration: none; }
.badge88 a:hover { filter: brightness(1.2); }
.badge88-img { border: 0; box-shadow: none; }
.badge88-img img { display: block; width: 88px; height: 31px; image-rendering: pixelated; }
.b-blue { background: linear-gradient(#2c8fc2, #0d3a52); color: #fff; }
.b-neon { background: #000; color: #ff4fd8; }
.b-neon b { color: #2ee6ff; text-shadow: 0 0 4px #2ee6ff; animation: aa-hue 3s linear infinite; }
.b-arcade { background: #000; color: #ffe14a; }
.b-arcade b { animation: aa-blink 1s steps(1) infinite; }
.b-rainbow { background: linear-gradient(90deg, #ff3b5c, #ffd23b, #3ddc5b, #3b9bff, #b04bff); color: #fff; text-shadow: 1px 1px 0 #000; }
.b-silver { background: linear-gradient(#f4f4f4, #bdbdbd); color: #111; }
.b-green { background: linear-gradient(#56b45a, #1f6b2a); color: #fff; }
.b-red { background: linear-gradient(#ff6a5a, #9c1208); color: #fff; }
.b-purple { background: linear-gradient(#a066ff, #3b0f8a); color: #fff; }
.b-orange { background: linear-gradient(#ffb86b, #d0520b); color: #000; }
.b-terminal { background: #001a00; color: #3dff5a; text-shadow: 0 0 4px #3dff5a; font-family: "Courier New", monospace; }
@keyframes aa-blink { 50% { opacity: 0; } }
@keyframes aa-hue { to { filter: hue-rotate(360deg); } }
.copyright { margin: 0; font-size: 11px; color: rgba(255, 255, 255, .75); text-shadow: 0 1px 2px #000; }
.copyright a { color: #bfe6ff; }
.copyright a:hover { color: #fff; }

/* ==========================================================================
   11. Taskbar & Start menu
   ========================================================================== */
.taskbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	display: flex;
	align-items: center;
	gap: 3px;
	height: var(--taskbar-h);
	padding: 0 0 0 62px;
	background: linear-gradient(rgba(90, 120, 160, .55) 0, rgba(35, 55, 85, .68) 50%, rgba(10, 22, 42, .82) 100%);
	border-top: 1px solid rgba(0, 0, 0, .65);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 -2px 10px rgba(0, 0, 0, .25);
	-webkit-backdrop-filter: blur(10px) saturate(1.5);
	backdrop-filter: blur(10px) saturate(1.5);
	color: #fff;
}

.orb {
	position: absolute;
	left: 7px;
	top: -7px;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(0, 18, 45, .95);
	background: radial-gradient(circle at 50% 80%, #7ef6ff 0, #23a7ea 28%, #0e60b0 58%, #073670 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 0 8px rgba(0, 0, 0, .7);
	cursor: pointer;
	overflow: hidden;
	transition: filter .2s, box-shadow .2s;
}
.orb::before {
	content: "";
	position: absolute;
	left: 9%;
	top: 3%;
	width: 82%;
	height: 50%;
	border-radius: 50%;
	background: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .08));
	pointer-events: none;
}
.orb-glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.orb-glyph svg { width: 30px; height: 30px; }
/* Uploaded image, "icon" fit: whole image shown, scaled down to sit inside the glass. */
.orb--img .orb-img { display: block; width: 30px; height: 30px; object-fit: contain; }
/* Uploaded image, "fill" fit: covers the button, cropped to the circle, glass shine on top. */
.orb--fill { background: #0e3d75; }
.orb--fill .orb-glyph { filter: none; }
.orb--fill .orb-img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 50%; }
.orb--fill::before { z-index: 1; opacity: .75; }
.orb:hover, .orb[aria-expanded="true"] { filter: brightness(1.25) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 0 16px rgba(120, 225, 255, .95); }

.quicklaunch { display: flex; gap: 2px; padding-right: 6px; margin-right: 4px; border-right: 1px solid rgba(255, 255, 255, .12); }
.tb-btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 36px;
	border: 1px solid transparent;
	border-radius: 3px;
	color: #fff;
}
.tb-btn:hover { border-color: rgba(255, 255, 255, .35); background: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .06)); }

.tasks { flex: 1; display: flex; gap: 3px; min-width: 0; overflow: hidden; }
.task {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 1 190px;
	min-width: 0;
	height: 36px;
	padding: 0 10px 0 8px;
	border: 1px solid rgba(255, 255, 255, .32);
	border-radius: 3px;
	background: linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .02) 50%, rgba(255, 255, 255, .12));
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
	color: #fff;
	font-size: 12px;
	text-shadow: 0 1px 2px #000;
	cursor: pointer;
}
.task svg { flex: none; }
.task span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.task:hover { background: linear-gradient(rgba(255, 255, 255, .42), rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .2)); }
.task[aria-pressed="true"] { background: linear-gradient(rgba(140, 200, 255, .45), rgba(80, 150, 230, .3) 50%, rgba(40, 110, 200, .3) 50%, rgba(90, 170, 255, .4)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3), inset 0 0 8px rgba(160, 220, 255, .6); }

.tray {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding-left: 12px;
	border-left: 1px solid rgba(255, 255, 255, .12);
}
.tray-ico { display: grid; place-items: center; width: 18px; height: 18px; opacity: .9; }
.tray-vol { background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 6h3l4-3v10L5 10H2z' fill='%23fff'/%3E%3Cpath d='M11 5.5a3.5 3.5 0 0 1 0 5M13 3.5a6.3 6.3 0 0 1 0 9' fill='none' stroke='%23fff' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tray-net { display: flex; align-items: flex-end; gap: 1px; width: 16px; }
.tray-net i { display: block; width: 3px; background: #fff; border-radius: 1px; }
.tray-net i:nth-child(1) { height: 4px; } .tray-net i:nth-child(2) { height: 7px; } .tray-net i:nth-child(3) { height: 10px; } .tray-net i:nth-child(4) { height: 13px; }
.tray-clock { display: flex; flex-direction: column; align-items: center; padding: 0 4px; font-size: 12px; line-height: 1.25; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.showdesk {
	align-self: stretch;
	width: 15px;
	margin-left: 4px;
	padding: 0;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, .35);
	background: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
	cursor: pointer;
}
.showdesk:hover { background: linear-gradient(90deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .12)); }

.startmenu {
	position: fixed;
	left: 0;
	bottom: var(--taskbar-h);
	z-index: 1000;
	display: flex;
	gap: 0;
	width: 440px;
	max-width: 100vw;
	min-height: 440px;
	padding: 8px;
	border: 1px solid rgba(0, 0, 0, .75);
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
	background: linear-gradient(rgba(60, 95, 140, .82), rgba(15, 32, 58, .94));
	-webkit-backdrop-filter: blur(14px) saturate(1.5);
	backdrop-filter: blur(14px) saturate(1.5);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 10px 40px rgba(0, 0, 0, .65);
	transform-origin: bottom left;
	animation: aa-pop .16s ease-out;
}
.startmenu[hidden] { display: none; }
@keyframes aa-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.sm-left {
	flex: 0 0 255px;
	display: flex;
	flex-direction: column;
	padding: 6px;
	background: #fff;
	border: 1px solid #2a4a72;
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
	color: #000;
}
.sm-heading { margin: 2px 6px 4px; font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .5px; }
.sm-list { list-style: none; margin: 0; padding: 0; }
.sm-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 8px;
	border: 1px solid transparent;
	border-radius: 3px;
	color: #000;
	text-decoration: none;
	font-size: 13px;
}
.sm-list a:hover, .sm-list a:focus-visible { background: var(--sel-hover-bg); border-color: var(--sel-hover-bd); outline: none; }
.sm-list svg { width: 32px; height: 32px; flex: none; }
.sm-search { display: flex; margin-top: auto; padding-top: 8px; border-top: 1px solid #dfe7f0; }
.sm-search input {
	flex: 1;
	min-width: 0;
	height: 26px;
	padding: 0 8px;
	border: 1px solid #a5b5c8;
	border-right: 0;
	border-radius: 3px 0 0 3px;
	font: italic 12px var(--font);
}
.sm-search input:focus { font-style: normal; outline: none; border-color: #3d7bad; }
.sm-search button { width: 30px; border: 1px solid #a5b5c8; border-radius: 0 3px 3px 0; background: linear-gradient(#fff, #e6edf5); cursor: pointer; display: grid; place-items: center; }

.sm-right { flex: 1; display: flex; flex-direction: column; padding: 0 4px 0 8px; min-width: 0; }
.sm-user { display: flex; justify-content: center; margin: -38px 0 6px; }
.sm-places { list-style: none; margin: 0; padding: 0; }
.sm-places a, .sm-name {
	display: block;
	padding: 5px 10px;
	border: 1px solid transparent;
	border-radius: 3px;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 1px 2px #000;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sm-name { font-weight: 600; }
.sm-places a:hover, .sm-places a:focus-visible {
	border-color: rgba(255, 255, 255, .45);
	background: linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, .1));
	box-shadow: inset 0 0 6px rgba(160, 220, 255, .4);
	outline: none;
}
.sm-sep { height: 1px; margin: 6px 8px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); }
.sm-power { margin-top: auto; padding-top: 8px; text-align: right; }
.btn-shutdown {
	border-color: rgba(0, 0, 0, .7);
	background: linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .12) 50%, rgba(0, 0, 0, .1) 50%, rgba(255, 255, 255, .15));
	color: #fff;
	text-shadow: 0 1px 2px #000;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}
.btn-shutdown:hover { border-color: #000; background: linear-gradient(#ffb09a, #e5532f 50%, #b82a0b 50%, #e2633f); }

/* ==========================================================================
   12. Overlays: boot, shutdown, dialogs, sparkles
   ========================================================================== */
.boot {
	position: fixed;
	inset: 0;
	z-index: 3000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 26px;
	background: #000;
	color: #fff;
	transition: opacity .5s;
	cursor: pointer;
}
.boot[hidden] { display: none; }
.boot.is-done { opacity: 0; pointer-events: none; }
.boot-orb { position: relative; width: 90px; height: 90px; animation: aa-spin 1.6s linear infinite; }
.boot-orb span { position: absolute; width: 22px; height: 22px; border-radius: 50%; filter: blur(1px); box-shadow: 0 0 18px currentColor; background: currentColor; }
.boot-orb span:nth-child(1) { color: #ff4f6a; left: 34px; top: 0; }
.boot-orb span:nth-child(2) { color: #5cff8a; right: 0; top: 34px; }
.boot-orb span:nth-child(3) { color: #2ea8ff; left: 34px; bottom: 0; }
.boot-orb span:nth-child(4) { color: #ffd23b; left: 0; top: 34px; }
@keyframes aa-spin { to { transform: rotate(360deg); } }
.boot-text { margin: 0; font: 300 22px var(--font-light); letter-spacing: 1px; }
.boot-copy { position: absolute; bottom: 24px; margin: 0; font-size: 12px; color: #888; }

.shutdown {
	position: fixed;
	inset: 0;
	z-index: 4000;
	display: grid;
	place-items: center;
	background: #000;
	opacity: 0;
	transition: opacity .9s;
	cursor: pointer;
}
.shutdown[hidden] { display: none; }
.shutdown.is-on { opacity: 1; }
.shutdown p { margin: 0; padding: 20px; font: bold 28px/1.3 Arial, sans-serif; color: #ff8c00; text-align: center; opacity: 0; transition: opacity .3s .9s; }
.shutdown.is-safe p { opacity: 1; }

.dialog-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2500;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(0, 0, 0, .25);
}
.dialog-backdrop .win { width: min(420px, 100%); margin: 0; animation: aa-pop .15s ease-out; }
.dialog-body { display: flex; gap: 14px; align-items: flex-start; padding: 18px 16px 12px; font-size: 13px; }
.dialog-body svg { flex: none; }
.dialog-body p { margin: 4px 0 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px; background: #f0f0f0; border-top: 1px solid #dfdfdf; }
.dialog-actions .btn7 { min-width: 74px; }

.sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 5000; overflow: hidden; }
.sparkle {
	position: absolute;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	background: currentColor;
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
	animation: aa-sparkle .8s ease-out forwards;
}
@keyframes aa-sparkle { to { transform: translate(var(--x), var(--y)) scale(.2) rotate(140deg); opacity: 0; } }

/* Folder popups (Explorer windows opened from desktop folders) */
.folderpop {
	position: fixed;
	inset: 0 0 var(--taskbar-h) 0;
	z-index: 2400;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(0, 10, 30, .3);
	animation: aa-fade .15s ease-out;
}
.folderpop[hidden] { display: none; }
@keyframes aa-fade { from { opacity: 0; } }
.folderpop .win { width: min(660px, 100%); max-height: 100%; margin: 0; animation: aa-pop .16s ease-out; }
.folderpop .win-frame { overflow: auto; min-height: 160px; max-height: 60vh; }
.folderpop .win-cmdbar { padding-top: 0; }
.folder-items {
	list-style: none;
	margin: 0;
	padding: 12px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 4px;
}
.folder-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 8px 4px 6px;
	border: 1px solid transparent;
	border-radius: 3px;
	color: var(--ink);
	text-align: center;
	text-decoration: none;
	font-size: 12px;
	line-height: 1.25;
	word-break: break-word;
}
.folder-item svg, .folder-item .desk-icon-img { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.folder-item:hover { background: var(--sel-hover-bg); border-color: var(--sel-hover-bd); }
.folder-item:focus-visible, .folder-item[aria-current="page"] { background: var(--sel-bg); border-color: var(--sel-bd); outline: none; }
.folder-empty { margin: 0; padding: 40px 20px; text-align: center; color: var(--ink-soft); }
body.has-folder { overflow: hidden; }

/* ==========================================================================
   13. 404 Blue Screen
   ========================================================================== */
body.bsod { background: #0000aa !important; background-image: none !important; }
body.bsod::before, body.bsod::after { display: none !important; }
.bsod-screen { max-width: 980px; padding: 40px 28px; font: 16px/1.55 "Lucida Console", "Courier New", monospace; color: #fff; }
.bsod-screen p { margin: 0 0 1.2em; }
.bsod-search { display: flex; gap: 8px; align-items: center; margin: 0 0 1.4em; }
.bsod-search input {
	flex: 1;
	max-width: 420px;
	padding: 2px 0;
	border: 0;
	border-bottom: 1px dashed rgba(255, 255, 255, .6);
	background: transparent;
	color: #fff;
	font: inherit;
	caret-color: #fff;
}
.bsod-search input:focus { outline: none; border-bottom-style: solid; }
.bsod-cta a { color: #fff; text-decoration: none; background: #aaaaaa; color: #0000aa; padding: 0 6px; }
.bsod-cta a:hover { background: #fff; }

/* ==========================================================================
   14. Scrollbars (Win7-ish)
   ========================================================================== */
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: linear-gradient(90deg, #e6e6e6, #f5f5f5); }
::-webkit-scrollbar-thumb { border: 1px solid #959aa0; border-radius: 3px; background: linear-gradient(90deg, #f3f4f5, #dadde1); box-shadow: inset 0 0 0 1px #fff; }
::-webkit-scrollbar-thumb:hover { border-color: #3c7fb1; background: linear-gradient(90deg, #e3f4fc, #a9dbf6); }

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.front, .front.no-gadgets { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "gadgets"; }
	.gadgets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: start; }
}

@media (max-width: 900px) {
	.tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.navpane, .cp-side { display: none; }
	.filelist .f-size { display: none; }
	.alignwide { margin-left: 0; margin-right: 0; max-width: 100% !important; }
}

@media (max-width: 760px) {
	.desktop { padding: 10px 8px calc(var(--taskbar-h) + 16px); }
	.site-title { font-size: 24px; }
	.shell { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.shell > .desk-icons { position: static; max-height: none; overflow: visible; }
	.front { gap: 14px; }
	.desk-icons ul { flex-direction: row; overflow-x: auto; gap: 2px; padding-bottom: 4px; scrollbar-width: none; }
	.desk-icon { width: 76px; flex: none; }
	.desk-icon svg, .desk-icon-img { width: 40px; height: 40px; }
	.win { padding: 0 4px 4px; }
	.tiles-4, .tiles-3 { grid-template-columns: minmax(0, 1fr); }
	.tile-link { flex-direction: row; align-items: flex-start; }
	.tile-thumb { flex: 0 0 38%; }
	.tile-title { font-size: 15px; }
	.tile-excerpt { -webkit-line-clamp: 2; }
	.view-remaining { justify-content: stretch; }
	.btn-vista { width: 100%; }
	.btn-vista b { margin-left: auto; }
	.cmd-search, .cmd-strip-label { display: none; }
	.filelist .f-type { display: none; }
	.entry { padding: 20px 16px 28px; }
	.entry-title { font-size: 26px; }
	.paper { padding: 24px 18px; }
	.win--wordpad .win-frame { padding: 10px 6px; }
	.alignfull { margin-left: -16px; margin-right: -16px; max-width: calc(100% + 32px) !important; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
	.gadgets { grid-template-columns: minmax(0, 1fr); }
	.quicklaunch { display: none; }
	.startmenu { width: 100vw; min-height: 0; border-radius: 0; }
	.sm-left { flex-basis: 56%; }
	.sm-user { margin-top: 0; }
	.cp-main { padding: 16px; }
	.linkgrid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
	.tasks { display: none; }
	.taskbar { justify-content: flex-end; }
	.tile-link { flex-direction: column; }
	.tile-thumb { flex: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.sparkles { display: none; }
}

@media print {
	.taskbar, .startmenu, .desk-icons, .gadgets, .site-footer, .win-controls, .win-cmdbar, .tabstrip, .menubar, .ruler, .statusbar { display: none !important; }
	body { background: #fff !important; color: #000; }
	.win { box-shadow: none; border: 0; background: none; padding: 0; }
	.win-frame { border: 0; }
}
