html {
  background: #000;
}

body.site-c-minimal {
  min-height: 100vh;
  margin: 0;
  color: #f1f1f1;
  background: #000 !important;
  font-family: "MS Gothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", monospace;
  letter-spacing: 0;
}

body.site-c-minimal::before,
body.site-c-minimal::after {
  display: none !important;
}

.site-c-minimal .c-minimal-shell {
  width: min(1240px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.site-c-minimal .c-search-window {
  width: min(680px, 100%);
  margin: 0 auto 14px;
  border: 2px solid #777;
  background: #0b0b0b;
  box-shadow: 0 0 0 1px #000, 6px 6px 0 rgba(255,255,255,.08);
}

.site-c-minimal .c-search-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px;
  color: #fff;
  background: #1d1d1d;
  border-bottom: 2px solid #555;
  font-size: 12px;
  line-height: 1.2;
}

.site-c-minimal .c-search-form {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
  padding: 10px;
}

.site-c-minimal .c-search-form input,
.site-c-minimal .c-search-form button {
  min-width: 0;
  min-height: 34px;
  border-radius: 0;
  font: 700 14px/1.2 "MS Gothic", monospace;
  letter-spacing: 0;
}

.site-c-minimal .c-search-form input {
  width: 100%;
  border: 2px inset #bdbdbd;
  color: #050505;
  background: #f8f8f8;
  padding: 4px 7px;
}

.site-c-minimal .c-search-form button {
  border: 2px outset #c9c9c9;
  color: #111;
  background: #d7d7d7;
  cursor: pointer;
}

.site-c-minimal .c-search-result {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  margin: 0;
  padding: 0 10px 10px;
  font-size: 12px;
  line-height: 1.45;
}

.site-c-minimal .c-search-result[hidden] {
  display: none;
}

.site-c-minimal .c-search-result span {
  color: #7eff86;
}

.site-c-minimal .c-search-result a {
  min-width: 0;
  color: #9fd7ff;
  word-break: break-all;
}

.site-c-minimal .c-stage-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 680px) minmax(160px, 220px);
  gap: 16px;
  align-items: start;
}

.site-c-minimal .c-game-stack {
  min-width: 0;
}

.site-c-minimal .c-rpg-frame {
  width: min(680px, 100%);
  min-height: 0 !important;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border: 8px solid #060606;
  outline: 3px solid #b5b5b5;
  background: #000;
  box-shadow: 0 0 0 2px #000, 0 0 56px rgba(255, 255, 255, .08);
}

.site-c-minimal .c-rpg-map {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  background:
    linear-gradient(rgba(0,0,0,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.08) 1px, transparent 1px),
    #608f3a;
  background-size: 32px 32px, 32px 32px, auto;
}

.site-c-minimal .rpg-path {
  position: absolute;
  border: 0 !important;
  background:
    repeating-linear-gradient(90deg, rgba(91,54,22,.16) 0 10px, transparent 10px 18px),
    #c79a58 !important;
  box-shadow: inset 0 0 0 4px rgba(88, 58, 26, .24);
}

.site-c-minimal .rpg-path-main {
  left: 45% !important;
  top: 0 !important;
  width: 90px !important;
  height: 100% !important;
}

.site-c-minimal .rpg-path-side {
  left: 8% !important;
  top: 62% !important;
  width: 78% !important;
  height: 78px !important;
}

.site-c-minimal .rpg-house {
  position: absolute;
  width: 136px !important;
  height: 116px !important;
  overflow: visible !important;
  pointer-events: auto;
  cursor: pointer;
}

.site-c-minimal .rpg-house-a {
  left: 7% !important;
  top: 9% !important;
}

.site-c-minimal .rpg-house-b {
  right: 7% !important;
  top: 13% !important;
  transform: scale(.92) !important;
}

.site-c-minimal .rpg-tree {
  position: absolute;
  width: 52px !important;
  height: 62px !important;
}

