/* Custom fonts are included in the .zip file, download fonts to your own host and update file paths. */

@font-face {
	font-family: "w95f";
	src: url("fonts/w95f.woff") format("woff"),
       url("fonts/w95f.woff2") format("woff2");
}



/* The Basics */
  
* {
	box-sizing: border-box;
}
  

body {
	margin: 0;
	background: #6a6d72;
	padding: 20px;
	font-family: "w95f",  Arial, "Courier new", monospace;
	letter-spacing: 1px;
	font-size: 13px;
	color: #8b8b8b;
	text-shadow: 0 0 1px #bbb;
	position: relative;
	line-height: 1.2;
	overflow: auto;
}

/* Full-screen wallpaper layer. Fixed + inset:0 always equals the
   viewport exactly, so the image fills the whole screen with no
   corner cutoff and no black gaps, regardless of page height.
   100% 100% stretches it to fill (no cropping). */
#desktop-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: #6a6d72 url("wallpaper.jpg") no-repeat center center;
	background-size: cover;
	pointer-events: none;
}
  
button,
input,
select,
textarea {
  font: inherit;
}
  

a:link,
a:visited,
a:active {
	color: #555;
	text-decoration: none;
}

a:hover {
	color: #999;
}
  
  

/* SITE NAME / note on the right */

.desktop-note {
	position: fixed;
	right: 50px;
	top: 94px;
	width: 150px;
	padding: 8px;
	background: rgba(255,255,255,0.85);
	border: 3px double #b8b8b8;
	color: #888;
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
	box-shadow: inset 1px 1px #fff,
    inset -1px -1px #c9c9c9;
}

.desktop-note-welcome {
	display: block;
	margin-bottom: 2px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #888;
}

.desktop-note-title {
	display: block;
	font-size: 18px;
	line-height: 0.9;
	letter-spacing: 2px;
	color: #777;
	text-shadow: 1px 1px #fff,
    -1px 0 #d6d6d6;
}

.desktop-note-refresh {
	display: inline-block;
	margin-top: 8px;
	padding: 2px 5px 1px 5px;
	background: #d9d9d9;
	border: 1px solid #aaa;
	box-shadow: inset 1px 1px #fff,
    inset -1px -1px #bbb;
	color: #777;
	font-size: 11px;
	letter-spacing: 1px;
}

.desktop-note-line {
	display: block;
	height: 0px;
	border-bottom: 1px solid #ddd;
	margin: 8px 0px 6px 0px;
}

.desktop-note-text {
	display: block;
	padding: 0 4px;
	font-size: 12px;
	line-height: 1.5;
	color: #888;
}


  
  
/* DESKTOP ICONS (left column) */
.desktop-icons {
	position: fixed;
	top: 40px;
	left: 10px;
	bottom: 40px; /* stops above taskbar */
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 4px 0;
	z-index: 1;
}

.desktop-icon,
.desktop-icon:link,
.desktop-icon:visited,
.desktop-icon:active {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: rgba(255,255,255,0.82);
	font-size: 12px;
	width: 72px;
	background: transparent;
	border: none;
	padding: 6px 4px 4px;
	text-shadow:
		0 1px 3px rgba(0,0,0,0.95),
		0 0 6px rgba(0,0,0,0.8);
	cursor: pointer;
	transition: color 0.12s ease;
}

.desktop-icon img {
	height: 36px;
	width: 36px;
	margin-bottom: 6px;
	filter: drop-shadow(0 1px 3px rgba(0,0,0,0.8));
	image-rendering: auto;
}

.desktop-icon:hover {
	color: #ffffff;
}
.desktop-icon:hover img {
	filter: drop-shadow(0 0 8px rgba(255,255,255,0.6))
	        drop-shadow(0 1px 3px rgba(0,0,0,0.9));
}
    
  
  
  
/* My Stuff icons inside the readme window — black text on white bg */
[data-id="readme"] .desktop-icon,
[data-id="readme"] .desktop-icon:link,
[data-id="readme"] .desktop-icon:visited,
[data-id="readme"] .desktop-icon:active {
    color: #000;
    text-shadow: none;
}
[data-id="readme"] .desktop-icon:hover {
    color: #000080;
}
[data-id="readme"] .desktop-icon img {
    filter: none; /* Win98 PNGs — keep their own colors */
}
[data-id="readme"] .desktop-icon:hover img {
    filter: brightness(1.15) saturate(1.2);
}

/* DESKTOP WINDOWS */
.app-window {
	position: absolute;
	padding: 3px;
	background: #eaeaea;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	box-shadow: inset -1px -1px #404040,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #ffffff;
}

.app-window.active {
	box-shadow: inset -1px -1px #4f4f4f,
    inset 1px 1px #f5f5f5,
    inset -2px -2px #8f8f8f,
    inset 2px 2px #ffffff,
    2px 2px 5px rgba(0,0,0,0.25);
}


.app-window {
  transform-origin: center center;
}

