/* SantoStefano P3.8 — compact hero + expressive, readable guild character UI
   Accent palette: ruby / azure / jade / amethyst / amber / turquoise.
   Color is purely presentational; missing character data stays missing.
*/
.gc37-page{
 --gc38-ruby:#f0837e;--gc38-azure:#82c5ef;--gc38-jade:#78d6a5;
 --gc38-amethyst:#c5a0ef;--gc38-amber:#f0bd75;--gc38-turquoise:#79d9d3;
 --gc38-surface:#1c121c;--gc38-line:rgba(209,152,112,.24);
}
.gc37-page-top{
 padding:15px 20px;
 border-color:#83524a;
 background:linear-gradient(105deg,rgba(116,39,52,.24),transparent 46%),
  linear-gradient(135deg,#271620,#150d17 75%);
 box-shadow:inset 0 1px rgba(255,206,156,.08),0 6px 24px rgba(0,0,0,.18);
}
.gc37-page-top h1{margin:5px 0;font-size:clamp(24px,2.2vw,32px)}
.gc37-page-top p{font-size:11px;margin:5px 0 0}
.gc37-page-top .gc36-profile-kicker{color:#f0b67d}

/* Character header: two rows of controls instead of a 4-button column.
   This removes the large unused vertical space seen in P3.7. */
.gc37-dossier{gap:10px}
.gc37-character-header{
 position:relative;isolation:isolate;
 display:flex;align-items:center;flex-wrap:nowrap;gap:13px;
 min-height:108px;padding:12px 16px;
 border:1px solid #9d6257;border-left:3px solid #dba369;
 border-radius:9px;
 background:
  radial-gradient(ellipse at 10% 20%,rgba(168,69,66,.22),transparent 44%),
  linear-gradient(108deg,#351c28 0%,#251622 50%,#170e18 100%);
 box-shadow:inset 0 1px rgba(250,203,156,.11),0 6px 19px #0004;
}
.gc37-character-header::after{
 content:"";position:absolute;right:6px;bottom:7px;pointer-events:none;
 width:120px;height:64px;border:1px solid rgba(220,159,113,.10);
 border-radius:55% 45% 60% 40%;transform:rotate(-18deg);z-index:-1;
}
.gc37-character-avatar{
 width:54px;height:54px;border-radius:9px;flex-shrink:0;
 border:1px solid #d0a16c;
 background:radial-gradient(circle at 40% 22%,#68413f,#321d2a 65%,#20151d);
 box-shadow:inset 0 0 12px rgba(230,154,103,.15),0 0 0 3px rgba(201,144,95,.06);
 color:#f1c487;
}
.gc37-character-avatar svg{width:25px;height:25px}
.gc37-character-meta{min-width:0;flex:1}
.gc37-character-meta .gc36-profile-kicker{font-size:9px;letter-spacing:1.2px;color:#e8b47c}
.gc37-character-meta h1{
 font-size:clamp(23px,2vw,29px);line-height:1.1;
 margin:3px 0 7px;color:#ffe0b6;letter-spacing:.1px;
}
.gc37-character-tags{gap:5px}
.gc37-character-tags span{
 padding:3px 7px;font-size:10px;line-height:1.35;
 border-color:rgba(197,135,110,.35);background:rgba(122,60,68,.23);
 color:#f0c9ac;
}
.gc37-character-tags span:nth-child(2){color:#9bd4f1;border-color:#4c7b9a;background:#1e3a4b88}
.gc37-character-tags span:nth-child(3){color:#a9e5bb;border-color:#427b5b;background:#193c3088;font-weight:800}
.gc37-character-tags span:nth-child(4){color:#dfb9ef;border-color:#72527f;background:#3b244a88}
.gc37-character-meta p{margin:6px 0 0;color:#ac9994;font-size:9px;line-height:1.35}
.gc37-character-actions{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 align-content:center;gap:6px;width:216px;min-width:216px;flex-shrink:0;
}
.gc37-character-actions button{
 min-height:32px;padding:7px 8px;border-radius:5px;
 font-size:10px;line-height:1.15;gap:5px;white-space:nowrap;
 border-color:#80554e;background:linear-gradient(180deg,#3b2530,#271923);
 color:#edc9ab;
}
.gc37-character-actions button svg{width:13px;height:13px;flex-shrink:0}
.gc37-character-actions button:hover{border-color:#d4a178;background:#53323a}
.gc37-character-actions .gc37-edit-primary{
 background:linear-gradient(110deg,#b56a56,#efbd80);
 border-color:#e4ac77;color:#28171c;
}
.gc37-character-actions button[data-action="gc36-task"]{border-color:#537d94;color:#a5d5ed;background:#20323e}
.gc37-character-actions button[data-action="gc37-observe"]{border-color:#56826c;color:#a6e1be;background:#213a32}

/* Left-hand roster is no longer a flat list of brown blocks. */
.gc37-sidebar{
 border-color:#86564d;
 background:linear-gradient(165deg,rgba(119,44,57,.16),transparent 50%),
 linear-gradient(155deg,#241720,#140e17);
}
.gc37-sidebar-title{color:#f1c18b}
.gc37-sidebar-title strong{color:#f6d29f}
.gc37-roster-row{
 background:linear-gradient(110deg,#291b27,#1d1520);
 border-color:rgba(155,106,96,.15);
}
.gc37-roster-row:hover{border-color:#a67762;background:linear-gradient(100deg,#442632,#29202e)}
.gc37-roster-row.active{
 border-color:#d9a475;
 background:linear-gradient(100deg,#69313b,#38222d 85%);
 box-shadow:inset 3px 0 #f0bd80,0 2px 10px #0003;
}
.gc37-avatar{border-color:#805b59;color:#e4af89}
.gc37-roster-row.active .gc37-avatar{
 border-color:#c79a74;color:#ffdb9c;
 background:radial-gradient(circle,#76454b,#3a2332);
}
.gc37-roster-row.active .gc37-roster-name strong{color:#ffe5b8}
.gc37-search-wrap:focus-within{border-color:#d2a06c;box-shadow:0 0 0 2px #d2a06c22}
.gc37-filters select{background:#2b1d2a;border-color:#765048}

/* Seven distinct statistic accents, with subdued placeholders when unknown. */
.gc37-dossier .gc38-summary{
 border:1px solid #805950;border-radius:9px;
 background:#170f18;
 box-shadow:0 4px 18px #0003;
}
.gc37-dossier .gc38-metric{
 --metric:#e8b984;--wash:rgba(230,170,108,.12);
 position:relative;min-width:0;gap:7px;padding:13px 8px 11px;
 background:radial-gradient(ellipse at 50% 0%,var(--wash),transparent 80%),
 linear-gradient(180deg,#251822,#1b131c);
 border-right:1px solid rgba(208,152,125,.17);
}
.gc37-dossier .gc38-metric::before{
 content:"";position:absolute;left:15%;right:15%;top:0;height:2px;
 border-radius:0 0 4px 4px;background:var(--metric);
 box-shadow:0 0 12px var(--metric);opacity:.85;
}
.gc37-dossier .gc38-metric span{
 font-size:10px;color:#c7b3ac;font-weight:650;gap:6px;line-height:1.25;
 justify-content:center;
}
.gc37-dossier .gc38-metric svg{color:var(--metric);filter:drop-shadow(0 0 4px var(--wash))}
.gc37-dossier .gc38-metric strong{
 font:700 clamp(16px,1.4vw,20px)/1.25 Georgia,serif;
 color:var(--metric);text-shadow:0 0 16px var(--wash);
}
.gc37-dossier .gc38-metric-empty strong{color:#85777a;text-shadow:none}
.gc37-dossier .gc38-metric--attack{--metric:#f18a7d;--wash:rgba(241,91,86,.16)}
.gc37-dossier .gc38-metric--defense{--metric:#85c5f4;--wash:rgba(71,148,213,.15)}
.gc37-dossier .gc38-metric--hp{--metric:#7edba7;--wash:rgba(64,189,123,.16)}
.gc37-dossier .gc38-metric--mp{--metric:#c5a6f3;--wash:rgba(146,96,223,.15)}
.gc37-dossier .gc38-metric--crit{--metric:#f0c17a;--wash:rgba(233,165,63,.16)}
.gc37-dossier .gc38-metric--absorption{--metric:#83d5d3;--wash:rgba(69,194,190,.14)}
.gc37-dossier .gc38-metric--speed{--metric:#a3c2ff;--wash:rgba(97,133,219,.15)}
.gc37-dossier .gc38-metric:hover{background:radial-gradient(ellipse at 50% 0%,var(--wash),transparent 100%),#30202b}

/* Panel hierarchy: thematic color lines and distinct subtle surface hues. */
.gc37-all-sections .gc36-panel{
 --panel-accent:#d8ac78;--panel-glow:rgba(205,143,88,.08);
 position:relative;
 border:1px solid rgba(155,108,100,.40);
 border-top-color:color-mix(in srgb,var(--panel-accent) 55%,#553c44);
 border-radius:9px;
 background:
  radial-gradient(ellipse at 10% 0%,var(--panel-glow),transparent 55%),
  linear-gradient(145deg,#251721,#171018 84%);
 box-shadow:inset 0 1px rgba(255,215,174,.035),0 5px 20px #0003;
}
.gc37-all-sections .gc36-panel::before{
 content:"";position:absolute;top:0;left:13px;width:84px;height:2px;
 border-radius:0 0 5px 5px;background:var(--panel-accent);
 box-shadow:0 0 14px var(--panel-glow);opacity:.8;
}
.gc37-all-sections .gc36-panel>header{
 border-bottom-color:rgba(177,134,116,.22);padding-bottom:10px;
}
.gc37-all-sections .gc36-panel>header h3{font-size:17px;color:var(--panel-accent)}
.gc37-all-sections .gc36-panel>header h3 svg{color:var(--panel-accent)}
.gc37-all-sections .gc36-equip{--panel-accent:#e7b184;--panel-glow:rgba(221,124,87,.11)}
.gc37-all-sections .gc36-spheres{--panel-accent:#c8a2f1;--panel-glow:rgba(143,95,218,.14)}
.gc37-all-sections .gc36-stats{--panel-accent:#8fcaf0;--panel-glow:rgba(67,146,212,.10)}
.gc37-all-sections .gc38-collection--puzzles{--panel-accent:#f0c37b;--panel-glow:rgba(230,164,63,.12)}
.gc37-all-sections .gc38-collection--cards{--panel-accent:#82d6b0;--panel-glow:rgba(68,182,135,.12)}
.gc37-all-sections .gc36-history{--panel-accent:#e99ba8;--panel-glow:rgba(197,76,105,.09)}
.gc37-all-sections .gc36-notes{--panel-accent:#e8bf82;--panel-glow:rgba(198,153,81,.09)}
.gc37-all-sections .gc37-imported{--panel-accent:#90c9dd;--panel-glow:rgba(77,164,190,.10)}
.gc37-all-sections .gc36-mini-btn{color:var(--panel-accent);border-color:color-mix(in srgb,var(--panel-accent) 50%,#49343b);background:#352330}
.gc37-all-sections .gc36-mini-btn:hover{background:#513241}

/* Item equipment slots: color distinguishes slot purpose, not item quality. */
.gc37-upper .gc36-doll{gap:8px}
.gc37-upper .gc36-portrait{
 border-color:#9b6e5a;
 background:radial-gradient(ellipse at 50% 48%,rgba(140,75,72,.19),transparent 56%),
 radial-gradient(ellipse at 50% 100%,#4a2c32,#1a121c 67%,#110e16);
 box-shadow:inset 0 0 25px #0005;
}
.gc37-upper .gc36-portrait::after{
 content:"";position:absolute;inset:9px;border:1px solid rgba(213,163,107,.15);
 border-radius:5px;pointer-events:none;
}
.gc37-upper .gc36-portrait-placeholder img{filter:drop-shadow(0 0 19px #bb7b4b55);opacity:.72}
.gc37-upper .gc36-portrait-placeholder strong{color:#f4d4a2}
.gc37-upper .gc36-slot{
 --slot-accent:#b6a4a0;
 border-color:color-mix(in srgb,var(--slot-accent) 35%,#563944);
 background:linear-gradient(145deg,color-mix(in srgb,var(--slot-accent) 8%,#291a26),#1d1420);
 box-shadow:inset 0 1px rgba(255,225,200,.035);
}
.gc37-upper .gc36-slot:hover,.gc37-upper .gc36-slot:focus-visible{
 border-color:var(--slot-accent);
 background:linear-gradient(145deg,color-mix(in srgb,var(--slot-accent) 20%,#291a26),#271b29);
 box-shadow:0 0 0 1px color-mix(in srgb,var(--slot-accent) 28%,transparent),0 0 16px #0005;
}
.gc37-upper .gc36-slot-art{color:var(--slot-accent)}
.gc37-upper .gc36-slot-label{color:#c2b0a7}
.gc37-upper .gc36-slot.filled{border-color:var(--slot-accent)}
.gc37-upper .gc36-slot.filled .gc36-slot-name{color:#f4ddbd}
.gc37-upper .gc36-slot[data-key="weapon"],.gc37-upper .gc36-slot[data-key="shield"]{--slot-accent:#ee9789}
.gc37-upper .gc36-slot[data-key="helmet"],.gc37-upper .gc36-slot[data-key="armor"],
.gc37-upper .gc36-slot[data-key="gloves"],.gc37-upper .gc36-slot[data-key="boots"]{--slot-accent:#91c6ec}
.gc37-upper .gc36-slot[data-key="cloak"],.gc37-upper .gc36-slot[data-key="belt"]{--slot-accent:#a2d4b1}
.gc37-upper .gc36-slot[data-key="necklace"],.gc37-upper .gc36-slot[data-key="ring_left"],
.gc37-upper .gc36-slot[data-key="ring_right"],.gc37-upper .gc36-slot[data-key="bracelet"],
.gc37-upper .gc36-slot[data-key="earring_left"],.gc37-upper .gc36-slot[data-key="earring_right"]{--slot-accent:#f0c381}
.gc37-upper .gc36-slot[data-key="artifact"]{--slot-accent:#c5a1ed}
.gc37-upper .gc36-extra-equip h4{color:#e7bc91}

/* Colored magical sphere ring: five positions + three extras remain intact. */
.gc37-upper .gc36-orbit-ring{
 border-color:#ba91de;
 box-shadow:0 0 0 8px #bd91e01a,inset 0 0 30px #a25fca22,0 0 27px #8f67c933;
 background:
  radial-gradient(circle at center,transparent 29%,rgba(165,113,222,.12) 30%,transparent 33%),
  repeating-conic-gradient(from 0deg,rgba(154,100,210,.17) 0deg 4deg,transparent 4deg 18deg),
  radial-gradient(circle,#1b1224,#291b31 65%,#1a1220);
}
.gc37-upper .gc36-orbit-center{color:#c49cf4;text-shadow:0 0 16px #a86cf2;opacity:.9}
.gc37-upper .gc36-orbit-slot.top .gc36-slot{--slot-accent:#e1a2e8}
.gc37-upper .gc36-orbit-slot.left .gc36-slot{--slot-accent:#87bfff}
.gc37-upper .gc36-orbit-slot.right .gc36-slot{--slot-accent:#f1ae86}
.gc37-upper .gc36-orbit-slot.bottom-left .gc36-slot{--slot-accent:#84d5be}
.gc37-upper .gc36-orbit-slot.bottom-right .gc36-slot{--slot-accent:#d1adf4}
.gc37-upper .gc36-sphere-extras .gc36-slot[data-key="extra_1"]{--slot-accent:#a4ccf5}
.gc37-upper .gc36-sphere-extras .gc36-slot[data-key="extra_2"]{--slot-accent:#d6a5f3}
.gc37-upper .gc36-sphere-extras .gc36-slot[data-key="extra_3"]{--slot-accent:#8ad7b8}
.gc37-upper .gc36-sphere-extras>span{color:#c8b1e3}

/* Stat groups: visible vs hidden values are distinguishable at a glance. */
.gc37-middle .gc38-stat-group{
 --stat-accent:#d2b18e;--stat-wash:rgba(180,130,90,.08);
 padding:10px 11px 8px;border:1px solid rgba(169,123,110,.20);
 border-radius:7px;
 background:linear-gradient(90deg,var(--stat-wash),transparent 65%),#1d1520;
}
.gc37-middle .gc38-stat-group--evasion{--stat-accent:#c6a4f2;--stat-wash:rgba(151,105,219,.09)}
.gc37-middle .gc38-stat-group--absorption{--stat-accent:#7fd6c8;--stat-wash:rgba(75,190,164,.09)}
.gc37-middle .gc38-stat-group--attack{--stat-accent:#f19a83;--stat-wash:rgba(221,113,91,.09)}
.gc37-middle .gc38-stat-group--other{--stat-accent:#f1c17c;--stat-wash:rgba(224,162,74,.09)}
.gc37-middle .gc38-stat-group h4{
 display:flex;align-items:center;gap:8px;
 color:var(--stat-accent);font-size:13px;margin:0 0 10px;
}
.gc37-middle .gc38-stat-group h4::before{
 content:"";width:3px;height:15px;flex-shrink:0;
 border-radius:2px;background:var(--stat-accent);
 box-shadow:0 0 9px var(--stat-wash);
}
.gc37-middle .gc38-stat-group .gc36-stat-header{
 color:#a99ca2;border-bottom-color:rgba(190,156,144,.2);padding-bottom:7px;
}
.gc37-middle .gc38-stat-group .gc36-stat-header span:nth-child(2){color:var(--stat-accent)}
.gc37-middle .gc38-stat-group .gc36-stat-header span:nth-child(3){color:#c8b4da}
.gc37-middle .gc38-stat-group .gc36-stat-row{
 border-bottom-color:rgba(184,141,130,.09);padding:8px 4px;border-radius:4px;
}
.gc37-middle .gc38-stat-group .gc36-stat-row:hover{background:var(--stat-wash)}
.gc37-middle .gc38-stat-group .gc36-stat-row span{color:#cfc0b9}
.gc37-middle .gc38-stat-group .gc36-stat-row b{color:var(--stat-accent);font-size:12px}
.gc37-middle .gc38-stat-group .gc36-stat-row b:last-child{color:#c9b2e4}
.gc37-middle .gc38-stat-group .gc36-stat-row b.gc38-empty-stat{color:#82747f}

/* Puzzles, cards, history and notes get differentiated surfaces. */
.gc37-all-sections .gc38-collection--puzzles .gc36-collection-mark{
 color:#f0c17d;background:#4b35275c;border:1px solid #85613d55;
}
.gc37-all-sections .gc38-collection--cards .gc36-collection-mark{
 color:#89ddad;background:#1e44385c;border:1px solid #4e987355;
}
.gc37-all-sections .gc36-collection-item{
 border-color:#6d4b4d;background:linear-gradient(115deg,#32212d,#241925);
}
.gc37-all-sections .gc38-collection--puzzles .gc36-collection-item:hover{border-color:#e1b47a;background:#443127}
.gc37-all-sections .gc38-collection--cards .gc36-collection-item:hover{border-color:#84d3a7;background:#273e35}
.gc37-all-sections .gc38-collection--puzzles .gc36-collection-item>b{color:#f0c17d}
.gc37-all-sections .gc38-collection--cards .gc36-collection-item>b{color:#8cdeb3}
.gc37-all-sections .gc38-collection--cards .gc36-progress i{background:linear-gradient(90deg,#398f75,#8de4b5)}
.gc37-all-sections .gc36-history-row>span{color:#e6a0ae}
.gc37-all-sections .gc36-history-row strong{color:#f0d3d4}
.gc37-all-sections .gc36-notes p{color:#e0c7b4}
.gc37-all-sections .gc36-hint{color:#b1a09d}

/* Maintain compact controls on tablets without squashing nicknames. */
@media(max-width:1280px){
 .gc37-character-header{flex-wrap:wrap}
 .gc37-character-actions{margin-left:auto}
}
@media(max-width:1050px){
 .gc37-character-header{min-height:0}
 .gc37-character-actions{width:auto;min-width:0;flex:1 1 220px;max-width:330px}
}
@media(max-width:760px){
 .gc37-character-header{padding:12px;gap:10px}
 .gc37-character-avatar{width:48px;height:48px}
 .gc37-character-meta h1{font-size:25px}
 .gc37-character-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;width:100%;flex:1 1 100%;margin:0}
 .gc37-dossier .gc38-metric{padding:11px 7px}
 .gc37-dossier .gc38-metric strong{font-size:18px}
}
@media(max-width:480px){
 .gc37-character-meta .gc36-profile-kicker{font-size:8px}
 .gc37-character-meta h1{font-size:23px}
 .gc37-character-tags span{font-size:9px}
 .gc37-dossier .gc38-metric span{font-size:10px}
 .gc37-middle .gc38-stat-group{padding:9px 7px}
}
@media(prefers-reduced-motion:reduce){
 .gc37-page .gc36-slot,.gc37-page .gc37-roster-row{transition:none}
}
