:root {
  --look-pink: #f48b88;
  --look-pink-deep: #e97875;
  --look-ink: #2a2a2a;
  --look-muted: #7a6f6c;
  --look-line: rgba(244, 139, 136, 0.28);
  --look-card: rgba(255, 255, 255, 0.78);
  --look-shadow: 0 16px 40px rgba(180, 90, 90, 0.12);
  --paper: #f7f1ea;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  min-height: 100vh;
  color: var(--look-ink);
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(244,139,136,0.18), transparent 60%),
    linear-gradient(135deg, #fff6f4 0%, #f3ebe4 45%, #ffe8e6 100%);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.brand-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 16px 10px 16px 16px;
}

.brand-rail-inner,
.brand-panel {
  height: calc(100vh - 32px);
  width: 100%;
  border-radius: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(228, 110, 110, 0.28);
  border: 1px solid rgba(255,255,255,0.45);
  background: #fd9994;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 0 0;
  scrollbar-width: thin;
}

/* vector text = always sharp */
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Anton", Impact, "Arial Black", sans-serif;
  color: #fff;
  font-size: 48px;
  line-height: 0.9;
  letter-spacing: 0.12em;
  text-align: center;
  user-select: none;
  flex-shrink: 0;
  padding: 0 12px;
  transform: scaleX(1.22);
  transform-origin: center top;
}

.brand-logo span { display: block; }

/* deer stays at/near native px — never enlarge past source */
.brand-deer-main {
  width: 152px;
  max-width: 88%;
  height: auto;
  margin-top: 6px;
  display: block;
  flex-shrink: 0;
}

.brand-slogan {
  margin-top: 10px;
  text-align: center;
  color: #fff;
  flex-shrink: 0;
  padding: 0 12px 8px;
}

.brand-slogan-en {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.brand-slogan-zh {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.side-fun {
  width: 100%;
  margin-top: 22px;
  padding: 4px 14px 16px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.side-fun-title {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: left;
  margin: 0 0 10px 4px;
  opacity: 0.95;
}

.side-fun-empty {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  text-align: left;
  padding: 10px 16px;
  border: 1px dashed rgba(255,255,255,0.4);
  border-radius: 999px;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
}

#sideFunList {
  width: 100%;
}

.side-fun-cat {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}

.side-fun-cat summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
}

.side-fun-cat summary::-webkit-details-marker { display: none; }
.side-fun-cat summary::after {
  content: "▾";
  font-size: 11px;
  opacity: 0.8;
  transition: transform .15s ease;
}
.side-fun-cat[open] summary::after { transform: rotate(180deg); }

.side-fun-count {
  margin-left: auto;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 1px 7px;
}

.side-fun-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 8px 10px;
}

.side-fun-item {
  border: none;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform .15s ease;
}

.side-fun-item:hover { transform: translateY(-1px); }

.side-fun-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #f6ebe8 center/cover no-repeat;
}

.side-fun-name {
  font-size: 11px;
  color: #2a2220;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper {
  padding: 42px 40px 72px;
  max-width: 980px;
}

.hub-hero {
  margin-bottom: 28px;
  animation: rise 0.55s ease both;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(244,139,136,0.14);
  border: 1px solid var(--look-line);
  color: var(--look-pink-deep);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hub-hero h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  color: #2d2422;
}

.hub-sub {
  color: var(--look-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 520px;
}

.hub-slogan {
  margin-top: 12px;
  color: var(--look-pink-deep);
  font-size: 14px;
  font-weight: 700;
}

.play-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 42px;
  max-width: 560px;
}

.play-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,248,246,0.88));
  border: 1px solid rgba(244,139,136,0.22);
  box-shadow: var(--look-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: rise 0.65s ease both;
}

.play-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244,139,136,0.45);
  box-shadow: 0 22px 48px rgba(180, 90, 90, 0.18);
}

.play-card::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,139,136,0.28), transparent 70%);
  pointer-events: none;
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(244,139,136,0.14);
  border: 1px solid rgba(244,139,136,0.22);
  font-size: 12px;
  color: var(--look-pink-deep);
  font-weight: 700;
  margin-bottom: 14px;
}

.play-card h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #2a2220;
}

.play-card p {
  color: var(--look-muted);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}

.enter {
  margin-top: 18px;
  color: var(--look-pink-deep);
  font-size: 14px;
  font-weight: 700;
}

.fun-section { margin-top: 8px; animation: rise 0.75s ease both; }
.fun-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}
.fun-head h2 { font-size: 26px; margin-bottom: 6px; color: #2a2220; }
.fun-head p { color: var(--look-muted); font-size: 14px; }

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--look-pink);
  border: none;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(244,139,136,0.35);
}
.pill-btn:hover { filter: brightness(1.03); }

.fun-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.fun-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(244,139,136,0.16);
  box-shadow: var(--look-shadow);
  cursor: pointer;
  transition: transform .18s ease;
}
.fun-card:hover { transform: translateY(-2px); }

.fun-cover {
  aspect-ratio: 16 / 10;
  background: #f3e8e4 center/cover no-repeat;
}

.fun-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.95);
}
.fun-meta .title { font-size: 14px; color: #2a2220; font-weight: 700; }
.fun-meta .link { font-size: 13px; color: var(--look-pink-deep); }

.preview-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(60, 30, 30, 0.55);
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.preview-mask.show { display: flex; }
.preview-box {
  position: relative;
  width: min(920px, 100%);
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(244,139,136,0.2);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}
.preview-box img { width: 100%; max-height: 72vh; object-fit: contain; background: #f7f1ea; display: block; }
.preview-title { padding: 14px 18px; color: #2a2220; font-weight: 700; }
.preview-close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.45); color: #fff; font-size: 22px; cursor: pointer;
}

.empty {
  grid-column: 1 / -1;
  color: var(--look-muted);
  padding: 34px 20px;
  text-align: center;
  border: 1px dashed rgba(244,139,136,0.35);
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .brand-rail {
    position: relative;
    height: auto;
    width: 100%;
    padding: 14px 14px 0;
  }
  .brand-rail.compact .brand-rail-inner,
  .brand-rail-inner,
  .brand-panel {
    height: auto;
    max-width: 360px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 20px 16px 14px;
  }
  .brand-logo { font-size: 44px; transform: scaleX(1.22); }
  .brand-deer-main { width: 132px; }
  .side-fun { max-height: none; }
  .side-fun-grid { grid-template-columns: 1fr 1fr 1fr; }
  .paper { padding: 24px 16px 56px; }
  .play-page { padding: 8px 0 40px; max-width: none; }
  .fun-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 961px) {
  .play-shell {
    grid-template-columns: 260px 1fr;
  }
  .play-shell .paper.play-page {
    padding-top: 28px;
  }
}

@media (max-width: 560px) {
  .fun-grid { grid-template-columns: 1fr; }
  .fun-head { flex-direction: column; align-items: flex-start; }
  .play-card h3 { font-size: 24px; }
}