.app-window.minimizing {
  pointer-events: none;
  opacity: 0;
  transform: translateY(45px) scale(0.85);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.app-window.restoring {
  opacity: 0;
  transform: translateY(25px) scale(0.96);
}

/* Window titlebar */
.window-header {
	padding: 2px 2px 2px 3px;
	height: 18px;
	border-bottom: 1px solid #fff;
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	cursor: move;
	box-sizing: border-box;
	flex: 0 0 auto;
}

/* Inactive titlebar */
.app-window .window-header {
	background: linear-gradient(90deg, #bfbfbf, #e5e5e5);
}

/* Active titlebar — sabre purple-blue */
.app-window.active .window-header {
	background: linear-gradient(90deg, #3a2eaa, #3ca0ff);
}
  
  
/* Title text inside the titlebar */
.window-title {
	font-weight: bold;
	color: #fff;
	font-size: 13px;
	line-height: 14px;
	padding-top: 1px;
	margin-left: 4px;
	user-select: none;
}

  
  

/* Min / Max / Close buttons */
.window-buttons {
	display: flex;
	align-items: stretch;
}

.window-buttons button {
	border: none;
	border-radius: 0;
	box-sizing: border-box;
	min-width: 16px;
	min-height: 14px;
	width: 16px;
	height: 14px;
	padding: 0;
	margin: 0;
	background-color: #c0c0c0;
	box-shadow: inset -1px -1px #0a0a0a,
    inset 1px 1px #ffffff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
	cursor: pointer;
}

.window-buttons button:active {
	box-shadow: inset -1px -1px #ffffff,
    inset 1px 1px #0a0a0a,
    inset -2px -2px #dfdfdf,
    inset 2px 2px grey;
}

.window-buttons button:focus {
	outline: none;
}

.window-buttons button + button {
	margin-left: 1px;
}

.btn-min {
	background-image: url("icons/btn-min.svg");
	background-repeat: no-repeat;
	background-position: bottom 3px left 3px;
}

.btn-max {
	background-image: url("icons/btn-max.svg");
	background-repeat: no-repeat;
	background-position: top 2px left 3px;
}

.btn-close {
	background-image: url("icons/btn-close.svg");
	background-repeat: no-repeat;
	background-position: top 3px left 4px;
}
  
  
  

/* Window content section */
.window-content {
	margin: 8px;
	flex: 1;
	min-height: 0;
}

.content-box {
	background: #fff;
	border: 1px solid #999;
	box-shadow: inset 1px 1px #ffffff, inset -1px -1px #ffffff;
	padding: 10px;
	overflow-y: auto;
	box-sizing: border-box;
	height: 100% !important;
}

.content-box ul li {
	margin-bottom: 14px;
}
  
  
  
  
/* Hidden dynamic window sources */
.window-source {
	display: none;
}
 
  
  

  
/* ABOUT ME - profile section */
.profile-top {
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px dotted #aaa;
}

.profile-name {
	display: block;
	margin-bottom: 3px;
	font-size: 16px;
	font-weight: bold;
	line-height: 1;
	letter-spacing: 2px;
	color: #777;
	text-shadow: 1px 1px #fff;
	text-align: center;
}

.profile-text {
	margin: 0;
}

.profile-status {
	clear: both;
	margin-top: 8px;
	padding: 6px;
	background: #f3f3f3;
	border: 1px solid #b7b7b7;
	box-shadow: inset 1px 1px #fff,
    inset -1px -1px #d0d0d0;
}

.profile-row {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 3px 0;
	border-bottom: 1px dotted #c8c8c8;
}

.profile-row:last-child {
	border-bottom: 0;
}

.profile-row b {
	color: #777;
}

.profile-links {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 8px;
}

.profile-links a {
	display: inline-block;
	padding: 3px 6px;
	background: #d9d9d9;
	border: 1px solid #aaa;
	box-shadow: inset 1px 1px #fff,
    inset -1px -1px #bbb;
	color: #666;
	font-size: 10px;
}

.profile-links a:hover {
	background: #cfcfcf;
	color: #333;
}
  



 /* IMAGE example  */
 .window-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	filter: grayscale(70%);
	opacity: 0.5;
}
  
  
  

/* CD PLAYER  */
.cd-player-wrap {
	height: 100%;
	box-sizing: border-box;
	display: flex;
	gap: 8px;
	align-items: stretch;
	background: #d3d1d1;
	border: 1px solid #808080;
	box-shadow: inset 1px 1px #ffffff,
    inset -1px -1px #404040;
	padding: 6px;
}

.cd-cover {
	width: 110px;
	height: 110px;
	flex-shrink: 0;
	border: 1px solid #808080;
	box-shadow: inset 1px 1px #ffffff,
    inset -1px -1px #404040;
	background: #999;
}

.cd-cover img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	filter: grayscale(100%);
	opacity: 0.85;
}

.cd-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cd-select {
	width: 95%;
	height: 24px;
	font-size: 11px;
	padding-right: 18px;
	border: 1px solid #808080;
	background: #fff;
	box-shadow: inset 1px 1px #808080,
    inset -1px -1px #ffffff;
	letter-spacing: 0.5px;
}

.cd-time-row {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #000;
	font-size: 12px;
	margin: 8px 0 8px;
}

.cd-progress {
	flex: 1;
    width:95%;
	height: 4px;
	appearance: none;
	-webkit-appearance: none;
	background: #c0c0c0;
	border: 1px solid #808080;
	box-shadow: inset 1px 1px #404040,
    inset -1px -1px #ffffff;
}

.cd-progress::-webkit-slider-thumb {
	appearance: none;
	-webkit-appearance: none;
	width: 8px;
	height: 18px;
	background: #c0c0c0;
	border: 1px solid #000;
	box-shadow: inset 1px 1px #ffffff,
    inset -1px -1px #808080;
	cursor: pointer;
}

.cd-progress::-moz-range-thumb {
	width: 8px;
	height: 18px;
	background: #c0c0c0;
	border: 1px solid #000;
	box-shadow: inset 1px 1px #ffffff,
    inset -1px -1px #808080;
	cursor: pointer;
	border-radius: 0;
}

.cd-buttons {
	display: flex;
	gap: 10px;
	margin-top: auto;
}

.cd-btn {
	width: 48px;
	height: 28px;
	border: 1px solid #808080;
	background: #c0c0c0;
	box-shadow: inset 1px 1px #ffffff,
    inset -1px -1px #404040;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	color: #000;
}

.cd-btn:active {
	box-shadow: inset -1px -1px #ffffff,
    inset 1px 1px #404040;
}

.cd-btn.playing {
	font-size: 13px;
}
  
  
  
  


/* CHAT WINDOW (username bar + chatbox) */
.chat-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 6px;
}

.chat-userbar {
	flex: 0 0 auto;
	background: #c0c0c0;
	border: 1px solid #808080;
	box-shadow: inset 1px 1px #ffffff,
    inset -1px -1px #404040;
	padding: 6px;
}

