.tables-body { min-width: 0; min-height: 100vh; overflow-x: hidden; background: #090b0a; color: #edf3ed; }
.tables-shell { width: min(1480px, calc(100% - 48px)); min-height: 100vh; padding-top: 26px; }
.tables-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tables-back, .tables-brand, .tables-action, .tables-add-page, .tables-primary { font-family: "Minecraft Rus", monospace; font-weight: 700; letter-spacing: .04em; }
.tables-back { display: inline-flex; min-height: 35px; align-items: center; gap: 7px; color: #98aa99; font-size: 7px; text-decoration: none; transition: color .18s ease, transform .18s ease; }
.tables-back svg { width: 18px; height: 18px; color: var(--lime); }
.tables-back:hover { color: #fff; transform: translateX(-3px); }
.tables-brand { display: inline-flex; align-items: center; gap: 7px; color: #e6efe6; font-size: 10px; text-decoration: none; }
.tables-brand img { image-rendering: pixelated; }
.tables-brand em { color: var(--lime); font-style: normal; }
.tables-create { width: min(680px, 100%); margin: clamp(44px, 11vh, 108px) auto 52px; text-align: center; animation: tables-in .68s var(--ease) both; }
.tables-kicker { margin: 0 0 10px; color: #87a087; font-family: "Minecraft Rus", monospace; font-size: 7px; font-weight: 700; letter-spacing: .11em; }
.tables-create h1, .tournament h1 { margin: 0; font-family: "Minecraft Rus", monospace; font-size: clamp(28px, 6vw, 52px); line-height: 1; letter-spacing: -.035em; }
.tables-create h1, .tournament h1 { color: #f1f7ef; text-shadow: 0 0 26px rgba(168, 255, 120, .08); }
.tables-create h1 .tables-title-accent { color: var(--lime); }
.tables-lead { max-width: 510px; margin: 20px auto 28px; color: #9ca99e; font-size: 14px; line-height: 1.65; }
.tables-create-card { display: grid; gap: 17px; padding: clamp(19px, 4vw, 30px); border: 0; background: linear-gradient(145deg, rgba(27, 34, 28, .97), rgba(13, 17, 14, .96)); box-shadow: 0 28px 76px rgba(0, 0, 0, .35); text-align: left; clip-path: polygon(10px 0, calc(100% - 10px) 0, calc(100% - 10px) 10px, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 10px calc(100% - 10px), 0 calc(100% - 10px), 0 10px, 10px 10px); }
.tables-create-card label { display: grid; gap: 8px; color: #b7c6b8; font: 800 10px Manrope, sans-serif; letter-spacing: .08em; }
.tables-create-card input, .tables-modal-card input { width: 100%; height: 48px; box-sizing: border-box; border: 0; outline: none; background: #0e140f; color: #edf5ed; font: 700 14px Manrope, sans-serif; letter-spacing: .01em; transition: background .18s ease, box-shadow .18s ease; clip-path: polygon(5px 0, calc(100% - 5px) 0, calc(100% - 5px) 5px, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 5px calc(100% - 5px), 0 calc(100% - 5px), 0 5px, 5px 5px); }
.tables-create-card input, .tables-modal-card input { padding: 0 13px; }
.tables-create-card input::placeholder, .tables-modal-card input::placeholder { color: #79857b; font-weight: 600; opacity: 1; }
.tables-create-card input:focus, .tables-modal-card input:focus { background: #121a13; box-shadow: 0 0 0 2px rgba(168, 255, 120, .32), 0 0 20px rgba(168, 255, 120, .08); }
.tables-create-card input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.tables-create-card input[type="number"]::-webkit-inner-spin-button, .tables-create-card input[type="number"]::-webkit-outer-spin-button { margin: 0; appearance: none; }
.tables-field-hint { margin: -11px 0 -1px; color: #8f9c91; font-size: 12px; line-height: 1.45; }
.tables-create-note { margin: -2px 0 0; color: #93a094; font-size: 13px; line-height: 1.55; }
.tables-create-note strong { color: #b7cbb8; }
.tables-primary { display: inline-flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 20px; border: 0; padding: 0 16px; background: var(--lime); color: #111710; cursor: pointer; font-size: 9px; transition: transform .2s var(--ease), filter .2s ease; clip-path: polygon(5px 0, calc(100% - 5px) 0, calc(100% - 5px) 5px, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 5px calc(100% - 5px), 0 calc(100% - 5px), 0 5px, 5px 5px); }
.tables-primary:hover { filter: brightness(1.09); transform: translateY(-2px); }
.tables-primary:disabled { cursor: wait; filter: grayscale(.3); opacity: .7; transform: none; }
.tables-primary b { font: 700 20px Manrope, sans-serif; }
.tables-form-error { min-height: 17px; margin: -8px 0 0; color: #ff8f8f; font-size: 12px; }
.tournament { padding: clamp(34px, 6vw, 70px) 0 46px; animation: tables-in .58s var(--ease) both; }
.tournament-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.tournament h1 { max-width: 800px; font-size: clamp(25px, 5vw, 44px); word-break: break-word; }
.tournament-expiry { margin: 11px 0 0; color: #718174; font-size: 12px; }
.tournament-actions, .tournament-tabs-wrap, .tournament-tabs { display: flex; align-items: center; gap: 8px; }
.tournament-actions { flex-wrap: wrap; justify-content: flex-end; }
.tables-action, .tables-add-page { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(172, 196, 174, .14); padding: 0 10px; background: rgba(22, 29, 23, .88); color: #becabe; cursor: pointer; font-size: 7px; transition: background .18s ease, color .18s ease, transform .18s ease; }
.tables-action[hidden], .tables-add-page[hidden] { display: none; }
.tables-action svg { width: 15px; height: 15px; }
.tables-action:hover, .tables-add-page:hover { background: rgba(168, 255, 120, .12); color: var(--lime); transform: translateY(-1px); }
.tables-action-danger { color: #f3b8b8; }
.tournament-tabs-wrap { justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 7px; border: 1px solid rgba(167, 198, 169, .11); background: rgba(15, 20, 16, .76); }
.tables-tabs-toggle { display: none; min-height: 35px; align-items: center; justify-content: space-between; gap: 9px; border: 1px solid rgba(168, 255, 120, .17); padding: 0 10px; background: #182019; color: var(--lime); cursor: pointer; font: 700 7px "Minecraft Rus", monospace; }
.tables-tabs-toggle span { font: 700 14px Manrope, sans-serif; transition: transform .2s ease; }
.tournament-tabs-wrap.tabs-open .tables-tabs-toggle span { transform: rotate(180deg); }
.tournament-tabs { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tournament-tabs::-webkit-scrollbar { display: none; }
.tournament-tab { position: relative; min-height: 38px; flex: 0 0 auto; border: 0; padding: 0 15px; background: transparent; color: #7f9081; cursor: pointer; font-family: "Minecraft Rus", monospace; font-size: 8px; transition: color .2s ease, background .2s ease; }
.tournament-tab.active { background: rgba(168, 255, 120, .1); color: var(--lime); }
.tournament-tab.active::after { position: absolute; right: 10px; bottom: 5px; left: 10px; height: 2px; background: var(--lime); content: ""; }
.tables-add-page { flex: 0 0 auto; color: var(--lime); }
.tournament-hint { min-height: 18px; margin: 0 0 14px; color: #839284; font: 700 7px "Minecraft Rus", monospace; letter-spacing: .06em; }
.bracket-scroll { overflow: auto; padding: 11px 2px 18px; scrollbar-color: rgba(168, 255, 120, .4) rgba(12, 17, 13, .7); scrollbar-width: thin; }
.bracket { display: flex; min-width: max-content; align-items: stretch; gap: 22px; padding: 4px 6px; }
.bracket-round { display: grid; width: 222px; min-height: 350px; grid-template-rows: auto 1fr; gap: 12px; }
.bracket-round-head { display: flex; align-items: center; gap: 8px; color: #a7b4a7; font: 700 7px "Minecraft Rus", monospace; letter-spacing: .07em; }
.bracket-round-head::before { width: 7px; height: 7px; background: var(--lime); box-shadow: 0 0 9px rgba(168, 255, 120, .5); content: ""; }
.bracket-round-slots { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.bracket-slot { position: relative; display: flex; width: 100%; min-height: 52px; box-sizing: border-box; align-items: center; gap: 10px; border: 1px solid rgba(181, 206, 184, .12); padding: 6px 8px; background: linear-gradient(135deg, rgba(25, 32, 26, .96), rgba(15, 20, 16, .96)); color: #e6efe6; text-align: left; transition: border-color .18s ease, transform .2s var(--ease), background .18s ease, opacity .18s ease; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.bracket-slot::after { position: absolute; top: 50%; right: -23px; width: 22px; height: 1px; background: rgba(168, 255, 120, .24); content: ""; }
.bracket-round:last-child .bracket-slot::after { display: none; }
.bracket-slot.has-player { cursor: pointer; }
.bracket-slot.editable:hover { border-color: rgba(168, 255, 120, .46); transform: translateY(-1px); }
.bracket-slot.empty { border-style: dashed; color: #526053; }
.bracket-slot.drag-target { border-color: var(--lime); background: rgba(168, 255, 120, .13); box-shadow: 0 0 0 3px rgba(168, 255, 120, .08); }
.bracket-slot.state-passed { border-color: rgba(168, 255, 120, .46); background: linear-gradient(135deg, rgba(33, 58, 32, .95), rgba(15, 24, 16, .96)); }
.bracket-slot.state-eliminated { border-color: rgba(255, 103, 103, .34); background: linear-gradient(135deg, rgba(56, 27, 27, .82), rgba(23, 15, 16, .96)); opacity: .82; }
.bracket-slot.state-eliminated .bracket-nickname { color: #f0a5a5; }
.bracket-avatar { width: 36px; height: 36px; flex: 0 0 auto; background: #101510; image-rendering: pixelated; object-fit: cover; }
.bracket-nickname { min-width: 0; overflow: hidden; color: #e9f2e9; font: 700 12px Manrope, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.bracket-slot-empty { font: 700 7px "Minecraft Rus", monospace; letter-spacing: .05em; }
.bracket-name-input { width: 100%; min-width: 0; height: 34px; border: 1px solid rgba(168, 255, 120, .6); padding: 0 8px; outline: 0; background: #101710; color: #f0faf0; font: 700 12px Manrope, sans-serif; }
.bracket-empty { display: grid; width: min(100%, 460px); min-height: 190px; place-content: center; gap: 10px; border: 1px dashed rgba(168, 255, 120, .25); padding: 28px; color: #a5b5a6; text-align: center; }
.bracket-empty strong { color: var(--lime); font: 700 9px "Minecraft Rus", monospace; letter-spacing: .08em; }
.bracket-empty span { font-size: 13px; }
.slot-menu { position: absolute; z-index: 15; top: calc(100% + 6px); left: 4px; display: grid; width: max-content; min-width: 138px; border: 1px solid rgba(168, 255, 120, .28); padding: 4px; background: #151c16; box-shadow: 0 15px 40px rgba(0, 0, 0, .45); animation: slot-menu-in .18s var(--ease) both; }
.slot-menu button { min-height: 31px; border: 0; padding: 0 9px; background: transparent; color: #d7e2d7; cursor: pointer; font: 700 7px "Minecraft Rus", monospace; text-align: left; }
.slot-menu button:hover { background: rgba(168, 255, 120, .12); color: var(--lime); }
.slot-menu button[data-menu="delete"]:hover { background: rgba(255, 98, 98, .1); color: #ff9a9a; }
.tables-modal[hidden], .tournament[hidden] { display: none; }
.tables-modal { position: fixed; z-index: 220; inset: 0; display: grid; place-items: center; padding: 16px; }
.tables-modal-backdrop { position: absolute; inset: 0; background: rgba(2, 4, 3, .78); backdrop-filter: blur(4px); }
.tables-modal-card { position: relative; z-index: 1; display: grid; width: min(410px, 100%); gap: 16px; border: 1px solid rgba(168, 255, 120, .18); padding: 28px; background: #151b16; box-shadow: 0 30px 90px rgba(0, 0, 0, .58); animation: tables-modal-in .32s var(--ease) both; }
.tables-modal-card h2 { margin: -5px 0 0; font-family: "Minecraft Rus", monospace; font-size: 20px; }
.tables-modal-card p { margin: -7px 0 0; color: #9aa89c; font-size: 13px; line-height: 1.5; }
.tables-modal-close { position: absolute; top: 7px; right: 9px; border: 0; background: transparent; color: #91a092; cursor: pointer; font: 300 28px Manrope, sans-serif; }
.tables-toast { position: fixed; z-index: 250; right: 18px; bottom: 18px; max-width: min(390px, calc(100% - 36px)); border: 1px solid rgba(168, 255, 120, .26); padding: 12px 14px; background: #182019; color: #e4f3e4; box-shadow: 0 16px 46px rgba(0, 0, 0, .4); font-size: 13px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .24s ease, transform .3s var(--ease); }
.tables-toast.visible { opacity: 1; transform: translateY(0); }
.tournament-drag-ghost { position: fixed; z-index: 300; display: flex; width: 200px; min-height: 50px; align-items: center; gap: 9px; border: 1px solid var(--lime); padding: 6px 8px; background: #1b291c; box-shadow: 0 15px 34px rgba(0, 0, 0, .42); color: #edf9ed; pointer-events: none; transform: translate(-50%, -50%) rotate(-2deg); }

/* Турнирная сетка повторяет пиксельные срезы и плотность главной страницы. */
.tables-create-card,
.tables-modal-card,
.tournament-tabs-wrap,
.tables-action,
.tables-add-page,
.tables-tabs-toggle,
.tournament-tab,
.bracket-slot,
.slot-menu,
.tables-toast,
.tournament-drag-ghost {
  border: 0;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px), 0 8px, 8px 8px);
}

.tables-create-card { background: linear-gradient(145deg, rgba(24, 31, 25, .98), rgba(12, 17, 13, .98)); box-shadow: 0 28px 74px rgba(0, 0, 0, .38); }
.tables-create-card label { gap: 9px; color: #b7c4b7; font: 700 9px "Minecraft Rus", monospace; letter-spacing: .08em; }
.tables-create-card input,
.tables-modal-card input,
.bracket-name-input {
  border: 0;
  background: rgba(7, 11, 8, .7);
  color: #edf4ed;
  font-family: "Minecraft Rus", monospace;
  font-size: 10px;
  letter-spacing: .025em;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px), 0 6px, 6px 6px);
  box-shadow: none;
}
.tables-create-card input::placeholder,
.tables-modal-card input::placeholder,
.bracket-name-input::placeholder { color: #718070; font-family: "Minecraft Rus", monospace; font-size: 9px; opacity: 1; }
.tables-create-card input:focus,
.tables-modal-card input:focus,
.bracket-name-input:focus { outline: 0; background: rgba(14, 22, 15, .96); box-shadow: none !important; }
.tables-field-hint { color: #9cac9e; font: 700 8px "Minecraft Rus", monospace; line-height: 1.65; letter-spacing: .035em; }
.tables-create-note { color: #9dac9e; font: 700 8px "Minecraft Rus", monospace; line-height: 1.65; letter-spacing: .025em; }
.tables-primary { border: 0; font-size: 10px; box-shadow: 0 10px 28px rgba(107, 218, 68, .18); }

.tables-back { min-height: 48px; gap: 9px; color: #c0d0c1; font-size: 10px; }
.tables-back svg { width: 22px; height: 22px; }
.tables-back-copy { display: grid; gap: 4px; line-height: 1; }
.tables-back-copy strong { color: #dce9dc; font: 700 10px "Minecraft Rus", monospace; letter-spacing: .07em; }
.tables-back-copy small { color: #849686; font: 700 7px "Minecraft Rus", monospace; letter-spacing: .1em; }
.tables-back:hover { transform: translateX(-2px); }
.tables-back:hover small { color: var(--lime); }

.tournament-tabs-wrap { gap: 10px; padding: 8px; background: rgba(15, 21, 16, .88); box-shadow: none; }
.tables-action,
.tables-add-page,
.tables-tabs-toggle { min-height: 44px; border: 0; padding: 0 13px; background: rgba(19, 28, 20, .95); color: #cbd8cc; font-size: 9px; }
.tables-action svg { width: 17px; height: 17px; }
.tables-action:hover,
.tables-add-page:hover,
.tables-tabs-toggle:hover { background: rgba(33, 52, 34, .96); color: var(--lime); }
.tournament-tab { min-height: 40px; border: 0; padding: 0 17px; color: #95a695; font-size: 9px; }
.tournament-tab.active { background: rgba(168, 255, 120, .1); }
.tournament-tab.active::after { right: 13px; bottom: 6px; left: 13px; height: 2px; }
.tournament-tabs-wrap { clip-path: polygon(6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px), 0 6px, 6px 6px); }
.tournament-tab,
.tables-add-page,
.tables-action { clip-path: polygon(3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px); }
.tournament-hint { color: #a0aea1; font-size: 8px; line-height: 1.6; }

.bracket-scroll { position: relative; padding: 20px 14px 32px; background: linear-gradient(90deg, rgba(19, 27, 20, .24), transparent 13%, transparent 87%, rgba(19, 27, 20, .24)); }
.bracket { position: relative; gap: 42px; padding: 6px 8px 48px; }
.bracket-round { width: 242px; min-height: 300px; gap: 16px; }
.bracket[data-size="2"] .bracket-round { min-height: 150px; }
.bracket[data-size="4"] .bracket-round { min-height: 290px; }
.bracket[data-size="8"] .bracket-round { min-height: 510px; }
.bracket[data-size="16"] .bracket-round { min-height: 980px; }
.bracket[data-size="32"] .bracket-round { min-height: 2,300px; }
.bracket-round-head { color: #b5c7b5; font-size: 9px; letter-spacing: .08em; }
.bracket-round-head::before { width: 8px; height: 8px; box-shadow: 0 0 12px rgba(168, 255, 120, .48); }
.bracket-round-slots { gap: 14px; overflow: visible; }
.bracket-slot-wrap { position: relative; z-index: 2; display: flex; width: 100%; min-height: 58px; align-items: stretch; }
.bracket-slot-wrap.menu-open { z-index: 80; }
.bracket-slot {
  min-height: 58px;
  gap: 11px;
  border: 0;
  padding: 8px 10px;
  background: linear-gradient(135deg, rgba(30, 41, 31, .98), rgba(13, 19, 14, .98));
  box-shadow: none;
  transition: background .18s ease, opacity .18s ease;
}
.bracket-slot::after {
  display: none;
}
.bracket-connector { display: none; }
.bracket-lines { position: absolute; z-index: 1; top: 0; left: 0; overflow: visible; pointer-events: none; }
.bracket-line-path { fill: none; stroke: rgba(168, 255, 120, .88); stroke-width: 2; stroke-dasharray: 7 6; filter: drop-shadow(0 0 3px rgba(168, 255, 120, .28)); }
.bracket-slot.editable:hover { background: linear-gradient(135deg, rgba(40, 56, 40, .99), rgba(17, 26, 18, .99)); box-shadow: none; transform: none; }
.bracket-slot.empty { border: 0; background: rgba(19, 28, 20, .72); color: #7d8d7e; box-shadow: none; }
.bracket-slot.empty::before { width: 11px; height: 11px; flex: 0 0 11px; background: rgba(168, 255, 120, .62); content: "+"; color: #101610; font: 700 12px/11px Manrope, sans-serif; text-align: center; }
.bracket-slot.state-passed { border: 0; background: linear-gradient(135deg, rgba(47, 75, 44, .99), rgba(16, 28, 17, .99)); box-shadow: inset 3px 0 var(--lime); }
.bracket-slot.state-eliminated { border: 0; background: linear-gradient(135deg, rgba(55, 29, 29, .92), rgba(25, 15, 16, .96)); box-shadow: inset 3px 0 #e47a7a; opacity: .82; }
.bracket-slot.drag-target { border: 0; background: rgba(61, 90, 58, .95); box-shadow: inset 3px 0 var(--lime), 0 0 22px rgba(168, 255, 120, .14); }
.bracket-avatar { width: 38px; height: 38px; background: #0b100c; }
.bracket-nickname { font-family: "Minecraft Rus", monospace; font-size: 10px; letter-spacing: .025em; }
.bracket-slot-empty { font-size: 8px; letter-spacing: .065em; }
.bracket-slot.is-editing { background: rgba(19, 29, 20, .98); animation: slot-editor-in .18s ease-out both; }
.bracket-name-editor { display: flex; min-width: 0; flex: 1; align-items: center; overflow: hidden; }
.bracket-editor-avatar { width: 0; height: 38px; flex: 0 0 auto; margin-right: 0; overflow: hidden; opacity: 0; transform: translateX(-12px) scale(.86); transition: width .28s var(--ease), margin-right .28s var(--ease), opacity .2s ease, transform .28s var(--ease); }
.bracket-editor-avatar.visible { width: 38px; margin-right: 11px; opacity: 1; transform: translateX(0) scale(1); }
.bracket-editor-avatar img { display: block; width: 38px; height: 38px; background: #0b100c; image-rendering: pixelated; object-fit: cover; }
.bracket-name-input { width: auto; height: 38px; min-height: 0; flex: 1; padding: 0 10px; appearance: none; box-shadow: none !important; animation: bracket-input-in .28s var(--ease) both; }

.slot-menu { z-index: 60; top: calc(100% + 8px); left: 8px; min-width: 174px; padding: 6px; background: #182219; box-shadow: 0 18px 44px rgba(0, 0, 0, .6); }
.slot-menu button { min-height: 36px; padding: 0 11px; font-size: 8px; letter-spacing: .05em; }
.slot-menu button:hover { background: rgba(168, 255, 120, .14); color: var(--lime); }
.slot-menu button[data-menu="delete"]:hover { background: rgba(255, 98, 98, .12); color: #ffaaaa; }
.tables-modal-card { border: 0; padding: 32px; background: linear-gradient(145deg, #1a241b, #111812); box-shadow: 0 36px 100px rgba(0, 0, 0, .68); }
.tables-modal-card h2 { font-size: 23px; }
.tables-lead { max-width: 580px; color: #aab7ab; font: 700 10px/1.7 "Minecraft Rus", monospace; letter-spacing: .02em; }
.tables-modal-card p { color: #b0bdb1; font: 700 9px/1.8 "Minecraft Rus", monospace; letter-spacing: .02em; }
.tables-modal-close { color: #bfccbf; }
.tables-toast { border: 0; background: #1a271b; font-family: "Minecraft Rus", monospace; font-size: 8px; line-height: 1.55; }
.tournament-drag-ghost { border: 0; background: #213322; box-shadow: inset 3px 0 var(--lime), 0 15px 34px rgba(0, 0, 0, .42); }
@keyframes tables-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tables-modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes slot-menu-in { from { opacity: 0; transform: translateY(-5px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes slot-editor-in { from { opacity: .45; } to { opacity: 1; } }
@keyframes bracket-input-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 700px) {
  .tables-shell { width: min(100% - 24px, 1480px); padding-top: 18px; }
  .tables-back { min-height: 44px; }
  .tables-back-copy strong { font-size: 9px; }
  .tables-create { margin-top: 52px; }
  .tables-lead { font-size: 13px; }
  .tournament-head { flex-direction: column; }
  .tournament-actions { justify-content: flex-start; }
  .tournament-tabs-wrap { align-items: stretch; flex-direction: column; }
  .tables-tabs-toggle { display: flex; }
  .tournament-tabs { display: none; flex-wrap: wrap; overflow: visible; padding: 3px; }
  .tournament-tabs-wrap.tabs-open .tournament-tabs { display: flex; }
  .tables-add-page { align-self: flex-start; }
  .bracket-scroll { margin-right: -12px; padding-right: 12px; }
  .bracket { gap: 15px; }
  .bracket-round { width: min(67vw, 230px); min-height: 320px; }
  .bracket-slot { min-height: 50px; }
  .bracket-slot::after { right: -16px; width: 15px; }
}
@media (prefers-reduced-motion: reduce) { .tables-create, .tournament, .tables-modal-card, .slot-menu, .bracket-slot.is-editing, .bracket-name-input { animation: none; } .tables-primary, .tables-action, .bracket-slot, .bracket-editor-avatar { transition: none; } }
