@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #050506;
  --surface: #0e0e10;
  --surface-2: #17171a;
  --surface-3: #222226;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f4;
  --muted: rgba(244, 244, 244, 0.62);
  --dim: rgba(244, 244, 244, 0.4);
  --pink: #d0002a;
  --pink-press: #b30024;
  --pink-soft: rgba(220, 0, 40, 0.2);
  --rose: #ff5c70;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --spring: cubic-bezier(0.32, 1.32, 0.56, 1);
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1000px 700px at -12% 70%, rgba(202, 0, 33, 0.2), transparent 60%),
    radial-gradient(1000px 600px at 112% -12%, rgba(56, 116, 222, 0.16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: rgba(220, 0, 40, 0.35); color: #fff; }
:focus-visible { outline: 3px solid rgba(220, 0, 40, 0.6); outline-offset: 2px; border-radius: 10px; }
.ico { width: 18px; height: 18px; flex: none; display: block; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(8, 8, 10, 0.72);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand .mark { width: 26px; height: 25px; color: var(--pink); filter: drop-shadow(0 0 12px rgba(220, 0, 40, 0.45)); }
.sep { width: 1px; height: 18px; background: var(--line-2); }
.crumb { color: var(--muted); font-weight: 500; font-size: 15px; transition: color 0.2s; }
.crumb:hover { color: var(--text); }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 32px var(--gutter-r) 56px var(--gutter-l);
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, filter 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-pink { background: linear-gradient(180deg, #ef1f45, var(--pink) 60%, #b30024); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 26px -12px rgba(220, 0, 40, 0.9); }
.btn-pink:hover { filter: brightness(1.08); }
.btn-quiet { background: #fff; color: #0b0b0d; }
.btn-quiet:hover { background: #e9e9ea; }
.btn-discord { background: #5865f2; color: #fff; width: 100%; height: 50px; }
.btn-discord:hover { filter: brightness(1.08); }

.is-loading {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 60%) var(--surface-2);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
[data-fade] { opacity: 0; transition: opacity 0.5s var(--ease); }
[data-fade].is-in { opacity: 1; }

.update .shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 30px 90px -60px rgba(220, 0, 40, 0.5);
}
.update .shot img { width: 100%; height: auto; }
.update .body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 32px;
  align-items: start;
}
.update.is-tall {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.update.is-tall .body { grid-template-columns: minmax(0, 1fr); margin-top: 0; }

.detail { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.detail h1 { font-size: clamp(42px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.code { color: var(--rose); font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(34px, 4.4vw, 50px); line-height: 1; margin-top: -6px; text-shadow: 0 0 22px rgba(255, 60, 90, 0.5); }
.lede { font-size: 19px; font-weight: 600; line-height: 1.45; color: var(--text); max-width: 38ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14.5px;
  font-weight: 700;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.log {
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.log-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.log-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.log-head span { color: var(--muted); font-weight: 700; font-size: 15px; }
.row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.row p { font-size: 16px; font-weight: 600; line-height: 1.45; padding-top: 2px; }
.tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.tag-new { background: var(--pink); color: #fff; }
.tag-fix { border: 1.5px solid var(--pink); color: var(--pink); }
.tag-imp { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.tag-rem { border: 1px solid var(--line-2); color: var(--muted); }

.intro { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }
.intro h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.intro p { color: var(--muted); font-size: 18px; font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: rgba(220, 0, 40, 0.4); box-shadow: 0 24px 50px -30px rgba(220, 0, 40, 0.55); }
.thumb { display: block; aspect-ratio: 1200 / 630; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.c-date { color: var(--dim); font-size: 13px; font-weight: 700; }
.c-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.c-code { color: var(--rose); font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 20px; line-height: 1.1; }
.c-head { color: var(--muted); font-size: 14.5px; font-weight: 500; line-height: 1.4; margin-top: 2px; }
.card.is-lead { grid-column: 1 / -1; flex-direction: row; }
.card.is-lead .thumb { width: 62%; flex: none; }
.card.is-lead .c-body { justify-content: center; padding: 28px; gap: 8px; }
.card.is-lead .c-title { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; }
.card.is-lead .c-code { font-size: 28px; }
.card.is-lead .c-head { font-size: 17px; }
.empty { padding: 60px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 17px; }

.center { display: grid; place-items: center; }
.panel {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 34px 28px 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.panel h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.panel p { color: var(--muted); font-size: 16px; font-weight: 500; }
.login-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: var(--surface-2); margin-bottom: 4px; }
.login-mark .mark { width: 36px; height: 35px; color: var(--pink); filter: drop-shadow(0 0 14px rgba(220, 0, 40, 0.5)); }
.note { color: var(--muted); font-size: 14px; background: var(--surface-2); padding: 10px 14px; border-radius: 12px; }
.quiet-link { color: var(--dim); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.quiet-link:hover { color: var(--text); }
.bar-sk { display: block; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(100deg, rgba(255, 255, 255, 0.05) 40%, rgba(220, 0, 40, 0.5) 50%, rgba(255, 255, 255, 0.05) 60%) var(--surface-2); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }

.foot {
  max-width: 1180px;
  width: 100%;
  margin-inline: auto;
  padding: 24px var(--gutter-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
  font-weight: 500;
}
.foot a { transition: color 0.2s; }
.foot a:hover { color: var(--text); }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(38, 38, 42, 0.9);
  border: 1px solid var(--line-2);
  font-size: 14px;
  font-weight: 700;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(0.96);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

.wrap > *, .intro, .grid > * { animation: rise 0.7s var(--ease) both; }
.grid > *:nth-child(2) { animation-delay: 0.05s; }
.grid > *:nth-child(3) { animation-delay: 0.1s; }
.grid > *:nth-child(n + 4) { animation-delay: 0.15s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .update .body, .update.is-tall { grid-template-columns: minmax(0, 1fr); }
  .update.is-tall .shot { max-width: 420px; width: 100%; margin-inline: auto; }
  .update.is-tall .body { margin-top: 8px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.is-lead { flex-direction: column; }
  .card.is-lead .thumb { width: 100%; }
  .card.is-lead .c-body { padding: 20px; }
}

@media (max-width: 600px) {
  .wrap { padding-top: 20px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 18px; }
  .log { padding: 18px; }
  .tag { min-width: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
