/* ==========================================================
   azia's website: classic virtual-pet-portal layout
   728px page, 128px yellow sidebar, verdana everywhere,
   chunky rounded lettering only for "graphic" headers
   ========================================================== */

:root {
  --yellow: #ffce00;
  --yellow-hi: #ffff63;      /* clock box */
  --news: #dddd77;           /* latest news column */
  --cream: #ffffee;          /* newsflash box */
  --link: #000099;
  --link-hover: #990000;
  --ink: #010200;
  --lavender: #c9c4ef;
  --lavender-deep: #8f86d6;
  --label-blue: #3366cc;
  --chunky: "Fredoka", "Arial Rounded MT Bold", "Comic Sans MS", sans-serif;
  --verdana: Verdana, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--verdana);
  font-size: 13px;
  line-height: 1.35;
}

a { color: var(--link); font-weight: bold; text-decoration: none; }
a:hover { color: var(--link-hover); }

p { margin: 0 0 10px; }
hr { border: 0; border-top: 1px solid #888; width: 200px; margin: 14px auto; }
.center { text-align: center; }
code { font-size: 11px; background: #f3f3f3; padding: 0 3px; }
svg { display: block; }

/* ---------- the frame: header strip + sidebar + white content ---------- */
.frame {
  position: relative;
  width: 728px;
  display: grid;
  grid-template-columns: 130px 598px;
  grid-template-rows: 44px auto;
}

.topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 15px;
  font-size: 10px;
  font-weight: bold;
  background-color: var(--yellow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='44'%3E%3Cpath d='M18 6l3.5 7.5 8 .9-6 5.4 1.7 7.9L18 23.8l-7.2 3.9 1.7-7.9-6-5.4 8-.9z' fill='%23ffd83a' stroke='%23ffeb8a' stroke-width='1.2'/%3E%3Cpath d='M48 22l2.4 5.1 5.5.6-4.1 3.7 1.1 5.4-4.9-2.8-4.9 2.8 1.1-5.4-4.1-3.7 5.5-.6z' fill='%23ffd83a' stroke='%23ffeb8a' stroke-width='1.2'/%3E%3C/svg%3E");
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  border-bottom-right-radius: 12px;
}
/* no black line under the logo: the yellow flows into the sidebar */
.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 128px;
  height: 2px;
  background: var(--yellow);
}

.logo {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 3;
  height: 44px;
}
.logo a {
  position: absolute;
  left: 4px;
  top: 2px;
  display: block;
  font-family: var(--chunky);
  font-weight: 700;
  text-transform: lowercase;
  line-height: .9;
  color: #000;
}
.logo .stars { position: absolute; left: -2px; top: -2px; width: 34px; }
.logo-1 {
  display: block;
  padding-left: 18px;
  font-size: 27px;
  color: #fff;
  -webkit-text-stroke: 5px #000;
  paint-order: stroke fill;
  letter-spacing: -.5px;
}
.logo-2 {
  display: block;
  margin: 1px 0 0 52px;
  font-size: 15px;
  color: #000;
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
}

.sidebar {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  width: 130px;
  padding: 24px 0 18px;
  position: relative;
  background-color: var(--yellow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='44'%3E%3Cpath d='M18 6l3.5 7.5 8 .9-6 5.4 1.7 7.9L18 23.8l-7.2 3.9 1.7-7.9-6-5.4 8-.9z' fill='%23ffd83a' stroke='%23ffeb8a' stroke-width='1.2'/%3E%3Cpath d='M48 22l2.4 5.1 5.5.6-4.1 3.7 1.1 5.4-4.9-2.8-4.9 2.8 1.1-5.4-4.1-3.7 5.5-.6z' fill='%23ffd83a' stroke='%23ffeb8a' stroke-width='1.2'/%3E%3C/svg%3E");
  background-position: 6px 0;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  border-bottom-right-radius: 14px;
  text-align: center;
  font-size: 10px;
}

/* the little curve where header strip meets sidebar */
.corner {
  position: absolute;
  left: 128px;
  top: 42px;
  width: 18px;
  height: 18px;
  z-index: 2;
  background: radial-gradient(circle at 100% 100%, transparent 15.5px, #000 16px, #000 17.5px, var(--yellow) 18px);
}

/* ---------- sidebar nav: icon + chunky lowercase word ---------- */
.nav { list-style: none; margin: 0; padding: 0; text-align: left; }
.nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 4px 6px 10px;
  color: #000;
  font-family: var(--chunky);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  text-transform: lowercase;
  letter-spacing: -.3px;
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
}
.nav-icon { width: 30px; height: 30px; object-fit: contain; flex: none; }
.nav a:hover { color: #cc0000; }
.nav a:hover .nav-icon { transform: rotate(-8deg) scale(1.1); }
.nav a[aria-current="page"] { color: #cc0000; }

/* clock, search, banner, language: verdana-sized like the old portals */
.clock-box {
  width: 110px;
  margin: 26px auto 2px;
  padding: 2px;
  border: 1px solid #000;
  background: var(--yellow-hi);
  font-size: 8pt;
  font-variant-numeric: tabular-nums;
}
.tiny-note { display: block; font-size: 9px; color: #333; }

.search, .lang { margin: 22px 0 0; font-size: 10px; }
.search label, .lang label { display: block; margin-bottom: 2px; }
.search-row { display: flex; justify-content: center; gap: 3px; padding: 0 6px; }
.search input {
  width: 74px;
  font: 11px var(--verdana);
  border: 1px solid #777;
  padding: 2px;
}
.lang select { font: 8pt var(--verdana); max-width: 80px; }
#search-note { min-height: 12px; margin-top: 3px; padding: 0 6px; }

.bevel {
  font: 8pt var(--verdana);
  color: #000;
  background: #efefef;
  border: 2px outset #ddd;
  padding: 1px 6px;
  cursor: pointer;
}
.bevel:active { border-style: inset; }

.side-ad {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 120px;
  height: 60px;
  margin: 18px auto 0;
  padding: 4px 6px;
  border: 1px solid #000;
  background:
    radial-gradient(circle, #a8b9f5 5px, transparent 5.5px) 0 0 / 18px 18px,
    #c9d6ff;
  color: #000;
  font-family: var(--chunky);
  font-size: 13px;
  line-height: 1.05;
  text-align: left;
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
}
.side-ad svg { width: 46px; height: 46px; flex: none; }

/* ---------- main area ---------- */
.main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: 8px 5px 5px 12px;
}
.main.has-aside { display: grid; grid-template-columns: 1fr 160px; gap: 12px; }
.center-col { min-width: 0; }

/* chunky "graphic" headers with clipart stars */
.gfx {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  margin: 4px 0 10px;
  font-family: var(--chunky);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  text-transform: lowercase;
  letter-spacing: -.5px;
  color: #000;
  -webkit-text-stroke: 4px #fff;
  paint-order: stroke fill;
}
.gfx .stars { width: 38px; flex: none; margin-bottom: 6px; }

/* 468x60 banner, "the.high.street" style */
.pill-banner {
  position: relative;
  width: 468px;
  max-width: 100%;
  height: 60px;
  margin: 2px auto 8px;
  border: 3px solid #000;
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, var(--b1), var(--b2));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 18px;
}
.pill-critter {
  position: absolute;
  left: 8px;
  bottom: -4px;
  width: 74px;
  height: 74px;
}
.pill-critter svg { width: 100%; height: 100%; }
.pill-text {
  margin: 0;
  font-family: var(--chunky);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -.5px;
  text-transform: lowercase;
  color: #fff;
  -webkit-text-stroke: 6px #000;
  paint-order: stroke fill;
}

/* ---------- home ---------- */
.lede { font-size: 14px; }
.two-up { display: grid; grid-template-columns: 200px 1fr; gap: 10px; align-items: start; }
.box-cream { background: var(--cream); padding: 6px 8px 8px; font-size: 11px; }
.box-sub { text-align: center; font-size: 13px; }
.news-pic { width: 120px; margin: 0 auto 8px; }
.two-up > section:not(.box-cream) { font-size: 11px; }

/* latest news column */
.news-col { font-size: 11px; }
.news-box {
  background: var(--news);
  border: 2px solid #000;
  border-radius: 20px 20px 0 20px;
  padding: 8px 8px 10px;
}
.news-box .gfx { justify-content: flex-start; font-size: 22px; }
.news-date { margin-bottom: 8px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { margin-bottom: 10px; }
.news-foot { border-top: 1px solid #888; padding-top: 8px; margin: 0; }
.poll {
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  border-top-right-radius: 20px;
  margin-top: 6px;
  padding: 6px 8px;
}
.poll .gfx { font-size: 22px; }
.poll label { display: flex; gap: 4px; align-items: flex-start; margin-bottom: 4px; }
.poll input { margin: 1px 0 0; }
.poll-buttons { text-align: center; margin-top: 8px; }

/* ---------- critter portraits (cream circle, lavender ring, blue label) ---------- */
.critter-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px 8px;
}
.critter-grid.small { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px 4px; }
.critter { text-align: center; }
.critter-link { display: block; }
.critter-frame {
  display: block;
  width: 110px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 3px;
  border-radius: 50%;
  border: 7px solid var(--lavender);
  box-shadow: 0 0 0 1px var(--lavender-deep), inset 0 0 0 1px var(--lavender-deep);
  background: radial-gradient(circle at 50% 40%, #fffff4, #fff6c8 70%);
  overflow: hidden;
  padding: 6%;
}
.critter-grid.small .critter-frame { width: 72px; border-width: 5px; }
.critter-frame svg { width: 100%; height: 100%; }
.critter-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.critter-name { display: block; color: var(--label-blue); font-weight: bold; font-size: 11px; }
.critter-link:hover .critter-name { color: var(--link-hover); }
.critter-link:hover .critter-frame { border-color: var(--yellow); }

.pet-stats { margin: 4px auto 0; font-size: 10px; border-collapse: collapse; }
.pet-stats th { text-align: right; padding: 0 4px 0 0; font-weight: bold; white-space: nowrap; }
.pet-stats td { text-align: left; padding: 0; }

/* ---------- about ---------- */
.portrait { float: right; width: 100px; margin: 0 0 8px 12px; text-align: center; }
.portrait .critter-frame { width: 90px; }
.stats { font-size: 11px; border-collapse: collapse; margin: 0 auto; }
.stats th { text-align: right; padding: 2px 8px 2px 0; }
.stats td { padding: 2px 0; }

/* ---------- contact: the post office ---------- */
.mail-form table { width: 100%; border-collapse: collapse; border: 1px solid #000; font-size: 11px; }
.mail-form th, .mail-form td { border: 1px solid #000; padding: 4px 6px; vertical-align: top; }
.mail-form th { width: 90px; text-align: right; background: #ffffcc; }
.mail-form .mail-head { text-align: center; background: var(--yellow); font-size: 12px; }
.mail-form input, .mail-form textarea { width: 100%; font: 11px var(--verdana); border: 1px solid #777; padding: 2px; }
.mail-buttons { text-align: center; }
.mail-buttons .tiny-note { display: inline; }

/* ---------- footer ---------- */
.footer { width: 728px; padding: 16px 0 24px 130px; text-align: center; font-size: 9px; color: #333; }
.footer p { margin: 0 0 4px; }
.counter span {
  display: inline-block;
  padding: 1px 3px;
  background: #000;
  color: #3f3;
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 2px;
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  body { font-size: 14px; }
  .frame { width: 100%; grid-template-columns: 1fr; grid-template-rows: 52px auto auto; }
  .topbar { border-right: 0; border-bottom-right-radius: 0; font-size: 9px; padding-right: 8px; }
  .topbar::before, .corner { display: none; }
  .topbar .extra { display: none; }
  .sidebar {
    grid-row: 2;
    width: 100%;
    padding: 8px 8px 12px;
    border-right: 0;
    border-bottom-left-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 14px;
  }
  .sidebar nav { width: 100%; }
  .nav { display: grid; grid-template-columns: 1fr 1fr; }
  .clock-box, .search, .lang, .side-ad { margin: 0; }
  .side-ad, .lang, .sidebar > .tiny-note, .side-label, .side-links, .inset-box, .blinkie-stack, .sidebar .twinkle, .top-blinkie, .topbar .twinkle { display: none; }
  .main { grid-column: 1; grid-row: 3; padding: 10px; }
  .main.has-aside { grid-template-columns: 1fr; }
  .two-up { grid-template-columns: 1fr; }
  .box-cream, .two-up > section:not(.box-cream), .news-col, .pet-stats, .stats, .mail-form table { font-size: 13px; }
  .critter-name { font-size: 13px; }
  .footer { width: 100%; padding: 16px 10px 24px; font-size: 11px; }
  .pill-text { font-size: 22px; -webkit-text-stroke-width: 5px; }
  .pill-critter { width: 60px; height: 60px; }
  .portrait { float: none; margin: 0 auto 8px; }
}

/* ---------- old-web extras: twinkles, melonland-ish sidebar bits ---------- */
.twinkle { position: absolute; z-index: 4; pointer-events: none; }

.top-blinkie { position: absolute; left: 160px; top: 11px; }
.welcome { position: relative; z-index: 1; }

.side-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 16px 8px 5px;
  font: 600 11px "Pixelify Sans", var(--verdana);
  color: #8a4b00;
  text-transform: lowercase;
  text-align: left;
}
.side-label::after { content: ""; flex: 1; order: 1; border-top: 1px solid #8a4b00; }
.side-label img { order: 2; max-height: 18px; width: auto; }
.side-label + .clock-box { margin-top: 2px; }
.search { margin-top: 0; }

.zap {
  font: 600 11px "Pixelify Sans", var(--verdana);
  color: #fff;
  background: #ff8a1f;
  border: 1px solid #b85600;
  border-radius: 4px;
  padding: 1px 6px;
  cursor: pointer;
}
.zap:hover { background: #ff6a00; }

.side-links { list-style: none; margin: 0; padding: 0 8px; text-align: left; }
.side-links li { display: flex; align-items: center; gap: 5px; margin: 3px 0; }
.side-links img { width: 22px; height: 18px; object-fit: contain; flex: none; }
.side-links a {
  font: 13px "Pixelify Sans", var(--verdana);
  color: var(--link);
  text-decoration: underline;
}
.side-links a:hover { color: var(--link-hover); }

.inset-box {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 12px 8px 0;
  padding: 5px;
  border: 3px double #8a4b00;
  background: rgba(255, 255, 255, .55);
  font-size: 9px;
  text-align: left;
}
.inset-box img { flex: none; }
.side-label + .side-ad { margin-top: 2px; }

.blinkie-stack { display: grid; gap: 3px; justify-items: center; }
.blinkie-stack .blinkie { width: 120px; height: auto; }

.divider { display: block; max-width: 100%; height: auto; margin: 8px auto; }
.news-list img { vertical-align: middle; }

/* ---------- about page: a real iMac with the screen cut out ---------- */
.imac {
  position: relative;
  width: 100%;
  max-width: 583px;
  margin: 0 auto;
  aspect-ratio: 720 / 712;
}
.imac-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
/* screen corners in the photo (percent of image): tl 11.7/20.0, tr 91.4/15.6, br 90.2/71.4, bl 18.0/80.9.
   script.js warps .imac-screen onto that quad; this box is the no-js fallback */
.imac-screen {
  position: absolute;
  left: 15%;
  top: 19%;
  width: 74%;
  height: 54%;
  z-index: 1;
  transform-origin: 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 8px 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M24 14l4 9 9 1-7 6 2 9-8-5-8 5 2-9-7-6 9-1z' fill='%23ffd400' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M90 74l2.5 5.6 6 .5-4.6 4 1.4 6-5.3-3.2-5.3 3.2 1.4-6-4.6-4 6-.5z' fill='%23ffd400' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 120px 120px,
    radial-gradient(ellipse at 50% 20%, #4f9cf0, #1f5fbf 60%, #163f8a);
  background-attachment: local, local;
  scrollbar-color: #ff7eb6 #c9c4ef;
}
.imac-screen:focus-visible { outline: 2px dashed #ffce00; outline-offset: -4px; }
.imac-screen .pill-banner { width: 100%; }
.screen-page { background: #fff; border: 2px solid #000; border-radius: 8px; padding: 10px; }
.imac-screen::-webkit-scrollbar { width: 14px; }
.imac-screen::-webkit-scrollbar-track {
  border-radius: 999px;
  border: 2px solid #000;
  background: radial-gradient(circle, #fff 2px, transparent 2.5px) 0 0 / 10px 12px, var(--lavender);
}
.imac-screen::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid #000;
  background: repeating-linear-gradient(45deg, #ff7eb6 0 5px, #ffd400 5px 10px);
  min-height: 36px;
}
.imac-screen::-webkit-scrollbar-button { display: none; height: 0; }
/* glassy crt glare over the screen, clipped to the screen quad */
.imac-glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  clip-path: polygon(11.68% 19.98%, 91.36% 15.6%, 90.19% 71.4%, 17.99% 80.85%);
  background:
    linear-gradient(165deg, rgba(255,255,255,.22) 0 18%, rgba(255,255,255,0) 34%),
    radial-gradient(ellipse at 52% 48%, rgba(0,0,0,0) 62%, rgba(0,0,0,.35) 100%);
}
.computer-hint { text-align: center; margin: 2px 0 0; font-size: 10px; }
.computer-hint img { vertical-align: middle; }

/* phone: keep the yellow bar compact (nav, clock, search only) */
@media (max-width: 760px) {
  .side-label, .side-links, .inset-box, .blinkie-stack, .side-ad, .sidebar .twinkle,
  .top-blinkie, .topbar .twinkle, .sidebar > .tiny-note { display: none; }
  .clock-box { margin: 0; }
}

/* ---------- user lookup page ---------- */
.lookup { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 11px; border: 1px solid #000; }
.lookup th, .lookup td { border: 1px solid #000; padding: 3px 6px; vertical-align: top; text-align: left; }
.lookup th { width: 140px; background: #ffffcc; white-space: nowrap; }
.lookup td { word-break: break-word; }
.lookup .lookup-head { text-align: center; background: var(--yellow); font-size: 12px; width: auto; }
.gfx img { flex: none; }

/* ---------- old-school popup window ---------- */
.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, .25);
}
.popup {
  width: 320px;
  max-width: 100%;
  background: #c0c0c0;
  border: 2px outset #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,.4);
  font: 12px var(--verdana);
  animation: popup-in .18s steps(3);
}
@keyframes popup-in { from { transform: scale(.6); } }
@media (prefers-reduced-motion: reduce) { .popup { animation: none; } }
.popup-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 3px 2px 6px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-weight: bold;
  font-size: 11px;
}
.popup-x {
  width: 18px;
  height: 16px;
  padding: 0;
  font: bold 11px var(--verdana);
  line-height: 1;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
}
.popup-body { display: flex; gap: 10px; padding: 12px 12px 6px; }
.popup-body img { flex: none; }
.popup-body p { margin: 0 0 8px; }
.popup-body input { width: 100%; font: 12px var(--verdana); border: 2px inset #fff; padding: 2px 4px; }
.popup-buttons { display: flex; justify-content: center; gap: 8px; padding: 6px 12px 12px; }
.popup-buttons .bevel { min-width: 70px; padding: 2px 8px; }
#own-visits { font-size: 9px; color: #555; }

/* ---------- stats page ---------- */
.stats-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-box, .box-old {
  border: 3px double #8a4b00;
  background: #fffbe0;
  padding: 8px 10px;
  text-align: center;
}
.stat-box .gfx { font-size: 20px; margin-bottom: 4px; }
.big-counter {
  display: inline-block;
  margin: 2px 0 4px;
  padding: 3px 8px;
  background: #000;
  color: #3f3;
  font: bold 22px "Courier New", monospace;
  letter-spacing: 4px;
  border: 2px inset #888;
}
.box-old { margin-bottom: 4px; }
.map-wrap { display: flex; gap: 10px; align-items: flex-start; }
.pixel-map {
  position: relative;
  flex: 1;
  min-width: 0;
  background:
    radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1.5px) 0 0 / 8px 8px,
    #13206b;
  border: 2px solid #000;
  border-radius: 6px;
}
.pixel-map svg { display: block; width: 100%; height: 100%; fill: #ffce00; }
.map-flag {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 1px solid #000;
  background: #fff;
  line-height: 0;
  cursor: pointer;
}
.map-flag img, .side-flag img { width: 16px; height: 12px; image-rendering: pixelated; }
.pixel-map .map-flag img { width: 20px; height: 15px; }
.map-flag:hover, .map-flag:focus-visible { z-index: 5; outline: 2px solid #ff6fae; }
.map-flag::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 2px 6px;
  white-space: nowrap;
  font: bold 10px var(--verdana);
  line-height: 1.4;
  color: #000;
  background: #ffff63;
  border: 1px solid #000;
  pointer-events: none;
  opacity: 0;
}
.map-flag:hover::after, .map-flag:focus-visible::after { opacity: 1; }
.map-side { width: 130px; flex: none; text-align: left; font-size: 10px; }
.side-title { margin: 0 0 4px; font-weight: bold; }
.side-flag { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.side-flag .map-flag { position: relative; transform: none; }
.elsewhere img { width: 20px; height: 20px; }
#s-pages th { width: auto; }
.napping {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 8px 10px;
  border: 3px double #8a4b00;
  background: #fff3f8;
  font-size: 12px;
}
.napping[hidden] { display: none; }
.napping p { margin: 0; }
.collect-note { margin-top: 10px; font-size: 10px; }

@media (max-width: 760px) {
  .map-wrap { flex-direction: column; }
  .map-side { width: 100%; }
  .stats-top { grid-template-columns: 1fr; }
}
.popup-hint { margin: 4px 0 0 !important; font-size: 10px; color: #444; }
.popup-hint-oops { color: #c00000; font-weight: bold; }

.clock-box { white-space: nowrap; font-size: 7.5pt; }
#clock-zone { padding: 0 4px; }

/* ---------- astrology: glyph font (Noto Sans Symbols subset, SIL OFL) ---------- */
@font-face {
  font-family: "AstroGlyphs";
  src: url("astro/fonts/astro-glyphs.woff2") format("woff2"), url("astro/fonts/astro-glyphs.ttf") format("truetype");
  font-display: swap;
}
.glyph { font-family: "AstroGlyphs", "Noto Sans Symbols", "Segoe UI Symbol", sans-serif; font-style: normal; font-weight: normal; }
.rx { color: #c00; font-weight: bold; text-decoration: none; cursor: help; }

/* ---------- home: current sky (replaces latest news) ---------- */
.sky-box .news-date { margin-bottom: 6px; }
.sky-moon { margin: 0 0 6px; }
.sky-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.sky-table td { padding: 1px 0; border-bottom: 1px dotted #998; white-space: nowrap; }
.sky-table td + td { text-align: right; }
.sky-sub { margin: 6px 0 2px; }
.sky-list { margin: 0 0 4px; padding-left: 12px; }
.sky-list li { margin-bottom: 3px; }
.sky-summary { background: #ffffe6; border: 1px solid #000; padding: 5px; margin: 8px 0 4px; }
.sky-foot { margin-top: 8px; }

/* ---------- birth form (home + astrology) ---------- */
.birth-form label { display: block; margin: 4px 0 1px; font-weight: bold; }
.birth-form input[type=date], .birth-form input[type=time], .birth-form input[type=text] {
  display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 11px; padding: 2px 3px;
  border: 2px inset #ccc; background: #fff;
}
.birth-form input:disabled { background: #eee; color: #999; }
.birth-form label.check { font-weight: normal; display: flex; gap: 4px; align-items: center; }
.birth-form .form-go { margin: 6px 0 2px; }
.place-wrap { position: relative; }
.place-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 0; padding: 0; list-style: none;
  background: #fff; border: 2px solid #000; max-height: 220px; overflow-y: auto; box-shadow: 3px 3px 0 #000;
}
.place-list li { padding: 3px 5px; cursor: pointer; border-bottom: 1px dotted #ccc; font-size: 11px; }
.place-list li[aria-selected=true], .place-list li:hover { background: var(--yellow); }
.place-list .place-msg { cursor: default; color: #555; }
.place-list .place-msg:hover { background: #fff; }
.form-note { color: #a00; min-height: 1em; }

/* ---------- home: secret box (replaces the poll) ---------- */
.secret-box textarea { width: 100%; box-sizing: border-box; font: 11px Verdana, Geneva, sans-serif; border: 2px inset #ccc; padding: 3px; resize: vertical; }
.secret-box .over { color: #c00; font-weight: bold; }
.ts-holder { margin: 6px 0; overflow: hidden; }

/* ---------- astrology page ---------- */
.astro-form-box { margin-bottom: 10px; border: 2px solid #000; }
.astro-form-box summary { cursor: pointer; padding: 2px 0; }
.astro-form-box .birth-form { max-width: 280px; margin: 6px auto; font-size: 11px; }
.astro-birthline { font-weight: bold; color: var(--link, #000099); }
.astro-notice { background: #fff3c4; border: 2px dashed #c90; padding: 5px 8px; font-size: 11px; }
.astro-wheel { max-width: 500px; margin: 0 auto; }
.astro-wheel svg { width: 100%; height: auto; display: block; }
.astro-table th { width: auto; }
.astro-table td { white-space: nowrap; }
.astro-table td .glyph { font-size: 13px; }
.box-old h3 { font-size: 12px; margin: 10px 0 4px; color: #000099; }
.reading-text { background: #fffef3; border: 1px solid #000; padding: 4px 12px; font-size: 12px; line-height: 1.55; }
.reading-text h3 { font-family: "Fredoka", Verdana, sans-serif; font-size: 16px; color: #000099; margin: 14px 0 4px; }
.big-bevel { font-size: 13px; font-weight: bold; padding: 4px 12px; }
.framing { font-size: 11px; font-style: italic; margin: 10px 0; }
.astro-how { margin-top: 10px; }
.privacy h3 { font-size: 13px; color: #000099; margin: 14px 0 4px; }
.privacy p { line-height: 1.5; }
.secret-text { white-space: pre-wrap; }

@media (max-width: 760px) {
  .astro-table { font-size: 12px; }
  .astro-table td { white-space: normal; }
  .birth-form input[type=date], .birth-form input[type=time], .birth-form input[type=text], .place-list li, .secret-box textarea { font-size: 16px; } /* no ios zoom */
  .reading-text { font-size: 14px; }
}

/* ---------- print (fallback for "print -> save as pdf") ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; font-size: 10pt; }
  .sidebar, .topbar, .corner, .logo, .pill-banner, .footer, .no-print, .pdf-box, .astro-form-box, .divider, .news-col, .popup, .twinkle { display: none !important; }
  .frame { display: block !important; width: auto !important; }
  .main, .center-col { padding: 0 !important; border: 0 !important; display: block !important; width: auto !important; max-width: none !important; margin: 0 !important; }
  #astro::before { content: "azia's website \2605  birth chart printout"; display: block; font: bold 18pt "Fredoka", Verdana, sans-serif; color: #000099; border: 2px solid #000; background: #ffce00; padding: 6px 10px; margin-bottom: 10px; }
  .box-old, .box-cream { break-inside: avoid; border: 1.5px solid #000; box-shadow: none; background: #fff !important; }
  .astro-wheel { max-width: 120mm; }
  .reading-text { border: 0; padding: 0; background: #fff; }
  .lede { display: none; }
  a { color: #000; text-decoration: none; }
}
.box-old ul { text-align: left; }
