/* Otters tactile layer for the brief - 7 November 2026.
   Same rules as src/app/tactile.css on the main site: one light from the top
   left, felt grounds from one grey tile, plasticine controls, fields pressed
   into the cloth. Loaded after styles.css and account.css; delete the <link>
   in index.html to go back to the previous look. Behaviour is unchanged. */

:root{--t-shade:4 8 48;--t-felt:url('/tactile/felt-256.jpg');--t-ease:cubic-bezier(.16,1,.3,1);--t-spring:cubic-bezier(.3,.7,.2,1.25)}

/* Felt on every brief ground */
.play,.account{position:relative;isolation:isolate}
.play:before,.account:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--t-felt) 0 0/256px 256px;mix-blend-mode:hard-light;opacity:var(--felt,.3)}
.theme-blue{--felt:.36;--focus:var(--volt);--slot:4 8 48}
.theme-ink{--felt:.15;--focus:var(--volt)}
.theme-volt{--felt:.3;--focus:var(--ink)}
.play{--focus:var(--blue);--felt:.17}
.account{background:var(--paper);--felt:.17;--focus:var(--blue)}
.play :focus-visible,.account :focus-visible{outline:3px solid var(--focus);outline-offset:4px}

/* Pressed slot fields: the field is pressed into the cloth; the felt runs on inside it. */
.field input,.field textarea,.field select{
  border:0;border-radius:10px;min-height:54px;padding:15px 16px;
  background:rgb(var(--t-shade)/.05);color:var(--fg,var(--ink));
  box-shadow:inset 2px 3px 5px rgb(var(--t-shade)/.2),inset 1px 1px 1px rgb(var(--t-shade)/.22),inset -1px -1px 0 #ffffffe6,0 1px 0 #fffffff2;
  outline:3px solid transparent;outline-offset:2px;caret-color:var(--focus);
  transition:box-shadow .2s ease,outline-color .15s ease,background-color .2s ease
}
.theme-blue .field :is(input,textarea,select){background:rgb(var(--t-shade)/.13);color:#fff;box-shadow:inset 2px 3px 6px rgb(var(--t-shade)/.45),inset 1px 1px 1px rgb(var(--t-shade)/.4),inset -1px -1px 0 #ffffff1a,0 1px 0 #ffffff2e}
.theme-ink .field :is(input,textarea,select){background:#00000059;color:#fff;box-shadow:inset 2px 3px 6px #000c,inset 1px 1px 1px #000b,inset -1px -1px 0 #ffffff10,0 1px 0 #ffffff17}
.theme-volt .field :is(input,textarea,select){background:rgb(var(--t-shade)/.06)}
.field input::placeholder,.field textarea::placeholder{color:currentColor;opacity:.62}
.field :is(input,textarea,select):hover:not(:focus):not(:disabled){background-color:rgb(var(--t-shade)/.09)}
.theme-blue .field :is(input,textarea,select):hover:not(:focus):not(:disabled){background-color:rgb(var(--t-shade)/.18)}
.field :is(input,textarea,select):focus{outline-color:var(--focus);border-color:transparent;box-shadow:inset 3px 4px 8px rgb(var(--t-shade)/.32),inset 1px 1px 2px rgb(var(--t-shade)/.3),inset -1px -1px 0 #ffffffe6,0 1px 0 #fffffff2}
.theme-blue .field :is(input,textarea,select):focus{box-shadow:inset 3px 4px 8px rgb(var(--t-shade)/.58),inset 1px 1px 2px rgb(var(--t-shade)/.5),inset -1px -1px 0 #ffffff1f,0 1px 0 #ffffff33}
.field :is(input,textarea,select)[aria-invalid=true]{outline-color:var(--ink)}
.theme-ink .field :is(input,textarea,select)[aria-invalid=true]{outline-color:#fff}
.field select{-webkit-appearance:none;appearance:none;padding-right:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230b0c14' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 18px center;background-size:12px 8px}
.theme-blue .field select,.theme-ink .field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E")}
.field select option{color:var(--ink);background:#fff}

/* Plasticine actions: one face, a visible edge, lift on hover, seat on press. */
.cta{
  border:0;border-radius:6px;
  background-image:linear-gradient(168deg,#ffffff33,#fff0 46%,rgb(var(--t-shade)/.1));
  box-shadow:inset 1px 1px 0 #ffffff6b,inset -1px -1px 0 rgb(var(--t-shade)/.16),0 4px 0 0 rgb(var(--t-shade)/.5),2px 7px 10px -1px rgb(var(--t-shade)/.32);
  transition:transform .16s var(--t-ease),box-shadow .16s var(--t-ease)
}
.cta:hover{transform:translateY(-2px);box-shadow:inset 1px 1px 0 #ffffff75,inset -1px -1px 0 rgb(var(--t-shade)/.16),0 6px 0 0 rgb(var(--t-shade)/.5),3px 12px 18px -2px rgb(var(--t-shade)/.34)}
.cta:active{transform:translateY(4px);transition-duration:.06s;box-shadow:inset 1px 1px 0 #ffffff47,inset 1px 2px 4px rgb(var(--t-shade)/.22),0 0 0 0 rgb(var(--t-shade)/.5),1px 1px 2px rgb(var(--t-shade)/.3)}
.cta:disabled,.cta[aria-disabled=true]{transform:translateY(4px);box-shadow:inset 1px 2px 3px rgb(var(--t-shade)/.22);opacity:.55}
.theme-volt .cta,.theme-ink .cta{box-shadow:inset 1px 1px 0 #ffffff40,0 4px 0 0 #000a,2px 7px 10px -1px #0008}
.theme-ink .cta:hover,.theme-volt .cta:hover{box-shadow:inset 1px 1px 0 #ffffff40,0 6px 0 0 #000a,3px 12px 18px -2px #0009}

/* Small keys: back, add, secondary. */
.back,.add-button{border:0;border-radius:6px;background:#fff;color:var(--ink);box-shadow:inset 1px 1px 0 #fff,0 3px 0 rgb(var(--t-shade)/.45),2px 6px 9px -1px rgb(var(--t-shade)/.3);transition:transform .14s var(--t-ease),box-shadow .14s var(--t-ease)}
.back:hover,.add-button:hover{transform:translateY(-1px)}
.back:active,.add-button:active{transform:translateY(3px);box-shadow:inset 1px 2px 3px rgb(var(--t-shade)/.25)}
.records:empty+.add-button{border:0;border-radius:10px;background:rgb(var(--t-shade)/.08);color:inherit;box-shadow:inset 2px 3px 8px rgb(var(--t-shade)/.35),inset -1px -1px 0 #ffffff26}

/* Chips: raised paper when free, seated with a Volt face when chosen. */
.chip{border:0;border-radius:6px;background:#fff;color:var(--ink);box-shadow:inset 1px 1px 0 #fff,0 3px 0 rgb(var(--t-shade)/.45),2px 6px 9px -1px rgb(var(--t-shade)/.28)}
.chip:hover{transform:translateY(-2px);box-shadow:inset 1px 1px 0 #fff,0 5px 0 rgb(var(--t-shade)/.45),3px 9px 13px -2px rgb(var(--t-shade)/.3)}
.chip.selected,.theme-volt .chip.selected{transform:translateY(3px);background:var(--volt);color:var(--ink);box-shadow:inset 1px 2px 4px rgb(var(--t-shade)/.35)}
.theme-volt .chip.selected{background:var(--ink);color:#fff}

/* Goal and visual cards: plates that seat when chosen, with a ring in the focus colour. */
.visual-card,.goal{border:0;border-radius:10px;overflow:hidden;box-shadow:inset 0 0 0 1px rgb(var(--t-shade)/.12),0 3px 0 rgb(var(--t-shade)/.35),3px 10px 16px -4px rgb(var(--t-shade)/.3)}
.visual-card:hover{transform:translateY(-3px)}
.visual-card.selected,.goal.selected{transform:translateY(3px);outline:3px solid var(--focus);outline-offset:4px;box-shadow:inset 1px 2px 6px rgb(var(--t-shade)/.35)}

/* Upload: a well pressed into the cloth. */
.upload{border:0;border-radius:12px;background:rgb(var(--t-shade)/.06);box-shadow:inset 2px 3px 10px rgb(var(--t-shade)/.3),inset -1px -1px 0 #ffffff59}
.theme-blue .upload,.theme-ink .upload{background:#00000026;box-shadow:inset 2px 3px 10px #0008,inset -1px -1px 0 #ffffff14}
.upload.dragging{background:#ffd40033}
.upload:focus-within{outline:3px solid var(--focus);outline-offset:4px}

/* Motion setting as a real switch: a pressed track with a plasticine knob. */
.motion-switch{position:relative;border:0;border-radius:8px;padding:8px 12px 8px 50px;background:rgb(var(--t-shade)/.16);box-shadow:inset 2px 3px 5px rgb(var(--t-shade)/.4),inset -1px -1px 0 #ffffff1f}
.motion-switch:before{content:"";position:absolute;left:5px;top:50%;width:20px;height:20px;margin-top:-10px;border-radius:5px;background:#fff;box-shadow:inset 1px 1px 0 #fff,0 2px 0 rgb(var(--t-shade)/.35),1px 3px 5px rgb(var(--t-shade)/.35);transition:transform .28s var(--t-spring)}
.motion-switch[aria-pressed=true]:before{transform:translateX(18px);background:var(--volt)}
.motion-switch span{display:none}

/* Record cards and dialogs: paper plates with the shared shadow. */
.record-card{border:0;border-radius:10px;box-shadow:inset 0 0 0 1px rgb(var(--t-shade)/.1),0 2px 0 rgb(var(--t-shade)/.25),3px 10px 18px -4px rgb(var(--t-shade)/.3)}
dialog{border:0;border-radius:14px;box-shadow:0 2px 0 rgb(var(--t-shade)/.3),6px 24px 50px -10px #000a}
#toast{border:0;border-radius:8px;box-shadow:0 2px 0 #000a,3px 10px 18px -4px #000a}


/* The brand-name question uses a large display input; it keeps its size but
   becomes the same pressed slot (its id rule was beating the class rule). */
.field #brand_identity-name{border:0;padding:16px 20px;border-radius:12px}

/* Checkboxes (review confirmations): a seated well; checked raises a Volt pip. */
.play input[type=checkbox],.account input[type=checkbox]{-webkit-appearance:none;appearance:none;display:inline-grid;place-items:center;flex:none;width:26px;height:26px;margin:0 10px 0 0;vertical-align:middle;border-radius:6px;background:rgb(var(--t-shade)/.12);box-shadow:inset 2px 2px 4px rgb(var(--t-shade)/.4),0 1px 0 #ffffff59;cursor:pointer}
.play input[type=checkbox]:after,.account input[type=checkbox]:after{content:"";width:14px;height:14px;border-radius:3px;background:var(--volt);box-shadow:inset 1px 1px 0 #ffffffb3,1px 2px 2px rgb(var(--t-shade)/.45);transform:scale(0);transition:transform .22s var(--t-spring)}
.play input[type=checkbox]:checked:after,.account input[type=checkbox]:checked:after{transform:scale(1)}
.play input[type=checkbox]:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

/* The poster art on each question is a card lying on the cloth. */
.art-panel{border:0;border-radius:4px;box-shadow:0 2px 0 rgb(var(--t-shade)/.18),4px 14px 24px -6px rgb(var(--t-shade)/.4),10px 34px 50px -20px rgb(var(--t-shade)/.4)}

/* 8 November: no flat underlined text outside the footer. Top links become small
   plasticine keys; the required note becomes a woven tab with one line; progress
   becomes pips pressed into the cloth, the current one raised in Volt. */
.play-top .quiet,.play-top #save-exit,.play-top .deck-link,.play-footer #help{
  text-decoration:none;border:0;border-radius:8px;padding:9px 14px;min-height:40px;display:inline-flex;align-items:center;gap:8px;
  background:#fff;color:var(--ink);font:600 12px/1 var(--body);
  box-shadow:inset 1px 1px 0 #fff,0 3px 0 rgb(var(--t-shade)/.4),2px 6px 9px -1px rgb(var(--t-shade)/.25);
  transition:transform .14s var(--t-ease),box-shadow .14s var(--t-ease)}
.play-top .quiet:hover,.play-top #save-exit:hover,.play-top .deck-link:hover,.play-footer #help:hover{transform:translateY(-1px)}
.play-top .quiet:active,.play-top #save-exit:active,.play-top .deck-link:active,.play-footer #help:active,.play-footer #help[aria-pressed=true]{transform:translateY(3px);box-shadow:inset 1px 2px 3px rgb(var(--t-shade)/.25)}
.play-footer #help[aria-pressed=true]{background:var(--volt)}
.journey-label .deck-link{background:transparent;box-shadow:none;padding:0}
.question-guidance{border:0;padding:0;gap:12px;font-size:14px}
.question-guidance .guidance-kind{display:inline-flex;align-items:center;min-height:26px;padding:4px 10px;background:var(--volt);color:var(--ink);font:600 11px/1 var(--body);letter-spacing:.05em;outline:1px dashed #0b0c1459;outline-offset:-4px;box-shadow:1px 2px 0 rgb(var(--t-shade)/.25),2px 5px 8px -2px rgb(var(--t-shade)/.35)}
.guidance-optional .guidance-kind{background:#fff}
.progress-track{height:12px;gap:6px;align-items:center}
.progress-piece{height:8px;border-radius:4px;background:rgb(var(--t-shade)/.14);box-shadow:inset 1px 2px 3px rgb(var(--t-shade)/.35),0 1px 0 #ffffffb3}
.progress-piece.answered{background:rgb(var(--t-shade)/.32)}
.progress-piece.current,.theme-blue .progress-piece.current{height:10px;background:var(--volt);box-shadow:inset 1px 1px 0 #ffffffb3,0 2px 0 rgb(var(--t-shade)/.35),1px 3px 5px rgb(var(--t-shade)/.3)}
.play-footer{border-top:0}
#save-status{opacity:.7;font-size:12px}

@media(prefers-reduced-motion:reduce){.cta,.chip,.back,.add-button,.visual-card,.motion-switch:before{transition:none!important}}
.motion-off .cta,.motion-off .chip,.motion-off .visual-card{transition:none!important}

/* Progress as stitches on a woven band: answered rows sewn in Volt, the current one raised. */
.progress-track{background:#15171f;padding:6px 10px;border-radius:2px;gap:4px;height:auto;box-shadow:inset 0 1px 0 #ffffff12,1px 2px 4px rgb(var(--t-shade)/.35)}
.progress-piece{height:6px;border-radius:2px;background:#2a2c36;box-shadow:inset 0 1px 0 #ffffff14}
.progress-piece.answered{background:#c7a414;box-shadow:inset 1px 1px 0 #fff3b3}
.progress-piece.current,.theme-blue .progress-piece.current{height:8px;background:var(--volt);box-shadow:inset 1px 1px 0 #fff8cc,0 1px 2px #0008}

/* 9 November: the shared-brief people dialog follows the same rules. People are paper
   plates like record cards, its text buttons are small keys like the top bar, and focus
   is blue as on the brief (the dialog sits outside .play, which sets --focus). */
#people-dialog{--focus:var(--blue)}
#people-dialog :focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.people-list li{border:0;border-radius:10px;background:#fff;box-shadow:inset 0 0 0 1px rgb(var(--t-shade)/.1),0 2px 0 rgb(var(--t-shade)/.25),3px 10px 18px -4px rgb(var(--t-shade)/.3)}
#people-dialog .quiet{
  flex:none;white-space:nowrap;text-decoration:none;border:0;border-radius:8px;padding:9px 14px;min-height:44px;display:inline-flex;align-items:center;
  background:#fff;color:var(--ink);font:600 12px/1 var(--body);
  box-shadow:inset 1px 1px 0 #fff,0 3px 0 rgb(var(--t-shade)/.4),2px 6px 9px -1px rgb(var(--t-shade)/.25);
  transition:transform .14s var(--t-ease),box-shadow .14s var(--t-ease)}
#people-dialog .quiet:hover{transform:translateY(-1px)}
#people-dialog .quiet:active{transform:translateY(3px);box-shadow:inset 1px 2px 3px rgb(var(--t-shade)/.25)}
#close-people{margin-top:12px}
.people-list li{flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){#people-dialog .quiet{transition:none!important}}
