* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: #c8b89a; color: #fffffa; }
::-moz-selection { background: #c8b89a; color: #fffffa; }
:root {
  --ink:        #3d3530;
  --ink-light:  #6b6255;
  --ink-faint:  #9e9488;
  --paper:      #faf8f3;
  --paper-mid:  #f3f0e8;
  --paper-warm: #ede9de;
  --rule:       #ddd8cc;
  --accent:     #8c7355;
  --accent-soft:#b5a082;
  --blush:      #c9a87a;
  --red-drop:   #a05a3a;
  --dusty-pink: #c4af9e;
  --dusty-pink-dark: #b39a88;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  
  background: #d8d4cc url('https://keukegen.neocities.org/resources/backgrounds/aOhswkJ.png') repeat;
  font-family: 'HinaMincho', Georgia, serif;
  font-size: 13px;
  color: var(--ink-light);
  min-height: 100vh;
  cursor: url('https://keukegen.neocities.org/resources/cursors/creampoint.png'), auto;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAASElEQVR42gXBgQAAIAxFwW8QwhBCCCGEIYQQQgghhBBCCEMYwutOkphzYmbsvdG9l9YaEYG7o1or5xxKKay1UGYyxuC9R++dD7yGJkTj6F0HAAAAAElFTkSuQmCC") repeat;
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
  z-index: 9999;
}

a {
  cursor: url('https://keukegen.neocities.org/resources/cursors/creamhand.png'), pointer !important;
  color: var(--blush);
  text-decoration: none;
}
a:hover { color: var(--red-drop); text-decoration: underline; }

button, [onclick], label, input, select, textarea,
.blog-row, .blog-row *, .b-read, .fl-icon, .fl-icon *,
.mp-btn, .mp-pp-btn, #mp-bar, #bv-close, .pm, .longing-phrase,
input[type="submit"], input[type="radio"],
#lucky-cat-blk a, #lucky-cat-blk img, .add-btn, #ml-btn,
#nav-bar a.nav-active, [type="range"], .poll-btn, .poll-radio-label {
  cursor: url('https://keukegen.neocities.org/resources/cursors/creamhand.png'), pointer !important;
}

#wrapper {
  width: min(690px, 100%);
  margin: 0 auto;
  background: var(--paper);
  outline: 3px double #c8b89a;
  outline-offset: 3px;
  position: relative;
}

#header {
  width: 100%;
  height: 148px;
  background: #c9c9c9 url('https://keukegen.neocities.org/resources/backgrounds/blossom.gif') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
#header::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.3) 45%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 1;
}
#logo {
  position: absolute;
  left: 14px; bottom: 30px;
  font-family: 'Sekaiwo', serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: #fff;
  text-shadow: 1px 2px 7px rgba(0,0,0,0.2);
  z-index: 3; line-height: 1;
}
#logo span { color: #e5beb5; }
#logo-sub {
  display: block;
  font-family: 'ExHira', serif;
  font-size: clamp(0.7rem, 2vw, 1rem);
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1px; margin-top: 3px;
}

#nav-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(93,78,62,0.88);
  display: flex; align-items: stretch;
  height: 25px; z-index: 3;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
#nav-bar::-webkit-scrollbar { display: none; }

#nav-bar a {
  display: flex; align-items: center;
  padding: 0 10px;
  color: #f0ebe2;
  font-family: 'HinaMincho', serif;
  font-size: 13px; font-weight: bold;
  border-right: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap; flex-shrink: 0;
  text-decoration: none; font-style: normal;
  position: relative;
}

#nav-bar a.nav-active {
  transition: background 0.15s;
}
#nav-bar a.nav-active:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-style: italic;
}
#nav-bar a.nav-active.active {
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-style: italic;
  border-bottom: 2px solid #c8b89a;
}

#nav-bar a.nav-disabled {
  color: rgba(240,235,226,0.45);
  pointer-events: none;
  cursor: default !important;
}