.chat-greeting {
	color: #555;
	font-size: 12px;
	margin-bottom: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.chat-namerow {
	display: flex;
	gap: 6px;
}

.chat-name-input {
	flex: 1;
	min-width: 0;
	height: 24px;
	padding: 2px 6px;
	border: 1px solid #808080;
	background: #fff;
	box-shadow: inset 1px 1px #808080,
    inset -1px -1px #ffffff;
	color: #555;
	font-size: 12px;
	letter-spacing: 0.5px;
}

.chat-name-input:focus {
	outline: none;
}

.chat-name-btn {
	flex: 0 0 auto;
	height: 24px;
	padding: 2px 12px;
	background: #c0c0c0;
	border: 1px solid #808080;
	box-shadow: inset 1px 1px #ffffff,
    inset -1px -1px #404040;
	color: #000;
	font-size: 12px;
	letter-spacing: 1px;
	cursor: pointer;
}

.chat-name-btn:active {
	box-shadow: inset -1px -1px #ffffff,
    inset 1px 1px #404040;
}

/* Let the chatbox fill the rest of the window */
.chat-box {
	flex: 1;
	min-height: 0;
}




/* ============================================================
   BLOG WINDOW — dark Tumblr aesthetic
   The blog lives inside a normal OS window, but its content box
   is restyled into a moody dark single-column Tumblr feed.
   ============================================================ */

/* Override the white content box when it holds the blog */
.content-box:has(.tumblr) {
	padding: 0 !important;
	background: #16141a;
	border-color: #2a2630;
}

.tumblr {
	/* That classic Helvetica-everything Tumblr look, dark mode */
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #b8b2c2;
	font-size: 13px;
	line-height: 1.6;
	letter-spacing: 0.2px;
	padding: 22px 18px 30px;
	text-shadow: none;
	background:
		linear-gradient(170deg, rgba(28,24,34,0.85), rgba(18,16,22,0.95)),
		url("https://itinerae.neocities.org/premium/demo/itiOS/greynoise.webp");
	background-blend-mode: multiply;
	max-width: 460px;
	margin: 0 auto;
}

.tumblr a { color: #b79ccf; text-decoration: none; }
.tumblr a:hover { color: #d9c6ee; }

/* Header */
.t-header {
	display: none;
}
.t-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #221d2a;
	box-shadow: 0 0 0 1px #3a3346, 0 2px 8px rgba(0,0,0,0.6);
	filter: grayscale(20%) saturate(0.9) brightness(0.95);
	margin-bottom: 10px;
}
.t-title {
	font-size: 22px;
	font-weight: 300;
	letter-spacing: 3px;
	text-transform: lowercase;
	color: #d9c6ee;
	margin: 0 0 4px;
}
.t-desc {
	font-size: 11px;
	font-style: italic;
	color: #8a8197;
	margin: 0 0 12px;
}
.t-nav {
	font-size: 10px;
	text-transform: lowercase;
	letter-spacing: 2px;
}
.t-nav a { margin: 0 6px; color: #7d7489; }
.t-nav a:hover { color: #d9c6ee; }

/* Posts */
.tpost {
	background: #1e1a24;
	border: 1px solid #2c2734;
	border-radius: 3px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.45);
	margin: 0 0 26px;
	overflow: hidden;
}
.tpost-body { padding: 16px 18px 6px; }
.tpost-title {
	font-size: 16px;
	font-weight: 400;
	color: #d9c6ee;
	margin: 0 0 8px;
}
.tpost p { margin: 0 0 10px; }

/* Photo post */
.tpost-img {
	display: block;
	width: 100%;
	height: auto;
	filter: grayscale(30%) saturate(0.8) brightness(0.85);
}

/* Quote post */
.tpost-quote { padding: 22px 22px 6px; text-align: center; }
.tpost-quotetext {
	font-size: 19px;
	font-weight: 300;
	font-style: italic;
	color: #cdbce0;
	line-height: 1.4;
	margin: 0 0 8px;
	border: 0;
}
.tpost-source {
	font-size: 11px;
	color: #8a8197;
	text-align: right;
	margin: 0 0 4px;
}

/* Chat post */
.tpost-chatlist {
	list-style: none;
	margin: 0;
	padding: 14px 18px 4px;
}
.tpost-chatlist li {
	padding: 4px 8px;
	margin-bottom: 3px;
	background: #272030;
	border-radius: 2px;
	font-size: 12px;
}
.tpost-chatlist b { color: #b79ccf; }

/* Link / audio post */
.tpost-link { padding: 14px 16px 4px; }
.tpost-linkbox {
	display: block;
	padding: 12px 14px;
	background: #272030;
	border: 1px solid #382f44;
	border-radius: 3px;
}
.tpost-linktitle { display: block; font-size: 14px; color: #d9c6ee; }
.tpost-linkhost { display: block; font-size: 10px; color: #7d7489; letter-spacing: 1px; }

/* Post footer (time + notes + actions) */
.tpost-foot {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 12px;
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: lowercase;
	color: #7d7489;
	border-top: 1px solid #2c2734;
}
.t-time { flex: 0 0 auto; }
.t-notes { flex: 1; text-align: center; }
.t-heart { color: #c77b9e; }
.t-actions { flex: 0 0 auto; font-size: 13px; }
.t-actions a { margin-left: 6px; color: #6f6680; }
.t-actions a:hover { color: #c77b9e; }

/* Footer */
.t-footer {
	text-align: center;
	font-size: 10px;
	letter-spacing: 1px;
	color: #7d7489;
	text-transform: lowercase;
	padding-top: 8px;
}
/* ============================================================
   RESIZE HANDLE — bottom-right drag grip on every window
   ============================================================ */
.resize-handle {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 16px;
	height: 16px;
	cursor: se-resize;
	z-index: 10;
	/* Classic Win98 resize grip — three diagonal lines */
	background-image:
		linear-gradient(135deg,
			transparent 3px, #808080 3px, #808080 4px, transparent 4px,
			transparent 7px, #808080 7px, #808080 8px, transparent 8px,
			transparent 11px, #808080 11px, #808080 12px, transparent 12px
		),
		linear-gradient(135deg,
			transparent 4px, #ffffff 4px, #ffffff 5px, transparent 5px,
			transparent 8px, #ffffff 8px, #ffffff 9px, transparent 9px,
			transparent 12px, #ffffff 12px, #ffffff 13px, transparent 13px
		);
	background-size: 14px 14px;
	background-repeat: no-repeat;
	background-position: center;
}


/* ============================================================
   BLOG WINDOW — Win98 OS chrome × Tumblr soul
   The outer shell is pure Win98 grey with beveled borders and
   system fonts for chrome elements. Post content uses Tumblr's
   dusty-purple palette and Helvetica for that early-blog feel.
   ============================================================ */

/* Override content-box background for blog windows */
.content-box:has(.tumblr) {
	padding: 0 !important;
	background: #c0c0c0;
	border-color: #808080;
}

.tumblr {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.5;
	color: #2a2a2a;
	text-shadow: none;
	background: #c0c0c0;
	padding: 6px;
}

.tumblr a { color: #000080; text-decoration: underline; }
.tumblr a:hover { color: #4040c0; }

/* ---- Blog header — Win98 group box with a blue title bar ---- */
/* Hidden visually — script.js needs the element to exist, but we don't show the header */
.t-header {
	display: none;
}


/* The blue Win98-style title strip at the top of the header box */
.t-header::before {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(90deg, #000080, #1084d0);
	margin-bottom: 8px;
}

.t-avatar {
	width: 48px;
	height: 48px;
	border: 2px solid;
	border-color: #808080 #ffffff #ffffff #808080;
	box-shadow: inset 1px 1px #404040;
	object-fit: cover;
	display: block;
	margin: 0 auto 6px;
	image-rendering: auto;
}
.t-title {
	font-family: "w95f", Arial, sans-serif;
	font-size: 14px;
	font-weight: normal;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #000080;
	margin: 0 0 2px;
}
.t-desc {
	font-size: 10px;
	color: #555;
	margin: 0 0 6px;
	font-style: italic;
}
.t-nav {
	font-size: 10px;
	letter-spacing: 0;
	display: flex;
	justify-content: center;
	gap: 2px;
	flex-wrap: wrap;
	padding: 0 6px;
}
/* Nav items styled as tiny Win98 toolbar buttons */
.t-nav a {
	display: inline-block;
	padding: 1px 8px;
	background: #c0c0c0;
	border: 1px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	box-shadow: inset 1px 1px #dfdfdf;
	color: #000;
	text-decoration: none;
	font-size: 10px;
}
.t-nav a:hover {
	background: #000080;
	color: #ffffff;
	border-color: #808080 #ffffff #ffffff #808080;
}

/* ---- Posts — raised Win98 panel with Tumblr-tinted interior ---- */
.tpost {
	background: #ede8f5;           /* dusty lavender — the Tumblr soul bleeding in */
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #9a8faa;
	margin: 0 0 6px;
	overflow: hidden;
}

/* Post type label strip — like a Win98 group box title */
.tpost::before {
	content: attr(data-type);
	display: block;
	background: linear-gradient(90deg, #000080, #1084d0);
	color: #fff;
	font-family: "w95f", Arial, sans-serif;
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 1px 8px;
}

.tpost-body { padding: 8px 10px 4px; }
.tpost-title {
	font-family: "w95f", Arial, sans-serif;
	font-size: 13px;
	font-weight: normal;
	color: #000080;
	margin: 0 0 6px;
	letter-spacing: 0.5px;
}
.tpost p { margin: 0 0 6px; color: #333; }

/* Photo post */
.tpost-photo .tpost-img {
	display: block;
	width: 100%;
	height: auto;
	border-bottom: 1px solid #a89ec0;
}

/* Quote post */
.tpost-quote { padding: 10px 12px 4px; }
.tpost-quotetext {
	font-size: 14px;
	font-style: italic;
	color: #4a3a6a;
	line-height: 1.4;
	margin: 0 0 4px;
	border-left: 3px solid #000080;
	padding-left: 10px;
}
.tpost-source {
	font-size: 10px;
	color: #777;
	text-align: right;
	margin: 0 0 4px;
}

/* Chat post */
.tpost-chatlist {
	list-style: none;
	margin: 0;
	padding: 8px 10px 4px;
}
.tpost-chatlist li {
	padding: 3px 6px;
	margin-bottom: 2px;
	background: #ddd8ee;
	border: 1px solid;
	border-color: #808080 #ffffff #ffffff #808080;
	font-size: 11px;
}
.tpost-chatlist b { color: #000080; }

/* Link post */
.tpost-link { padding: 8px 10px 4px; }
.tpost-linkbox {
	display: block;
	padding: 6px 10px;
	background: #d8d0e8;
	border: 2px solid;
	border-color: #808080 #ffffff #ffffff #808080;
	text-decoration: none;
}
.tpost-linktitle {
	display: block;
	font-size: 12px;
	color: #000080;
	font-family: "w95f", Arial, sans-serif;
}
.tpost-linkhost {
	display: block;
	font-size: 10px;
	color: #555;
	letter-spacing: 0.5px;
}

/* Post footer — Win98 status-bar style */
.tpost-foot {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 3px 8px 4px;
	font-size: 10px;
	letter-spacing: 0;
	color: #555;
	border-top: 1px solid #a89ec0;
	background: #d8d0e8;
}
.t-time { flex: 0 0 auto; }
.t-notes {
	flex: 1;
	text-align: center;
	background: #c0c0c0;
	border: 1px solid;
	border-color: #808080 #ffffff #ffffff #808080;
	padding: 0 4px;
	font-size: 10px;
}
.t-heart { color: #c77b9e; }
.t-actions { flex: 0 0 auto; }
.t-actions a {
	margin-left: 4px;
	display: inline-block;
	padding: 0 4px;
	background: #c0c0c0;
	border: 1px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	font-size: 11px;
	color: #000;
	text-decoration: none;
}
.t-actions a:hover { background: #000080; color: #fff; }

/* Blog footer — pagination */
.t-footer {
	text-align: center;
	font-size: 10px;
	color: #555;
	padding: 4px 0 2px;
	letter-spacing: 0;
}
.t-footer a {
	display: inline-block;
	padding: 1px 10px;
	background: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	box-shadow: inset 1px 1px #dfdfdf;
	color: #000;
	font-size: 10px;
	text-decoration: none;
	margin: 0 3px;
}
.t-footer a:hover { background: #000080; color: #fff; }
.t-credit {
	display: none;
}




/* ============================================================
   LINKS WINDOW — Win98 program-list style
   ============================================================ */

/* Make content-box scroll when links window is resized small */
.content-box:has(.links-list) {
	padding: 0 !important;
	overflow-y: auto;
}

.links-list {
	display: flex;
	flex-direction: column;
	padding: 4px;
	gap: 3px;
}

.links-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px;
	text-decoration: none;
	color: #000;
	background: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	box-shadow: inset 1px 1px #dfdfdf;
	flex-shrink: 0;        /* items never compress below their natural height */
	transition: background 0.08s, border-color 0.08s;
}
.links-item:hover {
	background: #000080;
	color: #fff;
	border-color: #808080 #ffffff #ffffff #808080;
}
.links-item:hover .links-url { color: #aac4ff; }

.links-icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	transition: filter 0.15s ease;
}
.links-item:hover .links-icon {
	filter: brightness(1.2) saturate(1.2);
}

.links-label {
	flex: 1;
	font-family: "w95f", Arial, sans-serif;
	font-size: 12px;
	letter-spacing: 0.5px;
	white-space: nowrap;
}
.links-url {
	font-size: 9px;
	color: #666;
	letter-spacing: 0.5px;
	white-space: nowrap;
}




/* ============================================================
   FULLSCREEN WINDOWS (Video, Concerts, Photo, Music)
   ============================================================ */
.app-window.fullscreen-win {
    position: fixed !important;
    left: 120px !important;  /* clear icon column */
    top: 0 !important;
    width: calc(100vw - 120px) !important;
    height: calc(100vh - 30px) !important;  /* clear taskbar */
    z-index: 9000;
    resize: none;
}
.app-window.fullscreen-win .resize-handle { display: none; }
.app-window.fullscreen-win .window-content {
    margin: 0;
    flex: 1;
    overflow: hidden;
}
.app-window.fullscreen-win .content-box {
    height: 100% !important;
    overflow-y: auto;
    padding: 20px;
    font-size: 14px;
    color: #333;
}
.fullscreen-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-family: "w95f", Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
}

/* My Stuff icon row inside the readme window */
.mystuff-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 4px 2px;
    gap: 2px;
    height: 100%;
}
.mystuff-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #000;
    cursor: pointer;
    padding: 4px 6px;
    border: 1px solid transparent;
    font-family: "w95f", Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.5px;
}
.mystuff-icon:hover {
    background: #000080;
    color: #fff;
    border-color: #ffffff;
}
.mystuff-icon:hover img { filter: brightness(10); }
.mystuff-icon img {
    width: 28px;
    height: 28px;
}

@media (max-width: 600px) {
    .app-window.fullscreen-win {
        left: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 30px) !important;
    }
}


/* TASKBAR */
#taskbar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 30px;
	background: #c0c0c0;
	border-top: 1px solid #ffffff;
	box-shadow: inset 0 1px #808080;
	display: flex;
	align-items: center;
	padding: 0 5px;
	gap: 4px;
	z-index: 1000;
}
  
/* Clock */
#taskbar-clock {
	font-size: 12px;
	padding: 2px 6px;
	background: #c0c0c0;
	border: 1px solid #808080;
	box-shadow: inset 1px 1px #ffffff,
    inset -1px -1px #404040;
	color: #000;
}
  
  
/* Taskbar windows */
#taskbar-windows {
	flex: 1;
	display: flex;
	gap: 4px;
	margin-left: 6px;
	min-width: 0;
}


/* Taskbar buttons */
.taskbar-btn {
	font-size: 13px;
	letter-spacing: 1px;
	background: #c0c0c0;
	border: 1px solid #808080;
	box-shadow: inset 1px 1px #ffffff,
    inset -1px -1px #404040;
	color: #000;
	padding: 2px 6px;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 150px;
}

.taskbar-btn:hover {
	background: #d4d0c8;
}

.taskbar-btn:active {
	transform: translateY(1px);
}

.taskbar-btn.active {
	background: linear-gradient(90deg, #a0a0a0, #c8c8c8);
	color: black;
	box-shadow: inset 1px 1px #ffffff,
    inset -1px -1px #808080;
} 
  
  
  

  

/* START BUTTON */
#start-btn {
	background: #c0c0c0;
	border: 1px solid #808080;
	box-shadow: inset 1px 1px #ffffff,
    inset -1px -1px #404040;
	color: #000;
	padding: 2px 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 2px;
}

#start-btn.active {
	box-shadow: inset -1px -1px #ffffff,
    inset 1px 1px #404040;
}






/* START MENU */
#start-menu {
	position: fixed;
	bottom: 30px;
	left: 0;
	width: 220px;
	background: #c0c0c0;
	border: 1px solid #808080;
	box-shadow: inset 1px 1px #ffffff,
    inset -1px -1px #404040,
    2px 2px 6px rgba(0,0,0,0.4);
	padding: 3px;
	padding-left: 30px;
	display: none;
	z-index: 1001;
	font-size: 13px;
}

#start-menu .sm-list,
#start-menu .sm-sub {
	list-style: none;
	margin: 0;
	padding: 2px;
}

#start-menu .sm-item {
	position: relative;
	margin: 0;
	padding: 0;
}

#start-menu .sm-link {
	display: grid;
	grid-template-columns: 26px 1fr 14px;
	align-items: center;
	column-gap: 6px;
	padding: 6px 6px;
	color: #000;
	text-decoration: none;
	white-space: nowrap;
	user-select: none;
}

#start-menu .sm-ico {
	height: 22px;
	width: 22px;
	filter: grayscale(100%);
	opacity: 0.7;
}

#start-menu .sm-text {
	line-height: 1;
}

#start-menu .sm-arrow {
	justify-self: end;
	font-size: 10px;
	line-height: 1;
	margin-top: 1px;
	opacity: 0.9;
}

#start-menu .sm-sep {
	height: 1px;
	margin: 4px 2px;
	background: #808080;
	box-shadow: 0 1px #ffffff;
}

#start-menu .sm-link:hover,
#start-menu .sm-item:hover > .sm-link {
	background: linear-gradient(#808080,#404040);
	color: #ffffff;
	filter: grayscale(100%);
}

#start-menu .sm-link:hover .sm-ico,
#start-menu .sm-item:hover > .sm-link .sm-ico {
	filter: none;
}

