@font-face {
  font-family: "Public Pixel";
  src: url("/fonts/PublicPixel.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0021-007E;
}
@font-face {
  font-family: "Galmuri11";
  src: url("/fonts/Galmuri11.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Galmuri11";
  src: url("/fonts/Galmuri11-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #172f45;
  --muted: #476073;
  --line: #9cb3c3;
  --navy: #183951;
  --mint: #b0f6dc;
  --paper: #f5f9fb;
  --mono: "Public Pixel", "Galmuri11", monospace;
  font-family: "Public Pixel", "Galmuri11", "Malgun Gothic", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: #dfe9ee;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, #90a9b51a 1px, transparent 1px),
    linear-gradient(#90a9b51a 1px, transparent 1px),
    linear-gradient(125deg, #ebf2f4, #d8e4ea 75%);
  background-size: 18px 18px, 18px 18px, cover;
}
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .58; cursor: wait; }
:focus-visible { outline: 3px solid #067ca3; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.28rem; letter-spacing: 0; }
h3 { font-size: 1rem; }
.masthead { background: #edf4f6ed; border-bottom: 1px solid #afc2cc; }
.header-inner, .page { width: min(100% - 2rem, 57rem); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; }
.brand, .header-actions, .text-action, .screen-status, .library-label, .primary-button { display: inline-flex; align-items: center; }
.brand { gap: .65rem; font: 400 1rem/1.5 var(--mono); }
.brand-chip { width: 1.66rem; height: 1.43rem; background: #8dd8c3; border: 3px solid var(--navy); border-radius: .18rem; position: relative; box-shadow: inset 0 -4px #509a91; }
.brand-chip::after { content: ""; position: absolute; width: .63rem; height: .15rem; background: var(--navy); left: .32rem; bottom: .08rem; }
.header-actions { gap: .8rem; }
.text-action { gap: .45rem; justify-content: center; min-height: 2.75rem; padding: .2rem .3rem; background: none; border: 0; color: #23465a; font-size: .9rem; font-weight: 700; text-decoration: none; }
.text-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.book-icon { width: 1rem; height: .82rem; border: 2px solid currentColor; border-radius: 2px; background: linear-gradient(90deg, transparent 43%, currentColor 44% 56%, transparent 57%); }
.page { padding: clamp(1.2rem, 4vw, 3.2rem) 0 3rem; }
.console {
  padding: clamp(.65rem, 2.25vw, 1.42rem) clamp(.65rem, 2.25vw, 1.42rem) 0;
  border: 2px solid #5e7b8d;
  border-radius: 1.5rem 1.5rem 1.75rem 1.75rem;
  background: linear-gradient(130deg,#cfdee5, #b8cdd7 68%, #a8c2d0);
  box-shadow: inset 0 3px #f5fbff, inset 0 -4px #8ea9b9, 0 5px 0 #809dae, 0 16px 44px #4c6d7d24;
}
.display-screen {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; min-height: clamp(10.3rem, 23vw, 13rem);
  padding: 1.15rem clamp(1.05rem, 4vw, 2.25rem);
  background-color: #183f58;
  background-image: linear-gradient(#7bcec90d 1px, transparent 1px), linear-gradient(90deg,#7bcec90d 1px, transparent 1px), linear-gradient(110deg,#133147,#20576d);
  background-size: 11px 11px, 11px 11px, cover;
  border: 5px solid #395768; border-radius: .8rem;
  box-shadow: 0 1px #f1f9fb, inset 0 1px 8px #0b203b75; color: #ebfff9;
}
.display-copy { position: relative; z-index: 1; max-width: 62%; overflow-wrap: anywhere; }
.screen-status { gap: .5rem; color: #bcf0de; font-size: .85rem; font-weight: 700; }
.power-light { display: inline-block; width: .53rem; height: .53rem; background: #9ef5cf; box-shadow: 0 0 0 2px #73c5a946; }
.display-screen h1 { font: 700 clamp(1.65rem, 4.6vw, 3rem)/1.3 var(--mono); margin: .45rem 0 .6rem; text-shadow: 0 3px #162f48; }
.display-screen p { color: #d4e6e9; font-size: 1rem; word-break: keep-all; }
.pixel-scene { position: absolute; right: 1.5%; width: 42%; max-height: 94%; object-fit: contain; image-rendering: pixelated; pointer-events: none; }
.hinge { display: flex; justify-content: space-between; height: 1.2rem; margin: 0 7%; align-items: center; position: relative; }
.hinge::before { content: ""; width: calc(100% + 14%); height: 1px; position: absolute; left: -7%; background: #94acb9; box-shadow: 0 1px #d9e6ed; }
.hinge i { width: 15%; height: .65rem; border: 1px solid #7f9bab; border-radius: 9px; background: linear-gradient(#dce9ee, #9fb7c4); z-index: 1; }
.control-screen { padding: clamp(1rem, 3.5vw, 2rem); border: 2px solid #7693a3; border-radius: .75rem; background: var(--paper); box-shadow: inset 0 2px 0 #d5e1e7, 0 1px #ebf6fb; }
.console-edge { height: 1.35rem; display: flex; gap: .42rem; align-items: center; justify-content: flex-end; padding-right: 1.2rem; }
.console-edge span, .console-edge i { width: 1.1rem; height: 3px; background: #7894a4; border-radius: 1px; box-shadow: 0 1px #dceaf0; }
.console-edge i { width: .55rem; }
.box-card { margin-top: .85rem; display: flex; align-items: center; gap: 1rem; padding: 1.15rem; color: var(--ink); text-decoration: none; border: 2px solid #547d89; border-radius: .45rem; background: linear-gradient(105deg,#e0f4ec,#edf7f5); box-shadow: inset 0 2px white, 0 3px #a7bdc6; }
.box-card:hover { background: #d4eee3; }
.box-description { display: grid; gap: .15rem; }
.box-description strong { font: 900 1.4rem/1.2 var(--mono); }
.box-description > span { font-size: .94rem; color: var(--muted); }
.box-open { background: #a6e8d4; border: 1px solid #62968c; font-size: .94rem; font-weight: 800; padding: .3rem .7rem; margin-left: auto; border-radius: .25rem; }
.cartridge { position: relative; width: 2.45rem; height: 2.85rem; flex: none; background: #70acac; border: 3px solid #315368; border-radius: 3px; box-shadow: inset -4px -3px #56898d; }
.cartridge::before { content: ""; position: absolute; top: .25rem; left: .23rem; right: .23rem; height: 1.25rem; border: 2px solid #456f7a; background: repeating-linear-gradient(0deg,#d4f6e5 0 4px,#aee2d0 4px 6px); }
.cartridge i { position: absolute; left: .4rem; right: .4rem; bottom: .2rem; height: 4px; background: repeating-linear-gradient(90deg,#305567 0 3px,transparent 3px 5px); }
.box-path { display: flex; align-items: center; gap: .65rem; color: #3a586c; margin: -.35rem 0 .55rem; font: 700 .94rem/1.2 var(--mono); }
.box-path .text-action { min-height: 2.6rem; padding-inline: 0; font-family: var(--mono); }
.intro, .upload-copy p, .empty-state p, .list-state, .transfer p, .pagination { color: var(--muted); }
.intro { margin: .3rem 0 1.2rem; }
.login-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { display: block; font-size: .92rem; font-weight: 700; margin-bottom: .4rem; }
input { min-width: 0; width: 100%; height: 3rem; border: 1.5px solid #829ba9; border-radius: .3rem; color: var(--ink); background: white; padding: 0 .75rem; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 3.75rem; }
.password-toggle { position: absolute; right: .15rem; top: .15rem; bottom: .15rem; min-width: 3rem; color: #315064; font-size: .9rem; border: 0; background: transparent; border-radius: .2rem; }
.password-toggle:hover { background: #edf4f6; }
.primary-button, .secondary-button { min-height: 2.9rem; border-radius: .35rem; font-weight: 800; text-align: center; }
.primary-button { gap: .55rem; padding: .54rem 1.2rem; color: #123b42; border: 2px solid #32665f; background: #a6e8d4; box-shadow: inset 0 2px #d9fff2, 0 3px #42706f; justify-content: center; }
.primary-button:hover { background: #bbf6e4; }
.primary-button:active { transform: translateY(1px); box-shadow: inset 0 2px #c4f2e3, 0 1px #42706f; }
.secondary-button { padding: .4rem .9rem; background: #e5eff3; color: var(--ink); border: 1px solid var(--line); }
.login-submit { margin-top: 1.25rem; }
.error, .failures { color: #94342b; background: #fff1ed; border: 1px solid #d8b0a8; padding: .7rem .9rem; border-radius: .35rem; margin-top: .8rem; overflow-wrap: anywhere; }
.loading { padding-block: .75rem; }
.loading button { margin-top: .6rem; }
.upload-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border: 2px dashed #7b9d9e; border-radius: .5rem; background: #e3f3ee; }
.upload-panel.dragging { border-color: #155d63; background: #c7f0e3; }
.upload-copy p { margin-top: .15rem; }
.plus-icon { position: relative; display: inline-block; width: .85rem; height: .85rem; background: linear-gradient(currentColor,currentColor) center/3px 100% no-repeat,linear-gradient(currentColor,currentColor) center/100% 3px no-repeat; }
.upload-panel button { flex-shrink: 0; }
.library { margin-top: 1.25rem; }
.library-heading, .library-label { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.library-label { justify-content: flex-start; }
.file-count { min-width: 1.6rem; padding: .04rem .4rem; border-radius: .25rem; background: #dae8ef; color: #2a495c; font: 700 .9rem/1.5 var(--mono); text-align: center; }
.refresh-icon { font: 700 1.4rem/1 var(--mono); }
.list-state { margin: .5rem 0; }
.empty-state { padding: 1.9rem 1rem; text-align: center; background: #eaf1f5; border: 1px solid #bacbd4; border-radius: .4rem; }
.empty-state h3 { margin-top: .45rem; }
.empty-state p { font-size: .93rem; margin-top: .18rem; }
.empty-slot { width: 2rem; height: 1.58rem; display: inline-block; position: relative; border: 2px solid #7694a7; border-radius: 2px; background: #cedee6; box-shadow: inset 0 -3px #b4cbd7; }
.empty-slot::before { content: ""; position: absolute; left: 4px; right: 4px; top: 5px; height: 3px; background: #7694a7; }
.file-grid { margin: .45rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .62rem; }
.file-slot { display: flex; flex-direction: column; min-width: 0; padding: .8rem .8rem .5rem; border: 1px solid #9cb3c0; background: white; border-radius: .45rem; box-shadow: inset 0 -3px #e0eaef; }
.file-slot-head { display: flex; align-items: flex-start; gap: .65rem; min-width: 0; }
.file-name { font-size: .95rem; font-weight: 700; overflow-wrap: anywhere; line-height: 1.45; }
.file-info { min-width: 0; }
.file-meta { display: flex; flex-wrap: wrap; gap: .18rem .45rem; margin: .25rem 0 .45rem; font-size: .82rem; color: var(--muted); }
.file-icon { width: 1.6rem; height: 1.85rem; flex: none; border: 2px solid #405c70; background: #c9ddeb; position: relative; clip-path: polygon(0 0, 68% 0, 100% 25%, 100% 100%, 0 100%); }
.file-icon::before { content: ""; position: absolute; width: .55rem; height: .5rem; right: 0; top: 0; background: #68879c; }
.file-icon::after { position: absolute; content: ""; height: .17rem; left: .22rem; right: .22rem; bottom: .4rem; background: #567488; box-shadow: 0 -.32rem #567488; }
.file-icon.image { background: #b9e4d3; }.file-icon.media { background: #e1d3f3; }.file-icon.archive { background: #efdfa8; }.file-icon.document { background: #cae0fb; }
.file-icon.image::after { height: .7rem; background: #507b68; clip-path: polygon(0 100%,0 75%,19% 75%,19% 53%,38% 53%,38% 25%,55% 25%,55% 46%,70% 46%,70% 32%,85% 32%,85% 60%,100% 60%,100% 100%); box-shadow: none; }
.file-icon.media::after { height: .72rem; width: .65rem; left: .37rem; background: #73628a; clip-path: polygon(0 0, 100% 50%, 0 100%); box-shadow: none; }
.file-icon.archive::after { height: .9rem; width: .32rem; left: .45rem; background: repeating-linear-gradient(#807341 0 2px,#fff0ba 2px 4px); box-shadow: none; }
.download-link { align-self: flex-start; margin-top: auto; font-size: .9rem; }
.download-icon { display: inline-block; font: 900 1.2rem/1 var(--mono); }
.transfer, .notice { margin-top: .8rem; padding: .75rem 1rem; border: 1px solid #afc9d5; background: #e9f3f7; border-radius: .35rem; }
.transfer h2 { font-size: 1rem; }.transfer p { overflow-wrap: anywhere; }
progress { display: block; width: 100%; height: .65rem; margin-top: .55rem; accent-color: #377d78; }
.failures { padding-left: 1.95rem; }
.pagination { margin-top: .85rem; display: flex; align-items: center; justify-content: center; gap: .85rem; font-size: .9rem; }
.pagination button { min-height: 2.75rem; }.pagination button:disabled { cursor: default; }
@media (max-width: 700px) {
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { min-height: 3.6rem; }
}
@media (max-width: 540px) {
  .header-inner, .page { width: min(100% - 1.1rem, 57rem); }
  .header-inner { padding: 0 .3rem; gap: .4rem; }
  .header-actions { gap: .4rem; }
  .console { border-radius: 1rem; }
  .display-screen { min-height: 9.4rem; border-width: 3px; }
  .display-copy { max-width: 65%; }
  .display-screen p { font-size: .88rem; }
  .pixel-scene { width: 42%; right: 0; }
  .login-fields { grid-template-columns: 1fr; gap: .65rem; }
  .login-submit { width: 100%; }
  .upload-panel { display: block; padding: .95rem; }
  .upload-panel button { margin-top: .68rem; }
  .control-screen { padding: .9rem; }
  .file-grid { grid-template-columns: 1fr; }
  .file-slot { flex-direction: row; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .65rem; }
  .file-slot-head { align-items: center; }.file-meta { margin-bottom: 0; }
  .download-link { align-self: center; flex-shrink: 0; margin: 0; }
  .intro, .upload-copy p { font-size: .95rem; }
}
@media (max-width: 350px) {
  .brand { font-size: 1rem; gap: .3rem; }.header-actions { gap: .1rem; }
  .album-action .book-icon { display: none; }
  .display-screen { padding: .8rem; }.display-screen h1 { font-size: 1.9rem; }
  .file-slot { flex-direction: column; align-items: stretch; }.download-link { align-self: flex-start; }
}