#nav-clover {
  display: flex; align-items: center;
  padding: 0 6px;
  flex-shrink: 0;
}
#nav-clover img {
  width: 16px; height: 16px;
  image-rendering: pixelated;
  opacity: 0.85;
}

#sitely-box {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 0 10px;
  background: rgba(61,53,48,0.9);
  border-right: 1px solid rgba(255,255,255,0.12);
  min-width: 60px; border-radius: 0 12px 0 0; flex-shrink: 0;
}
#sitely-lbl {
  font-family: 'HinaMincho', serif;
  font-size: 12px; font-weight: bold;
  color: #c8b89a; letter-spacing: 1px; line-height: 1;
}
#clock-box {
  margin-left: auto;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 0 10px;
  background: rgba(61,53,48,0.9);
  border-left: 1px solid rgba(255,255,255,0.12);
  min-width: 82px; border-radius: 12px 0 0 0; flex-shrink: 0;
}
#ck-time {
  font-family: 'Courier New', monospace;
  font-size: 12px; font-weight: bold;
  color: #c8b89a; letter-spacing: 1px; line-height: 1;
  /* nudge slightly left so the time sits a touch closer to the clover */
  transform: translateX(-2px);
}

#pg-bar { background: var(--paper-warm); border-bottom: 1px solid var(--rule); height: 5px; }
#body-row { display: flex; align-items: flex-start; }
#main { flex: 1; min-width: 0; border-right: 1px solid var(--rule); }
#mid-row { display: flex; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
#viewer-wrap { flex: 1; min-width: 180px; overflow: hidden; }
#blog-viewer { height: 260px; background: var(--paper); position: relative; overflow: hidden; }
#blog-viewer.empty { display: flex; align-items: center; justify-content: center; color: var(--rule); font-style: italic; }
#bv-scroll { height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--rule) var(--paper); }
#bv-scroll::-webkit-scrollbar { width: 6px; }
#bv-scroll::-webkit-scrollbar-track { background: var(--paper); }
#bv-scroll::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
#bv-inner { padding: 13px; }
#bv-title { font-family: 'HinaMincho', serif; font-size: 1.2rem; color: var(--ink); margin-bottom: 3px; line-height: 1.3; }
#bv-meta { font-size: 11px; color: var(--accent-soft); margin-bottom: 9px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
#bv-body { font-family: 'HinaMincho', serif; font-size: 13px; line-height: 1.7; color: var(--ink-light); }
#bv-body p + p { margin-top: 9px; }
#bv-close { position: absolute; top: 6px; right: 7px; background: var(--paper); border: 1px solid var(--rule); color: var(--accent-soft); font-size: 10px; padding: 2px 6px; }
#bv-close:hover { background: var(--paper-mid); }
#blog-list-panel { width: 196px; flex-shrink: 0; border-left: 1px solid var(--rule); background: var(--paper); }

.sec-hd {
  background: var(--ink); color: var(--paper);
  font-family: 'HinaMincho', Georgia, serif;
  font-size: 12px; font-weight: bold;
  letter-spacing: 0.5px;
  padding: 8px 10px;
  display: flex; align-items: center; justify-content: space-between;
}

