:root {
  --bg: #f5f0ea;
  --paper: rgba(255, 255, 255, 0.74);
  --line: rgba(18, 17, 13, 0.1);
  --ink: #171612;
  --muted: #5c5650;
  --olive: #c9d697;
  --kiwi: #88a751;
  --kiwi-deep: #5c6d31;
  --shadow: 0 22px 45px rgba(18, 17, 13, 0.09);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #f7f2ec 0%, #efe9e2 100%);
  color: var(--ink);
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
}

.public-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.public-card {
  width: min(520px, 100%);
  padding: 56px 42px 48px;
  text-align: center;
  background: rgba(255, 252, 243, 0.68);
  border: 1px solid rgba(108, 130, 65, 0.18);
  border-radius: 38px;
  box-shadow: 0 24px 60px rgba(77, 96, 43, 0.14);
}

.kiwi-button {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 auto 24px;
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: linear-gradient(145deg, #d8e8a7, #b9d27f);
  box-shadow: 0 12px 25px rgba(87, 120, 45, 0.2);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.kiwi-button:hover,
.kiwi-button:focus-visible {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 0 16px 30px rgba(87, 120, 45, 0.28);
}

.kiwi-button:focus-visible {
  outline: 3px solid rgba(92, 109, 49, 0.35);
  outline-offset: 4px;
}

.kiwi-symbol {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
}

.public-kicker {
  margin: 0 0 14px;
  color: var(--kiwi-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.public-card h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.public-copy {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.admin-reveal {
  max-width: 360px;
  margin: 30px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(108, 130, 65, 0.18);
  text-align: left;
}

.admin-reveal label {
  display: block;
  margin-bottom: 8px;
  color: var(--kiwi-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.admin-input-row input,
.admin-input-row button {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(108, 130, 65, 0.22);
  border-radius: 12px;
  font: inherit;
}

.admin-input-row input {
  background: rgba(255, 255, 255, 0.8);
}

.admin-input-row button {
  background: var(--kiwi-deep);
  color: white;
  cursor: pointer;
  font-weight: 700;
}

.message-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.message-card {
  width: min(520px, 100%);
  padding: 36px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.message-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: -0.07em;
}

.message-card p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

.message-card a {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.message-card form {
  display: grid;
  gap: 12px;
}

.message-card input,
.message-card button {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.message-card button {
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.message-error {
  margin: 0 0 18px !important;
  color: #9b3c2f !important;
  font-weight: 700;
}

.album-page {
  padding: 28px 20px 64px;
  background:
    radial-gradient(circle at 15% 10%, rgba(216, 232, 167, 0.42), transparent 32%),
    linear-gradient(180deg, #f7f2ec 0%, #efe9e2 100%);
}

.album-shell {
  width: min(920px, 100%);
  margin: 0 auto;
}

.album-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.album-brand .kiwi-symbol {
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 16px;
  background: var(--olive);
  font-size: 1.7rem;
}

.album-header {
  margin: 78px 0 34px;
}

.album-header h1 {
  margin: 12px 0;
  font-size: clamp(2.6rem, 8vw, 5rem);
  letter-spacing: -0.09em;
  line-height: 0.95;
}

.album-header p:last-child {
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.65;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.album-card,
.album-item {
  border: 1px solid rgba(108, 130, 65, 0.18);
  border-radius: 22px;
  background: rgba(255, 252, 243, 0.7);
  box-shadow: 0 14px 32px rgba(77, 96, 43, 0.08);
}

.album-card {
  display: grid;
  gap: 9px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.album-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(77, 96, 43, 0.15);
}

.album-card strong {
  font-size: 1.2rem;
}

.album-card span:last-child,
.album-item p {
  color: var(--muted);
  line-height: 1.55;
}

.album-lock {
  color: var(--kiwi-deep);
}

.album-items {
  display: grid;
  gap: 14px;
}

.album-item {
  padding: 20px 22px;
}

.album-item a {
  color: var(--kiwi-deep);
  font-size: 1.15rem;
}

.album-item p {
  margin: 8px 0 0;
}

.album-empty {
  color: var(--muted);
}

.file-card {
  text-align: center;
}

.file-card h1 {
  overflow-wrap: anywhere;
}

.file-preview {
  display: block;
  width: 100%;
  max-height: 520px;
  margin: 0 auto 24px;
  border-radius: 18px;
  object-fit: contain;
}

.file-size {
  color: var(--kiwi-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.tag {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-link {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  font-weight: 700;
}

.layout {
  display: grid;
  gap: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  padding: 26px 0 8px;
}

.hero-copy {
  background: rgba(255,255,255,0.5);
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px;
}

.eyebrow, .section-title {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(140, 167, 81, 0.12);
  color: var(--kiwi-deep);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.kiwi-art {
  position: relative;
  width: 100%;
  min-height: 330px;
  display: grid;
  place-items: center;
}

.kiwi-bush {
  position: absolute;
  inset: 26% 22% auto auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(140, 167, 81, 0.18);
  filter: blur(16px);
}

.kiwi-body {
  position: relative;
  width: 230px;
  height: 260px;
  border-radius: 55% 45% 50% 50% / 48% 48% 52% 52%;
  background: linear-gradient(160deg, #9cab62 0%, #6a8d3e 38%, #3b5b23 100%);
  border: 2px solid rgba(22, 24, 16, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.kiwi-body::before {
  content: "";
  position: absolute;
  inset: 12% 18% 18% 18%;
  border-radius: 53% 47% 54% 46% / 52% 52% 48% 48%;
  background: rgba(255,255,255,0.12);
}

.kiwi-eye {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f5f0ea;
  top: 66px;
  left: 48px;
  box-shadow: inset 0 0 0 14px #14240a;
}

.kiwi-eye::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #11150f;
  top: 25px;
  left: 25px;
}

.kiwi-seed {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(245,240,234,0.8);
  border-radius: 50%;
}

.kiwi-seed-a { top: 130px; left: 110px; }
.kiwi-seed-b { top: 158px; left: 150px; }
.kiwi-seed-c { top: 180px; left: 96px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.controls {
  padding: 22px;
}

.action-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mini-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.44);
  border-radius: 18px;
}

.mini-header {
  font-weight: 800;
  letter-spacing: -0.04em;
}

input, button {
  font: inherit;
}

.mini-form input {
  width: 100%;
  border: 1px solid rgba(18,17,13,0.12);
  background: rgba(255,255,255,0.72);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
}

.mini-form button, .copy-button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.mini-form button {
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
}

.result {
  padding: 20px 22px 22px;
}

#result-url {
  margin-top: 18px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  word-break: break-all;
}

#result-meta {
  margin-top: 8px;
  color: var(--muted);
}

.qr-box {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(200px, 100%);
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
}

.qr-box img {
  width: 170px;
  height: 170px;
  object-fit: contain;
}

.copy-button {
  margin-top: 18px;
  background: rgba(255,255,255,0.64);
  border: 1px solid var(--line);
  padding: 10px 14px;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }
}
