/* Terry Renewal R3 final - 2026-09-18. Unified public-site UI. */
:root{--tr-navy:#102b46;--tr-navy2:#193f63;--tr-blue:#2378b8;--tr-sky:#eaf6ff;--tr-gold:#d6a33a;--tr-green:#2e7c59;--tr-ink:#1d2a37;--tr-muted:#617083;--tr-line:#d5e0ea;--tr-bg:#f3f7fb;--tr-card:#fff;--tr-shadow:0 10px 30px rgba(25,57,85,.10);--tr-radius:16px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body.terry-renewal{margin:0;background:var(--tr-bg);color:var(--tr-ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;line-height:1.65;-webkit-text-size-adjust:100%}
body.terry-renewal a{color:#165f98;text-decoration-thickness:1px;text-underline-offset:2px}body.terry-renewal a:hover,body.terry-renewal a:focus{color:#9a4b00;text-decoration-thickness:2px}
.tr-wrap{width:min(1180px,calc(100% - 24px));margin:0 auto}.tr-topbar{position:sticky;top:0;z-index:50;background:rgba(12,36,58,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.12);box-shadow:0 4px 18px rgba(6,25,42,.16)}
.tr-topbar-inner{display:flex;align-items:center;gap:8px;min-height:58px}.tr-brand{display:inline-flex;align-items:center;gap:9px;margin-right:auto;color:#fff!important;text-decoration:none!important;font-weight:900;letter-spacing:.01em}.tr-brand-mark{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.35);border-radius:10px;background:linear-gradient(145deg,#37aee2,#1d5ca0);box-shadow:inset 0 0 0 2px rgba(255,255,255,.09)}.tr-brand-mark svg{width:21px;height:21px}.tr-brand-mark svg,.tr-search button svg{stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.tr-search button svg{width:18px;height:18px}.tr-brand small{display:block;font-size:10px;font-weight:700;color:#b9d4e8;letter-spacing:.08em}.tr-toplinks{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none}.tr-toplinks::-webkit-scrollbar{display:none}.tr-toplinks a{display:inline-flex;align-items:center;min-height:36px;padding:4px 10px;border:1px solid rgba(255,255,255,.18);border-radius:999px;color:#edf8ff!important;text-decoration:none!important;font-size:12px;font-weight:800;white-space:nowrap}.tr-toplinks a:hover{background:rgba(255,255,255,.12)}
.tr-hero{position:relative;isolation:isolate;overflow:hidden;min-height:440px;margin:14px auto 16px;border:1px solid #9fb9ce;border-radius:22px;background-image:linear-gradient(90deg,rgba(8,29,47,.92) 0%,rgba(10,41,65,.78) 32%,rgba(16,55,78,.20) 62%,rgba(16,55,78,.02) 100%),url('../img/top_back.png');background-image:linear-gradient(90deg,rgba(8,29,47,.92) 0%,rgba(10,41,65,.78) 32%,rgba(16,55,78,.20) 62%,rgba(16,55,78,.02) 100%),image-set(url('../img/top_back.webp') type('image/webp'),url('../img/top_back.png') type('image/png'));background-position:center;background-size:cover;box-shadow:0 16px 45px rgba(17,54,84,.20)}
.tr-hero-content{display:flex;flex-direction:column;justify-content:center;width:min(590px,62%);min-height:438px;padding:36px}.tr-kicker{display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:100%;min-height:29px;padding:4px 10px;border:1px solid rgba(255,255,255,.34);border-radius:999px;background:rgba(7,35,58,.52);color:#dff4ff;font-size:12px;font-weight:850}.tr-hero h1{margin:14px 0 10px;color:#fff;font-size:clamp(30px,4vw,49px);line-height:1.17;letter-spacing:.01em;text-shadow:0 2px 18px rgba(0,0,0,.35)}.tr-hero h1 span{display:block;color:#8fe5ff;font-size:.56em;letter-spacing:.08em;margin-bottom:6px}.tr-hero-lead{margin:0;max-width:570px;color:#eef8ff;font-size:15px;text-shadow:0 1px 10px rgba(0,0,0,.35)}
.tr-meta{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 0}.tr-meta span{display:inline-flex;align-items:center;min-height:31px;padding:4px 10px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(6,29,48,.68);color:#fff;font-size:12px;font-weight:800}.tr-meta .is-sp{border-color:#86d8ff;background:rgba(16,97,137,.72)}
.tr-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:18px;max-width:540px}.tr-search label{grid-column:1/-1;color:#fff;font-size:12px;font-weight:800}.tr-search input{min-width:0;height:48px;padding:0 13px;border:1px solid rgba(255,255,255,.58);border-radius:11px;background:rgba(255,255,255,.95);font-size:16px;color:#172331;box-shadow:0 4px 14px rgba(0,0,0,.12)}.tr-search button{display:inline-flex;align-items:center;gap:6px;height:48px;padding:0 16px;border:1px solid #f2c75c;border-radius:11px;background:linear-gradient(180deg,#ffe29a,#e8b746);color:#3d2b05;font-size:15px;font-weight:900;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.16)}
.tr-section{margin:16px 0}.tr-section-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:0 2px 9px}.tr-section-head h2{margin:0;color:#173a5c;font-size:1.3rem;line-height:1.3}.tr-section-head p{margin:0;color:var(--tr-muted);font-size:12px}.tr-purpose{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.tr-purpose a,.tr-guide-card{display:flex;flex-direction:column;min-width:0;min-height:132px;padding:14px;border:1px solid var(--tr-line);border-radius:14px;background:linear-gradient(180deg,#fff,#f8fbfe);box-shadow:0 4px 15px rgba(32,67,96,.07);text-decoration:none!important;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}.tr-purpose a:hover,.tr-guide-card:hover{transform:translateY(-2px);border-color:#8db4cf;box-shadow:0 10px 24px rgba(32,67,96,.13)}.tr-card-icon{display:grid;place-items:center;width:39px;height:39px;margin-bottom:10px;border-radius:11px;background:linear-gradient(145deg,#e8f7ff,#d4edfb);color:#176694;border:1px solid #c0dbea}.tr-card-icon svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tr-purpose strong,.tr-guide-card strong{color:#173f64;font-size:14px;line-height:1.35}.tr-purpose small,.tr-guide-card small{display:block;margin-top:5px;color:#68778a;font-size:11px;line-height:1.45}.tr-card-tag{margin-top:auto;padding-top:8px;color:#2a7655;font-size:10px;font-weight:850}
.tr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tr-panel{min-width:0;overflow:hidden;border:1px solid var(--tr-line);border-radius:var(--tr-radius);background:var(--tr-card);box-shadow:var(--tr-shadow)}.tr-panel.is-wide{grid-column:1/-1}.tr-panel-head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:linear-gradient(110deg,#123657,#1d4a70);color:#fff}.tr-panel-head .tr-card-icon{flex:0 0 36px;width:36px;height:36px;margin:0;border-color:rgba(255,255,255,.26);background:rgba(255,255,255,.12);color:#fff}.tr-panel-head h2{margin:0;font-size:1.05rem;line-height:1.35}.tr-panel-body{padding:13px}.tr-subhead{margin:10px 0 6px;color:#52657a;font-size:12px;font-weight:900;letter-spacing:.02em}.tr-link-list{list-style:none;margin:0;padding:0}.tr-link-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px 2px;border-bottom:1px solid #e8edf2}.tr-link-list li:last-child{border-bottom:0}.tr-link-list a{font-weight:800}.tr-link-list small{grid-column:1/-1;margin-top:-4px;color:#738092;font-size:11px}.tr-chips{display:flex;flex-wrap:wrap;gap:5px}.tr-chips a{display:inline-flex;align-items:center;justify-content:center;min-height:35px;min-width:38px;padding:4px 9px;border:1px solid #c5d4e0;border-radius:9px;background:#f7fafc;color:#24587e!important;text-decoration:none!important;font-size:12px;font-weight:800}.tr-chips a:hover{background:#e8f4fb;border-color:#8bb2ce}.tr-note{margin:9px 0 0;padding:10px 11px;border-left:4px solid #5a9ac3;border-radius:8px;background:#eef7fd;color:#41566a;font-size:12px}.tr-note.is-3ds{border-color:#d6a33a;background:#fff8e5}.tr-note.is-sp{border-color:#6e72c9;background:#f2f1ff}.tr-build{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;align-items:start;padding:8px 0;border-bottom:1px solid #e9edf2}.tr-build:last-child{border-bottom:0}.tr-score{display:inline-flex;align-items:center;justify-content:center;min-height:30px;border-radius:999px;border:1px solid #eccb93;background:#fff7e8;color:#9a5400;font-size:12px;font-weight:900}.tr-build a{font-weight:800;overflow-wrap:anywhere}
.tr-guide-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.tr-guide-card{min-height:164px}.tr-guide-card .tr-card-icon{background:linear-gradient(145deg,#f4efff,#e5dcfb);color:#63519d;border-color:#d6c9f0}.tr-guide-card:nth-child(2) .tr-card-icon{background:linear-gradient(145deg,#fff7df,#f9e8b2);color:#8e6508;border-color:#ead597}.tr-guide-card:nth-child(3) .tr-card-icon{background:linear-gradient(145deg,#eafaf0,#d6f0df);color:#2b7850;border-color:#bfe2cd}.tr-guide-card:nth-child(4) .tr-card-icon{background:linear-gradient(145deg,#edf5ff,#dceafd);color:#2f629b;border-color:#c8dcf2}
.tr-series{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.tr-series a{display:grid;grid-template-columns:43px minmax(0,1fr);grid-template-areas:"badge title" "badge desc";column-gap:8px;align-items:center;min-width:0;min-height:62px;padding:8px;border:1px solid #d6e0ea;border-radius:10px;background:#f9fbfd;text-decoration:none!important}.tr-series b{grid-area:badge;display:grid;place-items:center;width:43px;height:39px;border-radius:9px;background:#214b74;color:#fff;font-size:9px;letter-spacing:.04em}.tr-series span{grid-area:title;color:#173e63;font-size:12px;font-weight:900}.tr-series small{grid-area:desc;color:#738092;font-size:9.5px}.tr-footer{margin:20px 0 8px;padding:14px;border-top:1px solid #d7e0e8;color:#697687;text-align:center;font-size:11px}.tr-footer p{margin:4px 0}
.tr-breadcrumb{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin:12px 0 8px;color:#718094;font-size:11px}.tr-breadcrumb a{font-weight:700}.tr-article{overflow:hidden;border:1px solid var(--tr-line);border-radius:18px;background:#fff;box-shadow:var(--tr-shadow);margin-bottom:18px}.tr-article-hero{padding:22px;background:linear-gradient(135deg,#123657,#246b91);color:#fff}.tr-article-hero .tr-kicker{margin-bottom:10px}.tr-article-hero h1{margin:0 0 8px;font-size:clamp(24px,4vw,36px);line-height:1.3}.tr-article-hero p{margin:0;color:#d9ecf8;font-size:13px}.tr-article-body{padding:20px}.tr-article-body h2{margin:28px 0 10px;padding-left:10px;border-left:4px solid #2b7aa7;color:#173d61;font-size:1.35rem}.tr-article-body h3{margin:22px 0 8px;color:#234d70;font-size:1.08rem}.tr-article-body p{margin:8px 0}.tr-article-body ul,.tr-article-body ol{padding-left:1.35em}.tr-article-body li{margin:4px 0}.tr-table-wrap{overflow-x:auto;margin:10px 0 16px;border:1px solid #dbe3ea;border-radius:10px}.tr-table{width:100%;border-collapse:collapse;min-width:620px;background:#fff;font-size:12px}.tr-table th,.tr-table td{padding:9px 10px;border-bottom:1px solid #e2e8ee;border-right:1px solid #edf1f4;text-align:left;vertical-align:top}.tr-table th{background:#edf4f8;color:#234b6c;font-weight:900;white-space:nowrap}.tr-table tr:last-child td{border-bottom:0}.tr-callout{margin:13px 0;padding:12px 13px;border:1px solid #c9ddec;border-radius:10px;background:#f2f9fd;font-size:12px}.tr-callout strong{display:block;margin-bottom:4px;color:#1d567e}.tr-sp-check{margin:18px 0 4px;padding:14px;border:1px dashed #8d8dc7;border-radius:12px;background:#f7f6ff}.tr-sp-check strong{display:block;color:#525494}.tr-sp-check ul{margin-bottom:0}.tr-related-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:16px}.tr-related-links a{display:block;padding:9px 10px;border:1px solid #d3dde6;border-radius:9px;background:#fafcfd;text-decoration:none!important;font-size:12px;font-weight:800}
.tr-to-top{position:fixed;right:14px;bottom:14px;z-index:40;display:grid;place-items:center;width:44px;height:44px;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:#173b5e;color:#fff;box-shadow:0 5px 18px rgba(0,0,0,.2);font-size:20px;text-decoration:none!important;opacity:0;pointer-events:none;transform:translateY(8px);transition:.18s}.tr-to-top.is-visible{opacity:1;pointer-events:auto;transform:none}
@media(max-width:980px){.tr-purpose{grid-template-columns:repeat(3,minmax(0,1fr))}.tr-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tr-series{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.tr-wrap{width:min(100% - 12px,1180px)}.tr-topbar-inner{min-height:52px}.tr-brand{font-size:13px}.tr-brand small{display:none}.tr-toplinks a{min-height:34px;padding:4px 8px;font-size:11px}.tr-hero{min-height:390px;margin-top:6px;border-radius:15px;background-image:linear-gradient(180deg,rgba(6,26,43,.35) 0%,rgba(8,33,54,.53) 38%,rgba(7,31,51,.90) 100%),url('../img/top_back.png');background-image:linear-gradient(180deg,rgba(6,26,43,.35) 0%,rgba(8,33,54,.53) 38%,rgba(7,31,51,.90) 100%),image-set(url('../img/top_back.webp') type('image/webp'),url('../img/top_back.png') type('image/png'));background-position:61% center}.tr-hero-content{justify-content:flex-end;width:100%;min-height:388px;padding:22px 16px}.tr-hero h1{font-size:29px}.tr-hero-lead{font-size:13px}.tr-meta{gap:5px}.tr-meta span{min-height:27px;padding:3px 8px;font-size:10.5px}.tr-grid{grid-template-columns:1fr}.tr-panel.is-wide{grid-column:auto}.tr-purpose{grid-template-columns:repeat(2,minmax(0,1fr))}.tr-purpose a{min-height:124px;padding:12px}.tr-guide-grid{grid-template-columns:1fr 1fr}.tr-series{grid-template-columns:1fr 1fr}.tr-article-body{padding:15px}.tr-related-links{grid-template-columns:1fr}}
@media(max-width:430px){.tr-purpose{grid-template-columns:1fr 1fr}.tr-purpose a{min-height:119px}.tr-purpose small{font-size:10px}.tr-guide-grid{grid-template-columns:1fr}.tr-series{grid-template-columns:1fr}.tr-search{grid-template-columns:1fr}.tr-search label{grid-column:auto}.tr-search button{justify-content:center}.tr-section-head p{display:none}.tr-article-hero{padding:17px}.tr-article-body{padding:13px}.tr-table{font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.tr-purpose a,.tr-guide-card,.tr-to-top{transition:none}}


/* Terry Renewal Phase 2/3 - monster encyclopedia, builds and search */
body.terry-core{background:#eef3f7;color:var(--tr-ink);font-size:15px}body.terry-core .tr-topbar{margin:0}body.terry-core .tr-legacy-head{display:none!important}
body.terry-core #container{width:min(1180px,calc(100% - 24px))!important;max-width:none!important;margin:14px auto 0!important;padding:0!important;display:block!important;background:transparent!important}
body.terry-core #main{float:none!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;background:transparent!important}
body.terry-core #tbox,body.terry-core #box,body.terry-core #block{width:100%!important;max-width:none!important;margin:0 0 14px!important;padding:0!important;box-sizing:border-box!important}
body.terry-core #tbox>br:first-child,body.terry-core #main>br:first-child{display:none}body.terry-core #sidetop,body.terry-core #side{display:none!important}body.terry-core>div#block{display:none!important}
.tr-core-intro,.tr-monster-summary,.tr-build-summary,.tr-explorer{width:100%;margin:0 0 14px;border:1px solid var(--tr-line);border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(31,65,94,.08)}
.tr-core-intro{display:flex;align-items:center;gap:13px;padding:17px 18px}.tr-core-intro h1,.tr-monster-summary h1,.tr-build-summary h1{margin:0;color:#153b5d;font-size:clamp(22px,3vw,30px);line-height:1.25}.tr-core-intro p,.tr-build-summary p{margin:5px 0 0;color:#647386;font-size:13px}.tr-core-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:14px;background:linear-gradient(145deg,#e5f6ff,#d4ecfa);border:1px solid #c1dbe9;color:#176694}.tr-core-icon svg{width:27px;height:27px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tr-explorer{padding:15px}.tr-explorer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.tr-explorer-head strong{display:block;color:#173f64;font-size:17px}.tr-explorer-head small{display:block;color:#68778a;font-size:11px}.tr-mini-search{display:flex;gap:6px;min-width:min(420px,52%)}.tr-mini-search input{min-width:0;flex:1;height:40px;padding:0 11px;border:1px solid #b9cad8;border-radius:10px;background:#fff;font-size:14px}.tr-mini-search button,.tr-primary-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:40px;padding:0 12px;border:1px solid #a9c2d4;border-radius:10px;background:#173f64;color:#fff!important;text-decoration:none!important;font-weight:850;cursor:pointer}.tr-mini-search button svg,.tr-primary-action svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2}.tr-chip-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 0;border-top:1px solid #e8eef3}.tr-chip-row:first-of-type{border-top:0}.tr-chip-label{min-width:52px;color:#6b7888;font-size:11px;font-weight:900}.tr-chip-row a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:3px 10px;border:1px solid #cbd8e2;border-radius:999px;background:#f7fafc;color:#204f74!important;text-decoration:none!important;font-size:12px;font-weight:800}.tr-chip-row a:hover{background:#eaf5fc;border-color:#90b8d3}.tr-chip-row-tools a{background:#fff9ec;border-color:#ead7a6;color:#76551b!important}
.tr-monster-summary{padding:18px}.tr-monster-title{display:flex;align-items:center;gap:14px}.tr-monster-title small,.tr-build-summary small{display:block;color:#728091;font-size:11px;font-weight:800}.tr-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.tr-badges span{display:inline-flex;padding:3px 8px;border-radius:999px;background:#edf5fb;border:1px solid #cfe0eb;color:#2b5977;font-size:11px;font-weight:800}.tr-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-top:15px}.tr-stat-grid div{padding:9px 8px;border:1px solid #dbe5ed;border-radius:10px;background:linear-gradient(180deg,#fbfdff,#f2f7fb);text-align:center}.tr-stat-grid span{display:block;color:#6b7b8c;font-size:10px;font-weight:800}.tr-stat-grid strong{display:block;color:#173c5f;font-size:18px;line-height:1.2}.tr-jump{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}.tr-jump a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:4px 12px;border-radius:9px;background:#163d60;color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:850}
.tr-build-summary{display:flex;align-items:center;gap:13px;padding:17px 18px}.tr-build-summary p a{font-weight:800}.tr-build-explorer .tr-primary-action{white-space:nowrap}
body.terry-core #main table{border-collapse:separate!important;border-spacing:0!important;width:100%!important;max-width:100%;background:#fff;border:1px solid #d7e1e9;border-radius:12px;overflow:hidden;margin:0 0 13px!important;box-shadow:0 4px 14px rgba(31,65,94,.06)}
body.terry-core #main table th{padding:9px 8px!important;background:#1a4568!important;color:#fff!important;border:0!important;border-right:1px solid rgba(255,255,255,.12)!important;font-size:12px!important;line-height:1.35}body.terry-core #main table td{padding:8px!important;border:0!important;border-right:1px solid #e4ebf0!important;border-bottom:1px solid #e4ebf0!important;font-size:13px!important;line-height:1.5;background:#fff!important;vertical-align:middle}body.terry-core #main table tr:last-child td{border-bottom:0!important}body.terry-core #main table font{font-size:inherit!important}body.terry-core #main table h3{margin:0!important;font-size:14px!important}.terry-monster-detail #main #box>table>tbody>tr:first-child>td,.terry-build-detail #main #box>table>tbody>tr:first-child>td{background:linear-gradient(105deg,#123657,#1e527c)!important;color:#fff!important}.terry-monster-detail #main #box>table>tbody>tr:first-child a,.terry-build-detail #main #box>table>tbody>tr:first-child a{color:#fff!important}
body.terry-core #main input[type=text],body.terry-core #main input[type=search],body.terry-core #main select,body.terry-core #main textarea{max-width:100%;padding:8px 9px;border:1px solid #b9c9d6;border-radius:8px;background:#fff;font-size:16px}body.terry-core #main input[type=submit],body.terry-core #main button{min-height:38px;padding:6px 12px;border:1px solid #9db8cb;border-radius:8px;background:#174d75;color:#fff;font-weight:800}
.tr-search-form{max-width:700px;margin:0 0 14px;padding:16px;border:1px solid var(--tr-line);border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(31,65,94,.07)}.tr-search-form label{display:block;margin-bottom:6px;color:#34546d;font-size:12px;font-weight:900}.tr-search-form>div{display:flex;gap:7px}.tr-search-form input{flex:1;min-width:0;height:44px}.tr-search-form button{height:44px;min-width:82px}
body.terry-core #footersab,body.terry-core>table:last-of-type{width:min(1180px,calc(100% - 24px))!important;margin:14px auto!important}body.terry-core #footersab table,body.terry-core>table:last-of-type{box-shadow:none!important}
body.terry-core #side{box-shadow:0 6px 20px rgba(31,65,94,.08)}body.terry-core #side h3{background:#173f64!important;color:#fff!important;border-radius:7px;padding:6px 8px!important}body.terry-core #side table{box-shadow:none!important;border-radius:8px!important}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:900px){.tr-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tr-explorer-head{align-items:stretch;flex-direction:column}.tr-mini-search{min-width:0;width:100%}}
@media(max-width:720px){body.terry-core #container{width:min(100% - 12px,720px)!important;margin-top:8px!important}body.terry-core #side,body.terry-core #sidetop{display:none!important}body.terry-core #main{width:100%!important}.tr-core-intro,.tr-monster-summary,.tr-build-summary,.tr-explorer{margin-bottom:9px;border-radius:12px}.tr-core-intro,.tr-monster-summary,.tr-build-summary{padding:13px}.tr-core-icon{flex-basis:42px;width:42px;height:42px;border-radius:11px}.tr-core-icon svg{width:23px;height:23px}.tr-core-intro h1,.tr-monster-summary h1,.tr-build-summary h1{font-size:21px}.tr-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.tr-stat-grid div{padding:7px 4px}.tr-stat-grid strong{font-size:16px}.tr-jump a{flex:1;min-width:58px;padding:4px 7px}.tr-chip-row{gap:5px}.tr-chip-label{width:100%;min-width:0;margin-bottom:1px}.tr-chip-row a{min-height:36px;padding:4px 11px}.tr-primary-action{width:100%}.tr-mini-search{display:grid;grid-template-columns:1fr auto}.tr-mini-search input,.tr-mini-search button{height:44px}.tr-responsive-table{border:0!important;background:transparent!important;box-shadow:none!important}.tr-responsive-table thead{display:none}.tr-responsive-table tbody,.tr-responsive-table tr{display:block!important;width:100%!important}.tr-responsive-table tr{margin-bottom:8px!important;border:1px solid #d2dfe8!important;border-radius:12px!important;overflow:hidden;background:#fff!important;box-shadow:0 3px 12px rgba(31,65,94,.06)}.tr-responsive-table td{display:grid!important;grid-template-columns:minmax(76px,31%) minmax(0,1fr)!important;gap:8px!important;width:100%!important;min-height:38px!important;padding:7px 9px!important;border-right:0!important;border-bottom:1px solid #e6edf2!important;overflow-wrap:anywhere}.tr-responsive-table td::before{content:attr(data-label);color:#617286;font-size:10px;font-weight:900;align-self:center}.tr-responsive-table td:last-child{border-bottom:0!important}.tr-responsive-table td[colspan]{grid-template-columns:1fr!important}.tr-responsive-table td[colspan]::before{display:none}.tr-responsive-table td a{font-weight:800}.tr-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-bottom:12px}.tr-table-scroll>table{min-width:620px!important}body.terry-core #main table:not(.tr-responsive-table){font-size:12px!important}body.terry-core #main table:not(.tr-responsive-table) td{padding:7px 5px!important}.tr-search-form{padding:12px}.tr-search-form>div{display:grid;grid-template-columns:1fr auto}}
@media(max-width:390px){.tr-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tr-monster-title{align-items:flex-start}.tr-core-icon{flex-basis:38px;width:38px;height:38px}.tr-jump a{font-size:11px}}


/* R3: legacy chart/database/guide/form unification */
.tr-r3-skip{position:fixed;left:8px;top:-60px;z-index:9999;padding:9px 13px;border-radius:0 0 8px 8px;background:#fff;color:#123b5d!important;font-weight:900;text-decoration:none!important;box-shadow:0 5px 15px rgba(0,0,0,.18)}.tr-r3-skip:focus{top:0}
.tr-r3-anchor{position:relative;top:-72px}.tr-r3-breadcrumb{margin:12px 0 8px;color:#66778a;font-size:11px}.tr-r3-breadcrumb ol{display:flex;flex-wrap:wrap;align-items:center;gap:4px;list-style:none;margin:0;padding:0}.tr-r3-breadcrumb li{display:flex;align-items:center}.tr-r3-breadcrumb li+li::before{content:"\203A";margin:0 5px;color:#9aa8b6}.tr-r3-breadcrumb a{font-weight:800}.tr-r3-breadcrumb span{color:#68778b}
.tr-r3-context-nav{display:flex;gap:6px;overflow-x:auto;margin:-3px 0 14px;padding:2px 0 4px;scrollbar-width:none}.tr-r3-context-nav::-webkit-scrollbar{display:none}.tr-r3-context-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:5px 12px;border:1px solid #c8d8e4;border-radius:999px;background:#fff;color:#1f567e!important;text-decoration:none!important;font-size:12px;font-weight:850;white-space:nowrap;box-shadow:0 2px 8px rgba(28,66,96,.05)}.tr-r3-context-nav a:hover,.tr-r3-context-nav a.is-current{border-color:#77a9ca;background:#eaf5fb;color:#174c72!important}
body.terry-r3>table:first-of-type{display:none!important}body.terry-r3 #footersab{display:none!important}body.terry-r3 #container{padding-top:0!important}body.terry-r3 #main{min-width:0}body.terry-r3 #main img{max-width:100%;height:auto}body.terry-r3 #main iframe{max-width:100%}body.terry-r3 #main font{font-size:inherit!important}body.terry-r3 #main a{overflow-wrap:anywhere}
body.terry-r3 #main #block{width:100%!important;max-width:none!important;margin:0 0 13px!important;padding:0!important}body.terry-r3 #main .divopen{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0 0 8px;padding:9px 12px;border:1px solid #153b5d;border-radius:11px;background:linear-gradient(105deg,#123657,#1e527c)!important;color:#fff!important;font-weight:900;cursor:pointer;box-shadow:0 4px 12px rgba(24,63,94,.10)}body.terry-r3 #main .divopen:focus{outline:3px solid #98d9f5;outline-offset:2px}
body.terry-r3 #main td[bgcolor="#333344"],body.terry-r3 #main td[bgcolor="#111122"],body.terry-r3 #main td[bgcolor="#666666"]{background:linear-gradient(105deg,#123657,#1e527c)!important;color:#fff!important;font-weight:850}body.terry-r3 #main td[bgcolor="#333344"] a,body.terry-r3 #main td[bgcolor="#111122"] a,body.terry-r3 #main td[bgcolor="#666666"] a,body.terry-r3 #main td[bgcolor="#333344"] font,body.terry-r3 #main td[bgcolor="#111122"] font,body.terry-r3 #main td[bgcolor="#666666"] font{color:#fff!important}
body.terry-r3 #main td[bgcolor="#efefff"],body.terry-r3 #main td[bgcolor="#f6f6f9"],body.terry-r3 #main td[bgcolor="#efefef"],body.terry-r3 #main td[bgcolor="#e6e6e6"]{background:#f4f8fb!important}body.terry-r3 #main table tr.point td{background:#fff6db!important}
body.terry-r3 #main>p,body.terry-r3 #main>#block>p{padding:0 3px}.tr-r3-footer-wrap{width:min(1180px,calc(100% - 24px));margin:0 auto}.tr-r3-footer{margin-top:22px!important}.terry-r3-build-form #main form{padding:13px;border:1px solid #d6e2ea;border-radius:12px;background:#fff}.terry-r3-build-form #main textarea{width:100%;min-height:110px}.terry-r3-build-form #main input[type=radio],.terry-r3-build-form #main input[type=checkbox]{width:18px;height:18px;vertical-align:middle}
.terry-r3-chart #main table img{display:block;margin:0 auto;border-radius:8px}.terry-r3-chart #main table a{font-weight:750}.terry-r3-chart #main>div#block:first-of-type table{box-shadow:0 6px 18px rgba(31,65,94,.08)}
.terry-r3-skill #main table:first-of-type,.terry-r3-ability #main table:first-of-type,.terry-r3-trait #main table:first-of-type,.terry-r3-weapon #main table:first-of-type,.terry-r3-item #main table:first-of-type{margin-top:2px!important}
@media(max-width:720px){.tr-r3-breadcrumb{margin:8px 2px 6px}.tr-r3-context-nav{margin-bottom:9px;padding-bottom:3px}.tr-r3-context-nav a{min-height:38px;padding:5px 11px}.terry-r3-chart #main table{font-size:12px!important}.terry-r3-chart #main table td{padding:7px 6px!important}.terry-r3-build-form #main form{padding:9px}.tr-r3-footer-wrap{width:calc(100% - 12px)}}

@media(max-width:720px){.terry-build-list .tr-responsive-table tr.tr-mobile-parent{margin-bottom:0!important;border-radius:12px 12px 0 0!important;box-shadow:0 2px 8px rgba(31,65,94,.05)!important}.terry-build-list .tr-responsive-table tr.tr-mobile-subrow{margin-top:-1px!important;border-radius:0 0 12px 12px!important;border-top:0!important;background:#fbfdff!important}.terry-build-list .tr-responsive-table tr.tr-mobile-subrow td{display:block!important;min-height:0!important;padding:8px 12px!important;background:#fbfdff!important;color:#34495d}.terry-build-list .tr-responsive-table tr.tr-mobile-subrow+tr{margin-top:8px!important}
}


/* R3.1 visual polish: colorful anime-style icon system + breeding pedigree */
:root{--tr-cyan:#59d7ff;--tr-mint:#6fe2c0;--tr-purple:#8069e8;--tr-pink:#ff83bd;--tr-orange:#ff9c62;--tr-yellow:#ffd45f;--tr-deep:#153d63}
.tr-ico{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 1px 1px rgba(21,61,99,.12))}.tr-ico *{vector-effect:non-scaling-stroke}
.tr-brand-mark{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#eafaff,#b8ebff 52%,#9fd8ff);border-color:rgba(255,255,255,.72);box-shadow:0 4px 12px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.8)}.tr-brand-mark svg{width:30px;height:30px}
.tr-topbar{background:linear-gradient(90deg,rgba(15,49,77,.98),rgba(17,73,92,.98) 55%,rgba(32,68,100,.98));border-bottom:2px solid rgba(255,210,89,.75)}
.tr-toplinks a{gap:6px;min-height:42px;padding:5px 12px;border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.055);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}.tr-toplinks a:hover{background:rgba(255,255,255,.14);border-color:rgba(255,222,132,.55)}.tr-nav-icon{display:grid;place-items:center;width:23px;height:23px;flex:0 0 23px}.tr-nav-icon svg{width:23px;height:23px}
.tr-card-icon{position:relative;width:54px;height:54px;margin-bottom:11px;border-radius:16px;background:linear-gradient(145deg,#fff,#eaf8ff 65%,#dff1ff);border:1px solid #b9d9ea;box-shadow:0 6px 14px rgba(31,91,130,.13),inset 0 1px 0 #fff;overflow:visible}.tr-card-icon::after{content:"";position:absolute;right:-4px;top:-4px;width:12px;height:12px;background:radial-gradient(circle,#fff 0 18%,#ffd45f 22% 48%,transparent 52%);filter:drop-shadow(0 1px 2px rgba(100,70,10,.18))}.tr-card-icon svg{width:36px;height:36px}
.tr-purpose{gap:12px}.tr-purpose a{position:relative;min-height:160px;padding:16px;background:radial-gradient(circle at 92% 8%,rgba(89,215,255,.18),transparent 34%),linear-gradient(180deg,#fff,#f8fbfe);overflow:hidden}.tr-purpose a:nth-child(2){background:radial-gradient(circle at 92% 8%,rgba(255,131,189,.19),transparent 34%),linear-gradient(180deg,#fff,#fff9fc)}.tr-purpose a:nth-child(3){background:radial-gradient(circle at 92% 8%,rgba(128,105,232,.18),transparent 34%),linear-gradient(180deg,#fff,#faf9ff)}.tr-purpose a:nth-child(4){background:radial-gradient(circle at 92% 8%,rgba(111,226,192,.20),transparent 34%),linear-gradient(180deg,#fff,#f8fffc)}.tr-purpose a:nth-child(5){background:radial-gradient(circle at 92% 8%,rgba(255,212,95,.23),transparent 34%),linear-gradient(180deg,#fff,#fffdf7)}.tr-purpose a::after{content:"";position:absolute;width:48px;height:48px;right:-20px;bottom:-20px;border-radius:50%;border:9px solid rgba(89,215,255,.10)}
.tr-purpose strong,.tr-guide-card strong{font-size:15px}.tr-card-tag{font-weight:900}.tr-section-head h2{display:flex;align-items:center;gap:8px}.tr-section-head h2::before{content:"";width:13px;height:13px;flex:0 0 13px;clip-path:polygon(50% 0,61% 38%,100% 50%,61% 62%,50% 100%,39% 62%,0 50%,39% 38%);background:linear-gradient(135deg,#ffd65e,#ff8f6c);box-shadow:0 2px 6px rgba(167,106,20,.2)}
.tr-panel-head{background:linear-gradient(105deg,#123657,#1d5a7c 64%,#246f8b);border-bottom:1px solid rgba(255,255,255,.12)}.tr-panel-head .tr-card-icon{width:44px;height:44px;flex-basis:44px;border-radius:13px;background:linear-gradient(145deg,#fff,#dff7ff);border-color:rgba(255,255,255,.6);box-shadow:0 4px 10px rgba(0,0,0,.18)}.tr-panel-head .tr-card-icon svg{width:30px;height:30px}.tr-panel-head .tr-card-icon::after{width:9px;height:9px;right:-3px;top:-3px}
.tr-guide-card{position:relative;min-height:184px;overflow:hidden}.tr-guide-card::after{content:"";position:absolute;right:-18px;bottom:-20px;width:70px;height:70px;border-radius:50%;background:radial-gradient(circle,rgba(128,105,232,.12),transparent 67%);pointer-events:none}.tr-guide-card .tr-card-icon{width:56px;height:56px}.tr-guide-card .tr-card-icon svg{width:38px;height:38px}.tr-guide-card:nth-child(2)::after{background:radial-gradient(circle,rgba(255,156,98,.14),transparent 67%)}.tr-guide-card:nth-child(3)::after{background:radial-gradient(circle,rgba(111,226,192,.14),transparent 67%)}.tr-guide-card:nth-child(4)::after{background:radial-gradient(circle,rgba(89,215,255,.14),transparent 67%)}
.tr-link-list li{position:relative;padding-left:22px}.tr-link-list li::before{content:"";position:absolute;left:3px;top:15px;width:10px;height:10px;border-radius:50%;background:linear-gradient(135deg,#65dfc3,#55bce7);box-shadow:0 0 0 4px rgba(101,223,195,.11)}
.tr-rank-chips a:nth-child(1){background:#edf2f5;border-color:#b7c4cc;color:#53616a!important}.tr-rank-chips a:nth-child(2){background:#fff0e8;border-color:#e4b696;color:#9b5b33!important}.tr-rank-chips a:nth-child(3){background:#e8f8ee;border-color:#92d3aa;color:#28774b!important}.tr-rank-chips a:nth-child(4){background:#e4f7ff;border-color:#83c8e1;color:#237192!important}.tr-rank-chips a:nth-child(5){background:#e8f0ff;border-color:#87a9df;color:#325f9f!important}.tr-rank-chips a:nth-child(6){background:#efe8ff;border-color:#aa91e2;color:#6847b5!important}.tr-rank-chips a:nth-child(7){background:#fff1bf;border-color:#dfbd54;color:#8f6600!important}.tr-rank-chips a:nth-child(8){background:linear-gradient(135deg,#fff0a8,#ffc5d9);border-color:#d789a8;color:#9d365e!important;box-shadow:0 2px 8px rgba(189,94,130,.15)}
.tr-family-chips a:nth-child(1){background:#e9f8ff}.tr-family-chips a:nth-child(2){background:#fff0ea}.tr-family-chips a:nth-child(3){background:#fff7db}.tr-family-chips a:nth-child(4){background:#ebfaee}.tr-family-chips a:nth-child(5){background:#f5edff}.tr-family-chips a:nth-child(6){background:#eef7f5}.tr-family-chips a:nth-child(7){background:#f0f2f5}.tr-family-chips a:nth-child(8){background:#fff0f5}
.tr-core-icon{width:56px;height:56px;flex-basis:56px;border-radius:16px;background:linear-gradient(145deg,#fff,#dff6ff);border:1px solid #b8dcea;box-shadow:0 6px 15px rgba(36,96,134,.13)}.tr-core-icon svg{width:38px;height:38px}
.tr-r3-context-nav a{gap:6px}.tr-nav-mini{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px}.tr-nav-mini svg{width:22px;height:22px}

/* Monster icon future-proofing */
.tr-monster-art{display:grid;place-items:center;width:68px;height:68px;flex:0 0 68px;border-radius:15px;background:radial-gradient(circle at 34% 25%,#fff 0 10%,#e6f8ff 25%,#cbefff 65%,#b7ddf5);border:1px solid #afcfdf;box-shadow:0 5px 13px rgba(31,83,116,.13),inset 0 1px 0 #fff;overflow:hidden}.tr-monster-art img{display:block;width:100%;height:100%;object-fit:contain}.tr-monster-art svg{width:45px;height:45px}.tr-monster-art.is-small{width:50px;height:50px;flex-basis:50px;border-radius:12px}.tr-monster-art.is-small svg{width:34px;height:34px}.tr-monster-art.is-child{width:76px;height:76px;flex-basis:76px}.tr-monster-art.is-child svg{width:50px;height:50px}.tr-monster-art.is-family{background:linear-gradient(145deg,#fff1fb,#e9e5ff)}.tr-monster-art.is-token{background:linear-gradient(145deg,#fffbe4,#ffefd0)}

/* DQM2-inspired breeding pedigree */
.tr-breed-section{margin:4px 0 16px;border:1px solid #c9d9e5;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(29,65,94,.09);overflow:hidden}.tr-breed-titlebar{display:flex;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(105deg,#123657,#1e5c80 67%,#2a718d);color:#fff}.tr-breed-titlebar .tr-card-icon{margin:0;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:linear-gradient(145deg,#fff,#e8f8ff)}.tr-breed-titlebar .tr-card-icon svg{width:31px;height:31px}.tr-breed-titlebar small{display:block;color:#aee8ff;font-size:10px;font-weight:900;letter-spacing:.13em}.tr-breed-titlebar h2{margin:1px 0 0;color:#fff;font-size:19px;line-height:1.2}.tr-breed-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;background:#f5f9fc;border-bottom:1px solid #dde7ee}.tr-breed-facts>div{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:7px 10px;border:1px solid #cfdeea;border-radius:11px;background:#fff;color:#476076;font-size:12px;font-weight:800}.tr-breed-facts strong{display:inline-grid;place-items:center;min-width:34px;height:28px;padding:0 8px;border-radius:999px;font-size:14px}.tr-breed-facts strong.is-yes{background:#e8f8ef;color:#23764d;border:1px solid #a8dec0}.tr-breed-facts strong.is-no{background:#fff0f0;color:#a54b51;border:1px solid #efbdc1}
.tr-breed-kind{padding:13px 12px 15px;border-bottom:1px solid #e2e9ef}.tr-breed-kind.is-special{background:linear-gradient(180deg,#fffafd,#fff)}.tr-breed-kind.is-rank{background:linear-gradient(180deg,#f9fcff,#fff)}.tr-breed-kind-head{display:flex;align-items:center;gap:9px;margin-bottom:8px;padding:8px 10px;border-radius:10px;background:#f8edf1;color:#6e3747}.tr-breed-kind.is-rank .tr-breed-kind-head{background:#eef4fb;color:#315c84}.tr-kind-icon{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px}.tr-kind-icon svg{width:28px;height:28px}.tr-breed-kind-head h3{margin:0;font-size:14px;line-height:1.3}.tr-breed-kind-head p{margin:2px 0 0;color:#6b7784;font-size:10px}
.tr-pedigree{margin:10px 0 4px;padding:12px 8px 10px;border:1px solid #d6e1e9;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(31,65,94,.05);text-align:center}.tr-pedigree+.tr-pedigree{margin-top:12px}.tr-pedigree-parents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:start;max-width:660px;margin:0 auto}.tr-pedigree[data-parent-count="4"] .tr-pedigree-parents{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:920px}.tr-pedigree-parent{position:relative;min-width:0;padding-bottom:13px}.tr-pedigree-parent:not(:last-child)::before{content:"\00D7";position:absolute;z-index:2;right:-19px;top:35px;width:11px;color:#536476;font-size:22px;font-weight:900;line-height:1}.tr-pedigree[data-parent-count="4"] .tr-pedigree-parent:not(:last-child)::before{right:-13px;font-size:18px}.tr-pedigree-parent::after{content:"";position:absolute;left:50%;bottom:0;height:13px;border-left:2px solid #9baabd}.tr-pedigree-node{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:3px!important;min-width:0!important;max-width:210px!important;margin:0 auto!important;padding:4px!important;border:0!important;background:transparent!important;color:#174f77!important;text-decoration:none!important}.tr-pedigree-name{display:block;max-width:100%;font-size:14px;font-weight:900;line-height:1.25;overflow-wrap:anywhere}.tr-pedigree-meta,.tr-pedigree-order{display:block;max-width:100%;font-size:10px;line-height:1.25;color:#667487}.tr-pedigree-meta b{color:#a33d5b}.tr-pedigree-merge{position:relative;height:35px;max-width:660px;margin:0 auto}.tr-pedigree-merge::before{content:"";position:absolute;top:0;left:25%;right:25%;border-top:2px solid #9baabd}.tr-pedigree[data-parent-count="4"] .tr-pedigree-merge{max-width:920px}.tr-pedigree[data-parent-count="4"] .tr-pedigree-merge::before{left:12.5%;right:12.5%}.tr-pedigree-merge::after{content:"";position:absolute;top:0;bottom:10px;left:50%;border-left:2px solid #9baabd}.tr-pedigree-merge span{position:absolute;z-index:2;left:50%;bottom:-1px;transform:translateX(-50%);padding:0 6px;background:#fff;color:#6a63cc;font-size:21px;font-weight:900;line-height:1}.tr-pedigree-child{display:flex;justify-content:center;max-width:280px;margin:0 auto;padding:8px 8px 7px;border:1px solid #a8dbc2;border-radius:14px;background:linear-gradient(180deg,#effcf5,#e7f9ef);box-shadow:0 4px 12px rgba(42,123,84,.08)}.tr-pedigree-child .tr-pedigree-name{font-size:15px;color:#1e6750}.tr-pedigree-child .tr-pedigree-node{max-width:240px}.tr-breed-empty{margin:8px 0;padding:12px;border:1px dashed #cbd7df;border-radius:10px;background:#fafcfd;color:#677585;text-align:center;font-size:12px}.tr-breed-empty.is-compact{grid-column:1/-1;margin:0}
.tr-breed-uses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;background:#f6f9fc}.tr-breed-use-section{min-width:0;padding:10px;border:1px solid #d6e1e9;border-radius:13px;background:#fff}.tr-breed-use-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}.tr-breed-use-head>span{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px}.tr-breed-use-head svg{width:28px;height:28px}.tr-breed-use-head h3{margin:0;color:#294f70;font-size:13px}.tr-breed-use-head p{margin:1px 0 0;color:#748191;font-size:9px}.tr-breed-use-grid{display:grid;gap:6px}.tr-breed-use-card{display:grid;grid-template-columns:50px minmax(0,1fr) 18px;gap:8px;align-items:center;min-width:0;padding:7px;border:1px solid #e0e7ed;border-radius:10px;background:#fbfdff;color:#244d6e!important;text-decoration:none!important}.tr-breed-use-card:hover{background:#f0f8fd;border-color:#9fc7de}.tr-breed-use-card>span:nth-child(2){min-width:0}.tr-breed-use-card strong{display:block;overflow-wrap:anywhere;font-size:12px}.tr-breed-use-card small{display:block;margin-top:2px;color:#718091;font-size:9px}.tr-breed-use-card small b{color:#9d3e59}.tr-breed-use-card i{color:#4d86ad;font-size:20px;font-style:normal}.tr-breed-guide-link{display:grid;grid-template-columns:34px minmax(0,1fr) 20px;gap:8px;align-items:center;margin:0;padding:11px 14px;border-top:1px solid #dce5eb;background:linear-gradient(90deg,#f7fbff,#effaf5);text-decoration:none!important}.tr-breed-guide-link>span{display:grid;place-items:center;width:34px;height:34px}.tr-breed-guide-link svg{width:30px;height:30px}.tr-breed-guide-link strong{color:#205a75;font-size:13px}.tr-breed-guide-link i{color:#4f83a7;font-size:23px;font-style:normal}
@media(max-width:720px){.tr-brand-mark{width:40px;height:40px;flex-basis:40px}.tr-toplinks a{min-height:40px;padding:4px 9px}.tr-nav-icon{width:21px;height:21px;flex-basis:21px}.tr-nav-icon svg{width:21px;height:21px}.tr-purpose{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tr-purpose a{min-height:148px}.tr-purpose a:last-child{grid-column:1/-1}.tr-card-icon{width:50px;height:50px}.tr-card-icon svg{width:34px;height:34px}.tr-core-icon{width:50px;height:50px;flex-basis:50px}.tr-core-icon svg{width:34px;height:34px}.tr-r3-context-nav a{padding:5px 9px}.tr-nav-mini{width:20px;height:20px;flex-basis:20px}.tr-nav-mini svg{width:20px;height:20px}.tr-breed-titlebar{padding:11px 12px}.tr-breed-facts{padding:8px}.tr-breed-kind{padding:10px 8px 12px}.tr-pedigree{padding:9px 3px}.tr-pedigree-parents{gap:18px}.tr-pedigree-parent:not(:last-child)::before{right:-13px;top:31px;font-size:19px}.tr-pedigree[data-parent-count="4"] .tr-pedigree-parents{gap:7px}.tr-pedigree[data-parent-count="4"] .tr-pedigree-parent:not(:last-child)::before{right:-7px;top:26px;font-size:14px}.tr-pedigree[data-parent-count="4"] .tr-monster-art{width:48px;height:48px;flex-basis:48px;border-radius:10px}.tr-pedigree[data-parent-count="4"] .tr-monster-art svg{width:31px;height:31px}.tr-pedigree[data-parent-count="4"] .tr-pedigree-name{font-size:10px}.tr-pedigree[data-parent-count="4"] .tr-pedigree-meta,.tr-pedigree[data-parent-count="4"] .tr-pedigree-order{font-size:8px}.tr-pedigree-name{font-size:12px}.tr-monster-art{width:60px;height:60px;flex-basis:60px}.tr-monster-art svg{width:40px;height:40px}.tr-monster-art.is-child{width:68px;height:68px;flex-basis:68px}.tr-breed-uses{grid-template-columns:1fr;padding:8px}.tr-breed-use-section{padding:8px}}
@media(max-width:390px){.tr-purpose{grid-template-columns:1fr}.tr-purpose a:last-child{grid-column:auto}.tr-purpose a{min-height:132px}.tr-pedigree[data-parent-count="4"] .tr-monster-art{width:42px;height:42px;flex-basis:42px}.tr-pedigree[data-parent-count="4"] .tr-pedigree-name{font-size:9px}.tr-pedigree[data-parent-count="4"] .tr-pedigree-parent:not(:last-child)::before{right:-6px}}


/* R3.2 readability, rank badges, weapons, footer and resistance index */
.tr-rank-badge{display:inline-flex!important;align-items:center;justify-content:center;gap:4px;min-width:30px;min-height:25px;padding:2px 8px;border:1px solid transparent;border-radius:999px;font-size:12px!important;font-weight:950!important;line-height:1!important;letter-spacing:.02em;vertical-align:middle;box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 2px 5px rgba(31,55,82,.12);text-shadow:none!important;-webkit-text-fill-color:currentColor!important}.tr-rank-badge .tr-rank-word{font-size:8px;font-weight:900;opacity:.72;letter-spacing:.07em}.tr-rank-badge b{font:inherit!important;color:inherit!important}
.tr-rank-f{background:linear-gradient(145deg,#f7fafc,#dbe4ea);border-color:#aab8c2;color:#455765!important}.tr-rank-e{background:linear-gradient(145deg,#fff7ef,#f2c4a5);border-color:#d89568;color:#814721!important}.tr-rank-d{background:linear-gradient(145deg,#effff4,#9fe0b8);border-color:#5cb47d;color:#17643a!important}.tr-rank-c{background:linear-gradient(145deg,#effcff,#9cdff0);border-color:#58b2cc;color:#155e77!important}.tr-rank-b{background:linear-gradient(145deg,#f1f6ff,#9dbcf0);border-color:#5d89ce;color:#224f91!important}.tr-rank-a{background:linear-gradient(145deg,#f8f2ff,#c1a1f2);border-color:#8b66cf;color:#5f34a3!important}.tr-rank-s{background:linear-gradient(145deg,#fffce8,#ffd45f 55%,#f2ab31);border-color:#d69418;color:#765000!important}.tr-rank-ss{background:linear-gradient(125deg,#ffe8f3,#ffd65c 42%,#ff9eca 72%,#b8a2ff);border-color:#cf719d;color:#7b2853!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 2px 7px rgba(190,81,135,.22)}
.tr-pedigree-meta .tr-rank-badge,.tr-breed-use-card .tr-rank-badge{min-width:25px;min-height:20px;padding:2px 6px;font-size:10px!important}.tr-badges>.tr-rank-badge{min-height:31px;padding:3px 10px}

/* Legacy dark header rows/cells must keep their background even though the core table reset uses white cells. */
body.terry-core #main tr[bgcolor="#333344"]>td,body.terry-core #main tr[bgcolor="#111122"]>td,body.terry-core #main tr[bgcolor="#666666"]>td,body.terry-core #main tr[bgcolor="#444444"]>td,body.terry-core #main tr[bgcolor="#44444c"]>td,body.terry-core #main tr[bgcolor="#334455"]>td,body.terry-core #main tr[bgcolor="#666677"]>td,body.terry-core #main tr[bgcolor="#333333"]>td,body.terry-core #main td[bgcolor="#333344"],body.terry-core #main td[bgcolor="#111122"],body.terry-core #main td[bgcolor="#666666"],body.terry-core #main td[bgcolor="#444444"],body.terry-core #main td[bgcolor="#44444c"],body.terry-core #main td[bgcolor="#334455"],body.terry-core #main td[bgcolor="#666677"],body.terry-core #main td[bgcolor="#333333"],body.terry-r3 #main tr[bgcolor="#333344"]>td,body.terry-r3 #main tr[bgcolor="#111122"]>td,body.terry-r3 #main tr[bgcolor="#666666"]>td,body.terry-r3 #main tr[bgcolor="#444444"]>td,body.terry-r3 #main tr[bgcolor="#44444c"]>td,body.terry-r3 #main tr[bgcolor="#334455"]>td,body.terry-r3 #main tr[bgcolor="#666677"]>td,body.terry-r3 #main tr[bgcolor="#333333"]>td{background:linear-gradient(105deg,#123657,#1e527c)!important;color:#fff!important}
body.terry-core #main tr[bgcolor="#333344"]>td font,body.terry-core #main tr[bgcolor="#111122"]>td font,body.terry-core #main tr[bgcolor="#666666"]>td font,body.terry-core #main tr[bgcolor="#444444"]>td font,body.terry-core #main tr[bgcolor="#44444c"]>td font,body.terry-core #main tr[bgcolor="#334455"]>td font,body.terry-core #main tr[bgcolor="#666677"]>td font,body.terry-core #main tr[bgcolor="#333333"]>td font,body.terry-r3 #main tr[bgcolor="#333344"]>td font,body.terry-r3 #main tr[bgcolor="#111122"]>td font,body.terry-r3 #main tr[bgcolor="#666666"]>td font,body.terry-r3 #main tr[bgcolor="#444444"]>td font,body.terry-r3 #main tr[bgcolor="#44444c"]>td font,body.terry-r3 #main tr[bgcolor="#334455"]>td font,body.terry-r3 #main tr[bgcolor="#666677"]>td font,body.terry-r3 #main tr[bgcolor="#333333"]>td font{color:#fff!important;-webkit-text-fill-color:#fff!important}

/* Legacy links must stay readable on light table cells. */
body.terry-core #main table td a,body.terry-r3 #main table td a{color:#0868a5!important;-webkit-text-fill-color:#0868a5!important;text-decoration-color:#8ab8d4!important}body.terry-core #main table td a:visited,body.terry-r3 #main table td a:visited{color:#4b58a1!important;-webkit-text-fill-color:#4b58a1!important}body.terry-core #main table td a font,body.terry-r3 #main table td a font{color:inherit!important;-webkit-text-fill-color:inherit!important}
body.terry-r3 #main td[bgcolor="#333344"] a,body.terry-r3 #main td[bgcolor="#111122"] a,body.terry-r3 #main td[bgcolor="#666666"] a,body.terry-r3 #main td[bgcolor="#444444"] a,body.terry-r3 #main td[bgcolor="#44444c"] a,body.terry-r3 #main td[bgcolor="#334455"] a,body.terry-r3 #main td[bgcolor="#666677"] a,body.terry-r3 #main td[bgcolor="#333333"] a{color:#fff!important;-webkit-text-fill-color:#fff!important}
body.terry-r3 #main td[bgcolor="#e6e6e6"] font[color="#ffffff"],body.terry-r3 #main td[bgcolor="#efefef"] font[color="#ffffff"],body.terry-r3 #main td[bgcolor="#f6f6f9"] font[color="#ffffff"],body.terry-r3 #main td[bgcolor="#ffffff"] font[color="#ffffff"]{color:#263f55!important;-webkit-text-fill-color:#263f55!important}
.tr-trait-table td a{font-weight:850!important;font-size:14px!important}.tr-trait-table td{color:#293e51!important}.tr-trait-table tr:nth-child(even) td{background:#f5f9fc!important}.tr-plus-trait-table tr:nth-child(2n) td{background:#fff8fb!important}

/* Equipped weapon state: source DB logic remains authoritative, presentation is explicit. */
body.terry-core #main table td.tr-weapon-cell{padding:8px 4px!important;text-align:center!important}.tr-weapon-cell span{display:block;font-weight:900}.tr-weapon-cell small{display:inline-flex;align-items:center;justify-content:center;min-height:19px;margin-top:3px;padding:1px 6px;border-radius:999px;font-size:9px!important;font-weight:850}.tr-weapon-cell.tr-weapon-enabled{background:linear-gradient(180deg,#eafff5,#c7f1dc)!important;color:#145f42!important;box-shadow:inset 0 0 0 1px #8fd3b1}.tr-weapon-cell.tr-weapon-enabled small{background:#17835a;color:#fff}.tr-weapon-cell.tr-weapon-disabled{background:#f3f6f8!important;color:#8794a0!important}.tr-weapon-cell.tr-weapon-disabled small{color:#9ba5ae;background:#e8edf0}

/* Modern site-wide footer. */
.tr-site-footer-wrap{width:min(1180px,calc(100% - 24px));margin:22px auto 8px}.tr-site-footer-series{overflow:hidden;border:1px solid #ccdce7;border-radius:15px;background:#fff;box-shadow:0 6px 18px rgba(31,65,94,.07)}.tr-site-footer-head{display:flex;align-items:center;gap:8px;padding:10px 13px;background:linear-gradient(105deg,#123657,#1e5c80);color:#fff}.tr-site-footer-head .tr-nav-mini svg{width:21px;height:21px}.tr-site-footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:10px}.tr-site-footer-links a{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;align-items:center;min-height:50px;padding:7px 9px;border:1px solid #d7e1e8;border-radius:10px;background:linear-gradient(180deg,#fff,#f7fafc);text-decoration:none!important}.tr-site-footer-links b{display:grid;place-items:center;min-height:30px;border-radius:8px;background:linear-gradient(135deg,#1b547e,#2d7ca5);color:#fff;font-size:10px}.tr-site-footer-links span{min-width:0;color:#244b69;font-size:11px;font-weight:800}.tr-site-footer{margin:8px 0 0!important;padding:12px!important;border-top:0!important;background:transparent}.tr-site-footer a{font-weight:800}
body.terry-core #footersab,body.terry-core>table:last-of-type{display:none!important}

/* Resistance index must always be visible; legacy accordion is no longer required. */
.tr-resistance-index{margin:4px 0 18px;padding:0 0 13px;border:1px solid #ccdae5;border-radius:15px;background:#fff;box-shadow:0 7px 20px rgba(31,65,94,.08);overflow:hidden}.tr-resistance-head{display:flex;align-items:center;gap:11px;padding:13px 15px;background:linear-gradient(105deg,#173f64,#22708e);color:#fff}.tr-resistance-head .tr-card-icon{width:45px;height:45px;margin:0;background:rgba(255,255,255,.95)}.tr-resistance-head h2{margin:0;font-size:18px}.tr-resistance-head p{margin:3px 0 0;color:#d9f2fb;font-size:11px}.tr-resistance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:12px}.tr-resistance-grid a{position:relative;display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:45px;padding:7px 9px;border:1px solid #d5e1e8;border-radius:10px;background:#f8fbfd;text-decoration:none!important;box-shadow:0 2px 6px rgba(31,65,94,.05)}.tr-resistance-grid a span{font-weight:900;color:#204b6c}.tr-resistance-grid a small{font-size:9px;color:#718293}.tr-resistance-grid a.is-fire{border-left:4px solid #ef785b}.tr-resistance-grid a.is-ice{border-left:4px solid #63b9df}.tr-resistance-grid a.is-light{border-left:4px solid #e6bd35}.tr-resistance-grid a.is-wind{border-left:4px solid #6ccf9a}.tr-resistance-grid a.is-dark{border-left:4px solid #846fb4}.tr-resistance-grid a.is-status{border-left:4px solid #cf7ab4}.tr-resistance-grid a.is-debuff{border-left:4px solid #7f9daf}.tr-resistance-note{margin:0 13px;padding:9px 11px;border-radius:9px;background:#eef6fb;color:#52697b;font-size:11px}

@media(max-width:720px){.tr-site-footer-wrap{width:calc(100% - 12px)}.tr-site-footer-links{grid-template-columns:1fr 1fr;padding:8px}.tr-site-footer-links a{grid-template-columns:42px 1fr}.tr-resistance-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:9px}.tr-resistance-head{padding:11px}.tr-rank-badge{min-height:26px}.tr-weapon-cell small{display:block;margin:3px auto 0;width:max-content}}


/* R3.3: rank rendering guarantee + legacy status-bar repair */
body.terry-core.terry-monster-detail #main img[src$="/bar.gif"],
body.terry-core.terry-monster-detail #main img[src$="/bar2.gif"],
body.terry-core.terry-monster-detail #main img[src$="bar.gif"],
body.terry-core.terry-monster-detail #main img[src$="bar2.gif"],
body.terry-core.terry-build-detail #main img[src$="/bar.gif"],
body.terry-core.terry-build-detail #main img[src$="/bar2.gif"],
body.terry-core.terry-build-detail #main img[src$="bar.gif"],
body.terry-core.terry-build-detail #main img[src$="bar2.gif"]{
  display:inline-block!important;
  height:12px!important;
  min-height:12px!important;
  max-height:12px!important;
  max-width:none!important;
  border-radius:0!important;
  vertical-align:middle!important;
  object-fit:fill!important;
}
body.terry-core #main td>.tr-rank-badge{margin:0 auto}
body.terry-core #main a>.tr-rank-badge{margin-right:5px}