.site-c-minimal .rpg-tree.t1 { left: 4%; top: 6%; }
.site-c-minimal .rpg-tree.t2 { left: 29%; top: 5%; }
.site-c-minimal .rpg-tree.t3 { right: 4%; top: 7%; }
.site-c-minimal .rpg-tree.t4 { left: 5%; bottom: 14%; }
.site-c-minimal .rpg-tree.t5 { right: 13%; bottom: 16%; }
.site-c-minimal .rpg-tree.t6 { right: 4%; bottom: 34%; }

.site-c-minimal .rpg-flower {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}

.site-c-minimal .rpg-flower.f1 { left: 23%; top: 52%; }
.site-c-minimal .rpg-flower.f2 { left: 34%; top: 75%; }
.site-c-minimal .rpg-flower.f3 { right: 28%; top: 54%; }
.site-c-minimal .rpg-flower.f4 { right: 10%; top: 72%; }

.site-c-minimal .rpg-sign {
  left: 63%;
  top: 34%;
  width: 50px;
  height: 42px;
  border: 0;
  overflow: visible !important;
  pointer-events: auto;
  cursor: pointer;
}

.site-c-minimal .rpg-npc,
.site-c-minimal .c-rpg-e-portal,
.site-c-minimal .c-rpg-note-fragment {
  overflow: visible !important;
}

.site-c-minimal .c-rpg-note-fragment {
  position: absolute;
  left: 43%;
  bottom: 16%;
  z-index: 4;
  width: 42px;
  height: 29px;
  padding: 0;
  border: 2px solid #1f160e;
  color: transparent;
  background:
    repeating-linear-gradient(180deg, rgba(83, 61, 42, .18) 0 1px, transparent 1px 7px),
    #efe1b4;
  box-shadow: 3px 3px 0 rgba(0,0,0,.38);
  transform: rotate(-7deg);
  font: 0/0 "MS Gothic", monospace;
  letter-spacing: 0;
  cursor: pointer;
}

.site-c-minimal .c-rpg-note-fragment::before,
.site-c-minimal .c-rpg-note-fragment::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1px;
  background: rgba(42, 31, 24, .42);
  pointer-events: none;
}

.site-c-minimal .c-rpg-note-fragment::before {
  top: 9px;
  box-shadow: 0 6px rgba(42, 31, 24, .34);
}

.site-c-minimal .c-rpg-note-fragment::after {
  top: 21px;
  right: 16px;
}

.site-c-minimal .villager-girl {
  left: 46% !important;
  top: 43% !important;
}

.site-c-minimal .villager-woman {
  left: 67% !important;
  top: 45% !important;
}

.site-c-minimal .villager-shadow {
  left: 50% !important;
  top: 74% !important;
}

.site-c-minimal .rpg-npc {
  overflow: visible !important;
  border: 0 !important;
  background-repeat: no-repeat !important;
  image-rendering: pixelated !important;
  filter: drop-shadow(0 5px 0 rgba(0,0,0,.34)) !important;
}

.site-c-minimal .villager-girl {
  width: 58px !important;
  height: 78px !important;
  background-image: url("/assets/images/root-rpg/root_rpg_villager_girl.png") !important;
  background-size: 200% 100% !important;
  background-position: 0 100% !important;
}

.site-c-minimal .villager-girl::before,
.site-c-minimal .villager-girl::after {
  content: none !important;
  display: none !important;
}

.site-c-minimal .villager-woman {
  width: 42px !important;
  height: 96px !important;
  background-color: transparent !important;
  background-image: url("/assets/images/root-rpg/site_c_right_npc_maiden.png") !important;
  background-size: contain !important;
  background-position: 50% 100% !important;
}

.site-c-minimal .villager-woman::before,
.site-c-minimal .villager-woman::after {
  content: none !important;
  display: none !important;
}

.site-c-minimal .villager-shadow,
body.site-c-minimal.site-c-rpg-v38 .villager-shadow,
body.site-c-minimal.site-c-rpg-v38 .villager-shadow.is-shadow-present {
  left: 50% !important;
  top: 74% !important;
  width: 58px !important;
  height: 62px !important;
  background: none !important;
  filter: drop-shadow(0 0 10px rgba(0,0,0,.92)) drop-shadow(0 0 8px rgba(255,255,255,.16)) !important;
  animation: cShadowBlockWrithe .72s steps(2) infinite;
}

