.page-home {
  --home-radius: 0px;
  --home-gap: 24px;
  --home-panel-bg: #1E232B;
  --home-purple-deep: #2A1B38;
  --home-orange-deep: #3A2311;
  --home-green-deep: #123B2A;
  display: block;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-deep);
  position: relative;
}

.page-home__breadcrumb {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.page-home__breadcrumb a {
  color: var(--neon);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home__breadcrumb a:hover,
.page-home__breadcrumb a:focus-visible {
  color: var(--bright-yellow);
  outline: none;
}

.page-home__zones {
  padding: 28px 0 36px;
  position: relative;
}

.page-home__zone-head {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
}

.page-home__zone-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text-main);
  position: relative;
  display: inline-block;
  padding-right: 14px;
}

.page-home__zone-title::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--bright-yellow);
  margin-left: 10px;
  vertical-align: middle;
}

.page-home__zone-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.page-home__tile-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-home__tile {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-home__tile:hover,
.page-home__tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  filter: brightness(1.15);
  outline: none;
}

.page-home__tile-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  height: 100%;
}

.page-home__tile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.page-home__tile-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
  max-width: 100%;
  opacity: 0.85;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.3);
}

.page-home__tile-batch {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 8px;
  color: #14161A;
  background: var(--neon);
  box-shadow: 0 0 18px rgba(140, 255, 0, 0.35);
  letter-spacing: 0.06em;
}

.tile-item--purple.page-home__tile {
  background: var(--bg-purple);
}

.tile-item--orange.page-home__tile {
  background: var(--bg-orange);
}

.tile-item--yellow.page-home__tile {
  background: #6B5A00;
}

.tile-item--green.page-home__tile {
  background: var(--bg-green);
}

.tile-item--blue.page-home__tile {
  background: #10233F;
}

.tile-item--neon.page-home__tile {
  background: #1E2B14;
}

.tile-item--coral.page-home__tile {
  background: #482019;
}

.tile-item .tile-item__label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.05em;
}

.tile-item .tile-item__count {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--bright-yellow);
  position: relative;
  padding-left: 12px;
}

.tile-item .tile-item__count::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: currentColor;
}

.page-home__latest {
  padding: 36px 0;
  position: relative;
}

.page-home__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.page-home__section-head--hot {
  border-bottom-color: var(--coral);
}

.page-home__section-head--index {
  border-bottom-color: var(--blue);
}

.page-home__section-head--tags {
  border-bottom-color: var(--neon);
}

.page-home__section-head--about {
  border-bottom-color: var(--bright-yellow);
}

.page-home__section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.page-home__section-index {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--bright-yellow);
  margin-right: 12px;
  vertical-align: middle;
  border: 1px solid var(--line);
  padding: 4px 6px;
}

.page-home__section-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.page-home__card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.page-home__card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-home__card:hover,
.page-home__card:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 4px 24px rgba(255, 230, 77, 0.15);
}

.page-home__card-fig {
  position: relative;
  width: 100%;
  aspect-ratio: 220 / 124;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(225deg, rgba(0, 0, 0, 0.2) 25%, transparent 25%);
  background-size: 20px 20px;
}

.page-home__card-fig--night {
  background-color: #1A2330;
}

.page-home__card-fig--purple {
  background-color: #2A1B38;
}

.page-home__card-fig--terminal {
  background-color: #132015;
}

.page-home__card-fig--field {
  background-color: #3A2311;
}

.page-home__card-fig--tool {
  background-color: #123B2A;
}

.page-home__card-fig--talk {
  background-color: #1E232B;
}

.page-home__card-fig--archive {
  background-color: #3D2A1A;
}

.page-home__card-fig--series {
  background-color: #172030;
}

.page-home__card-fig--setting {
  background-color: #2A1B38;
}

.page-home__card-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
  mix-blend-mode: screen;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.page-home__card:hover .page-home__card-fig img {
  opacity: 1;
}

.card-item.page-home__card {
  margin: 0;
}

.page-home__card .card-item__title {
  font-size: 15px;
  line-height: 1.35;
  padding: 12px 14px 4px;
}

.page-home__card .card-item__meta {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 0 14px 10px;
  font-family: var(--font-mono);
}

.page-home__card .card-item__status {
  position: absolute;
  top: 92px;
  right: 10px;
  z-index: 2;
}

.page-home__hot {
  padding: 36px 0;
  display: block;
}

.page-home__hot-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home__hot-rail {
  display: none;
}

.page-home__hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home__hot-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  grid-template-areas:
    "seq main meta"
    "seq meter meter";
  align-items: center;
  gap: 4px 12px;
  padding: 14px 16px;
  background: var(--bg-panel);
  border-left: 3px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.page-home__hot-row:hover {
  border-left-color: var(--yellow);
  background: #262C36;
  transform: translateX(4px);
}

.page-home__hot-row .seq-num {
  grid-area: seq;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--bright-yellow);
  opacity: 0.85;
}

