[data-shell2-slot="work"]:has(> [data-kholdem-clock]) {
  position: relative;
  min-height: 400px;
}

[data-kholdem-clock] {
  position: absolute;
  inset: 0;
  z-index: 800;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  color: #f1d0a7;
  background: #141210;
}

[data-kholdem-clock][open] { display: grid; }

.kholdem-clock-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline: clamp(12px, 3vw, 48px);
  border-bottom: 1px solid #3c3025;
}

.kholdem-clock-actions :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 600 13px/1.2 system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.kholdem-clock-actions :is(a, button):hover { text-decoration: underline; }
.kholdem-clock-actions :is(a, button):focus-visible {
  outline: 2px solid #e6ad70;
  outline-offset: -2px;
}

[data-kholdem-clock] iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

[data-kholdem-clock] iframe[hidden] { display: none; }
.kholdem-clock-notice { margin: 24px; }

@media (max-width: 880px), (max-height: 520px) {
  dialog[data-kholdem-clock]:modal {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    max-width: none !important;
    max-height: none !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  [data-kholdem-clock]::backdrop { background: #141210; }
  html:has([data-kholdem-clock]:modal) { overflow: hidden; }
}