.blog-row {
  transition: box-shadow 0.12s;
}
.blog-row:hover {
  box-shadow: 2px 2px 0 var(--blush);
}
.blog-row:hover .bt {
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--blush);
  text-underline-offset: 3px;
  color: var(--blush);
}
#reviews-list a, #poetry-list a {
  pointer-events: none;
  cursor: default !important;
}
#reviews-list a:hover, #poetry-list a:hover {
  color: inherit;
  text-decoration: none;
}
.blog-row {
  display: flex; align-items: flex-start;
  gap: 6px; padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.b-icon { display: none; }
.b-info { flex: 1; min-width: 0; }
.bt {
  font-size: 12px; font-weight: bold; color: var(--ink);
  white-space: normal; word-break: break-word;
  line-height: 1.4;
}
.bd { font-size: 11px; color: var(--accent-soft); margin-top: 1px; }
.b-read { display: none; }

#dual-row { display: flex; flex-wrap: wrap; }
#col-rev { flex: 1.2; min-width: 140px; border-right: 1px solid var(--rule); }
#col-po  { flex: 1; min-width: 120px; border-right: 1px solid var(--rule); }
#col-imgs { width: 106px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; background: var(--paper-mid); }
#col-imgs img { filter: sepia(60%) opacity(75%); transition: filter 0.3s ease; }
#col-imgs img:hover { filter: sepia(0%) opacity(100%); }
.col-scroll { max-height: 260px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--rule) var(--paper); }
.col-scroll::-webkit-scrollbar { width: 6px; }
.col-scroll::-webkit-scrollbar-track { background: var(--paper); }
.col-scroll::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
.prev-item { background: var(--paper); padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.prev-item:last-of-type { border-bottom: none; }
.ph { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.pt { font-weight: bold; font-size: 12px; color: var(--ink); }
.pd { font-size: 11px; color: var(--accent-soft); }
.pe { font-size: 12px; color: var(--ink-light); line-height: 1.45; }

#intro-box { border-bottom: 1px solid var(--rule); padding: 14px 14px; background: var(--paper); }
#intro-icon {
  float: left; width: 100px; height: 100px;
  margin-right: 12px; margin-bottom: 6px;
  background: var(--paper-warm); border: 1px solid var(--rule);
  flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 36px; color: var(--rule); overflow: hidden;
}
#intro-text { font-family: 'HinaMincho', serif; font-size: 13px; line-height: 1.75; color: var(--ink-light); }
#intro-text::after { content: ''; display: block; clear: both; }
.longing-phrase { transition: color 0.2s; }
.longing-phrase:hover { color: var(--blush); font-style: italic; }

#what-box { border-bottom: 1px solid var(--rule); overflow: hidden; position: relative; }
#what-hd { font-family: 'HinaMincho', Georgia, serif; font-size: 12px; font-weight: bold; letter-spacing: 0.5px; color: var(--paper); padding: 8px 11px; position: relative; overflow: hidden; text-shadow: 0 1px 4px rgba(0,0,0,0.7), 0 0 8px rgba(0,0,0,0.5); }
#what-hd::before { content: ''; position: absolute; inset: 0; background: url('https://keukegen.neocities.org/resources/backgrounds/de789a3dc46c4fa43af2da4c5f191d36.jpg') center/cover no-repeat; z-index: 0; }
#what-hd::after { display: none; }
#what-hd span { position: relative; z-index: 1; }
#what-body { padding: 12px 14px; }
#what-text { font-family: 'HinaMincho', serif; font-size: 13px; line-height: 1.75; color: var(--ink-light); }
#what-text p + p { margin-top: 8px; }
#what-text strong { color: var(--ink); }

#footer { background: var(--paper-warm); border-top: 3px double var(--rule); padding: 10px 14px; font-size: 11px; color: var(--ink-faint); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
#footer a { color: var(--blush); text-decoration: none; }
#footer a:hover { color: var(--red-drop); text-decoration: underline; }
#footer-top { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; width: 100%; }
#footer-clique { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: center; }
#footer-clique img { display: block; vertical-align: middle; }

#sidebar { width: 136px; flex-shrink: 0; background: var(--paper); }
.sb-blk { border-bottom: 1px solid var(--rule); }

.sb-hd {
  background: #7a7a5e; color: var(--paper);
  font-family: 'HinaMincho', Georgia, serif;
  font-size: 12px; font-weight: bold;
  letter-spacing: 0.3px;
  padding: 6px 8px;
}

.sb-bd { padding: 8px; }

#cal-hdr { display: flex; align-items: center; justify-content: center; margin-bottom: 5px; }
#cal-lbl { font-weight: bold; font-size: 10px; color: var(--accent-soft); font-style: italic; }
.sb-bd-cal { padding: 8px; position: relative; }
.sb-bd-cal::before { content: ''; position: absolute; inset: 0; background: url('https://keukegen.neocities.org/resources/backgrounds/train.png') center/cover no-repeat; opacity: 0.35; z-index: 0; }
.sb-bd-cal > * { position: relative; z-index: 1; }
#cal-tbl { width: 100%; border-collapse: collapse; font-size: 10px; }
#cal-tbl th { color: var(--accent-soft); font-weight: bold; text-align: center; padding: 1px 0; font-size: 9px; }
#cal-tbl td { text-align: center; padding: 1px 0; color: var(--ink-light); }
#cal-tbl td.today { background: var(--accent); color: var(--paper); font-weight: bold; border-radius: 2px; }
#cal-tbl td.dim { color: var(--rule); }

#su-ticker { font-family: 'HinaMincho', serif; max-height: 28px; overflow-y: auto; }
.su-entry { display: block; }
.su-date { color: var(--accent-soft); font-size: 10px; display: block; margin-bottom: 2px; font-family: 'Courier New', monospace; letter-spacing: 0.5px; }
.su-note { font-size: 11px; color: var(--ink-light); line-height: 1.45; }
.su-note a { color: var(--blush); }
.su-note a:hover { color: var(--red-drop); }


#fl-grid-wrap { height: 180px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--blush) var(--paper); padding: 5px 4px; }
#fl-grid-wrap::-webkit-scrollbar { width: 5px; }
#fl-grid-wrap::-webkit-scrollbar-track { background: var(--paper); }
#fl-grid-wrap::-webkit-scrollbar-thumb { background: var(--blush); border-radius: 3px; }
#fl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.fl-icon { aspect-ratio: 1; width: 100%; background: var(--paper-mid); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--rule); overflow: hidden; text-decoration: none; }
.fl-icon img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(60%) opacity(75%); transition: filter 0.3s ease; }
.fl-icon:hover img { filter: sepia(0%) opacity(100%); }

