@font-face {
  font-family: Barlow;
  src: url("../assets/barlow-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("../assets/barlow-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("../assets/barlow-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Bricolage;
  src: url("../assets/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Allura;
  src: url("../assets/allura-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --cyan: #1fc8d4;
  --deep: #00818d;
  --ink: #111414;
  --cream: #f6f1e8;
  --sand: #c6b79a;
  --wood: #1c1915;
  --mint: #e7f3ec;
  --dark: #004e56;
  color-scheme: light;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font: 20px/1.45 Barlow, sans-serif;
  color: var(--ink);
  background: var(--mint) url("../assets/pine-needles.svg") repeat;
  background-size: 160px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  overscroll-behavior: none;
}

header {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  background:
    linear-gradient(rgba(17, 20, 20, 0.72), rgba(17, 20, 20, 0.72)),
    url("../assets/wood-ant-nest.webp") center/cover;
  color: #fff;
}

header img.logo {
  height: 46px;
}

header .t {
  flex: 1;
  min-width: 0;
  font: 700 22px Bricolage, sans-serif;
}

header .t small {
  display: block;
  font: 500 14px Barlow, sans-serif;
  opacity: 0.8;
}

#ttl-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn {
  min-height: 52px;
  min-width: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  font: 700 17px Barlow, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn.home {
  background: var(--cyan);
  color: var(--ink);
}

.btn.back {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

main {
  height: calc(100% - 72px);
  overflow-y: auto;
  padding: 16px 22px 12px;
  -webkit-overflow-scrolling: touch;
}

h1 {
  font: 800 34px/1.1 Bricolage, sans-serif;
  margin: 0 0 2px;
}

h1 .s {
  font: 400 42px Allura, cursive;
  color: var(--deep);
  font-weight: 400;
}

.lead {
  font-size: 17px;
  color: #3e494a;
  margin: 0 0 10px;
}

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

.region {
  background: #fff;
  border-radius: 22px;
  padding: 12px 8px 14px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--sand);
  border: 3px solid transparent;
  transition: transform 0.1s;
}

.region:active {
  transform: scale(0.97);
  border-color: var(--cyan);
}

.region img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.region .n {
  font: 800 24px Bricolage, sans-serif;
  margin-top: 4px;
}

.region .c {
  display: inline-block;
  margin-top: 6px;
  background: var(--deep);
  color: #fff;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 15px;
  font-weight: 700;
}

.rufa {
  grid-column: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.rufa img {
  width: 190px;
  margin-top: -6px;
  transform: scaleX(-1);
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.18));
}

.rufa .bub {
  background: #fff;
  border-radius: 18px 18px 4px 18px;
  padding: 10px 14px;
  font: 700 16px/1.25 Bricolage, sans-serif;
  box-shadow: 0 5px 0 var(--sand);
  max-width: 220px;
  align-self: flex-start;
}

.rufa .bub span {
  display: block;
  font: 400 26px Allura, cursive;
  color: var(--deep);
}

.region.dim {
  opacity: 0.55;
  cursor: default;
}

.region.dim:active {
  transform: none;
  border-color: transparent;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--sand);
}

.card:active {
  transform: scale(0.98);
}

.card .ph {
  aspect-ratio: 5 / 4;
  background: var(--cream) center / cover;
}

.card .b {
  padding: 8px 10px 10px;
}

.card .nm {
  font: 700 15px/1.2 Bricolage, sans-serif;
}

.card .cm {
  color: #3e494a;
  font-size: 13px;
  min-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card .pr {
  margin-top: 4px;
  font-weight: 700;
  color: var(--deep);
  font-size: 16px;
}

.tag {
  display: inline-block;
  background: var(--mint);
  color: var(--dark);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  margin: 2px 4px 0 0;
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.gal .main {
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  background: var(--cream) center / cover;
  box-shadow: 0 6px 0 var(--sand);
}

.thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.thumbs div {
  width: 92px;
  height: 72px;
  border-radius: 14px;
  background: center / cover;
  cursor: pointer;
  border: 4px solid transparent;
}

.thumbs .on {
  border-color: var(--cyan);
}

.panel {
  background: #fff;
  border-radius: 24px;
  padding: 24px 26px;
  box-shadow: 0 6px 0 var(--sand);
}

.panel h1 {
  font-size: 36px;
}

.panel .common {
  font-size: 22px;
  color: var(--deep);
  font-weight: 700;
  margin-bottom: 8px;
}

.opts {
  margin: 18px 0;
  border-top: 2px solid var(--mint);
}

.opt {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 2px solid var(--mint);
  font-size: 21px;
}

.opt b {
  color: var(--deep);
  white-space: nowrap;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.keys {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.3fr);
  background: #fff;
  border-radius: 24px;
  padding: 14px 10px;
  box-shadow: 0 6px 0 var(--sand);
}

.key {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  border-right: 2px solid var(--mint);
}

.key:last-child {
  border: 0;
}

.key svg {
  flex: 0 0 40px;
  height: 32px;
  fill: #111414;
}

.key .l {
  font-size: 13px;
  font-weight: 600;
  color: #3e494a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.key .v {
  font: 700 18px/1.2 Bricolage, sans-serif;
}

.key .v small {
  display: block;
  font: 600 14px Barlow, sans-serif;
  color: var(--deep);
}

.key .ask {
  color: #8a7f6a;
  font-style: italic;
}

.staff {
  background: var(--cyan);
  border-radius: 20px;
  padding: 18px 22px;
  font: 700 22px Bricolage, sans-serif;
  display: flex;
  gap: 14px;
  align-items: center;
}

.staff img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.desc {
  grid-column: 1 / -1;
  margin-top: 8px;
  background: var(--cream);
  border-radius: 28px;
  padding: 30px 40px 34px;
  box-shadow: 0 6px 0 var(--sand);
  position: relative;
}

.desc h3 {
  font: 800 34px Bricolage, sans-serif;
  margin: 0 0 4px;
}

.desc h3 span {
  font: 400 46px Allura, cursive;
  color: var(--deep);
  margin-left: 10px;
}

.desc .rule {
  height: 6px;
  width: 140px;
  background: var(--cyan);
  border-radius: 6px;
  margin: 6px 0 20px;
}

.desc .txt {
  font-size: 23px;
  line-height: 1.65;
  color: #2b2620;
  column-count: 2;
  column-gap: 56px;
  column-rule: 2px dotted var(--sand);
  hyphens: auto;
  text-wrap: pretty;
}

.desc .dc {
  float: left;
  font: 800 84px/0.8 Bricolage, sans-serif;
  color: var(--deep);
  margin: 8px 12px 0 0;
}

.desc .txt .lede {
  font-weight: 600;
  color: var(--dark);
}

.foot {
  margin-top: 8px;
  font-size: 13px;
  color: #3e494a;
  text-align: center;
}

.empty {
  padding: 40px;
  text-align: center;
  font-size: 22px;
}

.empty .btn {
  margin-top: 18px;
}

img {
  -webkit-user-drag: none;
}

@media (orientation: portrait) {
  .desc .txt {
    column-count: 1;
  }
  .rufa {
    grid-column: auto / span 1;
  }
  .rufa .bub {
    display: none;
  }
  .detail {
    grid-template-columns: 1fr;
  }
  .regions {
    grid-template-columns: repeat(2, 1fr);
  }
}
