/*==================================================
    Build a PC
==================================================*/

:root {
    --bg: #0b0f14;
    --panel: rgba(17, 23, 31, 0.92);
    --panel-solid: #121820;
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(148, 163, 184, 0.32);
    --text: #e6edf3;
    --muted: #8b9aab;
    --teal: #5eead4;
    --teal-deep: #0f766e;
    --amber: #fbbf24;
    --green: #4ade80;
    --red: #f87171;
    --radius: 12px;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Nunito", system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

#world {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: crosshair;
}

#world.panning {
    cursor: grabbing;
}

#world.pointing {
    cursor: pointer;
}

/* ---------- top bar ---------- */

.pc-top {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    z-index: 20;
}

.pc-home {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: var(--muted);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
}

.pc-home:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.pc-logo {
    margin: 0;
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.pc-logo span {
    color: var(--teal);
}

.pc-money {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    padding: 2px 14px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    min-width: 128px;
}

.pc-money strong {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 1.35rem;
    color: #bbf7d0;
    font-variant-numeric: tabular-nums;
}

.pc-money small {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.pc-tabs {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.pc-tabs button,
.pc-icon-button {
    position: relative;
    border: 1px solid transparent;
    background: transparent;
    padding: 7px 12px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 0.92rem;
    color: #cbd5e1;
}

.pc-tabs button:hover,
.pc-icon-button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.pc-tabs button.active {
    background: rgba(94, 234, 212, 0.12);
    border-color: rgba(94, 234, 212, 0.4);
    color: var(--teal);
}

.pc-icon-button {
    width: 36px;
    padding: 7px 0;
}

.pc-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--amber);
    color: #1c1500;
    font-size: 0.7rem;
    line-height: 17px;
    font-weight: 900;
    box-shadow: 0 0 0 2px var(--panel-solid);
}

/* ---------- goal ---------- */

.pc-goal {
    position: fixed;
    top: 74px;
    left: 10px;
    width: min(340px, calc(100vw - 20px));
    padding: 11px 14px 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 10;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: opacity 0.2s, transform 0.2s;
}

.pc-goal h3 {
    margin: 0 0 3px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
}

.pc-goal p {
    margin: 0;
    color: #d6dee7;
}

.pc-goal .pc-goal-steps {
    margin-top: 7px;
    display: grid;
    gap: 4px;
}

.pc-goal.flash {
    animation: goal-flash 0.8s ease;
}

@keyframes goal-flash {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7); }
    40% { transform: scale(1.02); box-shadow: 0 0 0 8px rgba(94, 234, 212, 0); }
    100% { transform: scale(1); }
}

.pc-goal-min {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 900;
    padding: 2px 6px;
}

.pc-goal.collapsed p,
.pc-goal.collapsed .pc-goal-steps {
    display: none;
}

/* ---------- shared bits ---------- */

.pc-item {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    flex: none;
}

.pc-item.big {
    width: 34px;
    height: 34px;
}

.pc-req {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.84rem;
    font-weight: 700;
}

.pc-req .pc-bar {
    flex: 1;
}

.pc-bar {
    position: relative;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.pc-bar i {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, var(--teal-deep), var(--teal));
    border-radius: 4px;
    transition: width 0.3s;
}

.pc-bar.done i {
    background: linear-gradient(90deg, #15803d, var(--green));
}

.pc-num {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    white-space: nowrap;
}

.pc-button {
    border: 1px solid rgba(94, 234, 212, 0.45);
    background: linear-gradient(180deg, #14b8a6, #0f766e);
    color: #f0fdfa;
    border-radius: 9px;
    padding: 8px 14px;
    font-weight: 900;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 0 #0b4f4a;
    transition: transform 0.08s, filter 0.15s;
    white-space: nowrap;
}

.pc-button:hover:not(:disabled) {
    filter: brightness(1.1);
}

.pc-button:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #0b4f4a;
}

.pc-button:disabled {
    cursor: default;
    background: #283241;
    border-color: var(--line);
    color: #7c8a9b;
    box-shadow: none;
}

.pc-button.ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line-strong);
    color: var(--text);
    box-shadow: none;
}

.pc-button.danger {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    border-color: rgba(248, 113, 113, 0.5);
    box-shadow: 0 2px 0 #7f1d1d;
}

.pc-button.small {
    padding: 5px 10px;
    font-size: 0.82rem;
}

/* ---------- drawer ---------- */

.pc-drawer {
    position: fixed;
    top: 74px;
    right: 10px;
    bottom: 104px;
    width: min(420px, calc(100vw - 20px));
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    z-index: 15;
    animation: drawer-in 0.18s ease-out;
}

@keyframes drawer-in {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: none; }
}

.pc-drawer[hidden],
.pc-inspect[hidden] {
    display: none;
}

.pc-drawer > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--line);
}

.pc-drawer h2 {
    margin: 0;
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 1.2rem;
}

.pc-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    padding: 0 6px;
    border-radius: 7px;
}

.pc-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.pc-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px 16px;
    display: grid;
    align-content: start;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.pc-section-label {
    margin: 6px 0 -2px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 900;
}

