 
:root {
  --bg: #0b0d12;
  --bg-raise: #12151d;
  --line: #232a38;
  --ink: #e8ecf4;
  --ink-dim: #9aa5b8;
  --ink-inverse: #0b0d12;
  --accent: #5ee6a8;
  --accent-2: #6aa7ff;
  --danger: #ff7b7b;
  --chip-bg: rgba(10, 12, 18, .62);
  --toast-bg: #171c26;
  --font: "Hiragino Sans", "Helvetica Neue", "BIZ UDGothic", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
 
[hidden] { display: none !important; }
html { height: 100%; }
body {
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

 
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + var(--safe-top)) 18px 12px;
  background: linear-gradient(to bottom, rgba(11, 13, 18, .96), rgba(11, 13, 18, .82));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.logo {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  font-weight: 700; font-size: 21px; letter-spacing: .18em;
  color: #fff; text-decoration: none; user-select: none;
}
 
.logo-row { display: inline-flex; align-items: flex-end; gap: 9px; }
.logo-mark { width: 24px; height: 24px; display: block; flex: none; }
.logo-word { white-space: nowrap; line-height: 1; }
.logo-tagline {
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-dim);
   
  align-self: center;
  white-space: nowrap;
}
 
.contact-x { display: inline-flex; align-items: center; gap: 8px; }
.contact-x .x-icon { flex: none; }
 
.logo .ee, .splash .ee {
  color: var(--accent);
   
  margin: 0 0 0 -.08em;
  text-shadow:
    0 0 5px rgba(94, 230, 168, .95),
    0 0 12px rgba(94, 230, 168, .7),
    0 0 26px rgba(94, 230, 168, .45);
  animation: ee-glow 3.4s ease-in-out infinite;
}
@keyframes ee-glow {
  0%, 100% {
    text-shadow:
      0 0 5px rgba(94, 230, 168, .95),
      0 0 12px rgba(94, 230, 168, .7),
      0 0 26px rgba(94, 230, 168, .45);
  }
  50% {
    text-shadow:
      0 0 7px rgba(94, 230, 168, 1),
      0 0 18px rgba(94, 230, 168, .85),
      0 0 38px rgba(94, 230, 168, .6);
  }
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-dim); text-decoration: none;
  font-size: 13px; font-weight: 700;
  padding: 7px 12px; border: 1px solid transparent;
}
.site-nav a[aria-current="page"] { color: var(--ink); border-color: var(--line); background: var(--bg-raise); }
.site-nav a:hover { color: var(--ink); }

 
.lang-switch {
  color: var(--accent); background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 800; letter-spacing: .04em;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 0;
  font-family: inherit; white-space: nowrap;
}
.lang-switch:hover { color: var(--ink); border-color: var(--accent); }

 
@media (max-width: 640px) {
  .logo { font-size: 17px; }
  .logo-mark { width: 20px; height: 20px; }
  .logo-row { gap: 7px; }
  .logo-tagline { font-size: 9px; }
  .site-nav { flex-wrap: nowrap; gap: 0; }
  .site-nav a { font-size: 11px; padding: 5px 5px; white-space: nowrap; }
  .lang-switch { font-size: 11px; padding: 5px 6px; }
  .nav-xl { display: none; }

   
  html[lang="en"] .site-header { align-items: flex-start; padding-bottom: 21px; }
  html[lang="en"] .logo { padding-top: 1px; }
  html[lang="en"] .logo-tagline {
    position: absolute; left: 18px; bottom: 5px;
    align-self: auto; margin: 0; line-height: 1;
  }
  html[lang="en"] .site-nav { align-self: center; }
}
 
@media (max-width: 374px) {
  .site-header { padding-left: 12px; padding-right: 12px; }
  .logo { font-size: 15.5px; }
  .site-nav a { font-size: 10.5px; padding: 5px 3px; }
  .lang-switch { font-size: 10.5px; padding: 5px 4px; }
  html[lang="en"] .logo-tagline { left: 12px; }
}
 
