
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}


.scene {
  height: 100%;
  display: grid;
  place-items: center;
}

/* Коробка-кнопка */
.box {
  width: 420px;           
  max-width: 80vw;
  cursor: pointer;
  user-select: none;
  image-rendering: auto;  
}

/* Подпись */
.hint {
  margin-top: 16px;
  opacity: 0.75;
  font-size: 14px;
  text-align: center;
}

/* Слегка прозрачный текст для моих комментариев любимых. ЗАМЕТКИ??? */
.note {
  margin: 0 0 15px 0;
  opacity: 0.85;
}


/* Модальное окно (оверлей) */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  place-items: center;
  padding: 20px;
}

.modal {
  width: min(420px, 92vw);
  background: #f2e8cf; /* тёплая бумага */
  color: #2b2b2b;
  border: 1px solid rgba(0,0,0,0.25);
  padding: 20px 22px;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.25);
  position: relative;

  font-family: "IM Fell English", serif;
}

/* текстура бумаги?? */
.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.015),
      rgba(0,0,0,0.015) 1px,
      transparent 1px,
      transparent 2px
    );
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* заголовок */
.modal h2 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: normal;
}

/* текст */
.modal p {
  margin: 0 0 14px 0;
  font-size: 14px;
  opacity: 0.9;
}

/* строка ввода */
.codeRow {
  display: flex;
  gap: 8px;
}

/* поле ввода */
input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  font-size: 16px;
  font-family: inherit;

  background: transparent;
  color: #2b2b2b;

  border: none;
  border-bottom: 1px dashed rgba(0,0,0,0.5);
  outline: none;
}

/* кнопки */
button {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.35);
  padding: 6px 10px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

button:hover {
  background: rgba(0,0,0,0.05);
}

/* ошибка */
.error {
  margin-top: 12px;
  font-size: 13px;
  color: #7a1f1f;
}


/* Meadow page background (day/night) */
body.meadow {
  --meadow-bg: url("meadow/meadow_day.png"); /* по умолчанию день */

  background-color: #0a1208;
  background-image: var(--meadow-bg);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;
  background-attachment: scroll;
}

/* ночная версия */
body.meadow.is-night {
  --meadow-bg: url("meadow/meadow_night.png");
}

body.meadow .scene {
  min-height: 100vh;
  height: auto;
}

html.meadow, body.meadow {
  height: auto;
  min-height: 100%;
}

/* =========================
   TASKBAR
========================= */

#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 42px;

  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(2px);

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 12px;
  box-sizing: border-box;

  z-index: 1000;

  font-family: monospace;
  font-size: 13px;
}

.taskbar-left,
.taskbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

#taskbar button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

#taskbar button:hover {
  background: rgba(255,255,255,0.1);
}

/* Иконка звууука (печенька посоветовал) */
.volume-icon {
  font-size: 14px;
  opacity: 0.75;
  user-select: none;
}


/* Volume slider */
#volume-slider {
  width: 80px;
}

/* Clock */
#clock {
  opacity: 0.75;
  min-width: 48px;
  text-align: right;
}

/* =========================
   LOCATIONS PANEL
========================= */

#locations-panel {
  position: fixed;
  bottom: 42px;
  left: 12px;

  background: rgba(0,0,0,0.9);
  border: 1px solid rgba(255,255,255,0.25);

  padding: 8px 10px;
  font-family: monospace;
  font-size: 13px;

  z-index: 999;
}

#locations-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#locations-panel li {
  margin: 4px 0;
}

#locations-panel a {
  color: #cfe6ff;
  text-decoration: none;
}

#locations-panel a:hover {
  text-decoration: underline;
}

/* обновление для работы панели */
#locations-panel {
  transition: opacity 0.15s ease, transform 0.15s ease;
  opacity: 0;
  transform: translateY(6px);
}

#locations-panel.open {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   CONTENT OFFSET
========================= */

.scene {
  padding-bottom: 60px;
}

/* --- Fonts ---
Cormorant через Google Fonts.
Basteleur лучше хостить локально. */

/* Блок газеты — "лист" */
.newspaper{
  width: min(820px, 88vw);
  margin: 24px auto 60px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  overflow: hidden;

  /* Бумага. Можно заменить на текстуру (paper.png) */
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(0,0,0,0.18), transparent 55%),
    linear-gradient(180deg, rgba(245,239,224,0.92), rgba(231,223,205,0.92));
}

/* Шапка газеты */
.newspaper__header{
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.08);
}

.newspaper__name{
  font-family: "Basteleur", "Cormorant Garamond", serif;
  letter-spacing: 0.04em;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.05;
  color: rgba(20,16,10,0.95);
  text-transform: uppercase;
}

.newspaper__meta{
  margin-top: 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  color: rgba(20,16,10,0.75);
  display: flex;
  gap: 10px;
  align-items: center;
}
.newspaper__meta .dot{ opacity: 0.6; }

/* Внутри: пролистываемая лента */
.newspaper__body{
  padding: 14px 14px 18px;
}

.newspaper__feed{
  max-height: min(54vh, 520px); /* 4–6 карточек и потом скролл */
  overflow: auto;
  padding-right: 6px;
  display: grid;
  gap: 10px;
}

/* Карточки статей */
.news-card{
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

.news-card:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.32);
}

.news-card__thumb{
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
}

.news-card__title{
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1.15;
  color: rgba(20,16,10,0.95);
}

.news-card__excerpt{
  margin: 6px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(20,16,10,0.78);
}

.news-card__footer{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  color: rgba(20,16,10,0.62);
}

.news-card__hint{ opacity: 0.75; }

/* Modal (полная статья) */
.news-modal{
  width: min(860px, 92vw);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 14px;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(180deg, rgba(245,239,224,0.98), rgba(231,223,205,0.98));
  color: rgba(20,16,10,0.95);
}

.news-modal::backdrop{
  background: rgba(0,0,0,0.55);
}

.news-modal__inner{
  margin: 0;
  padding: 18px 18px 22px;
  position: relative;
}

.news-modal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.16);
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.news-modal__title{
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  line-height: 1.12;
}

.news-modal__sub{
  margin-top: 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  color: rgba(20,16,10,0.65);
}

.news-modal__content{
  margin-top: 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  line-height: 1.55;
}
.news-modal__content p{ margin: 0 0 12px; }

/* Мобилки */
@media (max-width: 520px){
  .news-card{ grid-template-columns: 72px 1fr; }
  .news-card__thumb{ width: 72px; height: 72px; }
}



}
