:root {
  --max-width: 420px;
  --border: #d7d7d7;
  --text: #111;
  --muted: #666;
  --bg-soft: #f7f7f7;
  --bg-panel: #ffffff;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text);
  font-family: Arial, sans-serif;
  text-align: center;
  touch-action: manipulation;
}

body {
  overscroll-behavior: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

h1 {
  margin: 8px 0 14px;
  font-size: 28px;
}

.cat {
  font-size: 88px;
  line-height: 1;
  margin: 6px 0 10px;
}

.mood {
  font-size: 16px;
  margin-bottom: 14px;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  margin-bottom: 14px;
}

.panel.left {
  text-align: left;
}

.label {
  font-weight: 700;
  margin-bottom: 8px;
}

.bar {
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.subtext {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.subtext.big {
  font-size: 20px;
  margin-bottom: 12px;
}

.button-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.button,
button {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  padding: 14px 16px;
  cursor: pointer;
  touch-action: manipulation;
}

.button.primary {
  font-weight: 700;
}

.button.small {
  font-size: 16px;
  padding: 12px 14px;
}

.stats,
.share-section {
  margin-top: 8px;
}

.hidden {
  display: none;
}

.event-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.event-body {
  font-size: 15px;
  color: var(--muted);
}

.feedback {
  min-height: 30px;
  font-weight: 700;
  font-size: 20px;
  margin-top: 12px;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.grid-btn {
  font-size: 38px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  cursor: pointer;
  min-height: 110px;
  touch-action: manipulation;
}

.spot-item {
  display: block;
  font-size: 42px;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1565e8;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid var(--border);
  touch-action: manipulation;
  user-select: none;
}

.tile.revealed {
  background: #fff;
  color: #111;
}

.tile.matched {
  background: #b6f2b6;
  color: #111;
}

.poop-row {
  font-size: 28px;
  margin-bottom: 8px;
}

.date {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 14px;
}

/* FISHING GAME */
.big-location {
  font-size: 28px;
  margin-bottom: 6px;
}

.fishing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 15px 0;
}

.fish-spot {
  width: 100%;
  aspect-ratio: 1 / 1;
  font-size: 30px;
  border-radius: 12px;
  border: 1px solid #ccc;
  background: #d9f0ff;
  color: #111;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

#bar {
  font-size: 22px;
  margin-bottom: 8px;
  line-height: 1.3;
}

#pointer {
  font-size: 22px;
  line-height: 1;
  min-height: 30px;
  width: 100%;
  text-align: left;
  transition: margin-left 0.05s linear;
  user-select: none;
}

.pads {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.pads button {
  width: 50%;
  font-size: 28px;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #efefef;
  touch-action: manipulation;
  user-select: none;
}

.pads button:active,
.fish-spot:active,
.tile:active,
.grid-btn:active,
button:active {
  transform: scale(0.98);
}

@media (min-width: 768px) {
  .container {
    max-width: 520px;
  }
}