/* STEPAN OS — clean Mac OS 9 / gleb.solutions */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  --menu-h: 22px;
  --tb-h:   28px;
  --font:   'VT323', 'Courier New', monospace;
  --mono:   'VT323', 'Courier New', monospace;
  --ink:    #000000;
  --paper:  #ffffff;
  --desk:   #a8a8a8;   /* Mac OS 9 Platinum grey */
  --muted:  #555555;
  --dim:    #888888;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: none !important; }

html, body {
  width: 100%; height: 100%; overflow: hidden;
  font-family: var(--font);
  -webkit-font-smoothing: none;
  background: var(--desk);
}

/* ── CRT ── */
#crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 9800;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px,
    transparent 1px, transparent 3px
  );
  animation: flicker 0.2s infinite;
}
@keyframes flicker { 0%,100%{opacity:1} 50%{opacity:.985} }

/* ── CURSOR ── */
#cursor {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 99999;
  opacity: 0; transform: translate(-300px,-300px); transition: opacity .1s;
}
#cursor.visible { opacity: 1; }
.cursor-arrow {
  width: 16px; height: 24px;
  filter: drop-shadow(1px 1px 0 #fff) drop-shadow(-1px -1px 0 #fff);
}

/* ── MENUBAR ── */
#menubar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--menu-h);
  background: var(--paper); border-bottom: 2px solid var(--ink);
  display: flex; align-items: stretch;
  z-index: 2000; user-select: none;
}
.mb-logo {
  font-size: 17px; font-weight: 700; color: var(--ink);
  padding: 0 14px; border-right: 1px solid #ccc;
  display: flex; align-items: center; white-space: nowrap;
}
.mb-logo:hover, .mb-item:hover { background: var(--ink); color: var(--paper); }
.mb-item {
  font-size: 17px; color: var(--ink); padding: 0 12px;
  display: flex; align-items: center; transition: background .06s;
}
.mb-flex { flex: 1; }
.mb-clock {
  font-size: 17px; color: var(--ink); padding: 0 12px;
  border-left: 1px solid #ccc; display: flex; align-items: center;
}