.sb-lbl { font-size: 11px; color: var(--accent-soft); margin-bottom: 2px; font-weight: bold; }
.sb-inp { width: 100%; border: 1px solid var(--rule); background: var(--paper); padding: 3px 5px; font-size: 11px; outline: none; margin-bottom: 4px; font-family: 'HinaMincho', serif; color: var(--ink-light); -webkit-appearance: none; border-radius: 0; }
.sb-inp:focus { border-color: var(--accent-soft); }
.add-btn { background: transparent; color: var(--accent); border: 1px solid var(--accent-soft); padding: 3px 7px; font-size: 9px; width: 100%; font-family: 'Courier New', monospace; letter-spacing: 1px; text-transform: uppercase; -webkit-appearance: none; border-radius: 0; }
.add-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
#email-ok { font-size: 11px; color: var(--accent); display: none; }
#email-err { font-size: 11px; color: var(--red-drop); display: none; }

#mp-wrap { padding: 7px 7px 8px; background: var(--paper); }
#mp-art-wrap { width: 100%; height: 80px; overflow: hidden; margin-bottom: 6px; border: 1px solid var(--rule); }
#mp-thumb { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(40%) opacity(80%); transition: transform 0.4s ease; }
#mp-thumb.playing { transform: scale(1.06); }
#mp-info { margin-bottom: 6px; }
#mp-artist { font-family: 'HinaMincho', serif; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mp-title { font-size: 11px; color: var(--accent-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mp-controls { display: flex; justify-content: center; align-items: center; gap: 6px; margin-bottom: 6px; }
.mp-btn { background: var(--paper); border: 1px solid var(--rule); color: var(--accent-soft); font-size: 9px; padding: 2px 5px; line-height: 1; -webkit-appearance: none; border-radius: 0; }
.mp-btn:hover { background: var(--paper-mid); color: var(--ink); }
.mp-pp-btn { background: transparent; color: var(--accent); border: 1px solid var(--accent-soft); font-size: 11px; padding: 3px 8px; }
.mp-pp-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
#mp-progress-wrap { display: flex; flex-direction: column; gap: 2px; }
#mp-times { display: flex; justify-content: space-between; width: 100%; }
#mp-cur, #mp-dur { font-size: 9px; color: var(--ink-faint); font-family: 'Courier New', monospace; }
#mp-bar { width: 100%; -webkit-appearance: none; appearance: none; height: 3px; background: var(--rule); border-radius: 2px; outline: none; }
#mp-bar::-webkit-slider-thumb { -webkit-appearance: none; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
#mp-bar::-moz-range-thumb { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; border: none; }