#start-menu .has-sub > .sm-sub {
	position: absolute;
	left: calc(100% - 3px);
	top: -3px;
	min-width: 220px;
	background: #c0c0c0;
	border: 1px solid #808080;
	box-shadow: inset 1px 1px #ffffff,
    inset -1px -1px #404040,
    2px 2px 6px rgba(0,0,0,0.35);
	display: none;
	z-index: 1002;
}

#start-menu .has-sub:hover > .sm-sub {
	display: block;
}

  
  
/* Vertical Title on the Start menu */
.start-sidebar {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 28px;
	background: linear-gradient(#808080,#404040);
	border-right: 1px solid #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding-bottom: 8px;
}


.start-sidebar span {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 13px;
	color: #ffffff;
	font-weight: bold;
	letter-spacing: 1px;
}

  
  
  
  
/* This will appear when pressing SHUT DOWN */
#shutdown-screen {
	position: fixed;
	inset: 0;
	background: #000;
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	z-index: 9999;
}

.shutdown-text {
	text-align: center;
}


  
  

/* SCROLLBARS */
::-webkit-scrollbar {
	width: 16px;
	height: 16px;
}

::-webkit-scrollbar-track {
	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAFElEQVQIW2M4fPz0////GYAYyAIASnoKpV3w4kgAAAAASUVORK5CYII=");
	image-rendering: pixelated;
	filter: grayscale(100%);
}