/* ── BOOT ── */
#boot {
  position: fixed; inset: 0; z-index: 9999; background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s, visibility .4s;
}
#boot.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-inner { width: 460px; padding: 0 24px; }
.boot-logo  { font-size: 54px; color: #fff; line-height: 1; margin-bottom: 4px; }
.boot-logo span { color: #fff; }
.boot-sub   { font-size: 19px; color: #444; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 28px; }
.boot-log   { min-height: 96px; margin-bottom: 14px; }
.boot-line  { font-size: 17px; line-height: 1.9; color: #333; }
.boot-line .ok   { color: #fff; }
.boot-line .info { color: #666; }
.boot-bar-wrap  { height: 1px; background: #222; overflow: hidden; margin-bottom: 12px; }
.boot-bar-fill  { height: 100%; width: 0; background: #fff; transition: width .3s; }
.boot-hint      { font-size: 15px; color: #333; }

/* ── DESKTOP ── */
#desktop {
  position: fixed;
  top: var(--menu-h); bottom: var(--tb-h); left: 0; right: 0;
  background: var(--desk);
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
}
#desktop.visible { opacity: 1; visibility: visible; }

/* ── HERO CENTER ── */
#desk-hero {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  text-align: center;
  pointer-events: none; user-select: none;
  z-index: 0;
}
.dh-eyebrow {
  font-size: 16px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(0,0,0,0.28); margin-bottom: 8px;
}
.dh-name {
  font-size: clamp(52px, 8vw, 100px);
  line-height: .88; letter-spacing: -.01em;
  color: rgba(0,0,0,0.15);
  -webkit-text-stroke: 1px rgba(0,0,0,0.18);
}
.dh-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 17px; color: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,0,0,0.18); padding: 5px 14px;
  background: rgba(255,255,255,0.35);
}
.dh-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink); animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ── DESKTOP ICONS — 2-column grid, centered ── */
#desk-icons {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid; grid-template-columns: repeat(2, 148px);
  gap: 16px 14px; z-index: 10;
}
.desk-icon {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  width: 148px; padding: 12px 8px 10px;
  border: 1px solid transparent;
  transition: background .08s, border-color .08s;
}
.desk-icon:hover   { background: rgba(0,0,0,0.1); border-color: rgba(0,0,0,0.18); }
.desk-icon.is-open { background: var(--ink); }

.desk-icon-img {
  width: 112px; height: 112px;
  background: var(--paper); border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  transition: filter .08s;
}
.desk-icon-img svg { width: 64px; height: 64px; }
.desk-icon:hover    .desk-icon-img,
.desk-icon.is-open  .desk-icon-img { filter: invert(1); }

.desk-icon-label {
  font-size: 20px; color: var(--ink); text-align: center;
  line-height: 1.2; white-space: nowrap;
  background: rgba(168,168,168,0.88); padding: 1px 6px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}
.desk-icon.is-open .desk-icon-label { background: var(--ink); color: var(--paper); text-shadow: none; }

/* ── DESK CARD ── */
#desk-card {
  position: absolute;
  top: calc(var(--menu-h) + 12px);
  right: 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 10px 16px 12px;
  font-family: var(--font);
  line-height: 1.3;
  pointer-events: none;
  user-select: none;
  z-index: 5;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.35);
}
.dc-role { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.dc-name { font-size: 24px; color: var(--ink); font-weight: 700; line-height: 1.1; margin-bottom: 4px; }
.dc-line { font-size: 13px; color: var(--dim); border-top: 1px solid rgba(0,0,0,0.15); padding-top: 6px; margin-top: 4px; }

/* ── STICKY NOTE ── */
#desk-note {
  position: absolute; top: 130px; left: 20px;
  width: 170px; background: #f7f272;
  border: 2px solid #000; box-shadow: 4px 4px 0 rgba(0,0,0,0.28);
  font-family: var(--font); z-index: 6; cursor: grab;
  user-select: none;
}
#desk-note:active { cursor: grabbing; }
.note-pin {
  font-size: 15px; padding: 4px 9px;
  border-bottom: 1.5px solid rgba(0,0,0,0.2);
  color: #555; letter-spacing: .04em;
  background: rgba(0,0,0,0.06);
}
.note-body { padding: 8px 10px 12px; }
.note-text { font-size: 19px; line-height: 1.55; color: #111; }

/* ── TERMINAL ── */
.term-body {
  background: #000 !important;
  padding: 12px 14px !important;
  overflow-y: auto;
  min-height: 200px;
}
.term-line { font-size: 18px; color: #00ee44; line-height: 1.65; font-family: var(--mono); white-space: pre-wrap; }
.term-line.err  { color: #ff5555; }
.term-line.info { color: #888; }
.term-input-row { display: flex; align-items: center; margin-top: 6px; }
.term-prompt { font-size: 18px; color: #00ee44; font-family: var(--mono); white-space: nowrap; }
#term-input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 18px; color: #00ee44; font-family: var(--mono);
  caret-color: #00ee44; padding: 0;
}

/* ── CONTEXT MENU ── */
#ctx-menu {
  position: fixed; z-index: 5000;
  background: var(--paper); border: 2px solid var(--ink);
  padding: 2px; min-width: 176px; display: none;
}
#ctx-menu.visible { display: block; animation: ctxIn .08s ease; }
@keyframes ctxIn { from{opacity:0;transform:scale(.97)} to{opacity:1;transform:none} }
.ctx-item { padding: 5px 11px; font-size: 18px; color: var(--ink); transition: background .07s; }
.ctx-item:hover { background: var(--ink); color: var(--paper); }
.ctx-sep  { height: 1px; background: var(--ink); margin: 2px 0; }
.ctx-dim  { padding: 4px 11px; font-size: 15px; color: var(--dim); }

/* ── WINDOWS ── */
.window {
  position: fixed; min-width: 460px; max-width: 88vw;
  max-height: calc(100vh - var(--menu-h) - var(--tb-h) - 20px);
  background: var(--paper); border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.45);
  display: flex; flex-direction: column;
  visibility: hidden; opacity: 0; transform: scale(.97) translateY(8px);
  transition: opacity .15s, transform .15s, visibility .15s;
  overflow: hidden; z-index: 100;
}
.window.open      { visibility: visible; opacity: 1; transform: none; }
.window.minimized { visibility: hidden; opacity: 0; transform: scale(.94); }

/* Pinstripe title bar */
.window-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  height: 28px; flex-shrink: 0;
  background: repeating-linear-gradient(
    180deg,
    #9a9a9a 0px, #9a9a9a 1px,
    #e8e8e8 1px, #e8e8e8 2px
  );
  border-bottom: 2px solid var(--ink);
  padding: 0 7px; cursor: grab; user-select: none;
}
.window-titlebar:active { cursor: grabbing; }
.window-dots { display: flex; gap: 3px; align-items: center; }
.window-dots-spacer { width: 44px; }

.dot {
  width: 17px; height: 17px;
  border: 1.5px solid var(--ink); background: #d0d0d0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-family: var(--mono); color: var(--ink); line-height: 1;
  transition: background .07s, color .07s;
}
.dot:hover { background: var(--ink); color: var(--paper); }
.dot-close::before { content: '×'; }
.dot-min::before   { content: '–'; }

.window-title { font-size: 18px; color: var(--ink); text-align: center; flex: 1; }

.window-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.window-body::-webkit-scrollbar { width: 12px; }
.window-body::-webkit-scrollbar-track { background: #d8d8d8; border-left: 1px solid var(--ink); }
.window-body::-webkit-scrollbar-thumb { background: #888; border: 1px solid var(--ink); }

/* ── Shared ── */
.w-rule { height: 1px; background: var(--ink); margin: 16px 0; }
.w-lbl  { font-size: 18px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: 10px; }

/* ── ABOUT ── */
.about-top  { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.about-ava  {
  width: 56px; height: 56px; flex-shrink: 0;
  border: 2px solid var(--ink); background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--paper);
}
.about-head { flex: 1; }
.about-name { font-size: 28px; color: var(--ink); line-height: 1.1; margin-bottom: 2px; }
.about-role { font-size: 18px; color: var(--ink); margin-bottom: 2px; }
.about-loc  { font-size: 16px; color: var(--dim); }
.about-bio  { font-size: 20px; line-height: 1.6; color: var(--muted); margin-bottom: 18px; }

.about-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 2px solid var(--ink); overflow: hidden; margin-bottom: 14px;
}
.ab-stat { padding: 12px 6px; text-align: center; border-right: 1px solid var(--ink); }
.ab-stat:last-child { border-right: none; }
.ab-n { font-size: 34px; color: var(--ink); line-height: 1; margin-bottom: 2px; }
.ab-l { font-size: 15px; color: var(--dim); }

.sk-wrap { display: flex; flex-wrap: wrap; gap: 5px; }
.sk {
  font-size: 18px; color: var(--ink); border: 1.5px solid var(--ink);
  padding: 3px 10px; background: var(--paper);
  transition: background .07s, color .07s;
}
.sk:hover { background: var(--ink); color: var(--paper); }

.edu-name { font-size: 19px; color: var(--ink); margin-bottom: 2px; }
.edu-sub  { font-size: 17px; color: var(--dim); }
.edu-item + .edu-item { margin-top: 10px; }

/* ── PROJECTS ── */
.proj { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.15); }
.proj:last-child { border-bottom: none; }
.proj-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.proj-n   { font-size: 17px; color: var(--dim); flex-shrink: 0; min-width: 24px; }
.proj-title { font-size: 22px; color: var(--ink); flex: 1; line-height: 1.2; }
.proj-title.feat { color: var(--ink); }
.proj-title em {
  font-style: normal; font-size: 13px; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: 1px 5px; vertical-align: middle; margin-left: 7px;
}
.proj-s   { font-size: 17px; flex-shrink: 0; white-space: nowrap; }
.proj-s.wip  { color: var(--ink); }
.proj-s.done { color: var(--dim); }
.proj-sub  { font-size: 17px; color: var(--dim); margin-bottom: 5px; padding-left: 32px; }
.proj-desc { font-size: 19px; line-height: 1.5; color: var(--muted); padding-left: 32px; margin-bottom: 5px; }
.proj-tags { font-size: 16px; color: var(--dim); padding-left: 32px; }

/* ── FOLDER ── */
.folder-empty {
  display: flex; align-items: center; justify-content: center;
  min-height: 200px; flex-direction: column; gap: 14px;
}
.folder-empty-label { font-size: 20px; color: var(--dim); letter-spacing: .08em; }

/* ── CONTACT ── */
.ct-head { font-size: 54px; line-height: .92; color: var(--ink); }
.ct-head em { font-style: normal; }
.ct-rule-top    { margin: 22px 0; }
.ct-rule-bottom { margin-top: 20px; }
.ct-link {
  display: flex; align-items: center; gap: 12px; padding: 15px 0;
  text-decoration: none; color: inherit;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  transition: background .07s, padding-left .1s;
}
.ct-link:last-of-type { border-bottom: none; }
.ct-link:hover { background: var(--ink); padding-left: 10px; }
.ct-link:hover * { color: var(--paper) !important; }
.ct-arrow    { font-size: 20px; color: var(--dim); }
.ct-platform { font-size: 20px; color: var(--ink); min-width: 90px; }
.ct-handle   { font-size: 18px; color: var(--dim); }
.ct-note     { font-size: 17px; color: var(--dim); margin-top: 8px; }
.ct-note code {
  font-size: 17px; color: var(--ink);
  background: #eee; padding: 0 4px; border: 1px solid var(--ink);
}

/* ── TASKBAR ── */
#taskbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--tb-h);
  background: var(--paper); border-top: 2px solid var(--ink);
  display: flex; align-items: center; padding: 0 14px; gap: 10px;
  z-index: 1000;
}
.tb-brand { font-size: 18px; color: var(--ink); white-space: nowrap; }
.tb-apps  { flex: 1; display: flex; align-items: center; gap: 4px; }
.tb-btn {
  font-family: var(--font); font-size: 18px; padding: 1px 11px;
  border: 1.5px solid var(--ink); background: #e8e8e8; color: var(--ink);
  transition: background .07s, color .07s;
}
.tb-btn:hover  { background: var(--ink); color: var(--paper); }
.tb-btn.active { background: var(--ink); color: var(--paper); }
.tb-clock { font-size: 18px; color: var(--ink); min-width: 44px; text-align: right; }

/* ── CLIPPY ── */
#clippy {
  position: fixed; right: 24px; bottom: calc(var(--tb-h) + 14px);
  z-index: 3000; display: flex; flex-direction: column; align-items: flex-end;
}
#clippy-char {
  width: 150px;
  animation: clippy-idle 5s ease-in-out infinite;
  display: block;
}
#clippy-char:hover { animation: none; transform: scale(1.06) rotate(-2deg); }
@keyframes clippy-idle {
  0%,100% { transform: translateY(0) rotate(0deg); }
  30%     { transform: translateY(-5px) rotate(1deg); }
  70%     { transform: translateY(-2px) rotate(-1deg); }
}
.clippy-img {
  width: 150px; height: auto; display: block;
  filter: drop-shadow(2px 6px 12px rgba(0,0,0,0.2));
}

