@keyframes chalkJitter1 {
  0%, 100% { border-style: dashed; border-color: rgba(255,255,255,0.7); }
  33% { border-style: dotted; border-color: rgba(245,245,220,0.8); }
  66% { border-style: dashed; border-color: rgba(212,197,169,0.75); }
}
@keyframes chalkJitter2 {
  0%, 100% { border-style: dotted; border-color: rgba(245,245,220,0.75); }
  33% { border-style: dashed; border-color: rgba(255,255,255,0.65); }
  66% { border-style: dotted; border-color: rgba(139,125,107,0.8); }
}
@keyframes chalkJitter3 {
  0%, 100% { border-style: dashed; border-color: rgba(212,197,169,0.8); }
  33% { border-style: dashed; border-color: rgba(255,255,255,0.6); }
  66% { border-style: dotted; border-color: rgba(245,245,220,0.7); }
}
@keyframes chalkDust {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  30% { opacity: 0.8; transform: translateY(-8px) scale(1); }
  100% { opacity: 0; transform: translateY(-30px) scale(0.3); }
}
@keyframes chalkScribble {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.12; }
}
@keyframes paperDarken {
  0% { background-color: rgba(245,245,220,0.85); }
  100% { background-color: rgba(180,175,160,0.95); }
}
@keyframes scrapTilt {
  0%, 100% { transform: rotate(var(--tilt)) translateY(0); }
  50% { transform: rotate(var(--tilt)) translateY(-2px); }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Patrick Hand', 'Caveat', cursive;
  background: #1A3326;
  color: #FFFFFF;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 70%, rgba(255,255,255,0.03) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 30%, rgba(212,197,169,0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 35% 85%, rgba(255,255,255,0.02) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255,255,255,0.01) 80px, rgba(255,255,255,0.01) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 120px, rgba(255,255,255,0.008) 120px, rgba(255,255,255,0.008) 121px);
  animation: chalkScribble 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(3px 8px at 25% 15%, rgba(255,255,255,0.06) 0%, transparent 100%),
    radial-gradient(5px 3px at 70% 45%, rgba(212,197,169,0.05) 0%, transparent 100%),
    radial-gradient(4px 6px at 45% 80%, rgba(255,255,255,0.04) 0%, transparent 100%),
    radial-gradient(6px 4px at 85% 70%, rgba(245,245,220,0.03) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.site-header{background:#1A3326;padding:12px 0;border-bottom:2px dashed rgba(255,255,255,0.4);box-shadow:0 2px 8px rgba(0,0,0,0.2);}
.logo{display:flex;align-items:center;gap:8px;text-decoration:none;color:#FFFFFF;font-family:'Caveat','Patrick Hand',cursive;font-size:1.5rem;letter-spacing:1px;}
.logo-icon{display:flex;align-items:center;}
.logo span{color:#D4C5A9;}
.hero-section {
  max-width: 100%;
  max-height: 165px;
  margin: 0 auto;
  padding: 10px;
  overflow: hidden;
  position: relative;
}
.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  height: 155px;
  overflow: hidden;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  padding: 5px 8px;
  position: relative;
}
.hero-grid::-webkit-scrollbar { display: none; }
.hero-card {
  flex: 0 0 auto;
  width: calc(33% - 4px);
  height: 48px;
  border-radius: 3px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(245,245,220,0.85);
  border: 2px dashed rgba(139,125,107,0.6);
  box-shadow: 1px 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  animation: chalkJitter1 0.3s steps(1) infinite;
  --tilt: 0deg;
}
.hero-card:nth-child(1) { --tilt: -3deg; transform: rotate(-3deg); }
.hero-card:nth-child(2) { --tilt: 2deg; transform: rotate(2deg); margin-top: 8px; }
.hero-card:nth-child(3) { --tilt: -1deg; transform: rotate(-1deg); }
.hero-card:nth-child(4) { --tilt: 3deg; transform: rotate(3deg); margin-top: -4px; margin-left: 8px; }
.hero-card:nth-child(5) { --tilt: -2deg; transform: rotate(-2deg); margin-top: 4px; }
.hero-card {
  animation: scrapTilt 4s ease-in-out infinite;
}
.hero-card:hover {
  transform: scale(1.05) rotate(-1deg);
  border-color: #F5F5DC;
  box-shadow: 3px 4px 12px rgba(0,0,0,0.4);
}
.hero-card img {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  border: 1px dashed rgba(139,125,107,0.4);
  filter: saturate(0.9);
}
.hero-card span {
  position: static;
  transform: none;
  font-size: 0.5rem;
  font-weight: 700;
  color: #8B7D6B;
  text-shadow: none;
  max-width: none;
  letter-spacing: 0.3px;
  font-family: 'Caveat', cursive;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-card:active {
  animation: paperDarken 0.3s ease forwards;
  border-color: #8B7D6B;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 16px;
  padding: 5px 0;
}
@media (max-width: 1024px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px)  { .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px 12px; } }
.game-card {
  background: #2D4A3E;
  overflow: hidden;
  border-radius: 3px;
  border: 2px dashed rgba(255,255,255,0.5);
  box-shadow: 2px 3px 8px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  animation: chalkJitter2 0.25s steps(1) infinite;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.15) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 50%, rgba(245,245,220,0.1) 50%, transparent 50%),
    radial-gradient(1px 1px at 40% 70%, rgba(212,197,169,0.12) 50%, transparent 50%),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.08) 50%, transparent 50%);
  z-index: 3;
  pointer-events: none;
  opacity: 0.6;
}
.game-card::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dotted rgba(212,197,169,0.2);
  border-radius: 2px;
  z-index: 3;
  pointer-events: none;
  animation: chalkJitter3 0.35s steps(1) infinite;
}
.game-card:hover {
  transform: translateY(-2px) rotate(-0.5deg);
  border-color: #F5F5DC;
  box-shadow: 3px 5px 14px rgba(0,0,0,0.35);
}
.game-card:active {
  transform: scale(0.98);
}
.game-card-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: rgba(45,74,62,0.6);
  position: relative;
}
.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  border-radius: 0;
  position: relative;
  z-index: 2;
  filter: saturate(0.9) brightness(0.95);
}
.game-card:hover .game-card-thumb img {
  transform: scale(1.03);
  filter: saturate(1) brightness(1);
}
.game-card-title {
  padding: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  position: relative;
  z-index: 2;
  font-family: 'Caveat', cursive;
  letter-spacing: 0.5px;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
}
.ad-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}
.detail-wrap {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  flex: 1;
}
.detail-main {
  flex: 7;
  min-width: 0;
}
.detail-sidebar {
  flex: 3;
  min-width: 280px;
  max-width: 360px;
}
@media (max-width: 900px) {
  .detail-wrap { flex-direction: column; }
  .detail-sidebar { max-width: 100%; min-width: 0; }
}
.game-frame-wrap {
  background: #2D4A3E;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 4px;
  border: 2px dashed rgba(255,255,255,0.5);
  box-shadow: 3px 4px 12px rgba(0,0,0,0.3);
}
.game-frame-wrap:fullscreen,
.game-frame-wrap:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  aspect-ratio: unset;
  border-radius: 0;
}
.game-frame-wrap.mobile-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  z-index: 9999;
  aspect-ratio: unset;
  border-radius: 0;
}
.game-frame-wrap.mobile-fullscreen .fullscreen-btn {
  display: block;
  z-index: 10;
}
.game-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: relative;
  z-index: 1;
}
.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,51,38,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}
.game-overlay.hidden { opacity: 0; pointer-events: none; }
.game-overlay-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: brightness(55%) saturate(75%);
}
.play-btn {
  position: relative;
  z-index: 1;
  background: rgba(45,74,62,0.9);
  color: #FFFFFF;
  border: 2px dashed rgba(255,255,255,0.7);
  padding: 18px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  border-radius: 4px;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.3);
  font-family: 'Caveat', cursive;
}
.play-btn:hover {
  transform: translateY(-2px);
  background: #2D4A3E;
  box-shadow: 3px 5px 14px rgba(0,0,0,0.4);
  border-color: #F5F5DC;
  color: #F5F5DC;
}
.play-btn:active {
  transform: scale(0.98);
}
.fullscreen-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(26,51,38,0.9);
  color: #FFFFFF;
  border: 2px dashed rgba(255,255,255,0.6);
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
  border-radius: 4px;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.25);
  font-family: 'Caveat', cursive;
}
.fullscreen-btn:hover {
  transform: translateY(-1px);
  background: #2D4A3E;
  border-color: #F5F5DC;
  color: #F5F5DC;
}
.game-frame-wrap.playing .fullscreen-btn { display: block; }
.game-frame-wrap.playing .game-overlay { display: none; }
.game-frame-wrap.playing .game-overlay-thumb { display: none; }
@media (max-width: 768px) {
  .game-frame-wrap .fullscreen-btn {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .game-frame-wrap.playing .fullscreen-btn {
    display: block;
  }
}
.game-frame-wrap:fullscreen .fullscreen-btn,
.game-frame-wrap:-webkit-full-screen .fullscreen-btn {
  display: none !important;
}
.detail-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #FFFFFF;
  letter-spacing: 1px;
  font-family: 'Caveat', cursive;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.detail-desc {
  font-size: 1rem;
  color: #F5F5DC;
  line-height: 1.8;
  margin-bottom: 20px;
  font-family: 'Patrick Hand', cursive;
}
.tips-box {
  background: #2D4A3E;
  border-left: 4px solid #F5F5DC;
  padding: 20px;
  margin-top: 16px;
  border-radius: 0 4px 4px 0;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.25);
  border: 2px dashed rgba(255,255,255,0.3);
  border-left: 4px solid #F5F5DC;
}
.tips-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: 1px;
  font-family: 'Caveat', cursive;
}
.tips-box ul {
  list-style: none;
  padding: 0;
}
.tips-box li {
  font-size: 0.9rem;
  color: #F5F5DC;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
  font-family: 'Patrick Hand', cursive;
}
.tips-box li::before {
  content: '~';
  position: absolute;
  left: 0;
  color: #D4C5A9;
  font-size: 0.9rem;
}
.related-section {
  padding: 32px 0;
}
.related-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
  position: relative;
  display: inline-block;
  letter-spacing: 1px;
  font-family: 'Caveat', cursive;
}
.related-section h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #FFFFFF, #D4C5A9);
  border-radius: 2px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.site-footer {
  background: #1A3326;
  padding: 40px 0;
  margin-top: auto;
  border-top: 2px dashed rgba(255,255,255,0.3);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.8rem;
  color: #F5F5DC;
  transition: all 0.3s ease;
  font-weight: 600;
  padding: 8px 16px;
  position: relative;
  letter-spacing: 1px;
  font-family: 'Caveat', cursive;
}
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #FFFFFF;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}
.footer-links a:hover::after {
  width: 80%;
}
.footer-links a:hover {
  color: #FFFFFF;
}
.footer-copy {
  font-size: 0.85rem;
  color: #D4C5A9;
  margin-top: 8px;
  letter-spacing: 1px;
  font-family: 'Patrick Hand', cursive;
}
.info-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
  flex: 1;
  background: #2D4A3E;
  margin-top: 32px;
  margin-bottom: 32px;
  border-radius: 4px;
  border: 2px dashed rgba(255,255,255,0.4);
  box-shadow: 3px 4px 12px rgba(0,0,0,0.3);
}
.info-page h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: #FFFFFF;
  letter-spacing: 2px;
  font-family: 'Caveat', cursive;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.info-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 16px;
  color: #FFFFFF;
  position: relative;
  padding-left: 16px;
  letter-spacing: 1px;
  font-family: 'Caveat', cursive;
}
.info-page h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, #FFFFFF, #D4C5A9);
  border-radius: 2px;
}
.info-page p {
  font-size: 1rem;
  color: #F5F5DC;
  line-height: 1.9;
  margin-bottom: 16px;
  font-family: 'Patrick Hand', cursive;
}
.info-page a {
  color: #FFFFFF;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px dashed transparent;
}
.info-page a:hover {
  border-bottom-color: #FFFFFF;
}
.info-page ul {
  list-style: none;
  padding: 0;
}
.info-page li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: #F5F5DC;
  font-size: 1rem;
  line-height: 1.8;
  font-family: 'Patrick Hand', cursive;
}
.info-page li::before {
  content: '~';
  position: absolute;
  left: 4px;
  color: #D4C5A9;
  font-size: 1rem;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track {
  background: #1A3326;
  border: none;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #D4C5A9, #8B7D6B);
  border-radius: 5px;
  border: none;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #FFFFFF, #D4C5A9);
}
@media (max-width: 768px) {
  .info-page { margin: 20px 16px; padding: 32px 20px; }
  .info-page h1 { font-size: 1.8rem; }
  .play-btn { padding: 14px 28px; font-size: 1rem; }
  .detail-title { font-size: 1.5rem; }
}