.pc-card {
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 11px;
    display: grid;
    gap: 8px;
}

.pc-card.ready {
    border-color: rgba(94, 234, 212, 0.55);
    background: rgba(94, 234, 212, 0.06);
    box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.12);
}

.pc-card.locked {
    opacity: 0.55;
}

.pc-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-card-head h4 {
    margin: 0;
    font-size: 1rem;
    font-family: "Fredoka", system-ui, sans-serif;
    font-weight: 600;
}

.pc-card-head p {
    margin: 1px 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.pc-card-head > div {
    flex: 1;
    min-width: 0;
}

.pc-unlocks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.pc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px 2px 3px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    font-weight: 800;
    color: #cbd5e1;
}

.pc-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pc-price {
    font-weight: 900;
    color: #bbf7d0;
    font-variant-numeric: tabular-nums;
}

.pc-price.short {
    color: #fca5a5;
}

.pc-done-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* recipes */

.pc-recipe-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.84rem;
    font-weight: 800;
    flex-wrap: wrap;
}

.pc-recipe-row.locked {
    opacity: 0.4;
}

.pc-recipe-row .pc-arrow {
    color: var(--muted);
    margin: 0 2px;
}

.pc-recipe-row .pc-qty {
    color: #cbd5e1;
    margin-right: 2px;
}

.pc-recipe-row .pc-meta {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

/* stats */

.pc-stat-big {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pc-stat-big div {
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.pc-stat-big small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pc-stat-big strong {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
}

.pc-spark {
    width: 100%;
    height: 70px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.pc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
    font-variant-numeric: tabular-nums;
}

.pc-table th {
    text-align: right;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 4px 6px;
    font-weight: 900;
}

.pc-table th:first-child,
.pc-table td:first-child {
    text-align: left;
}

.pc-table td {
    padding: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
    font-weight: 700;
}

.pc-table td:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

/* ---------- inspector ---------- */

.pc-inspect {
    position: fixed;
    right: 10px;
    bottom: 104px;
    width: min(340px, calc(100vw - 20px));
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    padding: 12px 13px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    z-index: 16;
    display: grid;
    gap: 9px;
    animation: drawer-in 0.15s ease-out;
}

.pc-inspect-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-inspect-head img {
    width: 40px;
    height: 40px;
}

.pc-inspect-head h3 {
    margin: 0;
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
}

.pc-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--muted);
}

.pc-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot, #94a3b8);
    box-shadow: 0 0 8px var(--dot, transparent);
}

.pc-inspect-head > div {
    flex: 1;
}

.pc-pick {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 5px;
}

.pc-pick button {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 9px;
    padding: 3px;
}

.pc-pick button:hover:not(:disabled) {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
}

.pc-pick button.on {
    border-color: var(--teal);
    background: rgba(94, 234, 212, 0.14);
}

.pc-pick button:disabled {
    opacity: 0.25;
    cursor: default;
}

.pc-pick img {
    width: 30px;
    height: 30px;
}

.pc-formula {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 8px 9px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    font-size: 0.82rem;
    font-weight: 800;
}

.pc-formula span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.pc-formula .have {
    color: var(--muted);
    font-size: 0.74rem;
}

.pc-formula .have.ok {
    color: var(--green);
}

.pc-rate {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    line-height: 1.4;
    margin: -3px 2px 0;
}

.pc-inspect-note {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}

.pc-inspect-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ---------- bottom: hotbar ---------- */

.pc-bottom {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 18;
    max-width: calc(100vw - 20px);
    pointer-events: none;
}

.pc-hotbar,
.pc-recipe-bar {
    pointer-events: auto;
    display: flex;
    gap: 5px;
    padding: 6px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.pc-hotbar::-webkit-scrollbar,
.pc-recipe-bar::-webkit-scrollbar {
    display: none;
}

.pc-slot {
    position: relative;
    flex: none;
    width: 66px;
    height: 74px;
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: center;
    align-items: center;
    padding: 5px 2px 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    transition: transform 0.1s, border-color 0.15s, background 0.15s;
}

.pc-slot:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.pc-slot.on {
    border-color: var(--teal);
    background: rgba(94, 234, 212, 0.14);
    box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.4), 0 6px 18px rgba(94, 234, 212, 0.15);
}

.pc-slot.poor .pc-slot-cost {
    color: #fca5a5;
}

.pc-slot.new {
    animation: slot-new 1.2s ease-in-out 3;
}

@keyframes slot-new {
    50% { box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.7), 0 0 22px rgba(251, 191, 36, 0.4); }
}

.pc-slot img {
    width: 38px;
    height: 38px;
    pointer-events: none;
}