/* Bubble */
#clippy-bubble {
  background: var(--paper); border: 2px solid var(--ink);
  padding: 12px 14px 10px; width: 250px; margin-bottom: 8px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
  position: relative; animation: cpop .14s cubic-bezier(.2,.9,.3,1.1);
}
#clippy-bubble::after {
  content: ''; position: absolute; bottom: -10px; right: 28px;
  border: 5px solid transparent; border-top-color: var(--ink);
}
#clippy-bubble.hidden { display: none; }
@keyframes cpop { from{opacity:0;transform:scale(.88)} to{opacity:1;transform:none} }

.clippy-x {
  position: absolute; top: 4px; right: 6px;
  background: none; border: none; font-family: var(--font);
  font-size: 18px; color: var(--ink); line-height: 1; padding: 2px 4px;
}
.clippy-x:hover { background: var(--ink); color: var(--paper); }

#clippy-msg {
  font-family: var(--mono); font-size: 19px; line-height: 1.5;
  color: var(--ink); margin-bottom: 10px; padding-right: 18px; min-height: 24px;
}

/* Navigation buttons inside bubble */
.clippy-nav-btns { display: flex; flex-direction: column; gap: 4px; }
.clippy-nav-btn  {
  font-family: var(--mono); font-size: 17px;
  padding: 4px 10px; text-align: left;
  background: var(--paper); border: 1.5px solid var(--ink); color: var(--ink);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
  transition: background .07s, color .07s;
}
.clippy-nav-btn:hover { background: var(--ink); color: var(--paper); }

