/* ============================================
   222WORLD — aero edition
   frutiger aero glass frame · glossy pill nav
   blue glass primary · red secondary
   ============================================ */

@font-face {
  font-family: 'Minecraft';
  src: url('fonts/Minecraft.ttf') format('truetype');
  font-display: swap;
}

:root {
  --sky-hi: #bdeaff;
  --sky-lo: #2f8fd6;
  --deep: #0b3a66;
  --glass: rgba(255,255,255,.82);
  --edge: rgba(255,255,255,.65);
  --blue: #0a63c9;
  --blue-lite: #56b6f0;
  --red: #e01818;
  --ink: #10314f;
  --meta: #4d7396;
}

* { box-sizing: border-box; }

/* ---------- sky + bubbles background, no images ---------- */
body {
  margin: 0;
  min-height: 100vh;
  font-family: times new roman;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle 90px at 12% 78%, rgba(255,255,255,.28) 0 60%, rgba(255,255,255,0) 62%),
    radial-gradient(circle 46px at 22% 30%, rgba(255,255,255,.30) 0 60%, rgba(255,255,255,0) 62%),
    radial-gradient(circle 70px at 85% 22%, rgba(255,255,255,.25) 0 60%, rgba(255,255,255,0) 62%),
    radial-gradient(circle 34px at 74% 66%, rgba(255,255,255,.30) 0 60%, rgba(255,255,255,0) 62%),
    radial-gradient(circle 120px at 95% 90%, rgba(255,255,255,.18) 0 60%, rgba(255,255,255,0) 62%),
    radial-gradient(ellipse at 50% -20%, #eafaff 0%, var(--sky-hi) 35%, var(--sky-lo) 80%, #16639f 100%);
  background-attachment: fixed;
  padding: 26px 14px 60px;
}

.px { font-family: 'Minecraft'; }

a { color: var(--blue); }
a:hover { color: var(--red); }
a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- the glass stage ---------- */
.stage {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 14px;
  background: rgba(255,255,255,.30);
  border: 1px solid var(--edge);
  box-shadow: 0 10px 40px rgba(6,40,70,.45), inset 0 1px 0 rgba(255,255,255,.8);
  overflow: hidden;
  backdrop-filter: blur(3px);
}

