/* ====== Cultivation ====== */
.cult-center { text-align: center; padding: 20px 0; }
.qi-orb-wrapper { position: relative; width: 200px; height: 200px; margin: 0 auto; cursor: pointer; user-select: none; }
.qi-orb {
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2a5040, #0a3028 40%, #050f0c 80%);
  box-shadow: 0 0 40px rgba(94,207,176,0.2), 0 0 80px rgba(94,207,176,0.1), inset 0 0 30px rgba(94,207,176,0.15);
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  transition: transform 0.1s, box-shadow 0.1s; display: flex; align-items: center; justify-content: center;
}
.qi-orb:active { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 60px rgba(94,207,176,0.4), 0 0 100px rgba(94,207,176,0.2), inset 0 0 40px rgba(94,207,176,0.3); }
.qi-orb-text { font-family: 'Ma Shan Zheng', cursive; font-size: 20px; color: var(--qi-glow); text-shadow: 0 0 10px rgba(106,240,208,0.5); pointer-events: none; }
.qi-orb-ring { position: absolute; width: 190px; height: 190px; border: 1px solid rgba(94,207,176,0.15); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: spin 20s linear infinite; }
.qi-orb-ring2 { width: 180px; height: 180px; animation: spin 15s linear infinite reverse; border-color: rgba(201,168,76,0.1); }
.cult-progress { max-width: 400px; margin: 20px auto; }
.cult-progress .bar-track { height: 12px; }
.cult-progress .bar-label { font-size: 13px; margin-bottom: 4px; }
.cult-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; max-width: 500px; margin: 16px auto; font-size: 12px; }
.cult-stat { text-align: center; padding: 8px; background: var(--surface2); border-radius: 4px; border: 1px solid var(--border); }
.cult-stat .cs-val { font-size: 18px; color: var(--gold-bright); font-weight: 700; }
.cult-stat .cs-label { color: var(--dim); font-size: 11px; margin-top: 2px; }