/* ── GAMES ── */
.games-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  min-height: 260px;
}
.game-box {
  border: 2px solid var(--ink); padding: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.game-title {
  font-size: 18px; color: var(--ink); text-transform: uppercase;
  letter-spacing: .06em; align-self: flex-start; margin-bottom: 4px;
}
.game-status {
  font-size: 17px; color: var(--muted); text-align: center; min-height: 22px;
}
.game-btn {
  font-family: var(--font); font-size: 18px;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  padding: 4px 16px; cursor: pointer; margin-top: 4px;
  transition: background .07s, color .07s;
}
.game-btn:hover { background: var(--ink); color: var(--paper); }

/* Tic-tac-toe */
.ttt-grid {
  display: grid; grid-template-columns: repeat(3, 52px);
  grid-template-rows: repeat(3, 52px);
  border: 2px solid var(--ink); gap: 0;
}
.ttt-cell {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; border: 1px solid rgba(0,0,0,0.3); cursor: pointer;
  font-family: var(--font); color: var(--ink);
  transition: background .07s;
}
.ttt-cell:hover { background: rgba(0,0,0,0.07); }
.ttt-x { color: var(--ink); font-weight: bold; }
.ttt-o { color: var(--muted); }

/* SNAKE */
.snake-box { align-items: center; }
#snake-canvas {
  border: 2px solid var(--ink);
  display: block; background: #000;
  image-rendering: pixelated;
}
.snake-score-row {
  display: flex; gap: 16px; justify-content: center;
  margin: 4px 0;
}
.snake-dpad { margin: 6px 0; user-select: none; }
.snake-dpad-row { display: flex; justify-content: center; gap: 4px; margin: 2px 0; }
.dpad-gap { width: 44px; height: 44px; }
.dpad-btn {
  font-family: var(--font); font-size: 20px;
  width: 44px; height: 44px;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .07s, color .07s; cursor: pointer;
}
.dpad-btn:hover, .dpad-btn:active { background: var(--ink); color: var(--paper); }

