/* Pocket Choice — MIT License, Copyright (c) 2026 Yabi Labs */
:root {
  color-scheme: light;
  --pc-ink: #28362e;
  --pc-paper: #f6efd8;
  --pc-accent: #e6ac53;
  --pc-selected: #d9e5bd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #e9e4d5;
  color: var(--pc-ink);
  font-family: ui-monospace, "Hiragino Kaku Gothic ProN", Meiryo, monospace;
}
main {
  max-width: 960px;
  margin: auto;
  padding: 32px 28px;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
.site-nav {
  font-size: 12px;
}
header {
  margin: 38px 0 32px;
  position: relative;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
}
h1 {
  font-size: clamp(46px, 9vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  margin: 24px 0;
}
h1 span {
  color: #ab542f;
}
.intro {
  font-size: 18px;
  font-weight: 700;
}
.console {
  background: #bcc8a4;
  border: 3px solid var(--pc-ink);
  padding: 24px;
  box-shadow: 8px 8px 0 #9caa8d;
}
.console-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.1em;
  border-bottom: 2px solid #82917c;
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.pc-group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.pc-group legend {
  font-size: 18px;
  font-weight: bold;
  padding: 0;
}
.hint {
  font-size: 12px;
  margin: 12px 0 22px;
  line-height: 1.8;
}
.pc-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pc-option {
  position: relative;
  cursor: pointer;
  min-width: 0;
}
.pc-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.pc-card {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 228px;
  padding: 24px 12px 38px;
  border: 3px solid var(--pc-ink);
  background: var(--pc-paper);
  box-shadow: 4px 4px 0 var(--pc-ink);
}
.pc-index {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 11px;
  opacity: 0.7;
}
.pc-card svg {
  width: 64px;
  height: 64px;
  margin: 5px 0 18px;
}
.pc-card strong {
  font-size: 18px;
}
.pc-desc {
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
  margin-top: 10px;
}
.pc-badge {
  position: absolute;
  bottom: -11px;
  border: 2px solid var(--pc-ink);
  padding: 4px 14px;
  background: var(--pc-ink);
  color: var(--pc-paper);
  font-size: 12px;
  visibility: hidden;
}
.pc-option input:checked + .pc-card {
  background: var(--pc-selected);
  box-shadow:
    inset 0 0 0 3px var(--pc-paper),
    4px 4px 0 var(--pc-ink);
}
.pc-option input:checked + .pc-card .pc-badge {
  visibility: visible;
}
.pc-option input:focus-visible + .pc-card {
  outline: 3px dashed var(--pc-ink);
  outline-offset: 7px;
}
.pc-option input:disabled + .pc-card {
  opacity: 0.5;
  cursor: not-allowed;
}
.help {
  font-size: 11px;
  line-height: 1.8;
  margin: 28px 0 0;
}
.caption {
  font-size: 13px;
  margin: 28px 0 40px;
  text-align: center;
}
footer {
  border-top: 1px solid #a8ae9c;
  padding-top: 24px;
  line-height: 1.9;
}
footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.embedded .site-nav {
  display: none;
}
a:focus-visible {
  outline: 3px dashed var(--pc-ink);
  outline-offset: 5px;
}
@media (max-width: 560px) {
  main {
    padding: 24px 18px;
  }
  header {
    margin: 24px 0;
  }
  h1 {
    font-size: 54px;
  }
  .console {
    padding: 20px 16px;
    box-shadow: 5px 5px 0 #9caa8d;
  }
  .pc-options {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .pc-card {
    min-height: 92px;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    padding: 18px 16px;
  }
  .pc-index {
    display: none;
  }
  .pc-card svg {
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    margin: 0;
  }
  .pc-card strong {
    font-size: 16px;
  }
  .pc-desc {
    text-align: left;
    margin: 4px 0 0;
    font-size: 11px;
  }
  .pc-badge {
    right: 12px;
    bottom: -10px;
    font-size: 10px;
    padding: 2px 10px;
  }
  .help {
    margin-top: 24px;
  }
  .caption {
    font-size: 12px;
  }
}
@media (forced-colors: active) {
  .pc-option input:checked + .pc-card {
    outline: 3px solid Highlight;
  }
  .pc-badge {
    border-color: Highlight;
  }
}