::-webkit-scrollbar-track:active {
	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAEElEQVQIW2No6+pjgAAgCwAWogM9VKrgGQAAAABJRU5ErkJggg==");
	filter: grayscale(100%);
}

::-webkit-scrollbar-thumb {
	border-top: 1px solid #cccccc;
	border-left: 1px solid #cccccc;
	border-right: 1px solid black;
	border-bottom: 1px solid black;
	box-shadow: inset 1px 1px 0 0 white, inset -1px -1px 0 0 #868a8e;
	width: 16px;
	height: 16px;
	background-color: #cccccc;
	z-index: 1;
}

::-webkit-scrollbar-corner {
	background-color: #cccccc;
}

::-webkit-resizer {
	width: 16px;
	height: 16px;
	background-color: #cccccc;
	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAN0lEQVR4Ae3MgQUAMBRDwU5fFF05lb/CARTBw2Ulof0DxPtcwp3hNuEYnjbcEW4TjuFpwx3h9gMWGgZ2Y/PT2gAAAABJRU5ErkJggg==");
	background-position: bottom right;
	background-repeat: no-repeat;
	image-rendering: pixelated;
}

::-webkit-scrollbar-button,
.scroll::-webkit-scrollbar-button {
	border-top: 1px solid #cccccc;
	border-left: 1px solid #cccccc;
	border-right: 1px solid black;
	border-bottom: 1px solid black;
	box-shadow: inset 1px 1px 0 0 white, inset -1px -1px 0 0 #868a8e;
	display: block;
	width: 16px;
	height: 16px;
	background-color: #cccccc;
	image-rendering: pixelated;
	background-repeat: no-repeat;
	background-position: center center;
}

