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

:root {
  --ink: #132f54;
  --deep: #174878;
  --link: #1d58a8;
  --paper: rgba(255, 255, 255, 0.82);
  --panel: rgba(248, 253, 255, 0.92);
  --blue: #c7f4ff;
  --line: #83cce8;
  --shadow: rgba(16, 50, 92, 0.22);
}

html,
body {
  min-height: 100%;
  font-family: "Courier New", Courier, monospace;
}

body {
  display: flex;
  justify-content: center;
  padding: clamp(12px, 3vw, 34px);
  color: #06182e;
  background: #8fd6f2 url("https://millennium-memories.neocities.org/media/blue5.gif") repeat fixed;
  cursor: url("https://imgur.com/4TDdRRL.gif"), auto;
}

a,
button {
  cursor: url("https://64.media.tumblr.com/tumblr_m35lfjw3Qf1rnr4eb.png"), pointer;
}

a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: var(--deep);
  text-decoration: underline;
  text-decoration-style: wavy;
}

.page {
  width: min(100%, 980px);
  padding: clamp(10px, 2vw, 18px);
  border: 6px double var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 0 24px var(--shadow);
}

.top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid #b9e8ff;
  border-radius: 8px;
  background: #effbff;
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(112px, 18vw, 168px);
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
  border: 4px groove #b4e8ff;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(6, 33, 79, 0.5), rgba(255, 255, 255, 0.04)),
    url("https://millennium-memories.neocities.org/banner.gif") center/cover;
}

.banner h1 {
  color: white;
  font-size: clamp(2.2rem, 6vw, 4.7rem);
  line-height: 0.9;
  text-shadow:
    2px 2px 0 #64a0ca,
    -1px 1px 0 #64a0ca,
    0 -1px 0 #64a0ca,
    0 4px 12px #0a3267;
}

.banner-badge {
  position: absolute;
  right: 14px;
  bottom: 12px;
  max-width: 230px;
  padding: 7px 10px;
  border: 2px outset #fff;
  border-radius: 8px;
  background: rgba(226, 247, 255, 0.92);
  color: #173d6d;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.nav-row a {
  padding: 6px 9px;
  border: 2px outset #bdefff;
  border-radius: 7px;
  background: #effbff;
}

.layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 2fr);
  gap: 18px;
  margin: 18px 0;
}

.column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.box {
  overflow: hidden;
  padding: 12px;
  border-radius: 10px;
  background: var(--panel);
  color: #071c32;
  box-shadow: 3px 3px 0 rgba(82, 150, 194, 0.25);
}

.double {
  border: 5px double var(--line);
}

.pixel {
  border: 4px solid #2a3f5a;
  box-shadow:
    inset -2px -2px 0 #fff,
    inset 2px 2px 0 #8eb9d6,
    3px 3px 0 rgba(82, 150, 194, 0.25);
}

.groove {
  border: 4px groove #a9cbe3;
}

.blue1 { background: url("https://millennium-memories.neocities.org/blue1.png") repeat; }
.blue2 { background: url("https://millennium-memories.neocities.org/blue2.gif") repeat; }
.blue3 { background: url("https://millennium-memories.neocities.org/blue3.jpg") repeat; }
.blue4 { background: url("https://millennium-memories.neocities.org/blue4.gif") repeat; }
.blue6 { background: url("https://millennium-memories.neocities.org/blue7.gif") repeat; }

.soft {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(220, 247, 255, 0.9)),
    repeating-linear-gradient(0deg, rgba(119, 192, 226, 0.12) 0 1px, transparent 1px 12px);
}

.box-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -4px -4px 10px;
  padding: 6px 8px;
  border: 1px solid rgba(80, 150, 195, 0.45);
  border-radius: 7px;
  background: rgba(232, 249, 255, 0.88);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.1;
}

h2 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.08rem;
}

p {
  margin-bottom: 11px;
  font-size: 0.95rem;
  line-height: 1.5;
}

p:last-child {
  margin-bottom: 0;
}

.mini {
  font-size: 0.82rem;
  line-height: 1.4;
}

.buttonstyle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 6px;
  padding: 0.45em 1em;
  border: 2px solid #78b6d9;
  border-radius: 0.75em;
  background: #e0f4ff;
  color: #133c5a;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  transform-style: preserve-3d;
}

.buttonstyle::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background: #c2eaff;
  box-shadow: 0 0 0 2px #78b6d9, 0 0.55em 0 0 #a6ddf5;
  transform: translate3d(0, 0.62em, -1em);
}

.buttonstyle:hover {
  background: #d1f0ff;
  transform: translateY(0.2em);
}

.list {
  display: grid;
  gap: 7px;
  list-style: none;
}

.list li {
  min-height: 23px;
  padding: 2px 0 3px 27px;
  border-bottom: 1px dotted rgba(63, 131, 177, 0.36);
  background-image: url("https://imgur.com/u0X82vZ.gif");
  background-repeat: no-repeat;
  background-position: left 0.1em;
  background-size: 20px 20px;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  display: grid;
  gap: 9px;
  min-height: 170px;
  padding: 12px;
  border: 3px ridge #bdefff;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.card img,
.feature-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.card img {
  width: 180px;
  max-height: 180px;
  object-fit: contain;
}

.feature-img {
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
}

.window {
  overflow: hidden;
  border: 4px ridge #bdefff;
  border-radius: 12px;
  background: #8fd6f2;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.75),
    4px 4px 0 rgba(82, 150, 194, 0.2);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-bottom: 2px solid #8fcde8;
  background: linear-gradient(#effbff, #c7f4ff);
  color: #174878;
  font-size: 0.82rem;
  font-weight: 700;
}

.window-buttons {
  display: inline-flex;
  gap: 4px;
}

.window-buttons span {
  width: 10px;
  height: 10px;
  border: 1px solid #5b9fc7;
  border-radius: 50%;
  background: #ffffff;
}

.window-body {
  padding: 14px;
  background: rgba(248, 253, 255, 0.84);
}

label {
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  min-height: 34px;
  padding: 7px;
  border: 2px inset #b8dff2;
  border-radius: 4px;
  background: #fff;
  color: #071c32;
  font-family: inherit;
  font-size: 0.9rem;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.stamp-footer {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  border: 4px groove #b4e8ff;
  border-radius: 12px;
  background: #c7f4ff;
  white-space: nowrap;
}

.stamp-track {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-width: max-content;
  padding-left: 100%;
  animation: marquee 34s linear infinite;
}

.stamp-track img {
  display: block;
  height: 40px;
  width: auto;
  border: 1px solid rgba(0, 50, 100, 0.25);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (max-width: 820px) {
  body {
    align-items: flex-start;
  }

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

@media (max-width: 520px) {
  .top-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .banner {
    align-items: flex-start;
    padding-bottom: 76px;
  }

  .banner-badge {
    left: 12px;
    right: 12px;
    max-width: none;
  }
}
