:root {
  --ink: #0d3650;
  --bg-wash-1: #f6f7f8;
  --bg-wash-2: #ffffff;
  --muted: #6b7278;
  --si-a: #7c858c;
  --si-b: #c7ccd0;
  --si-c: #9aa2a8;
  --si-d: #dde1e4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7f3f1;
    --bg-wash-1: #1a1c1e;
    --bg-wash-2: #0c0d0e;
    --muted: #9aa1a6;
    --si-a: #6e767c;
    --si-b: #c9ced2;
    --si-c: #898f94;
    --si-d: #eef1f3;
  }
}
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, var(--bg-wash-1), var(--bg-wash-2) 70%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
}
.mark {
  width: 160px;
  height: 160px;
  display: block;
  margin: 0 auto;
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.name {
  margin: 20px 0 0;
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: rise 0.9s 0.12s cubic-bezier(.2,.8,.2,1) both;
  background-image: linear-gradient(100deg,
    var(--si-a) 0%, var(--si-b) 22%, var(--si-c) 38%,
    var(--si-d) 50%, var(--si-c) 62%, var(--si-b) 78%, var(--si-a) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--si-c);
  -webkit-text-fill-color: transparent;
  animation: rise 0.9s 0.12s cubic-bezier(.2,.8,.2,1) both, shimmer 4s linear 1s infinite;
}
.name-wrap {
  position: relative;
  display: inline-block;
}
.wave {
  position: absolute;
  right: -2px;
  bottom: -10px;
  width: 42px;
  height: 13px;
  pointer-events: none;
}
.wave path {
  fill: none;
  stroke: var(--si-c);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 64;
  stroke-dashoffset: 64;
  opacity: 0;
  animation: wave-draw 4s linear 1s infinite;
}
footer {
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
footer a {
  color: inherit;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  from { background-position: 0% 0%; }
  to { background-position: -250% 0%; }
}
@keyframes wave-draw {
  0%, 74.9% { opacity: 0; stroke-dashoffset: 64; }
  75% { opacity: 1; stroke-dashoffset: 64; }
  100% { opacity: 1; stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mark, .name, .wave path { animation: none; }
}

main.doc { display: block; }
.doc .wrap { text-align: left; max-width: 760px; line-height: 1.6; }
.doc h1 { font-size: 1.6rem; margin: 8px 0 4px; }
.doc h2 { font-size: 1.1rem; margin: 28px 0 6px; }
.doc .meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }
.doc a { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--si-d); }
.doc .back { margin-top: 32px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

.cc {
  position: fixed; right: 20px; bottom: 20px; z-index: 10;
  width: min(380px, calc(100vw - 32px));
  padding: 16px 18px 14px;
  background: color-mix(in srgb, var(--bg-wash-2) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--si-b) 70%, transparent);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(13, 54, 80, 0.10), 0 1px 3px rgba(13, 54, 80, 0.06);
  font-size: 0.84rem; line-height: 1.5; text-align: left;
  animation: cc-in 0.35s cubic-bezier(.2,.8,.2,1) both;
}
.cc p { margin: 0 0 12px; color: var(--muted); }
.cc a { color: var(--ink); }
.cc-panel { margin: 0 0 12px; padding: 10px 0 0; border-top: 1px solid var(--si-d); }
.cc-row { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; color: var(--muted); }
.cc-row strong { color: var(--ink); font-weight: 600; }
.cc-row input { margin-top: 3px; accent-color: var(--ink); }
.cc-actions { display: flex; gap: 8px; align-items: center; }
.cc-btn {
  flex: 1; padding: 7px 12px; font: inherit; font-weight: 500; cursor: pointer;
  background: transparent; color: var(--ink);
  border: 1px solid var(--si-a); border-radius: 999px;
  transition: background 0.15s ease;
}
.cc-btn:hover, .cc-btn:focus-visible { background: color-mix(in srgb, var(--si-d) 70%, transparent); }
.cc-link {
  background: none; border: 0; padding: 7px 4px; font: inherit; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.cc-link:hover, .cc-link:focus-visible { color: var(--ink); }
@keyframes cc-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  .cc { right: 16px; left: 16px; bottom: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cc { animation: none; }
}
@media (max-width: 600px) {
  .doc table { display: block; overflow-x: auto; }
}
