/* =========================================================
   SKEL.TO — "DC" base layout (DesignCity 2001 structure)
   Plain fonts for now (Verdana/Arial). Colors in :root.
   ========================================================= */

:root {
  --site-width: 980px;
  --left-width: 210px;
  --right-width: 220px;

  --page:     #000000;
  --col-bg:   #3a3a3a;   /* side column background */
  --row-1:    #333333;   /* box rows */
  --row-2:    #2b2b2b;
  --row-line: #1c1c1c;
  --row-hi:   #454545;
  --head-bg:  #262626;   /* box title bars */
  --inset:    #0b0b0b;   /* guestbook well */
  --nav-bar:  #6d6d6d;
  --tab-bg:   #2a2a2a;
  --tab-line: #9a9a9a;

  --text:     #b5b5b5;
  --text-hi:  #e6e6e6;
  --muted:    #8a8a8a;
  --yellow:   #f5c400;
  --link:     #d8d8d8;

  --active:   #7fcf5f;
  --paused:   #f5c400;
  --done:     #7fb2e6;

  --head-font: Verdana, Tahoma, "DejaVu Sans", sans-serif;
  --body-font: Verdana, Tahoma, "DejaVu Sans", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; background: var(--page); color: var(--text); font: 12px/1.5 var(--body-font); }
img { max-width: 100%; }
a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--yellow); }

#site-wrapper { width: var(--site-width); margin: 0 auto; }

/* ================= HEADER ================= */
#header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 14px 0 12px; }
#header-left { display: flex; flex-direction: column; gap: 4px; }
#header-info { font: bold 9px/1.35 Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: #bdbdbd; }
#header-home { text-decoration: none; }
#header-logo { display: block; max-height: 60px; }
#header-name { display: block; font: 900 38px/1 Arial, Helvetica, sans-serif; letter-spacing: -1px; text-transform: uppercase; }
#header-name .n1 { color: #fff; }
#header-name .n2 { color: var(--yellow); }

#topslot { width: 468px; height: 60px; flex: 0 0 468px; }
#topslot img { display: block; width: 468px; height: 60px; object-fit: fill; background: #000; }
#topslot a { display: block; width: 100%; height: 100%; }
#topslot img.fit-crop { object-fit: cover; }
#topslot img.fit-fit { object-fit: contain; }
.slot-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  border: 1px dashed #555; color: #666; font: bold 11px Arial, sans-serif; text-transform: uppercase; letter-spacing: 2px;
  background: repeating-linear-gradient(45deg, #0d0d0d 0 8px, #141414 8px 16px);
}

/* ================= NAV BAR ================= */
#nav { display: flex; justify-content: space-between; align-items: center; padding: 3px 5px; background: var(--nav-bar); border-top: 1px solid #8a8a8a; border-bottom: 1px solid #3c3c3c; }
#nav-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
#nav-tabs a {
  padding: 1px 12px; border: 1px solid var(--tab-line); border-radius: 7px; background: var(--tab-bg);
  font: bold 10px/1.6 Arial, Helvetica, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #cfcfcf; text-decoration: none;
}
#nav-tabs a:hover { color: #fff; border-color: #fff; }
#nav-tabs a.active { background: var(--yellow); border-color: #fff3a8; color: #000; }
#header-socials { display: flex; gap: 4px; }
.social { display: block; width: 18px; height: 18px; padding: 3px; background: var(--tab-bg); border: 1px solid var(--tab-line); border-radius: 4px; }
.social img { display: block; width: 100%; height: 100%; }
.social:hover { border-color: var(--yellow); }

/* ================= COLUMNS ================= */
#layout { display: flex; align-items: stretch; }
.col { flex: 0 0 auto; background: var(--col-bg); padding: 6px 4px 12px; }
#left  { width: var(--left-width);  border-right: 2px solid #000; }
#right { width: var(--right-width); border-left: 2px solid #000; }
#content { flex: 1; min-width: 0; padding: 22px 28px 36px; background: #000; }

