/* Shared reading and interaction rhythm; independent of artwork or content length. */
:root { --content-gap:24px; }
html { scroll-padding-top:90px; }
button,input,select,textarea { max-width:100%; }
.button-primary,.button-dark,.games-pill-tab.is-active { box-shadow:none; }
.page-intro { padding-block:28px 24px; margin-bottom:20px; }
.page-intro h1 { font-size:clamp(26px,3vw,36px); line-height:1.3; }
.page-intro .eyebrow { margin-bottom:8px; }
.page-intro p:not(.eyebrow) { line-height:1.65; }
.story-meta,.story-credit,.directory-genre,.footer-inner p { font-size:12px; }
.story-content h3,.directory-card h2,.leaderboard-title-line h3 { overflow-wrap:anywhere; }
.story-summary,.directory-summary { font-size:14px; }
.games-header-left,.games-header-right,.games-search-form { min-width:0; }
.games-search-form input[type=search] { min-width:0; flex:1; }
.games-pill-tab { white-space:nowrap; }
.games-quick-links { flex-wrap:wrap; }
.leaderboard-title-line h3 { -webkit-line-clamp:2; }
.responsive-disclosure > summary,.advanced-options > summary { cursor:pointer; min-height:44px; display:flex; align-items:center; gap:12px; color:var(--ink); font-weight:600; }
.responsive-disclosure > summary::after,.advanced-options > summary::after { content:'＋'; margin-left:auto; color:var(--accent-hover); }
.responsive-disclosure[open] > summary::after,.advanced-options[open] > summary::after { content:'−'; }
.responsive-disclosure > summary { display:none; }
.responsive-disclosure > summary small { color:var(--muted); font-weight:400; }
.advanced-options { border-block:1px solid var(--line); margin:16px 0; padding-bottom:4px; }
.advanced-options > summary { font-size:14px; }
.library-search { display:flex; gap:8px; min-width:0; margin-bottom:20px; }
.library-search input { min-width:0; flex:1; padding:12px 14px; }
.library-toolbar { gap:14px; margin-bottom:18px; }
.home-tools { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:18px 0; }
.home-tools > span { color:var(--muted); font-size:13px; }
.home-tools a { display:inline-flex; align-items:center; gap:7px; min-height:42px; padding:8px 12px; border:1px solid var(--line); border-radius:10px; background:var(--panel); font-size:13px; }
.home-tools a:hover { border-color:var(--accent); color:var(--accent-hover); }
.home-tools svg { width:17px; height:17px; flex:none; padding:0; margin:0; border:0; border-radius:0; background:none; color:var(--accent-hover); }
.work-profile-heading { min-width:0; }
.work-profile-copy { display:contents; }
.work-profile { grid-template-columns:200px minmax(0,1fr); gap:16px 30px; }
.work-profile-art { grid-column:1; grid-row:1 / span 4; }
.work-profile-heading,.work-description,.work-profile .work-facts,.profile-actions { grid-column:2; }
.work-profile h1,.work-profile h2 { margin:8px 0; }
.work-profile .work-facts { margin:0; }
.profile-actions { margin:0; }
.tool-studio-header { gap:16px; }
.tool-native-studio { grid-template-columns:minmax(0,1fr); }
.saved-tool-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); }
.tool-studio-summary { max-width:60ch; }
.tool-runtime-tag { display:none; }
.tool-plugin-host .tool-studio-summary { display:none; }
.tool-studio-btn--accent { box-shadow:none; }
.converter-output { scroll-margin-top:88px; min-width:0; }
.converter-output > .save-tool-panel { margin-top:22px; }
.tool-result-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:16px 0; }
.bookmark-login { font-size:14px; color:var(--muted); margin-bottom:18px; }
.bookmark-login a { color:var(--accent-hover); text-decoration:underline; text-underline-offset:3px; }
.recovery-page { min-height:100dvh; display:flex; flex-direction:column; background:var(--paper); }
.recovery-brand { display:flex; align-items:center; gap:10px; padding:24px 0; font-size:20px; font-weight:700; }
.recovery-brand img { width:36px; height:36px; }
.recovery-card { width:min(640px,100%); margin:clamp(20px,9vh,100px) auto; padding:clamp(24px,5vw,48px); border:1px solid var(--line); border-radius:var(--radius); background:var(--panel); }
.recovery-card h1 { font-size:clamp(26px,4vw,38px); margin:12px 0 18px; }
.recovery-card > p { color:var(--muted); }
.recovery-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
@media(max-width:980px) {
  .games-header-left,.games-header-right { width:100%; }
  .games-header-right { justify-content:space-between; }
  .leaderboard-grid { grid-template-columns:1fr; }
}
@media(max-width:700px) {
  body { font-size:15px; }
  .shell { width:calc(100% - 32px); }
  .header-actions .search-link { display:grid; }
  .header-actions .account-link { display:none; }
  .header-actions { gap:2px; }
  .brand { gap:6px; }
  .brand > span { font-size:19px; }
  .icon-button,.language-trigger { min-width:40px; min-height:44px; }
  .main-nav { max-height:70dvh; overflow-y:auto; }
  .main-nav a { flex-basis:40%; font-size:14px; }
  .page-intro,.page-intro--with-action { padding:20px 0 16px; margin-bottom:16px; gap:12px; }
  .page-intro h1 { font-size:25px; }
  .page-intro .eyebrow,.page-intro .rss-subscribe-row { display:none; }
  .page-intro p:not(.eyebrow),.page-intro--with-action > div > p:last-child { font-size:14px; margin-top:8px; }
  .page-intro--with-action > .button { padding:7px 12px; font-size:13px; }
  .section-heading .eyebrow,.sidebar-heading .eyebrow { display:none; }
  .section-heading h2 { font-size:21px; }
  .home-page .cafe-hero--compact { grid-template-columns:minmax(0,1fr) auto; margin:18px 0 12px; gap:10px; }
  .home-page .cafe-hero--compact .hero-media,.home-page .hero-kicker,.home-page .hero-description,.home-page .hero-secondary { display:none; }
  .home-page .cafe-hero--compact .banner-title { font-size:22px; }
  .home-page .hero-actions a { font-size:12px; }
  .home-tools { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin:12px 0 16px; }
  .home-tools > span { display:none; }
  .home-tools a { padding:8px 4px; justify-content:center; gap:5px; font-size:12px; }
  .home-tools svg { width:15px; height:15px; }
  .spotlight-grid,.spotlight-single { grid-template-columns:1fr; gap:10px; }
  .story-card--feature { min-height:260px; }
  .story-card--feature .story-content { padding:48px 16px 14px; }
  .story-card--feature .story-content h3 { font-size:23px; }
  .story-card--feature .story-summary { display:none; }
  .side-stories { grid-template-columns:1fr; gap:8px; }
  .story-card--supporting { grid-template-columns:88px minmax(0,1fr); min-height:0; padding:10px; gap:12px; background:var(--panel); box-shadow:none; }
  .story-card--supporting .story-image { grid-area:auto; height:80px; border-radius:8px; }
  .story-card--supporting .story-image > * { position:static; }
  .story-card--supporting .story-content { grid-area:auto; align-self:center; padding:0; background:none; }
  .story-card--supporting .story-content h3 { font-size:15px; margin:4px 0; }
  .story-card--supporting .story-bottom { display:none; }
  .story-card--supporting .story-meta { font-size:12px; }
  .channel-tabs { gap:6px; margin:16px 0; padding-bottom:12px; }
  .channel-tabs a { padding:6px 9px; font-size:12px; }
  .channel-tabs .channel-more { display:none; }
  .feed-panel,.sidebar-panel { padding:16px; }
  .story-card--row { grid-template-columns:88px minmax(0,1fr); gap:12px; padding:16px 0; }
  .story-card--row .story-image { aspect-ratio:1; }
  .story-card--row .story-content h3 { font-size:16px; line-height:1.5; margin:5px 0; }
  .story-card--row .story-summary { display:none; }
  .story-meta,.story-credit { font-size:12px; }
  .filter-panel { padding:14px; }
  .responsive-disclosure > summary { display:flex; }
  .filter-group { flex-direction:column; align-items:flex-start; gap:8px; }
  .category-row { gap:6px; }
  .category { min-height:36px; font-size:13px; }
  .listing-toolbar { margin-block:14px; }
  .deal-filter-panel { padding:14px; }
  .deal-filter-panel h2,.deal-filter-note { display:none; }
  .deal-result-heading .eyebrow { display:none; }
  .deal-result-heading { flex-wrap:wrap; gap:12px; }
  .deals-layout { gap:16px; }
  .anime-guide-shell { padding:14px; }
  .anime-guide-header { gap:12px; }
  .anime-guide-header .eyebrow { display:none; }
  .anime-guide-header h2 { font-size:19px; }
  .anime-guide-header .quiet-note { font-size:12px; }
  .anime-guide-search { width:100%; min-width:0; }
  .anime-guide-search input { min-width:0; width:auto; flex:1; }
  .anime-day-tabs { flex-wrap:nowrap; overflow-x:auto; padding-bottom:8px; }
  .anime-day-tab { flex:none; min-width:44px; }
  .games-header-bar { padding:14px; margin:18px 0; gap:14px; }
  .games-header-left { display:grid; grid-template-columns:1fr; gap:12px; }
  .games-title-group .eyebrow { display:none; }
  .games-title-group h1 { font-size:24px; }
  .games-pill-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; border-radius:12px; padding:4px; }
  .games-pill-tab { padding:8px; min-height:42px; justify-content:center; border-radius:9px; font-size:14px; gap:6px; }
  .games-header-right { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
  .games-search-form { width:100%; flex-wrap:wrap; }
  .games-search-form input[type=search] { width:0; flex:1 1 130px; min-height:44px; font-size:14px; }
  .games-search-form .button { min-height:44px; padding:8px 12px; }
  .games-quick-links { justify-content:space-between; gap:10px; font-size:13px; }
  .leaderboard-card { grid-template-columns:24px 64px minmax(0,1fr); gap:8px 10px; padding:12px; }
  .leaderboard-rank { width:24px; height:28px; font-size:12px; }
  .leaderboard-thumb { aspect-ratio:1; grid-column:2; grid-row:1 / span 2; }
  .leaderboard-main { grid-column:3; }
  .leaderboard-title-line h3 { font-size:15px; -webkit-line-clamp:2; }
  .leaderboard-heat { grid-column:3; flex-direction:row; align-items:center; }
  .leaderboard-heat-val { justify-content:flex-start; }
  .leaderboard-heat-val small { font-size:12px; }
  .leaderboard-heat .hot-rank-bar { max-width:50px; }
  .work-profile { grid-template-columns:84px minmax(0,1fr); padding:16px; gap:18px 14px; }
  .work-profile-art { grid-row:1; width:100%; max-width:none; }
  .work-profile-heading { grid-column:2; align-self:center; }
  .work-profile h1,.work-profile h2 { font-size:23px; margin:8px 0; }
  .profile-genre { display:block; margin:5px 0 0; }
  .work-description,.work-profile .work-facts,.profile-actions { grid-column:1 / -1; }
  .work-description { font-size:15px; }
  .profile-actions { gap:12px; }
  .directory-card h2 { font-size:18px; }
  .directory-summary { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .account-layout { display:flex; flex-direction:column; margin:20px auto 32px; }
  .account-panel { order:-1; padding:24px 18px; }
  .account-panel h1 { font-size:26px; margin-bottom:18px; }
  .account-welcome { padding:18px; border-top:1px solid var(--line); border-bottom:0; }
  .account-welcome h2 { font-size:18px; margin-bottom:8px; }
  .personal-navigation { margin-top:16px; gap:4px 16px; }
  .personal-navigation a { font-size:13px; }
  .tool-workspace-bar { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; margin:12px 0; }
  .tool-ws-switcher { width:100%; min-width:0; gap:4px; justify-content:space-between; }
  .tool-ws-tab { padding:7px 6px; min-height:42px; font-size:12px; }
  .tool-ws-tab svg { display:none; }
  .tool-ws-back { padding:4px 0; min-height:32px; }
  .tool-ws-tab--saved { margin-left:auto; }
  .tool-studio-header { padding:14px; gap:10px; }
  .tool-studio-heading-row h1 { font-size:21px; }
  .tool-plugin-host .tool-card-icon-badge,.tool-studio-summary,.tool-badge-primary { display:none; }
  .tool-studio-actions { flex-wrap:wrap; gap:6px; }
  [data-plugin-expand] { display:none; }
  .tool-studio-btn { min-height:38px; font-size:12px; padding:7px 10px; }
  .tool-plugin-frame-wrap { padding:0; }
  .converter-input,.converter-output { padding:18px; }
  .converter-input > .eyebrow,.converter-output .eyebrow { display:none; }
  .converter-input h2,.converter-output h2 { font-size:20px; margin-bottom:16px; }
  .converter-input label { font-size:14px; }
  .time-result { gap:12px; }
  .time-result span { font-size:12px; }
  .site-footer { margin-top:36px; }
  .footer-bottom { font-size:12px; }
}

.anime-day-tabs { scrollbar-width:thin; scrollbar-color:#46506a transparent; }
.anime-day-tabs::-webkit-scrollbar { height:4px; }
.anime-day-tabs::-webkit-scrollbar-thumb { background:#46506a; border-radius:4px; }
@media(max-width:360px) {
  .header-inner { column-gap:8px; }
  .brand b { display:none; }
}
