@font-face {
  font-family: Inter;
  src: url("/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #fbfcff;
  --ink: #131622;
  --muted: #586174;
  --line: #dce1ec;
  --surface: #f0f3fa;
  --blue: #3448ff;
  --dark-blue: #2639dd;
  --pale-blue: #ebeeff;
  --radius: 15px;
}
* { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); font-family: Inter, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
a, button, input { color: inherit; font: inherit; }
a { text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { opacity: .55; cursor: wait; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, .file-picker:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden], .broken, #toast:empty { display: none !important; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 20; padding: 13px 18px; border-radius: 12px; background: #fff; }
.skip:focus { top: 8px; }
.wrap { width: min(1280px, calc(100% - clamp(44px, 8vw, 120px))); margin-inline: auto; }
.bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav, .nav nav, .nav nav a, .brand, .section-line, .sample-hint, .back, .text-link, .search, .solid, .secondary, .more, .modal-actions, .slide-controls, .modal-head, .import-row, .page-head, .profile, .stats, .tabs, .person, .saved-row, .card-body, .photo-label, .comment-name { display: flex; align-items: center; }
.nav { height: 74px; justify-content: space-between; }
.brand { gap: 9px; font-size: 31px; font-weight: 780; letter-spacing: -.065em; line-height: 1; }
.brand img { width: 33px; height: 33px; }
.nav nav { gap: 6px; }
.nav nav a { justify-content: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.nav nav a[aria-current=page] { color: var(--dark-blue); background: var(--pale-blue); }
.ico { display: inline-block; flex-shrink: 0; vertical-align: middle; width: 18px; height: 18px; }
.count { display: inline-grid; place-items: center; padding: 2px 5px; min-width: 17px; border-radius: 15px; background: #e1e5ee; color: #4f5768; font-size: 10px; line-height: 1.2; font-weight: 740; font-variant-numeric: tabular-nums; }
main { padding: clamp(24px, 3.6vw, 54px) 0 48px; min-height: calc(100dvh - 175px); }
main:focus { outline: none; }
.hero { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: stretch; column-gap: clamp(26px,4vw,68px); }
.hero-copy { min-width: 0; align-self: center; padding: 16px 0; }
.hero h1 { font-size: clamp(44px, 5.2vw, 83px); letter-spacing: -.082em; line-height: 1.13; font-weight: 820; }
.hero h1 span { color: var(--blue); }
.hero-copy > p { margin-top: 20px; font-size: clamp(14px, 1.15vw, 17px); letter-spacing: -.04em; color: var(--muted); word-break: keep-all; line-height: 1.65; }
.search { width: 100%; max-width: 485px; min-height: 59px; margin-top: 25px; padding: 5px 5px 5px 17px; gap: 10px; border: 1px solid #c6ccda; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 3px 8px #19234d08; }
.search:focus-within { outline: 3px solid #8e9aff; outline-offset: 1px; border-color: var(--blue); }
.search > .ico { width: 19px; height: 19px; color: #687083; }
.search input { width: 100%; flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; padding: 7px 0; font-size: 16px; }
.search input:focus-visible { outline: 0; }
.search input::placeholder { color: #606879; font-size: 14px; }
.search button, .solid, .secondary, .more { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; border-radius: 11px; padding: 0 15px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.search button, .solid { color: white; background: var(--blue); }
.search button:hover, .solid:hover { background: var(--dark-blue); }
.secondary, .more { border: 1px solid var(--line); color: var(--ink); background: white; }
.form-error { display: block; margin-top: 8px; color: #ae263e; font-size: 13px; }
.form-error:empty { display: none; }
.photo-wall { display: grid; grid-template-columns: 1.8fr 1fr; grid-template-rows: 1fr 1fr; gap: 7px; aspect-ratio: 1.63; overflow: hidden; border-radius: 24px; background: var(--paper); }
.hero-photo, .cover, .tile { display: block; overflow: hidden; position: relative; isolation: isolate; background: #e5e9f0; }
.hero-photo:first-child { grid-row: span 2; }
.hero-photo img, .cover img, .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease-out; }
.hero-photo img { position: absolute; inset: 0; }
.hero-photo:first-child img { object-position: 49% 50%; }
.hero-photo:first-child::after { position: absolute; inset: 55% 0 0; content: ""; background: linear-gradient(transparent,#0a122b99); pointer-events: none; }
.hero-photo:focus-visible, .cover:focus-visible, .tile:focus-visible { outline-offset: -4px; z-index: 1; }
.photo-label, .photo-go { position: absolute; z-index: 1; color: white; }
.photo-label { bottom: 17px; left: 16px; gap: 5px; font-size: 12px; font-weight: 600; }
.photo-label .ico { width: 14px; height: 14px; }
.photo-go { right: 13px; bottom: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ffffff91; }
.section-line { justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 25px; margin: clamp(30px,3.5vw,52px) 0 17px; }
.section-line h2, .list-title { font-size: clamp(21px,2.1vw,29px); font-weight: 780; letter-spacing: -.064em; }
.sample-hint { gap: 5px; color: var(--muted); font-size: 12px; font-weight: 550; white-space: nowrap; }
.sample-hint .ico { width: 14px; height: 14px; }
.examples { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(13px,1.6vw,24px); }
.card { min-width: 0; position: relative; }
.cover { border-radius: var(--radius); aspect-ratio: 1.94; }
.cover .category { position: absolute; bottom: 10px; left: 11px; padding: 4px 8px; border: 1px solid #ffffff40; border-radius: 8px; color: white; background: #0b0f1dcc; font-size: 10px; font-weight: 650; }
.mark, .round, .photo-go { display: inline-grid; place-items: center; flex-shrink: 0; }
.mark, .round { width: 44px; height: 44px; border-radius: 50%; background: white; border: 1px solid var(--line); }
.mark[aria-pressed=true] { color: var(--dark-blue); border-color: #a3adff; background: var(--pale-blue); }
.mark[aria-pressed=true] .ico { fill: currentColor; }
.card .mark { position: absolute; top: 4px; right: 4px; color: white; background: none; border: 0; }
.card .mark::before { content: ""; position: absolute; inset: 5px; border: 1px solid #ffffff5c; border-radius: 50%; background: #1317269e; }
.card .mark .ico { z-index: 1; width: 15px; height: 15px; }
.card .mark[aria-pressed=true]::before { background: var(--blue); border-color: #fff; }
.card-body { gap: 10px; min-height: 56px; padding: 11px 2px; }
.handle { font-size: clamp(14px,1.25vw,19px); font-weight: 740; letter-spacing: -.046em; overflow-wrap: anywhere; }
.card-body small, .person small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.card-body > .ico, .person > .ico { margin-left: auto; width: 16px; color: var(--muted); }
.avatar { display: inline-grid; position: relative; overflow: hidden; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: #e6eaff; color: var(--dark-blue); font-weight: 770; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .avatar { width: 34px; height: 34px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); padding: 18px 0 max(22px,env(safe-area-inset-bottom)); font-size: 12px; }
footer nav { display: flex; gap: 5px 14px; justify-content: flex-end; flex-wrap: wrap; }
footer nav a { display: inline-flex; align-items: center; min-height: 34px; text-underline-offset: .22em; }
footer nav a:hover { text-decoration: underline; }
.foot-brand { font-size: 18px; color: var(--ink); font-weight: 760; letter-spacing: -.07em; }
.back, .text-link { display: inline-flex; gap: 7px; min-height: 44px; font-size: 13px; font-weight: 640; color: var(--muted); }
.page-head { gap: 12px; margin: 16px 0 22px; }
.page-head h1, .profile h1 { font-size: clamp(26px,3.6vw,47px); font-weight: 780; letter-spacing: -.065em; overflow-wrap: anywhere; }
.profile { gap: 20px; margin: 10px 0 20px; padding: clamp(20px,3vw,37px); border: 1px solid #dfe4f5; border-radius: 22px; background: linear-gradient(120deg,#f5f7ff,#edf0ff); }
.profile > .avatar { width: 84px; height: 84px; font-size: 26px; box-shadow: 0 0 0 3px white; }
.profile-info { flex: 1; min-width: 0; }
.profile-info .minor { display: block; color: var(--dark-blue); font-size: 12px; font-weight: 650; }
.profile-info p { font-size: 14px; line-height: 1.55; margin-top: 5px; overflow-wrap: anywhere; white-space: pre-line; }
.stats { gap: 8px; }
.stats button { min-width: 66px; min-height: 54px; text-align: center; border-radius: 9px; }
.stats strong, .stats small { display: block; }
.stats strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.stats small { color: var(--muted); margin-top: 4px; font-size: 12px; }
.tabs { gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 19px; }
.tabs button { min-height: 48px; border-bottom: 3px solid transparent; padding: 10px 16px; font-size: 14px; font-weight: 620; white-space: nowrap; color: var(--muted); }
.tabs button[aria-pressed=true] { color: var(--dark-blue); border-color: var(--blue); font-weight: 760; }
.tiles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(5px,1vw,13px); }
.tile { border-radius: 12px; aspect-ratio: 1; }
.tile .tile-type { display: inline-flex; position: absolute; top: 8px; right: 8px; padding: 6px; color: white; border-radius: 50%; background: #131622a8; }
.story-tiles .tile { aspect-ratio: 9/14; }
.story-placeholder { display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; height: 100%; color: white; background: #222942; font-weight: 650; }
.story-placeholder .ico { width: 30px; height: 30px; }
.people, .relation-filter { max-width: 750px; }
.relation-filter { margin: 0 0 10px; }
.person { overflow-wrap: anywhere; gap: 12px; min-height: 69px; padding: 8px 3px; border-bottom: 1px solid var(--line); }
.person > div { min-width: 0; }
.saved-row { gap: 12px; }
.saved-row .person { flex: 1; min-width: 0; }
.status, .external-view { text-align: center; padding: 24px 18px; line-height: 1.65; font-size: 14px; }
.status { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.status > .ico { display: block; margin: 0 auto 9px; color: var(--blue); }
.status button, .status a { margin: 10px 4px 0; }
.subnote, .external-view p, .import-row small, .load { color: var(--muted); font-size: 13px; line-height: 1.65; }
.subnote { margin: 8px 0; }
.external-view { margin: 8px auto; max-width: 680px; }
.external-view .secondary { margin: 6px 3px 0; }
.import-row { justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file-picker { position: relative; cursor: pointer; }
.file-picker input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.load { padding: 21px 2px; }
.more { display: flex; margin: 22px auto 0; }
dialog { width: min(640px,calc(100% - 24px)); max-height: 90vh; max-height: 90dvh; border: 1px solid var(--line); padding: 0; color: var(--ink); background: var(--paper); border-radius: 21px; overscroll-behavior: contain; }
dialog::backdrop { background: #0c1023b8; }
body:has(dialog[open]) { overflow: hidden; }
.modal-head { position: sticky; top: 0; z-index: 2; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); background: var(--paper); padding: 7px 12px 7px 18px; }
.modal-head > strong { font-size: 15px; font-weight: 740; overflow-wrap: anywhere; }
.modal-visual { display: grid; place-items: center; min-height: 120px; color: white; background: #10121a; }
.modal-visual img, .modal-visual video { width: 100%; max-height: min(56vh,535px); object-fit: contain; }
.modal-body { padding: 16px 20px 20px; }
.modal-actions { flex-wrap: wrap; gap: 8px; }
.slide-controls { justify-content: center; gap: 10px; padding: 6px; font-size: 13px; }
.caption, .comment p { font-size: 14px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.caption { margin: 13px 0; }
.modal-body h3 { margin: 20px 0 6px; font-size: 18px; }
.comment { border-top: 1px solid var(--line); padding: 7px 0; }
.comment-name { display: inline-flex; gap: 7px; min-height: 44px; font-size: 14px; font-weight: 680; }
.comment-name .avatar { width: 26px; height: 26px; }
dialog.expanded { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; background: #10121a; color: white; overflow: hidden; }
.expanded #dialog-content, #dialog-content:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; background: #10121a; color: white; }
.expanded .modal-head { flex-shrink: 0; background: #10121a; border-color: #363946; padding-top: max(6px,env(safe-area-inset-top)); }
.expanded .round { color: white; background: #242735; border-color: #414758; }
.expanded .modal-visual { flex: 1; min-height: 0; overflow: hidden; }
.expanded .modal-visual img, .expanded .modal-visual video { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; }
.expanded .modal-body { flex-shrink: 0; padding: 8px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
.expanded .modal-body > .caption, .expanded .modal-body > h3, .expanded #comments { display: none; }
.expanded .modal-actions { justify-content: center; }
#toast { position: fixed; z-index: 10; bottom: max(18px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 30px); width: max-content; background: var(--ink); color: white; padding: 12px 17px; border-radius: 13px; font-size: 13px; text-align: center; pointer-events: none; }
@media (hover:hover) {
  .hero-photo:hover img, .cover:hover img, .tile:hover img { transform: scale(1.035); }
  .nav nav a:hover, .secondary:hover, .round:hover, .mark:hover, .stats button:hover, .person:hover, .more:hover { background-color: var(--pale-blue); }
  .card-body:hover .handle, .back:hover { color: var(--dark-blue); }
}
@media (max-width:900px) {
  .profile { flex-wrap: wrap; }
  .stats { order: 4; flex-basis: 100%; }
  .hero { column-gap: 26px; grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(40px,6.1vw,55px); }
  .photo-wall { aspect-ratio: 1.27; }
  .search { gap: 7px; padding-left: 11px; }
  .search input::placeholder { font-size: 12px; }
}
@media (max-width:690px) {
  .wrap { width: calc(100% - max(18px,env(safe-area-inset-left)) - max(18px,env(safe-area-inset-right))); }
  .nav { height: 59px; }
  .brand { font-size: 26px; gap: 7px; }
  .brand img { width: 29px; height: 29px; }
  .nav nav { gap: 2px; }
  .nav nav a { min-height: 44px; padding: 0 8px; gap: 5px; font-size: 12px; border-radius: 10px; }
  .nav nav a .ico { width: 16px; height: 16px; }
  main { padding: 21px 0 26px; }
  .hero { grid-template-columns: 1fr; row-gap: 18px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(36px,7.4vw,49px); letter-spacing: -.078em; line-height: 1.14; }
  .hero h1 br { display: none; }
  .hero h1 span::before { content: " "; }
  .hero-copy > p { margin-top: 9px; font-size: 14px; }
  .search { max-width: none; min-height: 54px; margin-top: 16px; border-radius: 14px; }
  .search button { padding: 0 12px; border-radius: 9px; }
  .search input::placeholder { font-size: 13px; }
  .photo-wall { aspect-ratio: 2.18; gap: 5px; border-radius: 15px; }
  .photo-label { bottom: 10px; left: 10px; font-size: 10px; }
  .photo-go { right: 8px; bottom: 7px; width: 24px; height: 24px; }
  .photo-go .ico { width: 13px; height: 13px; }
  .section-line { margin: 23px 0 12px; padding-top: 17px; }
  .section-line h2 { font-size: 20px; }
  .sample-hint { font-size: 11px; }
  .examples { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 10px; }
  .cover { aspect-ratio: 1.45; border-radius: 11px; }
  .cover .category { bottom: 7px; left: 7px; padding: 3px 6px; font-size: 9px; }
  .card .mark { top: 0; right: 0; }
  .card .mark::before { inset: 7px; }
  .card-body { padding: 7px 1px; min-height: 46px; gap: 6px; }
  .card .avatar { display: none; }
  .card-body .handle { font-size: 14px; }
  .card-body small { font-size: 11px; }
  .card-body > .ico { width: 13px; }
  .profile { padding: 18px 13px 9px; gap: 12px; margin: 7px 0 11px; }
  .profile > .avatar { width: 52px; height: 52px; font-size: 19px; }
  .profile-info h1 { font-size: clamp(22px,5.7vw,35px); }
  .profile-info p { font-size: 13px; }
  .stats { justify-content: space-around; gap: 4px; border-top: 1px solid var(--line); padding-top: 5px; }
  .stats button { flex: 1; }
  .tabs { justify-content: space-between; gap: 0; margin-bottom: 13px; }
  .tabs button { flex: 1; padding: 6px 4px; min-height: 44px; font-size: 13px; }
  .tiles { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
  .story-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tile { border-radius: 7px; }
  .page-head { margin: 12px 0; }
  .modal-body { padding: 12px 13px max(14px,env(safe-area-inset-bottom)); }
  .modal-visual img, .modal-visual video { max-height: 53dvh; }
  .relation-filter { margin-top: 0; }
  footer nav { justify-content: flex-start; }
}
@media (max-width:365px) {
  .wrap { width: calc(100% - 24px); }
  .brand { font-size: 24px; }
  .nav nav a { padding: 0 6px; font-size: 11px; }
  .nav nav a .ico { display: none; }
  .hero h1 { font-size: 30px; }
  .hero h1 br { display: initial; }
  .hero h1 span::before { content: none; }
  .search { gap: 5px; }
  .search input::placeholder { font-size: 12px; }
  .photo-wall { aspect-ratio: 1.95; }
  .cover { aspect-ratio: 1.28; }
  .card-body .handle { font-size: 13px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.home-ad { margin: 24px auto; max-width: 728px; text-align: center; color: var(--muted); }
.home-ad small { display: block; margin-bottom: 5px; font: 12px/1.4 sans-serif; }
.home-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.home-ad-consent { padding: 12px; }
.home-ad-consent p { font-size: 14px; margin: 0 0 8px; }
.home-ad-consent button { background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 6px; min-width: 54px; min-height: 44px; margin: 0 3px; }
.home-ad-consent a { display: inline-block; padding: 10px; text-decoration: underline; font-size: 13px; }
.home-guide { max-width: 760px; margin: 38px auto 10px; }
.home-guide h2 { margin: 0 0 12px; font-size: clamp(20px, 3vw, 26px); letter-spacing: -.04em; }
.home-guide details { border-top: 1px solid var(--line); padding-inline: 2px; }
.home-guide summary { min-height: 46px; padding-block: 12px; font-weight: 650; cursor: pointer; }
.home-guide p { line-height: 1.65; margin: 0 0 15px; color: var(--muted); }
.home-guide a { text-decoration: underline; text-underline-offset: .2em; }
.home-guide code { overflow-wrap: anywhere; }