@media (max-width: 344px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { margin-left: auto; }
}

 
.page {
  max-width: 720px; margin: 0 auto;
  padding: 26px 18px calc(60px + var(--safe-bottom));
}
.page h1 { font-size: 22px; letter-spacing: .06em; margin-bottom: 6px; }
.page-lead { color: var(--ink-dim); font-size: 13.5px; margin-bottom: 24px; }
.section { margin-bottom: 34px; }
.section h2 { font-size: 15px; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; }

 
label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-dim); margin-bottom: 6px; }
input[type="text"], input[type="url"], input[type="password"], input[type="email"], textarea, select {
  width: 100%;
  background: var(--bg-raise); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0;
  font-family: inherit; font-size: 15px;
  padding: 12px 14px;
}
textarea { min-height: 76px; resize: vertical; }
.field { margin-bottom: 18px; }
.field-note { font-size: 12px; color: var(--ink-dim); margin-top: 6px; }
.form-error { color: var(--danger); font-size: 13.5px; margin: 10px 0; white-space: pre-line; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--ink-inverse);
  font-size: 14.5px; font-weight: 800; letter-spacing: .04em;
  padding: 13px 26px;
  transition: transform .15s, opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sub {
  background: var(--bg-raise); color: var(--ink);
  border: 1px solid var(--line);
}
.btn-danger { background: none; color: var(--danger); border: 1px solid var(--danger); }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

 
.card {
  background: var(--bg-raise); border: 1px solid var(--line);
  padding: 18px;
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 800;
  border: 1px solid var(--line); color: var(--ink-dim);
  padding: 3px 9px;
}
.badge.v-public { color: var(--accent); border-color: var(--accent); }
.badge.v-unlisted { color: var(--accent-2); border-color: var(--accent-2); }

 
.ad-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-raise); border: 1px solid var(--line);
  padding: 14px 18px;
  color: var(--ink); text-decoration: none;
  font-size: 14.5px;
}
.ad-banner:hover { border-color: var(--accent-2); }
.ad-banner-pr {
  flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: var(--ink-dim); border: 1px solid var(--line); padding: 2px 7px;
}
.ad-banner-text { flex: 1; min-width: 0; }
.ad-banner-arrow { flex: none; color: var(--accent-2); }

 
.list-cards { display: grid; gap: 12px; }
.list-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--bg-raise); border: 1px solid var(--line);
  padding: 16px 18px;
  transition: border-color .2s;
}
.list-card:hover { border-color: var(--accent); }
.list-card .t { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.list-card .m { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--ink-dim); }

 
.sv-box {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  background: #05070c; border: 1px solid var(--line);
  overflow: hidden;
}
.sv-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transition: opacity .4s ease; }
.sv-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 20px; color: var(--ink-dim); font-size: 13.5px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(106, 167, 255, .14), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(94, 230, 168, .12), transparent 55%);
}
.sv-placeholder-title { color: var(--ink); font-weight: 800; font-size: 16px; }
.sv-placeholder-note { font-size: 11.5px; opacity: .75; }

 
 
.feed-stage { position: fixed; inset: 0; top: var(--header-h, 60px); background: var(--bg); }
.feed-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s .45s;
}
.feed-card.active { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.feed-card .sv-area { position: absolute; inset: 0; }
.feed-card .sv-area .sv-frame, .feed-card .sv-area .sv-placeholder { position: absolute; inset: 0; }
 
.feed-card .shade {
  position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(to top, rgba(5, 6, 10, .88), rgba(5, 6, 10, 0));
  pointer-events: none;
}
.feed-ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 0 20px calc(108px + var(--safe-bottom));
  max-width: 640px;
  pointer-events: none;
}
.feed-ui > * { pointer-events: auto; }
.feed-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--chip-bg); color: var(--ink);
  font-size: 12.5px; font-weight: 700; text-decoration: none;
  padding: 8px 14px; margin-bottom: 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.feed-chip .dot { color: var(--accent); }
 