/* ====== Buildings ====== */
.building-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.building-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 14px; transition: border-color 0.2s; }
.building-card:hover { border-color: var(--gold); }
.building-card h3 { font-size: 15px; color: var(--gold); margin-bottom: 4px; }
.building-card .bdesc { font-size: 11px; color: var(--dim); margin-bottom: 8px; }
.building-card .bstats { font-size: 12px; color: var(--jade); margin-bottom: 8px; }
.building-card .bcost { font-size: 11px; color: var(--dim); margin-bottom: 8px; }
.building-card .bcost span { color: var(--crimson); }
.built-badge { display: inline-block; background: var(--jade); color: #000; padding: 2px 10px; border-radius: 3px; font-size: 11px; font-weight: 600; }

/* ====== Equipment ====== */
.equip-layout { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.equip-slots { background: var(--surface2); border-radius: 6px; padding: 12px; }
.equip-slot { padding: 10px; margin-bottom: 8px; border: 1px dashed var(--border); border-radius: 4px; text-align: center; transition: all 0.2s; }
.equip-slot:hover { border-color: var(--gold); background: var(--surface3); }
.equip-slot.filled { border-style: solid; border-color: var(--gold); cursor: pointer; }
.equip-slot .slot-label { font-size: 11px; color: var(--dim); }
.equip-slot .slot-item { font-size: 13px; color: var(--gold); margin-top: 2px; }
.equip-slot .slot-stats { font-size: 11px; color: var(--jade); }
.equip-inv { max-height: 500px; overflow-y: auto; }
.equip-inv h3 { font-size: 14px; color: var(--gold); margin-bottom: 8px; }
.item-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 10px; margin-bottom: 6px; cursor: pointer; transition: all 0.2s; }
.item-card:hover { border-color: var(--jade); background: var(--surface3); }
.item-card.equipped { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.item-name { font-size: 13px; font-weight: 600; }
.item-name.q-0 { color: #aaa; } .item-name.q-1 { color: #5ecfb0; } .item-name.q-2 { color: #5e8fcf; } .item-name.q-3 { color: #c05ecf; } .item-name.q-4 { color: var(--gold-bright); }
.item-type { font-size: 11px; color: var(--dim); }
.item-stats { font-size: 11px; color: var(--jade); margin-top: 2px; }

/* ====== Explore ====== */
.dungeon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dungeon-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 14px; cursor: pointer; transition: all 0.2s; }
.dungeon-card:hover:not(.locked) { border-color: var(--crimson); background: var(--surface3); }
.dungeon-card.locked { opacity: 0.4; cursor: not-allowed; }
.dungeon-card h3 { color: var(--crimson); font-size: 15px; margin-bottom: 4px; }
.dungeon-card .ddesc { font-size: 11px; color: var(--dim); margin-bottom: 6px; }
.dungeon-card .dinfo { font-size: 12px; color: var(--text); }

/* ====== Combat ====== */
.combat-view { max-width: 600px; margin: 0 auto; text-align: center; }
.combat-view h2 { color: var(--crimson); font-family: 'Ma Shan Zheng', cursive; font-size: 28px; margin-bottom: 12px; }
.combat-monsters { display: flex; justify-content: center; gap: 40px; margin: 16px 0; }
.combat-entity { text-align: center; }
.combat-entity .ce-name { font-size: 14px; color: var(--gold); margin-bottom: 4px; }
.combat-entity .ce-hp { font-size: 12px; color: var(--crimson); }
.combat-entity .ce-bar { width: 120px; height: 6px; background: var(--bg); border-radius: 3px; margin: 4px auto; overflow: hidden; }
.combat-entity .ce-bar-fill { height: 100%; background: var(--crimson); transition: width 0.3s; }
.vs-text { font-family: 'Ma Shan Zheng', cursive; font-size: 36px; color: var(--crimson); align-self: center; text-shadow: 0 0 20px rgba(217,69,69,0.5); }
.combat-log { max-height: 120px; overflow-y: auto; font-size: 11px; text-align: left; margin: 12px 0; padding: 8px; background: var(--bg); border-radius: 4px; }
.combat-actions { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.combat-actions button { padding: 8px 20px; background: var(--surface3); color: var(--text); border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-family: 'Noto Serif SC', serif; }
.combat-actions button:hover { border-color: var(--gold); color: var(--gold); }

/* ====== Alchemy ====== */
.alchemy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.recipe-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 14px; }
.recipe-card h3 { color: var(--jade); font-size: 14px; }
.recipe-card .rdesc { font-size: 11px; color: var(--dim); margin: 4px 0; }
.recipe-card .ringr { font-size: 11px; color: var(--dim); margin-bottom: 8px; }
.recipe-card .ringr span { color: var(--crimson); }

/* ====== Shop ====== */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.shop-item { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 12px; }
.shop-item h4 { font-size: 13px; color: var(--jade); }
.shop-item .si-desc { font-size: 11px; color: var(--dim); margin: 4px 0; }
.shop-item .si-cost { font-size: 12px; color: var(--gold); }

/* ====== Achievements ====== */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ach-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 10px; transition: all 0.3s; }
.ach-card.unlocked { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.ach-card.locked { opacity: 0.4; }
.ach-card h4 { font-size: 13px; color: var(--gold); }
.ach-card p { font-size: 11px; color: var(--dim); margin-top: 2px; }

/* ====== Playthrough ====== */
.pt-info { max-width: 600px; margin: 0 auto; }
.pt-header { text-align: center; margin-bottom: 24px; }
.pt-header h2 { font-family: 'Ma Shan Zheng', cursive; font-size: 36px; color: var(--gold); text-shadow: 0 0 30px rgba(201,168,76,0.3); }
.pt-header p { color: var(--dim); margin-top: 4px; }
.pt-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.pt-stat { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 10px; text-align: center; }
.pt-stat .ps-val { font-size: 20px; color: var(--gold-bright); font-weight: 700; }
.pt-stat .ps-label { font-size: 11px; color: var(--dim); }
.ascend-btn {
  display: block; margin: 20px auto; padding: 14px 40px;
  background: linear-gradient(135deg, #ffd700, #b8860b); color: #000; border: none;
  font-family: 'Ma Shan Zheng', cursive; font-size: 24px; cursor: pointer; border-radius: 6px;
  letter-spacing: 5px; box-shadow: 0 0 30px rgba(255,215,0,0.3); transition: all 0.3s;
}
.ascend-btn:hover { transform: scale(1.05); box-shadow: 0 0 50px rgba(255,215,0,0.5); }
.ascend-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }
.pt-log h3 { color: var(--gold); margin-bottom: 8px; font-size: 15px; }
.pt-log-entry { padding: 6px 10px; border-left: 2px solid var(--border); margin-bottom: 4px; font-size: 12px; color: var(--dim); }
.pt-log-entry .pt-realm { color: var(--jade); }