@font-face {
  font-family: 'NewRomantic';
  src: url('/fonts/ROMANTIC.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BabyDoll';
  src: url('/fonts/BabyDoll.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  --typewriter-width: min(1080px, 96vw);
  --typewriter-height: calc(var(--typewriter-width) * 922 / 1080);
  --paper-left: 17.13%;
  --paper-top: 2.17%;
  --paper-height: 39.05%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-family: 'Courier New', Courier, monospace, Arial, sans-serif;
  color: var(--ring-ink);
  background-image: url('/images/literring/sparkles.gif'), linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.1)), url('/images/literring/greenbg.png');
  background-repeat: repeat, no-repeat, no-repeat;
  background-position: center top, center, center;
  background-size: auto, cover, cover;
  background-attachment: fixed;
  box-sizing: border-box;
}
.typewriter {
  position: relative;
  width: var(--typewriter-width);
  height: var(--typewriter-height);
  margin: 0 auto 0;
  background: url('/images/literring/tpbg.png') center/contain no-repeat;
}
.paper {
  position: absolute;
  left: var(--paper-left);
  right: var(--paper-left);
  top: var(--paper-top);
  height: var(--paper-height);
  padding: 12px 14px 16px;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.hero {
  text-align: center;
  margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: 72px;
  letter-spacing: 2px;
  color: var(--ring-accent);
  font-family: 'NewRomantic', 'Trebuchet MS', Arial, sans-serif;
  line-height: 1;
}
.hero p { margin: 0; font-size: 13px; color: var(--ring-ink-soft); }
.card { border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.card h2 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--ring-accent);
  text-align: center;
}
.card p, .card li { font-size: 15px; line-height: 1.65; color: var(--ring-ink); margin-bottom: 12px; }
.card ul { margin: 6px 0 0 16px; padding: 0; }
.section-buttons { display: flex; gap: 8px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.section-btn {
  background: var(--ring-card);
  border: 1px solid var(--ring-border);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 30px;
  font-family: 'NewRomantic', 'Trebuchet MS', Arial, sans-serif;
  color: var(--ring-ink);
}
.section-btn.active { background: var(--ring-accent); color: #3636af; box-shadow: 0 4px 8px rgba(0,0,0,0.08); }
.section-panel { display: none; }
.section-panel.active { display: block; }
.widget-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: center; }
.widget-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ring-border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  color: #000000;
}
.widget-preview img { width: 140px; height: auto; display: block; border: none; }
.widget-preview.active-preview { border-color: var(--ring-accent); box-shadow: 0 8px 20px rgba(0,0,0,0.12); transform: translateY(-6px); background: linear-gradient(180deg, rgba(255, 255, 255, 0.462), rgba(245, 245, 245, 0.481)); }
.widget-preview:focus { outline: 3px solid rgba(106,127,102,0.18); outline-offset: 4px; }
.widget-nav { font-size: 14px; color: #000000; display: flex; align-items: center; gap: 8px; }
.widget-nav a { color: #000000; text-decoration: none; }
.codebox { width: 100%; min-height: 78px; resize: vertical; background: rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.15); border-radius: 8px; padding: 10px; font-size: 12px; color: #202020; box-sizing: border-box; }
.member-count { font-size: 12px; color: var(--ring-ink-soft); }
#widget-instruction { text-align: center; margin-top: 12px; font-size: 14px; color: var(--ring-ink-soft); }
#webringulist { margin-top: 10px; }
.webring-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.webring-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--ring-border);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.webring-card a {
  color: var(--ring-accent);
  text-decoration: underline;
}
.webring-card-button {
  display: inline-block;
}
.webring-card-button img {
  width: 88px;
  height: 31px;
  object-fit: contain;
  border: 0;
  display: block;
}
.webring-card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ring-ink);
}
.webring-card-url {
  font-size: 12px;
  color: var(--ring-ink-soft);
}
.webring-card-desc {
  font-size: 13px;
  color: var(--ring-ink);
  line-height: 1.5;
}
.webring-message {
  display: none;
  text-align: center;
  padding: 8px 10px;
  margin: 0 auto 10px;
  border: 1px dashed rgba(0,0,0,0.25);
  border-radius: 8px;
  background: rgba(255,255,255,0.7);
  color: #3a2f38;
  font-size: 13px;
}
.webring-message.show { display: block; }
.footer { text-align: center; margin-top: 14px; font-size: 14px; color: #ff66b2; font-weight: 700; }
.footer a { color: inherit; text-decoration: underline; font-weight: inherit; }
@media (max-width: 760px) {
  :root {
    --typewriter-width: min(96vw, 900px);
  }
  .hero h1 { font-size: 28px; }
  .card h2 { font-size: 15px; }
}
.about-content { margin: 0; padding: 6px 12px; box-sizing: border-box; }
.about-content h3 { margin: 0 0 8px; font-size: 18px; }
.about-content h4 { margin: 14px 0 8px; font-size: 15px; }
.about-content p { margin: 0 0 12px; }
.about-content ul { margin: 0 0 12px 20px; padding: 0; }
.card#about { min-height: 750px; padding-top: 18px; }
@media (max-width: 760px) { .card#about { min-height: auto; padding-top: 12px; } }
.sticky-note {
  position: absolute;
  left: 6%;
  bottom: 14%;
  width: 28%;
  aspect-ratio: 1;
  height: auto;
  background-image: url('/images/literring/sticky1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  box-sizing: border-box;
  z-index: 4;
  pointer-events: auto;
}
.sticky-note .note-text {
  padding: 15px;
  border-radius: 6px;
  font-size:20px;
  line-height: 1.25;
  color: var(--ring-ink);
  text-align: center;
  font-family: 'BabyDoll', 'Courier New', Courier, monospace, Arial, sans-serif;
  transform: translateY(15px);
}