:root { --bg: #050505; --accent: #00f2ff; --secondary: #7000ff; --glass: rgba(255, 255, 255, 0.05); --border: rgba(0, 242, 255, 0.2); }

* { box-sizing: border-box; }
body { background-color: var(--bg); color: #fff; font-family: 'Inter', sans-serif; margin: 0; overflow-x: hidden; }
.navbar { background: rgba(0,0,0,0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--glass); }
.navbar-top { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 5%; }
.logo { font-weight: 900; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 2px; }
.logo span { color: var(--accent); text-shadow: 0 0 10px var(--accent); }
.search-wrapper { width: 450px; }
#spell-search { width: 100%; background: #111; border: 1px solid var(--border); padding: 0.8rem 1.5rem; border-radius: 50px; color: #fff; outline: none; transition: 0.3s; font-size: 1rem; }
#spell-search:focus { border-color: var(--accent); box-shadow: 0 0 15px var(--border); }
.filter-bar { display: flex; justify-content: center; gap: 20px; padding: 1rem 5%; background: rgba(0, 0, 0, 0.6); border-top: 1px solid rgba(255,255,255,0.05); flex-wrap: wrap; }
.filter-group { display: flex; gap: 10px; align-items: center; }
.filter-bar select { background: #111; color: var(--accent); border: 1px solid var(--border); padding: 8px 12px; border-radius: 5px; cursor: pointer; }
.disabled-filter { opacity: 0.3; pointer-events: none; filter: grayscale(1); }
.cyber-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.85rem; color: #ccc; }
.cyber-check input { display: none; }
.square { width: 16px; height: 16px; border: 1px solid var(--accent); position: relative; }
.cyber-check input:checked + .square { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.cyber-check input:checked + .square::after { content: "✓"; color: #000; position: absolute; font-size: 12px; left: 2px; top: -2px; }
.grimorio-container { padding: 2rem 5%; }
.stats-bar { display: flex; justify-content: space-between; margin-bottom: 2rem; color: #666; font-size: 0.9rem; }
.spells-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.spell-card { background: var(--glass); padding: 1.5rem; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: 0.3s; }
.spell-card:hover { transform: translateY(-5px); border-color: var(--accent); background: rgba(255,255,255,0.08); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.source-badge { font-size: 0.6rem; background: rgba(0,242,255,0.1); padding: 2px 5px; border-radius: 3px; color: var(--accent); border: 1px solid var(--border); }
.spell-card h3 { margin: 0; font-size: 1.2rem; color: var(--accent); }
.spell-card .en-name { font-size: 0.8rem; color: #666; margin-bottom: 1rem; }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { background: rgba(112, 0, 255, 0.2); color: #b780ff; padding: 2px 8px; border-radius: 5px; font-size: 0.7rem; font-weight: bold; }
.conc-tag { border: 1px solid var(--accent); color: var(--accent); }
.ritual-tag { border: 1px solid var(--secondary); color: #b780ff; }
.prep-btn { margin-top: 15px; width: 100%; padding: 8px; background: transparent; border: 1px solid var(--border); color: var(--accent); border-radius: 8px; cursor: pointer; font-size: 0.7rem; font-weight: bold; transition: 0.3s; }
.prep-btn.active { background: var(--secondary); color: white; border-color: var(--secondary); box-shadow: 0 0 10px var(--secondary); }
.fab-btn { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; border-radius: 50%; background: var(--secondary); color: white; border: 2px solid var(--accent); cursor: pointer; font-size: 1.5rem; z-index: 1500; box-shadow: 0 0 15px var(--secondary); }
.side-drawer { position: fixed; top: 0; right: -400px; width: 350px; height: 100%; background: rgba(5, 5, 5, 0.95); border-left: 1px solid var(--border); z-index: 2500; transition: 0.4s; padding: 2rem; display: flex; flex-direction: column; }
.side-drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1rem; }
#close-drawer { font-size: 2rem; cursor: pointer; }
.favorites-list { flex-grow: 1; overflow-y: auto; }
.fav-item { display: flex; justify-content: space-between; padding: 12px; background: rgba(255,255,255,0.03); border-radius: 8px; margin-bottom: 8px; font-size: 0.85rem; }
.fav-item button { background: none; border: none; color: #ff4d4d; cursor: pointer; font-size: 1.2rem; }
.clear-fav-btn { background: #222; border: 1px solid #444; color: #888; padding: 10px; border-radius: 5px; cursor: pointer; margin-top: 1rem; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; backdrop-filter: blur(5px); }
.modal-content { background: #111; margin: 2% auto; padding: 2.5rem; width: 85%; max-width: 800px; border-radius: 30px; border: 1px solid var(--accent); max-height: 90vh; overflow-y: auto; position: relative; }
.close-modal { position: absolute; top: 20px; right: 25px; cursor: pointer; font-size: 2rem; color: var(--accent); }
.spell-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; background: rgba(255,255,255,0.03); padding: 15px; border-radius: 12px; margin: 20px 0; }
.stat-item { font-size: 0.9rem; color: #ccc; }
.spell-desc { line-height: 1.7; color: #ddd; }
#rename-char-btn { background: rgba(112, 0, 255, 0.2); border-color: var(--secondary); margin-top: 10px; width: 100%; }
#add-character-btn { margin-top: 10px; width: 100%; padding: 10px; }
.export-btn { background: var(--accent); color: #000; border: none; padding: 10px; width: 100%; font-weight: bold; margin-top: 10px; }
.export-btn:hover { background: #fff; box-shadow: 0 0 15px var(--accent); cursor: pointer; }
.dnd-footer { background: rgba(0, 0, 0, 0.9); border-top: 1px solid var(--glass); padding: 3rem 5% 2rem; margin-top: 4rem; position: relative; overflow: hidden; }
.dnd-footer::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 150px; height: 2px; background: var(--accent); box-shadow: 0 0 15px var(--accent); }
.footer-content { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-logo { font-weight: 900; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 1rem; }
.footer-logo span { color: var(--accent); text-shadow: 0 0 8px var(--accent); }
.footer-text { color: #888; font-size: 0.9rem; max-width: 600px; margin: 0 auto 1.5rem; line-height: 1.6; }
.footer-text em { color: #ccc; font-style: normal; }
.footer-divider { height: 1px; background: linear-gradient(to right, transparent, var(--glass), transparent); margin: 2rem 0; }
.copyright { color: #555; font-size: 0.8rem; letter-spacing: 1px; }
.footer-content a { color: #00f2ff; }
.footer-content a:hover { color: #7000ff; }
.character-manager { display: flex; gap: 10px; padding: 10px 5%; background: var(--glass); align-items: center; }
#character-selector { background: #111; color: var(--accent); border: 1px solid var(--border); padding: 5px 10px; border-radius: 4px; font-family: 'Inter', sans-serif; }
.menu-hamburger { background: none; border: none; color: var(--accent); font-size: 1.8rem; cursor: pointer; padding: 0 15px 0 0; transition: transform 0.3s ease, text-shadow 0.3s ease; }
.menu-hamburger:hover { transform: scale(1.1); text-shadow: 0 0 10px var(--accent); }
.menu-container { display: flex; align-items: center; }
.chars-dropdown { position: fixed; top: 0; left: -320px; width: 300px; height: 100vh; background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(15px); border-right: 1px solid var(--border); z-index: 2000; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); padding: 20px; box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8); }
.chars-dropdown.open { left: 0; }
.chars-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 25px; }
.chars-header span { font-weight: 900; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; color: var(--accent); }
#close-chars-menu { background: none; border: none; color: #888; font-size: 1.5rem; cursor: pointer; }
#close-chars-menu:hover { color: #fff; }
.chars-content label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; color: #666; }
#character-selector { width: 100%; background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid var(--border); padding: 12px; border-radius: 4px; font-family: 'Inter', sans-serif; margin-bottom: 30px; outline: none; cursor: pointer; }
#character-selector option { background: #111; }
.chars-actions { display: flex; flex-direction: column; gap: 12px; }
.chars-actions button { padding: 12px; border-radius: 4px; font-weight: bold; font-size: 0.85rem; text-transform: uppercase; cursor: pointer; transition: 0.3s; border: 1px solid var(--border); }
#add-character-btn:hover { background: var(--accent); color: #000; cursor: pointer; box-shadow: 0 0 15px var(--accent); }
.btn-danger { background: rgba(255, 68, 68, 0.05); color: var(--accent); border-color: var(--accent); width: 100%; padding: 10px; border-radius: 8px; cursor: pointer; font-weight: bold; text-transform: uppercase; font-size: 0.8rem; margin-top: 10px; transition: 0.3s; border: 1px solid var(--accent); }
.btn-danger:hover { background: #ff4444; color: #fff; box-shadow: 0 0 15px #ff4444; cursor: pointer; width: 100%; }
.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 2rem; text-align: center; background: rgba(255, 255, 255, 0.02); border: 1px dashed var(--border); border-radius: 15px; margin-top: 2rem; }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.2)); opacity: 0.6; }
.empty-state h3 { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.empty-state p { color: #666; font-size: 0.9rem; max-width: 300px; margin: 0; }
.sort-btn { background: var(--glass); border: 1px solid var(--border); color: #fff; padding: 0.6rem 1rem; border-radius: 5px; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.sort-btn:hover { background: rgba(0, 242, 255, 0.1); border-color: var(--accent); box-shadow: 0 0 10px rgba(0, 242, 255, 0.2); }
.sort-btn span:first-child { font-size: 1rem; }
.roll-inline-btn { background: rgba(0, 242, 255, 0.1); border: 1px solid var(--accent); color: var(--accent); padding: 2px 8px; border-radius: 4px; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: bold; font-size: 0.9em; margin: 0 2px; transition: all 0.2s ease; display: inline-flex; align-items: center; }
.roll-inline-btn:hover { background: var(--accent); color: #000; box-shadow: 0 0 10px var(--accent); }
.dice-rain-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }
.falling-dice { position: absolute; font-size: 2rem; color: var(--accent); text-shadow: 0 0 15px var(--accent); animation: dice-fall linear forwards; opacity: 0.8; }
.dice-result-hud { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, 0.85); border: 2px solid var(--accent); padding: 20px 40px; border-radius: 15px; box-shadow: 0 0 30px var(--accent); text-align: center; z-index: 10000; animation: hud-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); pointer-events: none; }
.dice-result-hud h2 { color: var(--accent); font-size: 3rem; margin: 0; text-shadow: 0 0 10px var(--accent); }
.dice-result-hud p { color: #fff; margin: 5px 0 0; font-family: 'Inter', sans-serif; letter-spacing: 2px; opacity: 0.8; }
.hud-rolls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0; max-width: 300px; }
.hud-rolls span { background: rgba(0, 242, 255, 0.1); border: 1px solid rgba(0, 242, 255, 0.3); color: var(--accent); font-size: 0.8rem; padding: 2px 6px; border-radius: 4px; font-family: 'Inter', sans-serif; min-width: 20px; text-align: center; }
.hud-formula { font-weight: 700; opacity: 0.6; font-size: 0.7rem !important; }
.class-tags { font-size: 0.7rem; color: #888; margin-top: 8px; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reset-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; }
.reset-btn:hover { background: rgba(255, 0, 85, 0.1); border-color: #ff0055; color: #ff0055; box-shadow: 0 0 10px rgba(255, 0, 85, 0.2); }
.reset-btn .icon { font-size: 1rem; }
.menu-link { display: block; color: var(--accent); text-decoration: none; padding: 10px; background: var(--glass); border-radius: 5px; margin-top: 5px; font-weight: bold; text-align: center; border: 1px solid var(--border); }
.share-btn { width: 100%; background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 12px; border-radius: 8px; cursor: pointer; font-weight: bold; text-transform: uppercase; font-size: 0.8rem; margin-top: 10px; transition: 0.3s; }
.share-btn:hover { background: var(--accent); color: #000; box-shadow: 0 0 15px var(--accent); }
.voice-btn { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 5px 15px; border-radius: 20px; cursor: pointer; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; transition: 0.3s; }
.voice-btn.speaking { background: var(--accent); color: #000; box-shadow: 0 0 15px var(--accent); animation: pulse-voice 1.5s infinite; }
#rename-char-btn { transition: 0.3s; }
#rename-char-btn:hover { background: var(--secondary) !important; color: white; box-shadow: 0 0 10px var(--secondary); cursor: pointer; }
#import-spells label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; color: #666; }
#import-spells input { display: none; }
.tabla-sutil { border-collapse: collapse; margin: 20px 0; font-size: 0.75em; font-family: sans-serif; min-width: 400px; width: 100%; box-shadow: 0 0 20px rgba(0, 0, 0, 0.05); border-radius: 5px 5px 0 0; overflow: hidden; }
.tabla-sutil thead tr { background: rgba(112, 0, 255, 0.2); color: #b780ff; text-align: left; font-weight: bold; }
.tabla-sutil th, .tabla-sutil td { padding: 12px 15px; }
.tabla-sutil tbody tr { border-bottom: 1px solid #dddddd; }
.info-icon { cursor: pointer; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1px solid var(--accent); border-radius: 50%; font-size: 11px; color: var(--accent); background: rgba(0, 242, 255, 0.1); font-weight: bold; font-family: 'Inter', sans-serif; }
.info-icon:hover { background: var(--accent); color: #000; }
#example-modal { z-index: 3000; }
#example-modal pre { background: #000; padding: 15px; border-radius: 5px; overflow-x: auto; border: 1px solid var(--border); margin-top: 10px; }
.monster-sheet { background-color: var(--color-fondo); display: flex; justify-content: center; margin: 0; padding: 10px; font-family: 'Segoe UI', sans-serif; color: var(--color-texto); --color-fondo: #0a0a12; --color-borde: #00ffff; --color-texto: #ffffff; --color-resaltado: #ff00ff; --sombra-neon: 0 0 8px #00ffff; }
.monster-card { background: rgba(16, 16, 26, 0.95); border: 2px solid var(--color-borde); border-radius: 8px; padding: 12px 18px; box-shadow: var(--sombra-neon); }
.header h1 { font-size: 24px; margin: 0; color: var(--color-borde); text-shadow: var(--sombra-neon); text-transform: uppercase; }
.subtitle { font-style: italic; font-size: 13px; color: #aaa; margin-top: -2px; display: block; }
.divider { height: 1px; background: var(--color-resaltado); margin: 6px 0; box-shadow: 0 0 4px var(--color-resaltado); }
.stats-block p { font-size: 13px; margin: 3px 0; line-height: 1.2; }
.ability-scores { width: 100%; text-align: center; border-spacing: 2px; margin: 4px 0; }
.ability-scores th { font-size: 11px; color: #aaa; }
.ability-scores td { padding: 2px; font-size: 13px; border: 1px solid rgba(0, 255, 255, 0.2); border-radius: 4px; background: rgba(255, 255, 255, 0.02); }
.traits p, .actions p, .actions ul { font-size: 12.5px; margin: 4px 0; line-height: 1.3; }
.actions h2 { font-size: 18px; margin: 8px 0 2px 0; border-bottom: 1px solid var(--color-borde); color: var(--color-borde); text-shadow: var(--sombra-neon); }
.red-line { border-bottom: 1px solid var(--color-borde); }
strong { color: var(--color-resaltado); }
em strong { font-style: italic; }
.print-markers-container { display: flex; gap: 5px; }
.print-marker { border: 1px solid black; padding: 2px 6px; font-weight: bold; border-radius: 4px; font-size: 0.9rem; }
input[type="range"] { -webkit-appearance: none; background: rgba(255, 255, 255, 0.1); height: 4px; border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); cursor: pointer; }
.setting-item { padding: 0 !important; }
#voice-lang { width: 100%; }
@media (max-width: 768px) {
	.navbar { position: relative !important; top: auto !important; }
	.search-wrapper { width: 100% !important; max-width: 100% !important; }
	.navbar-top { flex-direction: column; padding: 15px !important; gap: 15px; }
	.logo { width: 100%; text-align: center; }
	#spell-search { border-radius: 12px; font-size: 16px; }
	.filter-bar { flex-direction: column; padding: 10px 15px 20px; gap: 10px; }
	.filter-bar select { width: 100% !important; height: 48px; }
	.filter-group.checks { flex-direction: row; justify-content: space-between; width: 100%; background: rgba(255,255,255,0.05); padding: 12px; border-radius: 8px; }
	.side-drawer { width: 100%; right: -100%; }
	.filters-bar { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; padding: 15px !important; }
	.filters-bar select { width: 100% !important; margin: 0 !important; }
	.checkbox-group { grid-column: span 2; justify-content: space-between; padding: 10px; background: rgba(255,255,255,0.05); border-radius: 8px; }
	.spells-grid { grid-template-columns: 1fr 1fr !important; gap: 6px !important; padding: 8px !important; }
	.modal-content { width: 96% !important; padding: 20px !important; margin: 10px auto !important; }
	.spell-stats-grid { grid-template-columns: 1fr !important; }
	.spell-card { padding: 10px !important; display: flex; flex-direction: column; justify-content: space-between; }
	.spell-card h3 { font-size: 0.85rem !important; line-height: 1.1 !important; min-height: 2rem; margin-bottom: 2px !important; }
	.en-name { font-size: 0.65rem !important; margin-bottom: 5px !important; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
	.tags { margin-bottom: 10px !important; gap: 4px !important; }
	.tag { font-size: 0.6rem !important; padding: 1px 5px !important; }
	.tags .tag:nth-child(2) { display: none !important; }
	.prep-btn { padding: 4px !important; font-size: 0.6rem !important; margin-top: 5px !important; }
	.class-tags { font-size: 0.65rem !important; margin-top: 5px !important; }
	.dnd-footer { padding: 2rem 10%; margin-bottom: 0; }
}
@media print {
	.navbar, .filter-bar, .fab-btn, .side-drawer, .stats-bar, .prep-btn, .close-modal, .clear-fav-btn, .export-btn { display: none !important; }
	body { background: white !important; color: black !important; }
	.grimorio-container { padding: 0; margin: 0; }
	.spells-grid { display: block !important; }
	.spell-card { background: white !important; border: 1px solid #eee !important; page-break-inside: avoid; margin-bottom: 25px; color: black !important; padding: 15px; }
	.spell-card h3, .tag, .en-name { color: black !important; }
	.tag { border: 1px solid #000 !important; background: transparent !important; color: #000 !important; }
	.source-badge { border: 1px solid #000 !important; color: #000 !important; }
	html, body * { visibility: hidden; overflow:visible !important; }
	#print-section, #print-section * { visibility: visible; }
	#print-section { position: absolute; left: 0; top: 0; width: 100%; color: black !important; background: white !important; }
	h1 { text-align: center; border-bottom: 3px double #000; padding-bottom: 10px; margin-bottom: 30px; }
	.print-spell-block { page-break-inside: avoid; margin-bottom: 30px; padding: 10px; }
	.print-header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #000; }
	.print-header h2 { margin: 0; color: #000 !important; font-size: 1.4rem; }
	.print-meta { font-style: italic; font-size: 0.9rem; }
	.print-stats { margin: 10px 0; font-size: 0.85rem; background: #f9f9f9 !important; padding: 10px; border: 1px solid #eee; }
	.print-stats p { margin: 2px 0; }
	.print-desc { font-size: 0.95rem; line-height: 1.5; text-align: justify; }
	hr { border: 0; border-top: 1px solid #ddd; margin-top: 20px; }
	.dnd-footer { display: none !important; }
}
@media print {
	body > *:not(#print-section) { display: none !important; }
	#print-section { display: block !important; background: white !important; color: black !important; padding: 0; margin: 0; column-count: 2; column-gap: 20px; }
	#print-section h1 { font-size: 18pt; text-align: center; text-transform: uppercase; border-bottom: 2px solid #000; margin-bottom: 20px; padding-bottom: 10px; color: #000; }
	.print-spell-block { page-break-inside: avoid; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 0.5pt solid #eee; }
	.print-header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1pt solid #000; margin-bottom: 5px; }
	.print-header h2 { font-size: 13pt !important; margin: 0; font-weight: bold; text-transform: uppercase; }
	.print-meta { font-size: 9pt; font-style: italic; color: #333; }
	.print-stats { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 5px 0; font-size: 8pt !important; background: #f9f9f9; padding: 5px; border: 0.5pt solid #ddd; }
	.print-stats p { margin: 0; }
	.print-desc { font-size: 8.5pt !important; line-height: 1.2; text-align: justify; column-count: 1; margin-top: 5px; }
	.print-desc b, .print-desc i { color: #000; }
	.roll-inline-btn { background: none !important; border: none !important; padding: 0 !important; font-weight: bold !important; color: black !important; text-decoration: underline; }
	.print-markers-container { display: flex; gap: 5px; }
	.print-marker { display: inline-block; border: 1.5pt solid #000; padding: 2pt 5pt; font-weight: bold; font-family: sans-serif; font-size: 10pt; border-radius: 2pt; line-height: 1; }
}
@media screen {
	.print-only { display: none; }
}
@keyframes dice-fall {
	0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
	100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
@keyframes hud-pop {
	0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
	100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@media (max-width: 768px) {
	.spell-card { padding: 8px !important; gap: 2px !important; position: relative !important; padding-right: 35px !important; }
	.spell-card h3 { font-size: 0.85rem !important; line-height: 1.1 !important; min-height: 2.1rem !important; margin-bottom: 2px !important; word-wrap: break-word; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.en-name { font-size: 0.65rem !important; margin-bottom: 4px !important; line-height: 1 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
	.tags { margin-bottom: 4px !important; gap: 3px !important; }
	.tag { font-size: 0.6rem !important; padding: 1px 4px !important; line-height: 1 !important; }
	.prep-btn { position: absolute !important; bottom: 8px !important; right: 8px !important; width: 26px !important; height: 26px !important; min-height: auto !important; margin: 0 !important; padding: 0 !important; font-size: 0 !important; display: flex !important; align-items: center; justify-content: center; border-radius: 6px !important; background: transparent !important; border: 1px solid var(--secondary) !important; z-index: 5; }
	.prep-btn::after { content: "+" !important; font-size: 1.2rem !important; color: var(--secondary); font-weight: bold; }
	.prep-btn.active { background: var(--secondary) !important; border-color: var(--secondary) !important; }
	.prep-btn.active::after { content: "✦" !important; color: white !important; font-size: 1rem !important; }
	.spell-card *:last-child { margin-bottom: 0 !important; }
	.class-tags { max-width: 80% !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.65rem !important; margin-top: 5px !important; width: 100%; }
	.modal-content { width: 96% !important; margin: 2% auto !important; padding: 15px !important; border-radius: 12px !important; max-height: 96vh !important; display: flex; flex-direction: column; }
	.modal-header-flex { flex-direction: column !important; gap: 8px !important; margin-bottom: 5px !important; }
	.header-left h2 { font-size: 1.3rem !important; line-height: 1.1 !important; padding-right: 25px !important; }
	.header-left p { font-size: 0.8rem !important; }
	.header-right { display: none !important; }
	.modal-content .tag { font-size: 0.7rem !important; padding: 4px 10px !important; }
	.spell-stats-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; padding: 10px !important; margin: 10px 0 !important; font-size: 0.8rem !important; }
	.stat-item { border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 4px; }
	.modal-content div[style*="background:rgba(255,204,0,0.05)"] { padding: 10px !important; margin: 10px 0 !important; }
	.modal-content p.materials { font-size: 0.8rem !important; }
	.spell-desc { font-size: 0.9rem !important; line-height: 1.5 !important; color: #ccc !important; }
	.roll-inline-btn { padding: 4px 10px !important; margin: 2px 0 !important; display: inline-block; }
	.modal-content .roll-inline-btn { background: #003366 !important; border: 1px solid var(--accent) !important; color: #ffffff !important; padding: 6px 12px !important; margin: 4px 2px !important; font-size: 0.9rem !important; border-radius: 6px !important; display: inline-flex !important; align-items: center; gap: 5px; box-shadow: 0 2px 8px rgba(0, 242, 255, 0.2); text-decoration: none !important; font-weight: 700 !important; }
	.modal-content .roll-inline-btn:active { background: var(--accent) !important; color: #000 !important; transform: scale(0.95); }
	html, body { overflow-x: hidden; width: 100%; position: relative; }
	.search-wrapper { width: 100% !important; max-width: 100% !important; }
	.navbar-top { padding: 10px 15px !important; flex-direction: column; gap: 10px; }
	.spells-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; padding: 10px !important; width: 100% !important; }
	
	.grimorio-container { padding: 1rem 2% !important; }
	.spells-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)) !important; gap: 0.8rem !important; }
	.spell-card { padding: 0.8rem !important; border-radius: 12px !important; }
	.spell-card h3 { font-size: 0.95rem !important; line-height: 1.2 !important; }
	.spell-card .en-name { font-size: 0.7rem !important; margin-bottom: 0.5rem !important; }

}
@keyframes pulse-voice {
	0% { opacity: 1; }
	50% { opacity: 0.5; }
	100% { opacity: 1; }
}