/* ── MOBILE DOCK и HEADER (скрыты на десктопе) ── */
#mobile-dock   { display: none; }
#mobile-header { display: none; }

/* ── MOBILE ── */
@media (max-width: 600px) {
  /* Скрыть лишнее */
  #cursor      { display: none; }
  #menubar     { display: none; }
  #desk-hero   { display: none; }
  #desk-card   { display: none; }
  #desk-note   { display: none; }
  #taskbar     { display: none; }
  #ctx-menu    { display: none; }
  #mobile-dock { display: none !important; }

  /* Десктоп — полный экран под header */
  #desktop { top: 0; bottom: 0; background: var(--desk); }

  /* Мобильный header */
  #mobile-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    height: 48px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    font-family: var(--font);
  }
  .mh-logo  { font-size: 22px; color: var(--ink); font-weight: 700; }
  .mh-clock { font-size: 20px; color: var(--ink); }

  /* Иконки — в центре как на десктопе, но поменьше */
  #desk-icons {
    position: absolute;
    top: calc(50% + 24px); left: 50%;   /* +24px = смещение из-за header */
    transform: translate(-50%, -50%);
    display: grid !important;
    grid-template-columns: repeat(2, 96px);
    gap: 14px 12px;
    z-index: 10;
  }
  .desk-icon       { width: 96px; padding: 8px 4px 6px; }
  .desk-icon-img   { width: 72px; height: 72px; }
  .desk-icon-img svg { width: 40px; height: 40px; }
  .desk-icon-label { font-size: 16px; }

  /* Окна — полноэкранные (под header) */
  .window {
    position: fixed !important;
    top: 48px !important; left: 0 !important; right: 0 !important;
    width: 100vw !important; min-width: unset !important; max-width: 100vw !important;
    height: calc(100dvh - 48px) !important;
    max-height: calc(100dvh - 48px) !important;
    border-left: none; border-right: none; border-bottom: none;
    transform: none !important;
  }
  .window-body {
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Скрепочка на мобиле — меньше, ниже */
  #clippy {
    right: 8px;
    bottom: 12px;
  }
  .clippy-img    { width: 80px; }
  #clippy-bubble { width: 200px; }

  /* Шапка окна — крупнее на мобиле */
  .window-titlebar {
    height: 44px !important;
    padding: 0 10px !important;
  }
  .window-title { font-size: 24px !important; }
  .dot {
    width: 26px !important; height: 26px !important;
    font-size: 18px !important;
  }
  .window-dots-spacer { width: 56px !important; }

  /* Contact — убрать избыточную высоту */
  .ct-head { font-size: 34px !important; }
  .ct-link { padding: 10px 0 !important; }
  .ct-platform { font-size: 18px !important; min-width: 80px !important; }
  .ct-handle   { font-size: 16px !important; }
  .ct-arrow    { font-size: 18px !important; }
  .ct-note     { font-size: 15px !important; }
  .ct-rule-top    { margin: 10px 0 !important; }
  .ct-rule-bottom { margin: 8px 0 0 !important; }

  /* Snake на мобиле — уменьшить канвас чтобы влезал d-pad */
  #snake-canvas { width: 160px !important; height: 160px !important; }

  /* Boot */
  .boot-inner { width: 90vw; }

  /* Games в колонку */
  .games-wrap { grid-template-columns: 1fr; }
}
