/* =========================================================
   $TILLY — Windows 95 / classic desktop UI
   Beveled windows · teal desktop · taskbar · mobile-ready
   ========================================================= */

:root {
  --desktop: #008080;
  --face: #c0c0c0;
  --face-light: #ffffff;
  --face-dark: #808080;
  --face-darker: #404040;
  --ink: #000000;
  --ink-soft: #222222;
  --title: #000080;
  --title-active: #000080;
  --title-text: #ffffff;
  --select: #000080;
  --select-text: #ffffff;
  --window-bg: #c0c0c0;
  --field: #ffffff;
  --link: #0000ee;
  --shadow: #000000;
  --taskbar-h: 40px;
  --mobile-bar-h: 40px;
  --icon-rail: 88px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { width: 100%; min-height: 100%; }
body {
  font-family: Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  background: var(--desktop);
  line-height: 1.45;
  overflow-x: hidden;
  /* classic chunky cursor feel on interactive bits */
}
h1, h2, h3 {
  font-family: Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Classic 3D borders */
.win-outset {
  border-top: 2px solid var(--face-light);
  border-left: 2px solid var(--face-light);
  border-right: 2px solid var(--face-darker);
  border-bottom: 2px solid var(--face-darker);
  box-shadow:
    inset -1px -1px 0 var(--face-dark),
    inset 1px 1px 0 var(--face);
}
.win-inset {
  border-top: 2px solid var(--face-darker);
  border-left: 2px solid var(--face-darker);
  border-right: 2px solid var(--face-light);
  border-bottom: 2px solid var(--face-light);
  background: var(--field);
  box-shadow:
    inset 1px 1px 0 var(--face-dark),
    inset -1px -1px 0 #dfdfdf;
}

/* ========== DESKTOP ========== */
.page.desktop {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px
    ),
    var(--desktop);
  padding-bottom: calc(var(--taskbar-h) + 16px);
  padding-top: 0;
}

/* Desktop icons rail */
.desktop-icons {
  display: none;
  position: fixed;
  top: 12px;
  left: 8px;
  z-index: 20;
  flex-direction: column;
  gap: 10px;
  width: var(--icon-rail);
}
@media (min-width: 900px) {
  .desktop-icons { display: flex; }
}

.desk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  border: 1px dotted transparent;
  width: 100%;
}
.desk-icon:hover,
.desk-icon:focus-visible {
  background: rgba(0, 0, 128, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  outline: none;
}
.desk-icon-img {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 26px;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.4));
}
.desk-icon-face {
  padding: 0;
  overflow: hidden;
  border: 1px solid #000;
  background: var(--face);
  width: 36px;
  height: 36px;
}
.desk-icon-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.desk-icon-label {
  font-size: 11px;
  line-height: 1.2;
  word-break: break-word;
  max-width: 76px;
}

/* Workspace offset for icons on desktop */
.desktop-workspace {
  position: relative;
  z-index: 5;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 900px) {
  .desktop-workspace {
    margin-left: calc(var(--icon-rail) + 16px);
    margin-right: 16px;
    max-width: 920px;
    padding-top: 16px;
  }
}
@media (min-width: 1200px) {
  .desktop-workspace {
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--icon-rail) + 8px);
  }
}

.wrap { max-width: 100%; margin: 0 auto; }
.center { text-align: center; }

/* ========== WINDOW CHROME ========== */
.win-window {
  background: var(--face);
  border-top: 2px solid var(--face-light);
  border-left: 2px solid var(--face-light);
  border-right: 2px solid var(--face-darker);
  border-bottom: 2px solid var(--face-darker);
  box-shadow:
    inset -1px -1px 0 var(--face-dark),
    inset 1px 1px 0 #dfdfdf,
    2px 2px 0 rgba(0, 0, 0, 0.25);
  width: 100%;
}

