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

/* ══════════════════════════════════════
   RESET
══════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ══════════════════════════════════════
   VARIABLES
══════════════════════════════════════ */
:root {
  --pink:   #fce7e7;
  --white:  #ffffff;
  --black:  #000000;
  --red:    #f4917e;
  --yellow: #f2c159;
  --blue:   #65acd0;
  --font:   'DotGothic16', monospace;
}

/* ══════════════════════════════════════
   BASE (all pages)
══════════════════════════════════════ */
html {
  height: 100%;
}

body {
  min-height: 100%;
  background: var(--pink);
  font-family: var(--font);
  color: var(--black);
}

/* ══════════════════════════════════════
   INDEX PAGE ONLY
══════════════════════════════════════ */
body.index {
  padding: 6rem 1rem 4rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

main {
  width: 100%;
  max-width: 700px;
}

.screen-note {
  font-size: 0.55rem;
  color: #c8a8a8;
  text-align: center;
  margin-top: 1rem;
}

.screen-note a {
  color: inherit;
  text-decoration: none;
}
.screen-note a:hover {
  color: var(--black);
}

/* ══════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════ */
h1 {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* for inner pages that don't use index layout */
h1.page-title {
  text-align: left;
  padding: 1.2rem 1.5rem 0.8rem;
  margin-bottom: 0;
}

h2 {
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  padding: 0.8rem 1.5rem 0.4rem;
  border-top: 1px dashed #e0c8c8;
  margin-top: 0.5rem;
}

section { margin-bottom: 2rem; }

/* ══════════════════════════════════════
   COLOURED UNDERLINES
══════════════════════════════════════ */
.yellow { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.red    { text-decoration: underline; text-decoration-color: var(--red);    text-decoration-thickness: 2px; }
.blue   { text-decoration: underline; text-decoration-color: var(--blue);   text-decoration-thickness: 2px; }

/* ══════════════════════════════════════
   UPDATE LOG BOX
══════════════════════════════════════ */
.updates {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 2.5rem;
  padding: 1rem;
  background-color: var(--white);
  border: 1px solid var(--black);
  width: 400px;
  height: 200px;
  overflow-y: auto;
  font-family: var(--font);
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
}

.updates::-webkit-scrollbar       { width: 6px; }
.updates::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,.3); border-radius: 4px; }

.updates div { padding: 0.25rem 0; }

/* ══════════════════════════════════════
   VIRTUAL PET
══════════════════════════════════════ */
.pet-container {
  position: absolute;
  top: 6.5rem;
  left: calc(50% + 200px);
  transform: translateX(-50%);
  width: 150px;
  z-index: 1000;
  pointer-events: auto;
  cursor: default;
}

.pet-idle {
  display: block;
  width: 150px;
  height: auto;
  pointer-events: none;
  transition: opacity 0.1s ease-in-out;
  opacity: 1;
}

.pet-hover {
  position: absolute;
  top: 0; left: 0;
  width: 150px;
  height: auto;
  pointer-events: none;
  transition: opacity 0.1s ease-in-out;
  opacity: 0;
}

.pet-click {
  position: absolute;
  top: 0; 
  left: 0;
  width: 150px;
  height: auto;
  pointer-events: none;
  transition: opacity 0.1s ease-in-out;
  opacity: 0;
}

.pet-container:hover .pet-idle  { opacity: 0; }
.pet-container:hover .pet-hover { opacity: 1; }
.pet-container:active .pet-idle,
.pet-container:active .pet-hover {
  opacity: 0;
}

.pet-container:active .pet-click {
  opacity: 1;
}

/* ══════════════════════════════════════
   LEGEND + ENTER BUTTON
══════════════════════════════════════ */
.legend {
  width: 400px;
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  gap: 0.3rem 0.5rem;
  font-family: var(--font);
  font-size: 0.7rem;
  padding: 0 1.5rem;
}

.legend-row { display: contents; }

.legend-row > div:first-child { white-space: nowrap; }
.legend-meaning                { white-space: nowrap; }

.enter-button {
  border: 1px solid #888;
  color: #555;
  font-size: 0.7rem;
  font-family: var(--font);
  padding: 0.3rem 0.5rem;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  background-color: #f0f0f0;
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
}

.enter-button:hover { background-color: #d0d0d0; }

/* ══════════════════════════════════════
   NEW! BADGE
══════════════════════════════════════ */
.highlight-new {
  font-weight: 700;
  padding: 0 0.45em;
  border-radius: 3px;
  font-family: var(--font);
  font-size: 0.7rem;
  display: inline-block;
  background: linear-gradient(-90deg, var(--red), var(--yellow), var(--blue));
  background-size: 300% 300%;
  color: var(--white);
  animation: gradientMove 3s linear infinite;
}

.highlight-new span {
  display: inline-block;
  animation: jump-letter 2s ease-in-out infinite;
}
.highlight-new span:nth-child(1) { animation-delay: 0s; }
.highlight-new span:nth-child(2) { animation-delay: 0.2s; }
.highlight-new span:nth-child(3) { animation-delay: 0.4s; }
.highlight-new span:nth-child(4) { animation-delay: 0.6s; }

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes jump-letter {
  0%, 10%, 90%, 100% { transform: translateY(0); }
  30%                { transform: translateY(-4px); }
  50%                { transform: translateY(3px); }
}

/* ══════════════════════════════════════
   SCROLLBAR (global)
══════════════════════════════════════ */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 4px; }

/* ══════════════════════════════════════
   TAGS (conventions etc)
══════════════════════════════════════ */
.tag {
  font-size: 1rem;
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  border: 1px solid;
}
.tag-item  { background: var(--pink); border-color: #e0c8c8;      color: var(--black); }
.tag-genre { background: #fff8e8;     border-color: var(--yellow); color: var(--black); }

/* ══════════════════════════════════════
   CARD (white rounded box)
══════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid #e0c8c8;
  padding: 1rem 1.2rem;
}

/* ══════════════════════════════════════
   THUMB (image box, no stretch)
══════════════════════════════════════ */
.thumb {
  border-radius: 6px;
  background: var(--white);
  border: 1px solid #e0c8c8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #bbb;
  text-align: center;
}
.thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
}

/* ══════════════════════════════════════
   CHECKBOX
══════════════════════════════════════ */
input[type="checkbox"] {
  accent-color: var(--black);
  cursor: pointer;
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes wiggle {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-6deg); }
  40%  { transform: rotate(6deg); }
  60%  { transform: rotate(-4deg); }
  80%  { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}

@keyframes slideIn {
  from { transform: translateX(-16px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* ══════════════════════════════════════
   MAIN.HTML LAYOUT
══════════════════════════════════════ */
body.main {
  height: 100vh;
  overflow: hidden;
}

#navbar {
  height: 54px;
  width: 100%;
  flex-shrink: 0;
}
#navbar iframe {
  width: 100%; height: 100%; border: none; display: block;
}

#layout-single {
  width: 100%;
  height: calc(100vh - 54px);
  display: block;
}
#layout-single iframe {
  width: 100%; height: 100%; border: none; display: block;
}

#layout-split {
  width: 100%;
  height: calc(100vh - 54px);
  display: none;
  flex-direction: row;
}
#sidebar {
  width: 20%;
  height: 100%;
  border: none;
  border-right: 1px solid #e0c8c8;
  display: block;
}
#content {
  width: 80%;
  height: 100%;
  border: none;
  display: block;
}

