:root {
  --yuki-bg: #0c1426;
  --yuki-panel: #111827;
  --yuki-card: #172133;
  --yuki-text: #e5e7eb;
  --yuki-muted: #9ca3af;
  --yuki-accent: #38bdf8;
  --yuki-accent-strong: #0ea5e9;
  --yuki-border: #1f2937;
  /* layout sizing defaults */
  --yuki-min: 780px;
  --yuki-max: 1100px;
  --yuki-vw: 92vw;
  /* firefox defaults (can be overridden by JS) */
  --yuki-min-ff: 700px;
  --yuki-max-ff: 1000px;
  --yuki-vw-ff: 88vw;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.yuki {
  min-height: 100vh;
  display: block;
  color: var(--yuki-text);
  background: radial-gradient(circle at 10% 20%, rgba(14,165,233,0.08), transparent 25%),
              radial-gradient(circle at 80% 10%, rgba(124,58,237,0.08), transparent 22%),
              var(--yuki-bg);
}

.yuki a {
  color: var(--yuki-accent);
  text-decoration: none;
}
.yuki a:hover {
  color: var(--yuki-accent-strong);
  text-decoration: underline;
}

.yuki .page {
  width: clamp(var(--yuki-min), var(--yuki-vw), var(--yuki-max));
  max-width: var(--yuki-max);
  margin: 10px auto;
  padding: 8px 10px;
}

.yuki .box {
  background: var(--yuki-card);
  border: 1px solid var(--yuki-border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.menu-box {
  padding: 6px 8px;
  margin-bottom: 8px;
}


.compact-box {
  padding: 8px;
  margin-bottom: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-items: start;
}
.yuki .menubar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(17, 24, 39, 0.72), rgba(12, 18, 32, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.yuki .menubar a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--yuki-text);
  background: radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0.06) 40%, rgba(255,255,255,0.02)),
              rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.22);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.yuki .menubar a:hover {
  background: linear-gradient(145deg, var(--yuki-accent), var(--yuki-accent-strong));
  color: #0b1021;
  border-color: transparent;
  transform: translateY(-1px) scale(1.01);
  text-decoration: none;
}

.text-small {
  font-size: 14px;
  color: var(--yuki-text);
}

.table-center {
  margin: 0 auto;
}

.form-field {
  width: 100%;
  padding: 4px 6px;
  margin: 2px 0 8px 0;
}

.form-button {
  margin-top: 6px;
  padding: 7px 12px;
}

.table-fixed {
  width: 100% !important;
  max-width: 100%;
  table-layout: fixed;
}

.notice-error {
  color: #fca5a5;
  margin-bottom: 10px;
}

.notice-info {
  color: #a7f3d0;
  margin-bottom: 8px;
}

.notice-warn {
  color: #f87171;
  margin-bottom: 8px;
}

.text-center {
  text-align: center;
}

.form-narrow {
  max-width: 400px;
  margin: 0;
  padding: 0;
}

.pre-wrap {
  white-space: pre-wrap;
  font-family: monospace;
  margin: 0;
}

.centered-media {
  display: block;
  margin: 0 auto;
}

.media-360 {
  max-width: 360px;
  width: 100%;
  height: auto;
}

.video-320 {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 6px auto;
}

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

.copy-spaced {
  margin-top: 2px;
}

