#page-monsters { --monster-green: #49c88b; --monster-gold: #e6bd69; letter-spacing: 0; }
#page-monsters *, .monster-dialog * { box-sizing: border-box; letter-spacing: 0; }
body.show-monsters { padding-top: 14px; }
.show-monsters .site-logo-title { margin-bottom: 10px; }
.show-monsters .site-logo { width: min(70%, 170px); }
.show-monsters .floating-footer { bottom: 0; width: 100%; max-width: 600px; height: 70px; border-radius: 0; background: #0d1612; border: 0; border-top: 1px solid #29372f; backdrop-filter: none; box-shadow: none; }
.floating-footer .monster-nav { width: auto; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; font: inherit; font-size: 11px; font-weight: 600; border-radius: 0; }
.monster-toolbar { display: flex; gap: 12px; align-items: center; min-height: 44px; margin-bottom: 8px; }
.monster-toolbar > span { font-size: 14px; color: #c5ccc8; }
.monster-toolbar h2 { flex: 1; margin: 0; font-size: 22px; line-height: 1.4; }
.monster-toolbar h2 small { margin-left: 8px; font-size: 13px; font-weight: 400; color: #9ca9a2; white-space: nowrap; }
#page-monsters button, .monster-dialog button { font-family: inherit; cursor: pointer; transition: background .15s, color .15s; box-shadow: none; }
#page-monsters button:disabled, .monster-dialog button:disabled { opacity: .45; cursor: wait; }
#page-monsters button:focus-visible, #page-monsters input:focus-visible, .monster-dialog :focus-visible { outline: 2px solid #68d4f5; outline-offset: 3px; }
button.monster-icon { width: 44px; height: 44px; padding: 0; flex-shrink: 0; margin: 0; background: none; border: 0; border-radius: 8px; color: #c6ceca; }
.monster-icon .material-symbols-rounded { font-size: 27px; margin: 0; top: 0; }
button.monster-icon:hover { background: #22352a; }
button.monster-add { background: #48c68a; color: #062216; }
.monster-favorite { margin-left: auto !important; }
.monster-icon.is-favorite { color: #ebbc69; }
.is-favorite .material-symbols-rounded { font-variation-settings: 'FILL' 1; }
.monster-identity { margin-top: 4px; line-height: 1.3; }
.monster-number { color: #e6bd69; font-size: 14px; }
.monster-name-row { display: flex; align-items: center; gap: 6px; }
.monster-name-row h2 { margin: 4px 0; font-size: 26px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; min-width: 0; }
.monster-name-row .monster-icon { width: 32px; height: 36px; }
.monster-level { display: block; color: #49c88b; font-weight: 600; font-size: 15px; margin-top: 0; }
.monster-portrait { height: 300px; width: 100%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; overflow: hidden; }
.monster-portrait img { width: 100%; height: 100%; object-fit: contain; }
.monster-portrait.is-prepared img { width: calc(100% + 80px); height: calc(100% + 120px); max-width: none; flex-shrink: 0; transform: translateY(8px); }
.monster-portrait.is-photo { padding: 8px; }
.monster-portrait.is-photo img { border-radius: 8px; }
.monster-view-switch { display: flex; height: 46px; border: 1px solid #3a4d41; border-radius: 24px; overflow: hidden; margin: 8px 0 16px; }
.monster-view-switch button { flex: 1; padding: 0 5px; margin: 0; background: none; color: #bfc8c2; border: 0; border-radius: 0; font-size: 14px; font-weight: 500; white-space: nowrap; }
.monster-view-switch button + button { border-left: 1px solid #3a4d41; }
.monster-view-switch button.selected { color: #49c88b; background: #162c20; font-weight: 600; }
.monster-view-switch .material-symbols-rounded { font-size: 21px; }
.monster-traits { display: flex; gap: 16px; padding: 8px 0 12px; border-bottom: 1px solid #29372f; font-size: 15px; color: #c2cbc5; }
.monster-traits > span { display: inline-flex; align-items: center; gap: 5px; }
.monster-traits > span + span { border-left: 1px solid #3d4c42; padding-left: 16px; }
.monster-source { display: flex; align-items: center; gap: 16px; padding: 14px 0 6px; }
.monster-source img { width: 96px; height: 82px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.monster-source > div { min-width: 0; }
.monster-source strong { font-size: 17px; font-weight: 500; }
.monster-source p { font-size: 13px; color: #abb8af; margin: 8px 0 0; overflow-wrap: anywhere; }
button.monster-primary, button.monster-outline { width: 100%; min-height: 46px; padding: 11px 14px; margin: 12px 0 0; font-size: 15px; border-radius: 8px; line-height: 1.4; }
button.monster-primary { background: #49c88b; color: #092419; border: 1px solid #49c88b; font-weight: 650; }
button.monster-outline { color: #49c88b; background: #10291b; border: 1px solid #49c88b; font-weight: 500; }
.monster-source + .monster-outline { margin-top: 6px; }
button.monster-primary:hover { background: #60d59c; }
button.monster-outline:hover { background: #1a3826; }
.monster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
button.monster-card { display: block; width: 100%; min-width: 0; margin: 0; padding: 12px; text-align: left; background: #16221c; border: 1px solid #29382f; border-radius: 8px; color: white; }
button.monster-card:hover { background: #1e3026; }
.monster-card-top { display: flex; align-items: center; justify-content: space-between; height: 18px; font-size: 11px; color: #e6bd69; }
.monster-card-top .material-symbols-rounded { font-size: 16px; font-variation-settings: 'FILL' 1; }
.monster-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.monster-card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 17px; font-weight: 500; line-height: 1.4; min-height: 24px; }
.monster-card-meta { display: flex; justify-content: space-between; gap: 6px; color: #49c88b; font-size: 12px; margin-top: 6px; }
.monster-card-meta > span { color: #a4b0a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monster-search-row { display: flex; gap: 10px; align-items: center; }
label.monster-search { flex: 1; display: flex; align-items: center; min-width: 0; margin: 0; border-bottom: 1px solid #394b3f; height: 44px; color: #99aca0; }
.monster-search input { min-width: 0; width: 100%; background: none; color: white; border: 0; outline: 0; padding: 10px 4px; font-size: 14px; font-family: inherit; }
.monster-empty { grid-column: 1 / -1; text-align: center; padding: 60px 12px; color: #a6b2aa; }
.monster-empty > .material-symbols-rounded { font-size: 48px; color: #5c7c68; }
.monster-empty p { font-size: 15px; }
.monster-empty button { max-width: 260px; margin: 25px auto 0; }
button.monster-stone-row, button.monster-draft-row { width: 100%; margin: 0; display: flex; text-align: left; gap: 15px; padding: 14px 0; background: none; color: white; border: 0; border-bottom: 1px solid #29372f; border-radius: 0; font-weight: normal; }
.monster-stone-row img { width: 80px; height: 86px; border-radius: 8px; object-fit: cover; }
.monster-stone-row > span:not(.material-symbols-rounded), .monster-draft-row > span:not(.material-symbols-rounded) { flex: 1; min-width: 0; }
.monster-stone-row strong { font-weight: 500; font-size: 16px; }
.monster-stone-row small, .monster-draft-row small { display: block; margin-top: 6px; color: #a7b3ab; font-size: 12px; }
.monster-draft-row img { width: 60px; height: 60px; object-fit: contain; }
.monster-creation-source { display: flex; gap: 12px; align-items: center; margin: 16px 0; color: white; font-size: 16px; }
.monster-creation-source img { width: 66px; height: 66px; object-fit: cover; border-radius: 8px; }
.monster-creation-source small { display: block; color: #a7b3ab; font-size: 12px; margin-top: 6px; }
.monster-origin-photo { height: 270px; }
.monster-origin-photo img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
input.monster-input { width: 100%; min-height: 48px; border: 1px solid #3a4d41; border-radius: 8px; padding: 10px 13px; font: inherit; font-size: 16px; background: #101b15; color: white; }
.monster-upload { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin: 14px 0; color: #b9c8bf; font-size: 14px; cursor: pointer; }
.monster-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.monster-upload:focus-within { outline: 2px solid #68d4f5; outline-offset: 2px; }
.monster-upload.is-disabled { opacity: .4; }
.monster-muted { color: #acb9b0; font-size: 13px; line-height: 1.6; }
.monster-consent { font-size: 12px; margin: 10px 0; }
.monster-error { color: #ffb7b0; background: #351d1c; border-radius: 6px; padding: 10px; font-size: 14px; }
.monster-error:empty { display: none; }
.monster-progress { display: flex; align-items: center; justify-content: center; gap: 8px; color: #e6bd69; font-size: 14px; }
#monsterToast { position: fixed; z-index: 1600; bottom: 92px; left: 50%; transform: translateX(-50%); padding: 12px 18px; max-width: calc(100% - 32px); width: max-content; background: #ecf5ef; color: #173323; border-radius: 8px; font-size: 14px; box-shadow: 0 6px 20px #0006; }
dialog.monster-dialog { width: min(380px, calc(100% - 32px)); padding: 22px; background: #15221a; color: white; border: 1px solid #425347; border-radius: 8px; }
.monster-dialog::backdrop { background: #000b; }
.monster-dialog .monster-toolbar h2 { font-size: 20px; }
@media (min-width: 600px) { .monster-portrait { height: 380px; } .monster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 359px) { .monster-name-row h2 { font-size: 23px; } .monster-portrait { height: 270px; } .monster-view-switch button { font-size: 12px; } .monster-traits { gap: 10px; font-size: 13px; } .monster-traits > span + span { padding-left: 10px; } .monster-source { gap: 10px; } .monster-source img { width: 78px; height: 78px; } }
@media (max-width: 359px) { .monster-portrait.is-prepared img { width: calc(100% + 60px); height: calc(100% + 100px); } }
@media (display-mode: standalone) { body.show-monsters { padding-top: 50px; } }