/* ================= SIDE BOXES ================= */
.box { margin-bottom: 8px; background: var(--row-1); }
.box-head {
  display: flex; align-items: center; gap: 6px; margin: 0; padding: 3px 6px;
  background: var(--head-bg); border-top: 1px solid var(--row-hi); border-bottom: 1px solid #000;
  font: bold 10px/1.5 Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--text-hi);
}
.box-icon { display: inline-block; width: 5px; height: 11px; background: var(--yellow); box-shadow: 2px 3px 0 -1px #8a6d00; }
/* DesignCity-style staircase grip */
.grip { margin: 0 -4px -1px auto; align-self: flex-end; flex: none; width: 11px; height: 11px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2011%2011%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20x%3D%278%27%20y%3D%270%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%235a5a5a%27/%3E%3Crect%20x%3D%279%27%20y%3D%271%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23141414%27/%3E%3Crect%20x%3D%274%27%20y%3D%274%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%235a5a5a%27/%3E%3Crect%20x%3D%275%27%20y%3D%275%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23141414%27/%3E%3Crect%20x%3D%278%27%20y%3D%274%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%235a5a5a%27/%3E%3Crect%20x%3D%279%27%20y%3D%275%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23141414%27/%3E%3Crect%20x%3D%270%27%20y%3D%278%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%235a5a5a%27/%3E%3Crect%20x%3D%271%27%20y%3D%279%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23141414%27/%3E%3Crect%20x%3D%274%27%20y%3D%278%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%235a5a5a%27/%3E%3Crect%20x%3D%275%27%20y%3D%279%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23141414%27/%3E%3Crect%20x%3D%278%27%20y%3D%278%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%235a5a5a%27/%3E%3Crect%20x%3D%279%27%20y%3D%279%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23141414%27/%3E%3C/svg%3E") no-repeat; }
.box-sub { padding: 4px 6px; text-align: center; font-weight: bold; font-size: 12px; color: var(--text-hi); border-bottom: 1px solid var(--row-line); }
.box-center { padding: 10px 6px; text-align: center; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-bottom: 1px solid var(--row-line); }
.rows li:nth-child(even) { background: var(--row-2); }
.rows li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .md { color: var(--muted); font-size: 11px; }
.rows .empty { color: var(--muted); font-style: italic; }

.letter {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 14px; height: 14px; font: bold 9px/1 Arial, sans-serif; color: #000; border: 1px solid #000;
}
.letter-active { background: var(--active); }
.letter-paused { background: var(--paused); }
.letter-done   { background: var(--done); }
.legend { display: flex; justify-content: space-around; padding: 5px 4px; font-size: 11px; color: var(--text); background: var(--row-2); }
.legend > span { display: inline-flex; align-items: center; gap: 4px; }

.link-rows li::before { content: "\25B8"; color: var(--yellow); font-size: 10px; }
.link-rows li span { color: var(--text); }

.callout { margin: 0 0 8px; padding: 6px; text-align: center; background: var(--row-1); border-top: 1px solid var(--row-hi); }
.callout a { color: var(--yellow); font-weight: bold; font-size: 13px; }

/* guestbook (shoutbox) */
.shout { list-style: none; margin: 0; padding: 4px 6px; background: var(--inset); border: 1px solid #000; height: 140px; overflow-y: auto; display: flex; flex-direction: column; }
.shout li:first-child { margin-top: auto; } /* stack messages from the bottom up */
.shout li { padding: 2px 0; color: var(--text); word-wrap: break-word; }
.shout li b { font: bold 10px Arial, sans-serif; color: #9a9a9a; text-transform: uppercase; }
/* guestbook scrollbar: thin, dark, beveled to match the boxes */
.shout::-webkit-scrollbar { width: 10px; }
.shout::-webkit-scrollbar-track { background: #050505; border-left: 1px solid #222; }
.shout::-webkit-scrollbar-thumb { background: #3a3a3a; border: 1px solid #000; box-shadow: inset 1px 1px 0 #5a5a5a, inset -1px -1px 0 #262626; }
.shout::-webkit-scrollbar-thumb:hover { background: #4a4a4a; }
.shout::-webkit-scrollbar-thumb:active { background: var(--yellow); box-shadow: inset 1px 1px 0 #ffe066, inset -1px -1px 0 #8a6d00; }
@supports not selector(::-webkit-scrollbar) { .shout { scrollbar-width: thin; scrollbar-color: #3a3a3a #050505; } }
/* guestbook timestamps. Pick a style with the class on <ul class="shout">:
   gb-a = [time] before name + day dividers, gb-b = date/time right-aligned, gb-c = day dividers only */
.shout .gb-day, .shout .gb-t, .shout .gb-md { display: none; }
.gb-a .gb-day, .gb-c .gb-day { display: flex; align-items: center; gap: 6px; margin: 4px 0 2px; font: bold 9px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.gb-a .gb-day::before, .gb-a .gb-day::after, .gb-c .gb-day::before, .gb-c .gb-day::after { content: ""; flex: 1; border-top: 1px dotted #444; }
.gb-a .gb-t { display: inline; font: 10px "Courier New", monospace; color: var(--muted); }
.gb-b .gb-md { display: block; float: right; margin-left: 6px; font: 9px Arial, sans-serif; color: var(--muted); line-height: 16px; }
.shout .empty { color: var(--muted); font-style: italic; }
.shout-form { display: flex; gap: 4px; padding: 4px 6px; }
.shout-form input { flex: 1; min-width: 0; height: 20px; background: #000; border: 1px solid #555; color: #ddd; font: 11px var(--body-font); padding: 0 4px; }
.shout-form button { height: 20px; padding: 0 10px; background: var(--tab-bg); border: 1px solid #666; color: #ccc; font: 11px var(--body-font); }
.visitors { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; background: var(--head-bg); border-top: 1px solid var(--row-hi); font: bold 10px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--text-hi); }
.odometer { display: inline-flex; gap: 1px; }
.odometer b { display: inline-block; min-width: 11px; padding: 0 1px; text-align: center; font: bold 11px/1.4 "Courier New", monospace; color: var(--yellow); background: #000; border: 1px solid #555; }

/* latest posts (news style) */
.post-date { padding: 3px 6px; background: var(--row-1); border-bottom: 1px solid var(--row-line); border-top: 1px solid var(--row-hi); font-weight: bold; font-size: 13px; color: #fff; }
.post-body { padding: 4px 6px 8px; background: var(--row-2); color: var(--text); font-size: 11px; line-height: 1.5; }
.post-body a { font-weight: bold; font-size: 12px; }
.post-proj { color: var(--muted); }

/* ================= CENTER ================= */
.block { margin-bottom: 28px; }
.block-head { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font: bold 16px/1.2 Arial, Helvetica, sans-serif; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.marker { display: inline-block; width: 5px; height: 13px; background: var(--yellow); box-shadow: 2px 3px 0 -1px #8a6d00; }
.block .prose, .block > p { color: var(--text); font-size: 13px; }
.prose p { margin: 0 0 8px; }

.featured { display: flex; gap: 14px; align-items: flex-start; }
.featured-img { flex: 0 0 220px; }
.featured-img img { display: block; width: 220px; height: 165px; object-fit: cover; border: 1px solid #555; }
.featured-text { flex: 1; min-width: 0; font-size: 12px; }
.featured-title { font-weight: bold; font-size: 15px; color: #fff; }
.featured-text p { margin: 6px 0; }
.featured-latest { padding: 6px 8px; background: #151515; border-left: 3px solid var(--yellow); }
.more-link { color: var(--yellow); font-weight: bold; }

.status { display: inline-block; padding: 0 6px; font: bold 9px/1.6 Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: #000; border: 1px solid #000; vertical-align: 2px; }
.status-active { background: var(--active); }
.status-paused { background: var(--paused); }
.status-done   { background: var(--done); }

.changelog { list-style: none; margin: 0; padding: 0; }
.changelog li { padding: 3px 0; border-bottom: 1px dotted #333; font-size: 12px; }
.date { color: var(--muted); font-size: 11px; font-weight: bold; margin-right: 6px; }

/* ================= SUB PAGES ================= */
#content h1 { margin: 0 0 12px; font: bold 18px/1.2 Arial, Helvetica, sans-serif; color: #fff; }
#content h1:not(.block-head)::before { content: ""; display: inline-block; width: 5px; height: 14px; margin-right: 8px; background: var(--yellow); box-shadow: 2px 3px 0 -1px #8a6d00; }
.crumbs { margin: 0 0 8px; font-size: 11px; }
.small { font-size: 11px; color: var(--muted); }
.panel { margin-bottom: 22px; }
.panel-head { margin: 0 0 8px; padding: 3px 6px; background: var(--head-bg); border-top: 1px solid var(--row-hi); font: bold 10px/1.5 Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--text-hi); }
.panel-head .count { color: var(--muted); }
.project-table { border-collapse: collapse; width: 100%; }
.project-table td { padding: 8px 8px 8px 0; vertical-align: top; border-bottom: 1px dotted #333; }
.project-table .thumb { width: 130px; }
.project-table .thumb img, .no-img { width: 120px; height: 90px; object-fit: cover; display: flex; align-items: center; justify-content: center; border: 1px solid #555; background: #151515; color: var(--muted); font-size: 10px; text-decoration: none; }
.project-table .title { font-weight: bold; font-size: 14px; color: #fff; margin-right: 6px; }
.project-table p { margin: 4px 0; }
.project-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.cover { display: block; width: 320px; border: 1px solid #555; }
.project-info { border-collapse: collapse; font-size: 11px; }
.project-info th, .project-info td { padding: 3px 8px; border: 1px solid #333; text-align: left; }
.project-info th { background: var(--head-bg); color: var(--muted); text-transform: uppercase; font-size: 10px; }
.update { margin-bottom: 14px; background: #111; border: 1px solid #2a2a2a; }
.update-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 8px; background: var(--row-1); border-bottom: 1px solid #000; }
.update-title { font-weight: bold; color: #fff; }
.update-body { padding: 6px 8px 2px; }
.update-body ul { padding-left: 18px; }
.gallery { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 8px; }
.gallery img { width: 100px; height: 75px; object-fit: cover; display: block; border: 1px solid #555; }
.update-foot { padding: 0 8px 6px; text-align: right; font-size: 10px; }
.embed iframe { width: 100%; height: 240px; border: 1px solid #333; background: #fff; }

/* ================= FOOTER ================= */
#footer { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; margin-bottom: 20px; background: var(--nav-bar); border-top: 1px solid #8a8a8a; font: bold 10px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: #111; }

/* ================= OPTION: SWAP SIDES ================= */
body.swap #left { order: 3; border-right: 0; border-left: 2px solid #000; }
body.swap #content { order: 2; }
body.swap #right { order: 1; border-left: 0; border-right: 2px solid #000; }

/* ================= SMALL SCREENS ================= */
@media (max-width: 1000px) {
  #site-wrapper { width: 100%; }
  #header { flex-direction: column; align-items: flex-start; padding: 12px; }
  #topslot { width: 100%; flex-basis: auto; height: auto; aspect-ratio: 468 / 60; }
  #topslot img { width: 100%; height: auto; aspect-ratio: 468 / 60; }
  #nav { flex-wrap: wrap; gap: 6px; }
  #layout { flex-direction: column; }
  /* phone: columns dissolve so each box can be ordered on its own */
  #layout { background: var(--col-bg); padding-bottom: 6px; }
  #left, #right { display: contents; }
  #layout > .col > .box { margin: 0 4px 8px; }
  #content { order: 1; margin-bottom: 8px; padding: 16px 12px; font-size: 13px; }
  .box-posts     { order: 2; }
  .box-projects  { order: 3; }
  .box-servers   { order: 4; }
  .box-socials   { order: 5; }
  .box-guestbook { order: 6; }
  .box-link      { order: 7; }
  .featured { flex-direction: column; }
  .featured-img, .featured-img img { width: 100%; height: auto; flex-basis: auto; }
  .project-top { flex-direction: column; }
  .cover { width: 100%; }
  body { font-size: 13px; }
  .post-body { font-size: 12px; }
}

/* ================= ABOUT + SERVER STATUS ================= */
.about { display: flex; gap: 8px; padding: 6px; align-items: flex-start; }
.avatar { flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; border: 1px solid #000; outline: 1px solid #555; }
.avatar-empty { display: flex; align-items: center; justify-content: center; background: #1a1a1a; color: #666; font-size: 9px; }
.about-text { font-size: 11px; line-height: 1.45; color: var(--text); }
.about-text b { color: #fff; font-size: 12px; }
.about-text .more { display: block; margin-top: 3px; color: var(--yellow); font-weight: bold; }

.server-rows li { align-items: flex-start; }
.server-rows .dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; border: 1px solid #000; }
.server-rows .up .dot, .server-rows li.up .dot { background: #5fe04a; box-shadow: 0 0 5px #5fe04a; }
.server-rows li.down .dot { background: #7a2b2b; }
.sv-main { flex: 1; min-width: 0; font-size: 11px; }
.sv-main b { color: var(--text-hi); }
.sv-addr { color: var(--muted); font-size: 10px; }
.sv-link { text-decoration: none; }
.sv-link:hover b { color: var(--yellow); text-decoration: underline; }
.sv-state { font: bold 10px/1.8 Arial, sans-serif; text-transform: uppercase; }
li.up .sv-state { color: #5fe04a; }
li.down .sv-state { color: #a55; }

/* socials box */
.social-rows .social { flex: 0 0 auto; width: 18px; height: 18px; padding: 3px; border-radius: 3px; border: 1px solid #000; }
.social-rows .social-youtube { background: #c4302b; }
.social-rows .social-discord { background: #5865f2; }
.social-rows .social-steam   { background: #1b2838; }
.social-rows li a { font-weight: bold; }

/* guestbook form */
/* name + message stacked, same width; send button spans both rows */
.shout-form { display: grid; grid-template-columns: 1fr auto; grid-auto-rows: 20px; }
.shout-form input { grid-column: 1; width: auto; box-sizing: border-box; }
.shout-form button { grid-column: 2; grid-row: 1 / span 2; height: auto; }
.shout-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.shout-notice { padding: 4px 6px; background: #2b2600; border-top: 1px solid #5a4b00; color: var(--yellow); font-size: 11px; font-weight: bold; }

/* header without info lines */
#header { align-items: center; }

/* 88x31 button row */
#buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px 8px; background: #111; border-top: 2px solid #000; }
#buttons img { display: block; width: 88px; height: 31px; image-rendering: pixelated; }
#buttons a:hover img { outline: 1px solid var(--yellow); }

/* logo text sits directly on the tab bar */
#header { align-items: flex-end; padding: 12px 0 0; }
#header-left { justify-content: flex-end; }
#header-name { line-height: 0.78; padding-top: 4px; }
#header-logo { margin-bottom: 0; }
#topslot { margin-bottom: 8px; }
@media (max-width: 1000px) { #header { padding: 12px 12px 0; } #topslot { order: -1; margin-bottom: 10px; } }

/* logo text lines up with the bottom of the banner */
#header-left { margin-bottom: 8px; }

/* notes */
.note-list { list-style: none; margin: 14px 0 0; padding: 0; }
.note-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dotted #333; }
.note-thumb img { display: block; width: 100px; height: 75px; object-fit: cover; border: 1px solid #555; }
.note-text { flex: 1; min-width: 0; }
.note-date { font-weight: bold; font-size: 11px; color: var(--muted); }
.note-title { font-weight: bold; font-size: 15px; color: #fff; }
.note-text p { margin: 4px 0 0; }
.pager { display: flex; justify-content: space-between; margin-top: 14px; font-size: 11px; font-weight: bold; }
.pager a { color: var(--yellow); }

/* ================= SUB-PAGE REFINEMENT ================= */
.intro { margin: -4px 0 16px; }
.page-intro { margin: 0 0 12px; }
.page-intro p { margin: 0 0 6px; }
.page-intro p:last-child { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; gap: 6px; }
.panel-head .letter { width: 13px; height: 13px; font-size: 8px; }
.no-img {
  text-decoration: none !important; color: #666 !important;
  background: repeating-linear-gradient(45deg, #0f0f0f 0 6px, #161616 6px 12px) !important;
  font: bold 9px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px;
}
.project-table td { padding: 10px 10px 10px 0; }
.project-table p { color: var(--text); }
.project-table .meta { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.project-table tr:hover .title { color: var(--yellow); }
.project-info td .status { white-space: nowrap; }
.project-info { min-width: 190px; }
.project-info td, .project-info th { white-space: nowrap; }
.update-head .update-title { font-size: 13px; }
.gallery a { display: block; }
.gallery a:hover img, .cover-link:hover .cover { outline: 1px solid var(--yellow); }
.embed iframe { height: 620px; background: #000; }

/* quotes page */
.quote-top { margin: 0 0 12px; text-align: center; }
.quote-btn { display: inline-block; padding: 6px 16px; background: var(--yellow); color: #000; border: 1px solid #000; box-shadow: inset 1px 1px 0 #ffe680, inset -1px -1px 0 #8a6d00, 0 0 0 1px #5a4b00; font: bold 12px Verdana, Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; cursor: pointer; }
.quote-btn:hover { background: #ffd633; color: #000; text-decoration: none; }
.quote-btn:active { box-shadow: inset -1px -1px 0 #ffe680, inset 1px 1px 0 #8a6d00, 0 0 0 1px #5a4b00; transform: translateY(1px); }
.quote-btn.loading { opacity: 0.6; cursor: wait; }
.quote-frame { display: flex; align-items: center; justify-content: center; height: 560px; padding: 8px; background: #050505; border: 1px solid #333; box-shadow: inset 0 0 0 1px #000; overflow: hidden; }
.quote-frame a.lb { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: zoom-in; }
.quote-frame img, .quote-frame video { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.quote-frame a.lb:hover img { outline: 1px solid var(--yellow); }
.quote-down { color: var(--muted); font-style: italic; }
.quote-hint { margin-top: 6px; font: bold 9px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); text-align: center; }

/* image viewer */
#lb { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(0,0,0,0.88); cursor: zoom-out; }
#lb[hidden] { display: none; }
#lb img { max-width: 92vw; max-height: 86vh; border: 1px solid #555; box-shadow: 0 0 0 4px #000; }
.lb-hint { font: bold 10px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: #888; }
/* tall images (long chat screenshots): full width, scroll to read */
#lb.tall { justify-content: flex-start; overflow-y: auto; padding: 16px 0; }
#lb.tall img { max-height: none; width: auto; max-width: min(92vw, 720px); flex: none; }
#lb.tall .lb-hint { order: -1; }
.thumb a, .thumb a:hover { text-decoration: none; }

/* ================= PHONE PASS ================= */
@media (max-width: 1000px) {
  #header-name { font-size: 30px; line-height: 0.9; }
  #header-left { margin-bottom: 8px; }
  #topslot:has(.slot-empty) { display: none; }
  #nav-tabs a { font-size: 11px; padding: 3px 12px; }
  /* 16px inputs stop iPhones from zooming in when you tap the guestbook boxes */
  .shout-form { grid-auto-rows: 32px; }
  .shout-form input, .shout-form button { font-size: 16px; }
  .shout-form input { height: 32px; }
  .shout-form button { height: auto; }
  .quote-frame { height: 60vh; }
  .project-table .thumb { width: 96px; }
  .project-table .thumb img, .project-table .no-img { width: 86px; height: 65px; }
  .project-info { width: 100%; }
  .update-head { flex-wrap: wrap; }
  .gallery img { width: calc(50vw - 40px); height: auto; aspect-ratio: 4 / 3; }
  #buttons { gap: 4px; }
  #footer { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 1000px) { #header { align-items: flex-start; } }

/* ================= LOGO ================= */
#header-logo { display: block; width: 490px; height: auto; max-height: none; }
#header-left { margin-bottom: 4px; }
@media (max-width: 1000px) {
  #header-logo { width: 100%; max-width: 490px; }
}

/* ================= ADVERTISE ================= */
a.slot-empty { text-decoration: none; }
a.slot-empty:hover { color: var(--yellow); border-color: var(--yellow); }
#footer a { color: #111; text-decoration: underline; }
#footer a:hover { color: #000; background: var(--yellow); }
.sub-spec { border-collapse: collapse; margin: 10px 0 16px; font-size: 12px; }
.sub-spec th { text-align: left; padding: 4px 10px 4px 0; color: var(--muted); font: bold 10px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.sub-spec td { padding: 4px 0; color: var(--text); }
.sub-form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.sub-form label { display: flex; flex-direction: column; gap: 4px; font: bold 11px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--text-hi); }
.sub-form label small { font: 10px Verdana, sans-serif; text-transform: none; letter-spacing: 0; color: var(--muted); }
.sub-form input[type=text], .sub-form input[type=url] { height: 22px; background: #000; border: 1px solid #555; color: #ddd; font: 12px var(--body-font); padding: 0 6px; }
.sub-form input[type=file] { color: #ccc; font: 12px var(--body-font); }
.sub-form button { align-self: flex-start; padding: 5px 16px; background: var(--yellow); color: #000; border: 1px solid #000; font: bold 12px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
.sub-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 0 0 12px; padding: 6px 10px; background: #2b2600; border-left: 4px solid var(--yellow); color: var(--yellow); font-weight: bold; font-size: 12px; }
.form-note.note-ok { background: #0f2a0f; border-color: #6c6; color: #9e9; }
@media (max-width: 1000px) {
  .sub-form input[type=text], .sub-form input[type=url] { font-size: 16px; height: 32px; }
}
.sub-form input[type=file]::file-selector-button { margin-right: 10px; padding: 3px 10px; background: #2a2a2a; color: #ddd; border: 1px solid #555; font: bold 11px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
.sub-form input[type=file]::file-selector-button:hover { background: var(--yellow); color: #000; }

/* skeleton easter egg (layout.html): full-screen overlay, clicks pass through */
.skel-fx{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:9999}

/* archive banner: small "your ad here" link under the slot */
#topslot { position: relative; }
#topslot .slot-sell { position: absolute; right: 0; bottom: 100%; width: auto; height: auto; margin-bottom: 3px; font-size: 9px; line-height: 1; letter-spacing: .5px; text-transform: uppercase; color: var(--muted, #888); text-decoration: none; }
#topslot .slot-sell:hover { color: #fc0; text-decoration: underline; }

/* iddqd easter egg (layout.html): full-screen image, lightning flash, fades out */
.god-fx { position: fixed; inset: 0; z-index: 10000; background: #000; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.god-fx img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: fill; animation: god-img 1.6s ease-out both; }
.god-fx .god-flash { position: absolute; inset: 0; background: #fff; pointer-events: none; animation: god-strike 1.3s linear both; }
.god-fx.out { animation: god-out .4s ease-in both; }
.god-fx.calm img { animation: god-img-calm .6s ease-out both; }
.god-fx.calm .god-flash { animation: god-flash-calm .6s ease-out both; }
@keyframes god-out { from { opacity: 1; } to { opacity: 0; } }
/* white strike, a quick dark gap, a second weaker strike, a flicker, then settle */
@keyframes god-strike {
  0% { opacity: 1; } 10% { opacity: 1; } 16% { opacity: .15; } 22% { opacity: .9; }
  30% { opacity: .05; } 36% { opacity: .55; } 44% { opacity: 0; } 50% { opacity: .25; } 60%, 100% { opacity: 0; }
}
@keyframes god-img {
  0% { filter: brightness(4) contrast(.6); } 30% { filter: brightness(2.2) contrast(.8); }
  55% { filter: brightness(1.4); } 100% { filter: none; }
}
/* reduced motion: one soft fade from white, no strobing */
@keyframes god-flash-calm { from { opacity: 1; } to { opacity: 0; } }
@keyframes god-img-calm { from { filter: brightness(2); } to { filter: none; } }

/* Minecraft page (/minecraft) */
.mc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0 0 18px; }
.mc-addr { color: var(--yellow); font-size: 12px; }
.mc-dl { flex: 1; min-width: 220px; }
.mc-btn { display: inline-block; margin-bottom: 4px; padding: 7px 18px; background: var(--yellow); color: #000 !important; border: 1px solid #000; font: bold 12px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; }
.mc-btn:hover { background: #ffd83a; }
.mc-steps { margin: 0 0 8px; padding-left: 22px; }
.mc-steps li { margin-bottom: 4px; }
.mc-join ol, .mc-join ul { margin: 0 0 8px; padding-left: 22px; }
.mc-join li { margin-bottom: 4px; }
.mc-join code { color: var(--text-hi); }
.mc-steps code, .mc-top code { color: var(--text-hi); }
.mc-notes { white-space: pre-line; }
.mc-manual { margin-top: 6px; }
.mc-older { margin: 0; padding-left: 18px; }
.mc-older li { margin-bottom: 6px; }
@media (max-width: 700px) {
  .mc-top { flex-direction: column; align-items: stretch; }
  .mc-btn { display: block; text-align: center; }
}

/* ================= LINK TO THIS SITE ================= */
.button88 { display: inline-block; width: 88px; height: 31px; image-rendering: pixelated; }
.box-link .box-center a:hover .button88 { outline: 1px solid var(--yellow); }
.link-code-wrap { padding: 0 6px 8px; }
.link-code {
  display: block; padding: 4px 5px; background: #000; border: 1px solid #555;
  font: 10px/1.35 "Courier New", monospace; color: var(--text); word-break: break-all;
  user-select: all; -webkit-user-select: all; cursor: text;
}
.link-copy {
  display: block; width: 100%; margin-top: 4px; height: 18px; padding: 0;
  background: var(--tab-bg); border: 1px solid #666; color: #ccc;
  font: bold 10px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
}
.link-copy:hover { background: var(--yellow); border-color: #000; color: #000; }
@media (max-width: 1000px) { .link-copy { height: 28px; font-size: 12px; } }

.link-code { display: none; }
.link-copy { margin-top: 0; }

/* ================= QUOTES: COPY LINK + MISSING NOTICE ================= */
.quote-top .quote-btn + .quote-btn { margin-left: 8px; }
.quote-btn-alt { background: var(--tab-bg); color: #ddd; box-shadow: inset 1px 1px 0 #5a5a5a, inset -1px -1px 0 #111, 0 0 0 1px #000; }
.quote-btn-alt:hover { background: #3a3a3a; color: #fff; }
.quote-btn[hidden] { display: none; }
.quote-gone { margin: 0 0 10px; padding: 5px 10px; background: #2b2600; border-left: 4px solid var(--yellow); color: var(--yellow); font-weight: bold; font-size: 12px; text-align: center; }

/* ================= NOW PLAYING ================= */
.np-rows li { align-items: flex-start; gap: 7px; padding: 5px 6px; }
.np-art { flex: 0 0 auto; width: 34px; height: 34px; object-fit: cover; border: 1px solid #000; outline: 1px solid #555; background: #151515; }
.np-noart { display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--muted); }
.np-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.np-main b { color: var(--text-hi); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-main a { flex: none; text-decoration: none; overflow: hidden; }
.np-main a:hover b { color: var(--yellow); text-decoration: underline; }
.np-kind { font: bold 8px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--yellow); }
.np-last .np-kind { color: var(--muted); }
.np-sub { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1000px) { .box-nowplaying { order: 4; } }
#np-wrap { display: contents; }   /* np-v4: wrapper for live updates; keeps phone box order */
.np-g { font: normal 12px/1 "Segoe UI Symbol", sans-serif; color: var(--muted); vertical-align: -1px; }   /* np-v7: gamerscore badge (U+1F156) */

/* ================= 404: monkey at the typewriter ================= */
#content h1.nf-head { margin: 4px 0 14px; padding: 0; text-align: center; line-height: 0; }
#content h1.nf-head::before { display: none; }
.nf-head img { display: inline-block; width: 520px; max-width: 100%; height: auto; }
.nf-fig { display: table; margin: 0 auto 12px; padding: 6px 6px 4px; background: #151515; border: 1px solid #000; outline: 1px solid #555; }
.nf-vid { display: block; width: 320px; max-width: 100%; height: auto; background: #000; }
.nf-fig figcaption { margin-top: 4px; font-size: 10px; font-style: italic; color: var(--muted); text-align: center; }
.nf-text { text-align: center; max-width: 480px; margin-left: auto; margin-right: auto; }
.nf-path { font-size: 11px; word-break: break-all; }

/* changelog: home shows the latest 3, one line each (cut off with ...); full list at /changelog */
.changelog-short li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-head .head-link { color: inherit; text-decoration: inherit; }
.block-head .head-link:hover { color: var(--yellow); }
.changelog-more { display: inline-block; padding: 2px 0 0; color: var(--yellow); font-weight: bold; letter-spacing: 2px; text-decoration: none; }
.changelog-more:hover { text-decoration: underline; }
.changelog-back { margin-top: 10px; }

/* np-marquee: now playing text too long for the box scrolls back and forth (pauses at each end) */
.np-mq-host { display: block; overflow: hidden; white-space: nowrap; }
.np-mq { display: inline-block; white-space: nowrap; }
.np-mq-on { text-overflow: clip !important; }
.np-mq-on > .np-mq { animation: np-marquee var(--np-dur, 6s) ease-in-out infinite alternate; }
@keyframes np-marquee { 0%, 18% { transform: translateX(0); } 82%, 100% { transform: translateX(var(--np-shift, 0)); } }

/* ================= LINKS PAGE (/links) ================= */
.btn-wall { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
.btn-wall a, .btn-wall span { display: block; line-height: 0; }
.btn-wall img { display: block; width: 88px; height: 31px; image-rendering: pixelated; }
.btn-wall a:hover img { outline: 1px solid var(--yellow); }
.link-back { display: flex; gap: 14px; align-items: flex-start; padding: 10px; }
.link-back > a { flex: none; line-height: 0; }
.link-back-text { flex: 1; min-width: 0; }
.link-back-text p { margin: 0 0 6px; }
.link-back-code {
  display: block; padding: 6px 8px; background: #000; border: 1px solid #555;
  font: 11px/1.4 "Courier New", monospace; color: var(--text); word-break: break-all;
  user-select: all; -webkit-user-select: all;
}
.link-back-copy {
  margin-top: 6px; height: 24px; padding: 0 12px; background: var(--tab-bg); border: 1px solid #666; color: #ccc;
  font: bold 11px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
}
.link-back-copy:hover { background: var(--yellow); border-color: #000; color: #000; }
@media (max-width: 600px) { .link-back { flex-direction: column; } .link-back-copy { height: 32px; } }

/* ================= HOME 88x31 BUTTONS (under the changelog) ================= */
.home-buttons { display: grid; grid-template-columns: repeat(auto-fill, 88px); justify-content: center; gap: 6px; margin-top: 18px; }
.home-buttons a, .home-buttons img { display: block; line-height: 0; }
.home-buttons img { width: 88px; height: 31px; image-rendering: pixelated; }
.home-buttons a:hover img { outline: 1px solid var(--yellow); }

/* ================= COMMENTS (sk-comments-v1) ================= */
.cmt { margin-top: 8px; border-top: 1px dotted #333; padding-top: 6px; }
.cmt-box > summary, .cmt-reply > summary { cursor: pointer; list-style: none; display: inline-block; font: bold 10px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--yellow); }
.cmt-box > summary::-webkit-details-marker, .cmt-reply > summary::-webkit-details-marker { display: none; }
.cmt-box > summary::before { content: "\25B8  "; }
.cmt-box[open] > summary::before { content: "\25BE  "; }
.cmt-box > summary:hover, .cmt-reply > summary:hover { text-decoration: underline; }
.cmt-reply > summary { color: var(--muted); margin-top: 3px; }
.cmt-notice { margin: 6px 0; padding: 4px 6px; background: #2b2600; border: 1px solid #5a4b00; color: var(--yellow); font-size: 11px; font-weight: bold; }
.cmt-notice.bad { background: #2b0d0d; border-color: #6a1d1d; color: #ff8080; }
.cmt-list, .cmt-replies { list-style: none; margin: 6px 0 0; padding: 0; }
.cmt-item { padding: 6px 8px; margin-bottom: 6px; background: #111; border: 1px solid #2a2a2a; }
.cmt-item.is-owner { border-color: #5a4b00; }
.cmt-replies { margin: 6px 0 0 14px; border-left: 2px solid #333; padding-left: 8px; }
.cmt-replies .cmt-item { background: #0c0c0c; }
.cmt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 11px; }
.cmt-name { color: #fff; font-size: 12px; }
.cmt-badge { padding: 0 4px; background: var(--yellow); color: #000; font: bold 9px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.cmt-when { color: var(--muted); text-decoration: none; }
.cmt-when:hover { text-decoration: underline; }
.cmt-msg { margin-top: 3px; white-space: pre-line; word-break: break-word; overflow-wrap: anywhere; }
.cmt-del { display: inline; margin-left: auto; }
.cmt-del button { background: none; border: 0; padding: 0; color: #ff8080; font: bold 9px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
.cmt-form { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 8px; max-width: 520px; }
.cmt-form input[type=text], .cmt-form textarea { box-sizing: border-box; width: 100%; background: #000; border: 1px solid #555; color: var(--text); font: 12px Verdana, Arial, sans-serif; padding: 4px 5px; }
.cmt-form input[type=text] { max-width: 220px; height: 22px; }
.cmt-form textarea { resize: vertical; min-height: 54px; }
.cmt-form input:focus, .cmt-form textarea:focus { outline: none; border-color: var(--yellow); }
.cmt-form button { justify-self: start; height: 22px; padding: 0 10px; background: var(--tab-bg); border: 1px solid #666; color: #ccc; font: bold 10px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
.cmt-form button:hover { background: var(--yellow); border-color: #000; color: #000; }
.cmt-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cmt-ownernote { margin-top: 4px; font-size: 10px; color: var(--muted); }
@media (max-width: 1000px) {
  .cmt-form input[type=text], .cmt-form textarea { font-size: 16px; }
  .cmt-form input[type=text] { height: 32px; max-width: none; }
  .cmt-form button { height: 32px; }
  .cmt-replies { margin-left: 6px; }
}