.select-compact {
  width: 60%;
  max-width: 160px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.home-card {
  background: var(--yuki-card);
  border: 1px solid var(--yuki-border);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.home-card h3 {
  margin-bottom: 8px;
}

.home-photo {
  text-align: center;
}

.col-75 {
  width: 75%;
}

.col-25 {
  width: 25%;
}

.hidden {
  display: none;
}


.login-shell {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  width: 100%;
  max-width: 460px;
  padding: 12px;
  background: none;
  border: none;
  box-shadow: none;
}
.login-title {
  text-align: center;
  margin-top: 0;
}
.login-message {
  text-align: center;
}
.login-error {
  color: #ff8080;
  font-weight: bold;
  text-align: center;
  margin-bottom: 12px;
}
.login-button {
  width: 100%;
}
.login-hint {
  font-size: 0.9em;
  color: var(--yuki-text);
  opacity: 0.7;
  margin-top: 12px;
  text-align: center;
}

.yuki table {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--yuki-panel);
  color: var(--yuki-text);
  border-radius: 10px;
  overflow: hidden;
}

.yuki th,
.yuki td {
  padding: 10px;
  border: 1px solid var(--yuki-border);
}

.yuki table.gallery-table {
  width: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0 auto;
}

.yuki table.gallery-table td {
  border: none;
  text-align: center;
  vertical-align: top;
  padding: 12px;
}

.yuki .slideshow {
  max-width: 880px;
  margin: 0 auto 20px auto;
}

.yuki .slideshow-table {
  width: auto;
  background: var(--yuki-panel);
  border: 1px solid var(--yuki-border);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
}

.yuki .slideshow-table td {
  border: none;
}

.yuki .slideshow-table .filename-row {
  padding: 10px 12px;
  background: rgba(56, 189, 248, 0.08);
}

.yuki .nav-row {
  text-align: center;
  padding: 16px 12px;
  background: rgba(56, 189, 248, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.yuki .image-row td {
  vertical-align: middle;
  padding: 6px 4px;
}

.yuki .nav-cell {
  width: 56px;
  padding: 0 6px;
  text-align: center;
}

.yuki .image-cell img {
  border-radius: 10px;
  border: 1px solid var(--yuki-border);
  background: #0b1325;
  display: block;
  margin: 0 auto;
}

.yuki .nav-row .filename {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.yuki .slideshow-table img {
  border-radius: 10px;
  border: 1px solid var(--yuki-border);
  background: #0b1325;
}

.yuki .counter {
  text-align: center;
  padding: 12px;
  color: var(--yuki-muted);
}

.yuki .caption {
  padding: 14px;
}

.yuki .slideshow-table tr:last-child td {
  padding: 14px;
}

.yuki h1,
.yuki h2,
.yuki h3 {
  color: var(--yuki-text);
  text-align: center;
  margin: 12px 0;
  letter-spacing: 0.5px;
}

.yuki h1 {
  font-size: 1.28rem;
  font-weight: 600;
}

.yuki h2 {
  font-size: 1.08rem;
}

.yuki h3 {
  font-size: 0.98rem;
}

.yuki .tindex-title {
  font-size: 1.02rem;
  margin: 8px 0 6px 0;
}

.yuki .tindex-subtitle {
  font-size: 0.78rem;
  margin: 0 0 8px 0;
  letter-spacing: 0.2px;
}

.yuki .copy,
.yuki .update,
.yuki .info,
.yuki .kop {
  color: var(--yuki-muted);
}

.yuki td .copy {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
}

.yuki .thumb-caption {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--yuki-muted);
}

.month-empty {
  color: #777 !important;
  text-decoration: none;
}

/* Smaller captions on thumbnail index pages (tindex) */
.yuki table.gallery-table .thumb-caption {
  font-size: 0.58rem !important;
  color: var(--yuki-muted);
  line-height: 1.15;
}

.yuki img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.yuki img.rand {
  border: 1px solid var(--yuki-border);
  padding: 4px;
  background: var(--yuki-panel);
}

.hero-text-card {
  width: 280px;
  height: 224px;
  margin: 0 auto 8px auto;
  padding: 18px 12px;
  border-radius: 12px;
  background: linear-gradient(160deg, #0f172a 0%, #111c34 40%, #0b1325 100%);
  color: #e5e7eb;
  border: 1px solid var(--yuki-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Times New Roman", Georgia, serif;
}

.hero-text-card .hero-line {
  font-size: 18px;
  line-height: 1.4;
  color: #e5e7eb;
}

.hero-text-card .hero-name {
  font-size: 26px;
  font-weight: 700;
  color: #8ecaff;
}

.hero-text-card .hero-small {
  font-size: 17px;
  letter-spacing: 1px;
}

.hero-text-card .spacer {
  line-height: 1.2;
}

.yuki .titel,
.yuki .star {
  color: var(--yuki-accent);
  font-weight: 600;
}

.yuki form input,
.yuki form textarea,
.yuki form select,
.yuki form button {
  width: 100%;
  font: inherit;
}

.yuki form input,
.yuki form textarea,
.yuki form select {
  background: #0b1325;
  border: 1px solid var(--yuki-border);
  border-radius: 6px;
  padding: 8px;
  color: var(--yuki-text);
}

.yuki form button {
  margin-top: 6px;
  background: var(--yuki-accent);
  color: #0b1021;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.yuki form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.35);
}

.yuki .update {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  clear: both;
  width: 100%;
}

.yuki .update img {
  max-height: 40px;
  border-radius: 0;
}

.yuki .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(56,189,248,0.85), rgba(14,165,233,0.65));
  color: #0b1021;
  font-size: 24px;
  border: 1px solid var(--yuki-border);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease, color 0.2s ease;
}

.yuki .nav-btn:hover {
  background: linear-gradient(145deg, rgba(56,189,248,0.95), rgba(14,165,233,0.85));
  color: #031530;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(56, 189, 248, 0.45);
}

.yuki video.movie-player {
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  border: 1px solid var(--yuki-border);
  background: #0b1325;
  display: block;
  margin: 8px 0;
}

/* Firefox-specific width override to keep layout tighter */
@-moz-document url-prefix() {
  .yuki .page {
    width: clamp(var(--yuki-min-ff), var(--yuki-vw-ff), var(--yuki-max-ff));
    max-width: var(--yuki-max-ff);
  }
  .yuki .slideshow {
    max-width: calc(var(--yuki-max-ff) - 80px);
  }
}