::-webkit-scrollbar-button:active,
.scroll::-webkit-scrollbar-button:active {
	background-position: 2px 2px;
}

::-webkit-scrollbar-button:horizontal:decrement,
.scroll::-webkit-scrollbar-button:horizontal:decrement {
	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAHklEQVQY02NgoBT8xyX8H5fwf1zCpOjAYwceV1EEAAO2D/HsQ4vsAAAAAElFTkSuQmCC");
}

::-webkit-scrollbar-button:horizontal:increment,
.scroll::-webkit-scrollbar-button:horizontal:increment {
	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAHUlEQVQY02NgIB/8xy3xH7fEf9wS/0nUQZqrKAYAK44P8ZRmzLQAAAAASUVORK5CYII=");
}

::-webkit-scrollbar-button:vertical:decrement,
.scroll::-webkit-scrollbar-button:vertical:decrement {
	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGklEQVR4AWMYxuA/SYphmETFhDX9x4mHGQAAcL4P8dQiMq8AAAAASUVORK5CYII=");
}

::-webkit-scrollbar-button:vertical:increment,
.scroll::-webkit-scrollbar-button:vertical:increment {
	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAF0lEQVQY02NgoBf4jwJxSOHQhcNAOgMAWWAP8Rv2U3UAAAAASUVORK5CYII=");
}

::-webkit-scrollbar-button:horizontal:increment:start,
.scroll::-webkit-scrollbar-button:horizontal:increment:start,
::-webkit-scrollbar-button:horizontal:decrement:end,
.scroll::-webkit-scrollbar-button:horizontal:decrement:end,
::-webkit-scrollbar-button:vertical:increment:start,
.scroll::-webkit-scrollbar-button:vertical:increment:start,
::-webkit-scrollbar-button:vertical:decrement:end,
.scroll::-webkit-scrollbar-button:vertical:decrement:end {
	display: none;
}

::-webkit-scrollbar-button:active,
.scroll::-webkit-scrollbar-button:active {
	border-top: 1px solid #868a8e;
	border-left: 1px solid #868a8e;
	border-bottom: 1px solid #868a8e;
	border-right: 1px solid #868a8e;
	box-shadow: none;
}


@media (max-width: 700px) {
	.desktop-note {
		display: none;
	}
}

/* Mobile-only elements are hidden by default (desktop); the
   media query below turns them on at <=700px. */
#m-topbar, #m-nav { display: none; }

/* ============================================================
   MOBILE VERSION
   Everything below only activates at <= 700px.
   The desktop layout above is left completely untouched.
   ============================================================ */

