.aptitude-tooltip-wrapper{position:relative;display:inline-block;cursor:help}.aptitude-tooltip{position:absolute;left:0;top:100%;margin-top:5px;background:#2a1810;color:#f4e8d0;border:2px solid #8b4513;border-radius:6px;padding:15px;width:350px;max-width:90vw;z-index:1000;box-shadow:0 4px 12px #00000080;font-family:Georgia,Times New Roman,serif;animation:tooltipFadeIn .2s ease-in-out}.aptitude-tooltip-wrapper:nth-child(n+5) .aptitude-tooltip{bottom:100%;top:auto;margin-bottom:5px;margin-top:0}.tooltip-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;padding-bottom:8px;border-bottom:2px solid #8b4513}.tooltip-trait{font-size:12px;color:#d2691e;font-style:italic;text-transform:capitalize}.tooltip-content{font-size:13px;line-height:1.5}.tooltip-description{margin:0 0 10px;color:#f4e8d0}.tooltip-effect{margin:10px 0;padding:8px;background:#8b45134d;border-left:3px solid #d2691e;border-radius:3px}.tooltip-effect strong{color:gold;display:block;margin-bottom:4px}.tooltip-concentrations{margin-top:10px;padding:8px;background:#8b451333;border-radius:3px}.tooltip-concentrations strong{color:gold;display:block;margin-bottom:4px}@media (max-width: 768px){.aptitude-tooltip{width:280px;font-size:12px}.tooltip-header h4{font-size:14px}.tooltip-content{font-size:11px}}.edge-hindrance-tooltip-container{position:relative;display:inline-block;width:100%}.edge-hindrance-tooltip{position:absolute;left:0;right:0;z-index:1000;background:#2a1810;color:#f4e8d8;border:2px solid #8b4513;border-radius:6px;padding:12px;box-shadow:0 4px 12px #0006;min-width:300px;max-width:500px;animation:tooltipFadeIn .2s ease-in;pointer-events:none}.edge-hindrance-tooltip.bottom{top:calc(100% + 8px)}.edge-hindrance-tooltip.top{bottom:calc(100% + 8px)}@keyframes tooltipFadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.tooltip-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #8b4513}.tooltip-header h4{margin:0;font-size:16px;color:gold;font-weight:700}.tooltip-type,.tooltip-severity{font-size:11px;padding:3px 8px;border-radius:3px;font-weight:700;text-transform:uppercase}.tooltip-type{background:#4a5f3a;color:#c8e6c9}.tooltip-severity{background:#5f3a3a;color:#ffcccb}.tooltip-body{font-size:14px;line-height:1.5}.tooltip-description{margin:0 0 10px;color:#e8dcc8}.tooltip-footer{display:flex;gap:15px;padding-top:8px;border-top:1px solid #5a3a2a;font-size:13px;font-weight:700}.tooltip-cost{color:#90ee90}.tooltip-value{color:#ffb3b3}.arcane-tooltip-trigger{display:inline-block;cursor:help}.arcane-tooltip{background:#2c1810;color:#f4e8d0;border:2px solid #8b4513;border-radius:6px;padding:12px;max-width:350px;box-shadow:0 4px 12px #00000080;z-index:10000;pointer-events:none;font-family:Georgia,serif;font-size:13px;line-height:1.4}.arcane-tooltip-header{font-size:15px;font-weight:700;color:#d4af37;margin-bottom:8px;padding-bottom:6px;border-bottom:1px solid #8b4513}.arcane-tooltip-stats{display:flex;flex-direction:column;gap:4px;margin-bottom:8px;font-size:12px}.stat-row{display:flex;justify-content:space-between;gap:10px}.stat-label{font-weight:700;color:#d4af37;min-width:70px}.stat-value{color:#f4e8d0;flex:1;text-align:right}.arcane-tooltip-description{margin-top:8px;padding-top:8px;border-top:1px solid #5a3a2a;color:#e0d0b0;font-size:12px;line-height:1.5;text-align:justify}@media print{.arcane-tooltip{display:none!important}}.deadlands-sheet-wrapper{font-family:Georgia,Times New Roman,serif;color:#2a1810;background:linear-gradient(to bottom,#e8dcc8,#f4ede0);min-height:100vh;padding:20px}.page-toggle{display:flex;justify-content:center;gap:20px;margin-bottom:20px;flex-wrap:nowrap}.page-toggle button{padding:12px 24px;background:#8b4513;color:#f4e8d0;border:3px solid #5a2f0f;border-radius:8px;font-family:Georgia,serif;font-size:16px;font-weight:700;cursor:pointer;transition:all .3s;box-shadow:0 4px 6px #0000004d;white-space:nowrap;flex:1;max-width:300px}.page-toggle button:hover{background:sienna;transform:translateY(-2px);box-shadow:0 6px 8px #0006}.page-toggle button.active{background:#d2691e;border-color:#8b4513;box-shadow:inset 0 2px 4px #0000004d}.deadlands-page{max-width:1200px;margin:0 auto;background:#f9f5ee;border:2px solid #8b4513;border-radius:8px;box-shadow:0 8px 16px #0000004d,inset 0 0 0 8px #f4ede0,inset 0 0 0 10px #8b4513;position:relative;padding:40px 80px;background-image:radial-gradient(circle at 20% 30%,rgba(139,69,19,.03) 0%,transparent 50%),radial-gradient(circle at 80% 70%,rgba(139,69,19,.03) 0%,transparent 50%)}.deadlands-page:before,.deadlands-page:after{content:"";position:absolute;left:0;right:0;height:10px;background-image:linear-gradient(45deg,transparent 33.33%,#f9f5ee 33.33%,#f9f5ee 66.66%,transparent 66.66%),linear-gradient(-45deg,transparent 33.33%,#f9f5ee 33.33%,#f9f5ee 66.66%,transparent 66.66%);background-size:8px 20px;background-position:0 0}.deadlands-page:before{top:-2px}.deadlands-page:after{bottom:-2px}.ammo-tracker{position:absolute;top:100px;display:flex;flex-direction:column;gap:20px;z-index:10}.ammo-tracker.left-tracker{left:15px}.ammo-column{display:flex;flex-direction:column;align-items:center;gap:5px}.ammo-column.ammo-three{margin-top:10px}.ammo-label{writing-mode:horizontal-tb;font-size:10px;font-weight:700;letter-spacing:1px;color:#5a2f0f;text-align:center;padding:5px;background:#f4ede0;border:1px solid #8b4513;border-radius:4px;min-width:50px}.ammo-shots{display:flex;flex-direction:column;gap:3px}.ammo-shot{width:28px;height:28px;border:2px solid #5a2f0f;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;cursor:pointer;transition:all .2s;user-select:none}.ammo-shot.loaded{background:gold;border-color:#b8860b;color:#2a1810;box-shadow:inset 0 2px 4px #0003}.ammo-shot.fired{background:#666;border-color:#333;color:#999;box-shadow:inset 0 2px 4px #0006}.ammo-shot:hover{transform:scale(1.1);box-shadow:0 2px 6px #0000004d}.chip-tracker{position:absolute;top:100px;display:flex;flex-direction:column;gap:25px;z-index:10}.chip-tracker.right-tracker{right:15px}.chip-column{display:flex;flex-direction:column;align-items:center;gap:5px}.chip-label{font-size:10px;font-weight:700;letter-spacing:1px;text-align:center;padding:5px;background:#f4ede0;border:1px solid #8b4513;border-radius:4px;min-width:50px}.blue-chip-column .chip-label{background:#cce5ff;border-color:#06c;color:#036}.red-chip-column .chip-label{background:#fcc;border-color:#c00;color:#600}.white-chip-column .chip-label{background:#fff;border-color:#333;color:#000}.chip-shots{display:flex;flex-direction:column;gap:3px}.chip-shot{width:32px;height:32px;border:3px solid;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;cursor:pointer;transition:all .2s;user-select:none;box-shadow:0 2px 4px #0003}.chip-shot.blue{background:linear-gradient(135deg,#5a9fd4,#4a8fc4);border-color:#2c5f8f;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.3)}.chip-shot.blue.used{background:#e0e0e0;border-color:#999;color:#666;box-shadow:inset 0 2px 4px #0000004d}.chip-shot.red{background:linear-gradient(135deg,#dc5757,#c73e3e);border-color:#8b2727;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.3)}.chip-shot.red.used{background:#e0e0e0;border-color:#999;color:#666;box-shadow:inset 0 2px 4px #0000004d}.chip-shot.white{background:linear-gradient(135deg,#fff,#f0f0f0);border-color:#666;color:#333}.chip-shot.white.used{background:#999;border-color:#666;color:#444;box-shadow:inset 0 2px 4px #0000004d}.chip-shot:hover:not(.used){transform:scale(1.1);box-shadow:0 4px 8px #0000004d}.chip-shot.used:hover{transform:scale(1.05);cursor:pointer}.chip-number,.white-chips,.red-chips,.blue-chips{display:none}.page-content{position:relative;z-index:1}.sheet-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px;padding-bottom:15px;border-bottom:3px double #8b4513;gap:20px}.header-left,.header-right{flex:1}.header-right{position:relative;left:-20px}.sheet-header label{font-weight:700;font-size:14px;color:#5a2f0f;display:block;margin-bottom:5px;letter-spacing:1px}.sheet-header input{width:100%;padding:8px;border:2px solid #8b4513;border-radius:4px;background:#fff;font-family:Georgia,serif;font-size:16px;color:#2a1810}.deadlands-logo{flex:0 0 200px;text-align:center;align-self:center;margin-top:-10px}.deadlands-logo img{max-width:100%;height:auto;max-height:60px;object-fit:contain}.logo-text{font-size:32px;font-weight:700;color:#8b4513;text-shadow:2px 2px 4px rgba(0,0,0,.3);letter-spacing:3px;line-height:1;padding:0;margin:0}.section-title{font-size:24px;font-weight:700;color:#5a2f0f;text-align:center;margin:20px 0 15px;padding:10px;background:linear-gradient(to right,transparent 0%,#e8dcc8 20%,#e8dcc8 80%,transparent 100%);border-top:2px solid #8b4513;border-bottom:2px solid #8b4513;letter-spacing:2px;text-transform:uppercase}.traits-aptitudes-section{margin-bottom:20px}.two-column-layout{display:grid;grid-template-columns:1fr 1fr;gap:30px}.trait-group{margin-bottom:15px}.trait-header{display:flex;justify-content:space-between;align-items:center;background:#8b4513;color:#f4e8d0;padding:6px 12px;border-radius:4px;margin-bottom:5px;font-weight:700;font-size:14px}.trait-name{letter-spacing:1px;text-transform:uppercase}.trait-die{width:60px;text-align:center;background:#f9f5ee;border:1px solid #5a2f0f;border-radius:3px;padding:3px;font-family:Georgia,serif;font-weight:700;color:#2a1810}.aptitude-line{padding:4px 8px;border-bottom:1px solid #d4c4a8;display:flex;justify-content:space-between;align-items:center;font-size:13px;gap:10px}.aptitude-name{flex-shrink:0;min-width:120px}.aptitude-input{flex:1;min-width:60px;border:none;border-bottom:1px dotted #8b4513;background:transparent;padding:2px 5px;font-family:Georgia,Times New Roman,serif;font-size:13px;color:#2a1810;outline:none}.aptitude-input:focus{border-bottom:1px solid #8b4513;background:#ffffff4d}.aptitude-input:disabled{color:#666}.aptitude-line-wrapper,.aptitude-with-concentrations{display:flex;flex-direction:column}.aptitude-header-line{background:#8b45130d;font-weight:500}.add-concentration-btn{width:24px;height:24px;border:1px solid #8b4513;background:#f4e8d0;color:#8b4513;border-radius:3px;cursor:pointer;font-size:16px;font-weight:700;line-height:1;padding:0;display:flex;align-items:center;justify-content:center}.add-concentration-btn:hover{background:#8b4513;color:#f4e8d0}.aptitude-with-concentrations{display:flex;flex-direction:column}.concentration-line{padding-left:30px;background:#f4e8d04d;font-size:12px}.concentration-label{font-style:italic;color:#5a3a2a;min-width:100px}.concentration-input{max-width:60px;text-align:center}.remove-concentration-btn{width:20px;height:20px;border:1px solid #a0522d;background:#f4e8d0;color:sienna;border-radius:3px;cursor:pointer;font-size:12px;line-height:1;padding:0;margin-left:5px}.remove-concentration-btn:hover{background:#dc143c;color:#fff;border-color:#dc143c}.add-new{background:#8b451314}.new-concentration-input{flex:1;border:1px solid #8b4513;background:#fff;padding:4px 8px;font-family:Georgia,Times New Roman,serif;font-size:12px;color:#5d3a1a;border-radius:3px;outline:none}.new-concentration-input:focus{border-color:#5a2f0f;box-shadow:0 0 3px #8b45134d}.confirm-concentration-btn,.cancel-concentration-btn{width:24px;height:24px;border:1px solid #8b4513;background:#f4e8d0;border-radius:3px;cursor:pointer;font-size:14px;line-height:1;padding:0;margin-left:5px}.confirm-concentration-btn{color:#228b22;border-color:#228b22}.confirm-concentration-btn:hover{background:#228b22;color:#fff}.cancel-concentration-btn{color:#dc143c;border-color:#dc143c}.cancel-concentration-btn:hover{background:#dc143c;color:#fff}.line-fill{flex:1;margin-left:10px;border-bottom:1px dotted #8b4513}.sub-section-title{font-style:italic;color:#5a2f0f;padding:3px 8px;font-size:12px;background:#f4ede0;margin-top:5px}.right-align .trait-header{flex-direction:row-reverse}.combat-stats{margin:15px 0;padding:10px;background:#f4ede0;border:2px solid #8b4513;border-radius:4px}.stat-row{display:flex;align-items:center;margin-bottom:8px}.stat-row label{font-weight:700;color:#5a2f0f;min-width:80px;font-size:13px;letter-spacing:1px}.stat-row input{flex:1;padding:4px 8px;border:1px solid #8b4513;border-radius:3px;background:#fff;font-family:Georgia,serif}.wounds-section{margin:20px 0;padding:15px;background:#f9f5ee;border:2px solid #8b4513;border-radius:4px}.wounds-section h3{font-size:18px;font-weight:700;color:#5a2f0f;margin:0 0 15px;text-align:center;letter-spacing:2px}.wounds-container{display:flex;gap:20px;align-items:flex-start}.wounds-grid{flex:1;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.wound-location{display:flex;flex-direction:column;gap:5px}.wound-location-label{font-weight:700;font-size:12px;color:#5a2f0f;text-align:center;letter-spacing:1px}.wound-select{padding:6px 8px;border:2px solid #8b4513;border-radius:4px;background:#fff;font-family:Georgia,serif;font-size:13px;cursor:pointer;transition:all .2s;color:#2a1810}.wound-select option{color:#2a1810;background:#fff}.wound-select:hover:not(:disabled){border-color:#5a2f0f;box-shadow:0 0 5px #8b45134d}.wound-select:disabled{background:#f0f0f0;cursor:not-allowed}.wound-none{background:#fff}.wound-light{background:#fff;border-color:#999;font-weight:700}.wound-heavy{background:#c8e6c9;border-color:#4caf50;font-weight:700;color:#1b5e20}.wound-serious{background:#fff9c4;border-color:#fbc02d;font-weight:700;color:#f57f17}.wound-critical{background:#ffcdd2;border-color:#e53935;font-weight:700;color:#b71c1c}.wound-maimed{background:#424242;border-color:#000;font-weight:700;color:#fff}.wound-key{flex:0 0 200px;padding:12px;background:#f4ede0;border:2px solid #8b4513;border-radius:4px;font-size:13px}.key-title{font-weight:700;text-align:center;margin-bottom:10px;color:#5a2f0f;letter-spacing:1px;font-size:14px}.key-item{padding:5px 0;display:flex;align-items:center;gap:8px}.wound-chip{font-size:18px;line-height:1}.wound-chip.light{color:#999}.wound-chip.heavy{color:#4caf50}.wound-chip.serious{color:#fbc02d}.wound-chip.critical{color:#e53935}.wound-chip.maimed{color:#000}.weapons-section{margin:20px 0}.weapons-section h3{font-size:16px;font-weight:700;color:#5a2f0f;margin:15px 0 8px;padding:5px 10px;background:#e8dcc8;border-left:4px solid #8b4513;letter-spacing:1px}.weapons-table{width:100%;border-collapse:collapse;margin-bottom:15px;font-size:12px}.weapons-table thead{background:#8b4513;color:#f4e8d0}.weapons-table th{padding:6px 8px;text-align:left;font-weight:700;border:1px solid #5a2f0f;letter-spacing:.5px}.weapons-table td{padding:4px;border:1px solid #d4c4a8;background:#fff}.weapons-table td input{width:100%;border:none;background:transparent;padding:2px 4px;font-family:Georgia,serif;font-size:11px;color:#2a1810}.weapons-table.melee{margin-bottom:10px}.wind-track{margin:20px 0;padding:10px;background:#f4ede0;border:2px solid #8b4513;border-radius:4px;display:flex;align-items:center;gap:10px}.wind-label{font-weight:700;color:#5a2f0f;writing-mode:horizontal-tb;font-size:12px;letter-spacing:1px;min-width:60px}.wind-numbers{display:flex;gap:3px;flex-wrap:wrap;flex:1}.wind-number{width:24px;height:24px;border:1px solid #8b4513;background:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;border-radius:3px}.wind-point{width:24px;height:24px;border:1px solid #8b4513;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;border-radius:3px;cursor:pointer;transition:all .2s ease;user-select:none}.wind-point.available{background:#90ee90;color:#2d5016;border-color:#4d8c3d}.wind-point.spent{background:#ffcccb;color:#8b3a3a;border-color:#d32f2f}.wind-point:hover{transform:scale(1.1);box-shadow:0 2px 4px #0003}.wind-point.available:hover{background:#7cdc7c}.wind-point.spent:hover{background:#ffb3b3}.arcane-abilities{margin-bottom:20px}.abilities-grid{margin-top:15px}.ability-group h3{font-size:14px;font-weight:700;color:#5a2f0f;margin-bottom:10px;padding:5px 10px;background:#e8dcc8;border-left:4px solid #8b4513}.abilities-table{width:100%;border-collapse:collapse;font-size:11px}.abilities-table thead{background:#8b4513;color:#f4e8d0}.abilities-table th{padding:5px;text-align:left;font-weight:700;border:1px solid #5a2f0f;font-size:10px}.abilities-table td{padding:3px;border:1px solid #d4c4a8;background:#fff}.abilities-table td input{width:100%;border:none;background:transparent;padding:2px;font-family:Georgia,serif;font-size:10px}.abilities-table .notes-cell{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#5a4a3a}.power-name-hover{cursor:help;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:2px}.power-name-hover:hover{color:#8b4513}.equipment-notes-section{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.equipment-notes-section h3{font-size:14px;font-weight:700;color:#5a2f0f;margin:10px 0 8px;padding:5px 10px;background:#e8dcc8;border-left:4px solid #8b4513;letter-spacing:1px}.blank-line{height:20px;border-bottom:1px solid #d4c4a8;margin-bottom:5px}.edges-hindrances-list{display:flex;flex-direction:column;gap:5px;margin-bottom:20px}.edge-hindrance-item{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border-radius:4px;font-size:14px;cursor:help;transition:all .2s;position:relative}.edge-item{background:#e8f5e9;border:1px solid #4caf50}.edge-item:hover{background:#c8e6c9;transform:translate(2px)}.hindrance-item{background:#ffe0e0;border:1px solid #d32f2f}.hindrance-item:hover{background:#ffcccb;transform:translate(2px)}.edge-hindrance-item .item-name{font-weight:700;color:#2a1810;flex:1}.edge-hindrance-item .item-cost{font-size:12px;color:#5a2f0f;font-weight:700;margin-right:8px}.hindrance-value{color:#b71c1c}.remove-edge-hindrance-btn{background:#d32f2f;color:#fff;border:none;border-radius:50%;width:20px;height:20px;font-size:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;opacity:.7;padding:0;line-height:1}.remove-edge-hindrance-btn:hover{background:#b71c1c;transform:scale(1.15);opacity:1}.equipment-list{display:flex;flex-direction:column;gap:3px}.equipment-line{padding:6px 8px;background:#f4ede0;border-left:3px solid #8b4513;font-size:14px;color:#2a1810}.equipment-notes-section textarea{width:100%;min-height:150px;padding:8px;border:2px solid #8b4513;border-radius:4px;background:#fff;font-family:Georgia,serif;font-size:12px;color:#2a1810;resize:vertical}.wounds-grid{margin-top:10px}.wound-location{background:#f4ede0;padding:10px;border:2px solid #8b4513;border-radius:4px}.location-label{text-align:center;font-weight:700;color:#5a2f0f;margin-bottom:8px;font-size:12px;letter-spacing:1px}.wound-boxes{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.wound-box{display:flex;flex-direction:column;gap:3px}.wound-label{font-size:10px;font-weight:700;color:#5a2f0f}.wound-box input{padding:4px;border:1px solid #8b4513;border-radius:3px;background:#fff;font-family:Georgia,serif;font-size:11px}@media (max-width: 1024px){.deadlands-page{padding:30px 40px}.two-column-layout,.equipment-notes-section{grid-template-columns:1fr}.ammo-tracker,.chip-tracker{display:none}.trait-group{margin-bottom:20px}}@media (max-width: 768px){.deadlands-page{padding:20px}.sheet-header{flex-direction:column;gap:15px}.header-left,.header-right,.deadlands-logo{flex:none;width:100%}.page-toggle{gap:10px;padding:0 10px}.page-toggle button{padding:10px 16px;font-size:14px;flex:1;max-width:none}.two-column-layout{gap:20px}.trait-header{font-size:13px;padding:5px 10px}.aptitude-line{font-size:12px;padding:3px 6px}.aptitude-name{min-width:100px}.combat-stats{flex-direction:column;gap:10px}.equipment-grid,.weapon-grid{grid-template-columns:1fr}}@media (max-width: 480px){.deadlands-page{padding:15px}.page-toggle{gap:8px;padding:0 5px}.page-toggle button{padding:8px 12px;font-size:13px;border-width:2px}.trait-header{font-size:12px;padding:4px 8px}.trait-die{width:50px;font-size:12px}.aptitude-line{font-size:11px;padding:2px 4px;gap:5px}.aptitude-name{min-width:80px;font-size:11px}.aptitude-input{min-width:40px;font-size:11px}.sub-section-title{font-size:11px;padding:3px 6px}input,select,textarea{min-height:36px;font-size:14px}.trait-die,.aptitude-input{min-height:32px}}@media (max-height: 500px) and (orientation: landscape){.deadlands-page{padding:10px}.page-toggle button{padding:6px 10px;font-size:12px}.trait-group{margin-bottom:10px}.trait-header{padding:3px 6px;font-size:11px}.aptitude-line{padding:2px 4px;font-size:10px}}@media print{.page-toggle{display:none}.deadlands-page{box-shadow:none;border:2px solid #000;page-break-after:always}.ammo-tracker,.chip-tracker{print-color-adjust:exact;-webkit-print-color-adjust:exact}}.character-manager-overlay{position:fixed;inset:0;background:#000000bf;display:flex;justify-content:center;align-items:center;z-index:1000;padding:20px}.character-manager-modal{background:linear-gradient(to bottom,#e8dcc8,#f4ede0);border:4px solid #8b4513;border-radius:12px;max-width:900px;width:100%;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 10px 40px #00000080;font-family:Georgia,Times New Roman,serif}.character-manager-header{display:flex;justify-content:space-between;align-items:center;padding:20px 30px;background:linear-gradient(135deg,#8b4513,sienna);border-bottom:3px solid #5a2f0f;border-radius:8px 8px 0 0}.character-manager-header h2{margin:0;color:#f4e8d0;font-size:28px;font-weight:700;letter-spacing:2px;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.close-btn{background:none;border:none;color:#f4e8d0;font-size:32px;cursor:pointer;padding:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;transition:all .2s;border-radius:50%}.close-btn:hover{background:#ffffff1a;transform:rotate(90deg)}.character-manager-search{padding:20px 30px;border-bottom:2px solid #d4c4a8}.search-input{width:100%;padding:12px 16px;border:2px solid #8b4513;border-radius:8px;background:#fff;font-family:Georgia,serif;font-size:16px;color:#2a1810;outline:none;transition:all .2s}.search-input:focus{border-color:#5a2f0f;box-shadow:0 0 8px #8b45134d}.character-manager-actions{padding:20px 30px;border-bottom:2px solid #d4c4a8;display:flex;gap:10px;flex-wrap:wrap}.western-btn{padding:10px 20px;background:linear-gradient(135deg,#8b4513,sienna);color:#f4e8d0;border:2px solid #5a2f0f;border-radius:6px;font-family:Georgia,serif;font-size:14px;font-weight:700;cursor:pointer;transition:all .2s;box-shadow:0 2px 4px #0003;letter-spacing:1px}.western-btn:hover{background:linear-gradient(135deg,sienna,#8b4513);transform:translateY(-2px);box-shadow:0 4px 8px #0000004d}.western-btn:active{transform:translateY(0);box-shadow:0 1px 2px #0003}.primary-btn{background:linear-gradient(135deg,#2c5f2d,#3f8f3f);border-color:#1e4620}.primary-btn:hover{background:linear-gradient(135deg,#3f8f3f,#2c5f2d)}.character-list{flex:1;overflow-y:auto;padding:20px 30px;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px;align-content:start}.no-characters{grid-column:1 / -1;text-align:center;padding:60px 20px;color:#5a2f0f;font-size:18px}.character-card{background:linear-gradient(135deg,#f9f5ee,#fff);border:3px solid #d4c4a8;border-radius:8px;padding:16px;cursor:pointer;transition:all .2s;box-shadow:0 2px 8px #0000001a;position:relative}.character-card:hover{border-color:#8b4513;transform:translateY(-4px);box-shadow:0 6px 16px #8b451333}.character-card.selected{border-color:#2c5f2d;border-width:4px;background:linear-gradient(135deg,#e8f5e9,#f1f8e9);box-shadow:0 0 12px #2c5f2d4d}.character-card-header{margin-bottom:12px;padding-bottom:12px;border-bottom:2px solid #d4c4a8}.character-card-header h3{margin:0 0 6px;color:#2a1810;font-size:20px;font-weight:700;letter-spacing:1px}.occupation{display:inline-block;background:#8b4513;color:#f4e8d0;padding:4px 10px;border-radius:4px;font-size:12px;font-weight:700;letter-spacing:.5px}.character-card-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:12px}.stat-badge{display:flex;flex-direction:column;align-items:center;background:#8b45131a;border:1px solid #d4c4a8;border-radius:6px;padding:8px 4px}.stat-label{font-size:10px;color:#5a2f0f;font-weight:700;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}.stat-value{font-size:18px;color:#2a1810;font-weight:700}.character-card-footer{display:flex;justify-content:space-between;align-items:center;padding-top:12px;border-top:1px solid #d4c4a8}.character-date{font-size:11px;color:#5a2f0f;font-style:italic}.card-actions{display:flex;gap:8px}.export-character-btn{background:#2e7d32;border:2px solid #1b5e20;color:#fff;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px;transition:all .2s;box-shadow:0 2px 4px #0003}.export-character-btn:hover{background:#4caf50;transform:scale(1.1);box-shadow:0 4px 8px #0000004d}.delete-character-btn{background:#8b0000;border:2px solid #5a0000;color:#fff;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px;transition:all .2s;box-shadow:0 2px 4px #0003}.delete-character-btn:hover{background:#dc143c;transform:scale(1.1);box-shadow:0 4px 8px #0000004d}.import-btn{background:linear-gradient(135deg,#2e7d32,#4caf50);border-color:#1b5e20}.import-btn:hover{background:linear-gradient(135deg,#4caf50,#2e7d32)}.character-manager-footer{padding:15px 30px;border-top:2px solid #d4c4a8;background:#8b45130d;border-radius:0 0 8px 8px}.character-count{margin:0;color:#5a2f0f;font-size:14px;font-weight:700;text-align:center;letter-spacing:1px}.character-list::-webkit-scrollbar{width:12px}.character-list::-webkit-scrollbar-track{background:#e8dcc8;border-radius:6px}.character-list::-webkit-scrollbar-thumb{background:#8b4513;border-radius:6px;border:2px solid #e8dcc8}.character-list::-webkit-scrollbar-thumb:hover{background:sienna}@media (max-width: 768px){.character-manager-modal{max-width:100%;max-height:100vh;border-radius:0}.character-list{grid-template-columns:1fr;padding:15px}.character-manager-header,.character-manager-search,.character-manager-actions,.character-manager-footer{padding:15px 20px}.character-manager-header h2{font-size:22px;letter-spacing:1px}.western-btn{flex:1 1 auto;min-width:120px;font-size:14px;padding:10px 16px}}@media (max-width: 480px){.character-manager-overlay{padding:0}.character-manager-header{padding:12px 15px}.character-manager-header h2{font-size:18px}.close-btn{font-size:28px;width:36px;height:36px}.character-manager-search,.character-manager-actions,.character-manager-footer{padding:12px 15px}.search-input{font-size:14px;padding:10px 14px}.western-btn{font-size:13px;padding:8px 14px;min-width:100px}.character-card{padding:12px}.character-card-header h3{font-size:16px}.character-details{font-size:12px}}@media (max-height: 500px) and (orientation: landscape){.character-manager-modal{max-height:100vh}.character-manager-header{padding:10px 15px}.character-manager-header h2{font-size:18px}.character-list{padding:10px}}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1a1a1a,#2d2d2d);padding:20px}.login-box{background:var(--bg-secondary);border-radius:12px;box-shadow:0 8px 32px #0006;border:2px solid var(--border-color);padding:40px;width:100%;max-width:450px;animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.login-header{text-align:center;margin-bottom:30px}.login-header h1{color:#fff;font-size:2rem;margin-bottom:10px;font-weight:600;text-shadow:0 2px 4px rgba(0,0,0,.5)}.login-header p{color:#e0e0e0;font-size:.95rem;line-height:1.4;text-shadow:0 1px 2px rgba(0,0,0,.3)}.backend-notice{background:linear-gradient(135deg,#fff3cd,#ffeaa7);border:2px solid #ffc107;border-radius:8px;padding:20px;margin-bottom:25px;text-align:center}.backend-notice h3{color:#856404;margin:0 0 10px;font-size:1.1rem;font-weight:600}.backend-notice p{color:#856404;margin:8px 0;font-size:.9rem;line-height:1.4}.login-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{color:#fff;font-weight:500;font-size:.9rem}.form-group input{background:var(--input-bg);border:2px solid var(--border-color);border-radius:8px;color:#fff;font-size:1rem;padding:12px 16px;transition:border-color .2s,box-shadow .2s}.form-group input:focus{outline:none;border-color:var(--accent-color);box-shadow:0 0 0 3px #3498db1a}.form-group input:disabled{opacity:.6;cursor:not-allowed}.form-group input::placeholder{color:#bbb}.error-message{background:#e74c3c26;border:2px solid var(--danger-color);border-radius:8px;color:var(--danger-color);padding:15px;font-size:.95rem;font-weight:500;text-align:center;margin:15px 0;animation:slideInError .3s ease-out}@keyframes slideInError{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.login-button{background:var(--accent-color);border:2px solid #8b4513;border-radius:8px;color:#893c05;cursor:pointer;font-size:1rem;font-weight:600;padding:14px 20px;transition:background-color .2s,transform .1s;margin-top:10px}.login-button:hover:not(:disabled){background:#893c05;color:#fff;transform:translateY(-2px);box-shadow:0 4px 12px #fa380266}.login-button:active:not(:disabled){transform:translateY(0)}.login-button:disabled{background:var(--bg-accent);cursor:not-allowed;transform:none}.login-footer{margin-top:30px;text-align:center;padding-top:20px;border-top:1px solid var(--border-color)}.toggle-button{background:transparent;border:2px solid #8b4513;color:#893c05;padding:12px 24px;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;margin-top:15px;width:100%}.toggle-button:hover:not(:disabled){background:#893c05;color:#fff;transform:translateY(-2px);box-shadow:0 4px 12px #fa380266}.toggle-button:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none}.forgot-password-link{text-align:center;margin:15px 0}.forgot-password-button{background:transparent;border:none;color:#8b4513;font-size:.9rem;cursor:pointer;text-decoration:underline;transition:color .3s ease;padding:8px 0}.forgot-password-button:hover:not(:disabled){color:#c8a185}.forgot-password-button:disabled{opacity:.6;cursor:not-allowed}.login-footer p{color:#ccc;font-size:.85rem}@media (max-width: 480px){.login-container{padding:15px}.login-box{padding:30px 20px}.login-header h1{font-size:1.6rem}}.login-divider{display:flex;align-items:center;margin:24px 0;color:var(--text-secondary);font-size:.875rem}.login-divider:before,.login-divider:after{content:"";flex:1;height:1px;background:var(--border-color)}.login-divider span{padding:0 16px;background:var(--bg-secondary)}.google-login-container{display:flex;justify-content:center;align-items:center;margin:16px 0}.google-login-button{transition:opacity .2s ease}.google-login-button.disabled{pointer-events:none;opacity:.6}.google-button-loading{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;color:#666;font-size:14px}.loading-spinner{width:16px;height:16px;border:2px solid #e3e3e3;border-top:2px solid #4285f4;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.google-button-error{display:flex;align-items:center;justify-content:center;padding:12px 16px;color:#d93025;font-size:14px;border:1px solid #d93025;border-radius:4px;background-color:#fce8e6}.custom-google-button{display:flex;align-items:center;justify-content:center;width:100%;max-width:280px;height:48px;background-color:#fff;border:1px solid #dadce0;border-radius:8px;color:#3c4043;cursor:pointer;font-family:Roboto,sans-serif;font-size:14px;font-weight:500;letter-spacing:.25px;margin:8px 0;padding:0 16px;transition:all .2s ease-in-out;text-decoration:none;outline:none}.custom-google-button:hover:not(.disabled){background-color:#f8f9fa;border-color:#c8c9ca;box-shadow:0 1px 3px #0000001a}.custom-google-button:active:not(.disabled){background-color:#f1f3f4;box-shadow:0 1px 2px #0000001a}.custom-google-button:focus:not(.disabled){border-color:#4285f4;box-shadow:0 0 0 2px #4285f433}.custom-google-button.disabled{opacity:.6;cursor:not-allowed}.google-button-content{display:flex;align-items:center;gap:12px}.google-icon{display:flex;align-items:center;justify-content:center;width:18px;height:18px;flex-shrink:0}.google-button-text{color:#3c4043;font-size:14px;font-weight:500;letter-spacing:.25px}@media (max-width: 768px){.custom-google-button{width:100%;max-width:none;height:44px;font-size:16px}.google-login-container{margin:12px 0}}@media (prefers-color-scheme: dark){.custom-google-button{background-color:#2d2e30;border-color:#5f6368;color:#e8eaed}.custom-google-button:hover:not(.disabled){background-color:#35363a;border-color:#6c6f73}.custom-google-button:active:not(.disabled){background-color:#3c4043}.google-button-text{color:#e8eaed}.google-button-loading{color:#9aa0a6}.loading-spinner{border-color:#5f6368;border-top-color:#8ab4f8}}@media (prefers-contrast: high){.custom-google-button{border-width:2px;border-color:#000}.custom-google-button:focus:not(.disabled){border-color:#06c;box-shadow:0 0 0 3px #0066cc4d}}@media (prefers-reduced-motion: reduce){.custom-google-button,.loading-spinner{transition:none;animation:none}}.disclaimer{background-color:#0000001a;border:1px solid rgba(255,255,255,.2);border-radius:4px;padding:12px;text-align:center;max-width:800px;margin:20px auto 10px}.disclaimer p{margin:0;font-size:12px;color:#d0d0d0;line-height:1.4}.login-container .disclaimer{margin-top:20px;margin-bottom:10px}.app .disclaimer{margin:10px auto 20px;position:relative;bottom:0}.archetype-selector{position:fixed;inset:0;background:#000c;display:flex;justify-content:center;align-items:center;z-index:1000;overflow-y:auto;padding:20px}.archetype-list-container,.archetype-details-container{background:#f4e8d0;border:3px solid #8b4513;border-radius:8px;box-shadow:0 10px 40px #00000080;max-width:1200px;width:100%;max-height:90vh;overflow-y:auto;padding:30px;position:relative}.archetype-header{text-align:center;margin-bottom:30px;border-bottom:2px solid #8b4513;padding-bottom:20px}.archetype-header h2{font-family:Georgia,serif;color:#5d3a1a;font-size:2.5em;margin:0 0 15px;text-shadow:2px 2px 4px rgba(0,0,0,.1)}.archetype-intro{color:#5d3a1a;font-size:1.1em;line-height:1.6;max-width:800px;margin:0 auto 20px}.archetype-actions{display:flex;gap:15px;justify-content:center;margin-top:20px}.archetypes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px;margin-bottom:20px}.archetype-card{background:#fff;border:2px solid #8b4513;border-radius:6px;padding:20px;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px #0000001a}.archetype-card:hover{transform:translateY(-5px);box-shadow:0 8px 20px #8b45134d;border-color:#d2691e}.archetype-card h3{font-family:Georgia,serif;color:#8b4513;font-size:1.8em;margin:0 0 15px;text-align:center}.archetype-card-description{color:#5d3a1a;font-size:1em;line-height:1.5;margin-bottom:15px;min-height:60px}.archetype-card-quote{color:#8b4513;font-style:italic;font-size:.95em;margin-bottom:15px;padding:10px;background:#f9f3e8;border-left:3px solid #d2691e;border-radius:3px}.btn-view-details{width:100%;padding:10px;background:#8b4513;color:#fff;border:none;border-radius:4px;font-size:1em;font-weight:700;cursor:pointer;transition:background .3s ease}.btn-view-details:hover{background:sienna}.archetype-details{margin-top:20px}.archetype-section{background:#fff;border:2px solid #d2691e;border-radius:6px;padding:20px;margin-bottom:20px}.archetype-section h3{font-family:Georgia,serif;color:#8b4513;font-size:1.5em;margin:0 0 15px;border-bottom:1px solid #d2691e;padding-bottom:10px}.traits-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-bottom:15px}.trait-item{display:flex;justify-content:space-between;padding:8px 12px;background:#f9f3e8;border-radius:4px;border:1px solid #d2691e}.trait-name{font-weight:700;color:#f4e8d0;text-transform:capitalize}.trait-value{color:#8b4513;font-weight:700;font-family:monospace}.wind-stat{padding:10px 15px;background:gold;border:2px solid #d2691e;border-radius:4px;font-size:1.1em;text-align:center;color:#5d3a1a}.aptitudes-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}.aptitude-item{display:flex;justify-content:space-between;padding:6px 10px;background:#f9f3e8;border-radius:3px;border-left:3px solid #8b4513}.aptitude-name{color:#5d3a1a;font-size:.95em}.aptitude-level{color:#8b4513;font-weight:700;min-width:30px;text-align:right}.edges-list,.hindrances-list{display:flex;flex-direction:column;gap:8px}.edge-item,.hindrance-item{display:flex;justify-content:space-between;padding:10px 15px;background:#f9f3e8;border-radius:4px;border-left:4px solid #228b22}.hindrance-item{border-left-color:#dc143c}.edge-name,.hindrance-name{color:#5d3a1a;font-weight:500}.edge-level,.hindrance-points{color:#8b4513;font-weight:700;font-family:monospace}.gear-list{display:flex;flex-direction:column;gap:10px}.gear-category{padding:10px 15px;background:#f9f3e8;border-radius:4px;border-left:3px solid #d2691e}.gear-category strong{color:#8b4513;margin-right:10px}.personality-section{background:#fef9f0}.personality-text{color:#5d3a1a;line-height:1.8;font-size:1.05em;margin-bottom:20px}.personality-text p{margin-bottom:15px}.archetype-quote{text-align:center;font-size:1.3em;color:#8b4513;padding:20px;background:#fff;border:2px dashed #d2691e;border-radius:6px;margin-top:20px}.archetype-note{background:#fff3cd;border:2px solid #ffc107;border-radius:6px;padding:20px;text-align:center;color:#856404}.btn-primary,.btn-secondary{padding:12px 24px;border:2px solid #8b4513;border-radius:4px;font-size:1em;font-weight:700;cursor:pointer;transition:all .3s ease;font-family:Georgia,serif}.btn-primary{background:#8b4513;color:#fff}.btn-primary:hover{background:sienna;transform:translateY(-2px);box-shadow:0 4px 12px #8b45134d}.btn-secondary{background:#f4e8d0;color:#8b4513}.btn-secondary:hover{background:#e8d7b5;transform:translateY(-2px)}@media (max-width: 768px){.archetype-list-container,.archetype-details-container{padding:20px}.archetype-header h2{font-size:2em}.archetypes-grid{grid-template-columns:1fr}.traits-grid{grid-template-columns:repeat(2,1fr)}.aptitudes-list{grid-template-columns:1fr}.archetype-actions{flex-direction:column}.btn-primary,.btn-secondary{width:100%}}.archetype-list-container::-webkit-scrollbar,.archetype-details-container::-webkit-scrollbar{width:10px}.archetype-list-container::-webkit-scrollbar-track,.archetype-details-container::-webkit-scrollbar-track{background:#f4e8d0}.archetype-list-container::-webkit-scrollbar-thumb,.archetype-details-container::-webkit-scrollbar-thumb{background:#8b4513;border-radius:5px}.archetype-list-container::-webkit-scrollbar-thumb:hover,.archetype-details-container::-webkit-scrollbar-thumb:hover{background:sienna}.archetypes-page{padding:20px;background:linear-gradient(to bottom,#e8dcc8,#f4ede0);min-height:100vh;font-family:Georgia,Times New Roman,serif;color:#2a1810}.archetypes-header{text-align:center;margin-bottom:30px;padding:20px;background:#f9f5ee;border:2px solid #8b4513;border-radius:8px;box-shadow:0 4px 8px #0003}.archetypes-title{font-size:42px;font-weight:700;color:#8b4513;text-shadow:2px 2px 4px rgba(0,0,0,.3);letter-spacing:3px;margin:0 0 10px}.archetypes-subtitle{font-size:18px;color:#5a2f0f;font-style:italic;margin:0}.archetypes-filter{display:flex;align-items:center;gap:15px;margin-bottom:25px;padding:15px;background:#f9f5ee;border:2px solid #8b4513;border-radius:8px}.archetypes-filter label{font-weight:700;color:#5a2f0f;font-size:16px}.filter-buttons{display:flex;gap:10px;flex-wrap:wrap}.filter-btn{padding:8px 16px;background:#8b4513;color:#f4e8d0;border:2px solid #5a2f0f;border-radius:6px;font-family:Georgia,serif;font-size:14px;font-weight:700;cursor:pointer;transition:all .3s}.filter-btn:hover{background:sienna;transform:translateY(-2px);box-shadow:0 4px 6px #0000004d}.filter-btn.active{background:#d2691e;border-color:#8b4513;box-shadow:inset 0 2px 4px #0000004d}.archetypes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:20px;margin-bottom:30px}.archetype-card{background:#f9f5ee;border:3px solid #8b4513;border-radius:8px;padding:20px;cursor:pointer;transition:all .3s;box-shadow:0 4px 8px #0003}.archetype-card:hover{transform:translateY(-5px);box-shadow:0 8px 16px #0000004d;border-color:sienna}.archetype-card.selected{background:#fff8e7;border-color:#d2691e;border-width:4px;box-shadow:0 8px 16px #d2691e66}.archetype-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;padding-bottom:10px;border-bottom:2px solid #8b4513}.archetype-card-header h3{margin:0;font-size:24px;color:#8b4513;letter-spacing:1px}.archetype-type{padding:4px 12px;background:#8b4513;color:#f4e8d0;border-radius:4px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:1px}.archetype-card-content{display:flex;flex-direction:column;gap:12px}.archetype-quote{font-style:italic;color:#5a2f0f;font-size:14px;padding:10px;background:#f4ede0;border-left:3px solid #8b4513;margin-bottom:5px}.archetype-personality{font-size:13px;line-height:1.5}.archetype-personality strong,.archetype-traits strong,.archetype-edges strong,.archetype-hindrances strong,.archetype-gear strong{color:#5a2f0f;display:block;margin-bottom:5px}.traits-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;font-size:12px;padding:8px;background:#f4ede0;border-radius:4px}.archetype-edges ul,.archetype-hindrances ul,.archetype-gear ul{margin:5px 0 0 20px;padding:0;font-size:13px;line-height:1.6}.archetype-edges li,.archetype-hindrances li,.archetype-gear li{margin-bottom:3px}.archetype-hindrances{color:#c00}.archetype-actions{position:fixed;bottom:20px;left:50%;transform:translate(-50%);display:flex;gap:15px;padding:20px;background:#f9f5ee;border:3px solid #8b4513;border-radius:8px;box-shadow:0 8px 16px #0000004d;z-index:100}.use-archetype-btn,.cancel-btn{padding:12px 24px;font-family:Georgia,serif;font-size:16px;font-weight:700;border-radius:6px;cursor:pointer;transition:all .3s;border:2px solid}.use-archetype-btn{background:#228b22;color:#fff;border-color:#1a6b1a}.use-archetype-btn:hover{background:#2ecc40;transform:translateY(-2px);box-shadow:0 4px 8px #0000004d}.cancel-btn{background:#8b4513;color:#f4e8d0;border-color:#5a2f0f}.cancel-btn:hover{background:sienna;transform:translateY(-2px);box-shadow:0 4px 8px #0000004d}@media (max-width: 768px){.archetypes-grid{grid-template-columns:1fr}.archetypes-filter{flex-direction:column;align-items:flex-start}.filter-buttons{width:100%}.filter-btn{flex:1}.archetype-actions{width:calc(100% - 40px);left:20px;transform:none}}.gear-page{padding:20px;background:linear-gradient(to bottom,#e8dcc8,#f4ede0);min-height:100vh;font-family:Georgia,Times New Roman,serif;color:#2a1810}.gear-header{text-align:center;margin-bottom:25px;padding:20px;background:#f9f5ee;border:2px solid #8b4513;border-radius:8px;box-shadow:0 4px 8px #0003}.gear-title{font-size:42px;font-weight:700;color:#8b4513;text-shadow:2px 2px 4px rgba(0,0,0,.3);letter-spacing:3px;margin:0 0 10px}.gear-subtitle{font-size:18px;color:#5a2f0f;font-style:italic;margin:0 0 8px}.gear-instructions{font-size:14px;color:#8b4513;font-weight:700;margin:0;padding:8px;background:#fff3e0;border-radius:4px;display:inline-block}.selected-items-section{margin:20px 0;padding:20px;background:#fff;border:2px solid #8b4513;border-radius:8px;box-shadow:0 2px 6px #00000026}.selected-items-section h2{font-size:24px;color:#8b4513;margin:0 0 15px;border-bottom:2px solid #d2691e;padding-bottom:8px}.selected-category{margin-bottom:15px}.selected-category h3{font-size:18px;color:#5a2f0f;margin:0 0 10px}.selected-items-list{display:flex;flex-direction:column;gap:8px}.selected-item{display:flex;align-items:center;gap:10px;padding:10px 15px;background:#f4ede0;border:1px solid #d2691e;border-radius:4px;transition:background .2s}.selected-item:hover{background:#e8dcc8}.selected-item .item-name{font-weight:700;color:#2a1810;min-width:200px}.selected-item .item-details{font-size:14px;color:#5a2f0f;flex:1}.selected-item .remove-btn{background:#d32f2f;color:#fff;border:none;border-radius:50%;width:24px;height:24px;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.selected-item .remove-btn:hover{background:#b71c1c;transform:scale(1.1)}.gear-controls{display:flex;gap:15px;margin-bottom:20px;flex-wrap:wrap;align-items:center}.gear-filter{display:flex;align-items:center;gap:10px;padding:12px 15px;background:#f9f5ee;border:2px solid #8b4513;border-radius:8px}.gear-search{display:flex;align-items:center;gap:10px;padding:12px 15px;background:#f9f5ee;border:2px solid #8b4513;border-radius:8px;flex:1;min-width:300px;position:relative}.gear-filter label{font-weight:700;color:#5a2f0f;font-size:14px}.gear-filter label{font-weight:700;color:#5a2f0f;font-size:16px}.category-select{padding:8px 12px;font-family:Georgia,serif;font-size:14px;border:2px solid #8b4513;border-radius:6px;background:#fff;color:#2a1810;cursor:pointer;min-width:200px}.category-select:focus{outline:none;border-color:#d2691e;box-shadow:0 0 0 3px #d2691e33}.item-count{margin-left:auto;padding:6px 12px;background:#8b4513;color:#f4e8d0;border-radius:4px;font-size:14px;font-weight:700}.gear-table-wrapper{background:#f9f5ee;border:2px solid #8b4513;border-radius:8px;padding:20px;overflow-x:auto;box-shadow:0 4px 8px #0003;margin-bottom:20px}.gear-table{width:100%;border-collapse:collapse;font-size:14px}.gear-table thead{background:#8b4513;color:#f4e8d0;position:sticky;top:0;z-index:10}.gear-table th{padding:12px 10px;text-align:left;font-weight:700;border:1px solid #5a2f0f;letter-spacing:1px;text-transform:uppercase;font-size:13px}.gear-table th.sortable{cursor:pointer;user-select:none;transition:background-color .2s}.gear-table th.sortable:hover{background:sienna}.gear-table tbody tr{border-bottom:1px solid #d4c4a8;transition:background-color .2s,transform .1s}.gear-table tbody tr.selectable-row{cursor:pointer}.gear-table tbody tr.selectable-row:hover{background:#fffacd!important;transform:translate(2px);box-shadow:-3px 0 #8b4513}.gear-table tbody tr:nth-child(2n){background:#f4ede0}.gear-table tbody tr:nth-child(2n):hover{background:#fff8e7}.gear-table td{padding:10px;border:1px solid #e8dcc8}.no-results{text-align:center;padding:40px!important;font-style:italic;color:#888;font-size:16px}.item-name{font-weight:700;color:#5a2f0f;min-width:200px}.item-price{color:#228b22;font-weight:700;min-width:80px}.item-notes{font-style:italic;color:#5a2f0f;font-size:13px;max-width:300px}.gear-footer{padding:15px;background:#f9f5ee;border:2px solid #8b4513;border-radius:8px;font-size:14px;line-height:1.6}.gear-footer p{margin:5px 0}.gear-footer strong{color:#5a2f0f}@media (max-width: 768px){.gear-page{padding:15px 10px}.gear-title{font-size:28px}.gear-controls{flex-direction:column;align-items:center;width:100%}.gear-filter{flex-direction:column;align-items:center;gap:10px;width:100%}.gear-search{min-width:unset;width:100%}.expand-collapse-controls{width:100%;justify-content:center}.category-select{width:100%;font-size:14px}.item-count{margin-left:0;width:100%;text-align:center}.selected-items-section{text-align:center;padding:15px 10px}.selected-items-section h2{font-size:20px;margin-bottom:10px}.selected-category{margin-bottom:10px}.selected-category h3{font-size:16px;margin-bottom:8px}.selected-items-list{align-items:center;gap:6px;flex-direction:row;flex-wrap:wrap;justify-content:center}.selected-item{max-width:calc(50% - 3px);min-width:150px;flex:1 1 auto;justify-content:center;text-align:center;flex-wrap:wrap;padding:8px 10px;gap:6px}.selected-item .item-name{min-width:unset;font-size:14px;width:100%}.selected-item .item-details{font-size:12px;width:100%}.selected-item .remove-btn{width:28px;height:28px;font-size:16px;margin-top:4px}.gear-table-wrapper{text-align:center}.gear-table{font-size:11px;display:block;overflow-x:auto;margin:0 auto}.gear-table thead{display:none}.gear-table tbody{display:block}.gear-table tr{display:block;margin-bottom:15px;border:2px solid #8b4513;border-radius:8px;padding:10px;background:#f9f5ee;margin-left:auto;margin-right:auto;text-align:center}.gear-table td{display:flex;justify-content:center;align-items:center;padding:8px 5px;border:none;border-bottom:1px solid #ddd;text-align:center;flex-direction:column;gap:5px}.gear-table td:last-child{border-bottom:none}.gear-table td:before{content:attr(data-label);font-weight:700;color:#8b4513;margin-right:0;text-align:center;display:block;width:100%}.item-name,.item-price,.item-notes{min-width:unset;text-align:center;width:100%;max-width:unset}.gear-actions{justify-content:center;gap:5px}.gear-btn{padding:6px 10px;font-size:11px}.gear-footer{text-align:center}}@media (max-width: 480px){.gear-page{padding:10px 5px}.gear-title{font-size:24px}.gear-table{font-size:10px}.gear-table tr{padding:8px}.gear-table td{padding:6px 3px;font-size:12px}.gear-btn{padding:5px 8px;font-size:10px}}@media print{.gear-page{background:#fff}.gear-header,.gear-filter,.gear-table-wrapper,.gear-footer{border:1px solid #000;box-shadow:none}.gear-table thead{print-color-adjust:exact;-webkit-print-color-adjust:exact}}.weapon-type-header{background:#8b45134d!important;cursor:pointer!important;user-select:none;transition:background .2s ease}.weapon-type-header:hover{background:#8b451366!important}.weapon-type-header td{font-weight:700!important;padding:12px!important;color:#2a1810!important;font-size:16px;border-top:2px solid #8b4513;border-bottom:2px solid #8b4513}.edges-hindrances-page{padding:20px;max-width:1400px;margin:0 auto;background:linear-gradient(135deg,#2d1b0e,#1a1a1a);min-height:100vh;color:beige;font-family:Georgia,Times New Roman,serif}.page-header{text-align:center;margin-bottom:30px;padding:20px;background:#8b451333;border:2px solid #8b4513;border-radius:8px}.page-header h1{color:#d2691e;font-size:2.5rem;margin:0 0 10px;text-shadow:2px 2px 4px rgba(0,0,0,.5)}.subtitle{color:#e0e0e0;font-size:1.1rem;margin:0;font-style:italic}.view-toggle{display:flex;gap:10px;justify-content:center;margin-bottom:20px}.toggle-btn{padding:12px 30px;background:#3d2817;border:2px solid #8b4513;border-radius:8px;color:beige;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s ease;font-family:Georgia,serif}.toggle-btn:hover{background:#4d3827;transform:translateY(-2px);box-shadow:0 4px 8px #0000004d}.toggle-btn.active{background:#8b4513;color:#fff;border-color:#d2691e}.filters{display:flex;gap:15px;margin-bottom:25px;flex-wrap:wrap}.search-input,.category-select{padding:12px 16px;background:#2d1b0e;border:2px solid #8b4513;border-radius:8px;color:beige;font-size:1rem;font-family:Georgia,serif}.search-input{flex:1;min-width:250px}.category-select{min-width:180px;cursor:pointer}.search-input::placeholder{color:#a0a0a0}.search-input:focus,.category-select:focus{outline:none;border-color:#d2691e;box-shadow:0 0 0 3px #d2691e33}.content-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:20px;margin-bottom:40px}.item-card{background:linear-gradient(135deg,#3d2817,#2d1b0e);border:2px solid #8b4513;border-radius:12px;padding:20px;transition:all .3s ease;box-shadow:0 4px 8px #0000004d}.item-card:hover{transform:translateY(-4px);box-shadow:0 8px 16px #0006;border-color:#d2691e}.edge-card{border-left:4px solid #228b22}.hindrance-card{border-left:4px solid #dc143c}.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;padding-bottom:10px;border-bottom:2px solid #8b4513}.card-header h3{color:#d2691e;margin:0;font-size:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.3)}.category-badge{background:#8b4513;color:#fff;padding:4px 12px;border-radius:12px;font-size:.85rem;font-weight:600}.description{color:#e0e0e0;line-height:1.6;margin-bottom:15px;font-style:italic}.requirements{background:#8b45134d;border-left:3px solid #d2691e;padding:10px;margin-bottom:15px;color:beige;border-radius:4px}.requirements strong{color:#d2691e}.selection-required{background:#d2691e33;border:2px solid #d2691e;padding:15px;margin-bottom:15px;border-radius:6px}.selection-required label{display:block;color:#d2691e;margin-bottom:8px;font-size:1rem}.selection-required .selection-input{width:100%;padding:10px;background:#0000004d;border:2px solid #8b4513;border-radius:4px;color:beige;font-family:Georgia,serif;font-size:1rem}.selection-required .selection-input:focus{outline:none;border-color:#d2691e;box-shadow:0 0 8px #d2691e80}.selection-required select.selection-input option{background:#2d1b0e;color:beige}.levels{display:flex;flex-direction:column;gap:15px}.level-item{background:#0003;padding:15px;border-radius:8px;border:1px solid rgba(139,69,19,.5)}.level-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.level-name{font-weight:600;color:#d2691e;font-size:1.1rem}.cost{background:#228b22;color:#fff;padding:4px 12px;border-radius:8px;font-weight:600;font-size:.9rem}.cost.negative{background:#dc143c}.level-description{color:#e0e0e0;margin-bottom:8px;line-height:1.5}.game-effect{color:#b8b8b8;font-size:.95rem;margin-top:8px;padding:8px;background:#0003;border-radius:4px;border-left:2px solid #8b4513}.select-btn{margin-top:12px;padding:10px 20px;background:#8b4513;border:2px solid #d2691e;border-radius:6px;color:#fff;font-weight:600;cursor:pointer;transition:all .3s ease;width:100%;font-family:Georgia,serif;font-size:1rem}.select-btn:hover{background:#d2691e;transform:translateY(-2px);box-shadow:0 4px 8px #0000004d}.select-btn:active{transform:translateY(0)}.select-btn:disabled{background:#666;border-color:#999;cursor:not-allowed;opacity:.5}.select-btn:disabled:hover{transform:none;box-shadow:none}.no-results{text-align:center;padding:60px 20px;color:#a0a0a0;font-size:1.2rem;font-style:italic}@media (max-width: 768px){.edges-hindrances-page{padding:15px 10px}.content-grid{grid-template-columns:1fr;gap:15px}.page-header h1{font-size:1.8rem}.filters{flex-direction:column;gap:10px}.search-input,.category-filter{width:100%;font-size:14px}.item-card{padding:15px}.item-card h3{font-size:1.2rem}.item-actions{flex-direction:column;gap:8px}.item-actions button{width:100%}}@media (max-width: 480px){.edges-hindrances-page{padding:10px 5px}.page-header h1{font-size:1.5rem}.item-card{padding:12px}.item-card h3{font-size:1.1rem}.item-card p{font-size:.9rem}}.arcane-page{padding:20px;background:linear-gradient(to bottom,#e8dcc8,#f4ede0);min-height:100vh;font-family:Georgia,Times New Roman,serif;color:#2a1810}.arcane-header{text-align:center;margin-bottom:25px;padding:20px;background:#f9f5ee;border:2px solid #8b4513;border-radius:8px;box-shadow:0 4px 8px #0003}.arcane-title{font-size:42px;font-weight:700;color:#8b4513;text-shadow:2px 2px 4px rgba(0,0,0,.3);letter-spacing:3px;margin:0 0 10px}.arcane-subtitle{font-size:18px;color:#5a2f0f;font-style:italic;margin:0 0 8px}.arcane-instructions{font-size:14px;color:#8b4513;font-weight:700;margin:0;padding:8px;background:#fff3e0;border-radius:4px;display:inline-block}.selected-powers-section{margin:20px 0;padding:20px;background:#f9f5ee;border:3px solid #8b4513;border-radius:8px;box-shadow:0 4px 8px #0003}.selected-powers-section h2{margin:0 0 15px;color:#8b4513;font-size:24px;text-align:center;border-bottom:2px solid #d2691e;padding-bottom:10px}.selected-category{margin-bottom:20px}.selected-category:last-child{margin-bottom:0}.selected-category h3{color:#5a2f0f;font-size:18px;margin:0 0 10px;padding:8px;background:#d2691e33;border-left:4px solid #d2691e}.selected-powers-list{display:flex;flex-wrap:wrap;gap:10px}.selected-power{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#fff;border:2px solid #8b4513;border-radius:6px;box-shadow:0 2px 4px #0000001a}.selected-power .power-name{font-weight:700;color:#2a1810}.selected-power .remove-btn{background:#d32f2f;color:#fff;border:none;border-radius:50%;width:24px;height:24px;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.selected-power .remove-btn:hover{background:#b71c1c;transform:scale(1.1)}.arcane-controls{display:flex;gap:15px;margin-bottom:20px;flex-wrap:wrap;align-items:center}.arcane-search{display:flex;align-items:center;gap:10px;padding:12px 15px;background:#f9f5ee;border:2px solid #8b4513;border-radius:8px;flex:1;min-width:300px;position:relative}.arcane-search label{font-weight:700;color:#5a2f0f;font-size:14px}.search-input{flex:1;padding:8px 32px 8px 12px;font-family:Georgia,serif;font-size:14px;border:2px solid #8b4513;border-radius:6px;background:#fff;color:#2a1810}.search-input:focus{outline:none;border-color:#d2691e;box-shadow:0 0 0 3px #d2691e33}.clear-search{position:absolute;right:20px;background:#dc143c;color:#fff;border:none;border-radius:50%;width:24px;height:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700}.clear-search:hover{background:#b01030}.expand-collapse-controls{display:flex;gap:8px;padding:8px 12px;background:#f9f5ee;border:2px solid #8b4513;border-radius:8px}.control-btn{padding:8px 16px;background:linear-gradient(to bottom,#d2691e,#b8551a);color:#fff;border:2px solid #8b4513;border-radius:6px;font-family:Georgia,serif;font-size:13px;font-weight:700;cursor:pointer;transition:all .2s;text-shadow:1px 1px 2px rgba(0,0,0,.3);white-space:nowrap}.control-btn:hover{background:linear-gradient(to bottom,#e07527,#c96020);transform:translateY(-1px);box-shadow:0 3px 6px #0000004d}.control-btn:active{transform:translateY(0);box-shadow:0 1px 3px #0000004d}.item-count{padding:10px 15px;background:#f9f5ee;border:2px solid #8b4513;border-radius:8px;font-weight:700;color:#5a2f0f;white-space:nowrap}.arcane-powers-wrapper{display:flex;flex-direction:column;gap:20px}.power-section{background:#f9f5ee;border:2px solid #8b4513;border-radius:8px;box-shadow:0 4px 8px #0003;overflow:hidden}.section-header{display:flex;align-items:center;gap:12px;padding:15px 20px;background:#8b45134d;cursor:pointer;user-select:none;transition:background .2s ease}.section-header:hover{background:#8b451366}.section-header h2{margin:0;color:#2a1810;font-size:24px;font-weight:700}.expand-icon{font-size:18px;color:#8b4513}.powers-table-wrapper{padding:20px;overflow-x:auto}.powers-table{width:100%;border-collapse:collapse;background:#fff;box-shadow:0 2px 4px #0000001a}.powers-table thead{background:linear-gradient(to bottom,#8b4513,#6d3710);color:#fff}.powers-table th{padding:12px;text-align:left;font-weight:700;font-size:14px;border-bottom:2px solid #5a2f0f;text-shadow:1px 1px 2px rgba(0,0,0,.3)}.powers-table tbody tr{transition:background .2s;border-bottom:1px solid #ddd}.powers-table tbody tr:hover{background:#fff3e0}.powers-table tbody tr.selected-row{background:#4caf501a}.powers-table td{padding:10px 12px;font-size:14px;color:#2a1810}.powers-table td.power-name{font-weight:700;color:#8b4513}.add-power-btn,.remove-power-btn{padding:6px 12px;border:2px solid;border-radius:6px;font-family:Georgia,serif;font-size:12px;font-weight:700;cursor:pointer;transition:all .2s;text-shadow:1px 1px 2px rgba(0,0,0,.2);white-space:nowrap}.add-power-btn{background:linear-gradient(to bottom,#4caf50,#388e3c);color:#fff;border-color:#2e7d32}.add-power-btn:hover{background:linear-gradient(to bottom,#66bb6a,#4caf50);transform:translateY(-1px);box-shadow:0 2px 4px #0000004d}.remove-power-btn{background:linear-gradient(to bottom,#f44336,#d32f2f);color:#fff;border-color:#c62828}.remove-power-btn:hover{background:linear-gradient(to bottom,#ef5350,#f44336);transform:translateY(-1px);box-shadow:0 2px 4px #0000004d}.add-power-btn:active,.remove-power-btn:active{transform:translateY(0);box-shadow:0 1px 2px #0000004d}.no-results{padding:40px;text-align:center;font-size:18px;color:#8b4513;background:#f9f5ee;border:2px solid #8b4513;border-radius:8px;font-style:italic}.arcane-footer{margin-top:30px;padding:20px;background:#f9f5ee;border:2px solid #8b4513;border-radius:8px;text-align:center}.arcane-footer p{margin:0;color:#5a2f0f;font-size:14px;font-style:italic}@media (max-width: 768px){.arcane-page{padding:15px 10px}.arcane-title{font-size:28px}.arcane-controls{flex-direction:column;align-items:center;gap:10px;width:100%}.arcane-search{width:100%;font-size:14px}.selected-powers-section{text-align:center}.selected-powers-list{justify-content:center}.powers-table-wrapper{text-align:center}.powers-table{font-size:11px;display:block;overflow-x:auto;margin:0 auto}.powers-table thead{display:none}.powers-table tbody{display:block}.powers-table tr{display:block;margin-bottom:15px;border:2px solid #8b4513;border-radius:8px;padding:10px;background:#f9f5ee;margin-left:auto;margin-right:auto;text-align:center}.powers-table td{display:flex;justify-content:center;align-items:center;padding:8px 5px;border:none;border-bottom:1px solid #ddd;text-align:center;flex-direction:column;gap:5px}.powers-table td:last-child{border-bottom:none}.powers-table td:before{content:attr(data-label);font-weight:700;color:#8b4513;margin-right:0;text-align:center;display:block;width:100%}.power-name,.power-level,.power-description{text-align:center;width:100%;max-width:unset}.power-actions{justify-content:center;gap:5px}}@media (max-width: 480px){.arcane-page{padding:10px 5px}.arcane-title{font-size:24px}.powers-table{font-size:10px}.powers-table tr{padding:8px}.powers-table td{padding:6px 3px;font-size:12px}}@media print{.arcane-page{background:#fff}.arcane-controls,.add-power-btn,.remove-power-btn,.remove-btn{display:none}.arcane-header,.power-section,.arcane-footer{border:1px solid #000;box-shadow:none}.powers-table thead{print-color-adjust:exact;-webkit-print-color-adjust:exact}}.tables-page{padding:40px;max-width:1400px;margin:0 auto;background:linear-gradient(to bottom,#f9f5ee,#f4ede0);min-height:100vh}.page-title{text-align:center;font-size:2.5rem;color:#8b4513;margin-bottom:30px;text-shadow:2px 2px 4px rgba(0,0,0,.2);font-family:Georgia,Times New Roman,serif}.tables-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:30px}.table-section{background:#fff;border:3px solid #8b4513;border-radius:8px;padding:20px;box-shadow:0 4px 8px #0003}.table-section.full-width{grid-column:1 / -1}.table-section h2{font-size:1.5rem;color:#8b4513;margin-bottom:15px;text-align:center;border-bottom:2px solid #d2691e;padding-bottom:10px;font-family:Georgia,Times New Roman,serif}.game-table{width:100%;border-collapse:collapse;margin-bottom:10px}.game-table thead{background:linear-gradient(to bottom,#d2691e,#b8571e);color:#f4e8d0}.game-table th{padding:12px;text-align:left;font-weight:700;border:1px solid #8b4513;font-family:Georgia,Times New Roman,serif}.game-table td{padding:10px 12px;border:1px solid #d2b48c;background:#faf8f3}.game-table tbody tr:nth-child(2n) td{background:#f4ede0}.game-table tbody tr:hover td{background:#e8dcc8}.scare-table td{vertical-align:top}.scare-table td:first-child{font-weight:700;white-space:nowrap;width:80px;text-align:center}.scare-table td:last-child{line-height:1.6}.scare-table strong{color:#8b4513}.table-notes{margin-top:15px;padding:15px;background:#f9f5ee;border-left:4px solid #d2691e;border-radius:4px}.table-notes p{margin:8px 0;color:#2a1810;font-size:.95rem;line-height:1.5}.table-notes strong{color:#8b4513;font-weight:700}@media (max-width: 768px){.tables-container{grid-template-columns:1fr}.tables-page{padding:20px}.page-title{font-size:2rem}.table-section h2{font-size:1.25rem}.game-table th,.game-table td{padding:8px;font-size:.9rem}}.account-settings-overlay{position:fixed;inset:0;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.account-settings-modal{background:linear-gradient(to bottom,#f9f5ee,#f4ede0);border:4px solid #8b4513;border-radius:12px;max-width:600px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 8px 32px #00000080}.account-settings-header{background:linear-gradient(to bottom,#d2691e,#b8571e);color:#f4e8d0;padding:20px;display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #8b4513;border-radius:8px 8px 0 0}.account-settings-header h2{margin:0;font-size:1.8rem;font-family:Georgia,Times New Roman,serif;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.close-btn{background:transparent;border:none;color:#f4e8d0;font-size:2rem;cursor:pointer;padding:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;transition:transform .2s}.close-btn:hover{transform:scale(1.2)}.account-settings-content{padding:30px}.settings-section{margin-bottom:30px;padding-bottom:30px;border-bottom:2px solid #d2691e}.settings-section:last-child{border-bottom:none;margin-bottom:0}.settings-section h3{color:#8b4513;font-size:1.4rem;margin-bottom:20px;font-family:Georgia,Times New Roman,serif;text-shadow:1px 1px 2px rgba(0,0,0,.1)}.info-field{display:flex;align-items:center;margin-bottom:15px;padding:12px;background:#fff9;border-radius:6px;border:1px solid #d2691e}.info-field label{font-weight:700;color:#8b4513;min-width:120px;font-size:1rem}.info-field span{color:#5a3a1a;font-size:1rem}.change-password-btn{padding:12px 24px;font-size:1rem}.password-change-form{background:#fff6;padding:20px;border-radius:8px;border:2px solid #d2691e}.form-group{margin-bottom:20px}.form-group label{display:block;color:#8b4513;font-weight:700;margin-bottom:8px;font-size:1rem}.form-group input{width:100%;padding:12px;border:2px solid #d2691e;border-radius:6px;font-size:1rem;background:#fff;box-sizing:border-box;font-family:Arial,sans-serif}.form-group input:focus{outline:none;border-color:#8b4513;box-shadow:0 0 5px #8b45134d}.form-actions{display:flex;gap:15px;margin-top:20px}.form-actions button{flex:1;padding:12px 24px;font-size:1rem}.western-btn.secondary{background:linear-gradient(to bottom,#999,#777);border-color:#555}.western-btn.secondary:hover{background:linear-gradient(to bottom,#888,#666)}.message{margin-top:20px;padding:15px;border-radius:6px;text-align:center;font-weight:700;animation:slideIn .3s ease}.message.success{background:#d4edda;border:2px solid #28a745;color:#155724}.message.error{background:#f8d7da;border:2px solid #dc3545;color:#721c24}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){.account-settings-modal{max-width:95%;margin:10px}.account-settings-content{padding:20px}.info-field{flex-direction:column;align-items:flex-start}.info-field label{margin-bottom:5px}.form-actions{flex-direction:column}.form-actions button{width:100%}}.user-menu-container{position:relative;display:inline-block}.user-menu-btn{display:flex;align-items:center;gap:10px;padding:10px 20px;background:linear-gradient(to bottom,#d2691e,#b8571e);border:3px solid #8b4513;border-radius:8px;color:#f4e8d0;font-weight:700;font-size:1rem;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 6px #0000004d;font-family:Georgia,Times New Roman,serif}.user-menu-btn:hover{background:linear-gradient(to bottom,#e07a2e,#c8671e);transform:translateY(-2px);box-shadow:0 6px 8px #0006}.user-menu-btn:active{transform:translateY(0);box-shadow:0 2px 4px #0000004d}.user-name{font-size:1rem}.menu-icon{font-size:.8rem;transition:transform .3s ease}.user-menu-dropdown{position:absolute;top:calc(100% + 10px);right:0;background:linear-gradient(to bottom,#f9f5ee,#f4ede0);border:3px solid #8b4513;border-radius:8px;box-shadow:0 8px 16px #0006;min-width:220px;z-index:1000;overflow:hidden;animation:dropdownSlide .2s ease}@keyframes dropdownSlide{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.menu-item{display:flex;align-items:center;gap:12px;width:100%;padding:15px 20px;background:transparent;border:none;border-bottom:2px solid #d2691e;color:#5a3a1a;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s ease;text-align:left;font-family:Georgia,Times New Roman,serif}.menu-item:last-child{border-bottom:none}.menu-item:hover{background:#d2691e33;padding-left:25px}.menu-item.logout:hover{background:#dc354533;color:#721c24}.menu-item .menu-icon{font-size:1.2rem;width:24px;text-align:center}@media (max-width: 768px){.user-menu-btn{padding:8px 15px;font-size:.9rem}.user-name{font-size:.9rem}.user-menu-dropdown{min-width:200px}.menu-item{padding:12px 15px;font-size:.95rem}}.modal-overlay{position:fixed;inset:0;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:2000;padding:20px}.account-manager-modal{background:linear-gradient(135deg,#2c1810,#1a0f0a);border:3px solid #8B4513;border-radius:8px;box-shadow:0 10px 40px #000c;max-width:1200px;width:100%;max-height:85vh;overflow:hidden;display:flex;flex-direction:column}.account-manager-header{display:flex;justify-content:space-between;align-items:center;padding:20px 30px;background:linear-gradient(135deg,#8b4513,#654321);border-bottom:2px solid #D2691E}.account-manager-header h2{color:bisque;margin:0;font-size:1.8rem;text-shadow:2px 2px 4px rgba(0,0,0,.5)}.close-btn{background:#8b0000;color:#fff;border:none;width:35px;height:35px;border-radius:50%;font-size:1.5rem;cursor:pointer;transition:all .2s}.close-btn:hover{background:#dc143c;transform:scale(1.1)}.users-list{flex:1;overflow-y:auto;padding:20px}.users-table{width:100%;border-collapse:collapse;background:#8b45131a}.users-table thead{background:#8b45134d;position:sticky;top:0;z-index:10}.users-table th{padding:12px;text-align:left;color:bisque;font-weight:700;border-bottom:2px solid #8B4513}.users-table td{padding:12px;color:#deb887;border-bottom:1px solid rgba(139,69,19,.3)}.users-table tr:hover{background:#8b451333}.inactive-user{opacity:.5}.role-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:.85rem;font-weight:700;text-transform:uppercase}.role-badge-admin{background:#dc143c;color:#fff}.role-badge-marshal{background:#4169e1;color:#fff}.role-badge-cowpoke{background:#8b4513;color:bisque}.role-badge-default{background:#696969;color:#fff}.role-edit{display:flex;gap:5px;align-items:center}.role-select{padding:4px 8px;background:#2c1810;color:#deb887;border:1px solid #8B4513;border-radius:4px;font-size:.9rem}.actions-cell{display:flex;gap:8px;flex-wrap:wrap}.btn-impersonate,.btn-edit,.btn-delete,.btn-save,.btn-cancel{padding:6px 12px;border:none;border-radius:4px;cursor:pointer;font-size:.85rem;transition:all .2s;white-space:nowrap}.btn-impersonate{background:#4169e1;color:#fff}.btn-impersonate:hover{background:#1e90ff;transform:translateY(-1px)}.btn-edit{background:#daa520;color:#fff}.btn-edit:hover{background:gold;transform:translateY(-1px)}.btn-delete{background:#8b0000;color:#fff}.btn-delete:hover{background:#dc143c;transform:translateY(-1px)}.btn-save{background:#228b22;color:#fff;padding:4px 8px}.btn-save:hover{background:#32cd32}.btn-cancel{background:#696969;color:#fff;padding:4px 8px}.btn-cancel:hover{background:gray}.loading,.error-message,.no-users{text-align:center;padding:40px;color:#deb887;font-size:1.1rem}.error-message{color:#dc143c}@media (max-width: 768px){.account-manager-modal{max-width:100%;max-height:95vh}.users-table{font-size:.85rem}.users-table th,.users-table td{padding:8px 4px}.actions-cell{flex-direction:column}}:root{--deadlands-bg: #3a3a3a;--deadlands-paper: #f5f5f0;--deadlands-paper-dark: #e8e8e0;--deadlands-border: #1a1a1a;--deadlands-text: #1a1a1a;--deadlands-accent: #5a4a3a;--deadlands-accent-dark: #3a2a1a;--deadlands-gold: #EDC967;--deadlands-red: #8b0000;--deadlands-shadow: rgba(0, 0, 0, .5);--deadlands-line: #333}body{background-color:var(--deadlands-bg);background-image:radial-gradient(circle at 20% 50%,rgba(90,74,58,.3) 0%,transparent 50%),radial-gradient(circle at 80% 80%,rgba(70,60,50,.3) 0%,transparent 50%);font-family:Times New Roman,Georgia,serif;color:var(--deadlands-text);margin:0;padding:0}#root{max-width:100%;margin:0;padding:0}.deadlands-app{background-color:var(--deadlands-paper);background-image:url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05' /%3E%3C/svg%3E");position:relative;min-height:100vh;box-shadow:0 0 30px #000c,inset 0 0 100px #0000001a;mask-image:linear-gradient(to right,transparent 0%,black 2%,black 98%,transparent 100%);-webkit-mask-image:linear-gradient(to right,transparent 0%,black 2%,black 98%,transparent 100%)}.deadlands-app-header{text-align:center;padding:20px;background:linear-gradient(to bottom,#f9f5ee,#f4ede0);border-bottom:3px double #8b4513;box-shadow:0 4px 8px #0003}.deadlands-app-title{font-size:3rem;font-weight:700;color:#8b4513;font-family:Georgia,Times New Roman,serif;letter-spacing:4px;margin:0;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.deadlands-app-subtitle{font-size:1.2rem;font-style:italic;color:#5a2f0f;margin:5px 0 0}.deadlands-nav-tabs{display:flex;justify-content:center;gap:15px;padding:15px 20px;background:#f4ede0;border-bottom:2px solid #8b4513;flex-wrap:wrap}.nav-tab{padding:12px 24px;background:#8b4513;color:#f4e8d0;border:3px solid #5a2f0f;border-radius:8px;font-family:Georgia,serif;font-size:16px;font-weight:700;cursor:pointer;transition:all .3s;box-shadow:0 4px 6px #0000004d}.nav-tab:hover{background:sienna;transform:translateY(-2px);box-shadow:0 6px 8px #0006}.nav-tab.active{background:#d2691e;border-color:#8b4513;box-shadow:inset 0 2px 4px #0000004d}.character-management{background-color:var(--deadlands-paper-dark);border-bottom:2px solid var(--deadlands-border);padding:10px 20px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;box-shadow:0 2px 4px #0000001a}.character-management select,.character-management button{padding:6px 12px;font-size:.9rem;border:1px solid var(--deadlands-border);background-color:var(--deadlands-paper);color:var(--deadlands-text);cursor:pointer;font-family:Times New Roman,Georgia,serif}.character-management button:hover{background-color:var(--deadlands-paper-dark)}.deadlands-tabs,.deadlands-tab{display:none}.western-input{background-color:#fff;border:2px solid var(--deadlands-border);border-radius:4px;padding:8px 12px;font-size:1rem;font-family:Georgia,serif;color:var(--deadlands-text);width:100%;max-width:100%;box-sizing:border-box;transition:border-color .3s ease}.western-input:focus{outline:none;border-color:var(--deadlands-accent);box-shadow:0 0 0 2px #a0522d33}.western-input:disabled{background-color:#f5f5f5;color:#666;cursor:not-allowed}.western-input.inline{background:transparent;border:1px solid #ccc;padding:4px 8px}.western-select{background-color:#fff;border:2px solid var(--deadlands-border);border-radius:4px;padding:8px 12px;font-size:1rem;font-family:Georgia,serif;color:var(--deadlands-text);width:100%;box-sizing:border-box;cursor:pointer}.western-select:focus{outline:none;border-color:var(--deadlands-accent);box-shadow:0 0 0 2px #a0522d33}.western-select:disabled{background-color:#f5f5f5;color:#666;cursor:not-allowed}.western-btn{background-color:var(--deadlands-accent);border:2px solid var(--deadlands-accent-dark);border-radius:6px;padding:10px 20px;font-size:1rem;font-weight:700;font-family:Georgia,serif;color:#fff;cursor:pointer;transition:all .3s ease;box-shadow:0 3px 6px var(--deadlands-shadow)}.western-btn:hover{background-color:var(--deadlands-accent-dark);transform:translateY(-2px);box-shadow:0 5px 10px var(--deadlands-shadow)}.western-btn:active{transform:translateY(0);box-shadow:0 2px 4px var(--deadlands-shadow)}.western-btn.primary{background-color:var(--deadlands-gold);border-color:#edc967;color:var(--deadlands-text)}.western-btn.primary:hover{background-color:#edc967}.western-btn:disabled{background-color:#ccc;border-color:#999;color:#666;cursor:not-allowed;transform:none;box-shadow:none}.western-btn.save-btn{background-color:#228b22;border-color:#1a6b1a;color:#fff}.western-btn.save-btn:hover{background-color:#1a6b1a}.western-btn.character-manager-btn{background:linear-gradient(135deg,#4a90e2,#357abd);border-color:#2a5a8d;color:#fff;font-size:16px;padding:12px 24px}.western-btn.character-manager-btn:hover{background:linear-gradient(135deg,#357abd,#4a90e2)}.western-textarea{background-color:#fff;border:2px solid var(--deadlands-border);border-radius:4px;padding:12px;font-size:1rem;font-family:Georgia,serif;color:var(--deadlands-text);width:100%;min-height:150px;box-sizing:border-box;resize:vertical}.western-textarea:focus{outline:none;border-color:var(--deadlands-accent);box-shadow:0 0 0 2px #a0522d33}.western-textarea:disabled{background-color:#f5f5f5;color:#666;cursor:not-allowed}.panel-title{font-size:2rem;font-weight:700;color:var(--deadlands-accent-dark);margin:0 0 20px;border-bottom:2px solid var(--deadlands-border);padding-bottom:10px}.section-title{font-size:1.5rem;font-weight:700;color:var(--deadlands-accent);margin:20px 0 15px;padding-bottom:8px;border-bottom:1px solid var(--deadlands-border)}.category-title{font-size:1.3rem;font-weight:700;color:var(--deadlands-accent-dark);margin:0 0 15px;text-align:center}.remove-btn{background-color:var(--deadlands-red);border:none;border-radius:50%;width:28px;height:28px;font-size:1.5rem;font-weight:700;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;line-height:1}.remove-btn:hover{background-color:#a00000;transform:scale(1.1)}.no-items{text-align:center;padding:40px;color:#999;font-style:italic;font-size:1.1rem}.character-management{display:flex;gap:15px;margin:20px 0;flex-wrap:wrap;justify-content:center}::-webkit-scrollbar{width:12px;height:12px}::-webkit-scrollbar-track{background-color:var(--deadlands-paper-dark);border-radius:6px}::-webkit-scrollbar-thumb{background-color:var(--deadlands-accent);border-radius:6px;border:2px solid var(--deadlands-paper-dark)}::-webkit-scrollbar-thumb:hover{background-color:var(--deadlands-accent-dark)}.character-sheet-container{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding:20px;max-width:1600px;margin:0 auto}.character-sheet-page{background-color:var(--deadlands-paper);padding:30px;box-shadow:0 4px 12px #0000004d;position:relative;min-height:1100px}.character-sheet-page:before{content:"";position:absolute;inset:0;border:2px solid var(--deadlands-border);pointer-events:none;box-shadow:inset 0 0 20px #0000000d}@media (max-width: 1200px){.character-sheet-container{grid-template-columns:1fr}}@media (max-width: 768px){.deadlands-app-title{font-size:2rem;letter-spacing:2px}.deadlands-app-subtitle{font-size:1rem}.deadlands-nav-tabs{gap:8px;padding:10px}.nav-tab{padding:10px 16px;font-size:14px;flex:1 1 auto;min-width:120px}.character-header-bar{flex-direction:column;gap:10px;padding:10px}.character-dropdown{width:100%}.character-sheet-page{padding:20px;min-height:auto}}@media (max-width: 480px){.deadlands-app-header{padding:15px 10px}.deadlands-app-title{font-size:1.5rem;letter-spacing:1px}.deadlands-app-subtitle{font-size:.9rem}.deadlands-nav-tabs{gap:5px;padding:8px 5px}.nav-tab{padding:8px 12px;font-size:12px;min-width:100px;white-space:nowrap}.nav-tab img{width:1em!important;height:1em!important}.character-sheet-page{padding:15px}.deadlands-app{mask-image:none;-webkit-mask-image:none}}@media (max-height: 500px) and (orientation: landscape){.deadlands-app-header{padding:10px}.deadlands-app-title{font-size:1.3rem;letter-spacing:1px}.deadlands-app-subtitle{font-size:.8rem}.deadlands-nav-tabs{gap:5px;padding:5px}.nav-tab{padding:6px 10px;font-size:11px}}:root{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;line-height:1.5;font-weight:400;color-scheme:dark!important;color:#fff;background-color:#1a1a1a;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;--bg-primary: #1a1a1a;--bg-secondary: #2d2d2d;--bg-accent: #3a3a3a;--input-bg: #1a1a1a;--border-color: #444;--text-primary: #ffffff;--text-secondary: #e0e0e0;--text-muted: #999;--accent-color: #d4a76a;--success-color: #27ae60;--danger-color: #e74c3c}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}.character-sheet{max-width:1200px;margin:0 auto;padding:20px;background:#2d2d2d;border-radius:8px;box-shadow:0 4px 6px #0000004d}.character-header{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:10px}.character-basics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:15px;margin-bottom:30px}.stat-block{text-align:center;padding:15px;background:#fff;border-radius:8px;border:2px solid #ddd;color:#333}.stat-value{font-size:24px;font-weight:700;color:var(--success-color)}.stat-modifier{font-size:14px;color:var(--text-muted)}.skills-section,.equipment-section{margin-bottom:30px}.skills-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}.skill-item{display:flex;justify-content:space-between;padding:8px;background:#fff;border-radius:4px;border:1px solid #ddd;color:#333}.form-group{margin-bottom:15px}.form-group label{display:block;margin-bottom:5px;font-weight:500;color:#333}.form-group input,.form-group select,.form-group textarea{width:100%;padding:8px;border:1px solid #ddd;border-radius:4px;font-size:14px}@media (prefers-color-scheme: dark){.character-sheet{background:#2a2a2a;color:#fff}.stat-block,.skill-item,.form-group input,.form-group select,.form-group textarea{background:#1a1a1a;border-color:#444;color:#fff}.form-group label{color:#fff}}@media (max-width: 768px){button,a,input[type=button],input[type=submit],select,.clickable{min-height:44px;min-width:44px}button:active,a:active{opacity:.7}*{-webkit-tap-highlight-color:rgba(139,69,19,.2);-webkit-touch-callout:none;user-select:none}input,textarea,[contenteditable]{user-select:text;-webkit-user-select:text}*{-webkit-overflow-scrolling:touch}body{padding:0;margin:0}html,input[type=text],input[type=number],input[type=email],input[type=tel],input[type=password],select,textarea{font-size:16px}}@media (max-width: 480px){html{font-size:14px}.container,.panel,.section{padding:10px}input[type=text],input[type=number],input[type=email],input[type=tel],input[type=password],select,textarea{font-size:16px}}@media (max-height: 500px) and (orientation: landscape){.container,.panel,.section{padding:5px 10px}h1{font-size:1.5em;margin:.3em 0}h2{font-size:1.3em;margin:.3em 0}h3{font-size:1.1em;margin:.3em 0}}@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape){.container{max-width:100%;padding:15px 30px}}
