/* ===== BASE ===== */
html { scroll-behavior: auto; }
body {
  margin: 0;
  padding: 10px 0 50px;
  background: #0a0010 url("assets/background_tile.gif") repeat;
  color: #e8e8e8;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
}
a:link { color: #00ffff; }
a:visited { color: #ff66ff; }
a:hover { color: #ffff00; background: #660000; }
img { max-width: 100%; }
.tiny { font-size: 11px; color: #aaa; line-height: 1.25; }
.tiny-l { font-size: 12px; text-align: left; line-height: 1.3; }
.tiny-pink { font-size: 12px; color: #ffb6d9; }
.red { color: #ff2020; font-weight: bold; }
.center { text-align: center; }
.mono { font-family: "Courier New", monospace; font-weight: bold; }
.fs-big { font-size: 24px; font-family: Impact, sans-serif; letter-spacing: 1px; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
.rot-l { transform: rotate(-1.6deg); }
.rot-r { transform: rotate(1.8deg); }

/* ===== LAYOUT TABLE ===== */
table.layout {
  width: 1180px;
  max-width: 99%;
  table-layout: fixed;
  background: rgba(0, 0, 20, 0.9);
  border: 6px ridge #8a2be2;
  box-shadow: 0 0 0 3px #000, 0 0 25px #8a2be2;
}
.top-cell, .foot-cell { padding: 8px; }
.col { padding: 8px; }
.col-left { width: 150px; background: rgba(40, 0, 60, 0.7); border-right: 3px groove #666; text-align: center; font-size: 13px; }
.col-right { width: 170px; background: rgba(0, 40, 40, 0.65); border-left: 3px groove #666; text-align: center; }
.col-center { overflow: hidden; }

/* ===== HEADER ===== */
.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.logo-real { border: 4px outset #888; max-width: 100%; height: auto; transform: rotate(-2deg); }
.header-text { flex: 1 1 300px; }
.logo-word { max-width: 100%; height: auto; margin-bottom: 8px; }
.inl-gif { vertical-align: middle; max-width: 48%; height: auto; margin: 2px; }
h1.rainbow {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  margin: 6px 0;
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #f0f, #f00);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: rainbow 3s linear infinite;
}
@keyframes rainbow { to { background-position: 200% 0; } }
.subtitle { font-style: italic; color: #ffd700; font-size: 14px; }

.ticker {
  display: block; margin: 10px 0 0; padding: 4px 0;
  background: #000; border: 2px inset #666;
  color: #00ff00; font-family: "Courier New", monospace; font-weight: bold;
}
.ticker2 {
  display: block; margin: 4px 0 0; padding: 2px 0;
  background: #300; border: 2px outset #f00;
  color: #ff0; font-family: "Comic Sans MS", cursive; font-weight: bold; font-size: 20px;
}
.ticker2 img { vertical-align: middle; height: 28px; width: auto; }

/* ===== LEFT COLUMN ===== */
.nav-title { font-family: Impact, sans-serif; color: #ff0; font-size: 16px; margin-bottom: 4px; }
a.nb {
  display: block; margin: 3px 0; padding: 4px 4px;
  background: #c0c0c0; border: 3px outset #fff;
  color: #000 !important; text-decoration: none;
  font-family: Arial, sans-serif; font-weight: bold; font-size: 13px;
}
a.nb:hover { background: #000080; color: #fff !important; }
a.nb:active { border-style: inset; }
.side-div { width: 100%; height: auto; margin: 8px 0; display: block; }
.side-box { margin: 10px 0; }
.side-box img { max-width: 100%; height: auto; }
.side-video { width: 100%; border: 3px inset #888; background: #000; margin-top: 8px; }
.side-gif { display: block; margin: 10px auto; max-width: 100%; height: auto; }
.online { margin: 10px 0; padding: 4px; background: #000; color: #0f0; border: 2px inset #666; font-family: "Courier New", monospace; font-size: 13px; }

/* ===== RIGHT COLUMN ===== */
.horo { background: #1a1a00; border: 3px ridge #ff0; padding: 6px; }
.poll { background: #001a1a; border: 3px groove #0ff; padding: 6px; text-align: left; font-size: 13px; }
.poll b { color: #0ff; }
.poll button { margin-top: 6px; font-family: Arial, sans-serif; font-size: 12px; cursor: pointer; }
.side-wiki { width: 100%; margin: 10px 0; box-sizing: border-box; }
.wide-wiki { width: 170px; margin: 12px auto; transform: rotate(1.5deg); }

/* ===== CENTER BLOCKS ===== */
.rotator-wrap { text-align: center; margin: 4px 0 10px; }
.rotator { display: inline-block; border: 5px outset #aaa; background: #000; line-height: 0; }
.rotator img { width: 100%; max-width: 560px; height: 280px; object-fit: cover; }

.blk { padding: 10px 14px; margin: 14px 0; overflow: hidden; }
.blk p { margin: 8px 0; }
.blk-plain { background: rgba(0, 0, 0, 0.55); border: 2px dotted #888; }
.blk-green { background: #001a00; color: #0f0; border: 3px double #0f0; font-family: "Courier New", monospace; }
.blk-yellow { background: #ffe000; color: #000; border: 4px dashed #000; font-family: Verdana, sans-serif; font-size: 14px; }
.blk-yellow ol { margin: 6px 0 0; padding-left: 22px; line-height: 1.4; }
.blk-pink { background: #ff1493; color: #fff; border: 5px outset #ffb6e6; font-family: "Comic Sans MS", cursive; }
.blk-black { background: #000; border: 2px solid #fff; }
.blk-mono { background: #111; color: #c8c8c8; font-family: "Courier New", monospace; font-size: 13px; border-left: 8px solid #f00; }
.blk-donate { background: #200000; border: 5px ridge #ff2020; position: relative; text-align: center; }
.big-red { font-family: Impact, sans-serif; font-size: 40px; color: #ff2020; text-shadow: 3px 3px #400; letter-spacing: 2px; }
.pink-title { font-family: Impact, sans-serif; font-size: 26px; text-align: center; color: #ffff00; text-shadow: 3px 3px #800046; margin-bottom: 8px; }
.q { color: #ff4040; font-weight: bold; }
.a { color: #40ff40; font-weight: bold; }
.donate-title { font-family: Impact, sans-serif; font-size: 44px; color: #ff2020; text-shadow: 3px 3px #000; letter-spacing: 3px; }
.arrow-l, .arrow-r { position: absolute; top: 6px; max-height: 80px; width: auto; }
.arrow-l { left: 8px; }
.arrow-r { right: 8px; }

.div { display: block; width: 100%; height: auto; margin: 8px 0; }
.div.narrow { width: 85%; margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.big-btn {
  font-family: "Comic Sans MS", cursive;
  font-size: 20px; font-weight: bold; padding: 10px 18px;
  color: #000; background: #ffd700;
  border: 5px outset #fff066; cursor: pointer;
}
.big-btn:active { border-style: inset; }
.big-btn:focus-visible, #cookie-accept:focus-visible, #music-toggle:focus-visible,
.modal-close:focus-visible, a.nb:focus-visible, .popup button:focus-visible, .poll button:focus-visible { outline: 3px dashed #f0f; outline-offset: 2px; }

/* ===== WIKI THUMBS ===== */
.wiki-thumb {
  background: #f8f9fa; border: 1px solid #c8ccd1; padding: 4px;
  width: 150px; font-family: sans-serif; box-sizing: content-box;
}
.wiki-thumb img { display: block; width: 100%; height: auto; border: 1px solid #c8ccd1; background: #fff; }
.wiki-cap { color: #202122; font-size: 13px; padding: 4px 2px 2px; text-align: left; }
.fl-r { float: right; margin: 0 0 8px 14px; transform: rotate(2.5deg); }
.fl-l { float: left; margin: 0 14px 8px 0; width: 190px; transform: rotate(-3deg); }

/* ===== GUEST TABLE ===== */

table.guest { width: 96%; border-collapse: collapse; background: #2a2a2a; color: #ddd; border: 3px inset #888; font-family: "Courier New", monospace; font-size: 13px; margin: 12px auto; }
table.guest th { background: #800; color: #fff; padding: 6px; }
table.guest td { border: 1px dashed #666; }
table.guest tr:nth-child(odd) td { background: #1d1d1d; }
table.guest i { color: #9cf; }

/* ===== VIDEOS ===== */
.frame-video { width: 320px; max-width: 100%; border: 5px inset #888; background: #000; }

/* ===== DONATE ===== */
table.donate-table { border: 3px dashed #ff0; margin: 10px auto; background: rgba(0,0,0,0.4); }
.sus { border: 3px solid #ff0; max-width: 100%; height: auto; transform: rotate(-2deg); }
.donate-img { width: 260px; max-width: 100%; height: auto; border: 3px dashed #0f0; }
.donate-img:hover { transform: rotate(-2deg) scale(1.03); }

/* ===== STOLEN BELL BLOCK (scoped, original site look) ===== */
.stolen {
  background: #fff; color: #383838;
  font-family: "Cera Pro", "Segoe UI", Arial, sans-serif;
  font-size: 16px; line-height: 150%;
  margin: 8px 0; border-radius: 0; overflow: hidden;
}
.stolen * { box-sizing: border-box; }
.stolen a:link, .stolen a:visited { color: #2b2b8f; background: none; text-decoration: underline; }
.stolen a:hover { color: #92701e; background: none; }
.stolen .inner { position: relative; padding: 0 20px; }
.stolen .zast {
  background: #2b2b8f url("https://xn--80abedl6ax0aj.xn--p1ai/wp-content/themes/sp-theme-master/imgs/zastpage.jpg") no-repeat center center;
  background-size: cover;
  padding: 30px 0 25px;
  border-radius: 0 0 40px 40px;
  position: relative; z-index: 1;
}
.stolen .crumbs { color: #fff; font-size: 13px; opacity: 0.85; margin: 0 0 20px; line-height: 18px; }
.stolen .crumbs a:link, .stolen .crumbs a:visited { color: #fff; text-decoration: none; }
.stolen .zag { text-align: center; color: #fff; font-size: 30px; line-height: 40px; margin: 0; font-weight: 600; font-family: inherit; }
.stolen .object { padding: 14px 0; overflow: hidden; }
.stolen .nabor { overflow: hidden; padding-top: 16px; }
.stolen .mainimg { float: left; width: 45%; padding-right: 24px; }
.stolen .mainimg img { width: 100%; height: auto; display: block; border: 0; }
.stolen .rightblock { float: right; width: 55%; padding-top: 6px; }
.stolen .cen { font-size: 16px; }
.stolen .cena { font-size: 28px; font-weight: 600; color: #383838; display: inline-block; }
.stolen .button { margin: 16px 0; }
.stolen .button a:link, .stolen .button a:visited {
  font-size: 17px; background: #ffdf91; color: #0c0c0c; padding: 10px 36px; line-height: 28px;
  display: inline-block; border-radius: 30px; letter-spacing: 0.4px; font-weight: 500; text-decoration: none;
  transition: background 0.3s;
}
.stolen .button a:hover { background: #92701e; color: #fff; }
.stolen .or { display: inline-block; font-size: 15px; }
.stolen .harki { margin-top: 12px; }
.stolen .harki audio { width: 100%; max-width: 280px; }
.stolen .harki ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
.stolen .entry-content { margin-top: 20px; clear: both; overflow: hidden; font-size: 15px; line-height: 160%; }
.stolen p { margin: 0 0 12px; }

/* ===== FLOATING JUNK ===== */
.float-gif { position: fixed; z-index: 800; pointer-events: none; width: auto; }
.fg-1 { left: 6px; bottom: 6px; }
.fg-2 { right: 6px; top: 6px; }

/* ===== KABOODLE ===== */
.kaboodle-wrap { margin: 10px 0; }
.kaboodle-module { background: #f2f2f2; color: #222; padding: 6px; border: 2px inset #888; }
.kaboodle-module a:link, .kaboodle-module a:visited { color: #0000cc; }
.kaboodle-item { width: 190px !important; }

/* ===== FOOTER ===== */
.footer { font-size: 13px; }
.counter { display: inline-block; background: #000; border: 3px inset #666; padding: 6px 10px; color: #0f0; font-family: "Courier New", monospace; font-weight: bold; }
.digit { display: inline-block; min-width: 14px; margin: 0 1px; padding: 2px 3px; background: #111; border: 1px solid #0f0; color: #0f0; }

/* ===== MUSIC TOGGLE ===== */
#music-toggle {
  position: fixed; right: 6px; bottom: 6px; z-index: 900;
  font-family: "Courier New", monospace; font-size: 11px; font-weight: bold;
  background: #000; color: #0f0; border: 2px outset #0a0; padding: 3px 6px; cursor: pointer;
}
#music-toggle:active { border-style: inset; }

/* ===== FAKE WINDOWS POPUP ===== */
.popup {
  position: fixed; z-index: 3000; left: 50%; top: 30%;
  width: 320px; max-width: 94vw;
  background: #c0c0c0; border: 3px outset #fff; box-shadow: 4px 4px 0 #000;
  font-family: Tahoma, Arial, sans-serif; font-size: 13px; color: #000;
}
.popup[hidden] { display: none; }
.popup-title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 3px 4px; cursor: move; touch-action: none; user-select: none;
  background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: bold;
}
.popup-title button { font: bold 11px Arial, sans-serif; width: 18px; height: 16px; padding: 0; line-height: 1; background: #c0c0c0; border: 2px outset #fff; cursor: pointer; }
.popup-body { display: flex; gap: 10px; align-items: center; padding: 14px 12px; }
.popup-body img { max-width: 90px; height: auto; flex: 0 0 auto; }
.popup-btns { display: flex; justify-content: center; gap: 10px; padding: 0 0 12px; }
.popup-btns button { min-width: 74px; padding: 3px 8px; font: 13px Tahoma, Arial, sans-serif; background: #c0c0c0; border: 2px outset #fff; cursor: pointer; }
.popup-btns button:active { border-style: inset; }

/* ===== SPARKLES ===== */
.sparkle {
  position: fixed; z-index: 4000; pointer-events: none;
  font-size: 16px; line-height: 1; margin: -8px 0 0 -8px;
  animation: spark 0.8s ease-out forwards;
}
@keyframes spark { to { transform: translateY(24px) scale(0.2) rotate(120deg); opacity: 0; } }

/* ===== PROPHET MODAL ===== */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.85); }
.modal[hidden] { display: none; }
.modal-box { position: relative; background: #000; border: 6px ridge #ffd700; padding: 10px; max-width: 94vw; }
.modal-box video { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; background: #111; }
.modal-caption { margin-top: 10px; text-align: center; font-family: "Comic Sans MS", cursive; font-size: 22px; color: #ffff00; text-shadow: 2px 2px #000; }
.modal-close { position: absolute; top: -4px; right: -4px; z-index: 1; background: #c0c0c0; color: #000; font-family: Arial, sans-serif; font-weight: bold; border: 3px outset #fff; cursor: pointer; padding: 2px 6px; }

/* ===== COOKIE WALL (intentionally awful) ===== */
#cookie-wall {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; flex-direction: column; justify-content: space-between;
  width: 100vw; height: 100vh;
  background: repeating-linear-gradient(45deg, #ff00ff 0 30px, #00ffff 30px 60px);
  overflow: hidden;
}
#cookie-wall[hidden] { display: none; }
.cookie-text {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
  padding: 0 1vw;
  font-family: Impact, "Arial Black", sans-serif; font-size: 11vw; line-height: 0.95;
  text-align: justify; text-align-last: justify; text-transform: uppercase; word-break: break-all;
  color: #ffff00; text-shadow: 4px 4px #f00, -4px -4px #00f;
  transform: scaleX(1.15);
}
.cookie-small { background: #000; color: #0f0; font-family: "Courier New", monospace; font-size: 9px; padding: 2px 4px; }
#cookie-accept {
  width: 100%; height: 32vh;
  font-family: "Comic Sans MS", cursive; font-size: 7vw; font-weight: bold;
  color: #fff; background: #f00; border: 12px outset #ff8080;
  cursor: pointer; text-transform: uppercase; transform: skewX(-4deg);
}
#cookie-accept:hover { background: #0a0; }
#cookie-accept:active { border-style: inset; }

/* ===== SMALL SCREENS ===== */
@media (max-width: 760px) {
  table.layout, table.layout tbody, table.layout tr, table.layout td { display: block; width: auto; }
  .col-left, .col-right { width: auto; border: 0; }
  h1.rainbow { font-size: 20px; }
  .rotator img { height: 200px; }
  .stolen .mainimg, .stolen .rightblock { float: none; width: auto; padding: 0; }
  .fl-l, .fl-r { float: none; margin: 8px auto; }
  .big-red { font-size: 30px; }
  .donate-title { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .blink, h1.rainbow { animation: none; }
}

/* ===== HORROR ABOUT BLOCK ===== */
.blk-horror {
  background: #0d0508;
  border: 3px double #d00;
  color: #d8c8c8;
  font-family: "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
}
.blk-horror p { margin: 10px 0; }
.horror-title {
  display: block;
  color: #ff4444;
  font-family: "Comic Sans MS", cursive;
  font-size: 22px;
  letter-spacing: 4px;
  margin-bottom: 12px;
  text-shadow: 2px 2px 0 #400;
}
.donate-note {
  text-align: center;
  color: #ff6666;
  font-family: "Comic Sans MS", cursive;
  font-size: 18px;
  margin-top: 10px;
  letter-spacing: 1px;
}
#bone-timer { font-family: "Courier New", monospace; font-weight: bold; color: #ff0; }
.timer-neg { color: #f00; animation: blink 1s steps(1) infinite; }

/* ===== WIDE CELL (from RULES down the site goes wide) ===== */
.wide-cell {
  padding: 6px 10px 10px;
  border-top: 4px ridge #660066;
  background: rgba(0, 0, 20, 0.35);
}
