@font-face {
  font-family: 'Home Video';
  src: url('../fonts/HomeVideo-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body:before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

body.loaded:before {
  opacity: 0;
}

:root{
  --bg:#121113;
  --fg:#878a98;
  --accent:#a9adbd;
  --muted:#6f7280;
  --panel:#1d1b1f;
  --panel-fill: rgba(40,38,44,0.48);
  --wine:#35242a;
  --wine-mid:#5d4e59;
  --glass: rgba(40,38,44,0.58);
  --hover: rgba(53,36,42,0.42);
  --date:#5d4e59;
  --max-w:1200px;
  --gap:24px;
  --radius:0;
  --line: 1px solid rgba(69,68,77,0.78);
  --outline: 2px solid rgba(169,173,189,0.4);
}

*{box-sizing:border-box}
html{
  margin:0;
  min-height:100%;
  background-color:var(--bg);
}
body{
  margin:0;
  min-height:100vh;
  overflow-x:clip;
  color:var(--fg);
  font-family:"Home Video", monospace, system-ui;
  line-height:1.45;
  font-size:12px;
  -webkit-font-smoothing:antialiased;
  text-shadow:0 1px 2px rgba(0,0,0,0.75);
  -webkit-tap-highlight-color:transparent;
}
body:after{
  content:'';
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-color:var(--bg);
  background-image:
    linear-gradient(rgba(18,17,19,0.48), rgba(18,17,19,0.62)),
    url('../static/backround.jpg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

a{color:var(--accent);text-decoration:none; transition: all 0.2s ease;}
a:hover{color:#c8cddc; text-shadow: 0 0 8px rgba(169,173,189,0.35);}
a:focus{outline:var(--outline);outline-offset:3px}

.skip-link{
  position:absolute;left:8px;top:8px;padding:8px;background:#111;border-radius:0;color:var(--fg);z-index:999;
  transform:translateY(-120%);transition:transform .18s ease-out;clip-path:inset(0);
}
.skip-link:focus{transform:none}

.wrapper{
  position:relative;
  z-index:1;
  max-width:var(--max-w);
  margin:0 auto;
  padding:20px 16px;
  border-left:var(--line);
  border-right:var(--line);
  background:var(--panel-fill);
  min-height:100vh;
}

@media (max-width: 480px) {
  .wrapper {
    padding: 16px 12px;
  }
}

.header{margin-bottom:20px; padding-bottom: 20px; border-bottom: var(--line);}
.stamps{
  display:grid;
  grid-template-columns:repeat(10, minmax(0, 1fr));
  grid-template-rows:repeat(2, 56px);
  gap:6px;
  align-items:center;
  justify-items:center;
}
.stamps img{
  display:block;
  max-width:100%;
  max-height:56px;
  width:auto;
  height:auto;
  object-fit:contain;
}

@media (max-width: 768px) {
  .stamps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    gap: 5px;
  }
  .stamps img {
    max-height: 44px;
  }
  .stamps img:first-child {
    grid-column: 1 / -1;
    max-height: 52px;
    width: min(100%, 280px);
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .stamps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 4px;
  }
  .stamps img {
    max-height: 34px;
  }
  .stamps img:first-child {
    grid-column: 1 / -1;
    max-height: 40px;
    width: min(100%, 220px);
  }
}

.kaomoji{
  font-family: "Segoe UI Symbol", "Apple Gothic", "Hiragino Sans", "Noto Sans CJK JP", sans-serif;
  font-weight: normal;
  text-shadow: none;
  white-space: nowrap;
  letter-spacing: 0;
}

.layout{display:grid;grid-template-columns:2fr 1fr;gap:0}
.main-content{padding-right:24px;border-right:var(--line)}
.sidebar{padding-left:24px}
.links-heading{
  font-size:14px;
  margin:0 0 4px;
}
.links-heading::after{
  display:none;
}
#sidebarLinks .links{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:0;
  padding-top:14px;
}
#sidebarLinks .links .link-item{
  margin-bottom:0;
}
#sidebarLinks{
  overflow:auto;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
}
.sidebar .links .link-item{
  margin-bottom:2px;
  font-size:10px;
  line-height:1.25;
  padding-left:10px;
}
.sidebar .links .kaomoji{
  font-size:10px;
}
#sidebarLinks::-webkit-scrollbar{
  width:0;
}
@media(max-width:768px){
  .layout{grid-template-columns:1fr; gap: 24px}
  .main-content{padding-right:0;border-right:none}
  .sidebar{padding-left:0;border-top:var(--line);padding-top:24px}
}

