.gartic {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) calc(var(--space-1) * 2);
  gap: var(--space-3);
  font-family: var(--font-mono);
}

.gartic-phase {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: oklch(43.1% 0 0);
  text-align: center;
}

.gartic-main {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.gartic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: min(640px, 100%);
  max-width: 100%;
}

.gartic-prompt-display {
  font-size: var(--space-2);
  font-weight: 600;
  text-align: center;
  max-width: 600px;
  word-break: break-word;
  padding: var(--space-2) var(--space-4);
  border: 1px solid oklch(0% 0 0);
  border-radius: var(--space-1);
  background: oklch(100% 0 0);
}

.gartic-input {
  width: 100%;
  max-width: 520px;
  background: oklch(100% 0 0);
  color: oklch(0% 0 0);
  border: 1px solid oklch(0% 0 0);
  padding: 10px var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--type-base);
  line-height: 1.4;
  border-radius: var(--space-1);
}
.gartic-textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.4;
}
.gartic-input:focus {
  outline: 2px solid oklch(0% 0 0);
  outline-offset: -2px;
}

.gartic-canvas {
  background: oklch(100% 0 0);
  border: 1px solid oklch(0% 0 0);
  border-radius: var(--space-1);
  display: block;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  touch-action: none;
  cursor: crosshair;
}
.gartic-canvas-readonly {
  cursor: default;
}

.gartic-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.gartic-waiting {
  font-size: var(--space-1);
  color: oklch(43.1% 0 0);
  font-style: italic;
  text-align: center;
}

.gartic-reveal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--space-1) * 2);
  width: 100%;
  max-width: 1100px;
}

.gartic-chain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.gartic-chain-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: oklch(55.9% 0 0);
}

.gartic-chain-prompt,
.gartic-chain-guess {
  font-size: 15px;
  font-weight: 600;
  max-width: 100%;
  word-break: break-word;
  padding: 6px var(--space-3);
  border: 1px solid oklch(0% 0 0);
  border-radius: var(--space-1);
  background: oklch(100% 0 0);
}

.gartic-chain-arrow {
  font-size: var(--space-2);
  color: oklch(62.3% 0 0);
  line-height: 1;
}

.gartic-chain-canvas {
  background: oklch(100% 0 0);
  border: 1px solid oklch(0% 0 0);
  border-radius: var(--space-1);
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 3 / 2;
}

.gartic-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: var(--space-2);
}

@media (max-width: calc(var(--space-5) * 7)) {
  .gartic-reveal { grid-template-columns: 1fr; }
  .gartic-prompt-display { font-size: var(--space-4); }
}
