:root {
  color-scheme: light;
  --paper: #f6eee2;
  --ink: #243b42;
  --accent: #225d69;
  --muted: #525e58;
  --stroke: #ddceba;
  --white: #fffbf3;
  font:
    15px/1.45 "DM Sans",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 53% 0%, #fff9ed, transparent 75%);
}
button,
a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  font: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a:focus-visible,
button:focus-visible,
canvas:focus-visible {
  outline: 3px solid #256f88;
  outline-offset: 3px;
}
header {
  border-bottom: 1px solid var(--stroke);
}
nav {
  min-height: 57px;
  display: flex;
  align-items: center;
}
nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 750;
}
nav a:hover {
  text-decoration: underline;
}
.shell {
  width: min(1320px, calc(100% - 80px));
  margin-inline: auto;
}
main {
  padding-bottom: 24px;
}
.intro {
  margin: 28px 0 22px;
}
.kicker {
  color: #46685d;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 780;
  margin: 0 0 5px;
}
h1 {
  font:
    500 clamp(3.1rem, 7vw, 5.6rem)/0.96 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: -0.063em;
  margin: 0;
}
h1 i {
  color: #397284;
  font-weight: 400;
}
.intro p:last-child {
  color: var(--muted);
  margin: 9px 0 0;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 25vw, 330px);
  gap: 18px;
  align-items: start;
}
.room {
  height: clamp(470px, 64vh, 670px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #b3a892;
  border-radius: 16px;
  background: #d2b598 url("./ruang.jpg") center center/cover;
  box-shadow: 0 10px 24px #5b432717;
}
#view {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
}
#view:focus-visible {
  outline-offset: -4px;
}
#view:active {
  cursor: grabbing;
}
.room-top {
  position: absolute;
  inset: 13px 13px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  pointer-events: none;
}
#mood,
#reset-view,
.room-tip {
  background: #fffbf1ef;
  border: 1px solid #67584238;
  color: #263c40;
  box-shadow: 0 3px 12px #2f1a1512;
  border-radius: 30px;
  margin: 0;
}
#mood {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  font-size: 0.77rem;
  font-weight: 750;
}
#mood::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #458783;
}
#reset-view {
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  pointer-events: auto;
}
#reset-view:hover {
  background: #fff;
}
.room-tip {
  position: absolute;
  right: 13px;
  bottom: 13px;
  padding: 6px 11px;
  color: #425955;
  font-size: 0.71rem;
  font-weight: 700;
  pointer-events: none;
}
aside {
  display: grid;
  gap: 12px;
}
.card {
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 15px;
}
h2 {
  margin: 0 0 12px;
  font:
    500 1.55rem/1.15 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: -0.03em;
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.actions button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 49px;
  padding: 6px 8px;
  border: 1px solid #cdd8d4;
  border-radius: 10px;
  background: #edf4ef;
  font-size: 0.83rem;
  text-align: start;
}
.actions button:nth-child(3),
.actions button:nth-child(4) {
  background: #faf0dd;
  border-color: #efdec0;
}
.actions button:nth-child(5),
.actions button:nth-child(6) {
  background: #ecf0f7;
  border-color: #d7e0f0;
}
.actions span {
  display: grid;
  place-items: center;
  min-width: 22px;
  color: #276375;
  font-size: 1.18rem;
  line-height: 1;
}
.actions button:hover {
  filter: brightness(0.965);
}
.actions button[aria-pressed="true"] {
  background: #2e6070;
  color: white;
  border-color: #2e6070;
}
.actions button[aria-pressed="true"] span {
  color: white;
}
.journal-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.journal-title h2 {
  margin-bottom: 9px;
}
.journal-title span {
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 800;
}
progress {
  width: 100%;
  height: 6px;
  display: block;
  accent-color: #337586;
}
.journal ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.journal li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}
.journal li::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 1px solid #8e9b8f;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.journal li.done::before {
  content: "✓";
  color: white;
  border-color: #3f7869;
  background: #3f7869;
  font-size: 9px;
}
#reward {
  font-size: 0.8rem;
  font-weight: 740;
  color: var(--accent);
  margin: 12px 0 0;
}
.fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fffbf4ea;
  text-align: center;
  padding: 20px;
}
@media (max-width: 940px) {
  .shell {
    width: calc(100% - 38px);
  }
}
@media (max-width: 740px) {
  .shell {
    width: calc(100% - 24px);
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .intro {
    margin: 17px 0 14px;
  }
  .intro p:last-child {
    font-size: 0.86rem;
  }
  .room {
    height: clamp(310px, 48svh, 500px);
    border-radius: 12px;
  }
  .room-top {
    inset: 9px 9px auto;
  }
  .room-tip {
    right: 9px;
    bottom: 9px;
  }
  .card {
    padding: 11px;
  }
  h2 {
    margin-bottom: 8px;
    font-size: 1.35rem;
  }
  .actions {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  .actions button {
    padding: 5px 6px;
    font-size: 0.76rem;
    gap: 3px;
  }
}