.site-c-minimal .villager-shadow::before,
.site-c-minimal .villager-shadow::after,
body.site-c-minimal.site-c-rpg-v38 .villager-shadow.is-shadow-present::before,
body.site-c-minimal.site-c-rpg-v38 .villager-shadow.is-shadow-present::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  background: #000 !important;
  border: 0 !important;
  border-radius: 0 !important;
  image-rendering: pixelated;
  pointer-events: none;
}

.site-c-minimal .villager-shadow::before,
body.site-c-minimal.site-c-rpg-v38 .villager-shadow.is-shadow-present::before {
  left: 22px !important;
  top: 5px !important;
  width: 10px !important;
  height: 10px !important;
  box-shadow:
    -10px 10px 0 #000,
    0 10px 0 #020202,
    10px 10px 0 #000,
    -20px 20px 0 #050505,
    -10px 20px 0 #000,
    0 20px 0 #020202,
    10px 20px 0 #000,
    20px 20px 0 #040404,
    -20px 30px 0 #000,
    -10px 30px 0 #040404,
    0 30px 0 #000,
    10px 30px 0 #020202,
    20px 30px 0 #000,
    -10px 40px 0 #000,
    0 40px 0 #030303,
    10px 40px 0 #000,
    0 50px 0 #000;
  animation: cShadowBlockHead .62s steps(2) infinite;
}

.site-c-minimal .villager-shadow::after,
body.site-c-minimal.site-c-rpg-v38 .villager-shadow.is-shadow-present::after {
  left: 7px !important;
  top: 18px !important;
  width: 12px !important;
  height: 12px !important;
  opacity: .88 !important;
  box-shadow:
    24px -8px 0 #000,
    34px 4px 0 #050505,
    4px 14px 0 #000,
    36px 18px 0 #000,
    12px 30px 0 #030303,
    28px 34px 0 #000;
  animation: cShadowBlockNoise .38s steps(2) infinite;
}

@keyframes cShadowBlockWrithe {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .96; }
  50% { transform: translate(-2px, 1px) scale(1.06, .94); opacity: .78; }
}

@keyframes cShadowBlockHead {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -2px); }
}

@keyframes cShadowBlockNoise {
  0%, 100% { transform: translate(0, 0); opacity: .72; }
  50% { transform: translate(-5px, 3px); opacity: 1; }
}

.site-c-minimal .c-rpg-e-portal {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 118px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid #9fd7ff;
  color: #9fd7ff;
  background: #020202;
  font: 900 15px/1 "MS Gothic", monospace;
  text-decoration: underline;
  cursor: pointer;
}

.site-c-minimal .c-rpg-e-portal[hidden] {
  display: none;
}

.site-c-minimal .c-rpg-bang {
  position: absolute;
  left: 50%;
  top: -28px;
  z-index: 22;
  width: 22px;
  height: 22px;
  display: none;
  place-items: center;
  transform: translateX(-50%);
  border: 2px solid #000;
  color: #111;
  background: #fff05a;
  box-shadow: 2px 2px 0 #000;
  font: 900 17px/1 "MS Gothic", monospace;
  pointer-events: none;
}

.site-c-minimal .can-talk > .c-rpg-bang {
  display: grid;
  animation: cBangPulse .46s steps(2) infinite;
}

@keyframes cBangPulse {
  50% { transform: translate(-50%, -5px); }
}

.site-c-minimal .c-rpg-help {
  margin: 8px 0 0;
  color: #d7d7d7;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.site-c-minimal .c-rpg-map.is-e-link-mode {
  background: #000 !important;
}

.site-c-minimal .c-rpg-map.is-e-link-mode::before {
  display: none;
}