/* ══════════════════════════════════════
   NAV.HTML
══════════════════════════════════════ */
body.nav {
  height: 54px;
  overflow: hidden;
}

nav {
  display: flex;
  align-items: center;
  height: 54px;
  border-bottom: 1px solid #e0c8c8;
  padding: 0 1rem;
  gap: 0;
}

.back-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.7rem;
  cursor: pointer;
  color: #b08080;
  padding: 0 0.5rem 0 0;
  transition: color 0.15s;
  white-space: nowrap;
  width: 4rem;
  text-align: left;
  flex-shrink: 0;
}
.back-btn:hover { color: var(--black); }
.back-btn .label-hover         { display: none; }
.back-btn:hover .label-default { display: none; }
.back-btn:hover .label-hover   { display: inline; }

.site-name {
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-right: auto;
  color: var(--black);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  padding: 0 0.8rem 0 0;
}
.site-name:hover {
  animation: cycleColors 1.5s linear infinite;
}
@keyframes cycleColors {
  0%   { color: var(--red); }
  33%  { color: var(--yellow); }
  66%  { color: var(--blue); }
  100% { color: var(--red); }
}

.nav-group {
  display: flex;
  align-items: center;
}

.divider {
  width: 1px;
  height: 20px;
  background: #d4b8b8;
  margin: 0 0.5rem;
}