.win-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: var(--title-text);
  padding: 3px 3px 3px 4px;
  min-height: 22px;
  user-select: none;
}
.win-titlebar--sm { min-height: 20px; }
.win-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.win-title-icon {
  width: 16px;
  height: 16px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.win-controls {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.win-ctrl {
  width: 18px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  color: #000;
  background: var(--face);
  border-top: 1px solid var(--face-light);
  border-left: 1px solid var(--face-light);
  border-right: 1px solid var(--face-darker);
  border-bottom: 1px solid var(--face-darker);
  box-shadow: inset -1px -1px 0 var(--face-dark), inset 1px 1px 0 #dfdfdf;
}
.win-ctrl-close { font-size: 9px; }

.win-menubar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 2px 8px;
  background: var(--face);
  border-bottom: 1px solid var(--face-dark);
  font-size: 12px;
  color: #000;
}
.win-menubar span { cursor: default; }
.win-menubar span:hover {
  background: var(--select);
  color: var(--select-text);
}

.win-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--face);
  border-bottom: 1px solid var(--face-dark);
}
.ie-address {
  flex: 1 1 140px;
  min-width: 0;
  padding: 3px 6px;
  font-size: 12px;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-body {
  padding: 12px;
  background: var(--face);
}
.win-statusbar {
  display: flex;
  border-top: 1px solid var(--face-dark);
  background: var(--face);
  min-height: 22px;
}
.sb-pane {
  flex: 1;
  padding: 2px 6px;
  font-size: 11px;
  border-right: 1px solid var(--face-light);
  border-top: 1px solid var(--face-darker);
  border-left: 1px solid var(--face-darker);
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-pane:last-child { border-right: none; flex: 0 0 auto; min-width: 72px; }

/* Buttons */
.win-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  background: var(--face);
  border-top: 2px solid var(--face-light);
  border-left: 2px solid var(--face-light);
  border-right: 2px solid var(--face-darker);
  border-bottom: 2px solid var(--face-darker);
  box-shadow: inset -1px -1px 0 var(--face-dark), inset 1px 1px 0 #dfdfdf;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
}
.win-btn:hover,
.btn:hover {
  background: #d4d4d4;
}
.win-btn:active,
.btn:active {
  border-top: 2px solid var(--face-darker);
  border-left: 2px solid var(--face-darker);
  border-right: 2px solid var(--face-light);
  border-bottom: 2px solid var(--face-light);
  box-shadow: inset 1px 1px 0 var(--face-dark);
  padding: 7px 13px 5px 15px;
}
.win-btn:focus-visible,
.btn:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -4px;
}
.win-btn-primary,
.btn-green {
  background: var(--face);
  font-weight: 700;
}
.btn-green {
  /* classic default button double border */
  box-shadow:
    inset -1px -1px 0 var(--face-dark),
    inset 1px 1px 0 #dfdfdf,
    0 0 0 1px #000;
}
.btn-white {
  background: var(--face);
}
.win-btn-sm {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 400;
}

.win-panel {
  background: var(--face);
  border-top: 2px solid var(--face-light);
  border-left: 2px solid var(--face-light);
  border-right: 2px solid var(--face-darker);
  border-bottom: 2px solid var(--face-darker);
  box-shadow: inset -1px -1px 0 var(--face-dark), inset 1px 1px 0 #dfdfdf;
  padding: 12px;
}

