:root {
  --paper: #f4e8d0;
  --dark: #2c2416;
  --red: #b91c1c;
  --blue: #1e3a8a;
  --green: #15803d;
  --ink: #3a3024;
}

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

body {
  font-family: "Courier New", Courier, monospace;
  background: #ebe0c8;
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.age-modal {
  display: flex;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

.age-document {
  max-width: 300px;
  width: 90%;
  background: var(--paper);
  border: 3px solid var(--dark);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 1.5rem 1rem;
}

.document-header {
  text-align: center;
  border-bottom: 3px double var(--dark);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.stamp-mark {
  display: inline-block;
  border: 3px solid var(--red);
  color: var(--red);
  padding: 0.25rem 0.75rem;
  font-weight: bold;
  transform: rotate(-5deg);
  margin-bottom: 0.5rem;
  font-size: 0.6rem;
}

.document-header h2 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  color: var(--dark);
}

.document-number {
  font-size: 0.45rem;
  color: var(--dark);
  margin-top: 0.25rem;
}

.document-body {
  color: var(--ink);
}

.document-body p {
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-size: 0.7rem;
}

.notice-text {
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--dark);
}

.verification-box {
  background: rgba(255, 255, 255, 0.5);
  padding: 0.75rem;
  margin: 1rem 0;
  border: 2px solid var(--dark);
}

.verification-box p {
  color: var(--ink);
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
}

.signature-line {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.btn-stamp {
  padding: 0.5rem 0.75rem;
  border: 3px solid var(--dark);
  background: var(--paper);
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 0.5rem;
}

.btn-stamp:hover {
  transform: scale(1.05);
}

.stamp-approved {
  display: block;
  color: var(--green);
  border: 3px solid var(--green);
  padding: 0.5rem;
  text-align: center;
}

.stamp-denied {
  display: block;
  color: var(--red);
  border: 3px solid var(--red);
  padding: 0.5rem;
  text-align: center;
}

.document-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--dark);
  text-align: center;
}

.document-footer p {
  color: var(--ink);
  margin-bottom: 0.25rem;
  font-size: 0.6rem;
}

.date-stamp {
  font-weight: bold;
  color: var(--dark);
}

.signature {
  font-style: italic;
  margin-top: 1rem;
  color: var(--ink);
}

.cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  transition: bottom 0.5s ease;
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-notice {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--paper);
  border: 3px solid var(--dark);
  padding: 1.5rem 2rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-notice p {
  flex: 1;
  min-width: 300px;
  color: var(--ink);
}

.cookie-notice a {
  color: var(--blue);
  text-decoration: underline;
}

.notice-stamp {
  border: 2px solid var(--red);
  color: var(--red);
  padding: 0.5rem 1rem;
  font-weight: bold;
  white-space: nowrap;
}