.site-c-minimal .c-rpg-frame.is-e-link-mode .c-rpg-crt,
.site-c-minimal .c-rpg-frame.is-e-link-mode .c-rpg-hud,
.site-c-minimal .c-rpg-frame.is-e-link-mode .c-rpg-dialog,
.site-c-minimal .c-rpg-map.is-e-link-mode .rpg-path,
.site-c-minimal .c-rpg-map.is-e-link-mode .rpg-house,
.site-c-minimal .c-rpg-map.is-e-link-mode .rpg-tree,
.site-c-minimal .c-rpg-map.is-e-link-mode .rpg-flower,
.site-c-minimal .c-rpg-map.is-e-link-mode .rpg-sign,
.site-c-minimal .c-rpg-map.is-e-link-mode .rpg-npc,
.site-c-minimal .c-rpg-map.is-e-link-mode .c-rpg-player {
  display: none !important;
}

.site-c-minimal .c-rpg-map.is-e-link-mode .c-rpg-e-portal {
  display: grid;
}

.site-c-minimal .c-rpg-tasukete-flood {
  position: absolute;
  inset: 0;
  z-index: 16;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(0,0,0,.2);
}

.site-c-minimal .c-rpg-tasukete-flood.is-show {
  opacity: 1;
}

.site-c-minimal .c-rpg-tasukete-flood span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: #fff;
  text-shadow: 2px 2px #000, 0 0 14px #ff1e4a;
  font: 900 24px/1 "MS Gothic", monospace;
  white-space: nowrap;
  animation: cTasuketeSweep var(--speed) linear infinite;
  animation-delay: var(--delay);
}

@keyframes cTasuketeSweep {
  0% { transform: translateX(-70vw) skewX(-8deg); }
  100% { transform: translateX(70vw) skewX(8deg); }
}

body.c-rpg-gameover-lock .c-rpg-actions button {
  pointer-events: none !important;
  opacity: .42;
  cursor: not-allowed;
}

body.c-rpg-gameover-lock .c-rpg-actions {
  transition: transform .08s linear;
}

body.c-rpg-gameover-lock .c-rpg-actions.is-repelling {
  transform: translate(var(--repel-x, 0), var(--repel-y, 0));
}

body.site-c-minimal .c-rpg-note-app {
  background: rgba(0,0,0,.48);
  transition: opacity .18s linear;
}

body.site-c-minimal .c-rpg-note-app.is-closing {
  opacity: 0;
  pointer-events: none;
}

body.site-c-minimal .c-rpg-note-app .c-rpg-notepad-window {
  width: min(520px, calc(100vw - 32px));
  min-height: 260px;
  border: 2px solid #a9a9a9;
  background: #f7f7f7;
  box-shadow: 8px 8px 0 rgba(0,0,0,.55), 0 0 42px rgba(255,255,255,.14);
  transform: scale(.72) translateY(28px);
  opacity: 0;
  animation: cNoteAppBoot .42s steps(5, end) forwards;
}

body.site-c-minimal .c-rpg-note-app.is-closing .c-rpg-notepad-window {
  animation: cNoteAppClose .42s steps(5, end) forwards;
}

body.site-c-minimal .c-rpg-note-app .c-rpg-notepad-title {
  min-height: 26px;
  padding: 4px 7px;
  background: linear-gradient(90deg, #001f78, #2f78d0);
  color: #fff;
  font: 700 12px/1.2 "MS Gothic", monospace;
}

body.site-c-minimal .c-rpg-note-app .c-rpg-notepad-title button {
  width: 21px;
  height: 19px;
  padding: 0;
  border: 1px solid #555;
  background: #d8d8d8;
  color: #222;
  font: 900 12px/1 Arial, sans-serif;
}

body.site-c-minimal .c-rpg-note-app .c-rpg-notepad-text {
  min-height: 200px;
  margin: 0;
  padding: 20px 18px;
  color: #050505;
  white-space: pre-wrap;
  font: 700 24px/1.8 "MS Gothic", monospace;
}

body.site-c-minimal .c-rpg-note-app .c-rpg-notepad-text::after {
  content: "";
  display: inline-block;
  width: .55em;
  height: 1.15em;
  margin-left: 2px;
  transform: translateY(.18em);
  background: #111;
  animation: cNoteCaret .8s steps(1) infinite;
}

@keyframes cNoteAppBoot {
  0% { opacity: 0; transform: scale(.72) translateY(28px); filter: contrast(1.8) brightness(.7); }
  65% { opacity: 1; transform: scale(1.03) translateY(-2px); filter: contrast(1.2) brightness(1.1); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: none; }
}

@keyframes cNoteAppClose {
  0% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(.82) translateY(18px); filter: contrast(2) brightness(.6); }
}