@media (max-width: 700px) {

  html, body {
    overflow-x: hidden;
  }

  body {
    overflow-y: hidden;        /* no real page scroll — windows are moved
                                  by the virtual-scroll JS instead, so the
                                  body never grows and grey never shows */
    height: 100vh;
    position: fixed;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  body {
    padding: 0;
    padding-top: 46px;     /* top bar */
    padding-bottom: 58px;  /* bottom nav */
    font-size: 15px;
    line-height: 1.45;
    -webkit-text-size-adjust: 100%;
  }

  /* ---- Desktop-only chrome we hide on mobile ---- */
  .desktop-icons,
  #taskbar,
  #start-btn,
  .desktop-note {
    display: none !important;
  }

  /* ---- Mobile top bar ---- */
  #m-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 46px;
    padding: 0 10px;
    background: linear-gradient(90deg, #808080, #c0c0c0);
    border-bottom: 1px solid #fff;
    box-shadow: inset 0 1px #e8e8e8, 0 1px 3px rgba(0,0,0,0.3);
    z-index: 2000;
  }

  #m-topbar .m-title {
    font-weight: bold;
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    text-shadow: 1px 1px #555;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #m-topbar .m-clock {
    color: #000;
    background: #c0c0c0;
    border: 1px solid #808080;
    box-shadow: inset 1px 1px #fff, inset -1px -1px #404040;
    padding: 2px 6px;
    font-size: 13px;
  }

  /* Bigger resize handle for touch */
  .resize-handle {
    width: 28px;
    height: 28px;
    background-size: 20px 20px;
    touch-action: none;
  }

  /* ---- Empty stack reference — collapses but never hides windows ---- */
  #m-stack {
    position: static;
    height: 0;
    overflow: visible;
  }

  /* Keep the wallpaper behind the windows on mobile.
     The fisheye filter creates a stacking context that can paint the
     wallpaper OVER the windows on mobile, so disable it here.
     cover = fill the screen and crop the sides (never stretch). */
  #desktop-bg {
    display: block !important;
    background: #6a6d72 url("wallpaper.jpg") no-repeat center center !important;
    background-size: cover !important;
    filter: none !important;
    z-index: -1 !important;
  }

  /* ---- About Me text scales with the window size on mobile ----
     The content box becomes a container; text uses cqi units (a % of
     the container's width) so it grows/shrinks as you resize the window. */
  .app-window[data-window-id="about"] .content-box,
  .app-window[data-id="about-open"] .content-box {
    container-type: inline-size;
  }
  .app-window[data-window-id="about"] .profile-name,
  .app-window[data-id="about-open"] .profile-name {
    font-size: clamp(13px, 6cqi, 28px);
  }
  .app-window[data-window-id="about"] .profile-text,
  .app-window[data-id="about-open"] .profile-text {
    font-size: clamp(10px, 3.6cqi, 18px);
    line-height: 1.45;
  }
  .app-window[data-window-id="about"] .profile-row,
  .app-window[data-id="about-open"] .profile-row {
    font-size: clamp(9px, 3.2cqi, 16px);
  }

  /* ---- Win98 page scrollbar (drives the virtual scroll) ---- */
  #m-scrollbar {
    position: fixed;
    top: 46px;            /* below the top bar */
    bottom: 58px;         /* above the bottom nav */
    right: 0;
    width: 18px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    background: #c0c0c0;
    border-left: 1px solid #808080;
  }

  #m-scrollbar .m-sb-btn {
    height: 18px;
    flex: 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #000;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset 1px 1px #dfdfdf;
    user-select: none;
    cursor: pointer;
  }
  #m-scrollbar .m-sb-btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px #808080;
  }

  #m-scrollbar .m-sb-track {
    flex: 1 1 auto;
    position: relative;
    background-image:
      repeating-conic-gradient(#c0c0c0 0% 25%, #b0b0b0 0% 50%);
    background-size: 4px 4px;
    border: 1px solid #999;
  }

  #m-scrollbar .m-sb-thumb {
    position: absolute;
    left: 1px;
    right: 1px;
    top: 0;
    min-height: 28px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #404040;
    cursor: grab;
  }
  #m-scrollbar .m-sb-thumb:active { cursor: grabbing; }

  /* ---- Windows on mobile ----
     position:fixed prevents the body-collapse clipping bug. Scrolling
     is faked by translating all windows together (see JS), so windows
     still move with the page while never being clipped. */
  .app-window {
    position: fixed !important;
    z-index: 100;
  }

  .app-window[data-m-hidden="true"] {
    display: none !important;
  }

  /* Bigger tap targets for titlebar buttons */
  .window-header {
    height: 26px;
    padding: 4px 4px 4px 6px;
    cursor: move;
    touch-action: none;
  }

  .window-title {
    font-size: 15px;
    line-height: 18px;
  }

  .window-buttons button {
    min-width: 24px;
    min-height: 22px;
    width: 24px;
    height: 22px;
  }
  .btn-min  { background-position: bottom 5px left 7px; }
  .btn-max  { background-position: top 5px left 7px; }
  .btn-close{ background-position: top 6px left 8px; }

  .window-content {
    margin: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Content scrolls inside the window. The window itself is capped to
     the space between the top bar (46px) and bottom nav (58px) so it
     can never be clipped off-screen. */
  .content-box {
    height: auto !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Windows: never taller than the visible area between the bars. */
  .app-window {
    max-height: calc(100vh - 120px);
    overflow: hidden;
  }

  /* Image + CD windows need a sensible mobile height */
  .app-window[data-id="image"] .content-box {
    height: 200px !important;
  }
  .window-img {
    height: 200px;
  }

  /* Chat window: give the userbar + chatbox room to fill on mobile */
  .app-window[data-id="chat"] .content-box {
    height: auto !important;
    max-height: none !important;
  }
  .app-window[data-id="chat"] .window-content {
    height: 70vh;
  }
  .app-window[data-id="chat"] .chat-box {
    min-height: 0;
  }
  .app-window[data-id="chat"] #chattable {
    height: 100% !important;
  }
  .chat-name-input { height: 32px; font-size: 14px; }
  .chat-name-btn   { height: 32px; }

  /* ---- CD player reflow ---- */
  .cd-player-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cd-cover {
    width: 120px;
    height: 120px;
    align-self: center;
  }
  .cd-select {
    width: 100%;
    height: 34px;
    font-size: 14px;
  }
  .cd-time-row { margin: 12px 0; }
  .cd-progress { width: 100%; height: 18px; }
  .cd-buttons { gap: 12px; justify-content: center; }
  .cd-btn {
    flex: 1;
    height: 40px;
    font-size: 16px;
  }

  /* ---- Profile / about tweaks ---- */
  .profile-links a { font-size: 12px; padding: 5px 8px; }

  /* ---- Paint iframe responsive ---- */
  #window-paint-mobilewrap iframe,
  .app-window[data-window-id="paint"] iframe {
    width: 100% !important;
    height: 60vh !important;
  }

  /* ---- Bottom navigation (replaces desktop icons + taskbar) ---- */
  #m-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 58px;
    background: #c0c0c0;
    border-top: 1px solid #fff;
    box-shadow: inset 0 1px #808080, 0 -1px 4px rgba(0,0,0,0.25);
    z-index: 2000;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #m-nav .m-nav-btn {
    flex: 0 0 auto;
    min-width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    background: transparent;
    color: #444;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    cursor: pointer;
    border-right: 1px solid #b0b0b0;
  }

  #m-nav .m-nav-btn img {
    height: 24px;
    width: 24px;
    filter: grayscale(100%);
    opacity: 0.6;
    image-rendering: pixelated;
  }

  #m-nav .m-nav-btn:active,
  #m-nav .m-nav-btn.active {
    background: linear-gradient(#a8a8a8, #c8c8c8);
    box-shadow: inset 1px 1px #fff, inset -1px -1px #808080;
    color: #000;
  }
  #m-nav .m-nav-btn.active img { opacity: 0.9; }

  /* The "Start" nav button gets a distinct look */
  #m-nav .m-nav-btn.m-start span { font-weight: bold; }

  /* ---- Mobile Start menu = full overlay ---- */
  #start-menu {
    position: fixed !important;
    inset: 46px 0 58px 0 !important;
    width: auto !important;
    bottom: 58px !important;
    left: 0 !important;
    padding: 0 !important;
    overflow-y: auto;
    z-index: 1900;
  }
  #start-menu .start-sidebar {
    width: 36px;
  }
  #start-menu .sm-list {
    padding-left: 40px;
  }
  #start-menu .sm-link {
    padding: 14px 10px;
    font-size: 16px;
    grid-template-columns: 30px 1fr 18px;
  }
  #start-menu .sm-ico { height: 26px; width: 26px; }

  /* On mobile, submenus expand inline instead of flying out */
  #start-menu .has-sub > .sm-sub {
    position: static !important;
    left: auto !important;
    top: auto !important;
    min-width: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: #b8b8b8 !important;
    display: none;
  }
  #start-menu .has-sub.m-open > .sm-sub {
    display: block;
  }
  #start-menu .has-sub:hover > .sm-sub {
    display: none;  /* disable hover-open on touch */
  }
  #start-menu .has-sub.m-open > .sm-sub {
    display: block;
  }
  #start-menu .sm-sub .sm-link {
    padding-left: 24px;
  }
  #start-menu .sm-arrow {
    transition: transform 0.15s ease;
  }
  #start-menu .has-sub.m-open > .sm-link .sm-arrow {
    transform: rotate(90deg);
  }
}