.btn-file {
  padding: 0.75rem 1.5rem;
  background: var(--dark);
  color: var(--paper);
  border: 2px solid var(--dark);
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-file:hover {
  background: var(--paper);
  color: var(--dark);
}

.top-document {
  background: var(--paper);
}

.nav-file {
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 3px double var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-stamp {
  text-decoration: none;
}

.logo-mark {
  border: 3px solid var(--dark);
  padding: 0.75rem 1.5rem;
  background: var(--paper);
}

.logo-top,
.logo-bottom {
  display: block;
  font-weight: bold;
  line-height: 1.2;
  color: var(--dark);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu li a {
  color: var(--dark);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--red);
}

.nav-toggle {
  display: none;
  background: var(--paper);
  border: 2px solid var(--dark);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.2rem;
}

.hero-document {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  background: var(--paper);
}

.document-stamp-large {
  font-size: 3rem;
  color: var(--red);
  border: 5px solid var(--red);
  display: inline-block;
  padding: 0.5rem 2rem;
  transform: rotate(-10deg);
  margin-bottom: 1rem;
  font-weight: bold;
}

.classification-mark {
  color: var(--dark);
  font-weight: bold;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.title-typewriter {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  font-weight: bold;
  color: var(--dark);
}

.subtitle-box {
  margin-bottom: 3rem;
}

.subtitle-text {
  font-size: 1.2rem;
  color: var(--ink);
}

.red-underline {
  width: 200px;
  height: 3px;
  background: var(--red);
  margin: 1rem auto;
}

.notice-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.notice-box {
  background: rgba(255, 255, 255, 0.6);
  border: 3px solid var(--dark);
  padding: 2rem;
}

.box-stamp {
  color: var(--blue);
  border: 2px solid var(--blue);
  display: inline-block;
  padding: 0.25rem 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.notice-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.notice-box p {
  color: var(--ink);
}

.btn-main {
  padding: 1.5rem 3rem;
  font-size: 1.2rem;
  background: var(--dark);
  color: var(--paper);
  border: 3px solid var(--dark);
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-main:hover {
  background: var(--paper);
  color: var(--dark);
  transform: translateY(-2px);
}

section {
  padding: 6rem 0;
  border-bottom: 3px solid var(--dark);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-stamp {
  color: var(--red);
  border: 2px solid var(--red);
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.title-underline {
  width: 150px;
  height: 3px;
  background: var(--dark);
  margin: 1rem auto;
}

.section-subtitle {
  color: var(--ink);
  font-size: 1.1rem;
}

.official-notice {
  background: #ebe0c8;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.notice-card {
  background: rgba(255, 255, 255, 0.6);
  border: 3px solid var(--dark);
  padding: 2.5rem 2rem;
  position: relative;
}

.card-stamp {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 2px solid var(--dark);
  padding: 0.25rem 0.75rem;
  font-weight: bold;
  font-size: 0.8rem;
  color: var(--dark);
}

.card-stamp.red {
  border-color: var(--red);
  color: var(--red);
}

.card-stamp.blue {
  border-color: var(--blue);
  color: var(--blue);
}

.card-stamp.green {
  border-color: var(--green);
  color: var(--green);
}

.card-icon {
  font-size: 3rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.notice-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.notice-card p {
  color: var(--ink);
  line-height: 1.6;
}

.game-records {
  background: #ebe0c8;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.record-sheet {
  background: rgba(255, 255, 255, 0.7);
  border: 4px solid var(--dark);
  padding: 2rem;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.record-sheet[data-game="vintage-spins"] {
  background-image: url("../images/1.jpg");
}

.record-sheet[data-game="archive-cards"] {
  background-image: url("../images/2.jpg");
}

.record-sheet[data-game="ledger-lines"] {
  background-image: url("../images/4.jpg");
}

.record-sheet[data-game="stamp-match"] {
  background-image: url("../images/3.jpg");
}

.record-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(232, 225, 210, 0.85);
  z-index: 0;
  transition: all 0.3s ease;
}

.record-sheet:hover::before {
  background: rgba(232, 225, 210, 0.75);
}

.record-sheet > * {
  position: relative;
  z-index: 1;
}

.record-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.record-stamp {
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 0.25rem 1rem;
  font-weight: bold;
  font-size: 0.9rem;
}

.record-icon {
  font-size: 2rem;
  color: var(--dark);
}

.record-sheet h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.record-description {
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.record-details {
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.detail-item i {
  color: var(--dark);
}

.btn-record {
  width: 100%;
  padding: 1.2rem;
  background: var(--dark);
  color: var(--paper);
  border: 2px solid var(--dark);
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-record:hover {
  background: var(--paper);
  color: var(--dark);
  transform: translateY(-2px);
}

.game-modal {
  display: none;
  position: fixed;
  z-index: 5000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.game-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-modal-content {
  position: relative;
  width: 95%;
  height: 95%;
  max-width: 1400px;
  max-height: 900px;
  background: var(--paper);
  border: 5px solid var(--dark);
}

.game-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5001;
  background: var(--red);
  color: white;
  border: 2px solid var(--dark);
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-close:hover {
  transform: scale(1.05);
}

.game-container {
  width: 100%;
  height: 100%;
  padding: 4rem 1rem 1rem;
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.filing-cabinet {
  background: #ebe0c8;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.file-drawers {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.file-drawer {
  background: rgba(255, 255, 255, 0.6);
  border: 3px solid var(--dark);
}

.drawer-label {
  background: var(--dark);
  color: var(--paper);
  padding: 1rem;
  font-weight: bold;
  text-align: center;
}

.drawer-content {
  padding: 2rem;
  color: var(--ink);
}

.drawer-content i {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 1rem;
  display: block;
}

.drawer-content p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.drawer-content a {
  color: var(--blue);
  text-decoration: none;
}

.drawer-content a:hover {
  text-decoration: underline;
}

.filing-form {
  background: rgba(255, 255, 255, 0.6);
  border: 4px solid var(--dark);
  padding: 2.5rem;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--dark);
}

.form-header h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.form-number {
  color: var(--ink);
  font-size: 0.9rem;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--dark);
  font-family: inherit;
  color: var(--ink);
  font-size: 1rem;
}

.form-field textarea {
  resize: vertical;
}

.field-line {
  height: 2px;
  background: var(--dark);
  margin-top: 0.5rem;
}

.btn-file-form {
  width: 100%;
  padding: 1.2rem;
  background: var(--dark);
  color: var(--paper);
  border: 2px solid var(--dark);
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-file-form:hover {
  background: var(--paper);
  color: var(--dark);
  transform: translateY(-2px);
}

.the-ledger {
  background: #ebe0c8;
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.ledger-entry {
  background: rgba(255, 255, 255, 0.6);
  border: 3px solid var(--dark);
  padding: 2.5rem;
  text-decoration: none;
  color: var(--dark);
  text-align: center;
  transition: all 0.3s ease;
  display: block;
}

.ledger-entry:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.entry-stamp {
  border: 2px solid var(--blue);
  color: var(--blue);
  display: inline-block;
  padding: 0.25rem 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.entry-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.ledger-entry h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.ledger-entry p {
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.entry-arrow {
  font-size: 2rem;
  color: var(--dark);
}

.official-notice-box {
  background: rgba(255, 255, 255, 0.7);
  border: 4px solid var(--dark);
  padding: 3rem;
}

.notice-header {
  text-align: center;
  margin-bottom: 2rem;
}

.stamp-confidential {
  border: 3px solid var(--red);
  color: var(--red);
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: bold;
  font-size: 1.2rem;
  transform: rotate(-2deg);
}

.official-notice-box p {
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.official-notice-box p strong {
  color: var(--dark);
}

.signature-block {
  text-align: center;
  margin-top: 3rem;
}

.official-signature {
  font-style: italic;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.signature-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.signature-date {
  color: var(--ink);
}

.footer {
  background: linear-gradient(180deg, #d4c8a8, var(--paper));
  border-top: 5px double var(--dark);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.footer-section p {
  color: var(--ink);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--red);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 3px solid var(--dark);
  color: var(--ink);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.footer-disclaimer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink);
}

@media (max-width: 968px) {
  .title-typewriter {
    font-size: 2.5rem;
  }

  .cabinet-layout {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--paper);
    width: 100%;
    transition: 0.3s;
    padding: 2rem;
    border-right: 3px solid var(--dark);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: block;
  }

  .notice-boxes {
    grid-template-columns: 1fr;
  }

  .records-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .title-typewriter {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .signature-line {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-stamp {
    width: 100%;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 35px auto;
}

.footer-legal img {
  height: 60px;
}

.legal-page {
  background: var(--paper);
  min-height: 100vh;
}

.legal-page .document-header {
  background: var(--dark);
  border-bottom: 4px solid var(--red);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.legal-page .document-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-page .logo-document {
  color: var(--paper);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-page .logo-document i {
  color: var(--red);
}

.legal-page .nav-legal {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.legal-page .nav-legal a {
  color: var(--paper);
  text-decoration: none;
  transition: color 0.3s;
}

.legal-page .nav-legal a:hover {
  color: var(--red);
}

.legal-document {
  max-width: 900px;
  margin: 3rem auto;
  padding: 3rem;
  background: white;
  border: 4px solid var(--dark);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.document-title {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 3px double var(--dark);
}

.document-title h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.document-date {
  color: var(--red);
  font-weight: bold;
  font-size: 0.9rem;
}

.document-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
  border-left: 4px solid var(--red);
  padding-left: 1rem;
}

.document-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.document-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  text-align: justify;
}

.document-content ul,
.document-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.document-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.document-content strong {
  color: var(--dark);
  font-weight: bold;
}

.info-box {
  background: #fff8e1;
  border: 3px solid var(--dark);
  padding: 1.5rem;
  margin: 2rem 0;
}

.info-box-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--red);
  text-transform: uppercase;
}

.contact-box {
  background: var(--paper);
  border: 3px solid var(--dark);
  padding: 1.5rem;
  margin: 2rem 0;
}

.contact-box h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.btn-back {
  display: inline-block;
  margin: 2rem 0;
  padding: 1rem 2rem;
  background: var(--dark);
  color: var(--paper);
  text-decoration: none;
  border: 2px solid var(--dark);
  transition: all 0.3s;
  font-weight: bold;
}

.btn-back:hover {
  background: var(--paper);
  color: var(--dark);
  transform: translateX(-5px);
}

.document-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px double var(--dark);
  color: var(--ink);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .legal-document {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .document-title h1 {
    font-size: 2rem;
  }

  .document-content h2 {
    font-size: 1.5rem;
  }

  .legal-page .nav-legal {
    display: none;
  }
}