.chip-label {
  background: var(--accent); color: var(--ink-inverse);
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  padding: 2px 6px; flex: none; line-height: 1.5;
}
.feed-title {
  font-size: clamp(22px, 6vw, 34px); font-weight: 700; line-height: 1.3;
  color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
  margin-bottom: 8px;
}
.feed-memo {
  color: rgba(255, 255, 255, .92); font-size: 14px; line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55); margin-bottom: 10px;
}
.feed-memo::before { content: "“"; color: var(--accent); font-weight: 900; margin-right: 2px; }
.feed-memo::after  { content: "”"; color: var(--accent); font-weight: 900; margin-left: 2px; }
.feed-meta { display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .8); font-size: 12.5px; font-weight: 600; }
.feed-meta .needle { display: inline-block; color: var(--accent); transition: transform .5s; }

.feed-footer {
  position: fixed; inset: auto 0 0 0; z-index: 25;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 20px calc(16px + var(--safe-bottom));
  pointer-events: none;
}
.feed-footer > * { pointer-events: auto; }
.next-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--ink-inverse);
  font-size: 15px; font-weight: 800;
  padding: 13px 30px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .38);
  transition: transform .15s;
}
.next-btn:active { transform: scale(.94); }

 
.lv-wrap { position: relative; }
.lv-shade {
  position: absolute; inset: auto 0 0 0; height: 52%;
  background: linear-gradient(to top, rgba(5, 6, 10, .88), rgba(5, 6, 10, 0));
  pointer-events: none;
}
.lv-ui {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 16px 38px;  
  pointer-events: none;  
}
.lv-title {
  color: #fff; font-size: 17px; font-weight: 700; line-height: 1.35;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55); margin-bottom: 3px;
}
.lv-memo {
  color: rgba(255, 255, 255, .92); font-size: 13px; line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55); margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lv-meta {
  color: rgba(255, 255, 255, .72); font-size: 11.5px; font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

 
.ss-stage { z-index: 60; top: 0; }  
 
.ss-ui { padding: 0 20px calc(48px + var(--safe-bottom)); }
 
.ss-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  padding: calc(12px + var(--safe-top)) 14px 12px;
  pointer-events: none;
}
.ss-top > * { pointer-events: auto; }
.ss-controls {
  position: absolute; right: 14px; bottom: calc(18px + var(--safe-bottom)); z-index: 5;
  display: flex; gap: 8px;
}
.ss-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--chip-bg); color: var(--ink);
  border: 0; cursor: pointer;
  font-size: 14px; font-weight: 800; font-family: var(--font);
  min-width: 42px; padding: 10px 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ss-btn:hover { color: var(--accent); }
.ss-btn svg { display: block; }
 