/* ============================================================
   VIDEO WINDOW — 2-col GIF grid with notes
   ============================================================ */
.vid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px;
    background: #1a1a1a;
    min-height: 100%;
    box-sizing: border-box;
}

/* The content-box is the size container; when the window (and thus the
   content-box) gets narrow, the grids inside collapse to one column so
   the images/gifs don't shrink too small to see. */
.content-box {
    container-type: inline-size;
}

@container (max-width: 360px) {
    .vid-grid {
        grid-template-columns: 1fr;
    }
    .concert-gallery {
        grid-template-columns: 1fr !important;
    }
}

.vid-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vid-gif {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
    border: 1px solid #333;
}







/* ============================================================
   MOBILE HOME SCREEN & COUNTDOWN
   ============================================================ */

/* Home screen: centered icon grid */
#m-home {
  display: none; /* hidden on desktop */
}

@media (max-width: 700px) {

  #m-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 16px;
    min-height: 60vh;
  }

  #m-home-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
    width: 100%;
    max-width: 340px;
    justify-items: center;
  }

  #m-home-icons .desktop-icon {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: 12px !important;
    width: 80px !important;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
  }

  #m-home-icons .desktop-icon img {
    width: 56px !important;
    height: 56px !important;
    image-rendering: pixelated;
    filter: none !important;
  }

  #m-home-icons .desktop-icon:active {
    opacity: 0.7;
  }

  /* Countdown in topbar */
  #m-countdown {
    font-size: 11px !important;
    white-space: nowrap;
    letter-spacing: 0 !important;
    font-family: "w95f", monospace;
    color: #000 !important;
    padding: 2px 5px !important;
  }

}

/* ============================================================
   CONCERT PHOTO GALLERY
   ============================================================ */
.concert-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 6px;
    padding: 8px;
    background: #1a1a1a;
}

.concert-photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    border: 1px solid #333;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.concert-photo:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* On mobile, keep a comfortable minimum tile size; auto-fit handles columns */
@media (max-width: 700px) {
    .concert-gallery {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 4px;
        padding: 4px;
    }
}

/* ============================================================
   LIGHTBOX (concert photos)
   ============================================================ */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 24px;
    box-sizing: border-box;
}
#lightbox.open {
    display: flex;
}
#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 1px solid #444;
    box-shadow: 0 0 40px rgba(60, 160, 255, 0.25);
    cursor: default;
}
#lightbox-close {
    position: fixed;
    top: 14px;
    right: 20px;
    font-size: 38px;
    line-height: 1;
    color: #fff;
    font-family: Arial, sans-serif;
    cursor: pointer;
    text-shadow: 0 0 6px #000;
    z-index: 100001;
}
#lightbox-close:hover {
    color: #3ca0ff;
}

.vid-gif {
    cursor: pointer;
}

/* ============================================================
   LIGHTBOX ARROWS
   ============================================================ */
.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100001;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    font-family: Arial, sans-serif;
    cursor: pointer;
    user-select: none;
    padding: 16px 14px;
    text-shadow: 0 0 8px #000;
    transition: color 0.15s ease;
}
.lightbox-arrow:hover {
    color: #3ca0ff;
}
#lightbox-prev { left: 8px; }
#lightbox-next { right: 8px; }

@media (max-width: 700px) {
    .lightbox-arrow {
        font-size: 32px;
        padding: 20px 12px;
    }
}

/* ============================================================
   MOBILE TOPBAR REFRESH BUTTON
   ============================================================ */
@media (max-width: 700px) {
  #m-refresh {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin-left: 6px;
    font-size: 16px;
    line-height: 1;
    color: #000;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset 1px 1px #dfdfdf;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  #m-refresh:active {
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px #808080;
  }
  #m-refresh.spinning {
    animation: m-refresh-spin 0.5s linear;
  }
  @keyframes m-refresh-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
}


