@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(circle at top left, rgba(85, 18, 130, 0.22), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255, 102, 255, 0.08), transparent 35%),
    #07000d;

  color: #d6b8ff;

  font-family: "Share Tech Mono", monospace;
  font-size: 14px;
  line-height: 1.5;

  letter-spacing: 0.2px;

  padding: 24px;

  text-shadow:
    0 0 3px rgba(214, 184, 255, 0.08);
}

::selection {
  background: #8f3fff;
  color: white;
}

.shell {
  width: min(100%, 1080px);
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;

  border-bottom: 1px solid #4c1673;

  padding-bottom: 18px;
  margin-bottom: 22px;
}

h1,
h2,
h3 {
  color: #f4dcff;
  word-break: break-word;
  margin-top: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -1px;

  text-shadow:
    0 0 8px rgba(255, 130, 255, 0.16);
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1;
  margin-bottom: 14px;

  text-shadow:
    0 0 10px rgba(255, 130, 255, 0.18);
}

a {
  color: #ff8cff;
  text-decoration: none;

  transition:
    color 0.15s ease,
    text-shadow 0.15s ease;
}

a:hover {
  color: #ffd7ff;

  text-shadow:
    0 0 8px rgba(255, 170, 255, 0.32);
}

nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

nav a {
  border: 1px solid #4b1470;
  background: rgba(18, 0, 34, 0.78);

  padding: 8px 12px;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease;
}

nav a:hover {
  background: rgba(49, 0, 82, 0.92);
  border-color: #ff8cff;

  transform: translateY(-1px);
}

/* =========================
   PANELS
========================= */

.notice,
.card,
.shrine,
.panel,
form,
.guest-entry,
.sidebar-box,
.hero {
  border: 1px solid #4b1470;

  background:
    linear-gradient(
      180deg,
      rgba(31, 0, 54, 0.86),
      rgba(15, 0, 28, 0.9)
    );

  backdrop-filter: blur(2px);

  padding: 16px;
  margin-bottom: 16px;

  box-shadow:
    0 0 14px rgba(84, 0, 150, 0.08);
}

.hero {
  border-color: #6a23a0;
}

.card.pinned,
.shrine.pinned {
  border-color: #ff66ff;

  box-shadow:
    0 0 18px rgba(255, 102, 255, 0.16);
}

.tag,
.meta {
  color: #b98fff;
  font-size: 12px;
  opacity: 0.9;
}

.tiny {
  font-size: 11px;
  opacity: 0.7;
}

/* =========================
   GRID
========================= */

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================
   SHRINE PAGE
========================= */

.shrine-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  align-items: start;
}

.shrine-image {
  width: 100%;
  max-height: 360px;

  object-fit: cover;

  border: 1px solid #5f2387;

  margin-bottom: 16px;

  filter:
    saturate(0.95)
    contrast(1.05);
}

.sidebar-box {
  border-style: dashed;
}

/* =========================
   FORM ELEMENTS
========================= */

input,
textarea,
button {
  width: 100%;

  font: inherit;

  background: rgba(10, 0, 20, 0.95);
  color: #efd9ff;

  border: 1px solid #5f2387;

  padding: 12px;

  margin: 8px 0;

  outline: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: #d278ff;

  box-shadow:
    0 0 10px rgba(210, 120, 255, 0.18);

  background: rgba(22, 0, 36, 0.98);
}

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

button {
  cursor: pointer;

  background:
    linear-gradient(
      180deg,
      #551488,
      #3b0d5d
    );

  color: white;

  font-size: 13px;

  transition:
    transform 0.12s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

button:hover {
  background:
    linear-gradient(
      180deg,
      #6f1cb0,
      #4a1173
    );

  transform: translateY(-1px);

  box-shadow:
    0 0 12px rgba(179, 82, 255, 0.18);
}

/* =========================
   ADMIN
========================= */

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-actions form {
  flex: 1 1 140px;

  padding: 0;
  margin: 0;

  border: 0;
  background: transparent;

  box-shadow: none;
}

/* =========================
   TEXT
========================= */

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;

  margin: 0;

  color: #ead7ff;
}

/* =========================
   CORNER PNG
========================= */

.corner-img {
  position: fixed;

  right: 18px;
  bottom: 0;

  width: clamp(150px, 20vw, 280px);
  height: clamp(150px, 20vw, 280px);

  background-image: url("https://www.nicepng.com/png/full/356-3568164_oc-edited-mediaarmless-yuri-cause-editing-her-sprites.png");

  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;

  opacity: 0.5;

  pointer-events: none;

  z-index: -1;

  filter:
    drop-shadow(0 0 12px rgba(194, 113, 255, 0.18));
}

/* =========================
   MOBILE
========================= */

@media (max-width: 760px) {

  body {
    padding: 14px;
    font-size: 13px;
  }

  .site-header {
    display: block;
  }

  nav {
    margin-top: 12px;
  }

  .shrine-page {
    grid-template-columns: 1fr;
  }

  textarea {
    min-height: 180px;
  }

  .corner-img {
    opacity: 0.28;
    right: 4px;

    width: 180px;
    height: 180px;
  }

  h1 {
    font-size: 28px;
  }

  .hero-title {
    font-size: 34px;
  }
}

.site-footer {
  margin-top: 40px;
  padding-top: 18px;

  border-top: 1px solid #34104f;

  text-align: center;

  color: #8c68b3;

  font-size: 11px;
  letter-spacing: 0.5px;

  opacity: 0.72;
}

.site-footer p {
  margin: 0;
}

.site-footer:hover {
  opacity: 1;
}