.feed-fs { position: absolute; top: 12px; right: 14px; z-index: 5; }

 
.hero {
  min-height: calc(100vh - 140px);
  display: flex; flex-direction: column; justify-content: center;
  max-width: 620px; margin: 0 auto; padding: 40px 22px;
}
.hero h1 {
  font-size: clamp(26px, 7vw, 40px); line-height: 1.35; letter-spacing: .04em;
  margin-bottom: 14px;
}
.hero h1 .ee { color: var(--accent); }
.hero p { color: var(--ink-dim); font-size: 14.5px; margin-bottom: 10px; }
.hero .btn-row { margin-top: 24px; }
.hero-steps { margin: 18px 0 0; padding-left: 0; list-style: none; counter-reset: step; }
.hero-steps li {
  counter-increment: step;
  display: flex; gap: 12px; align-items: baseline;
  color: var(--ink-dim); font-size: 13.5px; padding: 7px 0;
}
.hero-steps li::before {
  content: counter(step);
  flex: none; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent); color: var(--accent);
  font-size: 12px; font-weight: 800;
}

 
.pin-items { display: grid; gap: 10px; margin-top: 14px; }
.pin-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-raise); border: 1px solid var(--line);
  padding: 12px 14px;
}
.pin-item.current { border-color: var(--accent); }
.pin-item .open { flex: 1; text-align: left; color: var(--ink); font-size: 14px; font-weight: 700; }
.pin-item .open .sub { display: block; font-size: 12px; font-weight: 400; color: var(--ink-dim); }
.pin-edit-form {
  grid-column: 1 / -1;
  border: 1px solid var(--line); border-top: none;
  padding: 14px; margin-top: -10px; background: var(--bg);
}

 
.toast {
  position: fixed; left: 50%; top: calc(70px + var(--safe-top)); z-index: 50;
  transform: translateX(-50%) translateY(-10px);
  background: var(--toast-bg); color: #fff;
  font-size: 13.5px; font-weight: 700; padding: 12px 22px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transition: all .3s;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

 
.guide ol { padding-left: 22px; }
.guide li { margin-bottom: 10px; font-size: 14.5px; }
.guide code {
  background: var(--bg-raise); border: 1px solid var(--line);
  padding: 1px 6px; font-size: 13px;
}

 
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  opacity: 1; transition: opacity .6s ease;
}
.splash.hide { opacity: 0; pointer-events: none; }
.splash-inner {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 0 16px; text-align: center;
  animation: splash-in .8s ease both;
}
@keyframes splash-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.splash-mark { width: clamp(64px, 18vw, 110px); height: auto; }
.splash-word {
  font-weight: 700; letter-spacing: .18em; line-height: 1;
  font-size: clamp(44px, 12vw, 88px); color: #fff; white-space: nowrap;
}
.splash-tagline {
  font-weight: 600; letter-spacing: .14em;
  font-size: clamp(15px, 4.2vw, 26px); color: var(--ink-dim);
}

 
.gyro-tip {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(19, 24, 36, .94);
  border: 1px solid var(--accent); border-radius: 10px;
  padding: 10px 12px; margin-top: 12px;
  font-size: 13px; line-height: 1.55; color: var(--ink);
}
.gyro-tip p { margin: 0; flex: 1; }
.gyro-tip strong { color: var(--accent); }
.gyro-tip svg { color: var(--accent); }
.gyro-tip-close {
  flex: none; color: var(--ink-dim); font-size: 18px; line-height: 1;
  padding: 2px 6px; margin: -2px -4px 0 0;
}
 
.feed-stage .gyro-tip {
  position: absolute; z-index: 6;
  left: 50%; transform: translateX(-50%);
  bottom: calc(84px + var(--safe-bottom, 0px));
  width: min(92%, 460px); margin: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

 
.summary-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.summary-tile {
  padding: 14px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, .02); text-align: center;
}
.summary-value {
  font-size: 26px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.summary-label { font-size: 12.5px; color: var(--ink-dim); margin-top: 6px; }
.summary-sub { font-size: 11px; color: var(--ink-dim); margin-top: 4px; opacity: .85; }
.stat-table { display: grid; gap: 6px; }
.stat-row {
  display: grid; grid-template-columns: 82px 1fr 48px;
  align-items: center; gap: 8px; font-size: 13px;
}
.stat-label { color: var(--ink-dim); white-space: nowrap; }
 
button.stat-row {
  border: 0; background: none; font: inherit; color: inherit;
  width: 100%; padding: 2px 0; cursor: pointer; text-align: left;
}
button.stat-row:hover .stat-bar { opacity: 1; }
button.stat-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.stat-row-selected .stat-label { color: var(--accent); font-weight: 700; }
.stat-row-selected .stat-bar { opacity: 1; }
 
.stat-table-wide .stat-row { grid-template-columns: minmax(82px, 40%) 1fr 48px; }
.stat-table-wide .stat-label { overflow: hidden; text-overflow: ellipsis; }
.stat-bar-track { background: rgba(255, 255, 255, .06); border-radius: 4px; height: 14px; overflow: hidden; }
.stat-bar { height: 100%; background: var(--accent); border-radius: 4px; opacity: .85; }
.stat-count { text-align: right; font-variant-numeric: tabular-nums; }
.embed-site { padding: 12px 0; border-bottom: 1px solid var(--line); }
.embed-site:last-child { border-bottom: none; padding-bottom: 0; }
.embed-site:first-child { padding-top: 0; }
.embed-site-url { word-break: break-all; font-size: 14px; }
.embed-site-meta { font-size: 12px; color: var(--ink-dim); margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .feed-card, .feed-card.active, .next-btn, .btn { transition-duration: .01s; }
  .logo .ee, .splash .ee { animation: none; }  
  .splash-inner { animation: none; }
}