h2{
  font-family:'Home Video',monospace;
  font-size:18px;
  color:var(--accent);
  text-shadow:0 0 10px rgba(169,173,189,0.28);
  margin:0 0 10px;
  position: relative;
  display: inline-block;
}
h2::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -8px;
  left: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}

.player-widget {
  position: relative;
  width: 100%;
  max-width: 720px;
}
.player-skin {
  position: relative;
  width: 100%;
  line-height: 0;
}
.player-layer-frame {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.player-skin > .player-layer-controls,
.player-skin > .player-layer-play,
.player-skin > .player-layer-pause,
.player-skin > .player-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.player-layer-controls,
.player-layer-play,
.player-layer-pause {
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: screen;
}
.player-overlay {
  z-index: 2;
  line-height: normal;
}
.player-hit {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.player-prev {
  left: 1.48%;
  top: 46%;
  width: 3.15%;
  height: 3.71%;
}
.player-play {
  left: 5.09%;
  top: 42.03%;
  width: 5.54%;
  height: 11.81%;
}
.player-next {
  left: 10.65%;
  top: 46%;
  width: 3.47%;
  height: 3.71%;
}
.player-hit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.player-display {
  position: absolute;
  left: 15%;
  top: 25%;
  right: 22%;
  width: auto;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  box-sizing: border-box;
  pointer-events: none;
}
.player-track {
  color: var(--accent);
  font-size: clamp(11px, 2.2vw, 15px);
  line-height: 1.25;
  text-shadow: 0 0 8px rgba(169,173,189,0.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.player-bar {
  flex: 1;
  height: 3px;
  padding: 10px 0;
  box-sizing: content-box;
  background: rgba(111,114,128,0.45);
  background-clip: content-box;
  cursor: pointer;
  touch-action: none;
}
.player-bar-fill {
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(169,173,189,0.35);
  pointer-events: none;
}
.player-time {
  color: var(--muted);
  font-size: 11px;
  min-width: 72px;
  text-align: right;
  white-space: nowrap;
}
.player-volume {
  position: absolute;
  right: 10.5%;
  top: 42%;
  width: 6.5%;
  height: 14%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
  touch-action: none;
}
.player-volume:focus-visible {
  outline: none;
}
.player-volume:focus-visible .player-volume-knob {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.player-volume-knob {
  width: clamp(22px, 4vw, 34px);
  height: clamp(22px, 4vw, 34px);
  border-radius: 50%;
  border: 2px solid rgba(169,173,189,0.45);
  background: radial-gradient(circle at 35% 30%, rgba(95,93,102,0.95), rgba(35,33,38,0.98));
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.08),
    inset 0 -2px 6px rgba(0,0,0,0.45),
    0 0 8px rgba(169,173,189,0.18);
  position: relative;
  transform: rotate(-27deg);
  transition: box-shadow 0.2s ease;
}
.player-volume:hover .player-volume-knob {
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.1),
    inset 0 -2px 6px rgba(0,0,0,0.45),
    0 0 10px rgba(169,173,189,0.32);
}
.player-volume-mark {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 2px;
  height: 30%;
  margin-left: -1px;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(169,173,189,0.45);
}
.player-download {
  position: absolute;
  right: 18%;
  top: 42%;
  width: 5.5%;
  height: 11.8%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}
.player-download svg {
  width: clamp(18px, 3.2vw, 28px);
  height: clamp(18px, 3.2vw, 28px);
  fill: currentColor;
  filter: drop-shadow(0 0 6px rgba(169,173,189,0.35));
}
.player-download:hover {
  color: #c8cddc;
  opacity: 1;
}
.player-download:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.player-download[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .player-widget {
    max-width: 100%;
  }
  .player-display {
    left: 14.5%;
    right: 27%;
    top: 23%;
    height: 54%;
    padding: 0 4px;
    gap: 4px;
  }
  .player-track {
    font-size: 9px;
    line-height: 1.2;
  }
  .player-row {
    gap: 4px;
  }
  .player-bar {
    padding: 8px 0;
  }
  .player-time {
    min-width: 0;
    font-size: 8px;
    flex: 0 0 auto;
  }
  .player-prev {
    left: 1.2%;
    top: 45%;
    width: 4%;
    height: 4.5%;
  }
  .player-play {
    left: 4.8%;
    top: 40%;
    width: 6.2%;
    height: 13%;
  }
  .player-next {
    left: 10.2%;
    top: 45%;
    width: 4.2%;
    height: 4.5%;
  }
  .player-download {
    right: 17.5%;
    top: 39%;
    width: 6.5%;
    height: 13%;
  }
  .player-download svg {
    width: 14px;
    height: 14px;
  }
  .player-volume {
    right: 8.5%;
    top: 39%;
    width: 8%;
    height: 15%;
  }
  .player-volume-knob {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
  }
}

.about-content{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  align-items:center;
}
@media(max-width:720px){
  .about-content{
    grid-template-columns:1fr;
    gap:12px;
  }
}

.about-text {
  font-size: 11px;
  line-height: 1.4;
}
.about-text p {
  margin: 0 0 8px;
}
.about-text p:last-child {
  margin-bottom: 0;
}

.about-image {
  position: relative;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  background: transparent;
  cursor: pointer;
}

.about-image img{
  width: 100%;
  max-width: 100%;
  height: auto;
  display:block;
  border-radius:0;
  transform:none;
  object-fit: contain;
  object-position: center;
}

.merch-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 8px;
}

.merch-item-link {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  line-height: 0;
}

a.merch-item-link:focus,
a.merch-item-link:focus-visible {
  outline: none;
}

.project-gif {
  width: 100%;
  aspect-ratio: 5 / 3;
  height: auto;
  display: block;
  object-fit: cover;
  background: none;
}

.merch-grid > .project-gif {
  flex: 1 1 0;
  min-width: 0;
}

.footer{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color:var(--muted);
  font-size:11px;
  margin-top:36px;
  padding-top: 20px;
  border-top: var(--line);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  flex: 1;
}

.footer-right {
  flex: 1;
  text-align: right;
}

.donate-link {
  color: #aaaebd !important;
}
.donate-link:hover {
  color: #c8cddc !important;
}
.artworks-link {
  color: #9da2ba !important;
}
.artworks-link:hover {
  color: #c8cddc !important;
  text-shadow: 0 0 8px rgba(169,173,189,0.35);
}
.link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.link-button:focus-visible {
  outline: var(--outline);
  outline-offset: 2px;
}

.arts-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.arts-modal.hidden {
  display: none;
}
body.arts-modal-open {
  overflow: hidden;
}
.arts-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.arts-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  background: var(--panel-fill);
  border: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  padding: 18px 18px 20px;
}
.arts-modal-title {
  margin: 0 36px 14px 0;
  font-size: 16px;
}
.arts-modal-title::after {
  display: none;
}
.arts-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: var(--line);
  background: var(--glass);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.arts-modal-close:hover {
  background: var(--hover);
}
.arts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.arts-item {
  margin: 0;
  background: #0a0a0c;
  border: var(--line);
  overflow: hidden;
}
.arts-item img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.arts-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.console-loader{
  position:fixed;
  inset:0;
  background:#000;
  color:#fff;
  z-index:10000;
  overflow:auto;
  padding:12px 16px 56px;
  font-family:"Home Video", monospace;
  font-size:13px;
  line-height:1.28;
  text-shadow:none;
  opacity:1;
  transition:opacity .35s linear;
}
.boot-log{
  margin:0;
  white-space:pre-wrap;
  word-break:break-word;
  color:#fff;
  font-family:inherit;
  font-size:inherit;
  line-height:inherit;
}
.boot-cursor{
  display:inline-block;
  width:8px;
  height:13px;
  background:#fff;
  margin-left:2px;
  vertical-align:text-bottom;
  animation:terminal-blink 1s steps(2) infinite;
}
@keyframes terminal-blink{0%,50%{opacity:1}51%,100%{opacity:0}}

.hidden{display:none}

:focus{outline-offset:3px}
#main:focus{outline:none}

.links .link-item{
  margin-bottom:8px;
  position: relative;
  padding-left: 12px;
}
.links .link-item::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce){
  .boot-cursor{animation:none}
  .featured-work, .about-image img {
    transition: none;
  }
}

