/* teawhites sidebar widgets — self-contained, no conflict with .cat_block width:100% */

.aside_first_block.tw-widgets {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--margin, 0.75rem);
  width: 100%;
  margin: 0 0 var(--margin, 0.75rem);
  box-sizing: border-box;
}

.aside_first_block.tw-widgets .tw-card {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
  cursor: default;
  border-radius: var(--radius, 1rem);
  background: var(--background);
  color: var(--main);
}

.aside_first_block.tw-widgets .tw-card.tw-card-wide {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  min-height: auto;
  padding: var(--margin, 0.75rem) !important;
}

/* stats */
.blog_data_card {
  width: 100%;
  height: 100%;
  padding: 0.85rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog_data_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}
.blog_data_item {
  padding: 0.55rem 0.2rem;
  text-align: center;
  background: var(--under-background, rgba(0,0,0,.04));
  border: 1px solid var(--O, rgba(0,0,0,.06));
  border-radius: 0.75rem;
  transition: .2s;
}
.blog_data_item:hover {
  background: var(--theme-10, rgba(58,134,255,.08));
  border-color: var(--theme-30, rgba(58,134,255,.25));
}
.blog_data_item b {
  display: block;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--main);
  font-weight: 700;
}
.blog_data_item span {
  display: block;
  font-size: 0.7rem;
  color: var(--C, #888);
  margin-top: 0.15rem;
}

/* calendar */
.little_calendar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.little_calendar::before {
  content: "";
  position: absolute;
  width: 5.5rem;
  height: 5.5rem;
  top: -2.6rem;
  right: -2rem;
  border-radius: 50%;
  background: var(--theme-10, rgba(58,134,255,.12));
  pointer-events: none;
}
.calendar_week {
  position: relative;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--theme, #3a86ff);
  text-transform: uppercase;
  letter-spacing: 0.14rem;
}
.calendar_day {
  position: relative;
  z-index: 1;
  font-size: 3.2rem;
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.08rem;
  color: var(--main);
}
.calendar_date {
  position: relative;
  z-index: 1;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--A, rgba(0,0,0,.08));
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--C, #888);
}

/* clock */
.clock {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--background);
}
.clock::after {
  content: "";
  width: 58%;
  height: 58%;
  max-width: 7.5rem;
  max-height: 7.5rem;
  background: inherit;
  border-radius: 50%;
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 2;
}
.clock .marker {
  height: calc(100% - 1.4rem);
  width: 2px;
  background: var(--B, #bbb);
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 1;
}
.clock .marker:nth-of-type(3n+1) { background: var(--main); width: 2.5px; }
.clock .marker:nth-of-type(2) { transform: rotate(30deg); }
.clock .marker:nth-of-type(3) { transform: rotate(60deg); }
.clock .marker:nth-of-type(4) { transform: rotate(90deg); }
.clock .marker:nth-of-type(5) { transform: rotate(120deg); }
.clock .marker:nth-of-type(6) { transform: rotate(150deg); }
.clock .hand {
  transform-origin: center bottom;
  position: absolute;
  z-index: 3;
  bottom: 50%;
  left: 50%;
  width: 3px;
  margin: 0;
}
.clock .hand.second {
  height: 38%;
  width: 1.25px;
  left: calc(50% - 0.6px);
  border-radius: 1.5px;
  background: #ec231e;
  z-index: 9;
}
.clock .hand.second::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: inherit;
  transform: translate(-50%, 50%);
}
.clock .hand.minute {
  height: 34%;
  left: calc(50% - 1.5px);
  border-radius: 3px;
  background: var(--main);
}
.clock .hand.hour {
  height: 26%;
  width: 4px;
  left: calc(50% - 2px);
  border-radius: 3px;
  background: var(--main);
}

/* muyu */
.muyu_card {
  --muyu-color: #9b6b43;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--muyu-color);
  background:
    linear-gradient(135deg, rgba(255,251,246,.96), rgba(250,241,229,.94)),
    repeating-linear-gradient(0deg, rgba(135,86,43,.025) 0, rgba(135,86,43,.025) 1px, transparent 1px, transparent 4px);
}
.muyu {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 4.4rem;
  color: var(--muyu-color);
  cursor: pointer;
}
.muyu #muyu-img {
  position: relative;
  z-index: 3;
  display: block;
  width: 3.6rem;
  height: 3.6rem;
  color: inherit;
  user-select: none;
  transform-origin: center;
  filter: drop-shadow(0 .2rem .25rem rgb(91 57 28 / 14%));
  transition: transform .08s ease;
}
.muyu.hit #muyu-img { transform: translateY(.08rem) scale(.9); }
.muyu #muyuchui-img {
  position: absolute;
  z-index: 4;
  top: -0.55rem;
  right: 0;
  width: 2.2rem;
  height: 2.2rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-.05rem, -.18rem) rotate(-32deg);
  transform-origin: 78% 78%;
}
.muyu:hover #muyuchui-img,
.muyu.hit #muyuchui-img { opacity: 1; }
.muyu.hit #muyuchui-img { animation: muyu_hammer_hit .3s ease-out; }
.muyu .gongde {
  position: absolute;
  z-index: 10;
  top: -0.4rem;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}
.muyu .gongde-item {
  position: absolute;
  left: 50%;
  width: 5rem;
  margin-left: -2.5rem;
  text-align: center;
  color: var(--muyu-color);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  animation: muyuGongdeFloat 1.4s cubic-bezier(.2,.7,.2,1) forwards;
}
.muyu_info {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 0.4rem;
  margin-top: 0.1rem;
  font-size: 0.65rem;
  color: var(--muyu-color);
}
.muyu_info div { display: flex; align-items: baseline; gap: 0.12rem; white-space: nowrap; }
.muyu_info span { opacity: .72; }
.muyu_info b { font-size: 0.9rem; font-weight: 700; }
.muyu_level {
  margin-top: 0.55rem;
  padding: 0.22rem 0.7rem;
  border: 1px solid rgb(155 107 67 / 15%);
  border-radius: 999px;
  background: rgb(255 255 255 / 48%);
  font-size: 0.6rem;
  font-weight: 600;
}
html.darkmode .muyu_card {
  --muyu-color: #fff;
  background: var(--background);
}
html.darkmode .muyu_level {
  border-color: rgb(201 154 107 / 16%);
  background: rgb(255 255 255 / 6%);
}

@keyframes muyu_hammer_hit {
  0% { transform: translate(-.05rem, -.18rem) rotate(-32deg); }
  40% { transform: translate(-.45rem, .45rem) rotate(8deg); }
  100% { transform: translate(-.05rem, -.18rem) rotate(-32deg); }
}
@keyframes muyuGongdeFloat {
  0% { transform: translateY(.1rem) scale(.85); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-1.8rem) scale(1); opacity: 0; }
}

/* drift bottle */
.drift_bottle,
.drift_link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.drift_bottle_title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--main);
  margin: 0.35rem 0 0.4rem;
}
.drift_link:hover .drift_bottle_title { color: var(--theme, #3a86ff); }
.drift_bottle_meta {
  text-align: center;
  font-size: 0.7rem;
  color: var(--B, #999);
  margin-bottom: 0.45rem;
}
.drift_bottle_desc {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--B, #888);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.drift_scene {
  position: relative;
  height: 3.5rem;
  margin-top: 0.4rem;
  overflow: hidden;
}
.drift_icon {
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  transform: translateX(-50%);
  font-size: 1.6rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .aside_first_block.tw-widgets {
    grid-template-columns: 1fr 1fr;
  }
}