/* ========== MOBILE TOP BAR + START MENU ========== */
.mobile-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--mobile-bar-h);
  padding: 4px 6px;
  background: var(--face);
  border-bottom: 2px solid var(--face-darker);
  box-shadow: 0 1px 0 var(--face-light);
}
.mobile-bar-title {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-cta-sm {
  padding: 4px 10px;
  font-size: 11px;
  min-width: 32px;
}
@media (min-width: 900px) {
  .mobile-bar { display: none; }
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  padding: 4px 10px 4px 6px;
  min-height: 28px;
}
.start-logo { font-size: 14px; line-height: 1; }
.start-text { font-size: 12px; }

.start-menu {
  display: none;
  position: fixed;
  z-index: 50;
  left: 4px;
  bottom: calc(var(--taskbar-h) + 4px);
  width: min(280px, calc(100vw - 12px));
  background: var(--face);
  border-top: 2px solid var(--face-light);
  border-left: 2px solid var(--face-light);
  border-right: 2px solid var(--face-darker);
  border-bottom: 2px solid var(--face-darker);
  box-shadow:
    inset -1px -1px 0 var(--face-dark),
    inset 1px 1px 0 #dfdfdf,
    3px 3px 0 rgba(0, 0, 0, 0.35);
  flex-direction: row;
  overflow: hidden;
}
/* On mobile, open from top bar */
@media (max-width: 899px) {
  .start-menu {
    top: calc(var(--mobile-bar-h) + 4px);
    bottom: auto;
    left: 4px;
  }
}
.start-menu.open { display: flex; }

.start-menu-side {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: linear-gradient(180deg, #000080, #1084d0);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  padding: 10px 6px;
  text-align: center;
  flex-shrink: 0;
}
.start-menu-list {
  flex: 1;
  padding: 4px 0;
  background: var(--face);
}
.start-menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #000;
}
.start-menu-list a:hover,
.start-menu-list a:focus-visible {
  background: var(--select);
  color: var(--select-text);
  outline: none;
}
.start-menu-list a span { font-size: 16px; width: 22px; text-align: center; }
.start-menu-sep {
  height: 2px;
  margin: 4px 8px;
  background: var(--face-dark);
  border-bottom: 1px solid var(--face-light);
}

/* ========== HERO ========== */
.hero-body { text-align: center; padding: 16px 14px 12px; }
@media (min-width: 640px) {
  .hero-body { padding: 22px 28px 16px; }
}

.pill,
.status-bar-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--field);
  border-top: 2px solid var(--face-darker);
  border-left: 2px solid var(--face-darker);
  border-right: 2px solid var(--face-light);
  border-bottom: 2px solid var(--face-light);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
  max-width: 100%;
  text-align: left;
  box-shadow: inset 1px 1px 0 var(--face-dark);
}
.dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background: #00a800;
  border: 1px solid #000;
  animation: blink 1.2s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.hero-title {
  font-size: clamp(36px, 10vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000080;
  margin-bottom: 12px;
  text-shadow: 2px 2px 0 #fff, 3px 3px 0 #808080;
  line-height: 1.05;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: left;
}
@media (min-width: 640px) {
  .hero-sub { font-size: 15px; text-align: center; }
}
.hero-sub strong { font-weight: 700; color: #000; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

/* CA field */
.ca-pill {
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  width: 100%;
  max-width: 560px;
  background: var(--field);
  border-top: 2px solid var(--face-darker);
  border-left: 2px solid var(--face-darker);
  border-right: 2px solid var(--face-light);
  border-bottom: 2px solid var(--face-light);
  box-shadow: inset 1px 1px 0 var(--face-dark);
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}
.ca-pill:hover { background: #ffffee; }
.ca-tag {
  background: var(--select);
  color: #fff;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.ca-addr {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}
.ca-copy {
  flex-shrink: 0;
  background: var(--face);
  border-top: 2px solid var(--face-light);
  border-left: 2px solid var(--face-light);
  border-right: 2px solid var(--face-darker);
  border-bottom: 2px solid var(--face-darker);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

/* Dog character */
.dog-wrap {
  position: relative;
  margin-top: 22px;
  display: inline-block;
  width: 100%;
}
.dog-shadow {
  position: absolute;
  bottom: 6px;
  left: 20%;
  right: 20%;
  height: 16px;
  background: rgba(0, 0, 0, 0.18);
  filter: blur(6px);
  border-radius: 50%;
}
.dog-frame {
  display: inline-block;
  margin: 0 auto;
  padding: 4px;
  background: var(--face);
  border-top: 2px solid var(--face-light);
  border-left: 2px solid var(--face-light);
  border-right: 2px solid var(--face-darker);
  border-bottom: 2px solid var(--face-darker);
  box-shadow: inset -1px -1px 0 var(--face-dark), inset 1px 1px 0 #dfdfdf;
}
.dog {
  margin: 0 auto;
  max-height: 360px;
  width: auto;
  background: #fff;
  border: 1px solid var(--face-dark);
}
@media (max-width: 640px) {
  .dog { max-height: 240px; }
}
.speech-bubble {
  position: absolute;
  top: 0;
  right: max(0px, calc(50% - 170px));
  background: #ffffcc;
  border: 1px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 2;
}
.speech-bubble::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: -7px;
  width: 10px;
  height: 10px;
  background: #ffffcc;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  transform: rotate(45deg);
}
@media (max-width: 400px) {
  .speech-bubble { font-size: 10px; right: 0; }
}

/* grass-cap unused but harmless if present */
.grass-cap { display: none; }

/* ========== MARQUEE / TICKER ========== */
.win-window--ticker { overflow: hidden; }
.marquee-inner {
  overflow: hidden;
  background: #000;
  padding: 8px 0;
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  animation: marquee 32s linear infinite;
  text-transform: uppercase;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========== ABOUT ========== */
.about {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-grid {
  display: grid;
  gap: 12px;
  align-items: stretch;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.about-body {
  background: var(--field);
  border-top: 2px solid var(--face-darker);
  border-left: 2px solid var(--face-darker);
  border-right: 2px solid var(--face-light);
  border-bottom: 2px solid var(--face-light);
  box-shadow: inset 1px 1px 0 var(--face-dark);
  margin: 8px;
  padding: 12px 14px 16px;
  text-align: left;
  min-height: 180px;
}
.about-body h2 {
  font-size: 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid #c0c0c0;
  padding-bottom: 6px;
}
.about-body p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #222;
}
.about-body strong { font-weight: 700; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.feature {
  text-align: left;
  background: var(--face);
}
.feature:hover {
  outline: 1px dotted #000;
}
.emoji { font-size: 26px; }
.ftitle {
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  color: #000080;
}
.fdesc {
  font-size: 11px;
  margin-top: 4px;
  color: #333;
}

.hero-banner { overflow: hidden; }
.banner-body {
  padding: 6px;
  background: var(--face);
}
.hero-banner-img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--face-dark);
  background: #fff;
}

/* ========== GAME ========== */
.game-section { width: 100%; }
.game-cabinet { max-width: 480px; margin: 0 auto; }
.game-body { text-align: center; }
.section-title {
  font-size: 16px;
  text-align: center;
  margin-bottom: 4px;
  color: #000080;
}
.section-sub {
  text-align: center;
  font-size: 13px;
  color: #333;
  margin-bottom: 12px;
}

.game-hud {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 6px;
  margin-bottom: 8px;
}
.hud-chip {
  padding: 6px 4px;
  text-align: center;
  background: var(--field) !important;
}
.hud-l {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #555;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.hud-v {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  color: #000;
}
.hud-chip.lives .hud-v { font-size: 12px; }

.game-screen {
  position: relative;
  height: 300px;
  background:
    linear-gradient(to bottom, #87ceeb 0%, #b0e0f0 68%, #90ee90 68%, #7cfc00 100%) !important;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  margin: 0 auto;
}
@media (min-width: 480px) {
  .game-screen { height: 340px; }
}

.game-start,
.game-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(192, 192, 192, 0.92);
  z-index: 5;
  padding: 16px;
}
.game-start[hidden],
.game-over[hidden] { display: none !important; }
.game-start-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid #000;
  background: #fff;
}
.game-start-title,
.game-over-title {
  font-size: 16px;
  font-weight: 700;
  color: #000080;
}
.game-start-hint,
.game-over-score {
  font-size: 12px;
  color: #333;
}

.game-player {
  position: absolute;
  bottom: 16px;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 2px solid #000;
  background: #fff;
  z-index: 3;
  pointer-events: none;
  transform: translateX(-50%);
  left: 50%;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}
.game-player[hidden] { display: none !important; }

.treat {
  position: absolute;
  font-size: 26px;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}
.treat.pop { animation: treatPop 0.22s ease-out forwards; }
@keyframes treatPop {
  to { transform: scale(1.35); opacity: 0; }
}

.game-controls-hint {
  margin-top: 8px;
  font-size: 11px;
  color: #444;
}

/* ========== HOW ========== */
.how { width: 100%; }
.how-window .win-body { padding: 14px; }
.how .section-title { color: #000080; }
.how .section-sub { color: #333; }

.steps {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  text-align: left;
}
@media (min-width: 560px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step-n {
  font-size: 22px;
  font-weight: 700;
  color: #000080;
  font-family: "Courier New", Courier, monospace;
  line-height: 1;
}
.step-t {
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  color: #000;
}
.step-d {
  margin-top: 6px;
  font-size: 12px;
  color: #333;
}

/* ========== TOKENOMICS ========== */
.tokenomics { width: 100%; }
.tk-window .win-body { padding: 14px; }
.tk-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .tk-grid { grid-template-columns: repeat(3, 1fr); }
}
.tk {
  text-align: center;
  padding: 18px 10px;
  background: var(--field) !important;
  border-top: 2px solid var(--face-darker) !important;
  border-left: 2px solid var(--face-darker) !important;
  border-right: 2px solid var(--face-light) !important;
  border-bottom: 2px solid var(--face-light) !important;
  box-shadow: inset 1px 1px 0 var(--face-dark) !important;
}
.tk-v {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(16px, 3.5vw, 22px);
  font-weight: 700;
  color: #000080;
  word-break: break-word;
  line-height: 1.2;
}
.tk:nth-child(2) .tk-v,
.tk:nth-child(3) .tk-v {
  font-size: clamp(28px, 6vw, 40px);
}
.tk-l {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ========== CHART ========== */
.chart { width: 100%; }
.chart-window .win-body { padding: 12px; }
.chart-frame {
  margin-top: 12px;
  overflow: hidden;
  background: #fff !important;
}
#dexscreener-embed {
  position: relative;
  width: 100%;
  padding-bottom: 125%;
}
@media (min-width: 900px) {
  #dexscreener-embed { padding-bottom: 70%; }
}
@media (min-width: 1400px) {
  #dexscreener-embed { padding-bottom: 60%; }
}
#dexscreener-embed iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: 0;
}

/* ========== COMMUNITY ========== */
.community {
  width: 100%;
  padding-bottom: 8px;
}
.community-window { max-width: 100%; }
.community-body {
  text-align: center;
  padding: 20px 14px 16px;
}
.community-title {
  font-size: clamp(20px, 5vw, 32px);
  color: #000080;
  margin-bottom: 8px;
}
.community-sub {
  font-size: 14px;
  color: #333;
  max-width: 420px;
  margin: 0 auto 16px;
}
.community .cta-row { margin-bottom: 18px; }

.footer {
  margin-top: 8px;
  padding: 10px 12px !important;
  font-size: 11px;
  color: #333;
  text-align: left;
  background: var(--field) !important;
}
.footer p + p { margin-top: 6px; }

/* ========== TASKBAR ========== */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: var(--taskbar-h);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px;
  background: var(--face);
  border-top: 2px solid var(--face-light);
  box-shadow: inset 0 1px 0 #dfdfdf;
}
.taskbar-start {
  flex-shrink: 0;
  font-weight: 700;
  padding: 4px 10px 4px 6px;
  min-height: 30px;
}
.taskbar-tasks {
  flex: 1;
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.taskbar-tab {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 160px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  background: var(--face);
  border-top: 2px solid var(--face-light);
  border-left: 2px solid var(--face-light);
  border-right: 2px solid var(--face-darker);
  border-bottom: 2px solid var(--face-darker);
  box-shadow: inset -1px -1px 0 var(--face-dark), inset 1px 1px 0 #dfdfdf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #000;
}
.taskbar-tab.active {
  border-top: 2px solid var(--face-darker);
  border-left: 2px solid var(--face-darker);
  border-right: 2px solid var(--face-light);
  border-bottom: 2px solid var(--face-light);
  box-shadow: inset 1px 1px 0 var(--face-dark);
  background: #dfdfdf;
}
.taskbar-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px !important;
  min-height: 28px;
  flex-shrink: 0;
  background: var(--face) !important;
}
.tray-icon { font-size: 12px; line-height: 1; }
.tray-clock {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 68px;
  text-align: right;
}

@media (max-width: 480px) {
  .hide-sm { display: none !important; }
  .taskbar-tab { max-width: 90px; padding: 4px 6px; font-size: 10px; }
  .start-text { display: none; }
  .taskbar-start { padding: 4px 8px; }
}

/* ========== REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  .taskbar {
    padding-bottom: max(3px, env(safe-area-inset-bottom));
    height: calc(var(--taskbar-h) + env(safe-area-inset-bottom));
  }
  .page.desktop {
    padding-bottom: calc(var(--taskbar-h) + env(safe-area-inset-bottom) + 16px);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .dot,
  .reveal {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
