/* Standalone styles, scoped to .ttt-page. May also be loaded AFTER your
   existing styles.css. No CSS variables, Grid, flex gap or clamp(): iOS 9. */
.ttt-page, .ttt-page * { box-sizing: border-box; }
.ttt-page { margin: 0; -webkit-text-size-adjust: 100%; font-family: Georgia, "Times New Roman", serif; color: #f4e7d5; background: #1e140a url("https://www.berlinnhdarts.com/images/core/pub_bg.jpg") center center / cover fixed; line-height: 1.4; }
.ttt-page [hidden] { display: none !important; }
.ttt-page button { font-family: inherit; -webkit-appearance: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ttt-page button:focus, .ttt-page a:focus { outline: 3px solid #f4e7d5; outline-offset: 3px; }
.ttt-page button:disabled { cursor: default; }
.ttt-page p, .ttt-page h1, .ttt-page h2 { margin: 0; }
.ttt-shell { max-width: 1100px; margin: 16px auto; padding: 0 24px; background: rgba(40,26,16,.97); border: 2px solid #765035; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.ttt-header { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid #765035; }
.ttt-brand { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; color: #e5c9a2; text-decoration: none; }
.ttt-logo { width: 56px; height: 56px; margin-right: 16px; }
.ttt-league { display: block; font-size: 14px; letter-spacing: .7px; }
.ttt-title { display: block; font-size: 28px; font-weight: bold; color: #f4e7d5; }
.ttt-btn { min-height: 52px; padding: 12px 20px; border: 1px solid #a97e54; border-radius: 4px; background: #382414; color: #f4e7d5; font-size: 18px; font-weight: bold; line-height: 1.2; transition: background .15s, border-color .15s; }
.ttt-btn:hover:not(:disabled) { background: #57371f; border-color: #e5c9a2; }
.ttt-btn:disabled { color: #ad9882; border-color: #69513c; background: #302218; }
.ttt-toolbar { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; padding: 12px 0 16px; }
.ttt-label { display: block; color: #e5c9a2; text-transform: uppercase; font-size: 12px; letter-spacing: 2px; }
.ttt-difficulty strong { display: block; font-size: 40px; line-height: 1.15; color: #e5c9a2; }
.ttt-tools .ttt-btn { margin-left: 8px; }
.ttt-setup { text-align: center; padding: 36px 0 48px; }
.ttt-eyebrow { text-transform: uppercase; letter-spacing: 1.6px; color: #e5c9a2; font-size: 12px; }
.ttt-setup h1 { font-size: 40px; margin: 12px 0; color: #f4e7d5; }
.ttt-setup > p:not(.ttt-eyebrow) { font-size: 18px; }
.ttt-levels { display: -webkit-flex; display: flex; margin: 32px -8px; }
.ttt-level { width: 33.333%; margin: 0 8px; min-height: 200px; border: 2px solid #a97e54; border-radius: 4px; background: linear-gradient(145deg,#57371f,#332014); color: #f4e7d5; padding: 24px 12px; }
.ttt-level:hover { background: #614025; border-color: #e5c9a2; }
.ttt-level strong { display: block; font-size: 30px; }
.ttt-level span { display: block; font-size: 44px; color: #e5c9a2; margin: 12px 0; }
.ttt-level small { display: block; font-size: 14px; }
.ttt-play { display: -webkit-flex; display: flex; -webkit-align-items: stretch; align-items: stretch; padding-bottom: 16px; }
.ttt-board-area { width: 52%; padding-right: 24px; }
.ttt-board-caption { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; font-size: 16px; margin-bottom: 12px; color: #e5c9a2; }
.ttt-board-caption b { font-size: 24px; color: #f4e7d5; margin-left: 4px; }
.ttt-board { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: -4px; }
.ttt-cell { position: relative; width: 33.333%; padding: 4px; }
.ttt-square { width: 100%; height: 144px; border: 2px solid #9a704c; border-radius: 4px; background: linear-gradient(145deg,#52351f,#372316); color: #e5c9a2; line-height: 1; box-shadow: inset 0 1px 0 rgba(229,201,162,.12); }
.ttt-square:hover:not(:disabled) { background: #654328; border-color: #e5c9a2; }
.ttt-square:disabled { opacity: 1; }
.ttt-square .ttt-cell-index { font-size: 38px; color: #c8a886; }
.ttt-square .ttt-mark { font-size: 104px; font-weight: bold; }
.ttt-square.ttt-x { background: #61492c; color: #ffe0a7; }
.ttt-square.ttt-o { background: #38251e; color: #e8afa0; }
.ttt-square.ttt-selected { border: 4px solid #f0cea0; background: #755334; }
.ttt-square.ttt-selected .ttt-cell-index { font-size: 48px; color: #fff0d7; }
.ttt-square.ttt-winning { border: 4px solid #ffe0a7; box-shadow: inset 0 0 0 3px #765035; }
.ttt-panel { width: 48%; padding: 24px; border: 1px solid #765035; border-radius: 4px; background: #2c1c11; text-align: center; }
.ttt-panel h2 { margin-top: 4px; font-size: 26px; line-height: 1.2; }
.ttt-target { font-size: 124px; font-weight: bold; line-height: 1.12; color: #f0cea0; margin: 8px 0; }
.ttt-target.ttt-result { font-size: 60px; margin: 28px 0; }
.ttt-description { font-size: 18px; min-height: 50px; }
.ttt-attempts { display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center; margin: 12px 0; min-height: 24px; }
.ttt-life { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d2a676; background: #d2a676; margin: 0 6px; }
.ttt-life.ttt-lost { background: transparent; border-color: #8d6750; }
.ttt-feedback { min-height: 44px; font-size: 16px; margin-bottom: 12px !important; color: #e5c9a2; }
#result-controls .ttt-btn { display: block; width: 100%; min-height: 60px; font-size: 20px; }
.ttt-success { background: #d2a676; color: #2b1a10; border-color: #d2a676; }
.ttt-btn.ttt-success:hover:not(:disabled) { background: #e5c9a2; }
.ttt-miss { margin-top: 8px; }
.ttt-fine-print { font-size: 12px; color: #d3b898; margin-top: 12px !important; }
.ttt-footer { border-top: 1px solid #765035; padding: 12px 0; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; color: #d3b898; font-size: 12px; }
.ttt-small-btn { font-size: 12px; color: #e5c9a2; padding: 8px 12px; min-height: 44px; border: 1px solid #765035; background: transparent; border-radius: 3px; margin-left: 8px; }
.ttt-modal { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 5000; background: rgba(16,10,6,.9); padding: 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ttt-dialog { max-width: 760px; margin: 0 auto; background: #342217; color: #f4e7d5; border: 2px solid #d2a676; border-radius: 6px; padding: 28px; font-size: 18px; line-height: 1.5; }
.ttt-dialog-top { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; margin-bottom: 20px; }
.ttt-dialog h2 { font-size: 32px; }
.ttt-dialog p { margin-bottom: 16px; }
.ttt-dialog ul { padding-left: 24px; margin: 0 0 20px; }
.ttt-dialog li { margin-bottom: 8px; }
.ttt-dialog .ttt-success { width: 100%; }
.ttt-rule-ranges { color: #e5c9a2; font-weight: bold; }
.ttt-page.ttt-light { background-color: #e5c9a2; color: #382414; }
.ttt-light .ttt-shell { background: #f4e7d5; }
.ttt-light .ttt-title, .ttt-light .ttt-brand, .ttt-light .ttt-label, .ttt-light .ttt-difficulty strong, .ttt-light .ttt-eyebrow, .ttt-light .ttt-board-caption, .ttt-light .ttt-board-caption b, .ttt-light .ttt-setup h1, .ttt-light .ttt-footer { color: #57371f; }
.ttt-light .ttt-panel { background: #ecdbc3; }
.ttt-light .ttt-target, .ttt-light .ttt-feedback, .ttt-light .ttt-fine-print { color: #57371f; }
.ttt-light .ttt-small-btn { color: #57371f; }
.ttt-light .ttt-life.ttt-lost { border-color: #765035; }
@media (min-width: 701px) and (max-height: 780px) {
  .ttt-shell { margin: 8px auto; padding: 0 20px; }
  .ttt-header { padding: 8px 0; }
  .ttt-toolbar { padding: 8px 0 10px; }
  .ttt-square { height: 136px; }
  .ttt-panel { padding: 16px 24px; }
  .ttt-target { font-size: 112px; margin: 4px 0; }
  .ttt-description { min-height: 44px; }
  .ttt-attempts { margin: 8px 0; }
  .ttt-feedback { min-height: 28px; margin-bottom: 8px !important; }
  .ttt-fine-print { margin-top: 8px !important; }
  .ttt-footer { padding: 4px 0; }
}
@media (max-width: 700px) {
  .ttt-shell { margin: 0; border-width: 0; padding: 0 12px; }
  .ttt-header { padding: 12px 0; position: -webkit-sticky; position: sticky; top: 0; z-index: 10; background: #281a10; }
  .ttt-logo { width: 40px; height: 40px; margin-right: 8px; }
  .ttt-league { font-size: 12px; max-width: 180px; }
  .ttt-title { font-size: 20px; }
  .ttt-help { min-height: 48px; padding: 8px; font-size: 14px; margin-left: 8px; }
  .ttt-toolbar { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
  .ttt-difficulty { width: 100%; margin-bottom: 12px; }
  .ttt-difficulty strong { font-size: 36px; }
  .ttt-tools { width: 100%; display: -webkit-flex; display: flex; }
  .ttt-tools .ttt-btn { width: 50%; margin: 0 4px; font-size: 16px; padding: 12px 8px; }
  .ttt-play { display: block; }
  .ttt-board-area { width: 100%; padding: 0; margin-bottom: 20px; }
  .ttt-square { height: 104px; }
  .ttt-square .ttt-mark { font-size: 72px; }
  .ttt-panel { width: 100%; padding: 20px; }
  .ttt-target { font-size: 104px; }
  .ttt-setup { padding: 24px 0; }
  .ttt-setup h1 { font-size: 32px; }
  .ttt-levels { display: block; margin: 24px 0; }
  .ttt-level { width: 100%; min-height: 108px; margin: 0 0 12px; padding: 16px; }
  .ttt-level strong, .ttt-level span { display: inline-block; font-size: 28px; margin: 0 12px 8px; }
  .ttt-footer { display: block; text-align: center; }
  .ttt-footer > div { margin-top: 8px; }
  .ttt-modal { padding: 12px; }
  .ttt-dialog { padding: 20px; font-size: 16px; }
  .ttt-dialog h2 { font-size: 26px; }
  .ttt-light .ttt-header { background: #f4e7d5; }
}