/* dark glass masthead, like the FAA header */
.masthead {
  position: relative;
  padding: 18px 26px 16px;
  background: linear-gradient(#5a5f66 0%, #23262b 46%, #0c0e11 52%, #1a1d22 100%);
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.masthead::after { /* gloss sweep */
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 46%;
  background: linear-gradient(rgba(255,255,255,.30), rgba(255,255,255,.04));
  pointer-events: none;
}
.logo {
  font-family: 'Minecraft';
  font-size: 30px;
  letter-spacing: 2px;
  color: #9fd8ff;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(90,190,255,.8), 0 2px 2px #000;
  position: relative; z-index: 1;
}
.logo .two { color: #ff5c5c; text-shadow: 0 0 12px rgba(255,70,70,.8), 0 2px 2px #000; }
.logo:hover { color: #fff; }
.tagline {
  margin: 2px 0 0;
  font-size: 11px;
  letter-spacing: 1px;
  color: #b9cfe2;
  position: relative; z-index: 1;
}

/* ticker strip under the header */
.ticker {
  background: linear-gradient(#0d2c4d, #14406e);
  border-bottom: 1px solid rgba(255,255,255,.3);
  overflow: hidden; white-space: nowrap;
  padding: 3px 0;
}
.ticker span {
  display: inline-block;
  font-family: 'Minecraft', 'Courier New', monospace;
  font-size: 11px;
  color: #8fe0ff;
  padding-left: 100%;
  animation: tick 22s linear infinite;
}
@keyframes tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker span, .player .trackname span { animation: none; padding-left: 0; }
  .blink { animation: none; }
}

/* ---------- columns ---------- */
.cols { display: flex; gap: 18px; padding: 18px; align-items: flex-start; }
.side { width: 196px; flex-shrink: 0; }
.main { flex: 1; min-width: 0; }

/* ---------- sidebar groups + glossy pill buttons ---------- */
.group { margin: 0 0 16px; }
.group-h {
  display: block;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  background: linear-gradient(#6a6f76 0%, #26292e 50%, #101216 52%, #22252a 100%);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 20px;
  padding: 3px 10px;
  margin: 0 0 7px;
}
.pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 5px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: bold;
  color: #eaf6ff;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0,0,0,.65);
  background: linear-gradient(#79c7f2 0%, #2a86cf 48%, #0f5aa8 52%, #2a86cf 100%);
  border: 1px solid #0b3f77;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(6,40,70,.4);
  overflow: hidden;
}
.pill::after {
  content: '';
  position: absolute; left: 4px; right: 4px; top: 1px; height: 46%;
  border-radius: 14px;
  background: linear-gradient(rgba(255,255,255,.65), rgba(255,255,255,.06));
  pointer-events: none;
}
.pill:hover {
  color: #fff;
  background: linear-gradient(#93dbff 0%, #3fa0e8 48%, #1b6dc0 52%, #3fa0e8 100%);
}
.pill.here {
  background: linear-gradient(#ff8a80 0%, #d92a1e 48%, #a30d05 52%, #d92a1e 100%);
  border-color: #6d0a04;
}
.pill .ico { font-size: 12px; width: 15px; text-align: center; }

/* sidebar widget boxes reuse the pill glass */
.sbox {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 3px rgba(6,40,70,.25);
  padding: 9px 11px;
  margin: 0 0 14px;
  font-size: 11px;
}
.sbox h3 {
  font-family: 'Minecraft', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--red);
  margin: 0 0 7px;
  text-transform: lowercase;
}

/* mini player */
.player .trackname {
  font-family: 'Minecraft', 'Courier New', monospace;
  font-size: 10px;
  color: var(--deep);
  overflow: hidden; white-space: nowrap;
  border: 1px solid #9cc4e4;
  background: #fff;
  border-radius: 4px;
  padding: 2px 5px;
  margin-bottom: 6px;
}
.player .trackname span { display: inline-block; padding-left: 100%; animation: tick 12s linear infinite; }
.player .controls { display: flex; gap: 5px; align-items: center; }
.player button {
  font-family: 'Minecraft', 'Courier New', monospace;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.6);
  background: linear-gradient(#79c7f2, #0f5aa8);
  border: 1px solid #0b3f77;
  border-radius: 12px;
  padding: 2px 10px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.player button:hover { background: linear-gradient(#93dbff, #1b6dc0); }
.player .vol { flex: 1; accent-color: var(--blue); min-width: 0; }

/* counter */
.counter { text-align: center; }
.counter .digits {
  display: inline-block;
  font-family: 'Minecraft', 'Courier New', monospace;
  font-size: 15px;
  letter-spacing: 3px;
  background: #03140a;
  color: #33ff66;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #0b3f77;
  box-shadow: inset 0 0 8px rgba(51,255,102,.35);
}
.counter .label { display: block; color: var(--meta); margin-top: 4px; }

/* userbars — same forum bars, aero gloss */
.userbar {
  display: block;
  height: 19px; line-height: 19px;
  margin: 0 0 6px; padding: 0 8px;
  font-family: 'Minecraft', 'Courier New', monospace;
  font-size: 10px;
  text-align: right;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,.6);
  border: 1px solid rgba(0,0,0,.55);
  border-radius: 3px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.userbar::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg,
    rgba(255,255,255,.14) 0 8px, rgba(255,255,255,0) 8px 16px);
}
.userbar::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 9px;
  background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.08));
}
.userbar span { position: relative; z-index: 1; }
.userbar:hover { filter: brightness(1.12); }
.ub-blue  { background: linear-gradient(#4a9bff, #0a63c9 55%, #08498f); }
.ub-red   { background: linear-gradient(#ff6a5e, #e01818 55%, #8f0b04); }
.ub-black { background: linear-gradient(#555, #111 55%, #000); }
.ub-cyan  { background: linear-gradient(#7de3ff, #12a5d6 55%, #076a9e); }

/* ---------- main panels ---------- */
.panel {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 5px rgba(6,40,70,.28);
  margin: 0 0 16px;
  overflow: hidden;
}
.panel-h {
  position: relative;
  text-align: center;
  font-weight: bold;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.75);
  padding: 5px 12px;
  background: linear-gradient(#6a6f76 0%, #26292e 50%, #101216 52%, #22252a 100%);
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.panel-h::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 48%;
  background: linear-gradient(rgba(255,255,255,.30), rgba(255,255,255,.04));
  pointer-events: none;
}
.panel-h.hot { background: linear-gradient(#ff8a80 0%, #c22217 50%, #8f0b04 52%, #b81d12 100%); }
.panel-b { padding: 14px 18px 16px; }

h1 {
  font-family: 'Minecraft', 'Courier New', monospace;
  font-size: 18px;
  color: var(--blue);
  margin: 0 0 4px;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 #fff;
}
.pagemeta { font-size: 11px; color: var(--meta); margin: 0 0 14px; }
p { margin: 0 0 12px; max-width: 600px; }

.blink { animation: blink 1s steps(1) infinite; color: var(--red); }
@keyframes blink { 50% { opacity: 0; } }

/* updates log */
.updates { font-size: 12px; margin: 0; }
.updates dt {
  font-family: 'Minecraft', 'Courier New', monospace;
  font-size: 10px;
  color: var(--red);
  float: left; clear: left; width: 76px;
}
.updates dd { margin: 0 0 8px 88px; }

/* 88x31 wall */
.buttonwall { display: flex; flex-wrap: wrap; gap: 6px; }
.b88 {
  width: 88px; height: 31px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Minecraft', 'Courier New', monospace;
  font-size: 9px;
  text-decoration: none;
  color: #fff;
  border: 1px solid #032b52;
  border-radius: 3px;
  text-shadow: 1px 1px 0 rgba(0,0,0,.5);
  text-align: center; line-height: 1.1;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.b88:hover { filter: brightness(1.15); }
.b88.v1 { background: linear-gradient(#4a9bff, #08498f); }
.b88.v2 { background: linear-gradient(#ff6a5e, #8f0b04); }
.b88.v3 { background: #03140a; color: #33ff66; }
.b88.v4 { background: linear-gradient(#7de3ff, #076a9e); }

/* listing rows */
.row { border-bottom: 1px dotted #9cc4e4; padding: 10px 0; max-width: 600px; }
.row:last-of-type { border-bottom: none; }
.row .rt { font-weight: bold; }
.row .rm { font-size: 11px; color: var(--meta); }

.gbframe {
  width: 100%; max-width: 640px; height: 600px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: #fff;
}

/* footer bar */
.foot {
  text-align: center;
  font-family: 'Minecraft', 'Courier New', monospace;
  font-size: 10px;
  color: #cfe7f7;
  text-shadow: 0 1px 1px rgba(0,0,0,.6);
  background: linear-gradient(#26292e, #0c0e11);
  border-top: 1px solid rgba(255,255,255,.25);
  padding: 8px 12px;
}
.foot a { color: #8fe0ff; }

/* ---------- mobile ---------- */
@media (max-width: 660px) {
  body { padding: 10px 6px 40px; }
  .cols { flex-direction: column; }
  .side { width: 100%; }
  .group .pill { display: inline-flex; margin-right: 4px; }
}
