/* Страница «Посуточно» в стиле самой игры: ночная панелька, бумага объявления, тетрадный листок с правилами, красный акцент.
   Шрифты игры: PT Serif (заголовки), PT Sans (текст), Caveat (рукописное). Шапка и подвал студии — в /site.css. */

@font-face { font-family: 'PT Serif'; font-weight: 700; font-display: swap; src: url(/fonts/pt-serif-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Serif'; font-weight: 700; font-display: swap; src: url(/fonts/pt-serif-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122; }
@font-face { font-family: 'PT Sans'; font-weight: 400; font-display: swap; src: url(/fonts/pt-sans-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Sans'; font-weight: 400; font-display: swap; src: url(/fonts/pt-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122; }
@font-face { font-family: 'PT Sans'; font-weight: 700; font-display: swap; src: url(/fonts/pt-sans-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Sans'; font-weight: 700; font-display: swap; src: url(/fonts/pt-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122; }
@font-face { font-family: Caveat; font-weight: 700; font-display: swap; src: url(/fonts/caveat-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Caveat; font-weight: 700; font-display: swap; src: url(/fonts/caveat-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122; }

html:has(body.pos) { overflow-x: clip; }

body.pos {
  overflow-x: clip;
  --p-night: #0e1013;
  --p-night-2: #161a20;
  --p-blue: #1d2633;
  --p-paper: #efe9dc;
  --p-paper-2: #f8f4ea;
  --p-ink: #1d2b4a;
  --p-text: #d9d3c6;
  --p-dim: #9a968d;
  --p-red: #b8402f;
  --p-red-hi: #d4553f;
  --p-app: #2f5a73;
  background: var(--p-night);
  background-image: none;
  color: var(--p-text);
  font-family: 'PT Sans', system-ui, sans-serif;
}

.pos h2 {
  margin: 0 0 0.6rem;
  color: var(--p-paper);
  font: 700 clamp(1.7rem, 5vw, 2.4rem) / 1.1 'PT Serif', Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
}

.p-sub {
  max-width: 38rem;
  margin: 0 0 1rem;
  color: var(--p-text);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ---------- кнопка ---------- */

.p-btn {
  display: block;
  padding: 0.85rem 1.2rem;
  border-radius: 0.6rem;
  background: var(--p-red);
  box-shadow: 0 0.25rem 0 #6f2418;
  color: #fff;
  font: 700 1.15rem/1.2 'PT Sans', sans-serif;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.p-btn:hover { background: var(--p-red-hi); }
.p-btn:active { transform: translateY(0.2rem); box-shadow: 0 0.05rem 0 #6f2418; }
.p-btn:focus-visible { outline: 3px solid var(--p-paper); outline-offset: 3px; }

.p-btn--big {
  display: inline-block;
  min-width: 16rem;
  margin: 0.4rem 0 1.4rem;
  padding: 1rem 2rem;
  font-size: 1.3rem;
}

/* ---------- первый экран ---------- */

.p-hero {
  padding: 2.5rem 1rem 4rem;
  background:
    linear-gradient(rgba(14, 16, 19, 0.55), rgba(14, 16, 19, 0.96)),
    url(/img/posutochno/night.webp) center 40% / cover;
}

.p-hero-in {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 62rem;
  margin: 0 auto;
}

/* две колонки — только когда объявление (с наклоном) точно влезает; на телефоне горизонтально — одна колонка */
@media (min-width: 60rem) {
  .p-hero { padding: 4.5rem 1rem 5.5rem; }
  .p-hero-in { grid-template-columns: 1fr 26rem; gap: 3rem; }
  .p-title { text-align: left; }
}

.p-title { text-align: center; }

.p-icon {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 1.4rem;
  box-shadow: 0 0 0 2px rgba(239, 233, 220, 0.18), 0 1rem 2.5rem rgba(0, 0, 0, 0.7);
}

.p-title h1 {
  margin: 1rem 0 0.4rem;
  color: var(--p-paper);
  font: 700 clamp(3rem, 12vw, 5.6rem) / 0.95 'PT Serif', Georgia, serif;
  letter-spacing: -0.02em;
  text-shadow: 0 0.3rem 2rem rgba(0, 0, 0, 0.8);
}

.p-tagline {
  margin: 0;
  color: var(--p-text);
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  line-height: 1.35;
}

/* объявление: белая карточка приложения */
.p-flat {
  overflow: hidden;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  border-radius: 1rem;
  background: var(--p-paper-2);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.65);
  color: #22262b;
  transform: rotate(1.2deg);
}

.p-flat-app {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  background: var(--p-app);
  color: #e8f0f4;
  font-size: 0.85rem;
}

.p-flat-app span:first-child { font-weight: 700; letter-spacing: 0.02em; }

.p-flat-photos img { display: block; width: 100%; height: auto; }

.p-flat-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 2px;
}

.p-flat-thumbs img { aspect-ratio: 4 / 3; object-fit: cover; }

.p-flat-body { padding: 1rem 1.1rem 1.2rem; }

.p-flat-name {
  margin: 0;
  color: #22262b !important;
  font: 700 1.3rem/1.2 'PT Sans', sans-serif !important;
}

.p-flat-addr { margin: 0.2rem 0 0.6rem; color: #6b6f74; font-size: 0.95rem; }

.p-flat-price { margin: 0 0 0.6rem; color: #22262b; font-size: 1.1rem; }

.p-flat-price b { color: var(--p-red); font: 700 2rem/1 'PT Serif', serif; }

.p-flat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

.p-flat-tags li {
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  background: #e3ddd0;
  font-size: 0.88rem;
}

.p-flat-tags li:last-child { background: #f1d7cf; color: #8a2f20; font-weight: 700; }

.p-host {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #ddd6c8;
}

.p-host img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #cfc7b8;
  object-fit: cover;
}

.p-host b { display: block; font-size: 1rem; }
.p-host span { color: #6b6f74; font-size: 0.88rem; }

.p-note { margin: 0.7rem 0 0; color: #6b6f74; font-size: 0.85rem; text-align: center; }

/* ---------- полосы ---------- */

.p-band { padding: 3.5rem 0; }
.p-band--dark { background: var(--p-night-2); }
.p-band--kitchen { background: linear-gradient(180deg, var(--p-blue), var(--p-night)); }
.p-band--where { background: var(--p-blue); text-align: center; }
.p-band--where .p-sub { margin-inline: auto; }

/* ---------- ролик ---------- */

.p-band--video { background: var(--p-night); }
.p-video video { display: block; width: 100%; height: auto; border-radius: 0.8rem; background: #000; box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.6); }
.p-video--tall { display: none !important; max-width: 22rem; margin: 0 auto; }

@media (max-width: 40rem) {
  .p-video--wide { display: none !important; }
  .p-video--tall { display: block !important; }
}

/* ---------- листок с правилами ---------- */

.p-rules-wrap { display: grid; gap: 2rem; align-items: center; }

@media (min-width: 52rem) {
  .p-rules-wrap { grid-template-columns: 1fr 27rem; gap: 3rem; }
}

.p-sheet {
  position: relative;
  width: 100%;
  max-width: 27rem;
  margin: 0 auto;
  padding: 2rem 1.3rem 1.3rem 2.6rem;
  background:
    linear-gradient(90deg, transparent 1.9rem, rgba(184, 64, 47, 0.45) 1.9rem, rgba(184, 64, 47, 0.45) calc(1.9rem + 1px), transparent calc(1.9rem + 1px)),
    repeating-linear-gradient(180deg, transparent 0, transparent 1.75rem, rgba(54, 92, 150, 0.28) 1.75rem, rgba(54, 92, 150, 0.28) calc(1.75rem + 1px)),
    var(--p-paper);
  background-position: 0 0, 0 1.1rem, 0 0;
  box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, 0.55);
  color: var(--p-ink);
  font: 700 1.38rem/1.75rem Caveat, cursive;
  transform: rotate(-1.4deg);
}

.p-magnet {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  width: 2.2rem;
  height: 2.2rem;
  margin-left: -1.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e0705b, #8d2a1c 70%);
  box-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.45);
}

.p-sheet h3 { margin: 0 0 0.3rem; font: inherit; font-size: 1.6rem; text-decoration: underline; text-underline-offset: 0.2rem; }
.p-sheet ol { margin: 0; padding-left: 1.3rem; }
.p-sheet li { padding-left: 0.2rem; }
.p-sign { margin: 0.2rem 0 0; text-align: right; }

/* восьмое правило — другим почерком, мельче и наискосок, как в игре */
.p-other {
  margin: 0.5rem 0 0;
  color: #3b3f47;
  font: 400 1.05rem/1.4rem 'Segoe Script', 'Comic Sans MS', cursive;
  font-style: italic;
  transform: rotate(-1.5deg);
}

/* ---------- скриншоты ---------- */

.p-shots {
  /* на телефоне и ноутбуке — лента, край затухает: видно, что листается */
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(15rem, 62vw);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: #3a4250 transparent;
}

.p-shots img {
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
  box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.5);
  scroll-snap-align: start;
}

/* на широком экране — все семь в ряд, шире основной колонки */
@media (min-width: 75rem) {
  .p-band--shots .wrap { max-width: 84rem; }
  .p-shots { grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

.p-shots:focus-visible { outline: 2px solid var(--p-paper); outline-offset: 4px; }

/* ---------- ночь ---------- */

.p-night {
  padding: 6rem 0 5rem;
  background:
    linear-gradient(90deg, rgba(14, 16, 19, 0.96) 30%, rgba(14, 16, 19, 0.55)),
    url(/img/posutochno/door.webp) right center / cover;
}

@media (max-width: 40rem) {
  .p-night {
    background:
      linear-gradient(rgba(14, 16, 19, 0.7), rgba(14, 16, 19, 0.95)),
      url(/img/posutochno/door.webp) center / cover;
  }
}

.p-clock {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.15rem 0.6rem;
  border-radius: 0.3rem;
  background: rgba(184, 64, 47, 0.9);
  color: #fff;
  font: 700 1.3rem/1.3 'PT Sans', monospace;
  letter-spacing: 0.08em;
}

/* ---------- что в игре ---------- */

.p-notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.p-notes article {
  padding: 1.1rem 1.2rem;
  border: 1px solid #2a313c;
  border-radius: 0.8rem;
  background: var(--p-night-2);
}

.p-notes h3 { margin: 0 0 0.3rem; color: var(--p-paper); font: 700 1.25rem/1.2 'PT Serif', serif; }
.p-notes p { margin: 0; line-height: 1.5; }

.p-phones { margin: 1.5rem 0 0; color: var(--p-dim); font: 700 1.5rem Caveat, cursive; }

/* ---------- лица ---------- */

.p-faces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.p-faces figure { margin: 0; }

@media (max-width: 40rem) {
  .p-faces { grid-template-columns: repeat(2, 1fr); gap: 1rem 0.8rem; }
  .p-faces figcaption { font-size: 0.88rem; }
  .p-faces b { font-size: 1.02rem; }
}

.p-faces img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 0.8rem;
  background: radial-gradient(circle at 50% 35%, #3a4352, #1a1f27 75%);
  object-fit: cover;
}

.p-faces figcaption { padding-top: 0.6rem; color: var(--p-dim); font-size: 0.95rem; }
.p-faces b { display: block; color: var(--p-paper); font: 700 1.15rem/1.2 'PT Serif', serif; }
.p-faces q { display: block; margin-top: 0.35rem; color: var(--p-text); font-style: italic; }

/* ---------- где поиграть ---------- */

.p-soon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-soon li {
  padding: 0.3rem 0.8rem;
  border: 1px solid #3a4558;
  border-radius: 1rem;
  color: var(--p-dim);
  font-size: 0.95rem;
}

.pos .foot { background: #08090b; }

@media (prefers-reduced-motion: reduce) {
  .p-btn { transition: none; }
}

/* «Где поиграть»: браузер и APK для Android рядом (владелец 17.10.2026: «апк файла посуточно на сайте нет») */
.p-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1rem;
}

.p-btn--ghost {
  background: transparent;
  border: 2px solid var(--p-paper);
  box-shadow: none;
  color: var(--p-paper);
}

.p-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.p-apk-note {
  max-width: 34rem;
  margin: 0 auto 1.2rem;
  font-size: 0.9rem;
  opacity: 0.85;
}