.pc-slot-name {
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    color: #cbd5e1;
    max-width: 62px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-slot-key {
    position: absolute;
    top: 3px;
    left: 5px;
    font-size: 0.66rem;
    font-weight: 900;
    color: var(--muted);
}

.pc-slot-cost {
    position: absolute;
    top: 3px;
    right: 5px;
    font-size: 0.64rem;
    font-weight: 900;
    color: #86efac;
}

.pc-slot.tool {
    width: 54px;
}

.pc-slot.tool .pc-slot-glyph {
    font-size: 1.45rem;
    line-height: 1;
}

.pc-sep {
    flex: none;
    width: 1px;
    margin: 6px 2px;
    background: var(--line);
}

.pc-recipe-bar button {
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 6px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.pc-recipe-bar button.on {
    border-color: var(--teal);
    background: rgba(94, 234, 212, 0.14);
    color: var(--teal);
}

.pc-recipe-bar img {
    width: 24px;
    height: 24px;
}

.pc-recipe-bar .pc-bar-label {
    align-self: center;
    padding: 0 6px;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

/* ---------- tooltip, toasts, modal ---------- */

.pc-tip {
    position: fixed;
    z-index: 30;
    pointer-events: none;
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(9, 13, 19, 0.94);
    border: 1px solid var(--line-strong);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-size: 0.8rem;
    font-weight: 700;
    max-width: 260px;
    line-height: 1.35;
}

.pc-tip b {
    display: block;
    font-size: 0.86rem;
    color: #fff;
}

.pc-tip span {
    color: var(--muted);
}

.pc-toasts {
    position: fixed;
    top: 74px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    gap: 6px;
    z-index: 40;
    pointer-events: none;
    width: min(380px, calc(100vw - 20px));
}

.pc-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border-radius: 11px;
    background: rgba(15, 23, 32, 0.96);
    border: 1px solid rgba(94, 234, 212, 0.4);
    box-shadow: var(--shadow);
    font-weight: 800;
    font-size: 0.88rem;
    animation: toast-in 0.25s ease-out;
}

.pc-toast.gold {
    border-color: rgba(251, 191, 36, 0.55);
}

.pc-toast.bad {
    border-color: rgba(248, 113, 113, 0.55);
}

.pc-toast.out {
    animation: toast-out 0.3s ease-in forwards;
}

.pc-toast img {
    width: 28px;
    height: 28px;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-10px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateY(-8px); }
}

.pc-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 16px;
}

.pc-modal[hidden] {
    display: none;
}

.pc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 10, 0.66);
    backdrop-filter: blur(3px);
}

.pc-modal-card {
    position: relative;
    width: min(470px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 20px 22px;
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: toast-in 0.2s ease-out;
}

.pc-modal-card h2 {
    margin: 0 0 10px;
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 1.45rem;
}

.pc-modal-card p {
    margin: 0 0 12px;
    color: #cbd5e1;
    line-height: 1.5;
}

.pc-modal-card .pc-big-money {
    font-family: "Fredoka", system-ui, sans-serif;
    font-size: 2rem;
    color: #bbf7d0;
    text-align: center;
    margin: 6px 0 12px;
}

.pc-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 6px;
}

.pc-keys {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    margin: 0 0 14px;
    font-size: 0.9rem;
}

.pc-keys dt {
    font-weight: 900;
    color: var(--teal);
    white-space: nowrap;
}

.pc-keys dd {
    margin: 0;
    color: #cbd5e1;
}

.pc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
}

.pc-celebrate {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto 6px;
    animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob {
    50% { transform: translateY(-6px) rotate(-3deg); }
}

/* ---------- small screens ---------- */

@media (max-width: 900px) {
    .pc-tabs button {
        padding: 7px 8px;
        font-size: 0.84rem;
    }
    .pc-logo {
        display: none;
    }
}

@media (max-width: 680px) {
    .pc-top {
        flex-wrap: wrap;
        top: 6px;
        left: 6px;
        right: 6px;
        padding: 6px 8px;
        gap: 6px;
    }
    .pc-money {
        border-right: 0;
        min-width: 0;
        flex: 1;
        padding: 0 8px;
    }
    .pc-tabs {
        order: 5;
        width: 100%;
        margin: 0;
        justify-content: space-between;
    }
    .pc-tabs button {
        flex: 1;
        padding: 6px 2px;
        font-size: 0.78rem;
    }
    .pc-badge {
        top: -5px;
        right: 1px;
        min-width: 15px;
        height: 15px;
        line-height: 15px;
        font-size: 0.64rem;
    }
    .pc-goal {
        top: 108px;
        left: 6px;
        font-size: 0.82rem;
        padding: 8px 12px 9px;
    }
    .pc-drawer {
        top: 108px;
        left: 6px;
        right: 6px;
        bottom: 96px;
        width: auto;
    }
    .pc-inspect {
        left: 6px;
        right: 6px;
        bottom: 96px;
        width: auto;
        max-height: 52vh;
    }
    .pc-toasts {
        top: 110px;
    }
    .pc-bottom {
        bottom: 6px;
        max-width: calc(100vw - 12px);
    }
    .pc-slot {
        width: 56px;
        height: 66px;
    }
    .pc-slot img {
        width: 32px;
        height: 32px;
    }
    .pc-slot-name {
        font-size: 0.62rem;
        max-width: 54px;
    }
    .pc-slot-key {
        display: none;
    }
    .pc-stat-big {
        grid-template-columns: 1fr 1fr;
    }
}
