/* PokerBrain: schwarzer Hintergrund, gedämpfte Farben, keine Animationen. */

:root {
  --bg: #000;
  --fg: #d6d6d6;
  --muted: #7a7a7a;
  --line: #262626;
  --btn: #161616;
  --btn-strong: #1f3a2b;
  --fold: #b0413e;
  --call: #3f6fb0;
  --raise: #3f9a5c;
  --warn: #b08a3e;
  --touch: 48px; /* Mindestgröße für Tippflächen */
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  animation: none !important;
  transition: none !important;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#app {
  height: 100%;
}

.screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: calc(env(safe-area-inset-top) + 12px) calc(env(safe-area-inset-right) + 16px)
    calc(env(safe-area-inset-bottom) + 12px) calc(env(safe-area-inset-left) + 16px);
  overflow: hidden;
}

.screen-scroll .test-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bar h1 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
}

.grow {
  flex: 1;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--warn);
  border-radius: 8px;
  color: var(--warn);
  font-size: 15px;
}

.bottom-actions {
  display: flex;
  gap: 12px;
  padding-top: 12px;
}

.bottom-actions .btn {
  flex: 1;
}

.bottom-actions.end {
  justify-content: flex-end;
}

.bottom-actions.end .btn {
  flex: 0 0 auto;
}

.btn {
  min-width: var(--touch);
  min-height: var(--touch);
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--btn);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.btn:active {
  background: #262626;
}

.btn:disabled {
  opacity: 0.4;
}

.btn.primary {
  background: var(--btn-strong);
}

.btn.icon {
  width: 56px;
  height: 56px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.small {
  min-height: 44px;
  margin-top: 6px;
  font-size: 15px;
}

/* Tests */

.test-summary {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--btn);
  font-weight: 600;
}

.test-summary.pass {
  color: var(--raise);
}

.test-summary.fail {
  color: var(--fold);
}

.test-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.test-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.test-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.test-status {
  flex: 0 0 auto;
  min-width: 44px;
  font-weight: 600;
  color: var(--muted);
}

.test-row.pass .test-status {
  color: var(--raise);
}

.test-row.fail .test-status {
  color: var(--fold);
}

.test-row.skip .test-status {
  color: var(--warn);
}

.test-name {
  flex: 1;
}

.test-time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.test-detail {
  margin: 4px 0 0 52px;
  color: var(--muted);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-word;
  user-select: text;
  -webkit-user-select: text;
}