button.nav-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  color: var(--black);
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
button.nav-btn:hover  { background: #f0d8d8; }
button.nav-btn.active { background: var(--black); color: var(--pink); }
button.nav-btn[data-color="red"]:hover    { background: #fde0d8; color: var(--red); }
button.nav-btn[data-color="yellow"]:hover { background: #fdf3d8; color: #b07d00; }
button.nav-btn[data-color="blue"]:hover   { background: #d8eef8; color: var(--blue); }

/* ══════════════════════════════════════
   HOME-CONTENT.HTML
══════════════════════════════════════ */
body.home {
  height: 100%;
  overflow-y: auto;
  padding: 2rem;
  box-sizing: border-box;
}

.blog-wrap {
  max-width: 580px;
  margin: 0 auto;
}

.blog-header {
  font-size: 1rem;
  color: #c87070;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0d0d0;
}

.blog-entry {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0d0d0;
}

.blog-date {
  font-size: 0.7rem;
  color: #c8a0a0;
  margin-bottom: 0.25rem;
}

.blog-title {
  display: block;
  color: #c87070;
  text-decoration: none;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.blog-title:hover { text-decoration: underline; }

.blog-excerpt {
  font-size: 0.8rem;
  color: #7a5a5a;
  line-height: 1.7;
}

.blog-link { color: #c87070; }

.blog-content { font-size: 0.8rem; color: #5a3a3a; line-height: 1.85; margin-top: 0.6rem; }
.blog-content p   { margin-bottom: 0.9rem; }
.blog-content p:last-child { margin-bottom: 0; }
.blog-content a   { color: #c87070; text-underline-offset: 2px; }
.blog-content a:hover { opacity: 0.7; }
.blog-content h1,
.blog-content h2,
.blog-content h3  { font-size: 0.85rem; margin: 1.2rem 0 0.5rem; letter-spacing: 0.04em; }
.blog-content ul,
.blog-content ol  { padding-left: 1.2rem; margin-bottom: 0.9rem; }
.blog-content li  { margin-bottom: 0.3rem; }

.art-placeholder {
  width: 260px;
  height: 260px;
  border: 2px dashed #d4b0b0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #c8a0a0;
  text-align: center;
  font-size: 0.7rem;
}
.art-placeholder .icon { font-size: 2rem; opacity: 0.4; }

/* ══════════════════════════════════════
   SIDEBAR (shared across all sidebars)
══════════════════════════════════════ */
body.sidebar {
  height: 100%;
  overflow-y: auto;
}

.sidebar-title {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.8rem 1rem 0.5rem;
  color: #999;
  border-bottom: 1px solid #e0c8c8;
}

ul { list-style: none; padding: 0.4rem 0; }

li button.sidebar-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.7rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
  color: var(--black);
  border-left: 3px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
li button.sidebar-btn:hover  { background: #f5e0e0; border-left-color: var(--red); }
li button.sidebar-btn.active { background: #fde0d8; border-left-color: var(--black); }

/* shop sidebar uses yellow hover */
li button.sidebar-btn.yellow-hover:hover { background: #fdf3d8; border-left-color: var(--yellow); }
/* ══════════════════════════════════════
   ABOUT PAGES
══════════════════════════════════════ */

/* resolution index */
body.resolution-index {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  overflow-y: auto;
}

.choice-btn {
  background: var(--white);
  border: 1px solid #e0c8c8;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.7rem;
  color: var(--black);
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  margin-bottom: 0.7rem;
  text-align: left;
  width: 220px;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.choice-btn:hover { background: var(--pink); border-color: var(--black); }

/* resolution tracker */
body.resolution {
  overflow-y: auto;
  padding: 2rem 2.5rem;
}

.resolution-block { margin-bottom: 2.5rem; }

.block-title {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e0c8c8;
  padding-bottom: 0.4rem;
}

table { width: 100%; border-collapse: collapse; font-size: 0.7rem; }

td { padding: 0.35rem 0.6rem; vertical-align: top; line-height: 1.6; }
td.cat { white-space: nowrap; width: 130px; padding-right: 1rem; }
td.items { border-left: 1px solid #e0c8c8; padding-left: 1rem; }
tr + tr td { border-top: 1px dashed #ecdcdc; }

.item {
  display: inline-block;
  margin-right: 1rem;
  white-space: nowrap;
  cursor: pointer;
}
.item input[type="checkbox"] { accent-color: var(--black); margin-right: 0.3rem; cursor: pointer; }
.item input[type="checkbox"]:checked + span { opacity: 0.45; text-decoration: line-through; }
.placeholder { color: #bbb; }

/* bucketlist 2023 */
body.bucketlist-2023 { height: 100%; overflow-y: auto; }

.grid-2023 {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1.5rem;
  align-items: flex-start;
}
.col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.col-title-img { width: 100px; height: 100px; object-fit: contain; }
.col-items { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; align-items: center; }
.col-card { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; width: 100%; }
.col-card img { width: 100%; height: 90px; object-fit: contain; }
.col-card.col-empty { opacity: 0.35; }
.col-label { font-size: 0.7rem; text-align: center; color: var(--black); line-height: 1.3; }

.col-card.done,
.col-card.wip { position: relative; }

.col-card.done::after,
.col-card.wip::after {
  position: absolute;
  top: 4px; right: 4px;
  font-family: var(--font);
  font-size: 0.55rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.col-card.done::after { content: '✓'; background: var(--black); }
.col-card.wip::after  { content: 'P'; background: var(--blue); }

/* bucketlist 2026-2030 */
body.bucketlist { height: 100%; overflow-y: auto; }

.year-section { margin-bottom: 1.2rem; }
.bucket-row { display: flex; align-items: flex-start; padding: 0 1rem; min-height: 160px; }

.folder-btn {
  flex-shrink: 0; width: 130px; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.2rem; font-family: var(--font); font-size: 0.7rem;
  color: var(--black); position: relative; z-index: 2;
}
.folder-btn:hover .folder-img { animation: wiggle 0.4s ease; }
.folder-img { width: 112px; height: 98px; object-fit: contain; display: block; }

.projects-panel {
  display: flex; align-items: flex-start; flex-wrap: nowrap; gap: 0.7rem;
  overflow: hidden; max-width: 0; max-height: 0; opacity: 0;
  transition: max-width 0.45s cubic-bezier(0.4,0,0.2,1),
              max-height 0.45s cubic-bezier(0.4,0,0.2,1),
              opacity 0.3s ease;
  padding-top: 0.4rem;
}
.projects-panel.open { max-width: 900px; max-height: 400px; opacity: 1; }

.project-card {
  flex-shrink: 0; width: 175px; display: flex; flex-direction: column;
  align-items: center; gap: 0.35rem; animation: slideIn 0.3s ease forwards; opacity: 0;
}
.project-card:nth-child(1) { animation-delay: 0.00s; }
.project-card:nth-child(2) { animation-delay: 0.06s; }
.project-card:nth-child(3) { animation-delay: 0.12s; }
.project-card:nth-child(4) { animation-delay: 0.18s; }

.card-label { font-size: 0.7rem; text-align: center; color: var(--black); line-height: 1.4; }

.personal-card {
  flex-shrink: 0; width: 140px; padding-left: 1rem;
  border-left: 1px dashed #e0c8c8; margin-left: 0.2rem;
}
.personal-title { font-size: 0.7rem; color: var(--black); letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.personal-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; color: var(--black); margin-bottom: 0.4rem; }

/* ══════════════════════════════════════
   CALENDAR
══════════════════════════════════════ */
body.calendar { height: 100%; overflow: hidden; display: flex; flex-direction: column; }

.jump-bar {
  flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1rem 0.5rem; background: var(--pink);
  border-bottom: none; position: sticky; top: 0; z-index: 100;
}
.jump-bar label { font-size: 0.7rem; color: #999; }
.jump-bar select {
  font-family: var(--font); font-size: 0.7rem; background: var(--white);
  border: 1px solid #d4c8c8; border-radius: 4px; padding: 0.2rem 0.4rem;
  cursor: pointer; color: var(--black);
}
.jump-btn {
  font-family: var(--font); font-size: 0.7rem; background: var(--black);
  color: var(--white); border: none; border-radius: 4px;
  padding: 0.25rem 0.7rem; cursor: pointer; transition: opacity 0.15s;
}
.jump-btn:hover { opacity: 0.7; }

.scroll-area { flex: 1; overflow-y: auto; padding: 1.5rem 1rem 4rem; }

.year-block { margin-bottom: 2.5rem; }
.year-label {
  font-size: 0.9rem; letter-spacing: 0.08em;
  border-bottom: 1px solid #e0c8c8; padding-bottom: 0.3rem; margin-bottom: 0.8rem;
}

.months-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.5rem; }

.month-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.month-label { font-size: 0.8rem; color: #999; letter-spacing: 0.1em; margin-bottom: 0.3rem; }

.day-grid { display: grid; grid-template-columns: repeat(7, 2rem); gap: 2px 0; }

.dow { font-size: 0.7rem; text-align: center; padding-bottom: 3px; }
.dow.dow-weekday { color: var(--blue); }
.dow.dow-wed     { color: var(--yellow); }
.dow.dow-weekend { color: var(--red); }

.day {
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; border-radius: 50%; transition: background 0.1s;
  user-select: none; cursor: default;
}
.day.muted { color: #ccc; }
.day.has-event { cursor: pointer; font-weight: bold; }
.day.has-event.color-red    { background: var(--red);    color: var(--white); }
.day.has-event.color-yellow { background: var(--yellow); color: var(--black); }
.day.has-event.color-blue   { background: var(--blue);   color: var(--white); }
.day.has-event.color-multi  { background: var(--black);  color: var(--white); }
.day.has-event:hover        { opacity: 0.7; }

.tooltip {
  display: none; position: fixed; background: var(--white);
  border: 1px solid var(--black); border-radius: 6px;
  padding: 0.4rem 0.7rem; font-size: 0.7rem; z-index: 9999;
  min-width: 120px; max-width: 220px; pointer-events: none; line-height: 1.7;
}
.tooltip.visible { display: block; }
.tooltip-date { font-size: 0.65rem; color: #999; margin-bottom: 0.2rem; letter-spacing: 0.06em; }
.tooltip-entry { display: flex; align-items: center; gap: 0.4rem; }
.tooltip-dot   { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-red    { background: var(--red); }
.dot-yellow { background: var(--yellow); }
.dot-blue   { background: var(--blue); }
.dot-black  { background: var(--black); }

/* ══════════════════════════════════════
   CALENDAR — LOCK SCREEN
══════════════════════════════════════ */
#lock-screen {
  position: fixed;
  inset: 0;
  background: var(--pink);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-family: 'Micro 5', monospace;
}
#lock-screen.visible { display: flex; }
#lock-screen.hidden  { display: none; }

.lock-title { font-size: 1.5rem; letter-spacing: 0.1em; color: #c8a0a0; }

#secret-star {
  position: fixed;
  bottom: 1rem;
  right: 1.2rem;
  font-size: 0.6rem;
  color: transparent;
  cursor: default;
  user-select: none;
}

.lock-step { display: none; flex-direction: column; align-items: center; gap: 0.8rem; text-align: center; }
.lock-step.active { display: flex; }

.lock-label { font-size: 1rem; color: #999; letter-spacing: 0.06em; }

.lock-input {
  font-family: 'Micro 5', monospace;
  font-size: 1rem;
  background: var(--white);
  border: 1px solid #e0c8c8;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  color: var(--black);
  outline: none;
  text-align: center;
  letter-spacing: 0.08em;
  width: 220px;
}
.lock-input:focus { border-color: var(--black); }

.lock-btn {
  font-family: 'Micro 5', monospace;
  font-size: 1rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 0.3rem 1rem;
  cursor: pointer;
  transition: opacity 0.15s;
}
.lock-btn:hover { opacity: 0.7; }

.lock-error { font-size: 0.8rem; color: var(--red); min-height: 1rem; }

/* ══════════════════════════════════════
   CALENDAR — COLOR PICKER
══════════════════════════════════════ */
.color-choices { display: flex; gap: 1rem; margin-top: 0.3rem; }

.color-choice {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, opacity 0.2s;
}
.color-choice:hover { transform: scale(1.15); border-color: var(--black); }
.color-choice.yellow { background: var(--yellow); }
.color-choice.red    { background: var(--red); }
.color-choice.blue   { background: var(--blue); }
.color-choice.done   { opacity: 0.3; pointer-events: none; border-color: var(--black); }

.color-hint { font-size: 0.75rem; color: #bbb; letter-spacing: 0.05em; }

/* ══════════════════════════════════════
   CALENDAR — SHAKE ANIMATION
══════════════════════════════════════ */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}
.shake { animation: shake 0.4s ease; }

/* ══════════════════════════════════════
   OFFLINE CONVENTIONS
══════════════════════════════════════ */
body.conventions { padding: 1rem 1.5rem 3rem; }

.con-list { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 0.8rem; }

.con-card {
  background: var(--white);
  border: 1px solid #e0c8c8;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 1rem;
  align-items: start;
}

/* circle cut column */
.con-cut {
  position: relative;
  width: 140px;
  grid-row: 1 / 3;
  align-self: stretch;
}
.con-cut-img {
  width: 140px;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  border-radius: 0;
  display: block;
  background: var(--pink);
}
.con-cut-fallback {
  width: 140px;
  min-height: 120px;
  border-radius: 6px;
  background: var(--pink);
  border: 1px dashed #e0c8c8;
}
.con-booth-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-family: var(--font);
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* info column */
.con-info { display: flex; flex-direction: column; gap: 0.5rem; }

.con-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.con-name { font-size: 0.9rem; letter-spacing: 0.05em; }

.status-badge {
  font-size: 0.6rem;
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid;
}
.status-archive  { background: #f5f5f5; border-color: #ddd;        color: #999; }
.status-attending{ background: #e8f5e9; border-color: #a5d6a7;     color: #388e3c; }
.status-applied  { background: #fff8e1; border-color: var(--yellow); color: #b07d00; }

.con-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.con-date     { font-size: 0.7rem; color: #999; }
.con-location { font-size: 0.7rem; display: flex; align-items: center; gap: 0.3rem; }

.con-tags {
  border-top: 1px dashed #e0c8c8;
  padding-top: 0.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.con-tag-group { display: flex; flex-direction: column; gap: 0.2rem; }
.con-tag-label { font-size: 0.6rem; color: #bbb; letter-spacing: 0.06em; }
.con-tag-items { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.con-divider   { width: 1px; background: #e0c8c8; align-self: stretch; }

body.conventions .con-tag-items .tag {
  font-size: 0.6rem;
  padding: 0.1rem 0.35rem;
}

/* ══════════════════════════════════════
   SHOP
══════════════════════════════════════ */
body.shop { height: 100%; overflow-y: auto; padding: 1.2rem 1.5rem 3rem; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.shop-card {
  background: var(--white);
  border: 1px solid #e0c8c8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.shop-card:hover { border-color: var(--black); transform: translateY(-2px); }

.shop-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #bbb;
  overflow: hidden;
  position: relative;
}
.shop-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-card-info {
  padding: 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.shop-card-name  { font-size: 0.7rem; color: var(--black); line-height: 1.4; }
.shop-card-price { font-size: 0.7rem; color: #999; }
.shop-card-tag   { font-size: 0.6rem; color: #bbb; letter-spacing: 0.05em; }

/* order modal */
.shop-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.shop-overlay.open { display: flex; }

.shop-modal {
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 12px;
  padding: 1.5rem;
  width: 320px;
  max-width: 90vw;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.shop-modal h2   { font-size: 0.9rem; letter-spacing: 0.06em; }
.shop-modal-meta { color: #999; }

.shop-modal textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.7rem;
  border: 1px solid #e0c8c8;
  border-radius: 6px;
  padding: 0.5rem;
  resize: vertical;
  min-height: 80px;
  background: var(--pink);
  color: var(--black);
}

.shop-modal-btns { display: flex; gap: 0.5rem; justify-content: flex-end; }

.btn-cancel {
  background: none;
  border: 1px solid #e0c8c8;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  color: #999;
}
.btn-cancel:hover { border-color: var(--black); color: var(--black); }

.btn-order {
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  color: var(--white);
  transition: opacity 0.15s;
}
.btn-order:hover { opacity: 0.7; }

.shop-lightbox {
  width: 380px;
  align-items: center;
  text-align: center;
}

.lightbox-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--pink);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ══════════════════════════════════════
   CODE PAGE
══════════════════════════════════════ */
body.code-page { height: 100%; overflow-y: auto; padding: 1.2rem 1.5rem 3rem; }

.project-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.8rem; }

.project-entry {
  background: var(--white);
  border: 1px solid #e0c8c8;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-entry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.project-entry-name { font-size: 0.9rem; letter-spacing: 0.04em; }

.project-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; }

.tag-code { background: #eef4ff; border-color: #aac4f0; color: #3366cc; }
.tag-game { background: #f0fff4; border-color: #90d0a8; color: #276749; }
.tag-tool { background: #fdf4ff; border-color: #d0a0f0; color: #6b21a8; }
.tag-bot  { background: #fff0f0; border-color: var(--red); color: #c0392b; }

.project-desc { font-size: 0.7rem; color: #666; line-height: 1.6; }

.project-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.project-link {
  font-size: 0.65rem;
  border: 1px solid #e0c8c8;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  text-decoration: none;
  color: var(--black);
  transition: border-color 0.12s, background 0.12s;
}
.project-link:hover { border-color: var(--black); background: var(--pink); }

/* ══════════════════════════════════════
   DISCORD BOT DUMMY CHAT
══════════════════════════════════════ */
.bot-chat {
  background: #36393f;
  border-radius: 8px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
}

.bot-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 160px;
  max-height: 200px;
}

.bot-msg { display: flex; gap: 0.5rem; align-items: flex-start; }

.bot-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: white;
}
.bot-avatar.user-avatar { background: var(--red); }

.bot-bubble  { display: flex; flex-direction: column; gap: 0.15rem; }
.bot-username { font-size: 0.6rem; color: #b9bbbe; }
.bot-username.is-bot { color: #5865f2; }
.bot-text {
  font-size: 0.65rem; color: #dcddde; line-height: 1.5;
  background: #40444b; border-radius: 4px;
  padding: 0.3rem 0.5rem; max-width: 280px;
}

.bot-input-row { display: flex; gap: 0.4rem; }
.bot-input {
  flex: 1; background: #40444b; border: none; border-radius: 4px;
  font-family: var(--font); font-size: 0.65rem; color: #dcddde;
  padding: 0.4rem 0.6rem; outline: none;
}
.bot-input::placeholder { color: #72767d; }
.bot-send {
  background: #5865f2; border: none; border-radius: 4px;
  font-family: var(--font); font-size: 0.65rem; color: white;
  padding: 0.4rem 0.7rem; cursor: pointer; transition: opacity 0.15s;
}
.bot-send:hover { opacity: 0.8; }

/* ══════════════════════════════════════
   ITCH.IO CARDS
══════════════════════════════════════ */
.itchio-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 1rem;
  align-items: start;
}

.itchio-banner {
  width: 180px;
  height: 120px;
  background: linear-gradient(135deg, #fce7e7 0%, #f4c8c8 100%);
  border-radius: 6px;
  border: 1px solid #e0c8c8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.itchio-banner-inner { font-size: 0.9rem; color: #c8a0a0; letter-spacing: 0.08em; }

.itchio-coming-soon {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.6rem;
  text-align: center;
  padding: 0.2rem;
  letter-spacing: 0.06em;
}

.itchio-info  { display: flex; flex-direction: column; gap: 0.4rem; }
.itchio-top   { display: flex; align-items: center; gap: 0.5rem; }
.itchio-name  { font-size: 0.9rem; letter-spacing: 0.04em; }
.itchio-desc  { font-size: 0.7rem; color: #666; line-height: 1.6; }

/* ══════════════════════════════════════
   ILLUSTRATION PAGES
══════════════════════════════════════ */
body.fanart,
body.ill-page {
  height: 100%;
  overflow-y: auto;
  padding: 1.5rem 2rem 4rem;
}

.fanart-list { display: flex; flex-direction: column; gap: 0; }
.fanart-entry { padding: 1.8rem 0; border-bottom: 1px dashed #e0c8c8; }
.fanart-entry:first-child { padding-top: 0.5rem; }
.fanart-entry:last-child  { border-bottom: none; }
.fanart-imgs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.fanart-imgs .thumb { width: 150px; height: 150px; flex-shrink: 0; }
.fanart-imgs.single .thumb { width: 280px; height: 200px; }
.fanart-title { font-size: 0.85rem; letter-spacing: 0.03em; margin-bottom: 0.2rem; }
.fanart-sub   { font-size: 0.65rem; color: #aaa; letter-spacing: 0.04em; margin-bottom: 0.5rem; font-style: italic; }
.fanart-desc  { font-size: 0.7rem; color: #555; line-height: 1.75; max-width: 520px; }
.fanart-tags  { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.6rem; }
.empty        { font-size: 0.7rem; color: #bbb; padding-top: 1rem; }

/* ══════════════════════════════════════
   GUESTBOOK
══════════════════════════════════════ */
body.guestbook {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.guestbook-frame { flex: 1; border: none; display: block; width: 100%; }

/* ══════════════════════════════════════
   SHOP — ADDITIONS
══════════════════════════════════════ */
.shop-section-title {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #999;
  border-bottom: 1px solid #e0c8c8;
  padding-bottom: 0.3rem;
  margin: 1.2rem 0 0.7rem;
}

.shop-card.soon { pointer-events: none; opacity: 0.5; position: relative; overflow: hidden; }
.shop-card.soon::after {
  content: 'coming soon';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-family: var(--font);
  font-size: 0.7rem;
  color: var(--black);
  white-space: nowrap;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.lightbox-nav     { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.3rem; }
.lightbox-arrow   { background: none; border: 1px solid #e0c8c8; border-radius: 4px; font-family: var(--font); font-size: 0.7rem; padding: 0.2rem 0.6rem; cursor: pointer; color: var(--black); }
.lightbox-arrow:hover    { border-color: var(--black); }
.lightbox-arrow:disabled { opacity: 0.3; pointer-events: none; }
.lightbox-counter { font-size: 0.65rem; color: #999; min-width: 40px; text-align: center; }

/* ══════════════════════════════════════
   GACHA
══════════════════════════════════════ */
.gacha-stats {
  background: #2b2d31;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.65rem;
  color: #b9bbbe;
}
.gacha-stat-item  { display: flex; flex-direction: column; gap: 0.1rem; }
.gacha-stat-label { color: #72767d; font-size: 0.6rem; }
.gacha-stat-val   { color: #fff; }
.gacha-stat-val.gold   { color: #f2c159; }
.gacha-stat-val.silver { color: #c0c0c0; }
.gacha-stat-val.pity   { color: #f4917e; }

.pull-result { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.2rem; }
.pull-chip {
  font-size: 0.6rem;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid;
}
.pull-chip.r6   { background: #fff3e0; border-color: #f2c159; color: #b07d00; font-weight: bold; }
.pull-chip.r5   { background: #fdf4ff; border-color: #d0a0f0; color: #6b21a8; }
.pull-chip.r4   { background: #eef4ff; border-color: #aac4f0; color: #3366cc; }
.pull-chip.r3   { background: #f5f5f5; border-color: #ddd;    color: #888; }
.pull-chip.new-6 { animation: glowPop 0.5s ease; }

@keyframes glowPop {
  0%   { transform: scale(0.8); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}

.bot-text .pull-result { margin-top: 0.4rem; }

/* ══════════════════════════════════════
   BUCKETLIST 2023 — ADDITIONS
══════════════════════════════════════ */
body.bucketlist-2023 { padding-bottom: 2rem; }
body.bucketlist-2023 h1 { padding-top: 1rem; }

.grid-2023 { gap: 0.3rem; padding: 0 0.5rem 1.5rem; }
.col       { gap: 0.4rem; }

.col-bubble-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }

.col-title-img { width: 160px; height: 160px; }

.col-jp-label { font-size: 0.75rem; letter-spacing: 0.05em; text-align: center; line-height: 1.4; }
.col-jp-label.yellow { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.col-jp-label.red    { text-decoration: underline; text-decoration-color: var(--red);    text-decoration-thickness: 2px; }
.col-jp-label.blue   { text-decoration: underline; text-decoration-color: var(--blue);   text-decoration-thickness: 2px; }

.col-items { gap: 0.4rem; }
.col-card  { gap: 0.25rem; position: relative; }
.col-card img { width: 130px; height: auto; border-radius: 0; border: none; }

.col-card.col-empty .col-img-placeholder {
  width: 130px;
  height: 95px;
  border: 1px dashed #e0c8c8;
  border-radius: 4px;
}

.col-label { font-size: 0.65rem; }

.col-card.done::after,
.col-card.wip::after { top: 4px; right: calc(50% - 69px); font-size: 0.5rem; width: 16px; height: 16px; }

/* ══════════════════════════════════════
   LINKS PAGE
══════════════════════════════════════ */
body.links {
  height: 100%;
  overflow-y: auto;
  padding: 1.5rem 2rem 4rem;
}

h1.links-heading {
  font-size: 0.7rem;
  color: #999;
  letter-spacing: 0.08em;
  text-align: left;
  margin-bottom: 1.5rem;
}

.links-section       { margin-bottom: 2rem; }
.links-section-title {
  font-size: 0.6rem;
  color: #bbb;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  border-bottom: 1px dashed #e0c8c8;
  padding-bottom: 0.3rem;
  margin-bottom: 0.7rem;
}

.link-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed #ecdcdc;
  font-size: 0.7rem;
}
.link-row:last-child { border-bottom: none; }

.link-platform { width: 90px; flex-shrink: 0; color: #999; font-size: 0.65rem; }
.link-handle   { flex: 1; }

.link-btn {
  font-size: 0.65rem;
  font-family: var(--font);
  border: 1px solid #e0c8c8;
  border-radius: 4px;
  padding: 0.15rem 0.6rem;
  text-decoration: none;
  color: var(--black);
  background: none;
  transition: border-color 0.12s, background 0.12s;
  white-space: nowrap;
}
.link-btn:hover        { border-color: var(--black); background: var(--pink); }
.link-btn.red:hover    { border-color: var(--red);    background: #fde0d8; }
.link-btn.yellow:hover { border-color: var(--yellow); background: #fdf3d8; }
.link-btn.blue:hover   { border-color: var(--blue);   background: #d8eef8; }

/* ══════════════════════════════════════
   ABOUT — THIS SITE PAGE
══════════════════════════════════════ */
body.about-site {
  height: 100%;
  overflow-y: auto;
  padding: 1.5rem 2rem 4rem;
}
.about-site-placeholder { font-size: 0.7rem; color: #bbb; padding-top: 0.5rem; }

/* ══════════════════════════════════════
   BLOG FEED — RESTORE LIST BULLETS
══════════════════════════════════════ */
body.home .blog-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0.8rem 0 0.9rem;
}

body.home .blog-content ul li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.35rem;
}

body.home .blog-content ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
}

body.home .blog-content ol {
  list-style: decimal;
  padding-left: 1.6rem;
  margin: 0.8rem 0 0.9rem;
}

body.home .blog-content ol li {
  margin-bottom: 0.35rem;
}

/* ══════════════════════════════════════
   BLOG FEED — CODE BLOCKS
══════════════════════════════════════ */
body.home .blog-content pre,
body.home .blog-content code,
body.home .blog-content .highlight,
body.home .blog-content .highlight pre,
body.home .blog-content .highlight code,
body.home .blog-content pre span {
  font-family: var(--font) !important;
}

body.home .blog-content pre,
body.home .blog-content code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.home .blog-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  border: 1px dashed #e0c8c8;
  border-radius: 10px;
  background: #fff7f7;
  font-size: 0.8rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   BLOG FEED — FOOTNOTES
══════════════════════════════════════ */
body.home .blog-content .footnotes {
  margin-top: 1.4rem;
  padding-top: 0.8rem;
  border-top: 1px dashed #e0c8c8;
  font-size: 0.6rem;
  line-height: 1.6;
  color: #9a7070;
}

body.home .blog-content .footnotes ol {
  list-style: decimal;
  padding-left: 1.2rem;
  margin: 0;
}

body.home .blog-content .footnotes li {
  margin-bottom: 0.3rem;
}

body.home .blog-content .footnotes p {
  margin-bottom: 0;
}

body.home .blog-content .footnote-ref {
  font-size: 0.55rem;
  vertical-align: super;
}

body.home .blog-content .footnote {
  font-size: 0.55rem;
  color: #c87070;
  text-decoration: none;
  margin-left: 0.25rem;
}