@import url('https://fonts.googleapis.com/css2?family=VT323&family=Fredoka:wght@700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0c0813;
  color: #dfd8e3;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  z-index: -2;
  transform: scale(1.03);
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 8, 19, 0.4);
  z-index: -1;
  pointer-events: none;
}

a {
  color: #1d6edb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

.hdr {
  text-align: center;
  padding: 10px 0 20px;
  position: relative;
}

.boil {
  display: inline-grid;
  max-width: 380px;
  width: 100%;
  margin-bottom: 10px;
}

.boil img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  filter: invert(50%) sepia(70%) saturate(1000%) hue-rotate(320deg) brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.boil img.f1 {
  animation: boil 0.6s steps(1) infinite;
}

.boil img.f2 {
  animation: boil 0.6s steps(1) 0.2s infinite;
}

.boil img.f3 {
  animation: boil 0.6s steps(1) 0.4s infinite;
}

@keyframes boil {
  0% { opacity: 1; }
  33.33% { opacity: 0; }
  100% { opacity: 0; }
}

.boil-spacer {
  display: none;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 4px 0;
  margin-bottom: 20px;
  font-size: 13px;
  color: #ffffff;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.marquee-inner {
  display: inline-block;
  animation: scroll 22s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.main {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 20px;
  align-items: start;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.box {
  background: linear-gradient(180deg, rgba(160, 190, 225, 0.35) 0%, rgba(120, 160, 205, 0.25) 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-top-color: rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(14px) saturate(120%);
  overflow: hidden;
  padding: 0 5px 5px 5px;
}

.box.active-win {
  background: linear-gradient(180deg, rgba(235, 175, 190, 0.35) 0%, rgba(205, 130, 150, 0.25) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.box-title {
  padding: 6px 6px 6px 8px;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.box-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.win-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}

.box-body {
  background: #ffffff;
  color: #222222;
  border: 1px solid #a5b7cc;
  border-radius: 3px;
  padding: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.status {
  font-size: 12px;
  line-height: 1.6;
}

.status span {
  color: #555555;
  font-weight: bold;
}

.entry {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.entry:last-child {
  border-bottom: none;
}

.entry h3 {
  font-size: 14px;
  color: #1d6edb;
  margin-bottom: 3px;
}

.entry .date {
  font-size: 11px;
  color: #777777;
  margin-bottom: 6px;
}

.badges-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 6px;
}

.site-badge {
  width: 150px;
  height: 20px;
  image-rendering: pixelated;
  display: block;
}

.links-list {
  list-style: none;
}

.links-list li {
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}

.links-list li:last-child {
  border-bottom: none;
}

.links-list li::before {
  content: '▶ ';
  color: #1d6edb;
  font-size: 8px;
  margin-right: 4px;
}

.nav-links a {
  display: block;
  padding: 6px 10px;
  margin-bottom: 4px;
  border: 1px solid #c8d3e0;
  background: linear-gradient(180deg, #fdfefe 0%, #f0f4f8 100%);
  border-radius: 4px;
  color: #333333;
  font-weight: 500;
  box-shadow: inset 0 1px 0 #fff, 0 1px 1px rgba(0,0,0,0.05);
}

.nav-links a:last-child {
  margin-bottom: 0;
}

.nav-links a:hover {
  background: linear-gradient(180deg, #f2f7fc 0%, #dbe8f5 100%);
  border-color: #a5bcca;
  color: #1d6edb;
  text-decoration: none;
}

.nav-links a.act {
  background: linear-gradient(180deg, #e3effa 0%, #c5daf0 100%);
  border-color: #8bb3d6;
  color: #0b4b9e;
  font-weight: bold;
}

.todo ul {
  list-style: none;
}

.todo li {
  padding: 4px 0;
  color: #333333;
  position: relative;
  padding-left: 20px;
}

.todo li::before {
  content: '☐';
  position: absolute;
  left: 0;
  color: #777777;
}

.todo li.done::before {
  content: '☑';
  color: #1d6edb;
}

.todo li.done {
  text-decoration: line-through;
  color: #888888;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.mascot {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  pointer-events: none;
  animation: float 3s ease-in-out 1.5s infinite;
}

.mascot img {
  width: 160px;
  height: auto;
  display: block;
}

.ftr {
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  color: #eeeeee;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.ftr a {
  color: #a3cfff;
}

.blink {
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.pixel-hr {
  border: none;
  height: 1px;
  background: #e0e0e0;
  margin: 12px 0;
}

.music {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, rgba(22, 34, 51, 0.95) 0%, rgba(12, 18, 32, 0.98) 100%);
  border: 1px solid rgba(16, 28, 46, 0.8);
  border-radius: 4px;
  padding: 10px 12px 8px;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.player-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

.player-title {
  font-family: 'Segoe UI', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #c5d6eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.player-time {
  font-family: 'Segoe UI', -apple-system, sans-serif;
  font-size: 10px;
  color: #7997b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.player-progress {
  height: 4px;
  background: #0f1522;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  margin: 4px 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.player-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1b73e8 0%, #4facfe 100%);
  border-radius: 2px;
  transition: width 0.15s linear;
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.player-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.1s ease, filter 0.15s ease;
}

.player-btn-play {
  width: 34px;
  height: 34px;
}

.player-btn-prev,
.player-btn-next {
  width: 26px;
  height: 26px;
}

.player-btn-mute {
  width: 20px;
  height: 20px;
  margin-left: 8px;
  opacity: 0.8;
  transition: opacity 0.15s ease, filter 0.15s ease, transform 0.1s ease;
}

.player-btn-mute:hover {
  opacity: 1;
}

.player-vol-container {
  display: flex;
  align-items: center;
  width: 48px;
  margin-left: 4px;
}

.player-vol-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: #0f1522;
  border-radius: 2px;
  outline: none;
  border: 1px solid #162438;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.player-vol-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
}

.player-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 10px;
  width: 6px;
  border-radius: 1px;
  background: linear-gradient(180deg, #eaeaea 0%, #b0b0b0 100%);
  border: 1px solid #707070;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
  cursor: pointer;
  margin-top: -3px;
}

.player-vol-slider::-moz-range-thumb {
  height: 10px;
  width: 6px;
  border-radius: 1px;
  background: linear-gradient(180deg, #eaeaea 0%, #b0b0b0 100%);
  border: 1px solid #707070;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
  cursor: pointer;
}

.player-vol-slider::-ms-thumb {
  height: 10px;
  width: 6px;
  border-radius: 1px;
  background: linear-gradient(180deg, #eaeaea 0%, #b0b0b0 100%);
  border: 1px solid #707070;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
  cursor: pointer;
}

.player-btn:hover {
  transform: scale(1.03);
  filter: brightness(1.18);
}

.player-btn:active {
  transform: scale(0.96);
}

.kaomoji {
  font-size: 11px;
  color: #777777;
  text-align: center;
  padding: 4px 0;
}

.counter-box {
  padding: 4px 0;
}

.counter {
  text-align: center;
}

.counter span {
  background: #333333;
  border: 1px solid #222;
  padding: 2px 4px;
  margin: 0 1px;
  color: #00ff00;
  font-family: monospace;
  font-size: 14px;
  border-radius: 2px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 800px) {
  .main {
    grid-template-columns: 1fr;
  }
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    order: 2;
  }
  .blog-main {
    order: 1;
  }
}

.blog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-post {
  margin-bottom: 8px;
}

.blog-post:last-child {
  margin-bottom: 0;
}

.blog-post-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.blog-post-title {
  font-size: 15px;
  font-weight: bold;
  color: #1d6edb;
  margin: 0;
  line-height: 1.3;
}

.blog-post-date {
  font-size: 11px;
  color: #888888;
  white-space: nowrap;
  flex-shrink: 0;
}

.blog-post-body {
  font-size: 13px;
  color: #333333;
  line-height: 1.65;
}

.blog-post-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid #c0c0c0;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  margin: 10px 0;
  display: block;
}

.blog-post-body iframe {
  max-width: 100%;
  border: 1px solid #c0c0c0;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  margin: 10px 0;
  display: block;
}

.blog-post-body video {
  max-width: 100%;
  height: auto;
  border: 1px solid #c0c0c0;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  margin: 10px 0;
  display: block;
}

.blog-post-body audio {
  width: 100%;
  margin: 10px 0;
  display: block;
}

.blog-loading {
  text-align: center;
  color: #888888;
  padding: 30px 0;
  font-size: 12px;
}

.blog-archive-list {
  list-style: none;
}

.blog-archive-list li {
  padding: 3px 0;
  border-bottom: 1px solid #f0f0f0;
}

.blog-archive-list li:last-child {
  border-bottom: none;
}

.blog-archive-list a {
  font-size: 12px;
  color: #1d6edb;
  text-decoration: none;
  display: block;
}

.blog-archive-list a:hover {
  text-decoration: underline;
}

.archive-date {
  color: #999999;
  font-size: 10px;
  margin-right: 2px;
}

#about-p1, #about-p2 {
  outline: none;
  transition: background-color 0.2s ease;
  border-radius: 2px;
  padding: 2px;
  margin: -2px;
}

#about-p1:hover, #about-p2:hover {
  cursor: text;
  background-color: rgba(0, 0, 0, 0.03);
}

#about-p1:focus, #about-p2:focus,
#about-p1.restoring, #about-p2.restoring {
  background-color: transparent;
  box-shadow: none;
  outline: none;
}