@keyframes cNoteCaret {
  50% { opacity: 0; }
}

.c-rpg-final-photo {
  cursor: none;
}

.c-rpg-final-photo.is-counting {
  pointer-events: auto;
}

.c-rpg-noescape-text {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1210;
  transform: translateX(-50%);
  color: #ff2146;
  opacity: 0;
  text-shadow: 3px 3px #000, 0 0 18px rgba(255,33,70,.8);
  font: 900 28px/1 "MS Gothic", monospace;
  pointer-events: none;
}

.c-rpg-noescape-text.is-show {
  opacity: 1;
  animation: cNoEscapeJerk .18s steps(2) infinite;
}

@keyframes cNoEscapeJerk {
  50% { transform: translate(calc(-50% + 4px), -3px); }
}

.site-c-minimal .c-ad-column,
.site-c-minimal .c-ad-strip {
  display: grid;
  gap: 10px;
}

.site-c-minimal .c-ad-strip {
  grid-template-columns: repeat(3, 1fr);
  margin: 16px auto 0;
  width: min(920px, 100%);
}

.site-c-minimal .c-horror-ad {
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid #3a3a3a;
  border-radius: 2px;
  color: #e9e9e9;
  background: #080808;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px #000;
}

.site-c-minimal .c-horror-ad:hover {
  border-color: #8d1d32;
  filter: contrast(1.08) brightness(1.08);
}

.site-c-minimal .c-horror-ad img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #272727;
  filter: saturate(.9) contrast(1.1);
}

.site-c-minimal .c-horror-ad b {
  color: #ffef78;
  font-size: 13px;
  line-height: 1.35;
}

.site-c-minimal .c-horror-ad span {
  color: #c9c9c9;
  font-size: 11px;
  line-height: 1.5;
}

.site-c-minimal .c-horror-ad-wide {
  grid-template-columns: 92px 1fr;
  align-items: center;
}

.site-c-minimal .c-horror-ad-wide img {
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}

.site-c-minimal .c-ad-watch-dialog {
  position: fixed;
  inset: 0;
  z-index: 1180;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s linear;
}

.site-c-minimal .c-ad-watch-dialog.is-show {
  opacity: 1;
  pointer-events: auto;
}

.site-c-minimal .c-ad-watch-box {
  width: min(420px, calc(100vw - 34px));
  border: 2px solid #fff;
  color: #fff;
  background: #050505;
  box-shadow: 8px 8px 0 rgba(255,255,255,.12);
  padding: 18px;
  text-align: center;
}

.site-c-minimal .c-ad-watch-box p {
  margin: 0 0 16px;
  color: #fff;
  font: 900 28px/1.3 "MS Gothic", monospace;
}

.site-c-minimal .c-ad-watch-box button {
  min-width: 96px;
  min-height: 34px;
  border: 2px outset #c9c9c9;
  color: #111;
  background: #d8d8d8;
  font: 900 13px/1 "MS Gothic", monospace;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .site-c-minimal .c-stage-layout {
    grid-template-columns: 1fr;
  }

  .site-c-minimal .c-game-stack {
    order: 1;
  }

  .site-c-minimal .c-ad-column {
    order: 2;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .site-c-minimal .c-minimal-shell {
    width: min(100vw - 14px, 680px);
    padding-top: 10px;
  }

  .site-c-minimal .c-search-form {
    grid-template-columns: 1fr;
  }

  .site-c-minimal .c-rpg-frame {
    width: 100%;
  }

  .site-c-minimal .c-rpg-dialog {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px;
  }

  .site-c-minimal .c-rpg-dialog h2 {
    font-size: 15px;
  }

  .site-c-minimal .c-rpg-dialog p,
  .site-c-minimal .c-rpg-actions button {
    font-size: 12px;
  }

  .site-c-minimal .c-ad-column,
  .site-c-minimal .c-ad-strip {
    grid-template-columns: 1fr;
  }
}