#lucky-cat-blk { padding-top: 8px; }
#ml-intro { font-size: 11px; color: var(--ink-faint); font-family: 'HinaMincho', serif; font-style: italic; margin-bottom: 7px; }

.poll-question { font-family: 'HinaMincho', serif; font-size: 12px; color: #777867; font-weight: bold; margin-bottom: 7px; }
.poll-radio-wrap { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.poll-radio-label { display: flex; align-items: center; gap: 7px; font-family: 'HinaMincho', serif; font-size: 12px; color: #878787; }
.poll-radio-label input[type="radio"] {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px;
  border: 1.5px solid var(--dusty-pink);
  border-radius: 3px;
  background: #fffffa;
  flex-shrink: 0; position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.poll-radio-label input[type="radio"]:checked { background: var(--dusty-pink); border-color: var(--dusty-pink); }
.poll-btn-row { display: flex; gap: 5px; }
.poll-btn { flex: 1; font-family: 'HinaMincho', serif; font-size: 11px; font-weight: bold; padding: 4px 0; border-radius: 4px; border: none; letter-spacing: 0.02em; transition: background 0.2s, color 0.2s; -webkit-appearance: none; }
.poll-btn-vote { background: var(--dusty-pink); color: #fffffa; }
.poll-btn-vote:hover { background: var(--dusty-pink-dark); }
.poll-btn-results { background: #fffffa; color: var(--dusty-pink); border: 1px dashed #c9c9c9 !important; }
.poll-btn-results:hover { background: #f5eeea; color: var(--dusty-pink-dark); }

@media (max-width: 690px) {
  #wrapper { width: 100%; outline: none; outline-offset: 0; }
  #sidebar { width: 120px; }
}

@media (max-width: 600px) {
  #blog-viewer { height: 180px; }
  #blog-list-panel { width: 160px; }
  #dual-row #col-imgs { width: 80px; }
}

@media (max-width: 540px) {
  
  #body-row { flex-direction: column; }
  #main { border-right: none; border-bottom: 1px solid var(--rule); width: 100%; }

  
  #sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }
  .sb-blk {
    flex: 1 1 160px;
    border-bottom: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
  }

  
  #rss-btn-blk {
    flex: 1 1 100%;
    border-right: none;
  }

  
  #mid-row { flex-direction: column; }
  #viewer-wrap { width: 100%; min-width: unset; }
  #blog-list-panel { width: 100%; border-left: none; border-top: 1px solid var(--rule); }
  #blog-viewer { height: 160px; }

  
  #dual-row { flex-direction: column; }
  #col-rev, #col-po { width: 100%; border-right: none; border-bottom: 1px solid var(--rule); min-width: unset; }
  #col-rev { flex: none; }
  #col-po  { flex: none; }
  #col-imgs { width: 100%; flex-direction: row; flex-wrap: wrap; height: auto; padding: 6px; }
  #col-imgs img { max-width: 88px; }

  
  #intro-icon { width: 72px; height: 72px; font-size: 26px; }

  
  #fl-grid { grid-template-columns: repeat(5, 1fr); }

  
  #footer-top { flex-direction: column; gap: 4px; }
}

@media (max-width: 380px) {
  #logo { font-size: 1.4rem; left: 10px; }
  #nav-bar a { padding: 0 7px; font-size: 10px; }
  #intro-icon { display: none; }
  #header { height: 120px; }
}

@media (hover: none) and (pointer: coarse) {
  #nav-bar a { min-height: 36px; padding: 0 12px; }
  .blog-row { padding: 10px; }
  .poll-radio-label { min-height: 32px; }
  .poll-btn { padding: 7px 0; }
  .mp-btn { padding: 5px 8px; }
  .add-btn { padding: 6px; }
}