.glitch-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
}
.glitch-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: var(--accent);
  animation: glitch-line 10s infinite linear;
}
@keyframes glitch-line {
  0% { top: 0%; opacity: 0; }
  5% { opacity: 0.7; }
  10% { opacity: 0; }
  100% { top: 100%; opacity: 0; }
}

.skip-animation {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #000;
  border: 1px solid #fff;
  color: #fff;
  padding: 8px 12px;
  border-radius: 0;
  font-family: "Home Video", monospace;
  font-size: 11px;
  transition: all 0.2s ease;
  z-index: 10001;
}
.skip-animation:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-left, .footer-right {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .about-image img {
    max-height: none;
  }

  .about-text, .footer, .featured-work p {
    font-size: 12px;
    line-height: 1.5;
  }

  h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .footer-right {
    text-align: center;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 15px;
    margin-bottom: 10px;
  }
}

@media (prefers-contrast: high) {
  :root {
    --fg: #a9adbd;
    --accent: #c8cddc;
    --muted: #9ea3b3;
  }
  .featured-work {
    background: rgba(29,27,31,0.8);
    border: 1px solid var(--accent);
  }
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(53, 36, 42, 0.08) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.4;
}

.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9997;
  opacity: 0.05;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-section {
  margin-bottom: 22px;
}

.featured-work{
  padding:12px;
  margin-bottom:12px;
  background:var(--glass);
  border-radius:0;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}
.featured-work:hover {
  border-left: 3px solid var(--wine-mid);
  background: var(--hover);
  transform: translateX(4px);
}
.featured-title{font-family:'Home Video',monospace;font-size:15px;color:var(--accent);margin:0 0 6px}
.featured-date{color:var(--date);font-size:11px;margin-bottom:8px}

.section {
  margin-bottom: 22px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: none;
}
.news-post {
  background: var(--glass);
  border: var(--line);
  overflow: hidden;
}
.news-post-media {
  background: #0a0a0c;
}
.news-post-media video {
  display: block;
  width: 100%;
  max-height: 360px;
  background: #000;
}
.news-post-audio {
  padding: 10px 12px 8px;
}
.news-post-audio-name {
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-post-audio audio {
  display: block;
  width: 100%;
  height: 32px;
}
.news-post-body {
  padding: 10px 12px 8px;
}
.news-post-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: normal;
  color: var(--accent);
}
.news-post-text {
  margin: 0;
  color: var(--fg);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.news-post-time {
  display: block;
  margin-top: 8px;
  color: var(--date);
  font-size: 10px;
  text-align: right;
}
