@font-face {
    font-family: NotoSerif;
    src: url(./Fonts/NotoSerif.ttf);
}
@font-face {
    font-family: Commissioner;
    src: url(./Fonts/Commissioner.ttf);
}

:root {
    --bg-void: #15171b;
    --bg-panel: #1d2025;
    --bg-panel-raised: #22262c;
    --line-etched: #33373d;
    --line-etched-bright: #494f57;
    --accent-copper: #c1793d;
    --accent-copper-dim: #6e4a2c;
    --accent-signal: #7fbf8c;
    --accent-signal-dim: #3f5b46;
    --text-bright: #eae7e0;
    --text-dim: #8b8f94;
    --text-faint: #565a60;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Cascadia Mono", monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

* {
    font-family: NotoSerif;
    font-weight: 400;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-void);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /*overflow-y: hidden;*/
}

body::-webkit-scrollbar {
    display: none;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid var(--line-etched);
    background: var(--bg-panel);
}

#title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: white;
    margin: 0;
}

.sub {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-faint);
}

button {
    font-family: var(--mono);
    background: transparent;
    color: var(--accent-copper);
    border: 1px solid var(--accent-copper-dim);
    border-radius: 4px;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
    padding: 5px 12px;
    cursor: pointer;
}

button:hover:not(:disabled) {
    background: rgba(193, 121, 61, 0.08);
    border-color: var(--accent-copper);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.emoji {
  display: inline-block;
  font-size: 1em;
  height: 1em;
  line-height: 1;
  vertical-align: -0.1em;
}


#app {
    display: grid;
    grid-template-columns: 1fr 300px;
    flex-grow: 1;
}

@media (max-width: 860px) {
    #app {
        grid-template-columns: 1fr;
    }
    .chip-grid {
        place-items: center;
    }
    .chip {
        aspect-ratio: 1;
        min-width: 100px;
    }
}

@media (max-width: 460px) {
    main, aside {
        display: none;
    }
}

.pad-grid {
    margin: 20px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
    width: 90%;
}

.slot {
    aspect-ratio: 1;
    border-radius: 10px;
    background: var(--bg-panel);
    border: 1.5px dashed var(--line-etched-bright);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
    color: var(--text-dim);
}

.slot img {
    filter: brightness(0) invert(1);
}

.slot:hover {
    border-color: var(--accent-copper);
    transform: translateY(-1px);
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

aside {
    background-color: var(--bg-panel-raised);
    overflow-y: hidden;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#menuContent {
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-color: var(--text-faint) var(--bg-panel-raised);
    scrollbar-width: thin;
}

input {
    background: var(--bg-void);
    border: 1px solid var(--line-etched);
    border-radius: 6px;
    color: var(--text-bright);
    font-family: var(--sans);
    font-size: 13px;
    padding: 9px 11px;
    margin: 3px;
}

.category {
    margin: 16px 12px;
}

.category h2 {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--text-faint);
    text-transform: uppercase;
    margin: 0 0 10px 2px;
}

.chip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.chip {
    aspect-ratio: 1;
    background: var(--bg-panel);
    border: 1px solid var(--line-etched);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    position: relative;
    transition:
        border-color 0.15s ease,
        transform 0.1s ease;
}

.chip:hover {
    border-color: var(--accent-copper);
    transform: translateY(-1px);
}

.chip:active {
    cursor: grabbing;
}

.chip-icon {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.chip-fallback {
    font-family: var(--mono);
    font-size: 16px;
    color: var(--text-dim);
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #0f1114;
    border: 1px solid var(--line-etched-bright);
    color: var(--text-bright);
    font-family: var(--sans);
    font-size: 11px;
    padding: 6px 9px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tooltip .name {
    font-weight: 600;
}
.tooltip .desc {
    color: var(--text-dim);
    display: block;
    margin-top: 1px;
}

#chipStatus {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-faint);
    margin: 3px 3px 10px;
    padding: 6px 8px;
    background: var(--bg-void);
    border: 1px solid var(--line-etched);
    border-radius: 6px;
    min-height: 40px;
    white-space: pre-wrap;
    overflow: hidden;
    /*text-overflow: ellipsis;*/
}

footer {
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 18px 28px;
    border-top: 1px solid var(--line-etched);
    background: #101114;
    height: 50px;
    width: 100%;
}

footer img {
    margin-right: 7px;
    height: 40px;
    filter: brightness(0) invert(1);
}

footer p {
    color: #8b8f94;
    text-transform: uppercase;
    font-family: var(--mono);
    font-size: 10px;
    text-decoration: underline;
}

footer a {
    color: #8b8f94;
    text-transform: uppercase;
    font-family: var(--mono);
    font-size: 10px;
    text-decoration: underline;
}

footer span {
    color: #8b8f94;
    text-transform: uppercase;
    font-family: var(--mono);
    margin-left: 5px;
    margin-right: 5px;
    font-size: 7px;
}

footer p, footer a {
    transition: ease-in-out 0.1s;
}

footer p:hover {
    transform: translateY(-1px);
    color: var(--accent-copper);
}

footer a:hover {
    transform: translateY(-1px);
    color: var(--accent-copper);
}