.page-home__hot-main {
  grid-area: main;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-home__hot-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.page-home__hot-meta {
  grid-area: meta;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

.page-home__hot-meter {
  grid-area: meter;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.meter-fill {
  display: block;
  height: 100%;
}

.page-home__index {
  padding: 36px 0;
  display: block;
}

.page-home__table-wrap {
  margin-top: 20px;
  width: 100%;
  overflow-x: auto;
}

.page-home__matrix {
  width: 100%;
  min-width: 720px;
  font-size: 14px;
}

.page-home__matrix th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: #191D24;
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
  text-align: left;
}

.page-home__matrix td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 14px;
  color: var(--text-main);
  transition: background 0.2s ease;
}

.page-home__matrix tbody tr {
  transition: background 0.2s ease;
}

.page-home__matrix tbody tr:hover {
  background: linear-gradient(90deg, rgba(255, 230, 77, 0.08), rgba(31, 122, 255, 0.05), transparent 80%);
}

.page-home__thumb {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #262D38;
}

.page-home__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.page-home__zone-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  letter-spacing: 0.04em;
  color: #14161A;
}

.page-home__zone-tag--purple {
  background: #C4A6E8;
}

.page-home__zone-tag--yellow {
  background: var(--yellow);
}

.page-home__zone-tag--neon {
  background: var(--neon);
}

.page-home__zone-tag--blue {
  background: #7FAFFF;
}

.page-home__zone-tag--coral {
  background: var(--coral);
  color: #fff;
}

.page-home__zone-tag--green {
  background: var(--status-green);
  color: #14161A;
}

.page-home__zone-tag--orange {
  background: #E8A87C;
}

.page-home__batch {
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--neon);
}

.page-home__tags {
  padding: 36px 0;
}

.page-home__index-strip {
  margin: 16px 0 8px;
  flex-wrap: wrap;
}

.page-home__index-strip--year {
  margin-bottom: 16px;
}

.page-home__tag-cloud {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.page-home__tag {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-home__tag:focus-visible {
  outline: 2px solid var(--bright-yellow);
  outline-offset: 2px;
}

.page-home__tag:hover {
  transform: translateY(-2px);
}

.page-home__tag--xl {
  font-size: 26px;
  font-weight: 900;
  padding: 10px 16px;
  background: var(--yellow);
  color: #14161A;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.page-home__tag--lg {
  font-size: 20px;
  font-weight: 900;
  padding: 8px 14px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
}

.page-home__tag--md {
  font-size: 16px;
  font-weight: 700;
  padding: 6px 12px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-mono);
}

.page-home__tag--sm {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  background: #262D38;
  color: var(--text-main);
  border-color: var(--line);
  font-family: var(--font-mono);
}

.page-home__tag:hover {
  background: var(--neon);
  color: #14161A;
  border-color: transparent;
}

.page-home__tag-count {
  font-family: var(--font-mono);
  font-size: 0.8em;
  opacity: 0.75;
}

.page-home__about {
  padding: 36px 0 0;
}

.page-home__panel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.page-home__panel {
  border: 1px solid var(--line);
  background: var(--home-panel-bg);
}

.page-home__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--text-main);
  position: relative;
  transition: background 0.2s ease;
}

.page-home__summary::-webkit-details-marker {
  display: none;
}

.page-home__summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--bright-yellow);
  line-height: 1;
}

.page-home__panel[open] .page-home__summary::after {
  content: "–";
}

.page-home__summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.page-home__summary-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.page-home__panel-content {
  border-top: 1px solid var(--line);
  padding: 14px 18px 18px;
}

.page-home__panel-content p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 72ch;
}

.page-home__panel-content p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .page-home__tile,
  .page-home__card,
  .page-home__hot-row,
  .page-home__tag,
  .page-home__summary {
    transition: none;
  }
}

@media (min-width: 560px) {
  .page-home__tile-matrix {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .page-home__card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 860px) {
  .page-home {
    padding: 32px 32px 96px;
  }

  .page-home__tile-matrix {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .page-home__card-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .page-home__hot-layout {
    grid-template-columns: 44px 1fr;
    gap: 0;
  }

  .page-home__hot-rail {
    display: block;
    margin-top: 6px;
  }

  .page-home__hot-rail img {
    width: 32px;
    height: 320px;
    object-fit: cover;
  }

  .page-home__hot-list {
    gap: 0;
  }

  .page-home__hot-row {
    grid-template-columns: 40px 1fr auto 180px;
    grid-template-areas: "seq main meta meter";
    border-left: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 14px 12px;
  }

  .page-home__hot-row:hover {
    border-left: none;
    border-bottom-color: var(--yellow);
    transform: translateX(6px);
    background: rgba(255, 230, 77, 0.05);
  }

  .page-home__hot-meter {
    width: 180px;
  }

  .page-home__tag-cloud {
    gap: 12px;
  }
}

@media (min-width: 1200px) {
  .page-home__tile-matrix {
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
  }

  .page-home__card-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  .page-home__tile:nth-child(1) {
    grid-column: span 2;
  }

  .page-home__tile:nth-child(2) {
    grid-column: span 1;
  }

  .page-home__tile:nth-child(3) {
    grid-column: span 1;
  }

  .page-home__tile:nth-child(4) {
    grid-column: span 1;
  }

  .page-home__tile:nth-child(5) {
    grid-column: span 1;
  }

  .page-home__tile:nth-child(6) {
    grid-column: span 2;
  }

  .page-home__tile:nth-child(7) {
    grid-column: span 1;
  }

  .page-home__tile:nth-child(8) {
    grid-column: span 1;
  }

  .page-home__tile:nth-child(9) {
    grid-column: span 1;
  }

  .page-home__tile:nth-child(10) {
    grid-column: span 1;
  }

  .page-home__tile:nth-child(11) {
    grid-column: span 2;
  }
}
