.all-types{display:grid;grid-template-columns:repeat(2,1fr);gap:22px 12px}
.all-type{text-align:left;text-decoration:none}
.all-type img{width:100%;aspect-ratio:1;object-fit:contain}
.all-type b{font-size:15px}
@media (min-width:680px){.type-grid,.all-types{grid-template-columns:repeat(4,1fr)}}
.character-archive-hero{padding:30px 0 18px;position:relative}
.character-archive-hero:after{content:"";position:absolute;width:100px;height:26px;left:10%;bottom:9px;border-bottom:5px solid var(--lime);border-radius:50%;transform:rotate(-3deg)}
.character-wall{display:grid;grid-template-columns:1fr;gap:17px;padding:20px 0 60px}
.character-tile{
  --tile:#fff;--accent:#777;position:relative;display:grid;grid-template-columns:42% 1fr;align-items:center;
  min-height:180px;background:var(--tile);border-radius:30px 8px 30px 8px;padding:8px 14px 8px 5px;
  text-decoration:none;box-shadow:var(--soft-shadow);overflow:hidden;border:1px solid rgba(53,39,61,.06)
}
.character-tile:nth-child(even){grid-template-columns:1fr 42%;padding:8px 5px 8px 14px}
.character-tile:nth-child(even) .tile-art{order:2}
.character-tile:nth-child(even) .tile-copy{order:1}
.character-tile .tile-art{position:relative;z-index:2}
.character-tile .tile-art img{width:100%;aspect-ratio:1;object-fit:contain;animation:characterFloat 5s ease-in-out infinite}
.character-tile .tile-copy{position:relative;z-index:2}
.character-tile h2{font-size:20px;letter-spacing:-.035em;margin:0 0 7px}
.character-tile p{font-size:12px;line-height:1.55;color:#5E565F;margin:0}
.character-tile .tile-motif{position:absolute;width:75px;height:75px;right:5%;bottom:-12px;color:var(--accent);opacity:.14}
.character-detail-hero{position:relative;text-align:center;padding:20px 0 30px}
.character-detail-hero .detail-blob{position:absolute;inset:30px 4% auto;height:280px;background:var(--charsoft);border-radius:47% 53% 42% 58%;z-index:-1;transform:rotate(-2deg)}
.character-detail-grid{display:grid;gap:12px}
.story-panel{background:white;border-radius:20px 7px 20px 7px;padding:17px;box-shadow:var(--soft-shadow)}
.story-panel small{font-size:10px;font-weight:950;color:var(--char)}
.story-panel h3{font-size:18px;margin:5px 0 7px}
.story-panel p{margin:0;font-size:13px;line-height:1.7;color:#5A535C}
.character-strength{background:var(--charsoft);border-radius:22px 7px 22px 7px;padding:18px;margin:14px 0}
.character-strength b{display:block;font-size:20px;margin-top:4px}
.detail-nav{display:flex;gap:7px;overflow:auto;padding:8px 0 18px;scrollbar-width:none}
.detail-nav::-webkit-scrollbar{display:none}
.detail-nav a{white-space:nowrap;text-decoration:none;background:#fff;padding:9px 12px;border-radius:13px 5px 13px 5px;font-size:11px;font-weight:850;border:1px solid rgba(53,39,61,.07)}
@media (min-width:680px){.character-wall{grid-template-columns:repeat(2,1fr)}.character-tile,.character-tile:nth-child(even){grid-template-columns:46% 1fr;min-height:210px}.character-tile:nth-child(even) .tile-art{order:0}.character-tile:nth-child(even) .tile-copy{order:0}.character-detail-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:370px){.character-tile{grid-template-columns:38% 1fr;min-height:155px}.character-tile h2{font-size:18px}}
.character-motif{width:38px;color:var(--char);opacity:.45}
.detail-lead{margin-top:16px}
.detail-nav-spread{justify-content:space-between;margin-top:28px}
.character-score-bar i{width:calc(var(--score) * 1%)}
.character-score-bar .axis-dot{left:calc(var(--score) * 1%)}


/* Compatibility matrix */
.compat-map-section{padding:26px 0 76px}
.compat-map-head{display:grid;gap:18px;margin-bottom:18px}
.compat-map-head h2{font-size:clamp(28px,7vw,42px);margin:6px 0 8px}
.compat-map-head>div>p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.compat-legend{display:flex;flex-wrap:wrap;gap:8px 12px}
.compat-legend span{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:800;color:#5e5860}
.rank{width:24px;height:24px;border-radius:8px;display:inline-grid;place-items:center;font-size:16px;line-height:1}
.rank-best{background:#e7f6c7;color:#53742d}
.rank-good{background:#e5f0fa;color:#4c718f}
.rank-mid{background:#fff0ce;color:#9b6a18}
.rank-bad{background:#f9dddd;color:#a34d4d}
.compat-table-wrap{overflow:auto;-webkit-overflow-scrolling:touch;padding:6px 0 10px;scrollbar-width:thin}
.compat-matrix{border-collapse:separate;border-spacing:5px;min-width:720px;width:100%}
.compat-matrix th,.compat-matrix td{padding:0;text-align:center}
.compat-matrix .corner{position:sticky;left:0;z-index:4;background:var(--cream)}
.compat-matrix .col-head{min-width:72px;vertical-align:bottom}
.compat-matrix .col-head img{width:44px;height:44px;object-fit:contain;margin:0 auto 4px}
.compat-matrix .col-head span{display:block;font-size:9px;line-height:1.25;font-weight:900;white-space:normal}
.compat-matrix .row-head{position:sticky;left:0;z-index:3;width:126px;min-width:126px;background:var(--cream);text-align:left}
.compat-matrix .row-head-inner{display:flex;align-items:center;gap:7px;padding:5px 6px;border-radius:12px;background:rgba(255,255,255,.78);box-shadow:0 2px 7px rgba(53,39,61,.04)}
.compat-matrix .row-head img{width:42px;height:42px;object-fit:contain;flex:none}
.compat-matrix .row-head span{font-size:10px;line-height:1.35;font-weight:900}
.compat-cell{width:58px;height:58px;border-radius:15px;border:1px solid rgba(53,39,61,.06);background:#fff;font-size:22px;font-weight:900;cursor:default;position:relative}
.compat-cell[data-rank="best"]{background:#e7f6c7;color:#53742d}
.compat-cell[data-rank="good"]{background:#e5f0fa;color:#4c718f}
.compat-cell[data-rank="mid"]{background:#fff0ce;color:#9b6a18}
.compat-cell[data-rank="bad"]{background:#f9dddd;color:#a34d4d}
.compat-cell[data-rank="same"]{background:#f1edf3;color:#8a7f8d}
.compat-cell:focus{outline:3px solid rgba(53,39,61,.18);outline-offset:2px}
.compat-cell .compat-tip{display:none;position:absolute;z-index:10;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);width:190px;padding:9px 10px;border-radius:12px;background:#2f2732;color:#fff;font-size:10px;font-weight:700;line-height:1.5;box-shadow:0 10px 24px rgba(30,23,33,.18);pointer-events:none}
.compat-cell:hover .compat-tip,.compat-cell:focus .compat-tip{display:block}
.compat-note{font-size:10px;line-height:1.7;color:var(--muted);margin:8px 0 0}
@media (min-width:680px){
  .compat-map-head{grid-template-columns:1fr auto;align-items:end}
  .compat-legend{justify-content:flex-end;max-width:310px}
  .compat-matrix{min-width:0;border-spacing:7px}
  .compat-cell{width:64px;height:64px}
}

/* V9 characters + compatibility clarity */
.character-archive-hero{padding:44px 0 26px}
.character-archive-hero h1{font-size:clamp(34px,8vw,50px);margin:8px 0 10px}
.character-archive-hero p{max-width:610px;color:var(--muted);font-size:13px;line-height:1.8}
.character-archive-hero:after{display:none}
.character-wall{gap:14px}
.character-tile,.character-tile:nth-child(even){
  grid-template-columns:40% 1fr;
  border-radius:22px;
  padding:12px;
  transform:none;
}
.character-tile:nth-child(even) .tile-art,.character-tile:nth-child(even) .tile-copy{order:0}
.character-tile h2{font-family:var(--font-display);font-weight:900;letter-spacing:-.03em}
.compat-map-section{
  margin-top:28px;padding:34px 0 82px;
  border-top:1px solid rgba(53,39,61,.08);
}
.compat-map-head{
  padding:22px;border-radius:22px;background:#fffdf9;
  border:1px solid rgba(53,39,61,.06);
}
.compat-map-head h2{font-family:var(--font-display);font-weight:900}
.compat-swipe-hint{
  display:none;margin:12px 0 4px;font-size:11px;font-weight:700;color:var(--muted)
}
.compat-table-wrap{
  margin-top:14px;padding:12px 4px 16px;
  border-radius:18px;background:rgba(255,255,255,.5);
}
.compat-matrix{border-spacing:6px}
.compat-cell{border-radius:14px;box-shadow:0 3px 9px rgba(53,39,61,.035)}
.compat-cell:hover{transform:translateY(-1px)}
.compat-selected{
  margin-top:16px;padding:18px 19px;border-radius:18px;
  background:#35273d;color:#fff;
  box-shadow:0 10px 24px rgba(53,39,61,.13);
}
.compat-selected small{display:block;color:#d9d1dc;font-size:10px;font-weight:700;margin-bottom:4px}
.compat-selected b{font-family:var(--font-display);font-size:18px}
.compat-selected p{margin:7px 0 0;font-size:12px;line-height:1.7;color:#f3eef4}
@media (max-width:679px){
  .character-wall{grid-template-columns:1fr}
  .character-tile,.character-tile:nth-child(even){min-height:164px}
  .compat-map-head{padding:18px}
  .compat-swipe-hint{display:block}
  .compat-matrix{min-width:690px}
}

/* V10 compatibility picker */
.compat-picker{margin:16px 0 22px;padding:20px;border-radius:22px;background:linear-gradient(145deg,#fffdf9,#f7f4ed);border:1px solid rgba(53,39,61,.07);box-shadow:0 9px 26px rgba(53,39,61,.055)}
.compat-picker-title{display:flex;align-items:baseline;gap:9px;margin-bottom:14px}
.compat-picker-title span{font-size:10px;font-weight:800;color:var(--muted)}
.compat-picker-title b{font-family:var(--font-display);font-size:19px}
.compat-picker-controls{display:grid;grid-template-columns:1fr 28px 1fr;gap:8px;align-items:end}
.compat-picker-controls label{display:grid;gap:6px}
.compat-picker-controls label>span{font-size:10px;font-weight:800;color:var(--muted)}
.compat-picker-controls select{width:100%;min-height:48px;border:1px solid rgba(53,39,61,.11);background:#fff;border-radius:13px;padding:0 10px;color:var(--ink);font-family:var(--font-body);font-weight:700;font-size:13px}
.compat-picker-x{height:48px;display:grid;place-items:center;font-family:var(--font-display);font-weight:900;color:var(--muted)}
.compat-pair-result{margin-top:14px}
.compat-pair-card{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;padding:14px;border-radius:17px;background:#fff;border:1px solid rgba(53,39,61,.06)}
.compat-pair-rank{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-family:var(--font-display);font-size:26px;font-weight:900}
.compat-pair-card[data-rank="best"] .compat-pair-rank{background:#e7f6c7;color:#53742d}
.compat-pair-card[data-rank="good"] .compat-pair-rank{background:#e5f0fa;color:#4c718f}
.compat-pair-card[data-rank="mid"] .compat-pair-rank{background:#fff0ce;color:#9b6a18}
.compat-pair-card[data-rank="bad"] .compat-pair-rank{background:#f9dddd;color:#a34d4d}
.compat-pair-card[data-rank="same"] .compat-pair-rank{background:#f1edf3;color:#8a7f8d}
.compat-pair-copy b{display:block;font-family:var(--font-display);font-size:15px;margin-bottom:3px}
.compat-pair-copy p{margin:0;font-size:11px;line-height:1.65;color:#5e5860}
.compat-table-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:28px}
.compat-table-title b{font-family:var(--font-display);font-size:18px}
.compat-table-title span{font-size:10px;color:var(--muted);font-weight:700}
@media(max-width:480px){.compat-picker{padding:16px}.compat-picker-controls{grid-template-columns:1fr 20px 1fr}.compat-picker-controls select{font-size:12px;padding:0 7px}.compat-pair-card{grid-template-columns:46px 1fr}.compat-pair-rank{width:46px;height:46px;font-size:23px}}


/* V13 matrix clipping fix */
.compat-table-wrap{
  padding-left:12px;
  padding-right:12px;
  scroll-padding-left:12px;
}
.compat-matrix .corner{
  left:12px;
  min-width:150px;
  width:150px;
}
.compat-matrix .row-head{
  left:12px;
  width:150px;
  min-width:150px;
  padding-right:6px;
}
.compat-matrix .row-head-inner{
  min-height:58px;
  padding:7px 9px;
}
.compat-matrix .row-head span{
  font-size:10px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
/* 理由は下の選択結果に出す。表内ツールチップは端で見切れるため非表示 */
.compat-cell .compat-tip,
.compat-cell:hover .compat-tip,
.compat-cell:focus .compat-tip{
  display:none!important;
}
@media(max-width:679px){
  .compat-table-wrap{padding-left:8px;padding-right:8px;scroll-padding-left:8px}
  .compat-matrix .corner{left:8px;min-width:136px;width:136px}
  .compat-matrix .row-head{left:8px;min-width:136px;width:136px}
}

/* V46 — mobile typography + final illustrated compatibility */
.character-archive-hero h1,.character-tile h2,.character-detail-hero .type-name{word-break:keep-all;overflow-wrap:normal;text-wrap:balance}
.character-tile h2{line-height:1.18}
.compat-section--showcase{margin-top:24px;padding:28px 16px 24px!important;border-radius:30px;background:linear-gradient(180deg,#f8f2eb,#fbf8f3);box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 14px 30px rgba(53,39,61,.045)}
.compat-section--showcase .compat-heading{text-align:center;margin-bottom:16px}
.compat-section--showcase .compat-heading .section-note{display:block;margin-bottom:7px;letter-spacing:.16em}
.compat-section--showcase .compat-heading h2{margin:0;font-size:clamp(27px,7.5vw,40px);line-height:1.12;word-break:keep-all;text-wrap:balance}
.compat-section--showcase .compat-heading p{margin:8px auto 0;max-width:23em;font-size:13px;line-height:1.6;color:#6b6471}
.compat-rich-showcase{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
.compat-card-showcase,.compat-card-showcase.first{position:relative;overflow:hidden!important;isolation:isolate;display:grid!important;grid-template-columns:minmax(0,1fr) 112px!important;align-items:end!important;gap:8px!important;min-height:202px!important;height:auto!important;margin:0!important;padding:16px 14px 14px 16px!important;border-radius:27px!important;border:1px solid rgba(53,39,61,.06)!important;box-shadow:0 12px 25px rgba(53,39,61,.055)!important;text-align:left!important;transform:none!important}
.compat-card-showcase::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(255,255,255,.97),rgba(255,255,255,.9) 48%,rgba(255,255,255,.35) 78%,transparent)}
.compat-card-showcase .compat-copy,.compat-card-showcase .compat-media,.compat-card-showcase .rank-badge,.compat-card-showcase .scribble,.compat-card-showcase .compat-motif,.compat-card-showcase .blob{z-index:2}
.compat-card-showcase .compat-copy{position:relative;display:grid;align-self:end;gap:7px;min-width:0;padding-top:60px}
.compat-card-showcase .cname{display:block;margin:0!important;font-size:20px!important;line-height:1.16!important;letter-spacing:-.03em;color:#243e74;font-weight:900;white-space:nowrap!important;word-break:keep-all!important}
.compat-card-showcase .reason{display:block;margin:0!important;max-width:15em;font-size:12.5px!important;line-height:1.55!important;color:#554f59!important;text-wrap:pretty}
.compat-card-showcase .compat-tags{display:flex;flex-wrap:wrap;gap:6px}
.compat-card-showcase .compat-tags i{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 10px;border-radius:999px;font-style:normal;font-size:11px;font-weight:800;white-space:nowrap}
.compat-card-showcase .compat-media{position:relative;display:grid;place-items:end;align-self:end;justify-self:end}
.compat-card-showcase .compat-media img{width:108px!important;height:auto!important;max-height:128px;margin:0!important;object-fit:contain!important;filter:drop-shadow(0 10px 15px rgba(53,39,61,.09))!important;animation:none!important}
.compat-card-showcase .rank-badge{position:absolute;top:14px;left:14px;display:inline-flex;align-items:center;gap:1px;min-width:58px;height:58px;padding:0 11px;border-radius:999px;font-weight:900;box-shadow:0 7px 14px rgba(53,39,61,.07)}
.compat-card-showcase .rank-badge b{font-size:31px;line-height:1}.compat-card-showcase .rank-badge small{font-size:17px;line-height:1;margin-top:7px}
.compat-card-showcase .compat-motif{position:absolute;top:16px!important;right:14px!important;width:17px!important;height:17px!important;opacity:.24!important}
.compat-card-showcase .scribble{position:absolute;font-size:12px;line-height:1.25;font-weight:900;letter-spacing:.02em;opacity:.96}
.compat-card-showcase .scribble-top{top:24px;left:84px;right:42px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compat-card-showcase .scribble-side,.compat-card-showcase .scribble-corner{display:none}
.compat-card-showcase .blob{position:absolute;border-radius:999px;opacity:.22}.compat-card-showcase .blob-a{width:118px;height:54px;left:-16px;bottom:-10px}.compat-card-showcase .blob-b{width:88px;height:46px;right:88px;top:54px}.compat-card-showcase .blob-c{width:44px;height:44px;right:52px;bottom:26px;opacity:.10}
.compat-card-showcase.theme-wanko{background:linear-gradient(180deg,#fffdf7,#fff9f0)!important;--blob:#f3de8d}.compat-card-showcase.theme-wanko .rank-badge{background:linear-gradient(180deg,#f3b839,#d89524);color:#fff}.compat-card-showcase.theme-wanko .compat-tags i{background:#f7ebbb;color:#774b1c}.compat-card-showcase.theme-wanko .scribble{color:#bf6b1d}.compat-card-showcase.theme-wanko .blob{background:var(--blob)}
.compat-card-showcase.theme-neko{background:linear-gradient(180deg,#f8f7ff,#f3f1ff)!important;--blob:#c9d0ff}.compat-card-showcase.theme-neko .rank-badge{background:linear-gradient(180deg,#a0a6ee,#8088d5);color:#fff}.compat-card-showcase.theme-neko .compat-tags i{background:#dfe1ff;color:#434aa8}.compat-card-showcase.theme-neko .scribble{color:#5a61d2}.compat-card-showcase.theme-neko .blob{background:var(--blob)}.compat-card-showcase.theme-neko .cname{color:#283e7b}
.compat-card-showcase.theme-risu{background:linear-gradient(180deg,#fffaf4,#fff7f0)!important;--blob:#f4dbc5}.compat-card-showcase.theme-risu .rank-badge{background:linear-gradient(180deg,#e4a163,#cd7b44);color:#fff}.compat-card-showcase.theme-risu .compat-tags i{background:#f7dece;color:#8a542a}.compat-card-showcase.theme-risu .scribble{color:#d3723e}.compat-card-showcase.theme-risu .blob{background:var(--blob)}
@media(max-width:374px){.character-archive-hero h1{font-size:34px!important}.character-tile{grid-template-columns:36% 1fr!important}.character-tile h2{font-size:16.5px!important;letter-spacing:-.035em}.character-tile.theme-hari h2{font-size:15.5px!important}.compat-card-showcase,.compat-card-showcase.first{grid-template-columns:minmax(0,1fr) 92px!important;min-height:196px!important;padding:14px 11px 12px 13px!important}.compat-card-showcase .compat-copy{padding-top:56px;gap:6px}.compat-card-showcase .cname{font-size:17.5px!important}.compat-card-showcase .reason{font-size:12px!important;max-width:14em}.compat-card-showcase .compat-media img{width:90px!important;max-height:108px}.compat-card-showcase .scribble-top{display:none}.compat-card-showcase .compat-tags i{font-size:10.5px;padding:0 8px;min-height:27px}}
@media(min-width:680px){.compat-section--showcase{padding:34px 28px 28px!important}.compat-section--showcase .compat-heading p{font-size:15px}.compat-rich-showcase{gap:18px!important}.compat-card-showcase,.compat-card-showcase.first{grid-template-columns:minmax(0,1fr) 190px!important;min-height:220px!important;padding:22px 20px 18px 22px!important}.compat-card-showcase .compat-copy{padding-top:68px}.compat-card-showcase .compat-media img{width:170px!important;max-height:180px}.compat-card-showcase .cname{font-size:clamp(25px,2.4vw,32px)!important}.compat-card-showcase .reason{font-size:14px!important;max-width:18em}.compat-card-showcase .scribble-top{left:105px;top:22px;font-size:16px}.compat-card-showcase .rank-badge{min-width:70px;height:70px}.compat-card-showcase .rank-badge b{font-size:39px}.compat-card-showcase .rank-badge small{font-size:22px}}


/* 20260923 character rail + meter polish */
.content-page .axes{
  gap:14px;
}
.content-page .axes>div{
  box-sizing:border-box;
  width:100%;
  overflow:hidden;
  padding:16px 18px 15px;
  border:1px solid rgba(53,39,61,.06);
  border-radius:24px;
  background:rgba(255,255,255,.92);
  box-shadow:0 8px 22px rgba(53,39,61,.035);
}
.content-page .axes .axis-head{
  width:100%;
  min-width:0;
  align-items:center;
}
.content-page .axes .axis-name{
  min-width:0;
  font-size:16px;
  line-height:1.25;
}
.content-page .axes .axis-score{
  flex:none;
  min-width:2.5ch;
  justify-content:flex-end;
}
.content-page .axes .axis-score b{
  font-size:24px;
  line-height:1;
}
.content-page .character-score-bar{
  width:calc(100% - 8px);
  margin:12px 4px 4px;
  overflow:visible;
}
.content-page .character-score-bar .axis-dot{
  width:11px;
  height:11px;
  border-width:3px;
}

.detail-mates-strip{
  margin:34px calc(var(--side) * -1) 0;
  padding:30px 0 22px;
  overflow:hidden;
  border-top:1px solid rgba(53,39,61,.08);
}
.detail-mates-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  padding:0 var(--side) 14px;
}
.detail-mates-head h2{
  margin:5px 0 0;
  font-size:clamp(27px,7.4vw,36px);
  line-height:1.08;
}
.detail-mates-hint{
  flex:none;
  padding-bottom:4px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}
.detail-mates-scroll{
  display:flex;
  gap:12px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  padding:4px var(--side) 16px;
}
.detail-mates-scroll::-webkit-scrollbar{display:none}
.mate-mini-card{
  position:relative;
  flex:0 0:min(45vw,178px);
  min-width:0;
  scroll-snap-align:start;
  overflow:hidden;
  padding:12px 12px 14px;
  border:1px solid rgba(53,39,61,.06);
  border-radius:24px 8px 24px 8px;
  background:#fff;
  color:var(--ink);
  text-decoration:none;
  box-shadow:0 8px 22px rgba(53,39,61,.045);
}
.mate-mini-card.is-current{
  outline:2px solid color-mix(in srgb,var(--char),white 34%);
  outline-offset:-2px;
}
.mate-mini-card.is-current:after{
  content:"いま見ている";
  position:absolute;
  top:9px;
  right:9px;
  padding:4px 6px;
  border-radius:999px;
  background:#35273d;
  color:#fff;
  font-size:8px;
  font-weight:900;
}
.mate-mini-art{
  display:grid;
  place-items:center;
  height:122px;
  margin:-2px -2px 8px;
  border-radius:18px 5px 18px 5px;
  background:linear-gradient(145deg,#faf7f1,#f3edf4);
}
.mate-mini-art img{
  width:108px;
  height:108px;
  object-fit:contain;
}
.mate-mini-card b{
  display:block;
  min-height:2.2em;
  font-size:14px;
  line-height:1.1;
  letter-spacing:-.025em;
  word-break:keep-all;
}
.mate-mini-card small{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:9.5px;
  line-height:1.45;
}
.all-mates-link{
  display:inline-flex;
  margin:2px var(--side) 0;
  min-height:44px;
  align-items:center;
  color:#304d7e;
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}

@media(min-width:680px){
  .detail-mates-strip{margin-inline:0}
  .detail-mates-head,.detail-mates-scroll{padding-left:0;padding-right:0}
  .mate-mini-card{flex-basis:190px}
}


/* 20260923 rail width hard-fix */
/* Safari-safe fixed card width so the rail never compresses all 8 cards into thin columns. */
@media(max-width:679px){
  .detail-mates-strip{
    margin-top:30px!important;
    padding-top:28px!important;
    padding-bottom:18px!important;
  }
  .detail-mates-head{
    padding-bottom:12px!important;
  }
  .detail-mates-scroll{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    padding:4px var(--side) 16px!important;
  }
  .detail-mates-scroll > .mate-mini-card{
    flex:0 0 154px!important;
    width:154px!important;
    min-width:154px!important;
    max-width:154px!important;
    min-height:228px!important;
    padding:12px 12px 14px!important;
    box-sizing:border-box!important;
    scroll-snap-align:start!important;
  }
  .mate-mini-art{
    width:100%!important;
    height:104px!important;
    margin:0 0 10px!important;
    border-radius:18px!important;
  }
  .mate-mini-art img{
    width:88px!important;
    height:88px!important;
    max-width:none!important;
    object-fit:contain!important;
  }
  .mate-mini-card b{
    display:block!important;
    min-height:2.4em!important;
    margin:0!important;
    font-size:15px!important;
    line-height:1.2!important;
    letter-spacing:-.025em!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
    white-space:normal!important;
  }
  .mate-mini-card small{
    display:block!important;
    margin-top:8px!important;
    font-size:10.5px!important;
    line-height:1.5!important;
    color:var(--muted)!important;
  }
  .mate-mini-card.is-current:after{
    top:8px!important;
    right:8px!important;
    font-size:8px!important;
    padding:4px 6px!important;
  }
}

@media(max-width:374px){
  .detail-mates-scroll > .mate-mini-card{
    flex-basis:148px!important;
    width:148px!important;
    min-width:148px!important;
    max-width:148px!important;
  }
}

@media(min-width:680px){
  .detail-mates-scroll{
    display:flex!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
  }
  .detail-mates-scroll > .mate-mini-card{
    flex:0 0 190px!important;
    width:190px!important;
    min-width:190px!important;
    max-width:190px!important;
  }
}


/* v46 compatibility showcase all characters */
.compat-card-showcase.theme-chameleon{background:linear-gradient(180deg,#f6fbf6,#eef8ef);--blob:#cfe9cf}
.compat-card-showcase.theme-chameleon .rank-badge{background:linear-gradient(180deg,#86c76e,#5ea84c);color:#fff}
.compat-card-showcase.theme-chameleon .compat-tags i{background:#deefd8;color:#3c6b36}
.compat-card-showcase.theme-chameleon .scribble{color:#5b9b4f}
.compat-card-showcase.theme-chameleon .blob{background:var(--blob)}
.compat-card-showcase.theme-chameleon .cname{color:#2d6b3e}
.compat-card-showcase.theme-guma{background:linear-gradient(180deg,#faf6f2,#f7f0ea);--blob:#ead9c9}
.compat-card-showcase.theme-guma .rank-badge{background:linear-gradient(180deg,#b69a80,#96765f);color:#fff}
.compat-card-showcase.theme-guma .compat-tags i{background:#efe2d6;color:#6c4f3d}
.compat-card-showcase.theme-guma .scribble{color:#916d52}
.compat-card-showcase.theme-guma .blob{background:var(--blob)}
.compat-card-showcase.theme-guma .cname{color:#6a4d3d}
.compat-card-showcase.theme-hari{background:linear-gradient(180deg,#fcfaf6,#faf4ef);--blob:#eedfcf}
.compat-card-showcase.theme-hari .rank-badge{background:linear-gradient(180deg,#c69a7c,#a97858);color:#fff}
.compat-card-showcase.theme-hari .compat-tags i{background:#f3e4d6;color:#80583e}
.compat-card-showcase.theme-hari .scribble{color:#ab7150}
.compat-card-showcase.theme-hari .blob{background:var(--blob)}
.compat-card-showcase.theme-hari .cname{color:#6f4d3c}
.compat-card-showcase.theme-cheetah{background:linear-gradient(180deg,#fff9f3,#fff3e3);--blob:#f4d4a5}
.compat-card-showcase.theme-cheetah .rank-badge{background:linear-gradient(180deg,#f1b152,#d98d23);color:#fff}
.compat-card-showcase.theme-cheetah .compat-tags i{background:#f6e1bc;color:#925c11}
.compat-card-showcase.theme-cheetah .scribble{color:#dd8820}
.compat-card-showcase.theme-cheetah .blob{background:var(--blob)}
.compat-card-showcase.theme-cheetah .cname{color:#955718}
.compat-card-showcase.theme-kurage{background:linear-gradient(180deg,#f8fcff,#f2f8ff);--blob:#d7e7ff}
.compat-card-showcase.theme-kurage .rank-badge{background:linear-gradient(180deg,#8fc8ee,#69addd);color:#fff}
.compat-card-showcase.theme-kurage .compat-tags i{background:#e1efff;color:#486ea6}
.compat-card-showcase.theme-kurage .scribble{color:#5c93c6}
.compat-card-showcase.theme-kurage .blob{background:var(--blob)}
.compat-card-showcase.theme-kurage .cname{color:#4369a0}

@media(max-width:679px){
  .compat-section--showcase{padding:26px 12px 24px!important;border-radius:30px}
  .compat-section--showcase .compat-heading{margin-bottom:16px}
  .compat-section--showcase .compat-heading h2{font-size:clamp(27px,7.8vw,34px)!important;line-height:1.14!important;letter-spacing:-.035em!important}
  .compat-section--showcase .compat-heading p{font-size:13px!important;line-height:1.6!important}
  .compat-rich-showcase{gap:14px!important}
  .compat-card-showcase,.compat-card-showcase.first{grid-template-columns:minmax(0,1fr) 112px!important;align-items:end!important;min-height:205px!important;padding:16px 14px 14px 16px!important;gap:8px!important;border-radius:28px!important}
  .compat-card-showcase .compat-copy{align-self:end!important;gap:7px!important;padding-top:62px!important}
  .compat-card-showcase .cname{font-size:20px!important;line-height:1.18!important;letter-spacing:-.035em!important;white-space:nowrap!important;word-break:keep-all!important}
  .compat-card-showcase .reason{max-width:15.5em!important;font-size:12.5px!important;line-height:1.55!important}
  .compat-card-showcase .compat-tags{gap:6px!important}
  .compat-card-showcase .compat-tags i{min-height:28px!important;padding:0 10px!important;font-size:11px!important}
  .compat-card-showcase .rank-badge{top:14px!important;left:14px!important;min-width:58px!important;height:58px!important;padding:0 11px!important}
  .compat-card-showcase .rank-badge b{font-size:31px!important}
  .compat-card-showcase .rank-badge small{font-size:17px!important;margin-top:7px!important}
  .compat-card-showcase .scribble-side,.compat-card-showcase .scribble-corner{display:none!important}
  .compat-card-showcase .scribble-top{display:block!important;top:24px!important;left:84px!important;right:42px!important;width:auto!important;font-size:12px!important;line-height:1.25!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;transform:none!important}
  .compat-card-showcase .compat-motif{top:16px!important;right:14px!important;width:17px!important;height:17px!important}
  .compat-card-showcase .compat-media{align-self:end!important;justify-self:end!important;margin:0!important;padding:0!important}
  .compat-card-showcase .compat-media img{width:108px!important;max-height:128px!important}
  .compat-card-showcase .blob-a{width:118px!important;height:54px!important;left:-16px!important;bottom:-10px!important;opacity:.28!important}
  .compat-card-showcase .blob-b{width:88px!important;height:46px!important;right:88px!important;top:54px!important;opacity:.20!important}
  .compat-card-showcase .blob-c{width:44px!important;height:44px!important;right:52px!important;bottom:26px!important;opacity:.12!important}
}
@media(max-width:374px){
  .compat-card-showcase,.compat-card-showcase.first{grid-template-columns:minmax(0,1fr) 96px!important;min-height:202px!important;padding:15px 12px 13px 14px!important}
  .compat-card-showcase .compat-copy{padding-top:60px!important}
  .compat-card-showcase .cname{font-size:18px!important}
  .compat-card-showcase .reason{font-size:12px!important;max-width:14em!important}
  .compat-card-showcase .compat-media img{width:94px!important;max-height:112px!important}
  .compat-card-showcase .scribble-top{left:78px!important;right:36px!important;font-size:11px!important}
}



/* 20260923 all-character compatibility showcase */
.compat-card-showcase.theme-chameleon{background:linear-gradient(180deg,#f6fbf6,#eef8ef)!important;--blob:#cfe9cf}
.compat-card-showcase.theme-chameleon .rank-badge{background:linear-gradient(180deg,#86c76e,#5ea84c)!important;color:#fff}
.compat-card-showcase.theme-chameleon .compat-tags i{background:#deefd8!important;color:#3c6b36!important}
.compat-card-showcase.theme-chameleon .scribble{color:#5b9b4f!important}
.compat-card-showcase.theme-chameleon .blob{background:var(--blob)!important}
.compat-card-showcase.theme-chameleon .cname{color:#2d6b3e!important}

.compat-card-showcase.theme-guma{background:linear-gradient(180deg,#faf6f2,#f7f0ea)!important;--blob:#ead9c9}
.compat-card-showcase.theme-guma .rank-badge{background:linear-gradient(180deg,#b69a80,#96765f)!important;color:#fff}
.compat-card-showcase.theme-guma .compat-tags i{background:#efe2d6!important;color:#6c4f3d!important}
.compat-card-showcase.theme-guma .scribble{color:#916d52!important}
.compat-card-showcase.theme-guma .blob{background:var(--blob)!important}
.compat-card-showcase.theme-guma .cname{color:#6a4d3d!important}

.compat-card-showcase.theme-hari{background:linear-gradient(180deg,#fcfaf6,#faf4ef)!important;--blob:#eedfcf}
.compat-card-showcase.theme-hari .rank-badge{background:linear-gradient(180deg,#c69a7c,#a97858)!important;color:#fff}
.compat-card-showcase.theme-hari .compat-tags i{background:#f3e4d6!important;color:#80583e!important}
.compat-card-showcase.theme-hari .scribble{color:#ab7150!important}
.compat-card-showcase.theme-hari .blob{background:var(--blob)!important}
.compat-card-showcase.theme-hari .cname{color:#6f4d3c!important}

.compat-card-showcase.theme-cheetah{background:linear-gradient(180deg,#fff9f3,#fff3e3)!important;--blob:#f4d4a5}
.compat-card-showcase.theme-cheetah .rank-badge{background:linear-gradient(180deg,#f1b152,#d98d23)!important;color:#fff}
.compat-card-showcase.theme-cheetah .compat-tags i{background:#f6e1bc!important;color:#925c11!important}
.compat-card-showcase.theme-cheetah .scribble{color:#dd8820!important}
.compat-card-showcase.theme-cheetah .blob{background:var(--blob)!important}
.compat-card-showcase.theme-cheetah .cname{color:#955718!important}

.compat-card-showcase.theme-kurage{background:linear-gradient(180deg,#f8fcff,#f2f8ff)!important;--blob:#d7e7ff}
.compat-card-showcase.theme-kurage .rank-badge{background:linear-gradient(180deg,#8fc8ee,#69addd)!important;color:#fff}
.compat-card-showcase.theme-kurage .compat-tags i{background:#e1efff!important;color:#486ea6!important}
.compat-card-showcase.theme-kurage .scribble{color:#5c93c6!important}
.compat-card-showcase.theme-kurage .blob{background:var(--blob)!important}
.compat-card-showcase.theme-kurage .cname{color:#4369a0!important}

@media(max-width:679px){
  .compat-section--showcase{padding:26px 12px 24px!important;border-radius:30px!important}
  .compat-section--showcase .compat-heading{margin-bottom:16px!important}
  .compat-section--showcase .compat-heading h2{font-size:clamp(27px,7.8vw,34px)!important;line-height:1.14!important;letter-spacing:-.035em!important}
  .compat-section--showcase .compat-heading p{font-size:13px!important;line-height:1.6!important}
  .compat-rich-showcase{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  .compat-card-showcase,.compat-card-showcase.first{grid-template-columns:minmax(0,1fr) 112px!important;align-items:end!important;min-height:205px!important;padding:16px 14px 14px 16px!important;gap:8px!important;border-radius:28px!important}
  .compat-card-showcase .compat-copy{align-self:end!important;gap:7px!important;padding-top:62px!important}
  .compat-card-showcase .cname{font-size:20px!important;line-height:1.18!important;letter-spacing:-.035em!important;white-space:nowrap!important;word-break:keep-all!important}
  .compat-card-showcase .reason{max-width:15.5em!important;font-size:12.5px!important;line-height:1.55!important}
  .compat-card-showcase .compat-tags{gap:6px!important}
  .compat-card-showcase .compat-tags i{min-height:28px!important;padding:0 10px!important;font-size:11px!important}
  .compat-card-showcase .rank-badge{top:14px!important;left:14px!important;min-width:58px!important;height:58px!important;padding:0 11px!important}
  .compat-card-showcase .rank-badge b{font-size:31px!important}
  .compat-card-showcase .rank-badge small{font-size:17px!important;margin-top:7px!important}
  .compat-card-showcase .scribble-side,.compat-card-showcase .scribble-corner{display:none!important}
  .compat-card-showcase .scribble-top{display:block!important;top:24px!important;left:84px!important;right:42px!important;width:auto!important;font-size:12px!important;line-height:1.25!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;transform:none!important}
  .compat-card-showcase .compat-motif{top:16px!important;right:14px!important;width:17px!important;height:17px!important}
  .compat-card-showcase .compat-media{align-self:end!important;justify-self:end!important;margin:0!important;padding:0!important}
  .compat-card-showcase .compat-media img{width:108px!important;max-height:128px!important}
  .compat-card-showcase .blob-a{width:118px!important;height:54px!important;left:-16px!important;bottom:-10px!important;opacity:.28!important}
  .compat-card-showcase .blob-b{width:88px!important;height:46px!important;right:88px!important;top:54px!important;opacity:.20!important}
  .compat-card-showcase .blob-c{width:44px!important;height:44px!important;right:52px!important;bottom:26px!important;opacity:.12!important}
}
@media(max-width:374px){
  .compat-card-showcase,.compat-card-showcase.first{grid-template-columns:minmax(0,1fr) 96px!important;min-height:202px!important;padding:15px 12px 13px 14px!important}
  .compat-card-showcase .compat-copy{padding-top:60px!important}
  .compat-card-showcase .cname{font-size:18px!important}
  .compat-card-showcase .reason{font-size:12px!important;max-width:14em!important}
  .compat-card-showcase .compat-media img{width:94px!important;max-height:112px!important}
  .compat-card-showcase .scribble-top{left:78px!important;right:36px!important;font-size:11px!important}
}
