.player-page .player-material-craft { font:inherit; font-weight:inherit; color:inherit; background:transparent; border:0; border-radius:8px; padding:10px 6px; margin:-10px -6px; min-height:44px; text-align:left; cursor:help; }
.player-material-craft > span { text-decoration:underline dotted #f4cc8370; text-underline-offset:4px; }
.player-page .player-material-craft:hover, .player-page .player-material-craft[aria-expanded="true"] { color:var(--gold); background:#f4cc830c; }
.player-page .player-material-craft:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.player-page .player-craft-help { margin:0 0 18px; color:var(--muted); font-size:.75rem; line-height:1.7; }
.crafting-popover { position:fixed; z-index:1100; width:360px; max-width:calc(100vw - 20px); max-height:calc(100vh - 20px); max-height:calc(100dvh - 20px); overflow-y:auto; padding:20px; border:1px solid #edc87788; border-radius:18px; background:linear-gradient(145deg,#20344e,#0f1b2d 70%); box-shadow:0 18px 60px #020711b3; color:var(--text,#f2f5fc); font-family:inherit; font-size:.82rem; line-height:1.6; overscroll-behavior:contain; }
.crafting-popover[hidden], .crafting-popover [hidden] { display:none !important; }
.crafting-popover * { box-sizing:border-box; }
.crafting-heading { display:flex; align-items:start; justify-content:space-between; gap:12px; }
.crafting-heading > div { min-width:0; }
.crafting-eyebrow { margin:0 0 5px; color:#f4cc83; font-size:.62rem; letter-spacing:.13em; font-weight:700; }
.crafting-heading h3 { font-size:1.1rem; line-height:1.35; letter-spacing:-.025em; margin:0; overflow-wrap:anywhere; }
.crafting-close, .crafting-page-button { display:grid; place-items:center; flex:0 0 44px; width:44px; min-height:44px; border:1px solid #9cb8e23d; border-radius:9px; background:#0a172a88; color:#e2eafa; font:inherit; cursor:pointer; }
.crafting-close { font-size:1.5rem; margin:-7px -7px 0 0; }
.crafting-popover button:hover { border-color:#f4cc8388; background:#2c405c; }
.crafting-popover :focus-visible { outline:2px solid #f4cc83; outline-offset:3px; }
.crafting-method { margin:14px 0; color:#b7c8df; font-size:.75rem; }
.crafting-workbench { display:flex; align-items:center; justify-content:center; gap:12px; padding:17px 0; border-block:1px solid #9cb8e226; }
.crafting-grid { display:grid; grid-template-columns:repeat(3,38px); gap:4px; padding:8px; background:#bfbfbf; border:2px solid; border-color:#ededed #515151 #515151 #ededed; border-radius:3px; }
.crafting-slot, .crafting-output { display:grid; position:relative; place-items:center; width:38px; height:38px; background:#8b8b8b; border:2px solid; border-color:#373737 #eee #eee #373737; }
.crafting-item { display:block; width:32px; height:32px; object-fit:contain; image-rendering:pixelated; }
.crafting-output { width:50px; height:50px; }
.crafting-output .crafting-item { width:40px; height:40px; }
.crafting-arrow { color:#e4c57f; font-size:1.8rem; line-height:1; }
.crafting-count { position:absolute; right:2px; bottom:-2px; color:#fff; font:700 1rem/1.2 Consolas,monospace; text-shadow:1px 1px #111,-1px -1px #111; }
.crafting-result { color:#f4cc83; margin:12px 0 18px; font-size:.8rem; font-weight:650; }
.crafting-ingredients-title { margin:0 0 10px; color:#cbd8ea; font-size:.75rem; font-weight:600; }
.crafting-ingredients { list-style:none; margin:0; padding:0; }
.crafting-ingredients li { display:grid; grid-template-columns:32px minmax(0,1fr); gap:8px; align-items:center; padding:8px 0; border-bottom:1px solid #9cb8e21f; }
.crafting-ingredients li > strong { color:#f4cc83; font-variant-numeric:tabular-nums; }
.crafting-choice { min-width:0; }
.crafting-choice select { width:100%; min-width:0; min-height:44px; padding:8px 9px; border:1px solid #9cb8e24d; border-radius:8px; background:#0e1c30; color:#edf1fa; font:inherit; font-size:.77rem; }
.crafting-choice small { display:block; margin-top:5px; color:#9eafc8; font-size:.65rem; line-height:1.5; }
.crafting-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:16px; font-size:.75rem; color:#b7c8df; }
@media(max-width:380px) { .crafting-popover { padding:16px; } .crafting-workbench { gap:9px; } }
