/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--ease-in:cubic-bezier(.4, 0, 1, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.h-full{height:100%}.min-h-0{min-height:0}.w-full{width:100%}.min-w-0{min-width:0}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}.overflow-hidden{overflow:hidden}.border{border-style:var(--tw-border-style);border-width:1px}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}}*{box-sizing:border-box}html,body,#app{width:100%;min-width:0;height:100%;min-height:0;margin:0;overflow:hidden}body{background-color:#1a1a1a;width:100%;height:100dvh}#app{background-color:#27ae60;position:relative}.konvajs-content{margin:0 auto}#container{background-color:#27ae60;flex-grow:1;position:relative}canvas{touch-action:none;display:block}.progression-menu,#side-menu-container,.modal-overlay>div{box-sizing:border-box}.bottom-menu{z-index:1000;overscroll-behavior-x:contain;white-space:nowrap;background:#f8fafc;flex-wrap:nowrap;justify-content:flex-start;width:auto;max-width:none;max-height:72px;overflow:auto hidden;padding:8px 12px!important;bottom:12px!important;left:12px!important;right:12px!important;transform:none!important}.bottom-menu-group{flex:none;padding:0 4px}.bottom-menu-divider{opacity:.6;background:#94a3b8;flex:0 0 1px;height:28px;margin:0 4px}.side-rail{z-index:1150;background:#0f172ae6;border:1px solid #94a3b866;align-items:center;gap:5px;max-height:min(60dvh,480px);padding:5px;display:flex;position:fixed;bottom:88px;box-shadow:0 4px 16px #0000003d}.side-rail-left{border-left:0;border-radius:0 7px 7px 0;bottom:194px;left:0}.side-rail-export{border-left:0;border-radius:0 7px 7px 0;bottom:128px;left:0}.side-rail-right{border-right:0;border-radius:7px 0 0 7px;top:44%;bottom:auto;right:0;transform:translateY(-50%)}.side-rail-toggle{width:30px;min-width:30px;height:34px;min-height:34px;padding:0!important;font-size:15px!important}.side-rail-content{overscroll-behavior:contain;flex-direction:column;align-items:stretch;gap:5px;max-height:calc(60dvh - 16px);display:none;overflow:auto}.side-rail.expanded .side-rail-content{display:flex}.side-rail-content button,.side-rail-content select{white-space:nowrap;flex:none;max-width:168px;min-height:30px;padding:7px 9px!important;font-size:10px!important}.side-rail-content .portrait-field-controls{gap:4px;display:flex}.bottom-menu-section-toggle{width:112px;height:38px;padding:8px 10px!important;font-size:11px!important}.bottom-menu-play-button{z-index:1;flex:none;min-width:154px;margin-left:auto;position:sticky;right:0;box-shadow:-8px 0 12px #f8fafce6}.bottom-menu-popover{z-index:1600;color:#f8fafc;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);overscroll-behavior:contain;background:#0f172af7;border:1px solid #ffffff29;border-radius:8px;flex-direction:column;gap:10px;width:max-content;max-width:min(680px,100vw - 16px);max-height:min(65dvh,480px);padding:14px;display:flex;position:fixed;overflow:auto;box-shadow:0 12px 30px #00000059}.bottom-menu-popover[hidden]{display:none}.bottom-menu-popover-heading{color:#94a3b8;letter-spacing:.08em;font-size:10px;font-weight:700}.bottom-menu-group-actions{flex-flow:column;align-items:stretch;gap:8px;min-width:0;display:flex}.bottom-menu-popover .bottom-menu-group-actions>*{box-sizing:border-box;white-space:nowrap;flex:none;min-width:0;width:100%!important}.bottom-menu-popover select{width:100%!important}.progression-menu{flex-wrap:wrap;max-width:calc(100vw - 24px);overflow:auto}.progression-menu.progression-drawer{flex-flow:row;align-items:center;width:auto;max-width:min(94vw,360px);max-height:70dvh;top:max(72px, calc(env(safe-area-inset-top) + 56px))!important;z-index:2000!important;background:#0f172ae6!important;border:1px solid #94a3b866!important;border-left:0!important;border-radius:0 7px 7px 0!important;gap:4px!important;padding:5px!important;left:0!important;right:auto!important;transform:none!important;box-shadow:0 4px 16px #0000003d!important}.progression-read-list{flex-direction:column;gap:3px;display:none}.progression-drawer.expanded .progression-read-list{display:flex}.progression-menu .progression-drawer-toggle,.progression-menu .progression-read-button{border-radius:5px;width:28px;min-width:28px;height:28px;min-height:28px;line-height:1;padding:0!important;font-size:11px!important}.progression-menu .progression-drawer-toggle{font-size:17px!important}.formation-status{max-width:calc(100vw - 24px)}.visual-legend{z-index:1150;pointer-events:none;border:1px solid #cbd5e1;border-radius:6px;width:max-content;max-width:min(260px,100vw - 24px);max-height:36dvh;padding:9px 11px;font-size:11px;line-height:1.35;position:fixed;bottom:84px;right:12px;overflow:auto;box-shadow:0 4px 14px #0f172a2e}.visual-legend-title{margin-bottom:6px;font-size:10px;font-weight:700}.visual-legend-items{gap:5px;display:grid}.visual-legend-row{align-items:center;gap:8px;min-width:0;display:flex}.visual-legend-sample{flex:0 0 22px;height:10px}.visual-legend-sample.line{height:0}.visual-legend-sample.area{border:1px solid;border-radius:2px}.add-player-tools{z-index:1100;overscroll-behavior:contain;background:#0b131ef5;border:1px solid #ffffff29;border-radius:8px;flex-flow:column wrap;width:max-content;max-width:calc(100vw - 276px);max-height:calc(100dvh - 112px);padding:12px;position:fixed;bottom:154px;left:260px;overflow:auto;box-shadow:0 12px 28px #00000061;align-items:stretch!important}.side-selector{flex-wrap:nowrap}.bottom-menu button,.bottom-menu select{white-space:nowrap;flex:none}.bottom-menu select{width:auto;height:38px;margin-bottom:0}.bottom-menu .editor-mode-select{width:112px}.bottom-menu .play-type-select{width:138px}.portrait-field-controls{flex:none;display:none}#side-menu-container{overscroll-behavior:contain;max-height:calc(100dvh - 100px);overflow:auto;width:min(240px,100vw - 24px)!important}.modal-overlay>div{width:min(360px,100vw - 24px);max-height:82dvh;overflow:auto;min-width:0!important}.modal-overlay-gallery{overflow:auto}@media (width<=720px){.bottom-menu{width:auto;max-width:none;max-height:66px;right:8px!important;bottom:max(8px, env(safe-area-inset-bottom))!important;gap:6px!important;padding:6px 8px!important;left:8px!important;transform:none!important}.bottom-menu-section-toggle{width:88px;font-size:10px!important}.side-rail{bottom:calc(74px + env(safe-area-inset-bottom));max-height:58dvh}.side-rail-left{bottom:calc(186px + env(safe-area-inset-bottom))}.side-rail-export{bottom:calc(122px + env(safe-area-inset-bottom))}.side-rail-right{right:0}.side-rail-content{max-height:calc(58dvh - 16px)}.side-rail-content button,.side-rail-content select{max-width:148px;font-size:9px!important}.bottom-menu-play-button{min-width:124px;padding:12px 18px!important;font-size:14px!important}.bottom-menu button,.progression-menu button{white-space:nowrap;width:auto;line-height:1.1;padding:7px 9px!important;font-size:10px!important}.add-player-tools{right:8px;bottom:calc(146px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 220px);left:210px}.progression-menu{justify-content:center;max-width:none;max-height:24dvh;top:max(72px, calc(env(safe-area-inset-top) + 56px))!important;gap:6px!important;padding:8px!important;left:8px!important;right:8px!important}.formation-status{font-size:10px;padding:7px 10px!important;top:86px!important;right:8px!important}.visual-legend{right:8px;bottom:calc(74px + env(safe-area-inset-bottom));max-width:min(210px,100vw - 16px);max-height:30dvh;font-size:10px}#side-menu-container{border-radius:12px!important;padding:12px!important;top:8px!important}.modal-overlay-gallery{flex-direction:column!important}.modal-overlay-gallery>div:first-child{border-bottom:1px solid #ffffff26;flex:none;align-items:center;overflow-x:auto;border-right:0!important;flex-direction:row!important;width:100%!important;min-width:0!important;padding:10px!important}.modal-overlay-gallery>div:nth-child(2){min-height:0;padding:12px!important}.modal-overlay-gallery.concept-library-overlay{overflow:hidden;flex-direction:column!important}.concept-library-overlay>aside{border-bottom:1px solid #cbd5e1;align-items:center;max-height:88px;overflow-x:auto;border-right:0!important;flex-direction:row!important;width:100%!important;padding:8px!important}.concept-library-overlay>aside h2{display:none}.concept-library-overlay>aside button{white-space:nowrap;flex:none}.concept-library-overlay>main{width:100%;min-height:0;padding:12px!important}.concept-library-grid{grid-template-columns:minmax(0,1fr)!important}}@media (width<=720px) and (orientation:portrait){.bottom-menu>div:first-child .portrait-field-controls{gap:4px;display:flex}}@media (height<=620px){.bottom-menu{max-height:40dvh}}.sidebar{-webkit-backdrop-filter:blur(16px)saturate(180%);z-index:10;background-color:#0f172abf;border:1px solid #ffffff1a;width:280px;min-width:280px;height:100%;box-shadow:0 8px 32px #0000004d}html body.paper-board,html body.paper-board #app{background:#f8fafc}html body.paper-board .bottom-menu,html body.paper-board .progression-menu,html body.paper-board .side-rail,html body.paper-board .bottom-menu-popover,html body.paper-board #side-menu-container,html body.paper-board .add-player-tools,html body.paper-board .formation-status{color:#0f172a;-webkit-backdrop-filter:none;background-color:#fffffff5;border-color:#cbd5e1;box-shadow:0 8px 24px #0f172a1f}html body.paper-board .progression-menu.progression-drawer{background:#fffffff5!important}html body.paper-board .bottom-menu button,html body.paper-board .bottom-menu-popover button,html body.paper-board .progression-menu button,html body.paper-board .side-rail button,html body.paper-board #side-menu-container button,html body.paper-board .add-player-tools button{color:#0f172a;border:1px solid #0f172a1f}html body.paper-board .bottom-menu select,html body.paper-board .bottom-menu-popover select,html body.paper-board .side-rail select,html body.paper-board #side-menu-container input,html body.paper-board #side-menu-container select,html body.paper-board .add-player-tools input,html body.paper-board .add-player-tools select{color:#0f172a;background:#fff;border-color:#94a3b8}html body.paper-board .modal-overlay>div,html body.paper-board .modal-overlay-gallery>div{color:#0f172a;background:#fff;border-color:#cbd5e1}select{color:#fff;background:#0b1320;border:1px solid #ffffff1a;border-radius:6px;width:100%;margin-bottom:10px;padding:8px}select option{color:#fff;background:#0b1320}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
